@cube-dev/ui-kit 0.6.24 → 0.6.25
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/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/mjs/index.js +2 -2
- package/dist/mjs/index.js.map +1 -1
- package/package.json +1 -1
package/dist/mjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.25
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
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 s,useMemo as l,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";
|
|
@@ -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 s in i)t.call(i,s)&&i[s]&&e.push(s);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,s=null,l=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),s=$(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),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,a,s),u=!0,c="hsv"):ae(e.h)&&ae(e.s)&&ae(e.l)&&(a=$(e.s),l=$(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,s=2*n-a;r=Y(s,a,e+1/3),i=Y(s,a,e),o=Y(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,a,l),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 se=[{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 le(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,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,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=le(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 s=1;s<=4;s+=1){var l=le(r),u=ue(te({h:de(l,s),s:pe(l,s),v:fe(l,s)}));n.push(u)}return"dark"===t.theme?se.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 s,l,u;if((null===(s=n.csp)||void 0===s?void 0:s.nonce)&&a.nonce!==(null===(l=n.csp)||void 0===l?void 0:l.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 Le="\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",Ae=["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,s=e.onClick,l=e.style,u=e.primaryColor,c=e.secondaryColor,d=W(e,Ae),p=Fe;if(u&&(p={primaryColor:u,secondaryColor:c||Ne(u)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Le,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:s,style:l,"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=q(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,s=t.rotate,l=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=l;void 0===v&&u&&(v=-1);var g=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,m=q(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),qe={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"},Be=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:qe}))};Be.displayName="CaretUpOutlined";var We=e.forwardRef(Be),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),st={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"},lt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:st}))};lt.displayName="EyeOutlined";var ut=e.forwardRef(lt),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:"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"},xt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:yt}))};xt.displayName="InfoOutlined";var wt=e.forwardRef(xt),St={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"},Et=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:St}))};Et.displayName="LoadingOutlined";var kt=e.forwardRef(Et),Pt={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"},Tt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Pt}))};Tt.displayName="SearchOutlined";var Ct=e.forwardRef(Tt),Ot={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"},Nt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Ot}))};Nt.displayName="WarningOutlined";var jt=e.forwardRef(Nt);function Lt(e,t,n){let[r,i]=o(e||t),l=a(void 0!==e),u=l.current,c=void 0!==e,d=a(r);u!==c&&console.warn("WARN: A component changed from "+(u?"controlled":"uncontrolled")+" to "+(c?"controlled":"uncontrolled")+"."),l.current=c;let p=s((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 s=e(c?d.current:t,...i);return a(s,...r),c?t:s}))}else c||i(e),a(e,...r)}),[c,n]);return c?d.current=e:e=r,[e,p]}function At(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(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){let e=Math.pow(10,l);o=Math.round(o*e)/e}return o}function Ft(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=Ft(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Dt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ft(e))&&(r&&(r+=" "),r+=t);return r}function Rt(){return(Rt=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 It={prefix:String(Math.round(1e10*Math.random())),current:0},Mt=t.createContext(It);let _t=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function zt(){let e=r(Mt)!==It,[t,n]=o(e);return"undefined"!=typeof window&&e&&u((()=>{n(!1)}),[]),t}const Kt="undefined"!=typeof window?t.useLayoutEffect:()=>{};let Vt=new Map;function Ut(e){let t=a(!0);t.current=!0;let[n,s]=o(e),u=a(null),c=function(e){let t=r(Mt);return t!==It||_t||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),l((()=>e||"react-aria"+t.prefix+"-"+ ++t.current),[e])}(n),d=e=>{t.current?u.current=e:s(e)};return Vt.set(c,d),Kt((()=>{t.current=!1}),[d]),Kt((()=>{let e=c;return()=>{Vt.delete(e)}}),[c]),i((()=>{let e=u.current;e&&(s(e),u.current=null)}),[s,d]),c}function qt(e,t){if(e===t)return e;let n=Vt.get(e);if(n)return n(t),t;let r=Vt.get(t);return r?(r(e),e):t}function Bt(){let e=Ut(),[t,n]=o(e);return Kt((()=>{Vt.get(e)&&!document.getElementById(e)?n(null):n(e)}),[e]),t}function Wt(){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 Gt(){let e=Rt({},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]=Wt(r,i):"className"!==t&&"UNSAFE_className"!==t||"string"!=typeof r||"string"!=typeof i?"id"===t&&r&&i?e.id=qt(r,i):e[t]=void 0!==i?i:r:e[t]=Dt(r,i)}}return e}const Jt=new Set(["id"]),Ht=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),$t=/^(data-.*)$/;function Xt(e,t){void 0===t&&(t={});let{labelable:n,propNames:r}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Jt.has(t)||n&&Ht.has(t)||null!=r&&r.has(t)||$t.test(t))&&(i[t]=e[t]);return i}function Yt(e){if(function(){if(null==Zt){Zt=!1;try{document.createElement("div").focus({get preventScroll(){return Zt=!0,!0}})}catch(e){}}return Zt}())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 Zt=null;let Qt=new Map,en=new Set;function tn(){if("undefined"==typeof window)return;let e=t=>{let n=Qt.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Qt.delete(t.target)),0===Qt.size)){for(let e of en)e();en.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=Qt.get(t.target);n||(n=new Set,Qt.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function nn(e){requestAnimationFrame((()=>{0===Qt.size?e():en.add(e)}))}function rn(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;if(n=Ut(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 on(e,t){Kt((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function an(e){for(;e&&!sn(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function sn(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?tn():document.addEventListener("DOMContentLoaded",tn));let ln="undefined"!=typeof window&&window.visualViewport;function un(){let[e,t]=o((()=>cn()));return i((()=>{let e=()=>{t((e=>{let t=cn();return t.width===e.width&&t.height===e.height?e:t}))};return ln?ln.addEventListener("resize",e):window.addEventListener("resize",e),()=>{ln?ln.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function cn(){return{width:(null==ln?void 0:ln.width)||window.innerWidth,height:(null==ln?void 0:ln.height)||window.innerHeight}}function dn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgent)}function pn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.platform)}function fn(){return pn(/^Mac/)}function hn(){return pn(/^iPhone/)}function vn(){return hn()||pn(/^iPad/)||fn()&&navigator.maxTouchPoints>1}function gn(){return fn()||vn()}function mn(){return dn(/AppleWebKit/)&&!dn(/Chrome/)}function bn(e,t,n,r){let o=a(n);o.current=n;let s=null==n;i((()=>{if(s)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,s])}let yn=new Map,xn=!1;try{xn="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let wn=!1;try{wn="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const Sn={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class En{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&&!wn){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=Sn[e])||!r[n])throw new Error("Unsupported unit "+e+" with unitDisplay = "+n);t=Rt({},t,{style:"decimal"})}let i=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(yn.has(i))return yn.get(i);let o=new Intl.NumberFormat(e,t);return yn.set(i,o),o}(e,t),this.options=t}format(e){let t="";if(t=xn||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&&!wn){var n;let{unit:e,unitDisplay:r="short",locale:i}=this.resolvedOptions(),o=null==(n=Sn[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 xn||null==this.options.signDisplay||(e=Rt({},e,{signDisplay:this.options.signDisplay})),wn||"unit"!==this.options.style||(e=Rt({},e,{style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay})),e}}const kn=new RegExp("^.*\\(.*\\).*$"),Pn=["latn","arab","hanidec"];class Tn{constructor(e,t){void 0===t&&(t={}),this.locale=void 0,this.options=void 0,this.locale=e,this.options=t}parse(e){return On(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return On(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return On(this.locale,this.options,e).options.numberingSystem}}const Cn=new Map;function On(e,t,n){let r=Nn(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let i of Pn)if(i!==r.options.numberingSystem){let r=Nn(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(r.isValidPartialNumber(n))return r}return r}function Nn(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=Cn.get(n);return r||(r=new jn(e,t),Cn.set(n,r)),r}class jn{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,s;let l=e.formatToParts(-10000.111),u=e.formatToParts(10000.111),c=e.formatToParts(1),d=null!=(r=null==(i=l.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=l.find((e=>"decimal"===e.type)))?void 0:a.value,h=null==(s=l.find((e=>"group"===e.type)))?void 0:s.value,v=l.filter((e=>!Ln.has(e.type))).map((e=>Fn(e.value))),g=c.filter((e=>!Ln.has(e.type))).map((e=>Fn(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=An(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&&kn.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=An(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal),".",this.symbols.group)),"fr-FR"===this.options.locale&&(e=An(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=An(e,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,"")).length}}const Ln=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);function An(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Fn(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var Dn,Rn,In;function Mn(e){return e.type===Rn.literal}function _n(e){return e.type===Rn.argument}function zn(e){return e.type===Rn.number}function Kn(e){return e.type===Rn.date}function Vn(e){return e.type===Rn.time}function Un(e){return e.type===Rn.select}function qn(e){return e.type===Rn.plural}function Bn(e){return e.type===Rn.pound}function Wn(e){return e.type===Rn.tag}function Gn(e){return!(!e||"object"!=typeof e||e.type!==In.number)}function Jn(e){return!(!e||"object"!=typeof e||e.type!==In.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"}(Dn||(Dn={})),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"}(Rn||(Rn={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(In||(In={}));var Hn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,$n=/(?:[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 Xn(e){var t={};return e.replace($n,(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 Yn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Zn,Qn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,er=/^(@+)?(\+|#+)?$/g,tr=/(\*)(0+)|(#+)(0+)|(0+)/g,nr=/^(0+)$/;function rr(e){var t={};return e.replace(er,(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 ir(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 or(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)),!nr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ar(e){var t=ir(e);return t||{}}function sr(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),ar(t))}),{}));continue;case"engineering":t=k(k(k({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return k(k({},e),ar(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(tr,(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(nr.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Qn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Qn,(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),rr(i.options[0])))}else if(er.test(i.stem))t=k(k({},t),rr(i.stem));else{var o=ir(i.stem);o&&(t=k(k({},t),o));var a=or(i.stem);a&&(t=k(k({},t),a))}}return t}var lr=new RegExp("^"+Hn.source+"*"),ur=new RegExp(Hn.source+"*$");function cr(e,t){return{start:e,end:t}}var dr=!!String.prototype.startsWith,pr=!!String.fromCodePoint,fr=!!Object.fromEntries,hr=!!String.prototype.codePointAt,vr=!!String.prototype.trimStart,gr=!!String.prototype.trimEnd,mr=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},br=!0;try{br="a"===(null===(Zn=Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Zn?void 0:Zn[0])}catch(e){br=!1}var yr,xr=dr?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},wr=pr?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},Sr=fr?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},Er=hr?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}},kr=vr?function(e){return e.trimStart()}:function(e){return e.replace(lr,"")},Pr=gr?function(e){return e.trimEnd()}:function(e){return e.replace(ur,"")};function Tr(e,t){return new RegExp(e,t)}if(br){var Cr=Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");yr=function(e,t){var n;return Cr.lastIndex=t,null!==(n=Cr.exec(e)[1])&&void 0!==n?n:""}}else yr=function(e,t){for(var n=[];;){var r=Er(e,t);if(void 0===r||jr(r)||Lr(r))break;n.push(r),t+=r>=65536?2:1}return wr.apply(void 0,n)};var Or=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(Dn.UNMATCHED_CLOSING_TAG,cr(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Nr(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:Rn.pound,location:cr(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:Rn.literal,value:"<"+r+"/>",location:cr(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()||!Nr(this.char()))return this.error(Dn.INVALID_TAG,cr(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(Dn.UNMATCHED_CLOSING_TAG,cr(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Rn.tag,value:r,children:o,location:cr(n,this.clonePosition())},err:null}:this.error(Dn.INVALID_TAG,cr(a,this.clonePosition())))}return this.error(Dn.UNCLOSED_TAG,cr(n,this.clonePosition()))}return this.error(Dn.INVALID_TAG,cr(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 s=cr(n,this.clonePosition());return{val:{type:Rn.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Nr(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 wr.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(),wr(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Dn.EXPECT_ARGUMENT_CLOSING_BRACE,cr(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Dn.EMPTY_ARGUMENT,cr(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Dn.MALFORMED_ARGUMENT,cr(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Dn.EXPECT_ARGUMENT_CLOSING_BRACE,cr(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Rn.argument,value:r,location:cr(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Dn.EXPECT_ARGUMENT_CLOSING_BRACE,cr(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Dn.MALFORMED_ARGUMENT,cr(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=yr(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:cr(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Dn.EXPECT_ARGUMENT_TYPE,cr(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=Pr(g.val)).length)return this.error(Dn.EXPECT_ARGUMENT_STYLE,cr(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:cr(u,this.clonePosition())}}if((m=this.tryParseArgumentClose(r)).err)return m;var c=cr(r,this.clonePosition());if(l&&xr(null==l?void 0:l.style,"::",0)){var d=kr(l.style.slice(2));if("number"===a)return(g=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?g:{val:{type:Rn.number,value:n,location:c,style:g.val},err:null};if(0===d.length)return this.error(Dn.EXPECT_DATE_TIME_SKELETON,c);var p={type:In.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Xn(d):{}};return{val:{type:"date"===a?Rn.date:Rn.time,value:n,location:c,style:p},err:null}}return{val:{type:"number"===a?Rn.number:"date"===a?Rn.date:Rn.time,value:n,location:c,style:null!==(i=null==l?void 0:l.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(Dn.EXPECT_SELECT_ARGUMENT_OPTIONS,cr(f,k({},f)));this.bumpSpace();var h=this.parseIdentifierIfPossible(),v=0;if("select"!==a&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(Dn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,cr(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(Dn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Dn.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=cr(r,this.clonePosition());return"select"===a?{val:{type:Rn.select,value:n,options:Sr(b.val),location:y},err:null}:{val:{type:Rn.plural,value:n,options:Sr(b.val),offset:v,pluralType:"plural"===a?"cardinal":"ordinal",location:y},err:null};default:return this.error(Dn.INVALID_ARGUMENT_TYPE,cr(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Dn.EXPECT_ARGUMENT_CLOSING_BRACE,cr(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(Dn.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,cr(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(Yn).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),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(Dn.INVALID_NUMBER_SKELETON,t)}return{val:{type:In.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?sr(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,o=!1,a=[],s=new Set,l=r.value,u=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(Dn.EXPECT_PLURAL_ARGUMENT_SELECTOR,Dn.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=cr(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}if(s.has(l))return this.error("select"===t?Dn.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Dn.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Dn.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Dn.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,cr(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([l,{value:f.val,location:cr(p,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===a.length?this.error("select"===t?Dn.EXPECT_SELECT_ARGUMENT_SELECTOR:Dn.EXPECT_PLURAL_ARGUMENT_SELECTOR,cr(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Dn.MISSING_OTHER_CLAUSE,cr(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 s=cr(r,this.clonePosition());return i?mr(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},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=Er(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(xr(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()&&jr(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 Nr(e){return e>=97&&e<=122||e>=65&&e<=90}function jr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Lr(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 Ar(e){e.forEach((function(e){if(delete e.location,Un(e)||qn(e))for(var t in e.options)delete e.options[t].location,Ar(e.options[t].value);else zn(e)&&Gn(e.style)||(Kn(e)||Vn(e))&&Jn(e.style)?delete e.style.location:Wn(e)&&Ar(e.children)}))}function Fr(e,t){void 0===t&&(t={}),t=k({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Or(e,t).parse();if(n.err){var r=SyntaxError(Dn[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||Ar(n.val),n.val}function Dr(e,t){var n=t&&t.cache?t.cache:Ur,r=t&&t.serializer?t.serializer:zr;return(t&&t.strategy?t.strategy:_r)(e,{cache:n,serializer:r})}function Rr(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 Ir(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 Mr(e,t,n,r,i){return n.bind(t,e,r,i)}function _r(e,t){return Mr(e,this,1===e.length?Rr:Ir,t.cache.create(),t.serializer)}var zr=function(){return JSON.stringify(arguments)};function Kr(){this.cache=Object.create(null)}Kr.prototype.get=function(e){return this.cache[e]},Kr.prototype.set=function(e,t){this.cache[e]=t};var Vr,Ur={create:function(){return new Kr}},qr={variadic:function(e,t){return Mr(e,this,Ir,t.cache.create(),t.serializer)},monadic:function(e,t){return Mr(e,this,Rr,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Vr||(Vr={}));var Br,Wr=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),Gr=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',Vr.INVALID_VALUE,i)||this}return E(t,e),t}(Wr),Jr=function(e){function t(t,n,r){return e.call(this,'Value for "'+t+'" must be of type '+n,Vr.INVALID_VALUE,r)||this}return E(t,e),t}(Wr),Hr=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',Vr.MISSING_VALUE,n)||this}return E(t,e),t}(Wr);function $r(e){return"function"==typeof e}function Xr(e,t,n,r,i,o,a){if(1===e.length&&Mn(e[0]))return[{type:Br.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Mn(c))s.push({type:Br.literal,value:c.value});else if(Bn(c))"number"==typeof o&&s.push({type:Br.literal,value:n.getNumberFormat(t).format(o)});else{var d=c.value;if(!i||!(d in i))throw new Hr(d,a);var p=i[d];if(_n(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?Br.literal:Br.object,value:p});else if(Kn(c)){var f="string"==typeof c.style?r.date[c.style]:Jn(c.style)?c.style.parsedOptions:void 0;s.push({type:Br.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(Vn(c)){f="string"==typeof c.style?r.time[c.style]:Jn(c.style)?c.style.parsedOptions:void 0;s.push({type:Br.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(zn(c)){(f="string"==typeof c.style?r.number[c.style]:Gn(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),s.push({type:Br.literal,value:n.getNumberFormat(t,f).format(p)})}else{if(Wn(c)){var h=c.children,v=c.value,g=i[v];if(!$r(g))throw new Jr(v,"function",a);var m=g(Xr(h,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map((function(e){return{type:"string"==typeof e?Br.literal:Br.object,value:e}})))}if(Un(c)){if(!(b=c.options[p]||c.options.other))throw new Gr(c.value,p,Object.keys(c.options),a);s.push.apply(s,Xr(b.value,t,n,r,i))}else if(qn(c)){var b;if(!(b=c.options["="+p])){if(!Intl.PluralRules)throw new Wr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Vr.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 Gr(c.value,p,Object.keys(c.options),a);s.push.apply(s,Xr(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===Br.literal&&t.type===Br.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function Yr(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 Zr(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"}(Br||(Br={}));var Qr=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===Br.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 Xr(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=Yr(e.formats,r),this.locales=n,this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Dr((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:Zr(o.number),strategy:qr.variadic}),getDateTimeFormat:Dr((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:Zr(o.dateTime),strategy:qr.variadic}),getPluralRules:Dr((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:Zr(o.pluralRules),strategy:qr.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=Fr,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 ei{constructor(e,t){void 0===t&&(t="en-US"),this.messages=void 0,this.defaultLocale=void 0,this.messages=Rt({},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 ti{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 Qr(t,this.locale),this.cache[e]=n}return n.format(t)}}const ni=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ri=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ii(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return ni.has(t)}let t=e.split("-")[0];return ri.has(t)}function oi(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:ii(e)?"rtl":"ltr"}}let ai=oi(),si=new Set;function li(){ai=oi();for(let e of si)e(ai)}const ui=t.createContext(null);function ci(){let e=function(){let e=zt(),[t,n]=o(ai);return i((()=>(0===si.size&&window.addEventListener("languagechange",li),si.add(n),()=>{si.delete(n),0===si.size&&window.removeEventListener("languagechange",li)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return r(ui)||e}const di=new WeakMap;function pi(e){let{locale:t}=ci(),n=l((()=>function(e){let t=di.get(e);return t||(t=new ei(e),di.set(e,t)),t}(e)),[e]),r=l((()=>new ti(t,n)),[t,n]);return s(((e,t)=>r.format(e,t)),[r])}let fi=new Map;function hi(e){let{locale:t}=ci(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(fi.has(n))return fi.get(n);let r=new Intl.Collator(t,e);return fi.set(n,r),r}function vi(e){return{UNSAFE_getDOMNode:()=>e.current}}function gi(e,t){return void 0===t&&(t=e),Rt({},vi(e),{focus(){t.current&&t.current.focus()}})}function mi(e){let t=a(null);return c(e,(()=>vi(t))),t}function bi(e,t){let n=a(null);return c(e,(()=>gi(n,t))),n}t.createContext(null).displayName="BreakpointContext";function yi(e,t){return n=>"rtl"===n?t:e}Rt({},{margin:["margin",Ei],marginStart:[yi("marginLeft","marginRight"),Ei],marginEnd:[yi("marginRight","marginLeft"),Ei],marginTop:["marginTop",Ei],marginBottom:["marginBottom",Ei],marginX:[["marginLeft","marginRight"],Ei],marginY:[["marginTop","marginBottom"],Ei],width:["width",Ei],height:["height",Ei],minWidth:["minWidth",Ei],minHeight:["minHeight",Ei],maxWidth:["maxWidth",Ei],maxHeight:["maxHeight",Ei],isHidden:["display",function(e){return e?"none":void 0}],alignSelf:["alignSelf",Ni],justifySelf:["justifySelf",Ni],position:["position",Oi],zIndex:["zIndex",Oi],top:["top",Ei],bottom:["bottom",Ei],start:[yi("left","right"),Ei],end:[yi("right","left"),Ei],left:["left",Ei],right:["right",Ei],order:["order",Oi],flex:["flex",function(e){if("boolean"==typeof e)return e?"1":void 0;return""+e}],flexGrow:["flexGrow",Ni],flexShrink:["flexShrink",Ni],flexBasis:["flexBasis",Ni],gridArea:["gridArea",Ni],gridColumn:["gridColumn",Ni],gridColumnEnd:["gridColumnEnd",Ni],gridColumnStart:["gridColumnStart",Ni],gridRow:["gridRow",Ni],gridRowEnd:["gridRowEnd",Ni],gridRowStart:["gridRowStart",Ni]},{backgroundColor:["backgroundColor",function(e){return"var(--spectrum-alias-background-color-"+e+", "+ki(e,"background")+")"}],borderWidth:["borderWidth",Ti],borderStartWidth:[yi("borderLeftWidth","borderRightWidth"),Ti],borderEndWidth:[yi("borderRightWidth","borderLeftWidth"),Ti],borderLeftWidth:["borderLeftWidth",Ti],borderRightWidth:["borderRightWidth",Ti],borderTopWidth:["borderTopWidth",Ti],borderBottomWidth:["borderBottomWidth",Ti],borderXWidth:[["borderLeftWidth","borderRightWidth"],Ti],borderYWidth:[["borderTopWidth","borderBottomWidth"],Ti],borderColor:["borderColor",Pi],borderStartColor:[yi("borderLeftColor","borderRightColor"),Pi],borderEndColor:[yi("borderRightColor","borderLeftColor"),Pi],borderLeftColor:["borderLeftColor",Pi],borderRightColor:["borderRightColor",Pi],borderTopColor:["borderTopColor",Pi],borderBottomColor:["borderBottomColor",Pi],borderXColor:[["borderLeftColor","borderRightColor"],Pi],borderYColor:[["borderTopColor","borderBottomColor"],Pi],borderRadius:["borderRadius",Ci],borderTopStartRadius:[yi("borderTopLeftRadius","borderTopRightRadius"),Ci],borderTopEndRadius:[yi("borderTopRightRadius","borderTopLeftRadius"),Ci],borderBottomStartRadius:[yi("borderBottomLeftRadius","borderBottomRightRadius"),Ci],borderBottomEndRadius:[yi("borderBottomRightRadius","borderBottomLeftRadius"),Ci],borderTopLeftRadius:["borderTopLeftRadius",Ci],borderTopRightRadius:["borderTopRightRadius",Ci],borderBottomLeftRadius:["borderBottomLeftRadius",Ci],borderBottomRightRadius:["borderBottomRightRadius",Ci],padding:["padding",Ei],paddingStart:[yi("paddingLeft","paddingRight"),Ei],paddingEnd:[yi("paddingRight","paddingLeft"),Ei],paddingLeft:["paddingLeft",Ei],paddingRight:["paddingRight",Ei],paddingTop:["paddingTop",Ei],paddingBottom:["paddingBottom",Ei],paddingX:[["paddingLeft","paddingRight"],Ei],paddingY:[["paddingTop","paddingBottom"],Ei],overflow:["overflow",Ni]});const xi=/(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/,wi=/^\s*\w+\(/,Si=/(static-)?size-\d+|single-line-(height|width)/g;function Ei(e){return"number"==typeof e?e+"px":xi.test(e)?e:wi.test(e)?e.replace(Si,"var(--spectrum-global-dimension-$&, var(--spectrum-alias-$&))"):"var(--spectrum-global-dimension-"+e+", var(--spectrum-alias-"+e+"))"}function ki(e,t){return void 0===t&&(t="default"),"var(--spectrum-global-color-"+e+", var(--spectrum-semantic-"+e+"-color-"+t+"))"}function Pi(e){return"default"===e?"var(--spectrum-alias-border-color)":"var(--spectrum-alias-border-color-"+e+", "+ki(e,"border")+")"}function Ti(e){return"var(--spectrum-alias-border-size-"+e+")"}function Ci(e){return"var(--spectrum-alias-border-radius-"+e+")"}function Oi(e){return e}function Ni(e){return e}var ji=n({});function Li(e){var t=e.children,n=P(e,["children"]),i=Object.assign({},r(ji));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(ji.Provider,k({value:i},{children:t}),void 0)}function Ai(e,t){var n=r(ji),i={};return n[e]&&n[e].forEach((function(e){Object.assign(i,"function"==typeof e?e(t):e)})),i}var Fi=n([980]);function Di(e){var t=e.value,n=e.children;return M.jsx(Fi.Provider,k({value:t},{children:n}),void 0)}var Ri=n({});function Ii(e){var t=e.breakpoints,n=e.children,i=e.insideForm,o=e.isDisabled,a=e.isReadOnly,s=e.isRequired,l=e.validationState,u=e.router,c=e.styles,d=e.root,p=e.ref;c&&(n=M.jsx(Li,k({},c,{children:n}),void 0)),t&&(n=M.jsx(Di,k({value:t},{children:n}),void 0));var f=r(Ri),h={ref:p,breakpoints:t,insideForm:i,isDisabled:o,isReadOnly:a,isRequired:s,validationState:l,router:u,root:d},v=Object.assign({},f);return Object.keys(h).forEach((function(e){null!=h[e]&&(v[e]=h[e])})),M.jsx(Ri.Provider,k({value:v},{children:n}),void 0)}function Mi(e){var t=r(Ri);return k(k({},t),e)}var _i={};function zi(e){var t=e.join("|");if(!_i[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 ")})),_i[t]=n}return _i[t]}var Ki={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)))"}},Vi=["top","right","bottom","left"],Ui=["rgb","rgba"],qi=["auto","max-content","min-content","none","subgrid","initial"],Bi=/("[^"]*")|('[^']*')|([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,Wi=new Map,Gi=new Map,Ji=new Map,Hi=[Gi,Wi,Ji],$i=/calc\((\d*)\)/gi;function Xi(e){return e.match(/^[a-z]/)?"[data-is-"+e+"]":e}function Yi(e,t){if(void 0===t&&(t=0),"number"==typeof e&&(e=String(e)),"string"!=typeof e)return{values:[],mods:[],all:[],value:""};var n=Hi[t];if(!n.has(e)){n.size>1e4&&n.clear();var r=[],i=[],o=[],a=1!==t,s="",l=-1,u=0,c="",d="",p="",f="",h=void 0;for(Bi.lastIndex=0,e=e.replace(/@\(/g,"var(--");h=Bi.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)s+=(m||g)+" ";else if(b)p=b.slice(0,-1),s+=b,u++;else if(y)d=2===t?y:Zi(y,!1).color;else if(w)u||qi.includes(w)?s+=w+" ":(r.push(w),i.push(w),c+=w+" ");else if(T)"("===T&&(~l||(l=u,s+="calc"),u++),")"===T&&u&&(s=s.trim(),u>0&&u--,u===l&&(l=-1)),")"!==T||u||(f=p,p=""),s+=T+(")"===T?" ":"");else if(P){if(!~l&&a)if(s){if(s.includes("(")){var O=s.lastIndexOf("(");s=s.slice(0,O)+"(calc("+s.slice(O+1),l=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)),l=u,u++,s="calc(("+j+") ")}s+=P+" "}else if(S)if(k&&Ki[k]){var L=io(E,k);!~l&&L.startsWith("(")&&(s+="calc"),s+=L+" "}else s+=S+" ";else x?(x=x.replace("@","--"),s+="var"!==p?"var("+x+") ":x+" "):C&&(~l?(l=-1,u--,s=s.trim()+"), "):s=s.trim()+", ");if(s&&!u){var A=no(s);Ui.includes(f)?d=A:A.startsWith("color(")?d=Zi(A=A.slice(6,-1)).color:(","!==A&&(o.push(A),i.push(A)),c+=A+" "),s=""}}if(u)(A=no(""+s.trim()+")".repeat(u))).startsWith("color(")?d=Zi(A=A.slice(6,-1)).color:(","!==A&&(o.push(A),i.push(A)),c+=A);n.set(e,{values:o,mods:r,all:i,value:(c+" "+d).trim(),color:d})}return n.get(e)}function Zi(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?Qi(i,Math.round(r)/100):(o=i,a=null,s=eo("#"+i),l=s?", "+s:"","var(--"+o+"-color"+(a?", var(--"+a+l+")":l)+")"),name:i,opacity:null!=r?r:100}}var o,a,s,l,u,c,d=Yi(e),p=d.values,f=d.mods,h=d.color;return h?{color:(h.startsWith("var(")?h:eo(h))||h}:(p.forEach((function(e){e.match(/^((var|rgb|rgba|hsl|hsla)\(|#[0-9a-f]{3,6})/)?h=e.startsWith("var")?e:eo(e):e.endsWith("%")&&(c=parseInt(e))})),h?{color:h}:(u=u||f[0])?c?{color:Qi(u,Math.round(c)/100),name:u,opacity:c}:{name:u,color:"current"===u?"currentColor":"inherit"===u?"inherit":"var(--"+u+"-color)"}:{})}function Qi(e,t,n,r){var i=r?", "+r:"";return"rgba(var(--"+e+"-color-rgb"+(n?", var(--"+n+"-color-rgb, "+i+")":i)+"), "+t+")"}function eo(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 to(e){return e.match(/\d+/g).map((function(e){return parseInt(e)})).slice(0,3)}function no(e){return e.trim().replace($i,(function(e,t){return t}))}function ro(e,t){return e.filter((function(e){return t.includes(e)}))}function io(e,t){var n=Ki[t];return"function"==typeof n?n(e):"1"===e||1===e?n:"("+e+" * "+n+")"}function oo(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,s=e[n];i&&i.includes(n)||t.includes(a)&&(null!=s&&!1!==s?o[a]=s:a in o&&delete o[a])}),{}),o}function ao(e,t){if(void 0===t&&(t=""),!e)return"";if(Array.isArray(e))return e.reduce((function(e,n){return e+ao(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 so(e,t){void 0===t&&(t=1e3);var n=vo((function(t){return ao(e(t))}),t),r=vo((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=po(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 ho(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(Xi).join("")+(r.notMods||[]).map((function(e){return":not("+Xi(e)+")"})).join("");return""+t+e+i+n+"{\n"+r.value+"}\n"}),"")}("&&",a,t)}),t);return Object.assign(r,{__lookupStyles:e.__lookupStyles})}var lo=/([&|!^])|([()])|([a-z0-6-]+)|(:[a-z0-6-]+)|(\.[a-z0-6-]+)|(\[[^\]]+])/gi,uo=["!","&","|","^"];function co(e){return 1===e.length?e[0]:(uo.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 po=vo((function(e,t){var n=e.replace(/,/g,"|").match(lo);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(co(o)),o=i[a];break;default:e.length>1&&(r.includes(e)||r.push(e)),o.push(e)}}));a;)a--,i[a].push(co(o)),o=i[a];return{tokens:n,mods:r,model:co(i[0]),value:t}}));var fo={"!":function(e){return!e},"^":function(e,t){return e^t},"|":function(e,t){return e|t},"&":function(e,t){return e&t}};function ho(e,t){if(!e)return!0;if(!Array.isArray(e))return"function"==typeof t?!!t(e):!!t[e];var n=fo[e[0]];n||console.warn("CubeUIKit: unexpected compute method in the model",e);var r=e[1];if(r="object"==typeof r?!!ho(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?!!ho(i,t):"function"==typeof t?!!t(i):!!t[i])}function vo(e,t){void 0===t&&(t=1e3);var n={},r=0;return function(i,o){var a=[i,o],s="string"!=typeof a[0]||o?JSON.stringify(a):a[0];return n[s]||(r>t&&(n={},r=0),r++,n[s]=o?e(i,o):e(i)),n[s]}}var go={};function mo(e,t,n){var r=e+"."+(t||"");return go[r]||(go[r]=so((function(r){var i,o,a,s,l,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=eo(u=u.trim()),f=Zi(u),h=f.color,v=f.name;return v&&p?((i={})[d]="var(--"+v+"-color, "+p+")",i[d+"-rgb"]="var(--"+v+"-color-rgb, "+to(p).join(", ")+")",i):v?((o={})[d]="var(--"+v+"-color)",o[d+"-rgb"]="var(--"+v+"-color-rgb)",o):p?((a={})[d]=p,a[d+"-rgb"]=to(p).join(", "),a):((s={})[d]=h,s)}var g=Yi(u,1).value;return(l={})[d]=g,l}}})),go[r].__lookupStyles=[e]),go[r]}var bo={};function yo(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=so(n),Array.isArray(e)&&e.forEach((function(e){bo[e]||(bo[e]=[]),bo[e].push(n)}))}function xo(e,t,n){var r=mo(e,t,n);bo[e]||(bo[e]=[]),bo[e].push(r)}function wo(e){return e.startsWith("&")||e.startsWith(".")||e.startsWith("[")}var So={},Eo=0;function ko(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}),s="",l=[];if(!So[a]){++Eo>1e3&&(Eo=0,So={});var u=Object.keys(e),c=u.filter((function(e){return wo(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+=ko(e[n],t,r)})),u.forEach((function(t){if(!wo(t)){var n=bo[t];n||(n=bo[t]=[mo(t)]),n.forEach((function(t){if(!l.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}),{});l.push({handler:t,styleMap:r,isResponsive:n})}}))}})),l.forEach((function(e){var t=e.handler,r=e.styleMap,a=e.isResponsive,l=t.__lookupStyles;if(a){var u=l.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 l.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 s+=t(r,n)||""})),So[a]="outline: none;\n"+s+(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 So[a]}function Po(){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 s=a.value;"function"==typeof s&&s.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 To(e){return d.toArray(e).every((function(e){return!p(e)}))}function Co(){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 s=a.value;for(var l in i)/^on[A-Z]/.test(l)&&"function"==typeof i[l]&&s&&"function"==typeof s[l]?i[l]=Wt(i[l],s[l]):"className"===l&&"string"==typeof i.className&&s&&"string"==typeof s.className?i[l]=Dt(i.className,s.className):"styles"===l&&"object"==typeof i.styles&&s&&"object"==typeof s.styles?i[l]=k(k({},i.styles),s.styles):"id"===l&&i.id&&(null==s?void 0:s.id)?i.id=qt(i.id,null==s?void 0:s.id):i[l]=s&&void 0!==s[l]?s[l]:i[l];for(var l in s)void 0===i[l]&&(i[l]=s[l])}}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 Oo(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t["data-is-"+n]=""),t}),{})}var No=n({});function jo(e,t){var n=e.slot||t;return Gt((r(No)||{})[n],e)}function Lo(e){var t=r(No)||{},n=e.slots,i=void 0===n?{}:n,o=e.children,a=l((function(){return Object.keys(t).concat(Object.keys(i)).reduce((function(e,n){var r;return k(k({},e),((r={})[n]=Gt(t[n]||{},i[n]||{}),r))}),{})}),[t,i]);return M.jsx(No.Provider,k({value:a},{children:o}),void 0)}function Ao(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(No.Provider,k({value:{}},{children:r}),void 0)}var Fo="undefined"!=typeof window?e.useLayoutEffect:function(){};function Do(){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 Ro={inline:"block","inline-grid":"grid","inline-flex":"flex"},Io={block:"inline-block",grid:"inline-grid",flex:"inline-flex"},Mo=m.div((function(e){return e.css})),_o=h((function(e,t){var n=e.as,i=e.styles,o=e.breakpoints,a=e.block,s=e.mods,l=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?Ro[v.display||"inline"]:"block"),l&&(v.display="string"==typeof v.display?Io[v.display||"block"]:"inline-block");var g=r(Fi);return f=""+(f||"")+ko(v,zi(o||g)),s&&Object.assign(h,Oo(s)),M.jsx(Mo,k({as:n,"data-qa":d,"data-qaval":p},h,{hidden:u,disabled:c,ref:t,css:f}),void 0)})),zo=["display","font","preset","hide","opacity"],Ko=["gridArea","flexGrow","flexShrink","order","gridColumn","gridRow","placeSelf","zIndex","margin"],Vo=["reset","padding","shadow","border","radius","opacity","overflow","styledScrollbar","hide","outline","textAlign"],Uo=["color","fill"],qo=["textTransform","fontWeight","fontStyle"],Bo=["width","height","flexBasis"],Wo=["flow","placeItems","placeContent","alignItems","alignContent","justifyItems","justifyContent","gap","gridColumns","gridRows","gridTemplate","gridAreas"],Go=j(j(j(j(j(j([],N(zo),!1),N(Uo),!1),N(Bo),!1),N(Ko),!1),N(Vo),!1),N(Wo),!1),Jo=j(j([],N(Ko),!1),N(Bo),!1),Ho=new Set(["id"]),$o=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Xo=new Set(["as","css","qa","mods","qaVal","hidden","isHidden","disabled","isDisabled","children","style","className","href","target"]),Yo=new Set(["onPress","onHoverStart","onHoverEnd","onPressStart","onPressEnd"]),Zo=/^((data-).*)$/,Qo=/^on[A-Z].+$/;function ea(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)&&(Ho.has(a)||Xo.has(a)||n&&$o.has(a)||i&&Qo.test(a)&&!Yo.has(a)||(null==r?void 0:r.has(a))||Zo.test(a))&&(o[a]=e[a]);return o}var ta=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,s="",l="";if(s=(n=t(e))[1],r=n[2],i=n[3],o=n[4],a=n[5],s&&s.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(s.toLowerCase()))return l+=s+":",r&&r.length&&(l+="//"+r),l+=i,o&&o.length&&(l+="?"+o),a&&a.length&&(l+="#"+a),l}}}function r(e,r){if(n(e)){var i,o,a,s,l="",u="",c="",d="";if(l=(i=t(e))[1],u=i[2],o=i[3],a=i[4],s=i[5],l){if(r){if("https"!=l.toLowerCase())return}else if("http"!=l.toLowerCase())return;if(u)return/:(\d+)$/.test(u)&&(c=u.match(/:(\d+)$/)[0],u=u.replace(/:\d+$/,"")),d+=l+":",d+="//"+u,c&&(d+=c),d+=o,a&&a.length&&(d+="?"+a),s&&s.length&&(d+="#"+s),d}}}function i(e){return r(e,!0)}function o(e){return r(e)||i(e)}}(e)})),na=/^[-!#$%&'*+\/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])+$/,ra={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&&ta.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(!na.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}},ia=Object.keys(ra),oa={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,ia.includes(n)?[2,ra[n](e)?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))}},aa=Object.keys(oa);function sa(e,t,n){return T(this,void 0,void 0,(function(){var r,i,o,a,s,l;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(aa),i=r.next(),u.label=2;case 2:return i.done?[3,5]:(o=i.value)in t?[4,(0,oa[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(),s={error:a},[3,8];case 7:try{i&&!i.done&&(l=r.return)&&l.call(r)}finally{if(s)throw s.error}return[7];case 8:return[2]}}))}))}function la(e,t,n){return T(this,void 0,void 0,(function(){var r,i,o,a,s,l,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,sa(e,t,n).catch((function(e){throw"string"!=typeof e&&(e=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 s=c.sent(),l={error:s},[3,8];case 7:try{o&&!o.done&&(u=i.return)&&u.call(i)}finally{if(l)throw l.error}return[7];case 8:return[2]}}))}))}function ua(e,t){return JSON.stringify(e)===JSON.stringify(t)}var ca=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.setFieldValues=this.setFieldValues.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.setInitialFieldValues=this.setInitialFieldValues.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.getFieldsValue())]:[2]}))}))},e.prototype.setFieldValues=function(e,t){var n=this;void 0===t&&(t=!1);var r=!1;Object.keys(e).forEach((function(i){var o=n.fields[i];o&&!ua(o.value,e[i])&&(r=!0,o.value=e[i],t&&(o.touched=t))})),r&&(this.forceReRender(),t&&this.onValuesChange&&this.onValuesChange(this.getFieldsValue()))},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.setFieldValue=function(e,t,n){void 0===n&&(n=!1);var r=this.fields[e];r&&!ua(t,r.value)&&(r.value=t,n&&(r.touched=n),this.forceReRender(),n&&this.onValuesChange&&this.onValuesChange(this.getFieldsValue()))},e.prototype.getFieldInstance=function(e){return this.fields[e]},e.prototype.setInitialFieldValues=function(e){this.initialFields=e||{}},e.prototype.resetFields=function(){this.setFieldValues(this.initialFields)},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,la(t.value,t.rules,this).then((function(){t.errors&&!t.errors.length||(t.errors=[],n.forceReRender())})).catch((function(e){return t.errors&&ua(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.all(n.map((function(e){return t.validateField(e).catch((function(t){return r[e]=t,Promise.reject()}))}))).catch((function(){return Promise.reject(r)}))},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){this.fields[e]||(this.fields[e]=this._createField(e)),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 da(e,t,n){void 0===n&&(n={});var r=n.onSubmit,i=n.onValuesChange,s=a(),l=N(o({}),2)[1];if(!s.current){if(e)s.current=e;else{e=s.current=new ca((function(){l({})}))}e.ref=t,r&&(e.onSubmit=r),i&&(e.onValuesChange=i)}return[s.current]}function pa(e){return void 0===e&&(e=30),new Promise((function(t){setTimeout(t,e)}))}var fa=n({});function ha(e){var t=r(fa);return k(k({},t),e)}var va=new Set(["action","autoComplete","encType","method","target"]),ga={display:"block",flow:"column",gap:"2x"};var ma=Object.assign(h((function(e,t){var n,r=this;(e=Mi(e)).qa;var o,a,s=e.name,l=e.children,u=e.labelPosition,c=void 0===u?"top":u,d=e.isRequired,p=e.necessityIndicator,f=e.isDisabled,h=e.isReadOnly,v=e.validationState,g=e.labelStyles,m=e.validateTrigger,b=e.defaultValues,y=e.onValuesChange,x=e.requiredMark,w=void 0===x||x,S=e.form,E=e.onSubmit,O=e.onSubmitFailed,j=P(e,["qa","name","children","labelPosition","isRequired","necessityIndicator","isDisabled","isReadOnly","validationState","labelStyles","validateTrigger","defaultValues","onValuesChange","requiredMark","form","onSubmit","onSubmitFailed"]);t=Do(t),!E&&!O||j.action||(a=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==S?void 0:S.validateFields().then((function(){return T(r,void 0,void 0,(function(){return C(this,(function(e){switch(e.label){case 0:return[4,pa()];case 1:if(e.sent(),!S||S.isSubmitting)return[3,5];e.label=2;case 2:return e.trys.push([2,,4,5]),S.setSubmitting(!0),[4,null==E?void 0:E(S.getFieldsValue())];case 3:return e.sent(),[3,5];case 4:return S.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,pa()];case 1:if(t.sent(),e instanceof Error)throw e;return null==O||O(e),[2]}}))}))}))}),n=N(da(S,t&&t.current,{onSubmit:a,onValuesChange:y}),1),S=n[0],o=oo(j,Go,ga);var L=mi(t),A={labelPosition:c,labelStyles:g,necessityIndicator:p,validateTrigger:m,requiredMark:w,form:S,idPrefix:s};return i((function(){S&&b&&(S.setInitialFieldValues(b),S.resetFields())}),[]),M.jsx(_o,k({as:"form",qa:"Form"},ea(j,{propNames:va}),{onSubmit:a,noValidate:!0,styles:o,ref:L,mods:{"has-sider":"side"===c}},{children:M.jsx(fa.Provider,k({value:A},{children:M.jsx(Ii,k({insideForm:!0,isDisabled:f,isReadOnly:h,isRequired:d,validationState:v},{children:l}),void 0)}),void 0)}),void 0)})),{useForm:da});let ba="default",ya="";function xa(){"default"===ba&&(ya=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),ba="disabled"}function wa(){"disabled"===ba&&(ba="restoring",setTimeout((()=>{nn((()=>{"restoring"===ba&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=ya||""),ya="",ba="default")}))}),300))}function Sa(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}const Ea=t.createContext(null);function ka(e){let t=function(e){let t=r(Ea);if(t){let{register:n}=t;e=Gt(B(t,["register"]),e),n()}return on(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=B(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=s(((t,n,r,i)=>{e.current.set(r,{type:n,eventTarget:t,options:i}),t.addEventListener(n,r,i)}),[]),n=s(((t,n,r,i)=>{t.removeEventListener(n,r,i),e.current.delete(r)}),[]),r=s((()=>{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=l((()=>{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:s}=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&&!s&&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(Oa(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),wa())},o={onKeyDown(n){Ta(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){Ta(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(Oa(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||!Sa(i.nativeEvent)||(f||v||Yt(i.currentTarget),t(i,"virtual"),r(i,"virtual"),n(i,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{e.isPressed&&Ta(t)&&(t.preventDefault(),t.stopPropagation(),e.isPressed=!1,n(Oa(e.target,t),"keyboard",t.target===e.target),E(),(t.target===e.target&&Pa(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)&&(ja(n.target)&&n.preventDefault(),e.pointerType=La(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||Yt(n.currentTarget),xa(),t(n,e.pointerType),S(document,"pointermove",a,!1),S(document,"pointerup",s,!1),S(document,"pointercancel",l,!1)))},o.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(ja(e.target)&&e.preventDefault(),e.stopPropagation())},o.onPointerUp=t=>{t.currentTarget.contains(t.target)&&0===t.button&&Na(t,t.currentTarget)&&r(t,e.pointerType||(La(t.nativeEvent)?"virtual":t.pointerType))};let a=r=>{r.pointerId===e.activePointerId&&(Na(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(Oa(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(Oa(e.target,r),e.pointerType,!1),b.current.shouldCancelOnPointerExit&&i(r)))},s=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(Na(t,e.target)?n(Oa(e.target,t),e.pointerType):e.isOverTarget&&n(Oa(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),wa())},l=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)&&(ja(n.target)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=Sa(n.nativeEvent)?"virtual":"mouse",f||v||Yt(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:(Na(t,e.target)?n(Oa(e.target,t),e.pointerType):e.isOverTarget&&n(Oa(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||Yt(n.currentTarget),xa(),t(n,e.pointerType),S(window,"scroll",s,!0))},o.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let o=Ca(r.nativeEvent,e.activePointerId);o&&Na(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=Ca(t.nativeEvent,e.activePointerId);i&&Na(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,wa(),E()},o.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&i(t))};let s=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((()=>()=>wa()),[]),{isPressed:h||y,pressProps:Gt(m,k)}}function Pa(e){return"A"===e.tagName&&e.hasAttribute("href")}function Ta(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||Pa(r)&&("button"!==a||"Enter"===t)||"link"===a&&"Enter"!==t)}function Ca(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 Oa(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Na(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 ja(e){return!e.closest('[draggable="true"]')}function La(e){return 0===e.width&&0===e.height}Ea.displayName="PressResponderContext";const Aa=t.forwardRef(((e,n)=>{let{children:o}=e,s=B(e,["children"]),l=a(!1),u=r(Ea),c=Gt(u||{},Rt({},s,{ref:n||(null==u?void 0:u.ref),register(){l.current=!0,u&&u.register()}}));return on(u,n),i((()=>{l.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(Ea.Provider,{value:c},o)}));function Fa(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 Da=null,Ra=new Set,Ia=!1,Ma=!1,_a=!1;const za={Tab:!0,Escape:!0};function Ka(e,t){for(let n of Ra)n(e,t)}function Va(e){Ma=!0,function(e){return!(e.metaKey||!fn()&&e.altKey||e.ctrlKey||"keyup"===e.type&&("Control"===e.key||"Shift"===e.key))}(e)&&(Da="keyboard",Ka("keyboard",e))}function Ua(e){Da="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ma=!0,Ka("pointer",e))}function qa(e){Sa(e)&&(Ma=!0,Da="virtual")}function Ba(e){e.target!==window&&e.target!==document&&(Ma||_a||(Da="virtual",Ka("virtual",e)),Ma=!1,_a=!1)}function Wa(){Ma=!1,_a=!0}function Ga(){if("undefined"==typeof window||Ia)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Ma=!0,e.apply(this,arguments)},document.addEventListener("keydown",Va,!0),document.addEventListener("keyup",Va,!0),document.addEventListener("click",qa,!0),window.addEventListener("focus",Ba,!0),window.addEventListener("blur",Wa,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Ua,!0),document.addEventListener("pointermove",Ua,!0),document.addEventListener("pointerup",Ua,!0)):(document.addEventListener("mousedown",Ua,!0),document.addEventListener("mousemove",Ua,!0),document.addEventListener("mouseup",Ua,!0)),Ia=!0}function Ja(){return"pointer"!==Da}function Ha(){return Da}function $a(e){void 0===e&&(e={});let{isTextInput:t,autoFocus:n}=e,[r,a]=o(n||Ja());var s,l,u;return s=e=>{a(e)},l=[t],u={isTextInput:t},Ga(),i((()=>{let e=(e,t)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!za[n.key])})(null==u?void 0:u.isTextInput,e,t)&&s(Ja())};return Ra.add(e),()=>Ra.delete(e)}),l),{isFocusVisible:r}}function Xa(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?Ga():document.addEventListener("DOMContentLoaded",Ga));let Ya=!1,Za=0;function Qa(){Ya=!0,setTimeout((()=>{Ya=!1}),50)}function es(e){"touch"===e.pointerType&&Qa()}function ts(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",es):document.addEventListener("touchend",Qa),Za++,()=>{Za--,Za>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",es):document.removeEventListener("touchend",Qa))}}function ns(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:s}=e,[u,c]=o(!1),d=a({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;i(ts,[]);let{hoverProps:p,triggerHoverEnd:f}=l((()=>{let e=(e,r)=>{if(d.pointerType=r,s||"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=>{Ya&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(o.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||Ya||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!s&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:o,triggerHoverEnd:i}}),[t,n,r,s,d]);return i((()=>{s&&f({target:d.target},d.pointerType)}),[s]),{hoverProps:p,isHovered:u}}function rs(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 is(e){if(!e)return;let t=!0;return n=>{let r=Rt({},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 os(e,t){var n=e.isDisabled;void 0===t&&(t=!1),i((function(){s(!1)}),[n]);var r=N(o(!1),2),a=r[0],s=r[1],l=$a({}).isFocusVisible;return{focusProps:Fa({onFocusChange:s}).focusProps,isFocused:a&&(!t||l)}}var as={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))"},ss=h((function(e,t){var n=e.onWidthChange,r=e.outerGap,o=void 0===r?"1bw":r,a=e.children,s=P(e,["onWidthChange","outerGap","children"]),l=oo(s,Go,as),u=Do(t);return i((function(){(null==u?void 0:u.current)&&n&&n(u.current.offsetWidth)}),[a,u,n]),M.jsx(_o,k({},ea(s,{eventProps:!0}),{styles:l,ref:u,style:{"--prefix-gap":Yi(o).value}},{children:a}),void 0)})),ls={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))"},us=h((function(e,t){var n=e.onWidthChange,r=e.outerGap,o=void 0===r?"1bw":r,a=e.children,s=P(e,["onWidthChange","outerGap","children"]),l=oo(s,Go,ls),u=Do(t);return i((function(){u&&u.current&&n&&n(u.current.offsetWidth)}),[a,u,n]),M.jsx(_o,k({},ea(s,{eventProps:!0}),{styles:l,ref:u,style:{"--suffix-gap":Yi(o).value}},{children:a}),void 0)})),cs=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),ds={"(required)":"(required)","(optional)":"(optional)"},ps={fontWeight:400,preset:"default",color:{"":"#dark.85",invalid:"#danger-text",disabled:"#dark.30"},whiteSpace:"nowrap"},fs={display:"block",fontWeight:600,preset:"default",padding:{"":"0",side:"(1x - 1bw) 0"},color:{"":"#dark",invalid:"#danger-text",disabled:"#dark.30"},whiteSpace:"nowrap"};var hs=h((function(e,t){var n=(e=Mi(e)).as,r=e.qa,i=e.children,o=e.labelPosition,a=void 0===o?"top":o,s=e.isRequired,l=e.necessityIndicator,u=void 0===l?null!=s?"icon":null:l,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=mi(t),y=Ai("Label",m),x=oo(m,Go,k(k({},fs),y)),w=function(e){return ds[e]},S=w(s?"(required)":"(optional)"),E=M.jsx("span",k({"aria-label":d?w("(required)"):void 0},{children:cs}),void 0);return M.jsx(_o,k({as:n||"label",qa:r||"Label"},ea(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&&s)&&" ","label"===u&&M.jsx("span",k({"aria-hidden":d?void 0:s},{children:S}),void 0),"icon"===u&&s&&E]},void 0)}),void 0)})),vs={display:"grid",gridColumns:{"":"1fr","has-sider":"auto 1fr"},gap:{"":"1x","has-sider":"@(column-gap, 1x)"},placeItems:"baseline stretch"},gs={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 ms=h((function(e,t){var n=e.as,r=e.labelPosition,i=e.label,o=e.insideForm,a=e.styles,s=e.isRequired,l=e.isDisabled,u=e.labelStyles,c=e.necessityIndicator,d=e.labelProps,p=e.fieldProps,f=e.message,h=e.messageStyles,v=e.Component,g=e.validationState,m=e.requiredMark,b=void 0===m||m,y={"has-sider":"side"===r&&i,"inside-form":o,invalid:"invalid"===g,valid:"valid"===g};return M.jsxs(_o,k({as:n||"div",qa:"Field",ref:t,mods:y,styles:k(k({},vs),a)},p,{children:[i&&M.jsx(hs,k({as:"label"===n?"div":"label",styles:u,labelPosition:r,isRequired:!!b&&s,isDisabled:l,necessityIndicator:c,validationState:g},d,{children:i}),void 0),v,f&&!l&&M.jsx(_o,k({mods:y,styles:k(k({},gs),h),role:"invalid"===g?"alert":void 0},{children:f}),void 0)]}),void 0)})),bs={display:"flex",gap:!0},ys={align:"alignItems",justify:"justifyItems"},xs=h((function(e,t){var n=e.direction?"vertical"===e.direction?"column":"row":e.flow||"row",r=oo(e,Go,k(k({},bs),{flow:n,alignItems:"row"===n?"center":"stretch"}),ys);return M.jsx(_o,k({},ea(e,{eventProps:!0}),{styles:r,ref:t}),void 0)})),ws={display:"block"},Ss=h((function(e,t){var n=oo(e,Go,ws);return M.jsx(_o,k({},ea(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),Es={display:"grid",position:"relative"},ks=j(j([],N(Vo),!1),["resize"],!1),Ps={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 Ts=h((function(e,t){var n=(e=ha(e=Mi(e))).qa,r=e.label,i=e.labelPosition,s=void 0===i?"top":i,l=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,C=e.insideForm;e.value;var O=e.inputStyles,j=void 0===O?{}:O,L=e.wrapperStyles,A=void 0===L?{}:L,F=e.suffix,D=e.suffixPosition,R=void 0===D?"before":D,I=e.wrapperRef,_=e.requiredMark,z=void 0===_||_,K=e.rows,V=void 0===K?1:K,U=e.size,q=P(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","necessityLabel","validationState","message","prefix","isDisabled","multiLine","autoFocus","labelProps","inputProps","wrapperProps","inputRef","isLoading","loadingIndicator","insideForm","value","inputStyles","wrapperStyles","suffix","suffixPosition","wrapperRef","requiredMark","rows","size"]),B=N(o(0),2),W=B[0],G=B[1],J=N(o(0),2),H=J[0],$=J[1],X=oo(q,Ko),Y=Ai("Input",q);j=oo(q,ks,k(k(k({},Ps),Y),j)),A=k(k({},Es),A),g&&(j.paddingLeft=H+"px"),(h||E||F)&&(j.paddingRight=W+"px");var Z=b?"textarea":"input",Q=os({isDisabled:m}),ee=Q.isFocused,te=Q.focusProps,ne=ns({isDisabled:m}),re=ne.hoverProps,ie=ne.isHovered,oe=a(null),ae=a(null);S=S||ae,c(t,(function(){return k(k({},gi(oe,S)),{select:function(){(null==S?void 0:S.current)&&S.current.select()},getInputElement:function(){return null==S?void 0:S.current}})}));var se="invalid"===h,le=se?M.jsx(jt,{style:{color:"var(--danger-color)"}},void 0):M.jsx(He,{style:{color:"var(--success-color)"}},void 0),ue=f(le);F="string"==typeof F?M.jsx(Ss,k({padding:"1x right"},{children:F}),void 0):F;var ce=M.jsxs(_o,k({ref:I,qa:(n||"TextInput")+"Wrapper",mods:{invalid:se,valid:"valid"===h,loadable:!!T,multiline:b},"data-size":U,styles:A},w,{children:[M.jsx(_o,k({qa:n||"TextInput",as:Z},Co(x,te,re),{ref:S,rows:b?V:void 0,mods:{invalid:se,valid:"valid"===h,disabled:m,hovered:ie,focused:ee},"data-size":U,styles:j}),void 0),M.jsx(ss,k({padding:"0 1x 0 1.5x",onWidthChange:$,opacity:!!m&&"@disabled-opacity",placeItems:"center"},{children:"string"==typeof g?M.jsx(Ss,k({padding:"1x left"},{children:g}),void 0):g}),void 0),M.jsxs(us,k({padding:"1x left",onWidthChange:G,opacity:!!m&&"@disabled-opacity"},{children:["before"===R?F:null,M.jsxs(xs,k({gap:!1,padding:"0 1.5x 0 0"},{children:[h&&!E?ue:null,E&&M.jsx(kt,{},void 0)]}),void 0),"after"===R?F:null]}),void 0)]}),void 0);return M.jsx(ms,k({},{labelPosition:s,label:r,insideForm:C,styles:X,isRequired:u,labelStyles:l,necessityIndicator:d,necessityLabel:p,labelProps:y,isDisabled:m,validationState:h,message:v,requiredMark:z,Component:ce,ref:oe}),void 0)}));function Cs(e){if("virtual"===Ha()){let t=document.activeElement;nn((()=>{document.activeElement===t&&document.contains(e)&&Yt(e)}))}else Yt(e)}function Os(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||Os(e.parentElement,e))}const Ns=t.createContext(null);let js=null,Ls=new Map;function As(e){let{children:n,contain:o,restoreFocus:s,autoFocus:l}=e,u=a(),c=a(),d=a([]),p=r(Ns),f=null==p?void 0:p.scopeRef;Kt((()=>{let e=u.current.nextSibling,t=[];for(;e&&e!==c.current;)t.push(e),e=e.nextSibling;d.current=t}),[n,f]),Kt((()=>(Ls.set(d,f),()=>{d!==js&&!zs(d,js)||f&&!Ls.has(f)||(js=f),Ls.delete(d)})),[d,f]),function(e,t){let n=a(),r=a(null);Kt((()=>{let i=e.current;if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==js)return;let n=document.activeElement,r=e.current;if(!Ms(n,r))return;let i=Us(Is(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&&Ks(o,!0)},a=t=>{!js||zs(js,e)?(js=e,n.current=t.target):e!==js||_s(t.target,e)?e===js&&(n.current=t.target):n.current?n.current.focus():js&&Vs(js.current)},s=t=>{r.current=requestAnimationFrame((()=>{e!==js||_s(document.activeElement,e)||(js=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",s,!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",s,!1)))}}),[e,t]),i((()=>()=>cancelAnimationFrame(r.current)),[r])}(d,o),function(e,t,n){Kt((()=>{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(!Ms(t,r))return;let n=Us(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||!Ms(o,r))&&i){n.currentNode=i;do{o=e.shiftKey?n.previousNode():n.nextNode()}while(Ms(o,r));e.preventDefault(),e.stopPropagation(),o?Ks(o,!0):!function(e){for(let t of Ls.keys())if(Ms(e,t.current))return!0;return!1}(i)?t.blur():Ks(i,!0)}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0),t&&i&&Ms(document.activeElement,r)&&requestAnimationFrame((()=>{document.body.contains(i)&&Ks(i)}))}}),[e,t,n])}(d,s,o),function(e,n){const r=t.useRef(n);i((()=>{r.current&&(js=e,Ms(document.activeElement,js.current)||Vs(e.current)),r.current=!1}),[])}(d,l);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,s=n[0].previousElementSibling,l=Us(Is(n),{tabbable:i},n);l.currentNode=Ms(a,n)?a:s;let u=l.nextNode();return!u&&o&&(l.currentNode=s,u=l.nextNode()),u&&Ks(u,!0),u},focusPrevious(t){void 0===t&&(t={});let n=e.current,{from:r,tabbable:i,wrap:o}=t,a=r||document.activeElement,s=n[n.length-1].nextElementSibling,l=Us(Is(n),{tabbable:i},n);l.currentNode=Ms(a,n)?a:s;let u=l.previousNode();return!u&&o&&(l.currentNode=s,u=l.previousNode()),u&&Ks(u,!0),u},focusFirst(t){void 0===t&&(t={});let n=e.current,{tabbable:r}=t,i=Us(Is(n),{tabbable:r},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&Ks(o,!0),o},focusLast(t){void 0===t&&(t={});let n=e.current,{tabbable:r}=t,i=Us(Is(n),{tabbable:r},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&Ks(o,!0),o}}}(d);return t.createElement(Ns.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 Fs=["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]"],Ds=Fs.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Fs.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Rs=Fs.join(':not([hidden]):not([tabindex="-1"]),');function Is(e){return e[0].parentElement}function Ms(e,t){return t.some((t=>t.contains(e)))}function _s(e,t){for(let n of Ls.keys())if((n===t||zs(t,n))&&Ms(e,n.current))return!0;return!1}function zs(e,t){let n=Ls.get(t);return!!n&&(n===e||zs(e,n))}function Ks(e,t){if(void 0===t&&(t=!1),null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{Cs(e)}catch(e){}}function Vs(e){let t=e[0].previousElementSibling,n=Us(Is(e),{tabbable:!0},e);n.currentNode=t,Ks(n.nextNode())}function Us(e,t,n){let r=null!=t&&t.tabbable?Rs:Ds,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)&&Os(e)&&(!n||Ms(e,n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return null!=t&&t.from&&(i.currentNode=t.from),i}let qs=t.createContext(null);function Bs(e,n){let{children:r}=e,i=Rt({},B(e,["children"]),{ref:n});return t.createElement(qs.Provider,{value:i},r)}let Ws=t.forwardRef(Bs);function Gs(e,t){let{focusProps:n}=Fa(e),{keyboardProps:o}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:is(e.onKeyDown),onKeyUp:is(e.onKeyUp)}}}(e),s=Gt(n,o),l=function(e){let t=r(qs)||{};return on(t,e),B(t,["ref"])}(t),u=e.isDisabled?{}:l,c=a(e.autoFocus);return i((()=>{c.current&&t.current&&t.current.focus(),c.current=!1}),[]),{focusableProps:Gt(Rt({},s,{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),u)}}function Js(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Ut(t);let a=Ut(),s={};return n?(r=r?r+" "+a:a,s={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:s,fieldProps:rn({id:t,"aria-label":i,"aria-labelledby":r})}}function Hs(e){let{description:t,errorMessage:n}=e,{labelProps:r,fieldProps:i}=Js(e),o=Bt(),a=Bt();i=Gt(i,{"aria-describedby":[o,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0});let s={},l={};return t&&(s.id=o),n&&(l.id=a),{labelProps:r,fieldProps:i,descriptionProps:s,errorMessageProps:l}}function $s(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,validationState:a,type:s="text",onChange:l=(()=>{})}=e,{focusableProps:u}=Gs(e,t),{labelProps:c,fieldProps:d,descriptionProps:p,errorMessageProps:f}=Hs(e),h=Xt(e,{labelable:!0});const v={type:s,pattern:e.pattern};return{labelProps:c,inputProps:Gt(h,"input"===n&&v,Rt({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=>l(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 Xs(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}var Ys=h((function(e,t){e=Mi(e);var n=a(null),r=$s(e,n),i=r.labelProps,o=r.inputProps;return M.jsx(Ts,k({},e,{labelProps:i,inputProps:o,ref:t,inputRef:n}),void 0)}));function Zs(e,t){let n,{elementType:r="button",isDisabled:i,onPress:o,onPressStart:a,onPressEnd:s,onPressChange:l,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}=ka({onPressStart:a,onPressEnd:s,onPressChange:l,onPress:o,isDisabled:i,preventFocusOnPress:u,ref:t}),{focusableProps:m}=Gs(e,t),b=Gt(m,v);return b=Gt(b,Xt(e,{labelable:!0})),{isPressed:g,buttonProps:Gt(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"))}})}}function Qs(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 el(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 tl={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"},nl=j(j([],N(Go),!1),N(qo),!1),rl=h((function(e,t){var n=e.to,i=e.as,o=e.htmlType,a=e.label,s=e.theme;e.preventDefault;var l=e.css,u=e.mods,c=P(e,["to","as","htmlType","label","theme","preventDefault","css","mods"]);if((c.onClick||c.onBlur||c.onFocus||c.onKeyDown||c.onKeyUp)&&!c.allowNativeEvents)throw new Error("CubeUIKit: add `allowNativeEvents` property to the `Action` component to allow usage of native events like `onClick`.");i=n?"a":i||"button";var d=r(Ri).router,p=c.isDisabled,f=el(n),h=f.newTab,v=f.href,g=h?"_blank":void 0,m=function(e,t,n,r){var i=el(t),o=i.newTab,a=i.nativeRoute,s=i.href;return function(n){if(!r&&t)if(n.shiftKey||n.metaKey||o)Qs(s,!0);else{if(a)Qs(s||window.location.href);else if(s&&s.startsWith("#")){var i=s.slice(1),l=document.getElementById(i);if(l)return void l.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}e?e.push(s):s&&(window.location.href=s)}}}(d,n,c.onPress,p),b=bi(t),y=oo(c,nl,tl),x=Zs(c,b),w=x.buttonProps,S=x.isPressed,E=ns({isDisabled:p}),T=E.hoverProps,C=E.isHovered,O=os({isDisabled:p},!0),N=O.focusProps,j=O.isFocused,L={};return n&&(L.onClick=function(e){e.preventDefault(),p||m(e)}),M.jsx(_o,k({mods:k({hovered:C&&!p,pressed:S&&!p,focused:j&&!p,disabled:p},u),"aria-label":a,"data-theme":s},Gt(w,T,N,L,ea(c)),{type:o||"button",rel:"a"===i&&h?'rel="noopener noreferrer"':void 0,ref:b,as:i,isDisabled:p,styles:y,target:g,href:v,css:l}),void 0)}));var il={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)"}},ol={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({},il.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)"}},al={small:{padding:"(.75x - 1px) (1.5x - 1px)"},default:{padding:"(1.25x - 1px) (2x - 1px)"}},sl={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}},ll=h((function(e,t){var n=e.type,r=e.size,i=e.label,o=e.styles,a=e.children,s=e.theme,l=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),{isLoading:f,isDisabled:p,theme:s,size:r,type:n,icon:u,children:a}),g=Ai("Button",v);return a=a||u?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;return k(k(k(k({},al[t||"default"]),sl),("danger"===r?ol:il)[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.jsxs(rl,k({as:d.to?"a":void 0,css:l},d,{ref:t,isDisabled:f||p,theme:s,"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:[f?M.jsx(Ss,k({display:"inline-block",margin:a?"1x right":void 0},{children:M.jsx(kt,{},void 0)}),void 0):null,u&&!f?M.jsxs(xs,k({gap:"1x",display:"inline-flex",styles:{verticalAlign:"middle"}},{children:[f?null:u,a?M.jsx("div",{children:a},void 0):null]}),void 0):a]}),void 0)}));var ul=Object.assign(h((function(e,t){var n=Mi(k({},e)),r=n.suffix,i=P(n,["suffix"]),l=N(o("password"),2),u=l[0],c=l[1],d=a(null),p=$s(k(k({},i),{type:u}),d),f=p.labelProps,h=p.inputProps,v=s((function(e){c((function(e){return"password"===e?"text":"password"}))}),[]),g=M.jsxs(M.Fragment,{children:[r,M.jsx(ll,{type:"neutral",htmlType:"button",onPress:v,preventDefault:!0,placeSelf:"stretch",height:"auto",radius:"right (1r - 1bw)",padding:".5x 1x","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(Ts,k({labelProps:f,inputProps:h,ref:t,inputRef:d,inputStyles:{paddingRight:"4x"},type:u,suffixPosition:"after",suffix:g},i),void 0)})),{cubeInputType:"Text"});function cl(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]=Lt(c,isNaN(d)?NaN:d,p),[b,y]=o((()=>isNaN(g)?"":new En(f,u).format(g))),x=l((()=>new Tn(f,u)),[f,u]),w=l((()=>x.getNumberingSystem(b)),[x,b]),S=l((()=>new En(f,Rt({},u,{numberingSystem:w}))),[f,u,w]),E=l((()=>S.resolvedOptions()),[S]),k=s((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=l((()=>x.parse(b)),[x,b]),C=a(0);C.current=T;let O=(e,r)=>{let i=C.current;if(isNaN(i)){return At(isNaN(r)?0:r,t,n,P)}{let r=At(i,t,n,P);return"+"===e&&r>i||"-"===e&&r<i?r:At(dl(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(At(n,t,n,P))},decrement:()=>{m((e=>{let t=O("-",n);return t===e&&y(k(t)),t}))},decrementToMin:()=>{null!=t&&m(t)},canIncrement:l((()=>!h&&!v&&(isNaN(T)||isNaN(n)||At(T,t,n,P)>T||dl("+",T,P)<=n)),[h,v,t,n,P,T]),canDecrement:l((()=>!h&&!v&&(isNaN(T)||isNaN(t)||At(T,t,n,P)<T||dl("-",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):At(C.current,t,n,r),e=x.parse(k(e)),m(e),y(k(void 0===c?e:g))}}}function dl(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,s=o[1]&&o[1].length||0,l=Math.pow(10,Math.max(a,s));t=Math.round(t*l),n=Math.round(n*l),r="+"===e?t+n:t-n,r/=l}return r}const pl={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 fl(e){void 0===e&&(e={});let{style:t,isFocusable:n}=e,[r,i]=o(!1),{focusProps:a}=Fa({isDisabled:!n,onFocusChange:i}),s=l((()=>r?t:t?Rt({},pl,t):pl),[r]);return{visuallyHiddenProps:Rt({},a,{style:s})}}function hl(e){let{children:n,elementType:r="div"}=e,i=B(e,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:o}=fl(e);return t.createElement(r,Gt(i,o),n)}let vl=t.createRef(),gl=null,ml=0;function bl(e,n,r){var i;void 0===n&&(n="assertive"),void 0===r&&(r=7e3),i=t=>t.announce(e,n,r),vl.current?i(vl.current):(gl=document.createElement("div"),gl.dataset.liveAnnouncer="true",document.body.prepend(gl),x.render(t.createElement(yl,{ref:vl}),gl,(()=>i(vl.current))))}const yl=t.forwardRef(((e,n)=>{let[r,i]=o([]),[a,s]=o([]),l=e=>{e&&"assertive"!==e||i([]),e&&"polite"!==e||s([])},u=function(e,t,n){void 0===t&&(t="assertive"),void 0===n&&(n=7e3);let r=ml++;"assertive"===t?i((t=>[...t,{id:r,text:e}])):s((t=>[...t,{id:r,text:e}])),""!==e&&setTimeout((()=>{"assertive"===t?i((e=>e.filter((e=>e.id!==r)))):s((e=>e.filter((e=>e.id!==r))))}),n)};return c(n,(()=>({announce:u,clear:l}))),t.createElement(v,null,t.createElement(xl,{"aria-live":"assertive"},r.map((e=>t.createElement("div",{key:e.id},e.text)))),t.createElement(xl,{"aria-live":"polite"},a.map((e=>t.createElement("div",{key:e.id},e.text)))))}));function xl(e){let{children:n,"aria-live":r}=e;return t.createElement(hl,{role:"log","aria-live":r,"aria-relevant":"additions"},n)}function wl(e){return e&&e.__esModule?e:{default:e}}var Sl;Sl=JSON.parse('{"Empty":"فارغ"}');var El;El=JSON.parse('{"Empty":"Изпразни"}');var kl;kl=JSON.parse('{"Empty":"Prázdné"}');var Pl;Pl=JSON.parse('{"Empty":"Tom"}');var Tl;Tl=JSON.parse('{"Empty":"Leer"}');var Cl;Cl=JSON.parse('{"Empty":"Άδειο"}');var Ol;Ol=JSON.parse('{"Empty":"Empty"}');var Nl;Nl=JSON.parse('{"Empty":"Vacío"}');var jl;jl=JSON.parse('{"Empty":"Tühjenda"}');var Ll;Ll=JSON.parse('{"Empty":"Tyhjä"}');var Al;Al=JSON.parse('{"Empty":"Vide"}');var Fl;Fl=JSON.parse('{"Empty":"ריק"}');var Dl;Dl=JSON.parse('{"Empty":"Prazno"}');var Rl;Rl=JSON.parse('{"Empty":"Üres"}');var Il;Il=JSON.parse('{"Empty":"Vuoto"}');var Ml;Ml=JSON.parse('{"Empty":"空"}');var _l;_l=JSON.parse('{"Empty":"비어 있음"}');var zl;zl=JSON.parse('{"Empty":"Tuščias"}');var Kl;Kl=JSON.parse('{"Empty":"Tukšs"}');var Vl;Vl=JSON.parse('{"Empty":"Tom"}');var Ul;Ul=JSON.parse('{"Empty":"Leeg"}');var ql;ql=JSON.parse('{"Empty":"Pusty"}');var Bl;Bl=JSON.parse('{"Empty":"Vazio"}');var Wl;Wl=JSON.parse('{"Empty":"Vazio"}');var Gl;Gl=JSON.parse('{"Empty":"Gol"}');var Jl;Jl=JSON.parse('{"Empty":"Не заполнено"}');var Hl;Hl=JSON.parse('{"Empty":"Prázdne"}');var $l;$l=JSON.parse('{"Empty":"Prazen"}');var Xl;Xl=JSON.parse('{"Empty":"Prazno"}');var Yl;Yl=JSON.parse('{"Empty":"Tomt"}');var Zl;Zl=JSON.parse('{"Empty":"Boş"}');var Ql;Ql=JSON.parse('{"Empty":"Пусто"}');var eu;eu=JSON.parse('{"Empty":"空"}');var tu;tu=JSON.parse('{"Empty":"空白"}');const nu={"ar-AE":wl(Sl).default,"bg-BG":wl(El).default,"cs-CZ":wl(kl).default,"da-DK":wl(Pl).default,"de-DE":wl(Tl).default,"el-GR":wl(Cl).default,"en-US":wl(Ol).default,"es-ES":wl(Nl).default,"et-EE":wl(jl).default,"fi-FI":wl(Ll).default,"fr-FR":wl(Al).default,"he-IL":wl(Fl).default,"hr-HR":wl(Dl).default,"hu-HU":wl(Rl).default,"it-IT":wl(Il).default,"ja-JP":wl(Ml).default,"ko-KR":wl(_l).default,"lt-LT":wl(zl).default,"lv-LV":wl(Kl).default,"nb-NO":wl(Vl).default,"nl-NL":wl(Ul).default,"pl-PL":wl(ql).default,"pt-BR":wl(Bl).default,"pt-PT":wl(Wl).default,"ro-RO":wl(Gl).default,"ru-RU":wl(Jl).default,"sk-SK":wl(Hl).default,"sl-SI":wl($l).default,"sr-SP":wl(Xl).default,"sv-SE":wl(Yl).default,"tr-TR":wl(Zl).default,"uk-UA":wl(Ql).default,"zh-CN":wl(eu).default,"zh-TW":wl(tu).default};var ru;ru=JSON.parse('{"decrease":"خفض {fieldLabel}","increase":"زيادة {fieldLabel}","numberField":"حقل رقمي"}');var iu;iu=JSON.parse('{"decrease":"Намаляване {fieldLabel}","increase":"Усилване {fieldLabel}","numberField":"Номер на полето"}');var ou;ou=JSON.parse('{"decrease":"Snížit {fieldLabel}","increase":"Zvýšit {fieldLabel}","numberField":"Číselné pole"}');var au;au=JSON.parse('{"decrease":"Reducer {fieldLabel}","increase":"Øg {fieldLabel}","numberField":"Talfelt"}');var su;su=JSON.parse('{"decrease":"{fieldLabel} verringern","increase":"{fieldLabel} erhöhen","numberField":"Nummernfeld"}');var lu;lu=JSON.parse('{"decrease":"Μείωση {fieldLabel}","increase":"Αύξηση {fieldLabel}","numberField":"Πεδίο αριθμού"}');var uu;uu=JSON.parse('{"decrease":"Decrease {fieldLabel}","increase":"Increase {fieldLabel}","numberField":"Number field"}');var cu;cu=JSON.parse('{"decrease":"Reducir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo de número"}');var du;du=JSON.parse('{"decrease":"Vähenda {fieldLabel}","increase":"Suurenda {fieldLabel}","numberField":"Numbri väli"}');var pu;pu=JSON.parse('{"decrease":"Vähennä {fieldLabel}","increase":"Lisää {fieldLabel}","numberField":"Numerokenttä"}');var fu;fu=JSON.parse('{"decrease":"Diminuer {fieldLabel}","increase":"Augmenter {fieldLabel}","numberField":"Champ de nombre"}');var hu;hu=JSON.parse('{"decrease":"הקטן {fieldLabel}","increase":"הגדל {fieldLabel}","numberField":"שדה מספר"}');var vu;vu=JSON.parse('{"decrease":"Smanji {fieldLabel}","increase":"Povećaj {fieldLabel}","numberField":"Polje broja"}');var gu;gu=JSON.parse('{"decrease":"{fieldLabel} csökkentése","increase":"{fieldLabel} növelése","numberField":"Számmező"}');var mu;mu=JSON.parse('{"decrease":"Riduci {fieldLabel}","increase":"Aumenta {fieldLabel}","numberField":"Campo numero"}');var bu;bu=JSON.parse('{"decrease":"{fieldLabel}を縮小","increase":"{fieldLabel}を拡大","numberField":"数値フィールド"}');var yu;yu=JSON.parse('{"decrease":"{fieldLabel} 감소","increase":"{fieldLabel} 증가","numberField":"번호 필드"}');var xu;xu=JSON.parse('{"decrease":"Sumažinti {fieldLabel}","increase":"Padidinti {fieldLabel}","numberField":"Numerio laukas"}');var wu;wu=JSON.parse('{"decrease":"Samazināšana {fieldLabel}","increase":"Palielināšana {fieldLabel}","numberField":"Skaitļu lauks"}');var Su;Su=JSON.parse('{"decrease":"Reduser {fieldLabel}","increase":"Øk {fieldLabel}","numberField":"Tallfelt"}');var Eu;Eu=JSON.parse('{"decrease":"{fieldLabel} verlagen","increase":"{fieldLabel} verhogen","numberField":"Getalveld"}');var ku;ku=JSON.parse('{"decrease":"Zmniejsz {fieldLabel}","increase":"Zwiększ {fieldLabel}","numberField":"Pole numeru"}');var Pu;Pu=JSON.parse('{"decrease":"Diminuir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo de número"}');var Tu;Tu=JSON.parse('{"decrease":"Diminuir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo numérico"}');var Cu;Cu=JSON.parse('{"decrease":"Scădere {fieldLabel}","increase":"Creștere {fieldLabel}","numberField":"Câmp numeric"}');var Ou;Ou=JSON.parse('{"decrease":"Уменьшение {fieldLabel}","increase":"Увеличение {fieldLabel}","numberField":"Числовое поле"}');var Nu;Nu=JSON.parse('{"decrease":"Znížiť {fieldLabel}","increase":"Zvýšiť {fieldLabel}","numberField":"Číselné pole"}');var ju;ju=JSON.parse('{"decrease":"Upadati {fieldLabel}","increase":"Povečajte {fieldLabel}","numberField":"Številčno polje"}');var Lu;Lu=JSON.parse('{"decrease":"Decrease {fieldLabel}","increase":"Increase {fieldLabel}","numberField":"Number field"}');var Au;Au=JSON.parse('{"decrease":"Minska {fieldLabel}","increase":"Öka {fieldLabel}","numberField":"Nummerfält"}');var Fu;Fu=JSON.parse('{"decrease":"{fieldLabel} azalt","increase":"{fieldLabel} arttır","numberField":"Sayı alanı"}');var Du;Du=JSON.parse('{"decrease":"Зменшити {fieldLabel}","increase":"Збільшити {fieldLabel}","numberField":"Поле номера"}');var Ru;Ru=JSON.parse('{"decrease":"降低 {fieldLabel}","increase":"提高 {fieldLabel}","numberField":"数字字段"}');var Iu;Iu=JSON.parse('{"decrease":"縮小 {fieldLabel}","increase":"放大 {fieldLabel}","numberField":"數字欄位"}');const Mu={"ar-AE":wl(ru).default,"bg-BG":wl(iu).default,"cs-CZ":wl(ou).default,"da-DK":wl(au).default,"de-DE":wl(su).default,"el-GR":wl(lu).default,"en-US":wl(uu).default,"es-ES":wl(cu).default,"et-EE":wl(du).default,"fi-FI":wl(pu).default,"fr-FR":wl(fu).default,"he-IL":wl(hu).default,"hr-HR":wl(vu).default,"hu-HU":wl(gu).default,"it-IT":wl(mu).default,"ja-JP":wl(bu).default,"ko-KR":wl(yu).default,"lt-LT":wl(xu).default,"lv-LV":wl(wu).default,"nb-NO":wl(Su).default,"nl-NL":wl(Eu).default,"pl-PL":wl(ku).default,"pt-BR":wl(Pu).default,"pt-PT":wl(Tu).default,"ro-RO":wl(Cu).default,"ru-RU":wl(Ou).default,"sk-SK":wl(Nu).default,"sl-SI":wl(ju).default,"sr-SP":wl(Lu).default,"sv-SE":wl(Au).default,"tr-TR":wl(Fu).default,"uk-UA":wl(Du).default,"zh-CN":wl(Ru).default,"zh-TW":wl(Iu).default};function _u(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:L,commit:A}=t;const F=pi(Mu);let D=Ut(r),{focusProps:R}=Fa({onBlur:()=>{A()}}),{spinButtonProps:I,incrementButtonProps:M,decrementButtonProps:_}=function(e){const t=a();let{value:n,textValue:r,minValue:o,maxValue:l,isDisabled:u,isReadOnly:c,isRequired:d,onIncrement:p,onIncrementPage:f,onDecrement:h,onDecrementPage:v,onDecrementToMin:g,onIncrementToMax:m}=e;const b=pi(nu),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&&bl(r,"assertive")}),[r]);const E=s((e=>{y(),p(),t.current=window.setTimeout((()=>{(isNaN(l)||isNaN(n)||n<l)&&E(60)}),e)}),[p,l,n]),k=s((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":l,"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:L,textValue:t.inputValue}),[z,K]=o(!1),{focusWithinProps:V}=Xa({isDisabled:d,onFocusWithinChange:K});!function(e,t){let{onScroll:n,isDisabled:r}=e,i=s((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);bn(t,"wheel",r?null:i)}({onScroll:s((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}=ci();return l((()=>new En(t,e)),[t,e])}(y),q=l((()=>U.resolvedOptions()),[U]).maximumFractionDigits>0,B=isNaN(t.minValue)||t.minValue<0,W="numeric";hn()?B?W="text":q&&(W="decimal"):dn(/Android/)&&(B?W="numeric":q&&(W="decimal"));let G,{labelProps:J,inputProps:H,descriptionProps:$,errorMessageProps:X}=function(e,t,n){let r=a(t);r.current=t,i((()=>{if(!Xs())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=Xs()?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:s,inputProps:l,descriptionProps:u,errorMessageProps:c}=$s(e,n),d=a(null);return{inputProps:Gt(l,{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:s,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=Gt(I,H,R,{role:null,"aria-roledescription":vn()?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=Ut(),te=Ut(),ne=Gt(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=Gt(_,{"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:Rt({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 zu={padding:"0 .5x",radius:{"":"0 (1r - 1bw) 0 0",down:"0 0 (1r - 1bw) 0"},preset:"t4",lineHeight:"1em",height:"auto"};var Ku=h((function(e){return M.jsx(ll,k({type:"neutral",styles:zu,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 Vu=Object.assign(h((function(e,t){var n=!(e=ha(e=Mi(e))).hideStepper,r=ci().locale,i=cl(k(k({},e),{locale:r})),o=a(null),s=_u(e,i,o),l=s.groupProps,u=s.labelProps,c=s.inputProps,d=s.incrementButtonProps,p=s.decrementButtonProps;return M.jsx(Ts,k({},e,{labelProps:u,inputProps:c,ref:t,inputRef:o,wrapperProps:l,suffixPosition:"after",suffix:n?M.jsxs(_o,k({styles:{display:"grid",gridColumns:"1fr",gridRows:"minmax(1px, 1fr) minmax(1px, 1fr)",flow:"column",placeSelf:"stretch"}},{children:[M.jsx(Ku,k({direction:"up"},d),void 0),M.jsx(Ku,k({direction:"down"},p),void 0)]}),void 0):null}),void 0)})),{cubeInputType:"Number"}),Uu={};function qu(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 Bu(e){var t=ha(e),n=t.type,r=t.id,a=t.idPrefix,s=t.children,l=t.name,u=t.form,c=t.rules,p=t.label,h=t.validateTrigger,v=t.validationState,g=t.necessityLabel,m=t.necessityIndicator,b=t.message,y=N(o(r||(a?a+"_"+l:l)),2),x=y[0],w=y[1];i((function(){var e;return r||(e=function(e){Uu[e]||(Uu[e]=[]);var t,n=0;do{t=n?e+"_"+n:e,n++}while(Uu[e].includes(t));return Uu[e].push(t),t}(x),w(e)),function(){r||function(e,t){Uu[e]=Uu[e].filter((function(e){return e!==t}))}(a?a+"_"+l:l,e)}}),[]);var S=null==u?void 0:u.getFieldInstance(l),E=c&&c.find((function(e){return e.required}));if(i((function(){S?(S.rules=c,u.forceReRender()):u.createField(l)}),[S]),!l)return console.error("invalid form name:",l),null;if(!u)return console.error("form field requires declared form instance"),null;if("function"==typeof s&&(s=s(u)),!s)return null;var T=d.only(s);n=n||T.type.cubeInputType||"Text";var C,O="NumberInput"===(C=(C=n)||"")||C.includes("Input")||(C.includes("TextArea")?"onBlur":"onChange");if(!S)return f(T,Co(T.props,k(k({},qu(n)),{name:l,id:x})));h||(h=O);var j={id:x,name:l,onBlur:function(){"onBlur"===h&&setTimeout((function(){u.validateField(l).catch((function(){}))}))}};null!=m&&(j.necessityIndicator=m),g&&(j.necessityLabel=g),v&&(j.validationState=v),E&&(j.isRequired=!0),p&&(j.label=p),b&&(j.message=b),S&&S.errors&&S.errors.length&&(v||(j.validationState="invalid"),b||(j.message=S.errors[0])),Object.assign(j,qu(n,null==S?void 0:S.value,(function(e){u.setFieldValue(l,e,!0);var t=u.getFieldInstance(l);("onChange"===h||t&&t.errors&&t.errors.length)&&u.validateField(l).catch((function(){}))})));var L=T.props,A=L.onChange,F=L.onSelectionChange,D=P(L,["onChange","onSelectionChange"]);return f(T,Co(D,j,A?{onChange:A}:{},F?{onSelectionChange:F}:{}))}function Wu(e,t,n,r){return e||t||n?k(k(k(k({},e),t),n),r):r}function Gu(e){var t=e.name,n=e.tag,i=e.styles,o=e.styleProps,a=e.css,s=e.attrs,l=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(zo):zo).reduce((function(e,t){return t in b&&(e[t]=b[t]),e}),{}),x=Ai(p||t,b),w=Wu(i,x,d,y),S=r(Fi),E=zi(f||S);return m=""+("function"==typeof a?a(b):a||"")+("function"==typeof m?m(b):m||"")+(w?ko(w,E):""),h&&Object.assign(b,Oo(h)),M.jsx(l,k({as:c||n,"data-qa":v,"data-qaval":g},s,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(zo):zo).reduce((function(e,t){return t in g&&(e[t]=g[t]),e}),{}),b=Wu(i,null,c,m),y=r(Fi),x=zi(d||y);return v=""+("function"==typeof a?a(g):a||"")+("function"==typeof v?v(g):v||"")+(b?ko(b,x):""),p&&Object.assign(g,Oo(p)),M.jsx(l,k({as:u||n,"data-qa":f,"data-qaval":h},s,g,{ref:t,css:v}),void 0)})}var Ju=j(j(j([],N(zo),!1),N(qo),!1),N(Uo),!1),Hu={align:"textAlign",transform:"textTransform",weight:"fontWeight",italic:"fontStyle"},$u=Gu({name:"Text",tag:"span",availableMods:["nowrap","ellipsis"],styles:{display:{"":"inline",ellipsis:"inline-block"},margin:"0",whiteSpace:{"":"initial","nowrap | ellipsis":"nowrap"},textOverflow:"ellipsis",overflow:"hidden",width:"max 100%"}}),Xu=h((function(e,t){var n=e.as,r=e.qa,i=e.block,o=e.styleName,a=e.ellipsis,s=e.css,l=e.nowrap,u=P(e,["as","qa","block","styleName","ellipsis","css","nowrap"]),c=oo(u,Ju,{},Hu);return M.jsx($u,k({as:n||"span",qa:r||"Text",styleName:o,mods:{nowrap:l,ellipsis:a},block:!(!i&&!a),css:s},ea(u,{eventProps:!0}),{styles:c,ref:t}),void 0)})),Yu=Object.assign(Xu,{Minor:h((function(e,t){return M.jsx(Yu,k({ref:t,color:"#minor"},e),void 0)})),Danger:h((function(e,t){return M.jsx(Yu,k({ref:t,color:"#danger-text"},e),void 0)})),Success:h((function(e,t){return M.jsx(Yu,k({ref:t,color:"#success-text"},e),void 0)})),Strong:h((function(e,t){return M.jsx(Yu,k({ref:t,color:"#dark",weight:600},e),void 0)})),Selection:h((function(e,t){return M.jsx(Yu,k({ref:t,color:"#dark",fill:"#note.30"},e),void 0)}))}),Zu=j(j(j(j(j([],N(zo),!1),N(qo),!1),N(Vo),!1),N(Uo),!1),N(Ko),!1),Qu=Gu({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"}}),ec=h((function(e,t){var n=e.qa,r=e.as,i=e.styleName,o=e.inline,a=e.nowrap,s=e.ellipsis,l=e.level,u=P(e,["qa","as","styleName","inline","nowrap","ellipsis","level"]),c="h"+(l||1),d=oo(u=jo(u,"heading"),Zu,{},Hu);return M.jsx(Qu,k({qa:n||"Title",as:r||c,styleName:i,"data-level":l||1,mods:{nowrap:a,ellipsis:s},inline:o},ea(u,{eventProps:!0}),{styles:d,ref:t}),void 0)})),tc=Object.assign(ec,{Danger:h((function(e,t){return M.jsx(tc,k({ref:t,color:"#danger-text"},e),void 0)})),Success:h((function(e,t){return M.jsx(tc,k({ref:t,color:"#success-text"},e),void 0)}))}),nc={preset:"p3",color:"#dark.75",display:"block"},rc=j(j([],N(Go),!1),N(qo),!1),ic=h((function(e,t){var n=oo(e,rc,nc);return M.jsx(Yu,k({as:"p",qa:"Paragraph"},e,{styles:n,ref:t}),void 0)}));var oc=Object.assign(h((function(e,t){var n=(e=Mi(e)).autoSize,r=void 0!==n&&n,i=e.isDisabled,o=void 0!==i&&i,l=e.isReadOnly,c=void 0!==l&&l,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(Lt(e.value,e.defaultValue,(function(){})),2),m=g[0],b=g[1],y=a(null),x=s((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=$s(k(k({},e),{onChange:Wt(f,b),inputElementType:"textarea"}),y),S=w.labelProps,E=w.inputProps;return M.jsx(Ts,k({},v,{ref:t,inputRef:y,labelProps:S,inputProps:E,multiLine:!0,isDisabled:o,isReadOnly:c,isRequired:p,rows:h}),void 0)})),{cubeInputType:"Text"}),ac=h((function(e,t){var n=jo(e,"buttonGroup"),r=n.styles,i=Ai("ButtonGroup",P(n,["styles"]));return r=r?k(k({},i),r):i,M.jsx(xs,k({gridArea:"buttonGroup",styles:r,ref:t},e),void 0)})),sc={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"},"[Input]":{position:"absolute",top:"-50px",right:0,bottom:0,left:0,radius:"@content-radius",cursor:"pointer",zIndex:10}};var lc=h((function(e,t){var n=Mi(e),r=n.id,i=n.name,l=n.qa;n.qaVal;var u=n.onChange,d=n.placeholder,p=n.inputRef,f=n.label,h=n.labelPosition,v=n.insideForm,g=n.isRequired,m=n.necessityIndicator,b=n.necessityLabel,y=n.labelStyles,x=n.labelProps,w=n.isDisabled,S=n.validationState,E=n.message,T=n.requiredMark,C=n.styles,O=n.inputStyles,j=P(n,["id","name","qa","qaVal","onChange","placeholder","inputRef","label","labelPosition","insideForm","isRequired","necessityIndicator","necessityLabel","labelStyles","labelProps","isDisabled","validationState","message","requiredMark","styles","inputStyles"]),L=N(o(),2),A=L[0],F=L[1],D=a(null),R=a(null);p=p||R,C=oo(j,Go),O=k(k(k({},sc),Ai("FileInput",j)),O);var I=s((function(e){var t=e.target.value;null==u||u(t),F(t)}),[u]);c(t,(function(){return k(k({},gi(D,p)),{select:function(){(null==p?void 0:p.current)&&p.current.select()},getInputElement:function(){return null==p?void 0:p.current}})}));var _=M.jsxs(rl,k({qa:l||"FileInput",styles:O,isDisabled:w,ref:D},{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":"Placeholder"},{children:A||d||"No file selected"}),void 0)]}),void 0);return M.jsx(ms,k({},{labelPosition:h,label:f,insideForm:v,styles:C,isRequired:g,labelStyles:y,necessityIndicator:m,necessityLabel:b,labelProps:x,isDisabled:w,validationState:S,message:E,requiredMark:T,Component:_,ref:D}),void 0)}));function uc(e){var t,n,r,i=e.display,o=e.flow,a=e.gap;if(!a)return"";var s=i.includes("grid"),l=i.includes("flex"),u=!!o&&(o.includes("wrap")&&!o.includes("nowrap"));if(s||null!=o||(o=l?"row":"column"),"number"==typeof a&&(a+="px"),a){!0===a&&(a="1.5x");var c=Yi(a).values;if(a=c.join(" "),s)return{gap:a};var d=l&&o.includes("reverse"),p=a&&!s?d?o.includes("row")?"left":"top":o.includes("row")?"right":"bottom":"",f=d?"margin-left":"margin-right",h=d?"margin-top":"margin-bottom";return u?[(t={},t[f]="calc(-1 * "+(c[1]||c[0])+")",t[h]="calc(-1 * "+c[0]+")",t),(n={$:"& > *"},n[f]=c[1]||c[0],n[h]=c[0],n)]:((r={$:"& > *:not(:last-child)"})["margin-"+p]=a,r)}}function cc(e){var t,n,r=e.display,i=e.flow;return r.includes("grid")?n="grid-auto-flow":r.includes("flex")&&(n="flex-flow"),n?((t={})[n]=i,t):null}uc.__lookupStyles=["display","flow","gap"],cc.__lookupStyles=["display","flow"];var dc={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 pc(e){var t=e.reset;if(t)return Yi(t,1).mods.reduce((function(e,t){return dc[t]&&e.push.apply(e,j([],N(dc[t]),!1)),e}),[])}function fc(e){var t=e.color;if(!t)return"";!0===t&&(t="currentColor"),t.startsWith("#")&&(t=Zi(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 hc(e){var t=e.fill;if(!t)return"";t.startsWith("#")&&(t=Yi(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}pc.__lookupStyles=["reset"],fc.__lookupStyles=["color"],hc.__lookupStyles=["fill"];function vc(e){return"undefined"!=typeof CSS&&void 0!==CSS.supports&&CSS.supports("height",e)}var gc=vc("stretch")?"stretch":vc("fill-available")?"fill-available":vc("-webkit-fill-available")?"-webkit-fill-available":vc("-moz-fill-available")?"-moz-fill-available":null,mc=["max-content","min-content","fit-content","stretch"];function bc(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 s=((i={})[e]="auto",i[t]="auto",i[n]="initial",i),l=Yi(r),u=l.mods,c=l.values;!function(e,t,n){e.forEach((function(e){t.includes(e)&&(n.push(e),t.splice(t.indexOf(e),1))}))}(mc,u,c),c.forEach((function(t,n){"stretch"===t&&(c[n]=gc||("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":s[t]=c[0]||"var(--gap)",d=!0;break;case"max":s[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?(s[t]=c[0],s[n]=c[1]):3===c.length?(s[t]=c[0],s[e]=c[1],s[n]=c[2]):s[e]=c[0]||"auto"),s}}var yc=bc("width");function xc(e){var t=e.width;return yc(t)}xc.__lookupStyles=["width"];var wc=bc("height");function Sc(e){var t=e.height;return wc(t)}Sc.__lookupStyles=["height"];var Ec="var(--radius)",kc="var(--leaf-sharp-radius)";function Pc(e){var t=e.radius;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1r");var n=Yi(t,1),r=n.mods,i=n.values;if(r.includes("round")?i=["9999rem"]:r.includes("ellipse")?i=["50%"]:i.length||(i=[Ec]),r.includes("leaf"))i=[i[1]||kc,i[0]||Ec,i[1]||kc,i[0]||Ec];else if(r.includes("backleaf"))i=[i[0]||Ec,i[1]||kc,i[0]||Ec,i[1]||kc];else if(r.length){var o=["0","0","0","0"],a=!1;Vi.forEach((function(e,t){r.includes(e)&&(a=!0,o[t]=i[0]||Ec,o[(t+1)%4]=i[0]||Ec)})),a&&(i=o)}return[{"--local-radius":i.join(" "),"border-radius":"var(--local-radius)"},{$:">*","--context-radius":i.join(" ")}]}Pc.__lookupStyles=["radius"];var Tc=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Cc(e){var t=e.border;if(t||0===t){!0===t&&(t="1bw");var n=Yi(String(t)),r=n.values,i=n.mods,o=n.color,a=ro(i,Vi),s=ro(i,Tc),l=[r[0]||"var(--border-width)",s[0]||"solid",o||"var(--border-color)"].join(" ");return a.length?i.reduce((function(e,t){return e["border-"+t]=l,e}),{}):{border:l}}}function Oc(e){var t=e.shadow;if(!t)return"";!0===t&&(t="0 5px 15px #shadow");var n=Yi(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 Nc(e){var t=e.padding;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var n=Yi(t),r=n.values,i=ro(n.mods,Vi);return r.length||(r=["var(--gap)"]),i.length?i.reduce((function(e,t){var n=Vi.indexOf(t);return e["padding-"+t]=r[n]||r[n%2]||r[0],e}),{}):{padding:r.join(" ")}}function jc(e){var t=e.preset,n=e.fontSize,r=e.lineHeight,i=e.textTransform,o=e.letterSpacing,a=e.fontWeight,s=e.fontStyle,l=e.font;if(!t)return"";!0===t&&(t="");var u=Yi(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))"),s||(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))"),l||(c["font-family"]=c["--font-family"]="var(--"+u+"-font-family, var(--font))"),c}function Lc(e){var t=e.fontStyle;return!0===t&&(t="italic"),"inherit"!==t&&(t=t?"italic":"normal"),{"font-style":t}}function Ac(e){var t=e.margin;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var n=Yi(t),r=n.values,i=ro(n.mods,Vi);return i.length?i.reduce((function(e,t){var n=Vi.indexOf(t);return e["margin-"+t]=r[n]||r[n%2]||r[0],e}),{}):{margin:r.join(" ")}}function Fc(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 Dc(e){var t=e.outline;if(!t&&0!==t)return"";!0===t&&(t="1ow");var n=Yi(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)")}}Cc.__lookupStyles=["border"],Oc.__lookupStyles=["shadow"],Nc.__lookupStyles=["padding"],jc.__lookupStyles=["preset","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","fontStyle","font"],Lc.__lookupStyles=["fontStyle"],Ac.__lookupStyles=["margin"],Fc.__lookupStyles=["font"],Dc.__lookupStyles=["outline"];var Rc={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"]};var Ic=/([.0-9ms]+)|([a-z0-9-]+\(.+?\))|([a-z0-9-]+)|(,)/gi;function Mc(e){var t=e.transition;if(t){var n=t.match(Ic);if(n){var r="",i=[];n.forEach((function(e){","===e?r&&(i.push(r),r=""):r+=" "+e})),r&&i.push(r);var o={};return i.forEach((function(e){var t=e.match(Ic);if(t){var n=t[0],r=t[1],i=t[2],a=t[3];(Rc[n]||[n]).forEach((function(e){o[e]=[n,i,r,a]}))}})),{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],s=r[3];return n+" "+(a||function(e){return"var(--"+e+"-transition, var(--transition))"}(i))+" "+(o||"linear")+" "+(s||"0s")})).join(", ")}}}}Mc.__lookupStyles=["transition"];var _c={row:["* 0 0 *","0 * * 0"],column:["* * 0 0","0 0 * *"]};function zc(e){var t=e.groupRadius,n=e.flow;if(!t)return"";!0===t&&(t="1r");var r=Yi(t),i=r.values,o=r.mods;n=n||"row";var a=o.includes("reverse"),s=i[0];s||(s=o.includes("round")?"9999rem":o.includes("ellipse")?"50%":"var(--radius)");var l=_c[n][a?1:0].replace(/\*/g,s),u=_c[n][a?0:1].replace(/\*/g,s);return[{$:">:first-child:not(:last-child)","border-radius":l,"--local-radius":l},{$:">:last-child:not(:first-child)","border-radius":u,"--local-radius":u},{$:">:last-child:first-child","border-radius":s,"--local-radius":s},{$:">:not(:last-child):not(:first-child)","border-radius":"0","--local-radius":"0"}]}function Kc(e){var t=Kc.__lookupStyles.reduce((function(t,n){return e[n]&&t.push("var(--local-"+n+"-box-shadow)"),t}),[]);return t.length?{"box-shadow":t.join(", ")}:""}function Vc(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 Uc(e){var t=e.display;return{display:e.hide?"none":t}}zc.__lookupStyles=["groupRadius","flow"],Kc.__lookupStyles=["outline","shadow"],Vc.__lookupStyles=["styledScrollbar"],Uc.__lookupStyles=["display","hide"];var qc=function(e){if("number"==typeof e)return"minmax(1px, 1fr) ".repeat(e).trim()},Bc=function(e){if("number"==typeof e)return"auto ".repeat(e).trim()};function Wc(e){return null}function Gc(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&t.Children.count(e.children)>0)}xo("fontSize"),xo("lineHeight"),xo("fontWeight"),xo("fontStyle"),xo("letterSpacing"),xo("textTransform"),xo("fontFamily"),xo("gridAreas","grid-template-areas"),xo("gridColumns","grid-template-columns",qc),xo("gridRows","grid-template-rows",Bc),xo("gridTemplate","grid-template",(function(e){if("string"==typeof e)return e.split("/").map((function(e,t){return(t?qc:Bc)(e)})).join("/")})),[Uc,Mc,pc,hc,xc,Ac,uc,cc,fc,Sc,Pc,Cc,Oc,Nc,jc,Kc,Dc,Fc,Lc,zc,Vc].forEach((function(e){return yo(e)})),Wc.getCollectionNode=function*(e,n){let{childItems:r,title:i,children:o}=e,a=e.title||e.children,s=e.textValue||("string"==typeof a?a:"")||e["aria-label"]||"";s||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:s,"aria-label":e["aria-label"],hasChildNodes:Gc(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 Jc=Wc;class Hc{constructor(){this.context=void 0,this.cache=new WeakMap}build(e,t){return this.context=t,$c((()=>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),s=e.index,l=a.next();for(;!l.done&&l.value;){let t=l.value;e.index=s;let u=t.key;u||(u=t.element?null:this.getKey(o,e,n,r));let c=[...this.getFullNode(Rt({},t,{key:u,index:s,wrapper:Xc(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 <"+Yc(n.type)+"> in <"+Yc(i.type)+">. Only <"+Yc(e.type)+"> is supported.");s++,yield n}l=a.next(c)}return}if(null==e.key)return;let a=this,s={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:$c((function*(){if(!e.hasChildNodes)return;let t=0;for(let r of e.childNodes()){null!=r.key&&(r.key=""+s.key+r.key),r.index=t;let e=a.getFullNode(r,a.getChildState(n,r),s.key,s);for(let n of e)t++,yield n}}))};yield s}}function $c(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 Xc(e,t){return e&&t?n=>e(t(n)):e||(t||void 0)}function Yc(e){return e[0].toUpperCase()+e.slice(1)}const Zc=new WeakMap;function Qc(e){let t=Zc.get(e);if(null!=t)return t;t=0;for(let n of e)"section"===n.type?t+=Qc(n.childNodes):t++;return Zc.set(e,t),t}var ed={display:"inline-block",position:"relative",opacity:{"":1,"[disabled]":.4},outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"},td=j(j([],N(Go),!1),N(qo),!1),nd=h((function(e,t){var n=e.as,r=e.label,i=e.onClick,o=P(e,["as","label","onClick"]),a=o.isDisabled,s=oo(o,td,ed),l=bi(t),u=ns({isDisabled:a}),c=u.hoverProps,d=u.isHovered,p=os({isDisabled:a}),f=p.focusProps,h=p.isFocused,v=Gs(o,l).focusableProps;return M.jsx(_o,k({"data-is-hovered":d&&!a?"":null,"data-is-focused":h&&!a?"":null,"data-is-disabled":a||null,"aria-label":r},Gt(c,f,v,{onClick:i},ea(o,{eventProps:!0})),{tabIndex:o.excludeFromTabOrder||a?-1:0,as:n,styles:s,ref:l}),void 0)})),rd={display:"grid",flow:"row",gap:"@(column-gap, 0)"},id={align:"alignItems",justify:"justifyItems",template:"gridTemplate",columns:"gridColumns",rows:"gridRows",areas:"gridAreas"},od=h((function(e,t){var n=oo(e,Go,rd,id);return M.jsx(_o,k({},ea(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),ad={display:"flex",flow:"row"},sd={align:"alignItems",justify:"justifyItems"},ld=h((function(e,t){var n=oo(e,Go,ad,sd);return M.jsx(_o,k({},ea(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),ud=h((function(e,t){return M.jsx(ll,k({type:"link"},e,{ref:t}),void 0)})),cd={display:"block",flow:"column"},dd=Go,pd=h((function(e,t){var n=oo(e,dd,cd);return M.jsx(_o,k({},ea(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),fd={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 hd(e,t){return void 0===t&&(t=1),"rgba("+fd[e]+", "+t+")"}var vd={"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":hd("dark",.1),"shadow-color":hd("dark-03",.1),"draft-color":hd("dark",.2),"minor-color":hd("dark",.65),"success-bg-color":"rgba(41, 190, 110, .1)","note-bg-color":hd("note",.1),"note-text-color":hd("dark",.65),"danger-bg-color":hd("danger",.05),"danger-bg-hover-color":hd("danger",.1),"primary-1":hd("purple",.9),"primary-2":hd("purple",.8),"primary-3":hd("purple",.7),"primary-4":hd("purple",.6),"primary-5":hd("purple",.5),"primary-6":hd("purple",.4),"primary-7":hd("purple",.3),"primary-8":hd("purple",.2),"primary-9":hd("purple",.1),"primary-10":hd("purple",0),"dark-75-color":hd("dark",.75),"primary-color":hd("purple"),"pink-8-color":hd("pink",.2),"pink-9-color":hd("pink",.1),"disabled-color":hd("dark-01",.25),"disabled-text-color":hd("dark-01",.25),"disabled-bg":hd("dark-05",.2),"disabled-bg-color":hd("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","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(fd).forEach((function(e){vd[e+"-color"]=hd(e),vd[e+"-color-rgb"]=fd[e]}));var gd,md=b(gd||(gd=L(["\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({},vd),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})})),bd=D((function(e,t){t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default})),yd=F(bd),xd=D((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0})),wd=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})),Sd=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=xd(wd);e.exports=t.default})),Ed=F(Sd),kd=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=xd(wd);e.exports=t.default})),Pd=F(kd),Td=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})),Cd=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})),Od=D((function(e,t){t.__esModule=!0,t.default=void 0;var n=xd(Cd).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})),Nd=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,s={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,n.default)(a,e))return s;void 0!==e.getBoundingClientRect&&(s=e.getBoundingClientRect());return s={top:s.top+(o.pageYOffset||a.scrollTop)-(a.clientTop||0),left:s.left+(o.pageXOffset||a.scrollLeft)-(a.clientLeft||0),width:(null==s.width?e.offsetWidth:s.width)||0,height:(null==s.height?e.offsetHeight:s.height)||0}};var n=xd(Od),r=xd(wd),i=xd(bd);e.exports=t.default})),jd=F(Nd),Ld=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})),Ad=D((function(e,t){t.__esModule=!0,t.default=function(e){return(0,n.default)(e.replace(r,"ms-"))};var n=xd(Ld),r=/^-ms-/;e.exports=t.default})),Fd=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})),Dd=D((function(e,t){t.__esModule=!0,t.default=function(e){return(0,n.default)(e).replace(r,"-ms-")};var n=xd(Fd),r=/^ms-/;e.exports=t.default})),Rd=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 s=o.left,l=e.runtimeStyle,u=l&&l.left;u&&(l.left=e.currentStyle.left),o.left="fontSize"===t?"1em":a,a=o.pixelLeft+"px",o.left=s,u&&(l.left=u)}return a}}};var n=xd(Ad),r=/^(top|right|bottom|left)$/,i=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default})),Id=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})),Md=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,s,l,u,c,d,p,f=xd(Cd),h="transform";if(t.transform=h,t.animationEnd=i,t.transitionEnd=r,t.transitionDelay=l,t.transitionTiming=s,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 s=i[a];if(s+"TransitionProperty"in n){o="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("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=l=n+"-transition-delay",t.transitionTiming=s=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:s,delay:l,duration:a};t.default=g})),_d=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})),zd=D((function(e,t){t.__esModule=!0,t.default=function(e,t,s){var l="",u="",c=t;if("string"==typeof t){if(void 0===s)return e.style[(0,n.default)(t)]||(0,i.default)(e).getPropertyValue((0,r.default)(t));(c={})[t]=s}Object.keys(c).forEach((function(t){var n=c[t];n||0===n?(0,a.default)(t)?u+=t+"("+n+") ":l+=(0,r.default)(t)+": "+n+";":(0,o.default)(e,(0,r.default)(t))})),u&&(l+=Md.transform+": "+u+";");e.style.cssText+=";"+l};var n=xd(Ad),r=xd(Dd),i=xd(Rd),o=xd(Id),a=xd(_d);e.exports=t.default})),Kd=F(zd),Vd=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=xd(bd),r=xd(zd);function i(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default})),Ud=F(D((function(e,t){t.__esModule=!0,t.default=function(e,t){var l,u={top:0,left:0};"fixed"===(0,s.default)(e,"position")?l=e.getBoundingClientRect():(t=t||(0,i.default)(e),l=(0,r.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(u=(0,r.default)(t)),u.top+=parseInt((0,s.default)(t,"borderTopWidth"),10)-(0,o.default)(t)||0,u.left+=parseInt((0,s.default)(t,"borderLeftWidth"),10)-(0,a.default)(t)||0);return(0,n.default)({},l,{top:l.top-u.top-(parseInt((0,s.default)(e,"marginTop"),10)||0),left:l.left-u.left-(parseInt((0,s.default)(e,"marginLeft"),10)||0)})};var n=xd(Td),r=xd(Nd),i=xd(Vd),o=xd(Sd),a=xd(kd),s=xd(zd);e.exports=t.default})));const qd={top:"top",bottom:"top",left:"left",right:"left"},Bd={top:"bottom",bottom:"top",left:"right",right:"left"},Wd={top:"left",left:"top"},Gd={top:"height",left:"width"},Jd={};let Hd="undefined"!=typeof window&&window.visualViewport;function $d(e,t,n,r,i){let o=r.scroll[e],a=r[Gd[e]],s=t-i-o,l=t+i-o+n;return s<0?-s:l>a?Math.max(a-l,-s):0}function Xd(e){if(Jd[e])return Jd[e];let[t,n]=e.split(" "),r=qd[t]||"right",i=Wd[r];qd[n]||(n="center");let o=Gd[r],a=Gd[i];return Jd[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},Jd[e]}function Yd(e,t,n,r,i,o,a,s){let{placement:l,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),l===c){const n=s?a[p]:t[p];h[Bd[c]]=Math.floor(n-e[c]+i)}else h[c]=Math.floor(e[c]+e[p]+i);return h}function Zd(e,t,n,r,i,o){let{placement:a,axis:s,size:l}=o;return a===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[Bd[s]]-i):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[Bd[s]]-i)}function Qd(e,t,n,r,i,o,a,s,l,u,c,d){let p=Xd(e),{size:f,crossAxis:h,crossSize:v,placement:g,crossPlacement:m}=p,b=Yd(t,s,n,p,u,c,l,d),y=u,x=Zd(s,l,t,i,o+u,p);if(a&&r[f]>x){let e=Xd(Bd[g]+" "+m),r=Yd(t,s,n,e,u,c,l,d);Zd(s,l,t,i,o+u,e)>x&&(p=e,b=r,y=u)}let w=$d(h,b[h],n[v],s,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,s,l,t,i,o);n.height=Math.min(n.height,S),b=Yd(t,s,n,p,y,c,l,d),w=$d(h,b[h],n[v],s,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 ep(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:s,offset:l,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?jd(n):Ud(n,c);d||(h.top+=parseInt(Kd(n,"marginTop"),10)||0,h.left+=parseInt(Kd(n,"marginLeft"),10)||0);let v=jd(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,Qd(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,s;return"BODY"===e.tagName?(t=null!=(a=null==Hd?void 0:Hd.width)?a:document.documentElement.clientWidth,n=null!=(s=null==Hd?void 0:Hd.height)?s:document.documentElement.clientHeight,o.top=Ed(yd(e).documentElement)||Ed(e),o.left=Pd(yd(e).documentElement)||Pd(e)):(({width:t,height:n,top:r,left:i}=jd(e)),o.top=Ed(e),o.left=Pd(e)),{width:t,height:n,scroll:o,top:r,left:i}}(s),"BODY"===s.tagName?jd(c):Ud(c,s),l,u,f)}const tp=new WeakMap;let np="undefined"!=typeof window&&window.visualViewport;function rp(e){let{direction:t}=ci(),{targetRef:n,overlayRef:r,scrollRef:l=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,l.current,c,d,p,f,h,g,t],w=s((()=>{!1!==v&&g&&r.current&&n.current&&l.current&&p&&y(ep({placement:ip(u,t),overlayNode:r.current,targetNode:n.current,scrollNode:l.current,padding:c,shouldFlip:d,boundaryElement:p,offset:f,crossOffset:h}))}),x);var S;Kt(w,x),Kt((()=>(window.addEventListener("resize",S,!1),()=>{window.removeEventListener("resize",S,!1)})),[S=w]);let E=a(!1);Kt((()=>{let e,t=()=>{E.current=!0,clearTimeout(e),e=setTimeout((()=>{E.current=!1}),500),w()};return null==np||np.addEventListener("resize",t),()=>{null==np||np.removeEventListener("resize",t)}}),[w]);let k=s((()=>{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||tp.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:Rt({position:"absolute",zIndex:1e5},b.position,{maxHeight:b.maxHeight})},placement:b.placement,arrowProps:{style:{left:b.arrowOffsetLeft,top:b.arrowOffsetTop}},updatePosition:w}}function ip(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const op=[];function ap(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:s=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:u}=e;i((()=>(o&&op.push(t),()=>{let e=op.indexOf(t);e>=0&&op.splice(e,1)})),[o,t]);let c=()=>{op[op.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,s=a({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;s.onInteractOutside=n,s.onInteractOutsideStart=o,i((()=>{if(r)return;let e=e=>{rs(e,t)&&s.onInteractOutside&&(s.onInteractOutsideStart&&s.onInteractOutsideStart(e),s.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{s.isPointerDown&&s.onInteractOutside&&rs(e,t)&&(s.isPointerDown=!1,s.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=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&s.onInteractOutside&&rs(e,t)&&(s.isPointerDown=!1,s.onInteractOutside(e))},r=e=>{s.ignoreEmulatedMouseEvents=!0,s.onInteractOutside&&s.isPointerDown&&rs(e,t)&&(s.isPointerDown=!1,s.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,s,r])}({ref:t,onInteractOutside:s?e=>{u&&!u(e.target)||(op[op.length-1]===t&&(e.stopPropagation(),e.preventDefault()),c())}:null,onInteractOutsideStart:e=>{u&&!u(e.target)||op[op.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:d}=Xa({isDisabled:!r,onBlurWithin:e=>{u&&!u(e.relatedTarget)||n()}});return{overlayProps:Rt({onKeyDown:e=>{"Escape"!==e.key||l||(e.preventDefault(),c())}},d),underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}function sp(e,t,n){let r,{type:o}=e,{isOpen:a}=t;i((()=>{n&&n.current&&tp.set(n.current,t.close)})),"menu"===o?r=!0:"listbox"===o&&(r="listbox");let s=Ut();return{triggerProps:{"aria-haspopup":r,"aria-expanded":a,"aria-controls":a?s:null},overlayProps:{id:s}}}const lp="undefined"!=typeof window&&window.visualViewport,up=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function cp(e){void 0===e&&(e={});let{isDisabled:t}=e;Kt((()=>{if(!t)return vn()?function(){let e,t=0,n=n=>{e=an(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&&!up.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&&!up.has(t.type)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",lp&&(lp.height<window.innerHeight?requestAnimationFrame((()=>{fp(t)})):lp.addEventListener("resize",(()=>fp(t)),{once:!0}))})))},a=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,u=Wt(dp(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),dp(document.documentElement,"overflow","hidden"),dp(document.body,"marginTop","-"+l+"px"));window.scrollTo(0,0);let c=Wt(pp(document,"touchstart",n,{passive:!1,capture:!0}),pp(document,"touchmove",r,{passive:!1,capture:!0}),pp(document,"touchend",i,{passive:!1,capture:!0}),pp(document,"focus",o,!0),pp(window,"scroll",a));return()=>{u(),c(),window.scrollTo(s,l)}}():Wt(dp(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),dp(document.documentElement,"overflow","hidden"))}),[t])}function dp(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function pp(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function fp(e){let t=an(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 hp=t.createContext(null);function vp(e){let{children:n}=e,i=r(hp),[a,s]=o(0),u=l((()=>({parent:i,modalCount:a,addModal(){s((e=>e+1)),i&&i.addModal()},removeModal(){s((e=>e-1)),i&&i.removeModal()}})),[i,a]);return t.createElement(hp.Provider,{value:u},n)}function gp(e){let t=r(hp);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 mp;mp=JSON.parse('{"dismiss":"تجاهل"}');var bp;bp=JSON.parse('{"dismiss":"Отхвърляне"}');var yp;yp=JSON.parse('{"dismiss":"Odstranit"}');var xp;xp=JSON.parse('{"dismiss":"Luk"}');var wp;wp=JSON.parse('{"dismiss":"Schließen"}');var Sp;Sp=JSON.parse('{"dismiss":"Απόρριψη"}');var Ep;Ep=JSON.parse('{"dismiss":"Dismiss"}');var kp;kp=JSON.parse('{"dismiss":"Descartar"}');var Pp;Pp=JSON.parse('{"dismiss":"Lõpeta"}');var Tp;Tp=JSON.parse('{"dismiss":"Hylkää"}');var Cp;Cp=JSON.parse('{"dismiss":"Rejeter"}');var Op;Op=JSON.parse('{"dismiss":"התעלם"}');var Np;Np=JSON.parse('{"dismiss":"Odbaci"}');var jp;jp=JSON.parse('{"dismiss":"Elutasítás"}');var Lp;Lp=JSON.parse('{"dismiss":"Ignora"}');var Ap;Ap=JSON.parse('{"dismiss":"閉じる"}');var Fp;Fp=JSON.parse('{"dismiss":"무시"}');var Dp;Dp=JSON.parse('{"dismiss":"Atmesti"}');var Rp;Rp=JSON.parse('{"dismiss":"Nerādīt"}');var Ip;Ip=JSON.parse('{"dismiss":"Lukk"}');var Mp;Mp=JSON.parse('{"dismiss":"Negeren"}');var _p;_p=JSON.parse('{"dismiss":"Zignoruj"}');var zp;zp=JSON.parse('{"dismiss":"Descartar"}');var Kp;Kp=JSON.parse('{"dismiss":"Dispensar"}');var Vp;Vp=JSON.parse('{"dismiss":"Revocare"}');var Up;Up=JSON.parse('{"dismiss":"Пропустить"}');var qp;qp=JSON.parse('{"dismiss":"Zrušiť"}');var Bp;Bp=JSON.parse('{"dismiss":"Opusti"}');var Wp;Wp=JSON.parse('{"dismiss":"Odbaci"}');var Gp;Gp=JSON.parse('{"dismiss":"Avvisa"}');var Jp;Jp=JSON.parse('{"dismiss":"Kapat"}');var Hp;Hp=JSON.parse('{"dismiss":"Скасувати"}');var $p;$p=JSON.parse('{"dismiss":"取消"}');var Xp;Xp=JSON.parse('{"dismiss":"關閉"}');const Yp={"ar-AE":wl(mp).default,"bg-BG":wl(bp).default,"cs-CZ":wl(yp).default,"da-DK":wl(xp).default,"de-DE":wl(wp).default,"el-GR":wl(Sp).default,"en-US":wl(Ep).default,"es-ES":wl(kp).default,"et-EE":wl(Pp).default,"fi-FI":wl(Tp).default,"fr-FR":wl(Cp).default,"he-IL":wl(Op).default,"hr-HR":wl(Np).default,"hu-HU":wl(jp).default,"it-IT":wl(Lp).default,"ja-JP":wl(Ap).default,"ko-KR":wl(Fp).default,"lt-LT":wl(Dp).default,"lv-LV":wl(Rp).default,"nb-NO":wl(Ip).default,"nl-NL":wl(Mp).default,"pl-PL":wl(_p).default,"pt-BR":wl(zp).default,"pt-PT":wl(Kp).default,"ro-RO":wl(Vp).default,"ru-RU":wl(Up).default,"sk-SK":wl(qp).default,"sl-SI":wl(Bp).default,"sr-SP":wl(Wp).default,"sv-SE":wl(Gp).default,"tr-TR":wl(Jp).default,"uk-UA":wl(Hp).default,"zh-CN":wl($p).default,"zh-TW":wl(Xp).default};function Zp(e){let{onDismiss:n}=e,r=pi(Yp);return t.createElement(hl,null,t.createElement("button",{tabIndex:-1,"aria-label":r("dismiss"),onClick:()=>{n&&n()}}))}let Qp=new WeakMap;var ef={display:"block",size:"default"},tf=j(j([],N(zo),!1),N(Vo),!1),nf=function(e){var t=e.children,n=e.tokens,r=e.fonts,s=e.publicUrl,l=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=oo(d,tf,ef),m=M.jsx(y,k({disableVendorPrefixes:!0},{children:M.jsxs(_o,k({ref:p,className:"root"},ea(d,{eventProps:!0}),{styles:g},{children:[M.jsx(md,{tokens:n,publicUrl:s,fonts:r,font:u,monospaceFont:c},void 0),M.jsx(vp,{children:t},void 0)]}),void 0)}),void 0);return M.jsx(Ii,k({router:l,root:h},{children:m}),void 0)},rf=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 s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=o[s])}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 s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],u=i.util.type(l);"Object"!==u||o[a(l)]?"Array"!==u||o[a(l)]||(o[a(l)]=!0,e(l,n,s,o)):(o[a(l)]=!0,e(l,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),s=i.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var l=n.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&(l.className=l.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var u={element:n,language:a,grammar:s,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),(l=u.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.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 l;return u(i,i.head,e),s(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 s(e,t,n,r,l,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=l;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 L=P[0],A=k.slice(0,C),F=k.slice(C+L.length),D=E+k.length;d&&D>d.reach&&(d.reach=D);var R=S.prev;if(A&&(R=u(t,R,A),E+=A.length),c(t,R,T),S=u(t,R,new o(p,g?i.tokenize(L,g):L,y,L)),F&&u(t,S,F),T>1){var I={cause:p+","+h,reach:D};s(e,t,n,S.prev,E,I),d&&I.reach>d.reach&&(d.reach=I.reach)}}}}}}function l(){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 s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+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 s in i)t.call(i,s)&&i[s]&&e.push(s);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,s=null,l=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),s=$(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),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,a,s),u=!0,c="hsv"):ae(e.h)&&ae(e.s)&&ae(e.l)&&(a=$(e.s),l=$(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,s=2*n-a;r=Y(s,a,e+1/3),i=Y(s,a,e),o=Y(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,a,l),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 se=[{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 le(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,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,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=le(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 s=1;s<=4;s+=1){var l=le(r),u=ue(te({h:de(l,s),s:pe(l,s),v:fe(l,s)}));n.push(u)}return"dark"===t.theme?se.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 s,l,u;if((null===(s=n.csp)||void 0===s?void 0:s.nonce)&&a.nonce!==(null===(l=n.csp)||void 0===l?void 0:l.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 Le="\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",Ae=["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,s=e.onClick,l=e.style,u=e.primaryColor,c=e.secondaryColor,d=W(e,Ae),p=Fe;if(u&&(p={primaryColor:u,secondaryColor:c||Ne(u)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Le,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:s,style:l,"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=q(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,s=t.rotate,l=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=l;void 0===v&&u&&(v=-1);var g=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,m=q(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),qe={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"},Be=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:qe}))};Be.displayName="CaretUpOutlined";var We=e.forwardRef(Be),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),st={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"},lt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:st}))};lt.displayName="EyeOutlined";var ut=e.forwardRef(lt),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:"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"},xt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:yt}))};xt.displayName="InfoOutlined";var wt=e.forwardRef(xt),St={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"},Et=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:St}))};Et.displayName="LoadingOutlined";var kt=e.forwardRef(Et),Pt={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"},Tt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Pt}))};Tt.displayName="SearchOutlined";var Ct=e.forwardRef(Tt),Ot={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"},Nt=function(t,n){return e.createElement(ze,V(V({},t),{},{ref:n,icon:Ot}))};Nt.displayName="WarningOutlined";var jt=e.forwardRef(Nt);function Lt(e,t,n){let[r,i]=o(e||t),l=a(void 0!==e),u=l.current,c=void 0!==e,d=a(r);u!==c&&console.warn("WARN: A component changed from "+(u?"controlled":"uncontrolled")+" to "+(c?"controlled":"uncontrolled")+"."),l.current=c;let p=s((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 s=e(c?d.current:t,...i);return a(s,...r),c?t:s}))}else c||i(e),a(e,...r)}),[c,n]);return c?d.current=e:e=r,[e,p]}function At(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(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){let e=Math.pow(10,l);o=Math.round(o*e)/e}return o}function Ft(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=Ft(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Dt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ft(e))&&(r&&(r+=" "),r+=t);return r}function Rt(){return(Rt=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 It={prefix:String(Math.round(1e10*Math.random())),current:0},Mt=t.createContext(It);let _t=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function zt(){let e=r(Mt)!==It,[t,n]=o(e);return"undefined"!=typeof window&&e&&u((()=>{n(!1)}),[]),t}const Kt="undefined"!=typeof window?t.useLayoutEffect:()=>{};let Vt=new Map;function Ut(e){let t=a(!0);t.current=!0;let[n,s]=o(e),u=a(null),c=function(e){let t=r(Mt);return t!==It||_t||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),l((()=>e||"react-aria"+t.prefix+"-"+ ++t.current),[e])}(n),d=e=>{t.current?u.current=e:s(e)};return Vt.set(c,d),Kt((()=>{t.current=!1}),[d]),Kt((()=>{let e=c;return()=>{Vt.delete(e)}}),[c]),i((()=>{let e=u.current;e&&(s(e),u.current=null)}),[s,d]),c}function qt(e,t){if(e===t)return e;let n=Vt.get(e);if(n)return n(t),t;let r=Vt.get(t);return r?(r(e),e):t}function Bt(){let e=Ut(),[t,n]=o(e);return Kt((()=>{Vt.get(e)&&!document.getElementById(e)?n(null):n(e)}),[e]),t}function Wt(){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 Gt(){let e=Rt({},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]=Wt(r,i):"className"!==t&&"UNSAFE_className"!==t||"string"!=typeof r||"string"!=typeof i?"id"===t&&r&&i?e.id=qt(r,i):e[t]=void 0!==i?i:r:e[t]=Dt(r,i)}}return e}const Jt=new Set(["id"]),Ht=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),$t=/^(data-.*)$/;function Xt(e,t){void 0===t&&(t={});let{labelable:n,propNames:r}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Jt.has(t)||n&&Ht.has(t)||null!=r&&r.has(t)||$t.test(t))&&(i[t]=e[t]);return i}function Yt(e){if(function(){if(null==Zt){Zt=!1;try{document.createElement("div").focus({get preventScroll(){return Zt=!0,!0}})}catch(e){}}return Zt}())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 Zt=null;let Qt=new Map,en=new Set;function tn(){if("undefined"==typeof window)return;let e=t=>{let n=Qt.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Qt.delete(t.target)),0===Qt.size)){for(let e of en)e();en.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=Qt.get(t.target);n||(n=new Set,Qt.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function nn(e){requestAnimationFrame((()=>{0===Qt.size?e():en.add(e)}))}function rn(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;if(n=Ut(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 on(e,t){Kt((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function an(e){for(;e&&!sn(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function sn(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?tn():document.addEventListener("DOMContentLoaded",tn));let ln="undefined"!=typeof window&&window.visualViewport;function un(){let[e,t]=o((()=>cn()));return i((()=>{let e=()=>{t((e=>{let t=cn();return t.width===e.width&&t.height===e.height?e:t}))};return ln?ln.addEventListener("resize",e):window.addEventListener("resize",e),()=>{ln?ln.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function cn(){return{width:(null==ln?void 0:ln.width)||window.innerWidth,height:(null==ln?void 0:ln.height)||window.innerHeight}}function dn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgent)}function pn(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.platform)}function fn(){return pn(/^Mac/)}function hn(){return pn(/^iPhone/)}function vn(){return hn()||pn(/^iPad/)||fn()&&navigator.maxTouchPoints>1}function gn(){return fn()||vn()}function mn(){return dn(/AppleWebKit/)&&!dn(/Chrome/)}function bn(e,t,n,r){let o=a(n);o.current=n;let s=null==n;i((()=>{if(s)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,s])}let yn=new Map,xn=!1;try{xn="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let wn=!1;try{wn="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const Sn={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class En{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&&!wn){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=Sn[e])||!r[n])throw new Error("Unsupported unit "+e+" with unitDisplay = "+n);t=Rt({},t,{style:"decimal"})}let i=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(yn.has(i))return yn.get(i);let o=new Intl.NumberFormat(e,t);return yn.set(i,o),o}(e,t),this.options=t}format(e){let t="";if(t=xn||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&&!wn){var n;let{unit:e,unitDisplay:r="short",locale:i}=this.resolvedOptions(),o=null==(n=Sn[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 xn||null==this.options.signDisplay||(e=Rt({},e,{signDisplay:this.options.signDisplay})),wn||"unit"!==this.options.style||(e=Rt({},e,{style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay})),e}}const kn=new RegExp("^.*\\(.*\\).*$"),Pn=["latn","arab","hanidec"];class Tn{constructor(e,t){void 0===t&&(t={}),this.locale=void 0,this.options=void 0,this.locale=e,this.options=t}parse(e){return On(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return On(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return On(this.locale,this.options,e).options.numberingSystem}}const Cn=new Map;function On(e,t,n){let r=Nn(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let i of Pn)if(i!==r.options.numberingSystem){let r=Nn(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(r.isValidPartialNumber(n))return r}return r}function Nn(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=Cn.get(n);return r||(r=new jn(e,t),Cn.set(n,r)),r}class jn{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,s;let l=e.formatToParts(-10000.111),u=e.formatToParts(10000.111),c=e.formatToParts(1),d=null!=(r=null==(i=l.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=l.find((e=>"decimal"===e.type)))?void 0:a.value,h=null==(s=l.find((e=>"group"===e.type)))?void 0:s.value,v=l.filter((e=>!Ln.has(e.type))).map((e=>Fn(e.value))),g=c.filter((e=>!Ln.has(e.type))).map((e=>Fn(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=An(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&&kn.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=An(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal),".",this.symbols.group)),"fr-FR"===this.options.locale&&(e=An(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=An(e,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,"")).length}}const Ln=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);function An(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Fn(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var Dn,Rn,In;function Mn(e){return e.type===Rn.literal}function _n(e){return e.type===Rn.argument}function zn(e){return e.type===Rn.number}function Kn(e){return e.type===Rn.date}function Vn(e){return e.type===Rn.time}function Un(e){return e.type===Rn.select}function qn(e){return e.type===Rn.plural}function Bn(e){return e.type===Rn.pound}function Wn(e){return e.type===Rn.tag}function Gn(e){return!(!e||"object"!=typeof e||e.type!==In.number)}function Jn(e){return!(!e||"object"!=typeof e||e.type!==In.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"}(Dn||(Dn={})),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"}(Rn||(Rn={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(In||(In={}));var Hn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,$n=/(?:[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 Xn(e){var t={};return e.replace($n,(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 Yn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Zn,Qn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,er=/^(@+)?(\+|#+)?$/g,tr=/(\*)(0+)|(#+)(0+)|(0+)/g,nr=/^(0+)$/;function rr(e){var t={};return e.replace(er,(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 ir(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 or(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)),!nr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ar(e){var t=ir(e);return t||{}}function sr(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),ar(t))}),{}));continue;case"engineering":t=k(k(k({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return k(k({},e),ar(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(tr,(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(nr.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Qn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Qn,(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),rr(i.options[0])))}else if(er.test(i.stem))t=k(k({},t),rr(i.stem));else{var o=ir(i.stem);o&&(t=k(k({},t),o));var a=or(i.stem);a&&(t=k(k({},t),a))}}return t}var lr=new RegExp("^"+Hn.source+"*"),ur=new RegExp(Hn.source+"*$");function cr(e,t){return{start:e,end:t}}var dr=!!String.prototype.startsWith,pr=!!String.fromCodePoint,fr=!!Object.fromEntries,hr=!!String.prototype.codePointAt,vr=!!String.prototype.trimStart,gr=!!String.prototype.trimEnd,mr=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},br=!0;try{br="a"===(null===(Zn=Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Zn?void 0:Zn[0])}catch(e){br=!1}var yr,xr=dr?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},wr=pr?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},Sr=fr?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},Er=hr?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}},kr=vr?function(e){return e.trimStart()}:function(e){return e.replace(lr,"")},Pr=gr?function(e){return e.trimEnd()}:function(e){return e.replace(ur,"")};function Tr(e,t){return new RegExp(e,t)}if(br){var Cr=Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");yr=function(e,t){var n;return Cr.lastIndex=t,null!==(n=Cr.exec(e)[1])&&void 0!==n?n:""}}else yr=function(e,t){for(var n=[];;){var r=Er(e,t);if(void 0===r||jr(r)||Lr(r))break;n.push(r),t+=r>=65536?2:1}return wr.apply(void 0,n)};var Or=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(Dn.UNMATCHED_CLOSING_TAG,cr(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Nr(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:Rn.pound,location:cr(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:Rn.literal,value:"<"+r+"/>",location:cr(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()||!Nr(this.char()))return this.error(Dn.INVALID_TAG,cr(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(Dn.UNMATCHED_CLOSING_TAG,cr(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Rn.tag,value:r,children:o,location:cr(n,this.clonePosition())},err:null}:this.error(Dn.INVALID_TAG,cr(a,this.clonePosition())))}return this.error(Dn.UNCLOSED_TAG,cr(n,this.clonePosition()))}return this.error(Dn.INVALID_TAG,cr(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 s=cr(n,this.clonePosition());return{val:{type:Rn.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Nr(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 wr.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(),wr(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Dn.EXPECT_ARGUMENT_CLOSING_BRACE,cr(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Dn.EMPTY_ARGUMENT,cr(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Dn.MALFORMED_ARGUMENT,cr(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Dn.EXPECT_ARGUMENT_CLOSING_BRACE,cr(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Rn.argument,value:r,location:cr(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Dn.EXPECT_ARGUMENT_CLOSING_BRACE,cr(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Dn.MALFORMED_ARGUMENT,cr(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=yr(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:cr(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Dn.EXPECT_ARGUMENT_TYPE,cr(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(p=Pr(g.val)).length)return this.error(Dn.EXPECT_ARGUMENT_STYLE,cr(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:cr(u,this.clonePosition())}}if((m=this.tryParseArgumentClose(r)).err)return m;var c=cr(r,this.clonePosition());if(l&&xr(null==l?void 0:l.style,"::",0)){var d=kr(l.style.slice(2));if("number"===a)return(g=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?g:{val:{type:Rn.number,value:n,location:c,style:g.val},err:null};if(0===d.length)return this.error(Dn.EXPECT_DATE_TIME_SKELETON,c);var p={type:In.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Xn(d):{}};return{val:{type:"date"===a?Rn.date:Rn.time,value:n,location:c,style:p},err:null}}return{val:{type:"number"===a?Rn.number:"date"===a?Rn.date:Rn.time,value:n,location:c,style:null!==(i=null==l?void 0:l.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(Dn.EXPECT_SELECT_ARGUMENT_OPTIONS,cr(f,k({},f)));this.bumpSpace();var h=this.parseIdentifierIfPossible(),v=0;if("select"!==a&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(Dn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,cr(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(Dn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Dn.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=cr(r,this.clonePosition());return"select"===a?{val:{type:Rn.select,value:n,options:Sr(b.val),location:y},err:null}:{val:{type:Rn.plural,value:n,options:Sr(b.val),offset:v,pluralType:"plural"===a?"cardinal":"ordinal",location:y},err:null};default:return this.error(Dn.INVALID_ARGUMENT_TYPE,cr(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Dn.EXPECT_ARGUMENT_CLOSING_BRACE,cr(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(Dn.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,cr(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(Yn).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),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(Dn.INVALID_NUMBER_SKELETON,t)}return{val:{type:In.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?sr(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,o=!1,a=[],s=new Set,l=r.value,u=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(Dn.EXPECT_PLURAL_ARGUMENT_SELECTOR,Dn.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=cr(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}if(s.has(l))return this.error("select"===t?Dn.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Dn.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Dn.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Dn.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,cr(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([l,{value:f.val,location:cr(p,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===a.length?this.error("select"===t?Dn.EXPECT_SELECT_ARGUMENT_SELECTOR:Dn.EXPECT_PLURAL_ARGUMENT_SELECTOR,cr(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Dn.MISSING_OTHER_CLAUSE,cr(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 s=cr(r,this.clonePosition());return i?mr(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},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=Er(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(xr(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()&&jr(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 Nr(e){return e>=97&&e<=122||e>=65&&e<=90}function jr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Lr(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 Ar(e){e.forEach((function(e){if(delete e.location,Un(e)||qn(e))for(var t in e.options)delete e.options[t].location,Ar(e.options[t].value);else zn(e)&&Gn(e.style)||(Kn(e)||Vn(e))&&Jn(e.style)?delete e.style.location:Wn(e)&&Ar(e.children)}))}function Fr(e,t){void 0===t&&(t={}),t=k({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Or(e,t).parse();if(n.err){var r=SyntaxError(Dn[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||Ar(n.val),n.val}function Dr(e,t){var n=t&&t.cache?t.cache:Ur,r=t&&t.serializer?t.serializer:zr;return(t&&t.strategy?t.strategy:_r)(e,{cache:n,serializer:r})}function Rr(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 Ir(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 Mr(e,t,n,r,i){return n.bind(t,e,r,i)}function _r(e,t){return Mr(e,this,1===e.length?Rr:Ir,t.cache.create(),t.serializer)}var zr=function(){return JSON.stringify(arguments)};function Kr(){this.cache=Object.create(null)}Kr.prototype.get=function(e){return this.cache[e]},Kr.prototype.set=function(e,t){this.cache[e]=t};var Vr,Ur={create:function(){return new Kr}},qr={variadic:function(e,t){return Mr(e,this,Ir,t.cache.create(),t.serializer)},monadic:function(e,t){return Mr(e,this,Rr,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Vr||(Vr={}));var Br,Wr=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),Gr=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',Vr.INVALID_VALUE,i)||this}return E(t,e),t}(Wr),Jr=function(e){function t(t,n,r){return e.call(this,'Value for "'+t+'" must be of type '+n,Vr.INVALID_VALUE,r)||this}return E(t,e),t}(Wr),Hr=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',Vr.MISSING_VALUE,n)||this}return E(t,e),t}(Wr);function $r(e){return"function"==typeof e}function Xr(e,t,n,r,i,o,a){if(1===e.length&&Mn(e[0]))return[{type:Br.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Mn(c))s.push({type:Br.literal,value:c.value});else if(Bn(c))"number"==typeof o&&s.push({type:Br.literal,value:n.getNumberFormat(t).format(o)});else{var d=c.value;if(!i||!(d in i))throw new Hr(d,a);var p=i[d];if(_n(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?Br.literal:Br.object,value:p});else if(Kn(c)){var f="string"==typeof c.style?r.date[c.style]:Jn(c.style)?c.style.parsedOptions:void 0;s.push({type:Br.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(Vn(c)){f="string"==typeof c.style?r.time[c.style]:Jn(c.style)?c.style.parsedOptions:void 0;s.push({type:Br.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(zn(c)){(f="string"==typeof c.style?r.number[c.style]:Gn(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),s.push({type:Br.literal,value:n.getNumberFormat(t,f).format(p)})}else{if(Wn(c)){var h=c.children,v=c.value,g=i[v];if(!$r(g))throw new Jr(v,"function",a);var m=g(Xr(h,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map((function(e){return{type:"string"==typeof e?Br.literal:Br.object,value:e}})))}if(Un(c)){if(!(b=c.options[p]||c.options.other))throw new Gr(c.value,p,Object.keys(c.options),a);s.push.apply(s,Xr(b.value,t,n,r,i))}else if(qn(c)){var b;if(!(b=c.options["="+p])){if(!Intl.PluralRules)throw new Wr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Vr.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 Gr(c.value,p,Object.keys(c.options),a);s.push.apply(s,Xr(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===Br.literal&&t.type===Br.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function Yr(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 Zr(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"}(Br||(Br={}));var Qr=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===Br.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 Xr(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=Yr(e.formats,r),this.locales=n,this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Dr((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:Zr(o.number),strategy:qr.variadic}),getDateTimeFormat:Dr((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:Zr(o.dateTime),strategy:qr.variadic}),getPluralRules:Dr((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:Zr(o.pluralRules),strategy:qr.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=Fr,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 ei{constructor(e,t){void 0===t&&(t="en-US"),this.messages=void 0,this.defaultLocale=void 0,this.messages=Rt({},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 ti{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 Qr(t,this.locale),this.cache[e]=n}return n.format(t)}}const ni=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ri=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ii(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return ni.has(t)}let t=e.split("-")[0];return ri.has(t)}function oi(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:ii(e)?"rtl":"ltr"}}let ai=oi(),si=new Set;function li(){ai=oi();for(let e of si)e(ai)}const ui=t.createContext(null);function ci(){let e=function(){let e=zt(),[t,n]=o(ai);return i((()=>(0===si.size&&window.addEventListener("languagechange",li),si.add(n),()=>{si.delete(n),0===si.size&&window.removeEventListener("languagechange",li)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return r(ui)||e}const di=new WeakMap;function pi(e){let{locale:t}=ci(),n=l((()=>function(e){let t=di.get(e);return t||(t=new ei(e),di.set(e,t)),t}(e)),[e]),r=l((()=>new ti(t,n)),[t,n]);return s(((e,t)=>r.format(e,t)),[r])}let fi=new Map;function hi(e){let{locale:t}=ci(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(fi.has(n))return fi.get(n);let r=new Intl.Collator(t,e);return fi.set(n,r),r}function vi(e){return{UNSAFE_getDOMNode:()=>e.current}}function gi(e,t){return void 0===t&&(t=e),Rt({},vi(e),{focus(){t.current&&t.current.focus()}})}function mi(e){let t=a(null);return c(e,(()=>vi(t))),t}function bi(e,t){let n=a(null);return c(e,(()=>gi(n,t))),n}t.createContext(null).displayName="BreakpointContext";function yi(e,t){return n=>"rtl"===n?t:e}Rt({},{margin:["margin",Ei],marginStart:[yi("marginLeft","marginRight"),Ei],marginEnd:[yi("marginRight","marginLeft"),Ei],marginTop:["marginTop",Ei],marginBottom:["marginBottom",Ei],marginX:[["marginLeft","marginRight"],Ei],marginY:[["marginTop","marginBottom"],Ei],width:["width",Ei],height:["height",Ei],minWidth:["minWidth",Ei],minHeight:["minHeight",Ei],maxWidth:["maxWidth",Ei],maxHeight:["maxHeight",Ei],isHidden:["display",function(e){return e?"none":void 0}],alignSelf:["alignSelf",Ni],justifySelf:["justifySelf",Ni],position:["position",Oi],zIndex:["zIndex",Oi],top:["top",Ei],bottom:["bottom",Ei],start:[yi("left","right"),Ei],end:[yi("right","left"),Ei],left:["left",Ei],right:["right",Ei],order:["order",Oi],flex:["flex",function(e){if("boolean"==typeof e)return e?"1":void 0;return""+e}],flexGrow:["flexGrow",Ni],flexShrink:["flexShrink",Ni],flexBasis:["flexBasis",Ni],gridArea:["gridArea",Ni],gridColumn:["gridColumn",Ni],gridColumnEnd:["gridColumnEnd",Ni],gridColumnStart:["gridColumnStart",Ni],gridRow:["gridRow",Ni],gridRowEnd:["gridRowEnd",Ni],gridRowStart:["gridRowStart",Ni]},{backgroundColor:["backgroundColor",function(e){return"var(--spectrum-alias-background-color-"+e+", "+ki(e,"background")+")"}],borderWidth:["borderWidth",Ti],borderStartWidth:[yi("borderLeftWidth","borderRightWidth"),Ti],borderEndWidth:[yi("borderRightWidth","borderLeftWidth"),Ti],borderLeftWidth:["borderLeftWidth",Ti],borderRightWidth:["borderRightWidth",Ti],borderTopWidth:["borderTopWidth",Ti],borderBottomWidth:["borderBottomWidth",Ti],borderXWidth:[["borderLeftWidth","borderRightWidth"],Ti],borderYWidth:[["borderTopWidth","borderBottomWidth"],Ti],borderColor:["borderColor",Pi],borderStartColor:[yi("borderLeftColor","borderRightColor"),Pi],borderEndColor:[yi("borderRightColor","borderLeftColor"),Pi],borderLeftColor:["borderLeftColor",Pi],borderRightColor:["borderRightColor",Pi],borderTopColor:["borderTopColor",Pi],borderBottomColor:["borderBottomColor",Pi],borderXColor:[["borderLeftColor","borderRightColor"],Pi],borderYColor:[["borderTopColor","borderBottomColor"],Pi],borderRadius:["borderRadius",Ci],borderTopStartRadius:[yi("borderTopLeftRadius","borderTopRightRadius"),Ci],borderTopEndRadius:[yi("borderTopRightRadius","borderTopLeftRadius"),Ci],borderBottomStartRadius:[yi("borderBottomLeftRadius","borderBottomRightRadius"),Ci],borderBottomEndRadius:[yi("borderBottomRightRadius","borderBottomLeftRadius"),Ci],borderTopLeftRadius:["borderTopLeftRadius",Ci],borderTopRightRadius:["borderTopRightRadius",Ci],borderBottomLeftRadius:["borderBottomLeftRadius",Ci],borderBottomRightRadius:["borderBottomRightRadius",Ci],padding:["padding",Ei],paddingStart:[yi("paddingLeft","paddingRight"),Ei],paddingEnd:[yi("paddingRight","paddingLeft"),Ei],paddingLeft:["paddingLeft",Ei],paddingRight:["paddingRight",Ei],paddingTop:["paddingTop",Ei],paddingBottom:["paddingBottom",Ei],paddingX:[["paddingLeft","paddingRight"],Ei],paddingY:[["paddingTop","paddingBottom"],Ei],overflow:["overflow",Ni]});const xi=/(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/,wi=/^\s*\w+\(/,Si=/(static-)?size-\d+|single-line-(height|width)/g;function Ei(e){return"number"==typeof e?e+"px":xi.test(e)?e:wi.test(e)?e.replace(Si,"var(--spectrum-global-dimension-$&, var(--spectrum-alias-$&))"):"var(--spectrum-global-dimension-"+e+", var(--spectrum-alias-"+e+"))"}function ki(e,t){return void 0===t&&(t="default"),"var(--spectrum-global-color-"+e+", var(--spectrum-semantic-"+e+"-color-"+t+"))"}function Pi(e){return"default"===e?"var(--spectrum-alias-border-color)":"var(--spectrum-alias-border-color-"+e+", "+ki(e,"border")+")"}function Ti(e){return"var(--spectrum-alias-border-size-"+e+")"}function Ci(e){return"var(--spectrum-alias-border-radius-"+e+")"}function Oi(e){return e}function Ni(e){return e}var ji=n({});function Li(e){var t=e.children,n=P(e,["children"]),i=Object.assign({},r(ji));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(ji.Provider,k({value:i},{children:t}),void 0)}function Ai(e,t){var n=r(ji),i={};return n[e]&&n[e].forEach((function(e){Object.assign(i,"function"==typeof e?e(t):e)})),i}var Fi=n([980]);function Di(e){var t=e.value,n=e.children;return M.jsx(Fi.Provider,k({value:t},{children:n}),void 0)}var Ri=n({});function Ii(e){var t=e.breakpoints,n=e.children,i=e.insideForm,o=e.isDisabled,a=e.isReadOnly,s=e.isRequired,l=e.validationState,u=e.router,c=e.styles,d=e.root,p=e.ref;c&&(n=M.jsx(Li,k({},c,{children:n}),void 0)),t&&(n=M.jsx(Di,k({value:t},{children:n}),void 0));var f=r(Ri),h={ref:p,breakpoints:t,insideForm:i,isDisabled:o,isReadOnly:a,isRequired:s,validationState:l,router:u,root:d},v=Object.assign({},f);return Object.keys(h).forEach((function(e){null!=h[e]&&(v[e]=h[e])})),M.jsx(Ri.Provider,k({value:v},{children:n}),void 0)}function Mi(e){var t=r(Ri);return k(k({},t),e)}var _i={};function zi(e){var t=e.join("|");if(!_i[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 ")})),_i[t]=n}return _i[t]}var Ki={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)))"}},Vi=["top","right","bottom","left"],Ui=["rgb","rgba"],qi=["auto","max-content","min-content","none","subgrid","initial"],Bi=/("[^"]*")|('[^']*')|([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,Wi=new Map,Gi=new Map,Ji=new Map,Hi=[Gi,Wi,Ji],$i=/calc\((\d*)\)/gi;function Xi(e){return e.match(/^[a-z]/)?"[data-is-"+e+"]":e}function Yi(e,t){if(void 0===t&&(t=0),"number"==typeof e&&(e=String(e)),"string"!=typeof e)return{values:[],mods:[],all:[],value:""};var n=Hi[t];if(!n.has(e)){n.size>1e4&&n.clear();var r=[],i=[],o=[],a=1!==t,s="",l=-1,u=0,c="",d="",p="",f="",h=void 0;for(Bi.lastIndex=0,e=e.replace(/@\(/g,"var(--");h=Bi.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)s+=(m||g)+" ";else if(b)p=b.slice(0,-1),s+=b,u++;else if(y)d=2===t?y:Zi(y,!1).color;else if(w)u||qi.includes(w)?s+=w+" ":(r.push(w),i.push(w),c+=w+" ");else if(T)"("===T&&(~l||(l=u,s+="calc"),u++),")"===T&&u&&(s=s.trim(),u>0&&u--,u===l&&(l=-1)),")"!==T||u||(f=p,p=""),s+=T+(")"===T?" ":"");else if(P){if(!~l&&a)if(s){if(s.includes("(")){var O=s.lastIndexOf("(");s=s.slice(0,O)+"(calc("+s.slice(O+1),l=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)),l=u,u++,s="calc(("+j+") ")}s+=P+" "}else if(S)if(k&&Ki[k]){var L=io(E,k);!~l&&L.startsWith("(")&&(s+="calc"),s+=L+" "}else s+=S+" ";else x?(x=x.replace("@","--"),s+="var"!==p?"var("+x+") ":x+" "):C&&(~l?(l=-1,u--,s=s.trim()+"), "):s=s.trim()+", ");if(s&&!u){var A=no(s);Ui.includes(f)?d=A:A.startsWith("color(")?d=Zi(A=A.slice(6,-1)).color:(","!==A&&(o.push(A),i.push(A)),c+=A+" "),s=""}}if(u)(A=no(""+s.trim()+")".repeat(u))).startsWith("color(")?d=Zi(A=A.slice(6,-1)).color:(","!==A&&(o.push(A),i.push(A)),c+=A);n.set(e,{values:o,mods:r,all:i,value:(c+" "+d).trim(),color:d})}return n.get(e)}function Zi(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?Qi(i,Math.round(r)/100):(o=i,a=null,s=eo("#"+i),l=s?", "+s:"","var(--"+o+"-color"+(a?", var(--"+a+l+")":l)+")"),name:i,opacity:null!=r?r:100}}var o,a,s,l,u,c,d=Yi(e),p=d.values,f=d.mods,h=d.color;return h?{color:(h.startsWith("var(")?h:eo(h))||h}:(p.forEach((function(e){e.match(/^((var|rgb|rgba|hsl|hsla)\(|#[0-9a-f]{3,6})/)?h=e.startsWith("var")?e:eo(e):e.endsWith("%")&&(c=parseInt(e))})),h?{color:h}:(u=u||f[0])?c?{color:Qi(u,Math.round(c)/100),name:u,opacity:c}:{name:u,color:"current"===u?"currentColor":"inherit"===u?"inherit":"var(--"+u+"-color)"}:{})}function Qi(e,t,n,r){var i=r?", "+r:"";return"rgba(var(--"+e+"-color-rgb"+(n?", var(--"+n+"-color-rgb, "+i+")":i)+"), "+t+")"}function eo(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 to(e){return e.match(/\d+/g).map((function(e){return parseInt(e)})).slice(0,3)}function no(e){return e.trim().replace($i,(function(e,t){return t}))}function ro(e,t){return e.filter((function(e){return t.includes(e)}))}function io(e,t){var n=Ki[t];return"function"==typeof n?n(e):"1"===e||1===e?n:"("+e+" * "+n+")"}function oo(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,s=e[n];i&&i.includes(n)||t.includes(a)&&(null!=s&&!1!==s?o[a]=s:a in o&&delete o[a])}),{}),o}function ao(e,t){if(void 0===t&&(t=""),!e)return"";if(Array.isArray(e))return e.reduce((function(e,n){return e+ao(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 so(e,t){void 0===t&&(t=1e3);var n=vo((function(t){return ao(e(t))}),t),r=vo((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=po(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 ho(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(Xi).join("")+(r.notMods||[]).map((function(e){return":not("+Xi(e)+")"})).join("");return""+t+e+i+n+"{\n"+r.value+"}\n"}),"")}("&&",a,t)}),t);return Object.assign(r,{__lookupStyles:e.__lookupStyles})}var lo=/([&|!^])|([()])|([a-z0-6-]+)|(:[a-z0-6-]+)|(\.[a-z0-6-]+)|(\[[^\]]+])/gi,uo=["!","&","|","^"];function co(e){return 1===e.length?e[0]:(uo.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 po=vo((function(e,t){var n=e.replace(/,/g,"|").match(lo);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(co(o)),o=i[a];break;default:e.length>1&&(r.includes(e)||r.push(e)),o.push(e)}}));a;)a--,i[a].push(co(o)),o=i[a];return{tokens:n,mods:r,model:co(i[0]),value:t}}));var fo={"!":function(e){return!e},"^":function(e,t){return e^t},"|":function(e,t){return e|t},"&":function(e,t){return e&t}};function ho(e,t){if(!e)return!0;if(!Array.isArray(e))return"function"==typeof t?!!t(e):!!t[e];var n=fo[e[0]];n||console.warn("CubeUIKit: unexpected compute method in the model",e);var r=e[1];if(r="object"==typeof r?!!ho(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?!!ho(i,t):"function"==typeof t?!!t(i):!!t[i])}function vo(e,t){void 0===t&&(t=1e3);var n={},r=0;return function(i,o){var a=[i,o],s="string"!=typeof a[0]||o?JSON.stringify(a):a[0];return n[s]||(r>t&&(n={},r=0),r++,n[s]=o?e(i,o):e(i)),n[s]}}var go={};function mo(e,t,n){var r=e+"."+(t||"");return go[r]||(go[r]=so((function(r){var i,o,a,s,l,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=eo(u=u.trim()),f=Zi(u),h=f.color,v=f.name;return v&&p?((i={})[d]="var(--"+v+"-color, "+p+")",i[d+"-rgb"]="var(--"+v+"-color-rgb, "+to(p).join(", ")+")",i):v?((o={})[d]="var(--"+v+"-color)",o[d+"-rgb"]="var(--"+v+"-color-rgb)",o):p?((a={})[d]=p,a[d+"-rgb"]=to(p).join(", "),a):((s={})[d]=h,s)}var g=Yi(u,1).value;return(l={})[d]=g,l}}})),go[r].__lookupStyles=[e]),go[r]}var bo={};function yo(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=so(n),Array.isArray(e)&&e.forEach((function(e){bo[e]||(bo[e]=[]),bo[e].push(n)}))}function xo(e,t,n){var r=mo(e,t,n);bo[e]||(bo[e]=[]),bo[e].push(r)}function wo(e){return e.startsWith("&")||e.startsWith(".")||e.startsWith("[")}var So={},Eo=0;function ko(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}),s="",l=[];if(!So[a]){++Eo>1e3&&(Eo=0,So={});var u=Object.keys(e),c=u.filter((function(e){return wo(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+=ko(e[n],t,r)})),u.forEach((function(t){if(!wo(t)){var n=bo[t];n||(n=bo[t]=[mo(t)]),n.forEach((function(t){if(!l.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}),{});l.push({handler:t,styleMap:r,isResponsive:n})}}))}})),l.forEach((function(e){var t=e.handler,r=e.styleMap,a=e.isResponsive,l=t.__lookupStyles;if(a){var u=l.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 l.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 s+=t(r,n)||""})),So[a]="outline: none;\n"+s+(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 So[a]}function Po(){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 s=a.value;"function"==typeof s&&s.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 To(e){return d.toArray(e).every((function(e){return!p(e)}))}function Co(){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 s=a.value;for(var l in i)/^on[A-Z]/.test(l)&&"function"==typeof i[l]&&s&&"function"==typeof s[l]?i[l]=Wt(i[l],s[l]):"className"===l&&"string"==typeof i.className&&s&&"string"==typeof s.className?i[l]=Dt(i.className,s.className):"styles"===l&&"object"==typeof i.styles&&s&&"object"==typeof s.styles?i[l]=k(k({},i.styles),s.styles):"id"===l&&i.id&&(null==s?void 0:s.id)?i.id=qt(i.id,null==s?void 0:s.id):i[l]=s&&void 0!==s[l]?s[l]:i[l];for(var l in s)void 0===i[l]&&(i[l]=s[l])}}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 Oo(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t["data-is-"+n]=""),t}),{})}var No=n({});function jo(e,t){var n=e.slot||t;return Gt((r(No)||{})[n],e)}function Lo(e){var t=r(No)||{},n=e.slots,i=void 0===n?{}:n,o=e.children,a=l((function(){return Object.keys(t).concat(Object.keys(i)).reduce((function(e,n){var r;return k(k({},e),((r={})[n]=Gt(t[n]||{},i[n]||{}),r))}),{})}),[t,i]);return M.jsx(No.Provider,k({value:a},{children:o}),void 0)}function Ao(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(No.Provider,k({value:{}},{children:r}),void 0)}var Fo="undefined"!=typeof window?e.useLayoutEffect:function(){};function Do(){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 Ro={inline:"block","inline-grid":"grid","inline-flex":"flex"},Io={block:"inline-block",grid:"inline-grid",flex:"inline-flex"},Mo=m.div((function(e){return e.css})),_o=h((function(e,t){var n=e.as,i=e.styles,o=e.breakpoints,a=e.block,s=e.mods,l=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?Ro[v.display||"inline"]:"block"),l&&(v.display="string"==typeof v.display?Io[v.display||"block"]:"inline-block");var g=r(Fi);return f=""+(f||"")+ko(v,zi(o||g)),s&&Object.assign(h,Oo(s)),M.jsx(Mo,k({as:n,"data-qa":d,"data-qaval":p},h,{hidden:u,disabled:c,ref:t,css:f}),void 0)})),zo=["display","font","preset","hide","opacity"],Ko=["gridArea","flexGrow","flexShrink","order","gridColumn","gridRow","placeSelf","zIndex","margin"],Vo=["reset","padding","shadow","border","radius","opacity","overflow","styledScrollbar","hide","outline","textAlign"],Uo=["color","fill"],qo=["textTransform","fontWeight","fontStyle"],Bo=["width","height","flexBasis"],Wo=["flow","placeItems","placeContent","alignItems","alignContent","justifyItems","justifyContent","gap","gridColumns","gridRows","gridTemplate","gridAreas"],Go=j(j(j(j(j(j([],N(zo),!1),N(Uo),!1),N(Bo),!1),N(Ko),!1),N(Vo),!1),N(Wo),!1),Jo=j(j([],N(Ko),!1),N(Bo),!1),Ho=new Set(["id"]),$o=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Xo=new Set(["as","css","qa","mods","qaVal","hidden","isHidden","disabled","isDisabled","children","style","className","href","target"]),Yo=new Set(["onPress","onHoverStart","onHoverEnd","onPressStart","onPressEnd"]),Zo=/^((data-).*)$/,Qo=/^on[A-Z].+$/;function ea(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)&&(Ho.has(a)||Xo.has(a)||n&&$o.has(a)||i&&Qo.test(a)&&!Yo.has(a)||(null==r?void 0:r.has(a))||Zo.test(a))&&(o[a]=e[a]);return o}var ta=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,s="",l="";if(s=(n=t(e))[1],r=n[2],i=n[3],o=n[4],a=n[5],s&&s.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(s.toLowerCase()))return l+=s+":",r&&r.length&&(l+="//"+r),l+=i,o&&o.length&&(l+="?"+o),a&&a.length&&(l+="#"+a),l}}}function r(e,r){if(n(e)){var i,o,a,s,l="",u="",c="",d="";if(l=(i=t(e))[1],u=i[2],o=i[3],a=i[4],s=i[5],l){if(r){if("https"!=l.toLowerCase())return}else if("http"!=l.toLowerCase())return;if(u)return/:(\d+)$/.test(u)&&(c=u.match(/:(\d+)$/)[0],u=u.replace(/:\d+$/,"")),d+=l+":",d+="//"+u,c&&(d+=c),d+=o,a&&a.length&&(d+="?"+a),s&&s.length&&(d+="#"+s),d}}}function i(e){return r(e,!0)}function o(e){return r(e)||i(e)}}(e)})),na=/^[-!#$%&'*+\/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])+$/,ra={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&&ta.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(!na.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}},ia=Object.keys(ra),oa={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,ia.includes(n)?[2,ra[n](e)?Promise.resolve():Promise.reject()]:[2,Promise.resolve()]}))}))}},aa=Object.keys(oa);function sa(e,t,n){return T(this,void 0,void 0,(function(){var r,i,o,a,s,l;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(aa),i=r.next(),u.label=2;case 2:return i.done?[3,5]:(o=i.value)in t?[4,(0,oa[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(),s={error:a},[3,8];case 7:try{i&&!i.done&&(l=r.return)&&l.call(r)}finally{if(s)throw s.error}return[7];case 8:return[2]}}))}))}function la(e,t,n){return T(this,void 0,void 0,(function(){var r,i,o,a,s,l,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,sa(e,t,n).catch((function(e){throw"string"!=typeof e&&(e=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 s=c.sent(),l={error:s},[3,8];case 7:try{o&&!o.done&&(u=i.return)&&u.call(i)}finally{if(l)throw l.error}return[7];case 8:return[2]}}))}))}function ua(e,t){return JSON.stringify(e)===JSON.stringify(t)}var ca=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.setFieldValues=this.setFieldValues.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.setInitialFieldValues=this.setInitialFieldValues.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.getFieldsValue())]:[2]}))}))},e.prototype.setFieldValues=function(e,t){var n=this;void 0===t&&(t=!1);var r=!1;Object.keys(e).forEach((function(i){var o=n.fields[i];o&&!ua(o.value,e[i])&&(r=!0,o.value=e[i],t&&(o.touched=t))})),r&&(this.forceReRender(),t&&this.onValuesChange&&this.onValuesChange(this.getFieldsValue()))},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.setFieldValue=function(e,t,n){void 0===n&&(n=!1);var r=this.fields[e];r&&!ua(t,r.value)&&(r.value=t,n&&(r.touched=n),this.forceReRender(),n&&this.onValuesChange&&this.onValuesChange(this.getFieldsValue()))},e.prototype.getFieldInstance=function(e){return this.fields[e]},e.prototype.setInitialFieldValues=function(e){this.initialFields=e||{}},e.prototype.resetFields=function(){this.setFieldValues(this.initialFields)},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,la(t.value,t.rules,this).then((function(){t.errors&&!t.errors.length||(t.errors=[],n.forceReRender())})).catch((function(e){return t.errors&&ua(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.all(n.map((function(e){return t.validateField(e).catch((function(t){return r[e]=t,Promise.reject()}))}))).catch((function(){return Promise.reject(r)}))},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){this.fields[e]||(this.fields[e]=this._createField(e)),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 da(e,t,n){void 0===n&&(n={});var r=n.onSubmit,i=n.onValuesChange,s=a(),l=N(o({}),2)[1];if(!s.current){if(e)s.current=e;else{e=s.current=new ca((function(){l({})}))}e.ref=t,r&&(e.onSubmit=r),i&&(e.onValuesChange=i)}return[s.current]}function pa(e){return void 0===e&&(e=30),new Promise((function(t){setTimeout(t,e)}))}var fa=n({});function ha(e){var t=r(fa);return k(k({},t),e)}var va=new Set(["action","autoComplete","encType","method","target"]),ga={display:"block",flow:"column",gap:"2x"};var ma=Object.assign(h((function(e,t){var n,r=this;(e=Mi(e)).qa;var o,a,s=e.name,l=e.children,u=e.labelPosition,c=void 0===u?"top":u,d=e.isRequired,p=e.necessityIndicator,f=e.isDisabled,h=e.isReadOnly,v=e.validationState,g=e.labelStyles,m=e.validateTrigger,b=e.defaultValues,y=e.onValuesChange,x=e.requiredMark,w=void 0===x||x,S=e.form,E=e.onSubmit,O=e.onSubmitFailed,j=P(e,["qa","name","children","labelPosition","isRequired","necessityIndicator","isDisabled","isReadOnly","validationState","labelStyles","validateTrigger","defaultValues","onValuesChange","requiredMark","form","onSubmit","onSubmitFailed"]);t=Do(t),!E&&!O||j.action||(a=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==S?void 0:S.validateFields().then((function(){return T(r,void 0,void 0,(function(){return C(this,(function(e){switch(e.label){case 0:return[4,pa()];case 1:if(e.sent(),!S||S.isSubmitting)return[3,5];e.label=2;case 2:return e.trys.push([2,,4,5]),S.setSubmitting(!0),[4,null==E?void 0:E(S.getFieldsValue())];case 3:return e.sent(),[3,5];case 4:return S.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,pa()];case 1:if(t.sent(),e instanceof Error)throw e;return null==O||O(e),[2]}}))}))}))}),n=N(da(S,t&&t.current,{onSubmit:a,onValuesChange:y}),1),S=n[0],o=oo(j,Go,ga);var L=mi(t),A={labelPosition:c,labelStyles:g,necessityIndicator:p,validateTrigger:m,requiredMark:w,form:S,idPrefix:s};return i((function(){S&&b&&(S.setInitialFieldValues(b),S.resetFields())}),[]),M.jsx(_o,k({as:"form",qa:"Form"},ea(j,{propNames:va}),{onSubmit:a,noValidate:!0,styles:o,ref:L,mods:{"has-sider":"side"===c}},{children:M.jsx(fa.Provider,k({value:A},{children:M.jsx(Ii,k({insideForm:!0,isDisabled:f,isReadOnly:h,isRequired:d,validationState:v},{children:l}),void 0)}),void 0)}),void 0)})),{useForm:da});let ba="default",ya="";function xa(){"default"===ba&&(ya=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),ba="disabled"}function wa(){"disabled"===ba&&(ba="restoring",setTimeout((()=>{nn((()=>{"restoring"===ba&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=ya||""),ya="",ba="default")}))}),300))}function Sa(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}const Ea=t.createContext(null);function ka(e){let t=function(e){let t=r(Ea);if(t){let{register:n}=t;e=Gt(B(t,["register"]),e),n()}return on(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=B(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=s(((t,n,r,i)=>{e.current.set(r,{type:n,eventTarget:t,options:i}),t.addEventListener(n,r,i)}),[]),n=s(((t,n,r,i)=>{t.removeEventListener(n,r,i),e.current.delete(r)}),[]),r=s((()=>{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=l((()=>{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:s}=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&&!s&&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(Oa(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),wa())},o={onKeyDown(n){Ta(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){Ta(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(Oa(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||!Sa(i.nativeEvent)||(f||v||Yt(i.currentTarget),t(i,"virtual"),r(i,"virtual"),n(i,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{e.isPressed&&Ta(t)&&(t.preventDefault(),t.stopPropagation(),e.isPressed=!1,n(Oa(e.target,t),"keyboard",t.target===e.target),E(),(t.target===e.target&&Pa(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)&&(ja(n.target)&&n.preventDefault(),e.pointerType=La(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||Yt(n.currentTarget),xa(),t(n,e.pointerType),S(document,"pointermove",a,!1),S(document,"pointerup",s,!1),S(document,"pointercancel",l,!1)))},o.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(ja(e.target)&&e.preventDefault(),e.stopPropagation())},o.onPointerUp=t=>{t.currentTarget.contains(t.target)&&0===t.button&&Na(t,t.currentTarget)&&r(t,e.pointerType||(La(t.nativeEvent)?"virtual":t.pointerType))};let a=r=>{r.pointerId===e.activePointerId&&(Na(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(Oa(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(Oa(e.target,r),e.pointerType,!1),b.current.shouldCancelOnPointerExit&&i(r)))},s=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(Na(t,e.target)?n(Oa(e.target,t),e.pointerType):e.isOverTarget&&n(Oa(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),wa())},l=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)&&(ja(n.target)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=Sa(n.nativeEvent)?"virtual":"mouse",f||v||Yt(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:(Na(t,e.target)?n(Oa(e.target,t),e.pointerType):e.isOverTarget&&n(Oa(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||Yt(n.currentTarget),xa(),t(n,e.pointerType),S(window,"scroll",s,!0))},o.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let o=Ca(r.nativeEvent,e.activePointerId);o&&Na(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=Ca(t.nativeEvent,e.activePointerId);i&&Na(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,wa(),E()},o.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&i(t))};let s=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((()=>()=>wa()),[]),{isPressed:h||y,pressProps:Gt(m,k)}}function Pa(e){return"A"===e.tagName&&e.hasAttribute("href")}function Ta(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||Pa(r)&&("button"!==a||"Enter"===t)||"link"===a&&"Enter"!==t)}function Ca(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 Oa(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Na(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 ja(e){return!e.closest('[draggable="true"]')}function La(e){return 0===e.width&&0===e.height}Ea.displayName="PressResponderContext";const Aa=t.forwardRef(((e,n)=>{let{children:o}=e,s=B(e,["children"]),l=a(!1),u=r(Ea),c=Gt(u||{},Rt({},s,{ref:n||(null==u?void 0:u.ref),register(){l.current=!0,u&&u.register()}}));return on(u,n),i((()=>{l.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(Ea.Provider,{value:c},o)}));function Fa(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 Da=null,Ra=new Set,Ia=!1,Ma=!1,_a=!1;const za={Tab:!0,Escape:!0};function Ka(e,t){for(let n of Ra)n(e,t)}function Va(e){Ma=!0,function(e){return!(e.metaKey||!fn()&&e.altKey||e.ctrlKey||"keyup"===e.type&&("Control"===e.key||"Shift"===e.key))}(e)&&(Da="keyboard",Ka("keyboard",e))}function Ua(e){Da="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ma=!0,Ka("pointer",e))}function qa(e){Sa(e)&&(Ma=!0,Da="virtual")}function Ba(e){e.target!==window&&e.target!==document&&(Ma||_a||(Da="virtual",Ka("virtual",e)),Ma=!1,_a=!1)}function Wa(){Ma=!1,_a=!0}function Ga(){if("undefined"==typeof window||Ia)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Ma=!0,e.apply(this,arguments)},document.addEventListener("keydown",Va,!0),document.addEventListener("keyup",Va,!0),document.addEventListener("click",qa,!0),window.addEventListener("focus",Ba,!0),window.addEventListener("blur",Wa,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Ua,!0),document.addEventListener("pointermove",Ua,!0),document.addEventListener("pointerup",Ua,!0)):(document.addEventListener("mousedown",Ua,!0),document.addEventListener("mousemove",Ua,!0),document.addEventListener("mouseup",Ua,!0)),Ia=!0}function Ja(){return"pointer"!==Da}function Ha(){return Da}function $a(e){void 0===e&&(e={});let{isTextInput:t,autoFocus:n}=e,[r,a]=o(n||Ja());var s,l,u;return s=e=>{a(e)},l=[t],u={isTextInput:t},Ga(),i((()=>{let e=(e,t)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!za[n.key])})(null==u?void 0:u.isTextInput,e,t)&&s(Ja())};return Ra.add(e),()=>Ra.delete(e)}),l),{isFocusVisible:r}}function Xa(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?Ga():document.addEventListener("DOMContentLoaded",Ga));let Ya=!1,Za=0;function Qa(){Ya=!0,setTimeout((()=>{Ya=!1}),50)}function es(e){"touch"===e.pointerType&&Qa()}function ts(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",es):document.addEventListener("touchend",Qa),Za++,()=>{Za--,Za>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",es):document.removeEventListener("touchend",Qa))}}function ns(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:s}=e,[u,c]=o(!1),d=a({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;i(ts,[]);let{hoverProps:p,triggerHoverEnd:f}=l((()=>{let e=(e,r)=>{if(d.pointerType=r,s||"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=>{Ya&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(o.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||Ya||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!s&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:o,triggerHoverEnd:i}}),[t,n,r,s,d]);return i((()=>{s&&f({target:d.target},d.pointerType)}),[s]),{hoverProps:p,isHovered:u}}function rs(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 is(e){if(!e)return;let t=!0;return n=>{let r=Rt({},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 os(e,t){var n=e.isDisabled;void 0===t&&(t=!1),i((function(){s(!1)}),[n]);var r=N(o(!1),2),a=r[0],s=r[1],l=$a({}).isFocusVisible;return{focusProps:Fa({onFocusChange:s}).focusProps,isFocused:a&&(!t||l)}}var as={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))"},ss=h((function(e,t){var n=e.onWidthChange,r=e.outerGap,o=void 0===r?"1bw":r,a=e.children,s=P(e,["onWidthChange","outerGap","children"]),l=oo(s,Go,as),u=Do(t);return i((function(){(null==u?void 0:u.current)&&n&&n(u.current.offsetWidth)}),[a,u,n]),M.jsx(_o,k({},ea(s,{eventProps:!0}),{styles:l,ref:u,style:{"--prefix-gap":Yi(o).value}},{children:a}),void 0)})),ls={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))"},us=h((function(e,t){var n=e.onWidthChange,r=e.outerGap,o=void 0===r?"1bw":r,a=e.children,s=P(e,["onWidthChange","outerGap","children"]),l=oo(s,Go,ls),u=Do(t);return i((function(){u&&u.current&&n&&n(u.current.offsetWidth)}),[a,u,n]),M.jsx(_o,k({},ea(s,{eventProps:!0}),{styles:l,ref:u,style:{"--suffix-gap":Yi(o).value}},{children:a}),void 0)})),cs=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),ds={"(required)":"(required)","(optional)":"(optional)"},ps={fontWeight:400,preset:"default",color:{"":"#dark.85",invalid:"#danger-text",disabled:"#dark.30"},whiteSpace:"nowrap"},fs={display:"block",fontWeight:600,preset:"default",padding:{"":"0",side:"(1x - 1bw) 0"},color:{"":"#dark",invalid:"#danger-text",disabled:"#dark.30"},whiteSpace:"nowrap"};var hs=h((function(e,t){var n=(e=Mi(e)).as,r=e.qa,i=e.children,o=e.labelPosition,a=void 0===o?"top":o,s=e.isRequired,l=e.necessityIndicator,u=void 0===l?null!=s?"icon":null:l,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=mi(t),y=Ai("Label",m),x=oo(m,Go,k(k({},fs),y)),w=function(e){return ds[e]},S=w(s?"(required)":"(optional)"),E=M.jsx("span",k({"aria-label":d?w("(required)"):void 0},{children:cs}),void 0);return M.jsx(_o,k({as:n||"label",qa:r||"Label"},ea(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&&s)&&" ","label"===u&&M.jsx("span",k({"aria-hidden":d?void 0:s},{children:S}),void 0),"icon"===u&&s&&E]},void 0)}),void 0)})),vs={display:"grid",gridColumns:{"":"1fr","has-sider":"auto 1fr"},gap:{"":"1x","has-sider":"@(column-gap, 1x)"},placeItems:"baseline stretch"},gs={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 ms=h((function(e,t){var n=e.as,r=e.labelPosition,i=e.label,o=e.insideForm,a=e.styles,s=e.isRequired,l=e.isDisabled,u=e.labelStyles,c=e.necessityIndicator,d=e.labelProps,p=e.fieldProps,f=e.message,h=e.messageStyles,v=e.Component,g=e.validationState,m=e.requiredMark,b=void 0===m||m,y={"has-sider":"side"===r&&i,"inside-form":o,invalid:"invalid"===g,valid:"valid"===g};return M.jsxs(_o,k({as:n||"div",qa:"Field",ref:t,mods:y,styles:k(k({},vs),a)},p,{children:[i&&M.jsx(hs,k({as:"label"===n?"div":"label",styles:u,labelPosition:r,isRequired:!!b&&s,isDisabled:l,necessityIndicator:c,validationState:g},d,{children:i}),void 0),v,f&&!l&&M.jsx(_o,k({mods:y,styles:k(k({},gs),h),role:"invalid"===g?"alert":void 0},{children:f}),void 0)]}),void 0)})),bs={display:"flex",gap:!0},ys={align:"alignItems",justify:"justifyItems"},xs=h((function(e,t){var n=e.direction?"vertical"===e.direction?"column":"row":e.flow||"row",r=oo(e,Go,k(k({},bs),{flow:n,alignItems:"row"===n?"center":"stretch"}),ys);return M.jsx(_o,k({},ea(e,{eventProps:!0}),{styles:r,ref:t}),void 0)})),ws={display:"block"},Ss=h((function(e,t){var n=oo(e,Go,ws);return M.jsx(_o,k({},ea(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),Es={display:"grid",position:"relative"},ks=j(j([],N(Vo),!1),["resize"],!1),Ps={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 Ts=h((function(e,t){var n=(e=ha(e=Mi(e))).qa,r=e.label,i=e.labelPosition,s=void 0===i?"top":i,l=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,C=e.insideForm;e.value;var O=e.inputStyles,j=void 0===O?{}:O,L=e.wrapperStyles,A=void 0===L?{}:L,F=e.suffix,D=e.suffixPosition,R=void 0===D?"before":D,I=e.wrapperRef,_=e.requiredMark,z=void 0===_||_,K=e.rows,V=void 0===K?1:K,U=e.size,q=P(e,["qa","label","labelPosition","labelStyles","isRequired","necessityIndicator","necessityLabel","validationState","message","prefix","isDisabled","multiLine","autoFocus","labelProps","inputProps","wrapperProps","inputRef","isLoading","loadingIndicator","insideForm","value","inputStyles","wrapperStyles","suffix","suffixPosition","wrapperRef","requiredMark","rows","size"]),B=N(o(0),2),W=B[0],G=B[1],J=N(o(0),2),H=J[0],$=J[1],X=oo(q,Ko),Y=Ai("Input",q);j=oo(q,ks,k(k(k({},Ps),Y),j)),A=k(k({},Es),A),g&&(j.paddingLeft=H+"px"),(h||E||F)&&(j.paddingRight=W+"px");var Z=b?"textarea":"input",Q=os({isDisabled:m}),ee=Q.isFocused,te=Q.focusProps,ne=ns({isDisabled:m}),re=ne.hoverProps,ie=ne.isHovered,oe=a(null),ae=a(null);S=S||ae,c(t,(function(){return k(k({},gi(oe,S)),{select:function(){(null==S?void 0:S.current)&&S.current.select()},getInputElement:function(){return null==S?void 0:S.current}})}));var se="invalid"===h,le=se?M.jsx(jt,{style:{color:"var(--danger-color)"}},void 0):M.jsx(He,{style:{color:"var(--success-color)"}},void 0),ue=f(le);F="string"==typeof F?M.jsx(Ss,k({padding:"1x right"},{children:F}),void 0):F;var ce=M.jsxs(_o,k({ref:I,qa:(n||"TextInput")+"Wrapper",mods:{invalid:se,valid:"valid"===h,loadable:!!T,multiline:b},"data-size":U,styles:A},w,{children:[M.jsx(_o,k({qa:n||"TextInput",as:Z},Co(x,te,re),{ref:S,rows:b?V:void 0,mods:{invalid:se,valid:"valid"===h,disabled:m,hovered:ie,focused:ee},"data-size":U,styles:j}),void 0),M.jsx(ss,k({padding:"0 1x 0 1.5x",onWidthChange:$,opacity:!!m&&"@disabled-opacity",placeItems:"center"},{children:"string"==typeof g?M.jsx(Ss,k({padding:"1x left"},{children:g}),void 0):g}),void 0),M.jsxs(us,k({padding:"1x left",onWidthChange:G,opacity:!!m&&"@disabled-opacity"},{children:["before"===R?F:null,M.jsxs(xs,k({gap:!1,padding:"0 1.5x 0 0"},{children:[h&&!E?ue:null,E&&M.jsx(kt,{},void 0)]}),void 0),"after"===R?F:null]}),void 0)]}),void 0);return M.jsx(ms,k({},{labelPosition:s,label:r,insideForm:C,styles:X,isRequired:u,labelStyles:l,necessityIndicator:d,necessityLabel:p,labelProps:y,isDisabled:m,validationState:h,message:v,requiredMark:z,Component:ce,ref:oe}),void 0)}));function Cs(e){if("virtual"===Ha()){let t=document.activeElement;nn((()=>{document.activeElement===t&&document.contains(e)&&Yt(e)}))}else Yt(e)}function Os(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||Os(e.parentElement,e))}const Ns=t.createContext(null);let js=null,Ls=new Map;function As(e){let{children:n,contain:o,restoreFocus:s,autoFocus:l}=e,u=a(),c=a(),d=a([]),p=r(Ns),f=null==p?void 0:p.scopeRef;Kt((()=>{let e=u.current.nextSibling,t=[];for(;e&&e!==c.current;)t.push(e),e=e.nextSibling;d.current=t}),[n,f]),Kt((()=>(Ls.set(d,f),()=>{d!==js&&!zs(d,js)||f&&!Ls.has(f)||(js=f),Ls.delete(d)})),[d,f]),function(e,t){let n=a(),r=a(null);Kt((()=>{let i=e.current;if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==js)return;let n=document.activeElement,r=e.current;if(!Ms(n,r))return;let i=Us(Is(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&&Ks(o,!0)},a=t=>{!js||zs(js,e)?(js=e,n.current=t.target):e!==js||_s(t.target,e)?e===js&&(n.current=t.target):n.current?n.current.focus():js&&Vs(js.current)},s=t=>{r.current=requestAnimationFrame((()=>{e!==js||_s(document.activeElement,e)||(js=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",s,!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",s,!1)))}}),[e,t]),i((()=>()=>cancelAnimationFrame(r.current)),[r])}(d,o),function(e,t,n){Kt((()=>{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(!Ms(t,r))return;let n=Us(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||!Ms(o,r))&&i){n.currentNode=i;do{o=e.shiftKey?n.previousNode():n.nextNode()}while(Ms(o,r));e.preventDefault(),e.stopPropagation(),o?Ks(o,!0):!function(e){for(let t of Ls.keys())if(Ms(e,t.current))return!0;return!1}(i)?t.blur():Ks(i,!0)}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0),t&&i&&Ms(document.activeElement,r)&&requestAnimationFrame((()=>{document.body.contains(i)&&Ks(i)}))}}),[e,t,n])}(d,s,o),function(e,n){const r=t.useRef(n);i((()=>{r.current&&(js=e,Ms(document.activeElement,js.current)||Vs(e.current)),r.current=!1}),[])}(d,l);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,s=n[0].previousElementSibling,l=Us(Is(n),{tabbable:i},n);l.currentNode=Ms(a,n)?a:s;let u=l.nextNode();return!u&&o&&(l.currentNode=s,u=l.nextNode()),u&&Ks(u,!0),u},focusPrevious(t){void 0===t&&(t={});let n=e.current,{from:r,tabbable:i,wrap:o}=t,a=r||document.activeElement,s=n[n.length-1].nextElementSibling,l=Us(Is(n),{tabbable:i},n);l.currentNode=Ms(a,n)?a:s;let u=l.previousNode();return!u&&o&&(l.currentNode=s,u=l.previousNode()),u&&Ks(u,!0),u},focusFirst(t){void 0===t&&(t={});let n=e.current,{tabbable:r}=t,i=Us(Is(n),{tabbable:r},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&Ks(o,!0),o},focusLast(t){void 0===t&&(t={});let n=e.current,{tabbable:r}=t,i=Us(Is(n),{tabbable:r},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&Ks(o,!0),o}}}(d);return t.createElement(Ns.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 Fs=["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]"],Ds=Fs.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Fs.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Rs=Fs.join(':not([hidden]):not([tabindex="-1"]),');function Is(e){return e[0].parentElement}function Ms(e,t){return t.some((t=>t.contains(e)))}function _s(e,t){for(let n of Ls.keys())if((n===t||zs(t,n))&&Ms(e,n.current))return!0;return!1}function zs(e,t){let n=Ls.get(t);return!!n&&(n===e||zs(e,n))}function Ks(e,t){if(void 0===t&&(t=!1),null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{Cs(e)}catch(e){}}function Vs(e){let t=e[0].previousElementSibling,n=Us(Is(e),{tabbable:!0},e);n.currentNode=t,Ks(n.nextNode())}function Us(e,t,n){let r=null!=t&&t.tabbable?Rs:Ds,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)&&Os(e)&&(!n||Ms(e,n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return null!=t&&t.from&&(i.currentNode=t.from),i}let qs=t.createContext(null);function Bs(e,n){let{children:r}=e,i=Rt({},B(e,["children"]),{ref:n});return t.createElement(qs.Provider,{value:i},r)}let Ws=t.forwardRef(Bs);function Gs(e,t){let{focusProps:n}=Fa(e),{keyboardProps:o}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:is(e.onKeyDown),onKeyUp:is(e.onKeyUp)}}}(e),s=Gt(n,o),l=function(e){let t=r(qs)||{};return on(t,e),B(t,["ref"])}(t),u=e.isDisabled?{}:l,c=a(e.autoFocus);return i((()=>{c.current&&t.current&&t.current.focus(),c.current=!1}),[]),{focusableProps:Gt(Rt({},s,{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),u)}}function Js(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Ut(t);let a=Ut(),s={};return n?(r=r?r+" "+a:a,s={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:s,fieldProps:rn({id:t,"aria-label":i,"aria-labelledby":r})}}function Hs(e){let{description:t,errorMessage:n}=e,{labelProps:r,fieldProps:i}=Js(e),o=Bt(),a=Bt();i=Gt(i,{"aria-describedby":[o,a,e["aria-describedby"]].filter(Boolean).join(" ")||void 0});let s={},l={};return t&&(s.id=o),n&&(l.id=a),{labelProps:r,fieldProps:i,descriptionProps:s,errorMessageProps:l}}function $s(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,validationState:a,type:s="text",onChange:l=(()=>{})}=e,{focusableProps:u}=Gs(e,t),{labelProps:c,fieldProps:d,descriptionProps:p,errorMessageProps:f}=Hs(e),h=Xt(e,{labelable:!0});const v={type:s,pattern:e.pattern};return{labelProps:c,inputProps:Gt(h,"input"===n&&v,Rt({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=>l(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 Xs(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}var Ys=h((function(e,t){e=Mi(e);var n=a(null),r=$s(e,n),i=r.labelProps,o=r.inputProps;return M.jsx(Ts,k({},e,{labelProps:i,inputProps:o,ref:t,inputRef:n}),void 0)}));function Zs(e,t){let n,{elementType:r="button",isDisabled:i,onPress:o,onPressStart:a,onPressEnd:s,onPressChange:l,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}=ka({onPressStart:a,onPressEnd:s,onPressChange:l,onPress:o,isDisabled:i,preventFocusOnPress:u,ref:t}),{focusableProps:m}=Gs(e,t),b=Gt(m,v);return b=Gt(b,Xt(e,{labelable:!0})),{isPressed:g,buttonProps:Gt(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"))}})}}function Qs(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 el(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 tl={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"},nl=j(j([],N(Go),!1),N(qo),!1),rl=h((function(e,t){var n=e.to,i=e.as,o=e.htmlType,a=e.label,s=e.theme;e.preventDefault;var l=e.css,u=e.mods,c=P(e,["to","as","htmlType","label","theme","preventDefault","css","mods"]);if((c.onClick||c.onBlur||c.onFocus||c.onKeyDown||c.onKeyUp)&&!c.allowNativeEvents)throw new Error("CubeUIKit: add `allowNativeEvents` property to the `Action` component to allow usage of native events like `onClick`.");i=n?"a":i||"button";var d=r(Ri).router,p=c.isDisabled,f=el(n),h=f.newTab,v=f.href,g=h?"_blank":void 0,m=function(e,t,n,r){var i=el(t),o=i.newTab,a=i.nativeRoute,s=i.href;return function(n){if(!r&&t)if(n.shiftKey||n.metaKey||o)Qs(s,!0);else{if(a)Qs(s||window.location.href);else if(s&&s.startsWith("#")){var i=s.slice(1),l=document.getElementById(i);if(l)return void l.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}e?e.push(s):s&&(window.location.href=s)}}}(d,n,c.onPress,p),b=bi(t),y=oo(c,nl,tl),x=Zs(c,b),w=x.buttonProps,S=x.isPressed,E=ns({isDisabled:p}),T=E.hoverProps,C=E.isHovered,O=os({isDisabled:p},!0),N=O.focusProps,j=O.isFocused,L={};return n&&(L.onClick=function(e){e.preventDefault(),p||m(e)}),M.jsx(_o,k({mods:k({hovered:C&&!p,pressed:S&&!p,focused:j&&!p,disabled:p},u),"aria-label":a,"data-theme":s},Gt(w,T,N,L,ea(c)),{type:o||"button",rel:"a"===i&&h?'rel="noopener noreferrer"':void 0,ref:b,as:i,isDisabled:p,styles:y,target:g,href:v,css:l}),void 0)}));var il={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)"}},ol={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({},il.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)"}},al={small:{padding:"(.75x - 1px) (1.5x - 1px)"},default:{padding:"(1.25x - 1px) (2x - 1px)"}},sl={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}},ll=h((function(e,t){var n=e.type,r=e.size,i=e.label,o=e.styles,a=e.children,s=e.theme,l=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),{isLoading:f,isDisabled:p,theme:s,size:r,type:n,icon:u,children:a}),g=Ai("Button",v);return a=a||u?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;return k(k(k(k({},al[t||"default"]),sl),("danger"===r?ol:il)[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.jsxs(rl,k({as:d.to?"a":void 0,css:l},d,{ref:t,isDisabled:f||p,theme:s,"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:[f?M.jsx(Ss,k({display:"inline-block",margin:a?"1x right":void 0},{children:M.jsx(kt,{},void 0)}),void 0):null,u&&!f?M.jsxs(xs,k({gap:"1x",display:"inline-flex",styles:{verticalAlign:"middle"}},{children:[f?null:u,a?M.jsx("div",{children:a},void 0):null]}),void 0):a]}),void 0)}));var ul=Object.assign(h((function(e,t){var n=Mi(k({},e)),r=n.suffix,i=P(n,["suffix"]),l=N(o("password"),2),u=l[0],c=l[1],d=a(null),p=$s(k(k({},i),{type:u}),d),f=p.labelProps,h=p.inputProps,v=s((function(e){c((function(e){return"password"===e?"text":"password"}))}),[]),g=M.jsxs(M.Fragment,{children:[r,M.jsx(ll,{type:"neutral",htmlType:"button",onPress:v,preventDefault:!0,placeSelf:"stretch",height:"auto",radius:"right (1r - 1bw)",padding:".5x 1x","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(Ts,k({labelProps:f,inputProps:h,ref:t,inputRef:d,inputStyles:{paddingRight:"4x"},type:u,suffixPosition:"after",suffix:g},i),void 0)})),{cubeInputType:"Text"});function cl(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]=Lt(c,isNaN(d)?NaN:d,p),[b,y]=o((()=>isNaN(g)?"":new En(f,u).format(g))),x=l((()=>new Tn(f,u)),[f,u]),w=l((()=>x.getNumberingSystem(b)),[x,b]),S=l((()=>new En(f,Rt({},u,{numberingSystem:w}))),[f,u,w]),E=l((()=>S.resolvedOptions()),[S]),k=s((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=l((()=>x.parse(b)),[x,b]),C=a(0);C.current=T;let O=(e,r)=>{let i=C.current;if(isNaN(i)){return At(isNaN(r)?0:r,t,n,P)}{let r=At(i,t,n,P);return"+"===e&&r>i||"-"===e&&r<i?r:At(dl(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(At(n,t,n,P))},decrement:()=>{m((e=>{let t=O("-",n);return t===e&&y(k(t)),t}))},decrementToMin:()=>{null!=t&&m(t)},canIncrement:l((()=>!h&&!v&&(isNaN(T)||isNaN(n)||At(T,t,n,P)>T||dl("+",T,P)<=n)),[h,v,t,n,P,T]),canDecrement:l((()=>!h&&!v&&(isNaN(T)||isNaN(t)||At(T,t,n,P)<T||dl("-",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):At(C.current,t,n,r),e=x.parse(k(e)),m(e),y(k(void 0===c?e:g))}}}function dl(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,s=o[1]&&o[1].length||0,l=Math.pow(10,Math.max(a,s));t=Math.round(t*l),n=Math.round(n*l),r="+"===e?t+n:t-n,r/=l}return r}const pl={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 fl(e){void 0===e&&(e={});let{style:t,isFocusable:n}=e,[r,i]=o(!1),{focusProps:a}=Fa({isDisabled:!n,onFocusChange:i}),s=l((()=>r?t:t?Rt({},pl,t):pl),[r]);return{visuallyHiddenProps:Rt({},a,{style:s})}}function hl(e){let{children:n,elementType:r="div"}=e,i=B(e,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:o}=fl(e);return t.createElement(r,Gt(i,o),n)}let vl=t.createRef(),gl=null,ml=0;function bl(e,n,r){var i;void 0===n&&(n="assertive"),void 0===r&&(r=7e3),i=t=>t.announce(e,n,r),vl.current?i(vl.current):(gl=document.createElement("div"),gl.dataset.liveAnnouncer="true",document.body.prepend(gl),x.render(t.createElement(yl,{ref:vl}),gl,(()=>i(vl.current))))}const yl=t.forwardRef(((e,n)=>{let[r,i]=o([]),[a,s]=o([]),l=e=>{e&&"assertive"!==e||i([]),e&&"polite"!==e||s([])},u=function(e,t,n){void 0===t&&(t="assertive"),void 0===n&&(n=7e3);let r=ml++;"assertive"===t?i((t=>[...t,{id:r,text:e}])):s((t=>[...t,{id:r,text:e}])),""!==e&&setTimeout((()=>{"assertive"===t?i((e=>e.filter((e=>e.id!==r)))):s((e=>e.filter((e=>e.id!==r))))}),n)};return c(n,(()=>({announce:u,clear:l}))),t.createElement(v,null,t.createElement(xl,{"aria-live":"assertive"},r.map((e=>t.createElement("div",{key:e.id},e.text)))),t.createElement(xl,{"aria-live":"polite"},a.map((e=>t.createElement("div",{key:e.id},e.text)))))}));function xl(e){let{children:n,"aria-live":r}=e;return t.createElement(hl,{role:"log","aria-live":r,"aria-relevant":"additions"},n)}function wl(e){return e&&e.__esModule?e:{default:e}}var Sl;Sl=JSON.parse('{"Empty":"فارغ"}');var El;El=JSON.parse('{"Empty":"Изпразни"}');var kl;kl=JSON.parse('{"Empty":"Prázdné"}');var Pl;Pl=JSON.parse('{"Empty":"Tom"}');var Tl;Tl=JSON.parse('{"Empty":"Leer"}');var Cl;Cl=JSON.parse('{"Empty":"Άδειο"}');var Ol;Ol=JSON.parse('{"Empty":"Empty"}');var Nl;Nl=JSON.parse('{"Empty":"Vacío"}');var jl;jl=JSON.parse('{"Empty":"Tühjenda"}');var Ll;Ll=JSON.parse('{"Empty":"Tyhjä"}');var Al;Al=JSON.parse('{"Empty":"Vide"}');var Fl;Fl=JSON.parse('{"Empty":"ריק"}');var Dl;Dl=JSON.parse('{"Empty":"Prazno"}');var Rl;Rl=JSON.parse('{"Empty":"Üres"}');var Il;Il=JSON.parse('{"Empty":"Vuoto"}');var Ml;Ml=JSON.parse('{"Empty":"空"}');var _l;_l=JSON.parse('{"Empty":"비어 있음"}');var zl;zl=JSON.parse('{"Empty":"Tuščias"}');var Kl;Kl=JSON.parse('{"Empty":"Tukšs"}');var Vl;Vl=JSON.parse('{"Empty":"Tom"}');var Ul;Ul=JSON.parse('{"Empty":"Leeg"}');var ql;ql=JSON.parse('{"Empty":"Pusty"}');var Bl;Bl=JSON.parse('{"Empty":"Vazio"}');var Wl;Wl=JSON.parse('{"Empty":"Vazio"}');var Gl;Gl=JSON.parse('{"Empty":"Gol"}');var Jl;Jl=JSON.parse('{"Empty":"Не заполнено"}');var Hl;Hl=JSON.parse('{"Empty":"Prázdne"}');var $l;$l=JSON.parse('{"Empty":"Prazen"}');var Xl;Xl=JSON.parse('{"Empty":"Prazno"}');var Yl;Yl=JSON.parse('{"Empty":"Tomt"}');var Zl;Zl=JSON.parse('{"Empty":"Boş"}');var Ql;Ql=JSON.parse('{"Empty":"Пусто"}');var eu;eu=JSON.parse('{"Empty":"空"}');var tu;tu=JSON.parse('{"Empty":"空白"}');const nu={"ar-AE":wl(Sl).default,"bg-BG":wl(El).default,"cs-CZ":wl(kl).default,"da-DK":wl(Pl).default,"de-DE":wl(Tl).default,"el-GR":wl(Cl).default,"en-US":wl(Ol).default,"es-ES":wl(Nl).default,"et-EE":wl(jl).default,"fi-FI":wl(Ll).default,"fr-FR":wl(Al).default,"he-IL":wl(Fl).default,"hr-HR":wl(Dl).default,"hu-HU":wl(Rl).default,"it-IT":wl(Il).default,"ja-JP":wl(Ml).default,"ko-KR":wl(_l).default,"lt-LT":wl(zl).default,"lv-LV":wl(Kl).default,"nb-NO":wl(Vl).default,"nl-NL":wl(Ul).default,"pl-PL":wl(ql).default,"pt-BR":wl(Bl).default,"pt-PT":wl(Wl).default,"ro-RO":wl(Gl).default,"ru-RU":wl(Jl).default,"sk-SK":wl(Hl).default,"sl-SI":wl($l).default,"sr-SP":wl(Xl).default,"sv-SE":wl(Yl).default,"tr-TR":wl(Zl).default,"uk-UA":wl(Ql).default,"zh-CN":wl(eu).default,"zh-TW":wl(tu).default};var ru;ru=JSON.parse('{"decrease":"خفض {fieldLabel}","increase":"زيادة {fieldLabel}","numberField":"حقل رقمي"}');var iu;iu=JSON.parse('{"decrease":"Намаляване {fieldLabel}","increase":"Усилване {fieldLabel}","numberField":"Номер на полето"}');var ou;ou=JSON.parse('{"decrease":"Snížit {fieldLabel}","increase":"Zvýšit {fieldLabel}","numberField":"Číselné pole"}');var au;au=JSON.parse('{"decrease":"Reducer {fieldLabel}","increase":"Øg {fieldLabel}","numberField":"Talfelt"}');var su;su=JSON.parse('{"decrease":"{fieldLabel} verringern","increase":"{fieldLabel} erhöhen","numberField":"Nummernfeld"}');var lu;lu=JSON.parse('{"decrease":"Μείωση {fieldLabel}","increase":"Αύξηση {fieldLabel}","numberField":"Πεδίο αριθμού"}');var uu;uu=JSON.parse('{"decrease":"Decrease {fieldLabel}","increase":"Increase {fieldLabel}","numberField":"Number field"}');var cu;cu=JSON.parse('{"decrease":"Reducir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo de número"}');var du;du=JSON.parse('{"decrease":"Vähenda {fieldLabel}","increase":"Suurenda {fieldLabel}","numberField":"Numbri väli"}');var pu;pu=JSON.parse('{"decrease":"Vähennä {fieldLabel}","increase":"Lisää {fieldLabel}","numberField":"Numerokenttä"}');var fu;fu=JSON.parse('{"decrease":"Diminuer {fieldLabel}","increase":"Augmenter {fieldLabel}","numberField":"Champ de nombre"}');var hu;hu=JSON.parse('{"decrease":"הקטן {fieldLabel}","increase":"הגדל {fieldLabel}","numberField":"שדה מספר"}');var vu;vu=JSON.parse('{"decrease":"Smanji {fieldLabel}","increase":"Povećaj {fieldLabel}","numberField":"Polje broja"}');var gu;gu=JSON.parse('{"decrease":"{fieldLabel} csökkentése","increase":"{fieldLabel} növelése","numberField":"Számmező"}');var mu;mu=JSON.parse('{"decrease":"Riduci {fieldLabel}","increase":"Aumenta {fieldLabel}","numberField":"Campo numero"}');var bu;bu=JSON.parse('{"decrease":"{fieldLabel}を縮小","increase":"{fieldLabel}を拡大","numberField":"数値フィールド"}');var yu;yu=JSON.parse('{"decrease":"{fieldLabel} 감소","increase":"{fieldLabel} 증가","numberField":"번호 필드"}');var xu;xu=JSON.parse('{"decrease":"Sumažinti {fieldLabel}","increase":"Padidinti {fieldLabel}","numberField":"Numerio laukas"}');var wu;wu=JSON.parse('{"decrease":"Samazināšana {fieldLabel}","increase":"Palielināšana {fieldLabel}","numberField":"Skaitļu lauks"}');var Su;Su=JSON.parse('{"decrease":"Reduser {fieldLabel}","increase":"Øk {fieldLabel}","numberField":"Tallfelt"}');var Eu;Eu=JSON.parse('{"decrease":"{fieldLabel} verlagen","increase":"{fieldLabel} verhogen","numberField":"Getalveld"}');var ku;ku=JSON.parse('{"decrease":"Zmniejsz {fieldLabel}","increase":"Zwiększ {fieldLabel}","numberField":"Pole numeru"}');var Pu;Pu=JSON.parse('{"decrease":"Diminuir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo de número"}');var Tu;Tu=JSON.parse('{"decrease":"Diminuir {fieldLabel}","increase":"Aumentar {fieldLabel}","numberField":"Campo numérico"}');var Cu;Cu=JSON.parse('{"decrease":"Scădere {fieldLabel}","increase":"Creștere {fieldLabel}","numberField":"Câmp numeric"}');var Ou;Ou=JSON.parse('{"decrease":"Уменьшение {fieldLabel}","increase":"Увеличение {fieldLabel}","numberField":"Числовое поле"}');var Nu;Nu=JSON.parse('{"decrease":"Znížiť {fieldLabel}","increase":"Zvýšiť {fieldLabel}","numberField":"Číselné pole"}');var ju;ju=JSON.parse('{"decrease":"Upadati {fieldLabel}","increase":"Povečajte {fieldLabel}","numberField":"Številčno polje"}');var Lu;Lu=JSON.parse('{"decrease":"Decrease {fieldLabel}","increase":"Increase {fieldLabel}","numberField":"Number field"}');var Au;Au=JSON.parse('{"decrease":"Minska {fieldLabel}","increase":"Öka {fieldLabel}","numberField":"Nummerfält"}');var Fu;Fu=JSON.parse('{"decrease":"{fieldLabel} azalt","increase":"{fieldLabel} arttır","numberField":"Sayı alanı"}');var Du;Du=JSON.parse('{"decrease":"Зменшити {fieldLabel}","increase":"Збільшити {fieldLabel}","numberField":"Поле номера"}');var Ru;Ru=JSON.parse('{"decrease":"降低 {fieldLabel}","increase":"提高 {fieldLabel}","numberField":"数字字段"}');var Iu;Iu=JSON.parse('{"decrease":"縮小 {fieldLabel}","increase":"放大 {fieldLabel}","numberField":"數字欄位"}');const Mu={"ar-AE":wl(ru).default,"bg-BG":wl(iu).default,"cs-CZ":wl(ou).default,"da-DK":wl(au).default,"de-DE":wl(su).default,"el-GR":wl(lu).default,"en-US":wl(uu).default,"es-ES":wl(cu).default,"et-EE":wl(du).default,"fi-FI":wl(pu).default,"fr-FR":wl(fu).default,"he-IL":wl(hu).default,"hr-HR":wl(vu).default,"hu-HU":wl(gu).default,"it-IT":wl(mu).default,"ja-JP":wl(bu).default,"ko-KR":wl(yu).default,"lt-LT":wl(xu).default,"lv-LV":wl(wu).default,"nb-NO":wl(Su).default,"nl-NL":wl(Eu).default,"pl-PL":wl(ku).default,"pt-BR":wl(Pu).default,"pt-PT":wl(Tu).default,"ro-RO":wl(Cu).default,"ru-RU":wl(Ou).default,"sk-SK":wl(Nu).default,"sl-SI":wl(ju).default,"sr-SP":wl(Lu).default,"sv-SE":wl(Au).default,"tr-TR":wl(Fu).default,"uk-UA":wl(Du).default,"zh-CN":wl(Ru).default,"zh-TW":wl(Iu).default};function _u(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:L,commit:A}=t;const F=pi(Mu);let D=Ut(r),{focusProps:R}=Fa({onBlur:()=>{A()}}),{spinButtonProps:I,incrementButtonProps:M,decrementButtonProps:_}=function(e){const t=a();let{value:n,textValue:r,minValue:o,maxValue:l,isDisabled:u,isReadOnly:c,isRequired:d,onIncrement:p,onIncrementPage:f,onDecrement:h,onDecrementPage:v,onDecrementToMin:g,onIncrementToMax:m}=e;const b=pi(nu),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&&bl(r,"assertive")}),[r]);const E=s((e=>{y(),p(),t.current=window.setTimeout((()=>{(isNaN(l)||isNaN(n)||n<l)&&E(60)}),e)}),[p,l,n]),k=s((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":l,"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:L,textValue:t.inputValue}),[z,K]=o(!1),{focusWithinProps:V}=Xa({isDisabled:d,onFocusWithinChange:K});!function(e,t){let{onScroll:n,isDisabled:r}=e,i=s((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);bn(t,"wheel",r?null:i)}({onScroll:s((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}=ci();return l((()=>new En(t,e)),[t,e])}(y),q=l((()=>U.resolvedOptions()),[U]).maximumFractionDigits>0,B=isNaN(t.minValue)||t.minValue<0,W="numeric";hn()?B?W="text":q&&(W="decimal"):dn(/Android/)&&(B?W="numeric":q&&(W="decimal"));let G,{labelProps:J,inputProps:H,descriptionProps:$,errorMessageProps:X}=function(e,t,n){let r=a(t);r.current=t,i((()=>{if(!Xs())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=Xs()?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:s,inputProps:l,descriptionProps:u,errorMessageProps:c}=$s(e,n),d=a(null);return{inputProps:Gt(l,{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:s,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=Gt(I,H,R,{role:null,"aria-roledescription":vn()?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=Ut(),te=Ut(),ne=Gt(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=Gt(_,{"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:Rt({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 zu={padding:"0 .5x",radius:{"":"0 (1r - 1bw) 0 0",down:"0 0 (1r - 1bw) 0"},preset:"t4",lineHeight:"1em",height:"auto"};var Ku=h((function(e){return M.jsx(ll,k({type:"neutral",styles:zu,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 Vu=Object.assign(h((function(e,t){var n=!(e=ha(e=Mi(e))).hideStepper,r=ci().locale,i=cl(k(k({},e),{locale:r})),o=a(null),s=_u(e,i,o),l=s.groupProps,u=s.labelProps,c=s.inputProps,d=s.incrementButtonProps,p=s.decrementButtonProps;return M.jsx(Ts,k({},e,{labelProps:u,inputProps:c,ref:t,inputRef:o,wrapperProps:l,suffixPosition:"after",suffix:n?M.jsxs(_o,k({styles:{display:"grid",gridColumns:"1fr",gridRows:"minmax(1px, 1fr) minmax(1px, 1fr)",flow:"column",placeSelf:"stretch"}},{children:[M.jsx(Ku,k({direction:"up"},d),void 0),M.jsx(Ku,k({direction:"down"},p),void 0)]}),void 0):null}),void 0)})),{cubeInputType:"Number"}),Uu={};function qu(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 Bu(e){var t=ha(e),n=t.type,r=t.id,a=t.idPrefix,s=t.children,l=t.name,u=t.form,c=t.rules,p=t.label,h=t.validateTrigger,v=t.validationState,g=t.necessityLabel,m=t.necessityIndicator,b=t.message,y=N(o(r||(a?a+"_"+l:l)),2),x=y[0],w=y[1];i((function(){var e;return r||(e=function(e){Uu[e]||(Uu[e]=[]);var t,n=0;do{t=n?e+"_"+n:e,n++}while(Uu[e].includes(t));return Uu[e].push(t),t}(x),w(e)),function(){r||function(e,t){Uu[e]=Uu[e].filter((function(e){return e!==t}))}(a?a+"_"+l:l,e)}}),[]);var S=null==u?void 0:u.getFieldInstance(l),E=c&&c.find((function(e){return e.required}));if(i((function(){S?(S.rules=c,u.forceReRender()):u.createField(l)}),[S]),!l)return console.error("invalid form name:",l),null;if(!u)return console.error("form field requires declared form instance"),null;if("function"==typeof s&&(s=s(u)),!s)return null;var T=d.only(s);n=n||T.type.cubeInputType||"Text";var C,O="NumberInput"===(C=(C=n)||"")||C.includes("Input")||(C.includes("TextArea")?"onBlur":"onChange");if(!S)return f(T,Co(T.props,k(k({},qu(n)),{name:l,id:x})));h||(h=O);var j={id:x,name:l,onBlur:function(){"onBlur"===h&&setTimeout((function(){u.validateField(l).catch((function(){}))}))}};null!=m&&(j.necessityIndicator=m),g&&(j.necessityLabel=g),v&&(j.validationState=v),E&&(j.isRequired=!0),p&&(j.label=p),b&&(j.message=b),S&&S.errors&&S.errors.length&&(v||(j.validationState="invalid"),b||(j.message=S.errors[0])),Object.assign(j,qu(n,null==S?void 0:S.value,(function(e){u.setFieldValue(l,e,!0);var t=u.getFieldInstance(l);("onChange"===h||t&&t.errors&&t.errors.length)&&u.validateField(l).catch((function(){}))})));var L=T.props,A=L.onChange,F=L.onSelectionChange,D=P(L,["onChange","onSelectionChange"]);return f(T,Co(D,j,A?{onChange:A}:{},F?{onSelectionChange:F}:{}))}function Wu(e,t,n,r){return e||t||n?k(k(k(k({},e),t),n),r):r}function Gu(e){var t=e.name,n=e.tag,i=e.styles,o=e.styleProps,a=e.css,s=e.attrs,l=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(zo):zo).reduce((function(e,t){return t in b&&(e[t]=b[t]),e}),{}),x=Ai(p||t,b),w=Wu(i,x,d,y),S=r(Fi),E=zi(f||S);return m=""+("function"==typeof a?a(b):a||"")+("function"==typeof m?m(b):m||"")+(w?ko(w,E):""),h&&Object.assign(b,Oo(h)),M.jsx(l,k({as:c||n,"data-qa":v,"data-qaval":g},s,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(zo):zo).reduce((function(e,t){return t in g&&(e[t]=g[t]),e}),{}),b=Wu(i,null,c,m),y=r(Fi),x=zi(d||y);return v=""+("function"==typeof a?a(g):a||"")+("function"==typeof v?v(g):v||"")+(b?ko(b,x):""),p&&Object.assign(g,Oo(p)),M.jsx(l,k({as:u||n,"data-qa":f,"data-qaval":h},s,g,{ref:t,css:v}),void 0)})}var Ju=j(j(j([],N(zo),!1),N(qo),!1),N(Uo),!1),Hu={align:"textAlign",transform:"textTransform",weight:"fontWeight",italic:"fontStyle"},$u=Gu({name:"Text",tag:"span",availableMods:["nowrap","ellipsis"],styles:{display:{"":"inline",ellipsis:"block"},margin:"0",whiteSpace:{"":"initial","nowrap | ellipsis":"nowrap"},textOverflow:"ellipsis",overflow:"hidden",width:"max 100%"}}),Xu=h((function(e,t){var n=e.as,r=e.qa,i=e.block,o=e.styleName,a=e.ellipsis,s=e.css,l=e.nowrap,u=P(e,["as","qa","block","styleName","ellipsis","css","nowrap"]),c=oo(u,Ju,{},Hu);return M.jsx($u,k({as:n||"span",qa:r||"Text",styleName:o,mods:{nowrap:l,ellipsis:a},block:!(!i&&!a),css:s},ea(u,{eventProps:!0}),{styles:c,ref:t}),void 0)})),Yu=Object.assign(Xu,{Minor:h((function(e,t){return M.jsx(Yu,k({ref:t,color:"#minor"},e),void 0)})),Danger:h((function(e,t){return M.jsx(Yu,k({ref:t,color:"#danger-text"},e),void 0)})),Success:h((function(e,t){return M.jsx(Yu,k({ref:t,color:"#success-text"},e),void 0)})),Strong:h((function(e,t){return M.jsx(Yu,k({ref:t,color:"#dark",weight:600},e),void 0)})),Selection:h((function(e,t){return M.jsx(Yu,k({ref:t,color:"#dark",fill:"#note.30"},e),void 0)}))}),Zu=j(j(j(j(j([],N(zo),!1),N(qo),!1),N(Vo),!1),N(Uo),!1),N(Ko),!1),Qu=Gu({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"}}),ec=h((function(e,t){var n=e.qa,r=e.as,i=e.styleName,o=e.inline,a=e.nowrap,s=e.ellipsis,l=e.level,u=P(e,["qa","as","styleName","inline","nowrap","ellipsis","level"]),c="h"+(l||1),d=oo(u=jo(u,"heading"),Zu,{},Hu);return M.jsx(Qu,k({qa:n||"Title",as:r||c,styleName:i,"data-level":l||1,mods:{nowrap:a,ellipsis:s},inline:o},ea(u,{eventProps:!0}),{styles:d,ref:t}),void 0)})),tc=Object.assign(ec,{Danger:h((function(e,t){return M.jsx(tc,k({ref:t,color:"#danger-text"},e),void 0)})),Success:h((function(e,t){return M.jsx(tc,k({ref:t,color:"#success-text"},e),void 0)}))}),nc={preset:"p3",color:"#dark.75",display:"block"},rc=j(j([],N(Go),!1),N(qo),!1),ic=h((function(e,t){var n=oo(e,rc,nc);return M.jsx(Yu,k({as:"p",qa:"Paragraph"},e,{styles:n,ref:t}),void 0)}));var oc=Object.assign(h((function(e,t){var n=(e=Mi(e)).autoSize,r=void 0!==n&&n,i=e.isDisabled,o=void 0!==i&&i,l=e.isReadOnly,c=void 0!==l&&l,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(Lt(e.value,e.defaultValue,(function(){})),2),m=g[0],b=g[1],y=a(null),x=s((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=$s(k(k({},e),{onChange:Wt(f,b),inputElementType:"textarea"}),y),S=w.labelProps,E=w.inputProps;return M.jsx(Ts,k({},v,{ref:t,inputRef:y,labelProps:S,inputProps:E,multiLine:!0,isDisabled:o,isReadOnly:c,isRequired:p,rows:h}),void 0)})),{cubeInputType:"Text"}),ac=h((function(e,t){var n=jo(e,"buttonGroup"),r=n.styles,i=Ai("ButtonGroup",P(n,["styles"]));return r=r?k(k({},i),r):i,M.jsx(xs,k({gridArea:"buttonGroup",styles:r,ref:t},e),void 0)})),sc={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"},"[Input]":{position:"absolute",top:"-50px",right:0,bottom:0,left:0,radius:"@content-radius",cursor:"pointer",zIndex:10}};var lc=h((function(e,t){var n=Mi(e),r=n.id,i=n.name,l=n.qa;n.qaVal;var u=n.onChange,d=n.placeholder,p=n.inputRef,f=n.label,h=n.labelPosition,v=n.insideForm,g=n.isRequired,m=n.necessityIndicator,b=n.necessityLabel,y=n.labelStyles,x=n.labelProps,w=n.isDisabled,S=n.validationState,E=n.message,T=n.requiredMark,C=n.styles,O=n.inputStyles,j=P(n,["id","name","qa","qaVal","onChange","placeholder","inputRef","label","labelPosition","insideForm","isRequired","necessityIndicator","necessityLabel","labelStyles","labelProps","isDisabled","validationState","message","requiredMark","styles","inputStyles"]),L=N(o(),2),A=L[0],F=L[1],D=a(null),R=a(null);p=p||R,C=oo(j,Go),O=k(k(k({},sc),Ai("FileInput",j)),O);var I=s((function(e){var t=e.target.value;null==u||u(t),F(t)}),[u]);c(t,(function(){return k(k({},gi(D,p)),{select:function(){(null==p?void 0:p.current)&&p.current.select()},getInputElement:function(){return null==p?void 0:p.current}})}));var _=M.jsxs(rl,k({qa:l||"FileInput",styles:O,isDisabled:w,ref:D},{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":"Placeholder"},{children:A||d||"No file selected"}),void 0)]}),void 0);return M.jsx(ms,k({},{labelPosition:h,label:f,insideForm:v,styles:C,isRequired:g,labelStyles:y,necessityIndicator:m,necessityLabel:b,labelProps:x,isDisabled:w,validationState:S,message:E,requiredMark:T,Component:_,ref:D}),void 0)}));function uc(e){var t,n,r,i=e.display,o=e.flow,a=e.gap;if(!a)return"";var s=i.includes("grid"),l=i.includes("flex"),u=!!o&&(o.includes("wrap")&&!o.includes("nowrap"));if(s||null!=o||(o=l?"row":"column"),"number"==typeof a&&(a+="px"),a){!0===a&&(a="1.5x");var c=Yi(a).values;if(a=c.join(" "),s)return{gap:a};var d=l&&o.includes("reverse"),p=a&&!s?d?o.includes("row")?"left":"top":o.includes("row")?"right":"bottom":"",f=d?"margin-left":"margin-right",h=d?"margin-top":"margin-bottom";return u?[(t={},t[f]="calc(-1 * "+(c[1]||c[0])+")",t[h]="calc(-1 * "+c[0]+")",t),(n={$:"& > *"},n[f]=c[1]||c[0],n[h]=c[0],n)]:((r={$:"& > *:not(:last-child)"})["margin-"+p]=a,r)}}function cc(e){var t,n,r=e.display,i=e.flow;return r.includes("grid")?n="grid-auto-flow":r.includes("flex")&&(n="flex-flow"),n?((t={})[n]=i,t):null}uc.__lookupStyles=["display","flow","gap"],cc.__lookupStyles=["display","flow"];var dc={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 pc(e){var t=e.reset;if(t)return Yi(t,1).mods.reduce((function(e,t){return dc[t]&&e.push.apply(e,j([],N(dc[t]),!1)),e}),[])}function fc(e){var t=e.color;if(!t)return"";!0===t&&(t="currentColor"),t.startsWith("#")&&(t=Zi(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 hc(e){var t=e.fill;if(!t)return"";t.startsWith("#")&&(t=Yi(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}pc.__lookupStyles=["reset"],fc.__lookupStyles=["color"],hc.__lookupStyles=["fill"];function vc(e){return"undefined"!=typeof CSS&&void 0!==CSS.supports&&CSS.supports("height",e)}var gc=vc("stretch")?"stretch":vc("fill-available")?"fill-available":vc("-webkit-fill-available")?"-webkit-fill-available":vc("-moz-fill-available")?"-moz-fill-available":null,mc=["max-content","min-content","fit-content","stretch"];function bc(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 s=((i={})[e]="auto",i[t]="auto",i[n]="initial",i),l=Yi(r),u=l.mods,c=l.values;!function(e,t,n){e.forEach((function(e){t.includes(e)&&(n.push(e),t.splice(t.indexOf(e),1))}))}(mc,u,c),c.forEach((function(t,n){"stretch"===t&&(c[n]=gc||("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":s[t]=c[0]||"var(--gap)",d=!0;break;case"max":s[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?(s[t]=c[0],s[n]=c[1]):3===c.length?(s[t]=c[0],s[e]=c[1],s[n]=c[2]):s[e]=c[0]||"auto"),s}}var yc=bc("width");function xc(e){var t=e.width;return yc(t)}xc.__lookupStyles=["width"];var wc=bc("height");function Sc(e){var t=e.height;return wc(t)}Sc.__lookupStyles=["height"];var Ec="var(--radius)",kc="var(--leaf-sharp-radius)";function Pc(e){var t=e.radius;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1r");var n=Yi(t,1),r=n.mods,i=n.values;if(r.includes("round")?i=["9999rem"]:r.includes("ellipse")?i=["50%"]:i.length||(i=[Ec]),r.includes("leaf"))i=[i[1]||kc,i[0]||Ec,i[1]||kc,i[0]||Ec];else if(r.includes("backleaf"))i=[i[0]||Ec,i[1]||kc,i[0]||Ec,i[1]||kc];else if(r.length){var o=["0","0","0","0"],a=!1;Vi.forEach((function(e,t){r.includes(e)&&(a=!0,o[t]=i[0]||Ec,o[(t+1)%4]=i[0]||Ec)})),a&&(i=o)}return[{"--local-radius":i.join(" "),"border-radius":"var(--local-radius)"},{$:">*","--context-radius":i.join(" ")}]}Pc.__lookupStyles=["radius"];var Tc=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Cc(e){var t=e.border;if(t||0===t){!0===t&&(t="1bw");var n=Yi(String(t)),r=n.values,i=n.mods,o=n.color,a=ro(i,Vi),s=ro(i,Tc),l=[r[0]||"var(--border-width)",s[0]||"solid",o||"var(--border-color)"].join(" ");return a.length?i.reduce((function(e,t){return e["border-"+t]=l,e}),{}):{border:l}}}function Oc(e){var t=e.shadow;if(!t)return"";!0===t&&(t="0 5px 15px #shadow");var n=Yi(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 Nc(e){var t=e.padding;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var n=Yi(t),r=n.values,i=ro(n.mods,Vi);return r.length||(r=["var(--gap)"]),i.length?i.reduce((function(e,t){var n=Vi.indexOf(t);return e["padding-"+t]=r[n]||r[n%2]||r[0],e}),{}):{padding:r.join(" ")}}function jc(e){var t=e.preset,n=e.fontSize,r=e.lineHeight,i=e.textTransform,o=e.letterSpacing,a=e.fontWeight,s=e.fontStyle,l=e.font;if(!t)return"";!0===t&&(t="");var u=Yi(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))"),s||(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))"),l||(c["font-family"]=c["--font-family"]="var(--"+u+"-font-family, var(--font))"),c}function Lc(e){var t=e.fontStyle;return!0===t&&(t="italic"),"inherit"!==t&&(t=t?"italic":"normal"),{"font-style":t}}function Ac(e){var t=e.margin;if("number"==typeof t&&(t+="px"),!t)return"";!0===t&&(t="1x");var n=Yi(t),r=n.values,i=ro(n.mods,Vi);return i.length?i.reduce((function(e,t){var n=Vi.indexOf(t);return e["margin-"+t]=r[n]||r[n%2]||r[0],e}),{}):{margin:r.join(" ")}}function Fc(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 Dc(e){var t=e.outline;if(!t&&0!==t)return"";!0===t&&(t="1ow");var n=Yi(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)")}}Cc.__lookupStyles=["border"],Oc.__lookupStyles=["shadow"],Nc.__lookupStyles=["padding"],jc.__lookupStyles=["preset","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","fontStyle","font"],Lc.__lookupStyles=["fontStyle"],Ac.__lookupStyles=["margin"],Fc.__lookupStyles=["font"],Dc.__lookupStyles=["outline"];var Rc={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"]};var Ic=/([.0-9ms]+)|([a-z0-9-]+\(.+?\))|([a-z0-9-]+)|(,)/gi;function Mc(e){var t=e.transition;if(t){var n=t.match(Ic);if(n){var r="",i=[];n.forEach((function(e){","===e?r&&(i.push(r),r=""):r+=" "+e})),r&&i.push(r);var o={};return i.forEach((function(e){var t=e.match(Ic);if(t){var n=t[0],r=t[1],i=t[2],a=t[3];(Rc[n]||[n]).forEach((function(e){o[e]=[n,i,r,a]}))}})),{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],s=r[3];return n+" "+(a||function(e){return"var(--"+e+"-transition, var(--transition))"}(i))+" "+(o||"linear")+" "+(s||"0s")})).join(", ")}}}}Mc.__lookupStyles=["transition"];var _c={row:["* 0 0 *","0 * * 0"],column:["* * 0 0","0 0 * *"]};function zc(e){var t=e.groupRadius,n=e.flow;if(!t)return"";!0===t&&(t="1r");var r=Yi(t),i=r.values,o=r.mods;n=n||"row";var a=o.includes("reverse"),s=i[0];s||(s=o.includes("round")?"9999rem":o.includes("ellipse")?"50%":"var(--radius)");var l=_c[n][a?1:0].replace(/\*/g,s),u=_c[n][a?0:1].replace(/\*/g,s);return[{$:">:first-child:not(:last-child)","border-radius":l,"--local-radius":l},{$:">:last-child:not(:first-child)","border-radius":u,"--local-radius":u},{$:">:last-child:first-child","border-radius":s,"--local-radius":s},{$:">:not(:last-child):not(:first-child)","border-radius":"0","--local-radius":"0"}]}function Kc(e){var t=Kc.__lookupStyles.reduce((function(t,n){return e[n]&&t.push("var(--local-"+n+"-box-shadow)"),t}),[]);return t.length?{"box-shadow":t.join(", ")}:""}function Vc(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 Uc(e){var t=e.display;return{display:e.hide?"none":t}}zc.__lookupStyles=["groupRadius","flow"],Kc.__lookupStyles=["outline","shadow"],Vc.__lookupStyles=["styledScrollbar"],Uc.__lookupStyles=["display","hide"];var qc=function(e){if("number"==typeof e)return"minmax(1px, 1fr) ".repeat(e).trim()},Bc=function(e){if("number"==typeof e)return"auto ".repeat(e).trim()};function Wc(e){return null}function Gc(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&t.Children.count(e.children)>0)}xo("fontSize"),xo("lineHeight"),xo("fontWeight"),xo("fontStyle"),xo("letterSpacing"),xo("textTransform"),xo("fontFamily"),xo("gridAreas","grid-template-areas"),xo("gridColumns","grid-template-columns",qc),xo("gridRows","grid-template-rows",Bc),xo("gridTemplate","grid-template",(function(e){if("string"==typeof e)return e.split("/").map((function(e,t){return(t?qc:Bc)(e)})).join("/")})),[Uc,Mc,pc,hc,xc,Ac,uc,cc,fc,Sc,Pc,Cc,Oc,Nc,jc,Kc,Dc,Fc,Lc,zc,Vc].forEach((function(e){return yo(e)})),Wc.getCollectionNode=function*(e,n){let{childItems:r,title:i,children:o}=e,a=e.title||e.children,s=e.textValue||("string"==typeof a?a:"")||e["aria-label"]||"";s||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:s,"aria-label":e["aria-label"],hasChildNodes:Gc(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 Jc=Wc;class Hc{constructor(){this.context=void 0,this.cache=new WeakMap}build(e,t){return this.context=t,$c((()=>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),s=e.index,l=a.next();for(;!l.done&&l.value;){let t=l.value;e.index=s;let u=t.key;u||(u=t.element?null:this.getKey(o,e,n,r));let c=[...this.getFullNode(Rt({},t,{key:u,index:s,wrapper:Xc(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 <"+Yc(n.type)+"> in <"+Yc(i.type)+">. Only <"+Yc(e.type)+"> is supported.");s++,yield n}l=a.next(c)}return}if(null==e.key)return;let a=this,s={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:$c((function*(){if(!e.hasChildNodes)return;let t=0;for(let r of e.childNodes()){null!=r.key&&(r.key=""+s.key+r.key),r.index=t;let e=a.getFullNode(r,a.getChildState(n,r),s.key,s);for(let n of e)t++,yield n}}))};yield s}}function $c(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 Xc(e,t){return e&&t?n=>e(t(n)):e||(t||void 0)}function Yc(e){return e[0].toUpperCase()+e.slice(1)}const Zc=new WeakMap;function Qc(e){let t=Zc.get(e);if(null!=t)return t;t=0;for(let n of e)"section"===n.type?t+=Qc(n.childNodes):t++;return Zc.set(e,t),t}var ed={display:"inline-block",position:"relative",opacity:{"":1,"[disabled]":.4},outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"},td=j(j([],N(Go),!1),N(qo),!1),nd=h((function(e,t){var n=e.as,r=e.label,i=e.onClick,o=P(e,["as","label","onClick"]),a=o.isDisabled,s=oo(o,td,ed),l=bi(t),u=ns({isDisabled:a}),c=u.hoverProps,d=u.isHovered,p=os({isDisabled:a}),f=p.focusProps,h=p.isFocused,v=Gs(o,l).focusableProps;return M.jsx(_o,k({"data-is-hovered":d&&!a?"":null,"data-is-focused":h&&!a?"":null,"data-is-disabled":a||null,"aria-label":r},Gt(c,f,v,{onClick:i},ea(o,{eventProps:!0})),{tabIndex:o.excludeFromTabOrder||a?-1:0,as:n,styles:s,ref:l}),void 0)})),rd={display:"grid",flow:"row",gap:"@(column-gap, 0)"},id={align:"alignItems",justify:"justifyItems",template:"gridTemplate",columns:"gridColumns",rows:"gridRows",areas:"gridAreas"},od=h((function(e,t){var n=oo(e,Go,rd,id);return M.jsx(_o,k({},ea(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),ad={display:"flex",flow:"row"},sd={align:"alignItems",justify:"justifyItems"},ld=h((function(e,t){var n=oo(e,Go,ad,sd);return M.jsx(_o,k({},ea(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),ud=h((function(e,t){return M.jsx(ll,k({type:"link"},e,{ref:t}),void 0)})),cd={display:"block",flow:"column"},dd=Go,pd=h((function(e,t){var n=oo(e,dd,cd);return M.jsx(_o,k({},ea(e,{eventProps:!0}),{styles:n,ref:t}),void 0)})),fd={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 hd(e,t){return void 0===t&&(t=1),"rgba("+fd[e]+", "+t+")"}var vd={"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":hd("dark",.1),"shadow-color":hd("dark-03",.1),"draft-color":hd("dark",.2),"minor-color":hd("dark",.65),"success-bg-color":"rgba(41, 190, 110, .1)","note-bg-color":hd("note",.1),"note-text-color":hd("dark",.65),"danger-bg-color":hd("danger",.05),"danger-bg-hover-color":hd("danger",.1),"primary-1":hd("purple",.9),"primary-2":hd("purple",.8),"primary-3":hd("purple",.7),"primary-4":hd("purple",.6),"primary-5":hd("purple",.5),"primary-6":hd("purple",.4),"primary-7":hd("purple",.3),"primary-8":hd("purple",.2),"primary-9":hd("purple",.1),"primary-10":hd("purple",0),"dark-75-color":hd("dark",.75),"primary-color":hd("purple"),"pink-8-color":hd("pink",.2),"pink-9-color":hd("pink",.1),"disabled-color":hd("dark-01",.25),"disabled-text-color":hd("dark-01",.25),"disabled-bg":hd("dark-05",.2),"disabled-bg-color":hd("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","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(fd).forEach((function(e){vd[e+"-color"]=hd(e),vd[e+"-color-rgb"]=fd[e]}));var gd,md=b(gd||(gd=L(["\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({},vd),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})})),bd=D((function(e,t){t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default})),yd=F(bd),xd=D((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0})),wd=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})),Sd=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=xd(wd);e.exports=t.default})),Ed=F(Sd),kd=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=xd(wd);e.exports=t.default})),Pd=F(kd),Td=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})),Cd=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})),Od=D((function(e,t){t.__esModule=!0,t.default=void 0;var n=xd(Cd).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})),Nd=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,s={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,n.default)(a,e))return s;void 0!==e.getBoundingClientRect&&(s=e.getBoundingClientRect());return s={top:s.top+(o.pageYOffset||a.scrollTop)-(a.clientTop||0),left:s.left+(o.pageXOffset||a.scrollLeft)-(a.clientLeft||0),width:(null==s.width?e.offsetWidth:s.width)||0,height:(null==s.height?e.offsetHeight:s.height)||0}};var n=xd(Od),r=xd(wd),i=xd(bd);e.exports=t.default})),jd=F(Nd),Ld=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})),Ad=D((function(e,t){t.__esModule=!0,t.default=function(e){return(0,n.default)(e.replace(r,"ms-"))};var n=xd(Ld),r=/^-ms-/;e.exports=t.default})),Fd=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})),Dd=D((function(e,t){t.__esModule=!0,t.default=function(e){return(0,n.default)(e).replace(r,"-ms-")};var n=xd(Fd),r=/^ms-/;e.exports=t.default})),Rd=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 s=o.left,l=e.runtimeStyle,u=l&&l.left;u&&(l.left=e.currentStyle.left),o.left="fontSize"===t?"1em":a,a=o.pixelLeft+"px",o.left=s,u&&(l.left=u)}return a}}};var n=xd(Ad),r=/^(top|right|bottom|left)$/,i=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default})),Id=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})),Md=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,s,l,u,c,d,p,f=xd(Cd),h="transform";if(t.transform=h,t.animationEnd=i,t.transitionEnd=r,t.transitionDelay=l,t.transitionTiming=s,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 s=i[a];if(s+"TransitionProperty"in n){o="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("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=l=n+"-transition-delay",t.transitionTiming=s=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:s,delay:l,duration:a};t.default=g})),_d=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})),zd=D((function(e,t){t.__esModule=!0,t.default=function(e,t,s){var l="",u="",c=t;if("string"==typeof t){if(void 0===s)return e.style[(0,n.default)(t)]||(0,i.default)(e).getPropertyValue((0,r.default)(t));(c={})[t]=s}Object.keys(c).forEach((function(t){var n=c[t];n||0===n?(0,a.default)(t)?u+=t+"("+n+") ":l+=(0,r.default)(t)+": "+n+";":(0,o.default)(e,(0,r.default)(t))})),u&&(l+=Md.transform+": "+u+";");e.style.cssText+=";"+l};var n=xd(Ad),r=xd(Dd),i=xd(Rd),o=xd(Id),a=xd(_d);e.exports=t.default})),Kd=F(zd),Vd=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=xd(bd),r=xd(zd);function i(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default})),Ud=F(D((function(e,t){t.__esModule=!0,t.default=function(e,t){var l,u={top:0,left:0};"fixed"===(0,s.default)(e,"position")?l=e.getBoundingClientRect():(t=t||(0,i.default)(e),l=(0,r.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(u=(0,r.default)(t)),u.top+=parseInt((0,s.default)(t,"borderTopWidth"),10)-(0,o.default)(t)||0,u.left+=parseInt((0,s.default)(t,"borderLeftWidth"),10)-(0,a.default)(t)||0);return(0,n.default)({},l,{top:l.top-u.top-(parseInt((0,s.default)(e,"marginTop"),10)||0),left:l.left-u.left-(parseInt((0,s.default)(e,"marginLeft"),10)||0)})};var n=xd(Td),r=xd(Nd),i=xd(Vd),o=xd(Sd),a=xd(kd),s=xd(zd);e.exports=t.default})));const qd={top:"top",bottom:"top",left:"left",right:"left"},Bd={top:"bottom",bottom:"top",left:"right",right:"left"},Wd={top:"left",left:"top"},Gd={top:"height",left:"width"},Jd={};let Hd="undefined"!=typeof window&&window.visualViewport;function $d(e,t,n,r,i){let o=r.scroll[e],a=r[Gd[e]],s=t-i-o,l=t+i-o+n;return s<0?-s:l>a?Math.max(a-l,-s):0}function Xd(e){if(Jd[e])return Jd[e];let[t,n]=e.split(" "),r=qd[t]||"right",i=Wd[r];qd[n]||(n="center");let o=Gd[r],a=Gd[i];return Jd[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},Jd[e]}function Yd(e,t,n,r,i,o,a,s){let{placement:l,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),l===c){const n=s?a[p]:t[p];h[Bd[c]]=Math.floor(n-e[c]+i)}else h[c]=Math.floor(e[c]+e[p]+i);return h}function Zd(e,t,n,r,i,o){let{placement:a,axis:s,size:l}=o;return a===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[Bd[s]]-i):Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-r[s]-r[Bd[s]]-i)}function Qd(e,t,n,r,i,o,a,s,l,u,c,d){let p=Xd(e),{size:f,crossAxis:h,crossSize:v,placement:g,crossPlacement:m}=p,b=Yd(t,s,n,p,u,c,l,d),y=u,x=Zd(s,l,t,i,o+u,p);if(a&&r[f]>x){let e=Xd(Bd[g]+" "+m),r=Yd(t,s,n,e,u,c,l,d);Zd(s,l,t,i,o+u,e)>x&&(p=e,b=r,y=u)}let w=$d(h,b[h],n[v],s,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,s,l,t,i,o);n.height=Math.min(n.height,S),b=Yd(t,s,n,p,y,c,l,d),w=$d(h,b[h],n[v],s,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 ep(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:s,offset:l,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?jd(n):Ud(n,c);d||(h.top+=parseInt(Kd(n,"marginTop"),10)||0,h.left+=parseInt(Kd(n,"marginLeft"),10)||0);let v=jd(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,Qd(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,s;return"BODY"===e.tagName?(t=null!=(a=null==Hd?void 0:Hd.width)?a:document.documentElement.clientWidth,n=null!=(s=null==Hd?void 0:Hd.height)?s:document.documentElement.clientHeight,o.top=Ed(yd(e).documentElement)||Ed(e),o.left=Pd(yd(e).documentElement)||Pd(e)):(({width:t,height:n,top:r,left:i}=jd(e)),o.top=Ed(e),o.left=Pd(e)),{width:t,height:n,scroll:o,top:r,left:i}}(s),"BODY"===s.tagName?jd(c):Ud(c,s),l,u,f)}const tp=new WeakMap;let np="undefined"!=typeof window&&window.visualViewport;function rp(e){let{direction:t}=ci(),{targetRef:n,overlayRef:r,scrollRef:l=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,l.current,c,d,p,f,h,g,t],w=s((()=>{!1!==v&&g&&r.current&&n.current&&l.current&&p&&y(ep({placement:ip(u,t),overlayNode:r.current,targetNode:n.current,scrollNode:l.current,padding:c,shouldFlip:d,boundaryElement:p,offset:f,crossOffset:h}))}),x);var S;Kt(w,x),Kt((()=>(window.addEventListener("resize",S,!1),()=>{window.removeEventListener("resize",S,!1)})),[S=w]);let E=a(!1);Kt((()=>{let e,t=()=>{E.current=!0,clearTimeout(e),e=setTimeout((()=>{E.current=!1}),500),w()};return null==np||np.addEventListener("resize",t),()=>{null==np||np.removeEventListener("resize",t)}}),[w]);let k=s((()=>{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||tp.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:Rt({position:"absolute",zIndex:1e5},b.position,{maxHeight:b.maxHeight})},placement:b.placement,arrowProps:{style:{left:b.arrowOffsetLeft,top:b.arrowOffsetTop}},updatePosition:w}}function ip(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const op=[];function ap(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:s=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:u}=e;i((()=>(o&&op.push(t),()=>{let e=op.indexOf(t);e>=0&&op.splice(e,1)})),[o,t]);let c=()=>{op[op.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,s=a({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;s.onInteractOutside=n,s.onInteractOutsideStart=o,i((()=>{if(r)return;let e=e=>{rs(e,t)&&s.onInteractOutside&&(s.onInteractOutsideStart&&s.onInteractOutsideStart(e),s.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{s.isPointerDown&&s.onInteractOutside&&rs(e,t)&&(s.isPointerDown=!1,s.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=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&s.onInteractOutside&&rs(e,t)&&(s.isPointerDown=!1,s.onInteractOutside(e))},r=e=>{s.ignoreEmulatedMouseEvents=!0,s.onInteractOutside&&s.isPointerDown&&rs(e,t)&&(s.isPointerDown=!1,s.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,s,r])}({ref:t,onInteractOutside:s?e=>{u&&!u(e.target)||(op[op.length-1]===t&&(e.stopPropagation(),e.preventDefault()),c())}:null,onInteractOutsideStart:e=>{u&&!u(e.target)||op[op.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:d}=Xa({isDisabled:!r,onBlurWithin:e=>{u&&!u(e.relatedTarget)||n()}});return{overlayProps:Rt({onKeyDown:e=>{"Escape"!==e.key||l||(e.preventDefault(),c())}},d),underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}function sp(e,t,n){let r,{type:o}=e,{isOpen:a}=t;i((()=>{n&&n.current&&tp.set(n.current,t.close)})),"menu"===o?r=!0:"listbox"===o&&(r="listbox");let s=Ut();return{triggerProps:{"aria-haspopup":r,"aria-expanded":a,"aria-controls":a?s:null},overlayProps:{id:s}}}const lp="undefined"!=typeof window&&window.visualViewport,up=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function cp(e){void 0===e&&(e={});let{isDisabled:t}=e;Kt((()=>{if(!t)return vn()?function(){let e,t=0,n=n=>{e=an(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&&!up.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&&!up.has(t.type)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",lp&&(lp.height<window.innerHeight?requestAnimationFrame((()=>{fp(t)})):lp.addEventListener("resize",(()=>fp(t)),{once:!0}))})))},a=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,u=Wt(dp(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),dp(document.documentElement,"overflow","hidden"),dp(document.body,"marginTop","-"+l+"px"));window.scrollTo(0,0);let c=Wt(pp(document,"touchstart",n,{passive:!1,capture:!0}),pp(document,"touchmove",r,{passive:!1,capture:!0}),pp(document,"touchend",i,{passive:!1,capture:!0}),pp(document,"focus",o,!0),pp(window,"scroll",a));return()=>{u(),c(),window.scrollTo(s,l)}}():Wt(dp(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),dp(document.documentElement,"overflow","hidden"))}),[t])}function dp(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function pp(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function fp(e){let t=an(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 hp=t.createContext(null);function vp(e){let{children:n}=e,i=r(hp),[a,s]=o(0),u=l((()=>({parent:i,modalCount:a,addModal(){s((e=>e+1)),i&&i.addModal()},removeModal(){s((e=>e-1)),i&&i.removeModal()}})),[i,a]);return t.createElement(hp.Provider,{value:u},n)}function gp(e){let t=r(hp);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 mp;mp=JSON.parse('{"dismiss":"تجاهل"}');var bp;bp=JSON.parse('{"dismiss":"Отхвърляне"}');var yp;yp=JSON.parse('{"dismiss":"Odstranit"}');var xp;xp=JSON.parse('{"dismiss":"Luk"}');var wp;wp=JSON.parse('{"dismiss":"Schließen"}');var Sp;Sp=JSON.parse('{"dismiss":"Απόρριψη"}');var Ep;Ep=JSON.parse('{"dismiss":"Dismiss"}');var kp;kp=JSON.parse('{"dismiss":"Descartar"}');var Pp;Pp=JSON.parse('{"dismiss":"Lõpeta"}');var Tp;Tp=JSON.parse('{"dismiss":"Hylkää"}');var Cp;Cp=JSON.parse('{"dismiss":"Rejeter"}');var Op;Op=JSON.parse('{"dismiss":"התעלם"}');var Np;Np=JSON.parse('{"dismiss":"Odbaci"}');var jp;jp=JSON.parse('{"dismiss":"Elutasítás"}');var Lp;Lp=JSON.parse('{"dismiss":"Ignora"}');var Ap;Ap=JSON.parse('{"dismiss":"閉じる"}');var Fp;Fp=JSON.parse('{"dismiss":"무시"}');var Dp;Dp=JSON.parse('{"dismiss":"Atmesti"}');var Rp;Rp=JSON.parse('{"dismiss":"Nerādīt"}');var Ip;Ip=JSON.parse('{"dismiss":"Lukk"}');var Mp;Mp=JSON.parse('{"dismiss":"Negeren"}');var _p;_p=JSON.parse('{"dismiss":"Zignoruj"}');var zp;zp=JSON.parse('{"dismiss":"Descartar"}');var Kp;Kp=JSON.parse('{"dismiss":"Dispensar"}');var Vp;Vp=JSON.parse('{"dismiss":"Revocare"}');var Up;Up=JSON.parse('{"dismiss":"Пропустить"}');var qp;qp=JSON.parse('{"dismiss":"Zrušiť"}');var Bp;Bp=JSON.parse('{"dismiss":"Opusti"}');var Wp;Wp=JSON.parse('{"dismiss":"Odbaci"}');var Gp;Gp=JSON.parse('{"dismiss":"Avvisa"}');var Jp;Jp=JSON.parse('{"dismiss":"Kapat"}');var Hp;Hp=JSON.parse('{"dismiss":"Скасувати"}');var $p;$p=JSON.parse('{"dismiss":"取消"}');var Xp;Xp=JSON.parse('{"dismiss":"關閉"}');const Yp={"ar-AE":wl(mp).default,"bg-BG":wl(bp).default,"cs-CZ":wl(yp).default,"da-DK":wl(xp).default,"de-DE":wl(wp).default,"el-GR":wl(Sp).default,"en-US":wl(Ep).default,"es-ES":wl(kp).default,"et-EE":wl(Pp).default,"fi-FI":wl(Tp).default,"fr-FR":wl(Cp).default,"he-IL":wl(Op).default,"hr-HR":wl(Np).default,"hu-HU":wl(jp).default,"it-IT":wl(Lp).default,"ja-JP":wl(Ap).default,"ko-KR":wl(Fp).default,"lt-LT":wl(Dp).default,"lv-LV":wl(Rp).default,"nb-NO":wl(Ip).default,"nl-NL":wl(Mp).default,"pl-PL":wl(_p).default,"pt-BR":wl(zp).default,"pt-PT":wl(Kp).default,"ro-RO":wl(Vp).default,"ru-RU":wl(Up).default,"sk-SK":wl(qp).default,"sl-SI":wl(Bp).default,"sr-SP":wl(Wp).default,"sv-SE":wl(Gp).default,"tr-TR":wl(Jp).default,"uk-UA":wl(Hp).default,"zh-CN":wl($p).default,"zh-TW":wl(Xp).default};function Zp(e){let{onDismiss:n}=e,r=pi(Yp);return t.createElement(hl,null,t.createElement("button",{tabIndex:-1,"aria-label":r("dismiss"),onClick:()=>{n&&n()}}))}let Qp=new WeakMap;var ef={display:"block",size:"default"},tf=j(j([],N(zo),!1),N(Vo),!1),nf=function(e){var t=e.children,n=e.tokens,r=e.fonts,s=e.publicUrl,l=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=oo(d,tf,ef),m=M.jsx(y,k({disableVendorPrefixes:!0},{children:M.jsxs(_o,k({ref:p,className:"root"},ea(d,{eventProps:!0}),{styles:g},{children:[M.jsx(md,{tokens:n,publicUrl:s,fonts:r,font:u,monospaceFont:c},void 0),M.jsx(vp,{children:t},void 0)]}),void 0)}),void 0);return M.jsx(Ii,k({router:l,root:h},{children:m}),void 0)},rf=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 s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=o[s])}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 s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],u=i.util.type(l);"Object"!==u||o[a(l)]?"Array"!==u||o[a(l)]||(o[a(l)]=!0,e(l,n,s,o)):(o[a(l)]=!0,e(l,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),s=i.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var l=n.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&(l.className=l.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var u={element:n,language:a,grammar:s,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),(l=u.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.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 l;return u(i,i.head,e),s(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 s(e,t,n,r,l,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=l;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 L=P[0],A=k.slice(0,C),F=k.slice(C+L.length),D=E+k.length;d&&D>d.reach&&(d.reach=D);var R=S.prev;if(A&&(R=u(t,R,A),E+=A.length),c(t,R,T),S=u(t,R,new o(p,g?i.tokenize(L,g):L,y,L)),F&&u(t,S,F),T>1){var I={cause:p+","+h,reach:D};s(e,t,n,S.prev,E,I),d&&I.reach>d.reach&&(d.reach=I.reach)}}}}}}function l(){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 s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+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
|
*
|