github.com/greenpau/go-authcrunch@v1.1.4/pkg/authn/ui/profile/assets/index-DOtSzC14.js (about)

     1  var CD=Object.defineProperty;var SD=(e,t,r)=>t in e?CD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var on=(e,t,r)=>(SD(e,typeof t!="symbol"?t+"":t,r),r);function G1(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const n in o)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(o,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>o[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function r(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(n){if(n.ep)return;n.ep=!0;const i=r(n);fetch(n.href,i)}})();var Bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var z1={exports:{}},Dh={},F1={exports:{}},ct={};/**
     2   * @license React
     3   * react.production.min.js
     4   *
     5   * Copyright (c) Facebook, Inc. and its affiliates.
     6   *
     7   * This source code is licensed under the MIT license found in the
     8   * LICENSE file in the root directory of this source tree.
     9   */var $c=Symbol.for("react.element"),TD=Symbol.for("react.portal"),ED=Symbol.for("react.fragment"),LD=Symbol.for("react.strict_mode"),AD=Symbol.for("react.profiler"),BD=Symbol.for("react.provider"),DD=Symbol.for("react.context"),RD=Symbol.for("react.forward_ref"),ID=Symbol.for("react.suspense"),PD=Symbol.for("react.memo"),$D=Symbol.for("react.lazy"),ib=Symbol.iterator;function OD(e){return e===null||typeof e!="object"?null:(e=ib&&e[ib]||e["@@iterator"],typeof e=="function"?e:null)}var H1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},W1=Object.assign,V1={};function Kl(e,t,r){this.props=e,this.context=t,this.refs=V1,this.updater=r||H1}Kl.prototype.isReactComponent={};Kl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Kl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function U1(){}U1.prototype=Kl.prototype;function Ov(e,t,r){this.props=e,this.context=t,this.refs=V1,this.updater=r||H1}var Mv=Ov.prototype=new U1;Mv.constructor=Ov;W1(Mv,Kl.prototype);Mv.isPureReactComponent=!0;var ab=Array.isArray,K1=Object.prototype.hasOwnProperty,Nv={current:null},q1={key:!0,ref:!0,__self:!0,__source:!0};function Y1(e,t,r){var o,n={},i=null,a=null;if(t!=null)for(o in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)K1.call(t,o)&&!q1.hasOwnProperty(o)&&(n[o]=t[o]);var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];n.children=l}if(e&&e.defaultProps)for(o in c=e.defaultProps,c)n[o]===void 0&&(n[o]=c[o]);return{$$typeof:$c,type:e,key:i,ref:a,props:n,_owner:Nv.current}}function MD(e,t){return{$$typeof:$c,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function jv(e){return typeof e=="object"&&e!==null&&e.$$typeof===$c}function ND(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var lb=/\/+/g;function mp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ND(""+e.key):t.toString(36)}function id(e,t,r,o,n){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case $c:case TD:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+mp(a,0):o,ab(n)?(r="",e!=null&&(r=e.replace(lb,"$&/")+"/"),id(n,t,r,"",function(d){return d})):n!=null&&(jv(n)&&(n=MD(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(lb,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",ab(e))for(var c=0;c<e.length;c++){i=e[c];var l=o+mp(i,c);a+=id(i,t,r,l,n)}else if(l=OD(e),typeof l=="function")for(e=l.call(e),c=0;!(i=e.next()).done;)i=i.value,l=o+mp(i,c++),a+=id(i,t,r,l,n);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function wu(e,t,r){if(e==null)return e;var o=[],n=0;return id(e,o,"","",function(i){return t.call(r,i,n++)}),o}function jD(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var co={current:null},ad={transition:null},GD={ReactCurrentDispatcher:co,ReactCurrentBatchConfig:ad,ReactCurrentOwner:Nv};ct.Children={map:wu,forEach:function(e,t,r){wu(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return wu(e,function(){t++}),t},toArray:function(e){return wu(e,function(t){return t})||[]},only:function(e){if(!jv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ct.Component=Kl;ct.Fragment=ED;ct.Profiler=AD;ct.PureComponent=Ov;ct.StrictMode=LD;ct.Suspense=ID;ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GD;ct.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=W1({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Nv.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)K1.call(t,l)&&!q1.hasOwnProperty(l)&&(o[l]=t[l]===void 0&&c!==void 0?c[l]:t[l])}var l=arguments.length-2;if(l===1)o.children=r;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:$c,type:e.type,key:n,ref:i,props:o,_owner:a}};ct.createContext=function(e){return e={$$typeof:DD,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:BD,_context:e},e.Consumer=e};ct.createElement=Y1;ct.createFactory=function(e){var t=Y1.bind(null,e);return t.type=e,t};ct.createRef=function(){return{current:null}};ct.forwardRef=function(e){return{$$typeof:RD,render:e}};ct.isValidElement=jv;ct.lazy=function(e){return{$$typeof:$D,_payload:{_status:-1,_result:e},_init:jD}};ct.memo=function(e,t){return{$$typeof:PD,type:e,compare:t===void 0?null:t}};ct.startTransition=function(e){var t=ad.transition;ad.transition={};try{e()}finally{ad.transition=t}};ct.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ct.useCallback=function(e,t){return co.current.useCallback(e,t)};ct.useContext=function(e){return co.current.useContext(e)};ct.useDebugValue=function(){};ct.useDeferredValue=function(e){return co.current.useDeferredValue(e)};ct.useEffect=function(e,t){return co.current.useEffect(e,t)};ct.useId=function(){return co.current.useId()};ct.useImperativeHandle=function(e,t,r){return co.current.useImperativeHandle(e,t,r)};ct.useInsertionEffect=function(e,t){return co.current.useInsertionEffect(e,t)};ct.useLayoutEffect=function(e,t){return co.current.useLayoutEffect(e,t)};ct.useMemo=function(e,t){return co.current.useMemo(e,t)};ct.useReducer=function(e,t,r){return co.current.useReducer(e,t,r)};ct.useRef=function(e){return co.current.useRef(e)};ct.useState=function(e){return co.current.useState(e)};ct.useSyncExternalStore=function(e,t,r){return co.current.useSyncExternalStore(e,t,r)};ct.useTransition=function(){return co.current.useTransition()};ct.version="18.2.0";F1.exports=ct;var B=F1.exports;const x=Gn(B),zD=G1({__proto__:null,default:x},[B]);/**
    10   * @license React
    11   * react-jsx-runtime.production.min.js
    12   *
    13   * Copyright (c) Facebook, Inc. and its affiliates.
    14   *
    15   * This source code is licensed under the MIT license found in the
    16   * LICENSE file in the root directory of this source tree.
    17   */var FD=B,HD=Symbol.for("react.element"),WD=Symbol.for("react.fragment"),VD=Object.prototype.hasOwnProperty,UD=FD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,KD={key:!0,ref:!0,__self:!0,__source:!0};function X1(e,t,r){var o,n={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(o in t)VD.call(t,o)&&!KD.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)n[o]===void 0&&(n[o]=t[o]);return{$$typeof:HD,type:e,key:i,ref:a,props:n,_owner:UD.current}}Dh.Fragment=WD;Dh.jsx=X1;Dh.jsxs=X1;z1.exports=Dh;var w=z1.exports,Q1={exports:{}},Oo={},Z1={exports:{}},J1={};/**
    18   * @license React
    19   * scheduler.production.min.js
    20   *
    21   * Copyright (c) Facebook, Inc. and its affiliates.
    22   *
    23   * This source code is licensed under the MIT license found in the
    24   * LICENSE file in the root directory of this source tree.
    25   */(function(e){function t(M,O){var j=M.length;M.push(O);e:for(;0<j;){var z=j-1>>>1,F=M[z];if(0<n(F,O))M[z]=O,M[j]=F,j=z;else break e}}function r(M){return M.length===0?null:M[0]}function o(M){if(M.length===0)return null;var O=M[0],j=M.pop();if(j!==O){M[0]=j;e:for(var z=0,F=M.length,K=F>>>1;z<K;){var U=2*(z+1)-1,Y=M[U],V=U+1,q=M[V];if(0>n(Y,j))V<F&&0>n(q,Y)?(M[z]=q,M[V]=j,z=V):(M[z]=Y,M[U]=j,z=U);else if(V<F&&0>n(q,j))M[z]=q,M[V]=j,z=V;else break e}}return O}function n(M,O){var j=M.sortIndex-O.sortIndex;return j!==0?j:M.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,c=a.now();e.unstable_now=function(){return a.now()-c}}var l=[],d=[],s=1,u=null,h=3,f=!1,p=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(M){for(var O=r(d);O!==null;){if(O.callback===null)o(d);else if(O.startTime<=M)o(d),O.sortIndex=O.expirationTime,t(l,O);else break;O=r(d)}}function _(M){if(g=!1,C(M),!p)if(r(l)!==null)p=!0,$(k);else{var O=r(d);O!==null&&N(_,O.startTime-M)}}function k(M,O){p=!1,g&&(g=!1,m(T),T=-1),f=!0;var j=h;try{for(C(O),u=r(l);u!==null&&(!(u.expirationTime>O)||M&&!A());){var z=u.callback;if(typeof z=="function"){u.callback=null,h=u.priorityLevel;var F=z(u.expirationTime<=O);O=e.unstable_now(),typeof F=="function"?u.callback=F:u===r(l)&&o(l),C(O)}else o(l);u=r(l)}if(u!==null)var K=!0;else{var U=r(d);U!==null&&N(_,U.startTime-O),K=!1}return K}finally{u=null,h=j,f=!1}}var b=!1,S=null,T=-1,L=5,I=-1;function A(){return!(e.unstable_now()-I<L)}function P(){if(S!==null){var M=e.unstable_now();I=M;var O=!0;try{O=S(!0,M)}finally{O?D():(b=!1,S=null)}}else b=!1}var D;if(typeof y=="function")D=function(){y(P)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,R=E.port2;E.port1.onmessage=P,D=function(){R.postMessage(null)}}else D=function(){v(P,0)};function $(M){S=M,b||(b=!0,D())}function N(M,O){T=v(function(){M(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){p||f||(p=!0,$(k))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(M){switch(h){case 1:case 2:case 3:var O=3;break;default:O=h}var j=h;h=O;try{return M()}finally{h=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,O){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var j=h;h=M;try{return O()}finally{h=j}},e.unstable_scheduleCallback=function(M,O,j){var z=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?z+j:z):j=z,M){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=j+F,M={id:s++,callback:O,priorityLevel:M,startTime:j,expirationTime:F,sortIndex:-1},j>z?(M.sortIndex=j,t(d,M),r(l)===null&&M===r(d)&&(g?(m(T),T=-1):g=!0,N(_,j-z))):(M.sortIndex=F,t(l,M),p||f||(p=!0,$(k))),M},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(M){var O=h;return function(){var j=h;h=O;try{return M.apply(this,arguments)}finally{h=j}}}})(J1);Z1.exports=J1;var qD=Z1.exports;/**
    26   * @license React
    27   * react-dom.production.min.js
    28   *
    29   * Copyright (c) Facebook, Inc. and its affiliates.
    30   *
    31   * This source code is licensed under the MIT license found in the
    32   * LICENSE file in the root directory of this source tree.
    33   */var ek=B,Po=qD;function be(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var tk=new Set,ic={};function ja(e,t){Al(e,t),Al(e+"Capture",t)}function Al(e,t){for(ic[e]=t,e=0;e<t.length;e++)tk.add(t[e])}var ti=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Og=Object.prototype.hasOwnProperty,YD=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,sb={},cb={};function XD(e){return Og.call(cb,e)?!0:Og.call(sb,e)?!1:YD.test(e)?cb[e]=!0:(sb[e]=!0,!1)}function QD(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ZD(e,t,r,o){if(t===null||typeof t>"u"||QD(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function uo(e,t,r,o,n,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Gr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Gr[e]=new uo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Gr[t]=new uo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Gr[e]=new uo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Gr[e]=new uo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Gr[e]=new uo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Gr[e]=new uo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Gr[e]=new uo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Gr[e]=new uo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Gr[e]=new uo(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gv=/[\-:]([a-z])/g;function zv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gv,zv);Gr[t]=new uo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gv,zv);Gr[t]=new uo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gv,zv);Gr[t]=new uo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Gr[e]=new uo(e,1,!1,e.toLowerCase(),null,!1,!1)});Gr.xlinkHref=new uo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Gr[e]=new uo(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fv(e,t,r,o){var n=Gr.hasOwnProperty(t)?Gr[t]:null;(n!==null?n.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ZD(t,r,n,o)&&(r=null),o||n===null?XD(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,o=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var si=ek.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xu=Symbol.for("react.element"),rl=Symbol.for("react.portal"),ol=Symbol.for("react.fragment"),Hv=Symbol.for("react.strict_mode"),Mg=Symbol.for("react.profiler"),rk=Symbol.for("react.provider"),ok=Symbol.for("react.context"),Wv=Symbol.for("react.forward_ref"),Ng=Symbol.for("react.suspense"),jg=Symbol.for("react.suspense_list"),Vv=Symbol.for("react.memo"),_i=Symbol.for("react.lazy"),nk=Symbol.for("react.offscreen"),ub=Symbol.iterator;function gs(e){return e===null||typeof e!="object"?null:(e=ub&&e[ub]||e["@@iterator"],typeof e=="function"?e:null)}var ir=Object.assign,vp;function Ds(e){if(vp===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);vp=t&&t[1]||""}return`
    34  `+vp+e}var yp=!1;function bp(e,t){if(!e||yp)return"";yp=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var o=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){o=d}e.call(t.prototype)}else{try{throw Error()}catch(d){o=d}e()}}catch(d){if(d&&o&&typeof d.stack=="string"){for(var n=d.stack.split(`
    35  `),i=o.stack.split(`
    36  `),a=n.length-1,c=i.length-1;1<=a&&0<=c&&n[a]!==i[c];)c--;for(;1<=a&&0<=c;a--,c--)if(n[a]!==i[c]){if(a!==1||c!==1)do if(a--,c--,0>c||n[a]!==i[c]){var l=`
    37  `+n[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=c);break}}}finally{yp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ds(e):""}function JD(e){switch(e.tag){case 5:return Ds(e.type);case 16:return Ds("Lazy");case 13:return Ds("Suspense");case 19:return Ds("SuspenseList");case 0:case 2:case 15:return e=bp(e.type,!1),e;case 11:return e=bp(e.type.render,!1),e;case 1:return e=bp(e.type,!0),e;default:return""}}function Gg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ol:return"Fragment";case rl:return"Portal";case Mg:return"Profiler";case Hv:return"StrictMode";case Ng:return"Suspense";case jg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ok:return(e.displayName||"Context")+".Consumer";case rk:return(e._context.displayName||"Context")+".Provider";case Wv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vv:return t=e.displayName||null,t!==null?t:Gg(e.type)||"Memo";case _i:t=e._payload,e=e._init;try{return Gg(e(t))}catch{}}return null}function e2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gg(t);case 8:return t===Hv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ui(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ik(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function t2(e){var t=ik(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _u(e){e._valueTracker||(e._valueTracker=t2(e))}function ak(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=ik(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Rd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zg(e,t){var r=t.checked;return ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function db(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=Ui(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lk(e,t){t=t.checked,t!=null&&Fv(e,"checked",t,!1)}function Fg(e,t){lk(e,t);var r=Ui(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hg(e,t.type,r):t.hasOwnProperty("defaultValue")&&Hg(e,t.type,Ui(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hb(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Hg(e,t,r){(t!=="number"||Rd(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Rs=Array.isArray;function yl(e,t,r,o){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&o&&(e[r].defaultSelected=!0)}else{for(r=""+Ui(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Wg(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(be(91));return ir({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function fb(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(be(92));if(Rs(r)){if(1<r.length)throw Error(be(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ui(r)}}function sk(e,t){var r=Ui(t.value),o=Ui(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function pb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ck(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Vg(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ck(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ku,uk=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,n)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ku=ku||document.createElement("div"),ku.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ku.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ac(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ms={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},r2=["Webkit","ms","Moz","O"];Object.keys(Ms).forEach(function(e){r2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ms[t]=Ms[e]})});function dk(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ms.hasOwnProperty(e)&&Ms[e]?(""+t).trim():t+"px"}function hk(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=dk(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var o2=ir({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ug(e,t){if(t){if(o2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(be(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(be(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(be(61))}if(t.style!=null&&typeof t.style!="object")throw Error(be(62))}}function Kg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qg=null;function Uv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yg=null,bl=null,wl=null;function gb(e){if(e=Nc(e)){if(typeof Yg!="function")throw Error(be(280));var t=e.stateNode;t&&(t=Oh(t),Yg(e.stateNode,e.type,t))}}function fk(e){bl?wl?wl.push(e):wl=[e]:bl=e}function pk(){if(bl){var e=bl,t=wl;if(wl=bl=null,gb(e),t)for(e=0;e<t.length;e++)gb(t[e])}}function gk(e,t){return e(t)}function mk(){}var wp=!1;function vk(e,t,r){if(wp)return e(t,r);wp=!0;try{return gk(e,t,r)}finally{wp=!1,(bl!==null||wl!==null)&&(mk(),pk())}}function lc(e,t){var r=e.stateNode;if(r===null)return null;var o=Oh(r);if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(be(231,t,typeof r));return r}var Xg=!1;if(ti)try{var ms={};Object.defineProperty(ms,"passive",{get:function(){Xg=!0}}),window.addEventListener("test",ms,ms),window.removeEventListener("test",ms,ms)}catch{Xg=!1}function n2(e,t,r,o,n,i,a,c,l){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(s){this.onError(s)}}var Ns=!1,Id=null,Pd=!1,Qg=null,i2={onError:function(e){Ns=!0,Id=e}};function a2(e,t,r,o,n,i,a,c,l){Ns=!1,Id=null,n2.apply(i2,arguments)}function l2(e,t,r,o,n,i,a,c,l){if(a2.apply(this,arguments),Ns){if(Ns){var d=Id;Ns=!1,Id=null}else throw Error(be(198));Pd||(Pd=!0,Qg=d)}}function Ga(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function yk(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function mb(e){if(Ga(e)!==e)throw Error(be(188))}function s2(e){var t=e.alternate;if(!t){if(t=Ga(e),t===null)throw Error(be(188));return t!==e?null:e}for(var r=e,o=t;;){var n=r.return;if(n===null)break;var i=n.alternate;if(i===null){if(o=n.return,o!==null){r=o;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===r)return mb(n),e;if(i===o)return mb(n),t;i=i.sibling}throw Error(be(188))}if(r.return!==o.return)r=n,o=i;else{for(var a=!1,c=n.child;c;){if(c===r){a=!0,r=n,o=i;break}if(c===o){a=!0,o=n,r=i;break}c=c.sibling}if(!a){for(c=i.child;c;){if(c===r){a=!0,r=i,o=n;break}if(c===o){a=!0,o=i,r=n;break}c=c.sibling}if(!a)throw Error(be(189))}}if(r.alternate!==o)throw Error(be(190))}if(r.tag!==3)throw Error(be(188));return r.stateNode.current===r?e:t}function bk(e){return e=s2(e),e!==null?wk(e):null}function wk(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=wk(e);if(t!==null)return t;e=e.sibling}return null}var xk=Po.unstable_scheduleCallback,vb=Po.unstable_cancelCallback,c2=Po.unstable_shouldYield,u2=Po.unstable_requestPaint,fr=Po.unstable_now,d2=Po.unstable_getCurrentPriorityLevel,Kv=Po.unstable_ImmediatePriority,_k=Po.unstable_UserBlockingPriority,$d=Po.unstable_NormalPriority,h2=Po.unstable_LowPriority,kk=Po.unstable_IdlePriority,Rh=null,On=null;function f2(e){if(On&&typeof On.onCommitFiberRoot=="function")try{On.onCommitFiberRoot(Rh,e,void 0,(e.current.flags&128)===128)}catch{}}var pn=Math.clz32?Math.clz32:m2,p2=Math.log,g2=Math.LN2;function m2(e){return e>>>=0,e===0?32:31-(p2(e)/g2|0)|0}var Cu=64,Su=4194304;function Is(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Od(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,n=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var c=a&~n;c!==0?o=Is(c):(i&=a,i!==0&&(o=Is(i)))}else a=r&~n,a!==0?o=Is(a):i!==0&&(o=Is(i));if(o===0)return 0;if(t!==0&&t!==o&&!(t&n)&&(n=o&-o,i=t&-t,n>=i||n===16&&(i&4194240)!==0))return t;if(o&4&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-pn(t),n=1<<r,o|=e[r],t&=~n;return o}function v2(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function y2(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-pn(i),c=1<<a,l=n[a];l===-1?(!(c&r)||c&o)&&(n[a]=v2(c,t)):l<=t&&(e.expiredLanes|=c),i&=~c}}function Zg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ck(){var e=Cu;return Cu<<=1,!(Cu&4194240)&&(Cu=64),e}function xp(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Oc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pn(t),e[t]=r}function b2(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-pn(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function qv(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-pn(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var Pt=0;function Sk(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Tk,Yv,Ek,Lk,Ak,Jg=!1,Tu=[],Mi=null,Ni=null,ji=null,sc=new Map,cc=new Map,Ei=[],w2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function yb(e,t){switch(e){case"focusin":case"focusout":Mi=null;break;case"dragenter":case"dragleave":Ni=null;break;case"mouseover":case"mouseout":ji=null;break;case"pointerover":case"pointerout":sc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cc.delete(t.pointerId)}}function vs(e,t,r,o,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:i,targetContainers:[n]},t!==null&&(t=Nc(t),t!==null&&Yv(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function x2(e,t,r,o,n){switch(t){case"focusin":return Mi=vs(Mi,e,t,r,o,n),!0;case"dragenter":return Ni=vs(Ni,e,t,r,o,n),!0;case"mouseover":return ji=vs(ji,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return sc.set(i,vs(sc.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,cc.set(i,vs(cc.get(i)||null,e,t,r,o,n)),!0}return!1}function Bk(e){var t=ma(e.target);if(t!==null){var r=Ga(t);if(r!==null){if(t=r.tag,t===13){if(t=yk(r),t!==null){e.blockedOn=t,Ak(e.priority,function(){Ek(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ld(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=em(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);qg=o,r.target.dispatchEvent(o),qg=null}else return t=Nc(r),t!==null&&Yv(t),e.blockedOn=r,!1;t.shift()}return!0}function bb(e,t,r){ld(e)&&r.delete(t)}function _2(){Jg=!1,Mi!==null&&ld(Mi)&&(Mi=null),Ni!==null&&ld(Ni)&&(Ni=null),ji!==null&&ld(ji)&&(ji=null),sc.forEach(bb),cc.forEach(bb)}function ys(e,t){e.blockedOn===t&&(e.blockedOn=null,Jg||(Jg=!0,Po.unstable_scheduleCallback(Po.unstable_NormalPriority,_2)))}function uc(e){function t(n){return ys(n,e)}if(0<Tu.length){ys(Tu[0],e);for(var r=1;r<Tu.length;r++){var o=Tu[r];o.blockedOn===e&&(o.blockedOn=null)}}for(Mi!==null&&ys(Mi,e),Ni!==null&&ys(Ni,e),ji!==null&&ys(ji,e),sc.forEach(t),cc.forEach(t),r=0;r<Ei.length;r++)o=Ei[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<Ei.length&&(r=Ei[0],r.blockedOn===null);)Bk(r),r.blockedOn===null&&Ei.shift()}var xl=si.ReactCurrentBatchConfig,Md=!0;function k2(e,t,r,o){var n=Pt,i=xl.transition;xl.transition=null;try{Pt=1,Xv(e,t,r,o)}finally{Pt=n,xl.transition=i}}function C2(e,t,r,o){var n=Pt,i=xl.transition;xl.transition=null;try{Pt=4,Xv(e,t,r,o)}finally{Pt=n,xl.transition=i}}function Xv(e,t,r,o){if(Md){var n=em(e,t,r,o);if(n===null)Dp(e,t,o,Nd,r),yb(e,o);else if(x2(n,e,t,r,o))o.stopPropagation();else if(yb(e,o),t&4&&-1<w2.indexOf(e)){for(;n!==null;){var i=Nc(n);if(i!==null&&Tk(i),i=em(e,t,r,o),i===null&&Dp(e,t,o,Nd,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else Dp(e,t,o,null,r)}}var Nd=null;function em(e,t,r,o){if(Nd=null,e=Uv(o),e=ma(e),e!==null)if(t=Ga(e),t===null)e=null;else if(r=t.tag,r===13){if(e=yk(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Nd=e,null}function Dk(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(d2()){case Kv:return 1;case _k:return 4;case $d:case h2:return 16;case kk:return 536870912;default:return 16}default:return 16}}var Bi=null,Qv=null,sd=null;function Rk(){if(sd)return sd;var e,t=Qv,r=t.length,o,n="value"in Bi?Bi.value:Bi.textContent,i=n.length;for(e=0;e<r&&t[e]===n[e];e++);var a=r-e;for(o=1;o<=a&&t[r-o]===n[i-o];o++);return sd=n.slice(e,1<o?1-o:void 0)}function cd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Eu(){return!0}function wb(){return!1}function Mo(e){function t(r,o,n,i,a){this._reactName=r,this._targetInst=n,this.type=o,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(r=e[c],this[c]=r?r(i):i[c]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Eu:wb,this.isPropagationStopped=wb,this}return ir(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Eu)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Eu)},persist:function(){},isPersistent:Eu}),t}var ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zv=Mo(ql),Mc=ir({},ql,{view:0,detail:0}),S2=Mo(Mc),_p,kp,bs,Ih=ir({},Mc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jv,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==bs&&(bs&&e.type==="mousemove"?(_p=e.screenX-bs.screenX,kp=e.screenY-bs.screenY):kp=_p=0,bs=e),_p)},movementY:function(e){return"movementY"in e?e.movementY:kp}}),xb=Mo(Ih),T2=ir({},Ih,{dataTransfer:0}),E2=Mo(T2),L2=ir({},Mc,{relatedTarget:0}),Cp=Mo(L2),A2=ir({},ql,{animationName:0,elapsedTime:0,pseudoElement:0}),B2=Mo(A2),D2=ir({},ql,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),R2=Mo(D2),I2=ir({},ql,{data:0}),_b=Mo(I2),P2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},O2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=O2[e])?!!t[e]:!1}function Jv(){return M2}var N2=ir({},Mc,{key:function(e){if(e.key){var t=P2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jv,charCode:function(e){return e.type==="keypress"?cd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),j2=Mo(N2),G2=ir({},Ih,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kb=Mo(G2),z2=ir({},Mc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jv}),F2=Mo(z2),H2=ir({},ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),W2=Mo(H2),V2=ir({},Ih,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),U2=Mo(V2),K2=[9,13,27,32],e0=ti&&"CompositionEvent"in window,js=null;ti&&"documentMode"in document&&(js=document.documentMode);var q2=ti&&"TextEvent"in window&&!js,Ik=ti&&(!e0||js&&8<js&&11>=js),Cb=" ",Sb=!1;function Pk(e,t){switch(e){case"keyup":return K2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $k(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nl=!1;function Y2(e,t){switch(e){case"compositionend":return $k(t);case"keypress":return t.which!==32?null:(Sb=!0,Cb);case"textInput":return e=t.data,e===Cb&&Sb?null:e;default:return null}}function X2(e,t){if(nl)return e==="compositionend"||!e0&&Pk(e,t)?(e=Rk(),sd=Qv=Bi=null,nl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ik&&t.locale!=="ko"?null:t.data;default:return null}}var Q2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Tb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Q2[e.type]:t==="textarea"}function Ok(e,t,r,o){fk(o),t=jd(t,"onChange"),0<t.length&&(r=new Zv("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Gs=null,dc=null;function Z2(e){Kk(e,0)}function Ph(e){var t=ll(e);if(ak(t))return e}function J2(e,t){if(e==="change")return t}var Mk=!1;if(ti){var Sp;if(ti){var Tp="oninput"in document;if(!Tp){var Eb=document.createElement("div");Eb.setAttribute("oninput","return;"),Tp=typeof Eb.oninput=="function"}Sp=Tp}else Sp=!1;Mk=Sp&&(!document.documentMode||9<document.documentMode)}function Lb(){Gs&&(Gs.detachEvent("onpropertychange",Nk),dc=Gs=null)}function Nk(e){if(e.propertyName==="value"&&Ph(dc)){var t=[];Ok(t,dc,e,Uv(e)),vk(Z2,t)}}function eR(e,t,r){e==="focusin"?(Lb(),Gs=t,dc=r,Gs.attachEvent("onpropertychange",Nk)):e==="focusout"&&Lb()}function tR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ph(dc)}function rR(e,t){if(e==="click")return Ph(t)}function oR(e,t){if(e==="input"||e==="change")return Ph(t)}function nR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vn=typeof Object.is=="function"?Object.is:nR;function hc(e,t){if(vn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var n=r[o];if(!Og.call(t,n)||!vn(e[n],t[n]))return!1}return!0}function Ab(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bb(e,t){var r=Ab(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ab(r)}}function jk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gk(){for(var e=window,t=Rd();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Rd(e.document)}return t}function t0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function iR(e){var t=Gk(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&jk(r.ownerDocument.documentElement,r)){if(o!==null&&t0(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!e.extend&&i>o&&(n=o,o=i,i=n),n=Bb(r,i);var a=Bb(r,o);n&&a&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var aR=ti&&"documentMode"in document&&11>=document.documentMode,il=null,tm=null,zs=null,rm=!1;function Db(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;rm||il==null||il!==Rd(o)||(o=il,"selectionStart"in o&&t0(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),zs&&hc(zs,o)||(zs=o,o=jd(tm,"onSelect"),0<o.length&&(t=new Zv("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=il)))}function Lu(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var al={animationend:Lu("Animation","AnimationEnd"),animationiteration:Lu("Animation","AnimationIteration"),animationstart:Lu("Animation","AnimationStart"),transitionend:Lu("Transition","TransitionEnd")},Ep={},zk={};ti&&(zk=document.createElement("div").style,"AnimationEvent"in window||(delete al.animationend.animation,delete al.animationiteration.animation,delete al.animationstart.animation),"TransitionEvent"in window||delete al.transitionend.transition);function $h(e){if(Ep[e])return Ep[e];if(!al[e])return e;var t=al[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in zk)return Ep[e]=t[r];return e}var Fk=$h("animationend"),Hk=$h("animationiteration"),Wk=$h("animationstart"),Vk=$h("transitionend"),Uk=new Map,Rb="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Xi(e,t){Uk.set(e,t),ja(t,[e])}for(var Lp=0;Lp<Rb.length;Lp++){var Ap=Rb[Lp],lR=Ap.toLowerCase(),sR=Ap[0].toUpperCase()+Ap.slice(1);Xi(lR,"on"+sR)}Xi(Fk,"onAnimationEnd");Xi(Hk,"onAnimationIteration");Xi(Wk,"onAnimationStart");Xi("dblclick","onDoubleClick");Xi("focusin","onFocus");Xi("focusout","onBlur");Xi(Vk,"onTransitionEnd");Al("onMouseEnter",["mouseout","mouseover"]);Al("onMouseLeave",["mouseout","mouseover"]);Al("onPointerEnter",["pointerout","pointerover"]);Al("onPointerLeave",["pointerout","pointerover"]);ja("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ja("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ja("onBeforeInput",["compositionend","keypress","textInput","paste"]);ja("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ja("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ja("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ps="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),cR=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ps));function Ib(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,l2(o,t,void 0,e),e.currentTarget=null}function Kk(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],n=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var c=o[a],l=c.instance,d=c.currentTarget;if(c=c.listener,l!==i&&n.isPropagationStopped())break e;Ib(n,c,d),i=l}else for(a=0;a<o.length;a++){if(c=o[a],l=c.instance,d=c.currentTarget,c=c.listener,l!==i&&n.isPropagationStopped())break e;Ib(n,c,d),i=l}}}if(Pd)throw e=Qg,Pd=!1,Qg=null,e}function Vt(e,t){var r=t[lm];r===void 0&&(r=t[lm]=new Set);var o=e+"__bubble";r.has(o)||(qk(t,e,2,!1),r.add(o))}function Bp(e,t,r){var o=0;t&&(o|=4),qk(r,e,o,t)}var Au="_reactListening"+Math.random().toString(36).slice(2);function fc(e){if(!e[Au]){e[Au]=!0,tk.forEach(function(r){r!=="selectionchange"&&(cR.has(r)||Bp(r,!1,e),Bp(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Au]||(t[Au]=!0,Bp("selectionchange",!1,t))}}function qk(e,t,r,o){switch(Dk(t)){case 1:var n=k2;break;case 4:n=C2;break;default:n=Xv}r=n.bind(null,t,r,e),n=void 0,!Xg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function Dp(e,t,r,o,n){var i=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var a=o.tag;if(a===3||a===4){var c=o.stateNode.containerInfo;if(c===n||c.nodeType===8&&c.parentNode===n)break;if(a===4)for(a=o.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;a=a.return}for(;c!==null;){if(a=ma(c),a===null)return;if(l=a.tag,l===5||l===6){o=i=a;continue e}c=c.parentNode}}o=o.return}vk(function(){var d=i,s=Uv(r),u=[];e:{var h=Uk.get(e);if(h!==void 0){var f=Zv,p=e;switch(e){case"keypress":if(cd(r)===0)break e;case"keydown":case"keyup":f=j2;break;case"focusin":p="focus",f=Cp;break;case"focusout":p="blur",f=Cp;break;case"beforeblur":case"afterblur":f=Cp;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=xb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=E2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=F2;break;case Fk:case Hk:case Wk:f=B2;break;case Vk:f=W2;break;case"scroll":f=S2;break;case"wheel":f=U2;break;case"copy":case"cut":case"paste":f=R2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=kb}var g=(t&4)!==0,v=!g&&e==="scroll",m=g?h!==null?h+"Capture":null:h;g=[];for(var y=d,C;y!==null;){C=y;var _=C.stateNode;if(C.tag===5&&_!==null&&(C=_,m!==null&&(_=lc(y,m),_!=null&&g.push(pc(y,_,C)))),v)break;y=y.return}0<g.length&&(h=new f(h,p,null,r,s),u.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&r!==qg&&(p=r.relatedTarget||r.fromElement)&&(ma(p)||p[ri]))break e;if((f||h)&&(h=s.window===s?s:(h=s.ownerDocument)?h.defaultView||h.parentWindow:window,f?(p=r.relatedTarget||r.toElement,f=d,p=p?ma(p):null,p!==null&&(v=Ga(p),p!==v||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=d),f!==p)){if(g=xb,_="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(g=kb,_="onPointerLeave",m="onPointerEnter",y="pointer"),v=f==null?h:ll(f),C=p==null?h:ll(p),h=new g(_,y+"leave",f,r,s),h.target=v,h.relatedTarget=C,_=null,ma(s)===d&&(g=new g(m,y+"enter",p,r,s),g.target=C,g.relatedTarget=v,_=g),v=_,f&&p)t:{for(g=f,m=p,y=0,C=g;C;C=Za(C))y++;for(C=0,_=m;_;_=Za(_))C++;for(;0<y-C;)g=Za(g),y--;for(;0<C-y;)m=Za(m),C--;for(;y--;){if(g===m||m!==null&&g===m.alternate)break t;g=Za(g),m=Za(m)}g=null}else g=null;f!==null&&Pb(u,h,f,g,!1),p!==null&&v!==null&&Pb(u,v,p,g,!0)}}e:{if(h=d?ll(d):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var k=J2;else if(Tb(h))if(Mk)k=oR;else{k=tR;var b=eR}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=rR);if(k&&(k=k(e,d))){Ok(u,k,r,s);break e}b&&b(e,h,d),e==="focusout"&&(b=h._wrapperState)&&b.controlled&&h.type==="number"&&Hg(h,"number",h.value)}switch(b=d?ll(d):window,e){case"focusin":(Tb(b)||b.contentEditable==="true")&&(il=b,tm=d,zs=null);break;case"focusout":zs=tm=il=null;break;case"mousedown":rm=!0;break;case"contextmenu":case"mouseup":case"dragend":rm=!1,Db(u,r,s);break;case"selectionchange":if(aR)break;case"keydown":case"keyup":Db(u,r,s)}var S;if(e0)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else nl?Pk(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(Ik&&r.locale!=="ko"&&(nl||T!=="onCompositionStart"?T==="onCompositionEnd"&&nl&&(S=Rk()):(Bi=s,Qv="value"in Bi?Bi.value:Bi.textContent,nl=!0)),b=jd(d,T),0<b.length&&(T=new _b(T,e,null,r,s),u.push({event:T,listeners:b}),S?T.data=S:(S=$k(r),S!==null&&(T.data=S)))),(S=q2?Y2(e,r):X2(e,r))&&(d=jd(d,"onBeforeInput"),0<d.length&&(s=new _b("onBeforeInput","beforeinput",null,r,s),u.push({event:s,listeners:d}),s.data=S))}Kk(u,t)})}function pc(e,t,r){return{instance:e,listener:t,currentTarget:r}}function jd(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n.tag===5&&i!==null&&(n=i,i=lc(e,r),i!=null&&o.unshift(pc(e,i,n)),i=lc(e,t),i!=null&&o.push(pc(e,i,n))),e=e.return}return o}function Za(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Pb(e,t,r,o,n){for(var i=t._reactName,a=[];r!==null&&r!==o;){var c=r,l=c.alternate,d=c.stateNode;if(l!==null&&l===o)break;c.tag===5&&d!==null&&(c=d,n?(l=lc(r,i),l!=null&&a.unshift(pc(r,l,c))):n||(l=lc(r,i),l!=null&&a.push(pc(r,l,c)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var uR=/\r\n?/g,dR=/\u0000|\uFFFD/g;function $b(e){return(typeof e=="string"?e:""+e).replace(uR,`
    38  `).replace(dR,"")}function Bu(e,t,r){if(t=$b(t),$b(e)!==t&&r)throw Error(be(425))}function Gd(){}var om=null,nm=null;function im(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var am=typeof setTimeout=="function"?setTimeout:void 0,hR=typeof clearTimeout=="function"?clearTimeout:void 0,Ob=typeof Promise=="function"?Promise:void 0,fR=typeof queueMicrotask=="function"?queueMicrotask:typeof Ob<"u"?function(e){return Ob.resolve(null).then(e).catch(pR)}:am;function pR(e){setTimeout(function(){throw e})}function Rp(e,t){var r=t,o=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(o===0){e.removeChild(n),uc(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);uc(t)}function Gi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Mb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Yl=Math.random().toString(36).slice(2),Pn="__reactFiber$"+Yl,gc="__reactProps$"+Yl,ri="__reactContainer$"+Yl,lm="__reactEvents$"+Yl,gR="__reactListeners$"+Yl,mR="__reactHandles$"+Yl;function ma(e){var t=e[Pn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ri]||r[Pn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Mb(e);e!==null;){if(r=e[Pn])return r;e=Mb(e)}return t}e=r,r=e.parentNode}return null}function Nc(e){return e=e[Pn]||e[ri],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ll(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(be(33))}function Oh(e){return e[gc]||null}var sm=[],sl=-1;function Qi(e){return{current:e}}function Xt(e){0>sl||(e.current=sm[sl],sm[sl]=null,sl--)}function Wt(e,t){sl++,sm[sl]=e.current,e.current=t}var Ki={},Qr=Qi(Ki),yo=Qi(!1),Da=Ki;function Bl(e,t){var r=e.type.contextTypes;if(!r)return Ki;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function bo(e){return e=e.childContextTypes,e!=null}function zd(){Xt(yo),Xt(Qr)}function Nb(e,t,r){if(Qr.current!==Ki)throw Error(be(168));Wt(Qr,t),Wt(yo,r)}function Yk(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in t))throw Error(be(108,e2(e)||"Unknown",n));return ir({},r,o)}function Fd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ki,Da=Qr.current,Wt(Qr,e),Wt(yo,yo.current),!0}function jb(e,t,r){var o=e.stateNode;if(!o)throw Error(be(169));r?(e=Yk(e,t,Da),o.__reactInternalMemoizedMergedChildContext=e,Xt(yo),Xt(Qr),Wt(Qr,e)):Xt(yo),Wt(yo,r)}var Yn=null,Mh=!1,Ip=!1;function Xk(e){Yn===null?Yn=[e]:Yn.push(e)}function vR(e){Mh=!0,Xk(e)}function Zi(){if(!Ip&&Yn!==null){Ip=!0;var e=0,t=Pt;try{var r=Yn;for(Pt=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}Yn=null,Mh=!1}catch(n){throw Yn!==null&&(Yn=Yn.slice(e+1)),xk(Kv,Zi),n}finally{Pt=t,Ip=!1}}return null}var cl=[],ul=0,Hd=null,Wd=0,Wo=[],Vo=0,Ra=null,Qn=1,Zn="";function ca(e,t){cl[ul++]=Wd,cl[ul++]=Hd,Hd=e,Wd=t}function Qk(e,t,r){Wo[Vo++]=Qn,Wo[Vo++]=Zn,Wo[Vo++]=Ra,Ra=e;var o=Qn;e=Zn;var n=32-pn(o)-1;o&=~(1<<n),r+=1;var i=32-pn(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,Qn=1<<32-pn(t)+n|r<<n|o,Zn=i+e}else Qn=1<<i|r<<n|o,Zn=e}function r0(e){e.return!==null&&(ca(e,1),Qk(e,1,0))}function o0(e){for(;e===Hd;)Hd=cl[--ul],cl[ul]=null,Wd=cl[--ul],cl[ul]=null;for(;e===Ra;)Ra=Wo[--Vo],Wo[Vo]=null,Zn=Wo[--Vo],Wo[Vo]=null,Qn=Wo[--Vo],Wo[Vo]=null}var Do=null,Lo=null,Jt=!1,un=null;function Zk(e,t){var r=Ko(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Gb(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Do=e,Lo=Gi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Do=e,Lo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ra!==null?{id:Qn,overflow:Zn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Ko(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Do=e,Lo=null,!0):!1;default:return!1}}function cm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function um(e){if(Jt){var t=Lo;if(t){var r=t;if(!Gb(e,t)){if(cm(e))throw Error(be(418));t=Gi(r.nextSibling);var o=Do;t&&Gb(e,t)?Zk(o,r):(e.flags=e.flags&-4097|2,Jt=!1,Do=e)}}else{if(cm(e))throw Error(be(418));e.flags=e.flags&-4097|2,Jt=!1,Do=e}}}function zb(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Do=e}function Du(e){if(e!==Do)return!1;if(!Jt)return zb(e),Jt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!im(e.type,e.memoizedProps)),t&&(t=Lo)){if(cm(e))throw Jk(),Error(be(418));for(;t;)Zk(e,t),t=Gi(t.nextSibling)}if(zb(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(be(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Lo=Gi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Lo=null}}else Lo=Do?Gi(e.stateNode.nextSibling):null;return!0}function Jk(){for(var e=Lo;e;)e=Gi(e.nextSibling)}function Dl(){Lo=Do=null,Jt=!1}function n0(e){un===null?un=[e]:un.push(e)}var yR=si.ReactCurrentBatchConfig;function ln(e,t){if(e&&e.defaultProps){t=ir({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Vd=Qi(null),Ud=null,dl=null,i0=null;function a0(){i0=dl=Ud=null}function l0(e){var t=Vd.current;Xt(Vd),e._currentValue=t}function dm(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function _l(e,t){Ud=e,i0=dl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mo=!0),e.firstContext=null)}function Qo(e){var t=e._currentValue;if(i0!==e)if(e={context:e,memoizedValue:t,next:null},dl===null){if(Ud===null)throw Error(be(308));dl=e,Ud.dependencies={lanes:0,firstContext:e}}else dl=dl.next=e;return t}var va=null;function s0(e){va===null?va=[e]:va.push(e)}function eC(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,s0(t)):(r.next=n.next,n.next=r),t.interleaved=r,oi(e,o)}function oi(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ki=!1;function c0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,yt&2){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,oi(e,r)}return n=o.interleaved,n===null?(t.next=t,s0(o)):(t.next=n.next,n.next=t),o.interleaved=t,oi(e,r)}function ud(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,qv(e,r)}}function Fb(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var n=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?n=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?n=i=t:i=i.next=t}else n=i=t;r={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Kd(e,t,r,o){var n=e.updateQueue;ki=!1;var i=n.firstBaseUpdate,a=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var l=c,d=l.next;l.next=null,a===null?i=d:a.next=d,a=l;var s=e.alternate;s!==null&&(s=s.updateQueue,c=s.lastBaseUpdate,c!==a&&(c===null?s.firstBaseUpdate=d:c.next=d,s.lastBaseUpdate=l))}if(i!==null){var u=n.baseState;a=0,s=d=l=null,c=i;do{var h=c.lane,f=c.eventTime;if((o&h)===h){s!==null&&(s=s.next={eventTime:f,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var p=e,g=c;switch(h=t,f=r,g.tag){case 1:if(p=g.payload,typeof p=="function"){u=p.call(f,u,h);break e}u=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,h=typeof p=="function"?p.call(f,u,h):p,h==null)break e;u=ir({},u,h);break e;case 2:ki=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,h=n.effects,h===null?n.effects=[c]:h.push(c))}else f={eventTime:f,lane:h,tag:c.tag,payload:c.payload,callback:c.callback,next:null},s===null?(d=s=f,l=u):s=s.next=f,a|=h;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;h=c,c=h.next,h.next=null,n.lastBaseUpdate=h,n.shared.pending=null}}while(!0);if(s===null&&(l=u),n.baseState=l,n.firstBaseUpdate=d,n.lastBaseUpdate=s,t=n.shared.interleaved,t!==null){n=t;do a|=n.lane,n=n.next;while(n!==t)}else i===null&&(n.shared.lanes=0);Pa|=a,e.lanes=a,e.memoizedState=u}}function Hb(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],n=o.callback;if(n!==null){if(o.callback=null,o=r,typeof n!="function")throw Error(be(191,n));n.call(o)}}}var rC=new ek.Component().refs;function hm(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:ir({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Nh={isMounted:function(e){return(e=e._reactInternals)?Ga(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=io(),n=Hi(e),i=Jn(o,n);i.payload=t,r!=null&&(i.callback=r),t=zi(e,i,n),t!==null&&(gn(t,e,n,o),ud(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=io(),n=Hi(e),i=Jn(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=zi(e,i,n),t!==null&&(gn(t,e,n,o),ud(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=io(),o=Hi(e),n=Jn(r,o);n.tag=2,t!=null&&(n.callback=t),t=zi(e,n,o),t!==null&&(gn(t,e,o,r),ud(t,e,o))}};function Wb(e,t,r,o,n,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,i,a):t.prototype&&t.prototype.isPureReactComponent?!hc(r,o)||!hc(n,i):!0}function oC(e,t,r){var o=!1,n=Ki,i=t.contextType;return typeof i=="object"&&i!==null?i=Qo(i):(n=bo(t)?Da:Qr.current,o=t.contextTypes,i=(o=o!=null)?Bl(e,n):Ki),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Nh,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function Vb(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&Nh.enqueueReplaceState(t,t.state,null)}function fm(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs=rC,c0(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=Qo(i):(i=bo(t)?Da:Qr.current,n.context=Bl(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(hm(e,t,i,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&Nh.enqueueReplaceState(n,n.state,null),Kd(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function ws(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(be(309));var o=r.stateNode}if(!o)throw Error(be(147,e));var n=o,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var c=n.refs;c===rC&&(c=n.refs={}),a===null?delete c[i]:c[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(be(284));if(!r._owner)throw Error(be(290,e))}return e}function Ru(e,t){throw e=Object.prototype.toString.call(t),Error(be(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ub(e){var t=e._init;return t(e._payload)}function nC(e){function t(m,y){if(e){var C=m.deletions;C===null?(m.deletions=[y],m.flags|=16):C.push(y)}}function r(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function o(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function n(m,y){return m=Wi(m,y),m.index=0,m.sibling=null,m}function i(m,y,C){return m.index=C,e?(C=m.alternate,C!==null?(C=C.index,C<y?(m.flags|=2,y):C):(m.flags|=2,y)):(m.flags|=1048576,y)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function c(m,y,C,_){return y===null||y.tag!==6?(y=Gp(C,m.mode,_),y.return=m,y):(y=n(y,C),y.return=m,y)}function l(m,y,C,_){var k=C.type;return k===ol?s(m,y,C.props.children,_,C.key):y!==null&&(y.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===_i&&Ub(k)===y.type)?(_=n(y,C.props),_.ref=ws(m,y,C),_.return=m,_):(_=md(C.type,C.key,C.props,null,m.mode,_),_.ref=ws(m,y,C),_.return=m,_)}function d(m,y,C,_){return y===null||y.tag!==4||y.stateNode.containerInfo!==C.containerInfo||y.stateNode.implementation!==C.implementation?(y=zp(C,m.mode,_),y.return=m,y):(y=n(y,C.children||[]),y.return=m,y)}function s(m,y,C,_,k){return y===null||y.tag!==7?(y=ka(C,m.mode,_,k),y.return=m,y):(y=n(y,C),y.return=m,y)}function u(m,y,C){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Gp(""+y,m.mode,C),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case xu:return C=md(y.type,y.key,y.props,null,m.mode,C),C.ref=ws(m,null,y),C.return=m,C;case rl:return y=zp(y,m.mode,C),y.return=m,y;case _i:var _=y._init;return u(m,_(y._payload),C)}if(Rs(y)||gs(y))return y=ka(y,m.mode,C,null),y.return=m,y;Ru(m,y)}return null}function h(m,y,C,_){var k=y!==null?y.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return k!==null?null:c(m,y,""+C,_);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case xu:return C.key===k?l(m,y,C,_):null;case rl:return C.key===k?d(m,y,C,_):null;case _i:return k=C._init,h(m,y,k(C._payload),_)}if(Rs(C)||gs(C))return k!==null?null:s(m,y,C,_,null);Ru(m,C)}return null}function f(m,y,C,_,k){if(typeof _=="string"&&_!==""||typeof _=="number")return m=m.get(C)||null,c(y,m,""+_,k);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case xu:return m=m.get(_.key===null?C:_.key)||null,l(y,m,_,k);case rl:return m=m.get(_.key===null?C:_.key)||null,d(y,m,_,k);case _i:var b=_._init;return f(m,y,C,b(_._payload),k)}if(Rs(_)||gs(_))return m=m.get(C)||null,s(y,m,_,k,null);Ru(y,_)}return null}function p(m,y,C,_){for(var k=null,b=null,S=y,T=y=0,L=null;S!==null&&T<C.length;T++){S.index>T?(L=S,S=null):L=S.sibling;var I=h(m,S,C[T],_);if(I===null){S===null&&(S=L);break}e&&S&&I.alternate===null&&t(m,S),y=i(I,y,T),b===null?k=I:b.sibling=I,b=I,S=L}if(T===C.length)return r(m,S),Jt&&ca(m,T),k;if(S===null){for(;T<C.length;T++)S=u(m,C[T],_),S!==null&&(y=i(S,y,T),b===null?k=S:b.sibling=S,b=S);return Jt&&ca(m,T),k}for(S=o(m,S);T<C.length;T++)L=f(S,m,T,C[T],_),L!==null&&(e&&L.alternate!==null&&S.delete(L.key===null?T:L.key),y=i(L,y,T),b===null?k=L:b.sibling=L,b=L);return e&&S.forEach(function(A){return t(m,A)}),Jt&&ca(m,T),k}function g(m,y,C,_){var k=gs(C);if(typeof k!="function")throw Error(be(150));if(C=k.call(C),C==null)throw Error(be(151));for(var b=k=null,S=y,T=y=0,L=null,I=C.next();S!==null&&!I.done;T++,I=C.next()){S.index>T?(L=S,S=null):L=S.sibling;var A=h(m,S,I.value,_);if(A===null){S===null&&(S=L);break}e&&S&&A.alternate===null&&t(m,S),y=i(A,y,T),b===null?k=A:b.sibling=A,b=A,S=L}if(I.done)return r(m,S),Jt&&ca(m,T),k;if(S===null){for(;!I.done;T++,I=C.next())I=u(m,I.value,_),I!==null&&(y=i(I,y,T),b===null?k=I:b.sibling=I,b=I);return Jt&&ca(m,T),k}for(S=o(m,S);!I.done;T++,I=C.next())I=f(S,m,T,I.value,_),I!==null&&(e&&I.alternate!==null&&S.delete(I.key===null?T:I.key),y=i(I,y,T),b===null?k=I:b.sibling=I,b=I);return e&&S.forEach(function(P){return t(m,P)}),Jt&&ca(m,T),k}function v(m,y,C,_){if(typeof C=="object"&&C!==null&&C.type===ol&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case xu:e:{for(var k=C.key,b=y;b!==null;){if(b.key===k){if(k=C.type,k===ol){if(b.tag===7){r(m,b.sibling),y=n(b,C.props.children),y.return=m,m=y;break e}}else if(b.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===_i&&Ub(k)===b.type){r(m,b.sibling),y=n(b,C.props),y.ref=ws(m,b,C),y.return=m,m=y;break e}r(m,b);break}else t(m,b);b=b.sibling}C.type===ol?(y=ka(C.props.children,m.mode,_,C.key),y.return=m,m=y):(_=md(C.type,C.key,C.props,null,m.mode,_),_.ref=ws(m,y,C),_.return=m,m=_)}return a(m);case rl:e:{for(b=C.key;y!==null;){if(y.key===b)if(y.tag===4&&y.stateNode.containerInfo===C.containerInfo&&y.stateNode.implementation===C.implementation){r(m,y.sibling),y=n(y,C.children||[]),y.return=m,m=y;break e}else{r(m,y);break}else t(m,y);y=y.sibling}y=zp(C,m.mode,_),y.return=m,m=y}return a(m);case _i:return b=C._init,v(m,y,b(C._payload),_)}if(Rs(C))return p(m,y,C,_);if(gs(C))return g(m,y,C,_);Ru(m,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,y!==null&&y.tag===6?(r(m,y.sibling),y=n(y,C),y.return=m,m=y):(r(m,y),y=Gp(C,m.mode,_),y.return=m,m=y),a(m)):r(m,y)}return v}var Rl=nC(!0),iC=nC(!1),jc={},Mn=Qi(jc),mc=Qi(jc),vc=Qi(jc);function ya(e){if(e===jc)throw Error(be(174));return e}function u0(e,t){switch(Wt(vc,t),Wt(mc,e),Wt(Mn,jc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vg(t,e)}Xt(Mn),Wt(Mn,t)}function Il(){Xt(Mn),Xt(mc),Xt(vc)}function aC(e){ya(vc.current);var t=ya(Mn.current),r=Vg(t,e.type);t!==r&&(Wt(mc,e),Wt(Mn,r))}function d0(e){mc.current===e&&(Xt(Mn),Xt(mc))}var or=Qi(0);function qd(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pp=[];function h0(){for(var e=0;e<Pp.length;e++)Pp[e]._workInProgressVersionPrimary=null;Pp.length=0}var dd=si.ReactCurrentDispatcher,$p=si.ReactCurrentBatchConfig,Ia=0,nr=null,_r=null,Br=null,Yd=!1,Fs=!1,yc=0,bR=0;function Vr(){throw Error(be(321))}function f0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!vn(e[r],t[r]))return!1;return!0}function p0(e,t,r,o,n,i){if(Ia=i,nr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,dd.current=e===null||e.memoizedState===null?kR:CR,e=r(o,n),Fs){i=0;do{if(Fs=!1,yc=0,25<=i)throw Error(be(301));i+=1,Br=_r=null,t.updateQueue=null,dd.current=SR,e=r(o,n)}while(Fs)}if(dd.current=Xd,t=_r!==null&&_r.next!==null,Ia=0,Br=_r=nr=null,Yd=!1,t)throw Error(be(300));return e}function g0(){var e=yc!==0;return yc=0,e}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Br===null?nr.memoizedState=Br=e:Br=Br.next=e,Br}function Zo(){if(_r===null){var e=nr.alternate;e=e!==null?e.memoizedState:null}else e=_r.next;var t=Br===null?nr.memoizedState:Br.next;if(t!==null)Br=t,_r=e;else{if(e===null)throw Error(be(310));_r=e,e={memoizedState:_r.memoizedState,baseState:_r.baseState,baseQueue:_r.baseQueue,queue:_r.queue,next:null},Br===null?nr.memoizedState=Br=e:Br=Br.next=e}return Br}function bc(e,t){return typeof t=="function"?t(e):t}function Op(e){var t=Zo(),r=t.queue;if(r===null)throw Error(be(311));r.lastRenderedReducer=e;var o=_r,n=o.baseQueue,i=r.pending;if(i!==null){if(n!==null){var a=n.next;n.next=i.next,i.next=a}o.baseQueue=n=i,r.pending=null}if(n!==null){i=n.next,o=o.baseState;var c=a=null,l=null,d=i;do{var s=d.lane;if((Ia&s)===s)l!==null&&(l=l.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),o=d.hasEagerState?d.eagerState:e(o,d.action);else{var u={lane:s,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};l===null?(c=l=u,a=o):l=l.next=u,nr.lanes|=s,Pa|=s}d=d.next}while(d!==null&&d!==i);l===null?a=o:l.next=c,vn(o,t.memoizedState)||(mo=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=l,r.lastRenderedState=o}if(e=r.interleaved,e!==null){n=e;do i=n.lane,nr.lanes|=i,Pa|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Mp(e){var t=Zo(),r=t.queue;if(r===null)throw Error(be(311));r.lastRenderedReducer=e;var o=r.dispatch,n=r.pending,i=t.memoizedState;if(n!==null){r.pending=null;var a=n=n.next;do i=e(i,a.action),a=a.next;while(a!==n);vn(i,t.memoizedState)||(mo=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function lC(){}function sC(e,t){var r=nr,o=Zo(),n=t(),i=!vn(o.memoizedState,n);if(i&&(o.memoizedState=n,mo=!0),o=o.queue,m0(dC.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||Br!==null&&Br.memoizedState.tag&1){if(r.flags|=2048,wc(9,uC.bind(null,r,o,n,t),void 0,null),Ir===null)throw Error(be(349));Ia&30||cC(r,t,n)}return n}function cC(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=nr.updateQueue,t===null?(t={lastEffect:null,stores:null},nr.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function uC(e,t,r,o){t.value=r,t.getSnapshot=o,hC(t)&&fC(e)}function dC(e,t,r){return r(function(){hC(t)&&fC(e)})}function hC(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!vn(e,r)}catch{return!0}}function fC(e){var t=oi(e,1);t!==null&&gn(t,e,1,-1)}function Kb(e){var t=Rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bc,lastRenderedState:e},t.queue=e,e=e.dispatch=_R.bind(null,nr,e),[t.memoizedState,e]}function wc(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=nr.updateQueue,t===null?(t={lastEffect:null,stores:null},nr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function pC(){return Zo().memoizedState}function hd(e,t,r,o){var n=Rn();nr.flags|=e,n.memoizedState=wc(1|t,r,void 0,o===void 0?null:o)}function jh(e,t,r,o){var n=Zo();o=o===void 0?null:o;var i=void 0;if(_r!==null){var a=_r.memoizedState;if(i=a.destroy,o!==null&&f0(o,a.deps)){n.memoizedState=wc(t,r,i,o);return}}nr.flags|=e,n.memoizedState=wc(1|t,r,i,o)}function qb(e,t){return hd(8390656,8,e,t)}function m0(e,t){return jh(2048,8,e,t)}function gC(e,t){return jh(4,2,e,t)}function mC(e,t){return jh(4,4,e,t)}function vC(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function yC(e,t,r){return r=r!=null?r.concat([e]):null,jh(4,4,vC.bind(null,t,e),r)}function v0(){}function bC(e,t){var r=Zo();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&f0(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function wC(e,t){var r=Zo();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&f0(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function xC(e,t,r){return Ia&21?(vn(r,t)||(r=Ck(),nr.lanes|=r,Pa|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,mo=!0),e.memoizedState=r)}function wR(e,t){var r=Pt;Pt=r!==0&&4>r?r:4,e(!0);var o=$p.transition;$p.transition={};try{e(!1),t()}finally{Pt=r,$p.transition=o}}function _C(){return Zo().memoizedState}function xR(e,t,r){var o=Hi(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},kC(e))CC(t,r);else if(r=eC(e,t,r,o),r!==null){var n=io();gn(r,e,o,n),SC(r,t,o)}}function _R(e,t,r){var o=Hi(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(kC(e))CC(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,c=i(a,r);if(n.hasEagerState=!0,n.eagerState=c,vn(c,a)){var l=t.interleaved;l===null?(n.next=n,s0(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}finally{}r=eC(e,t,n,o),r!==null&&(n=io(),gn(r,e,o,n),SC(r,t,o))}}function kC(e){var t=e.alternate;return e===nr||t!==null&&t===nr}function CC(e,t){Fs=Yd=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function SC(e,t,r){if(r&4194240){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,qv(e,r)}}var Xd={readContext:Qo,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},kR={readContext:Qo,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:Qo,useEffect:qb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,hd(4194308,4,vC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return hd(4194308,4,e,t)},useInsertionEffect:function(e,t){return hd(4,2,e,t)},useMemo:function(e,t){var r=Rn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=Rn();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=xR.bind(null,nr,e),[o.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:Kb,useDebugValue:v0,useDeferredValue:function(e){return Rn().memoizedState=e},useTransition:function(){var e=Kb(!1),t=e[0];return e=wR.bind(null,e[1]),Rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=nr,n=Rn();if(Jt){if(r===void 0)throw Error(be(407));r=r()}else{if(r=t(),Ir===null)throw Error(be(349));Ia&30||cC(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,qb(dC.bind(null,o,i,e),[e]),o.flags|=2048,wc(9,uC.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=Rn(),t=Ir.identifierPrefix;if(Jt){var r=Zn,o=Qn;r=(o&~(1<<32-pn(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=yc++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=bR++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},CR={readContext:Qo,useCallback:bC,useContext:Qo,useEffect:m0,useImperativeHandle:yC,useInsertionEffect:gC,useLayoutEffect:mC,useMemo:wC,useReducer:Op,useRef:pC,useState:function(){return Op(bc)},useDebugValue:v0,useDeferredValue:function(e){var t=Zo();return xC(t,_r.memoizedState,e)},useTransition:function(){var e=Op(bc)[0],t=Zo().memoizedState;return[e,t]},useMutableSource:lC,useSyncExternalStore:sC,useId:_C,unstable_isNewReconciler:!1},SR={readContext:Qo,useCallback:bC,useContext:Qo,useEffect:m0,useImperativeHandle:yC,useInsertionEffect:gC,useLayoutEffect:mC,useMemo:wC,useReducer:Mp,useRef:pC,useState:function(){return Mp(bc)},useDebugValue:v0,useDeferredValue:function(e){var t=Zo();return _r===null?t.memoizedState=e:xC(t,_r.memoizedState,e)},useTransition:function(){var e=Mp(bc)[0],t=Zo().memoizedState;return[e,t]},useMutableSource:lC,useSyncExternalStore:sC,useId:_C,unstable_isNewReconciler:!1};function Pl(e,t){try{var r="",o=t;do r+=JD(o),o=o.return;while(o);var n=r}catch(i){n=`
    39  Error generating stack: `+i.message+`
    40  `+i.stack}return{value:e,source:t,stack:n,digest:null}}function Np(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function pm(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var TR=typeof WeakMap=="function"?WeakMap:Map;function TC(e,t,r){r=Jn(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){Zd||(Zd=!0,Cm=o),pm(e,t)},r}function EC(e,t,r){r=Jn(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var n=t.value;r.payload=function(){return o(n)},r.callback=function(){pm(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){pm(e,t),typeof o!="function"&&(Fi===null?Fi=new Set([this]):Fi.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function Yb(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new TR;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(r)||(n.add(r),e=GR.bind(null,e,t,r),t.then(e,e))}function Xb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Qb(e,t,r,o,n){return e.mode&1?(e.flags|=65536,e.lanes=n,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Jn(-1,1),t.tag=2,zi(r,t,1))),r.lanes|=1),e)}var ER=si.ReactCurrentOwner,mo=!1;function no(e,t,r,o){t.child=e===null?iC(t,null,r,o):Rl(t,e.child,r,o)}function Zb(e,t,r,o,n){r=r.render;var i=t.ref;return _l(t,n),o=p0(e,t,r,o,i,n),r=g0(),e!==null&&!mo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,ni(e,t,n)):(Jt&&r&&r0(t),t.flags|=1,no(e,t,o,n),t.child)}function Jb(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!S0(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,LC(e,t,i,o,n)):(e=md(r.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&n)){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:hc,r(a,o)&&e.ref===t.ref)return ni(e,t,n)}return t.flags|=1,e=Wi(i,o),e.ref=t.ref,e.return=t,t.child=e}function LC(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(hc(i,o)&&e.ref===t.ref)if(mo=!1,t.pendingProps=o=i,(e.lanes&n)!==0)e.flags&131072&&(mo=!0);else return t.lanes=e.lanes,ni(e,t,n)}return gm(e,t,r,o,n)}function AC(e,t,r){var o=t.pendingProps,n=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Wt(fl,Eo),Eo|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Wt(fl,Eo),Eo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,Wt(fl,Eo),Eo|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,Wt(fl,Eo),Eo|=o;return no(e,t,n,r),t.child}function BC(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function gm(e,t,r,o,n){var i=bo(r)?Da:Qr.current;return i=Bl(t,i),_l(t,n),r=p0(e,t,r,o,i,n),o=g0(),e!==null&&!mo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,ni(e,t,n)):(Jt&&o&&r0(t),t.flags|=1,no(e,t,r,n),t.child)}function ew(e,t,r,o,n){if(bo(r)){var i=!0;Fd(t)}else i=!1;if(_l(t,n),t.stateNode===null)fd(e,t),oC(t,r,o),fm(t,r,o,n),o=!0;else if(e===null){var a=t.stateNode,c=t.memoizedProps;a.props=c;var l=a.context,d=r.contextType;typeof d=="object"&&d!==null?d=Qo(d):(d=bo(r)?Da:Qr.current,d=Bl(t,d));var s=r.getDerivedStateFromProps,u=typeof s=="function"||typeof a.getSnapshotBeforeUpdate=="function";u||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(c!==o||l!==d)&&Vb(t,a,o,d),ki=!1;var h=t.memoizedState;a.state=h,Kd(t,o,a,n),l=t.memoizedState,c!==o||h!==l||yo.current||ki?(typeof s=="function"&&(hm(t,r,s,o),l=t.memoizedState),(c=ki||Wb(t,r,c,o,h,l,d))?(u||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=l),a.props=o,a.state=l,a.context=d,o=c):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,tC(e,t),c=t.memoizedProps,d=t.type===t.elementType?c:ln(t.type,c),a.props=d,u=t.pendingProps,h=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=Qo(l):(l=bo(r)?Da:Qr.current,l=Bl(t,l));var f=r.getDerivedStateFromProps;(s=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(c!==u||h!==l)&&Vb(t,a,o,l),ki=!1,h=t.memoizedState,a.state=h,Kd(t,o,a,n);var p=t.memoizedState;c!==u||h!==p||yo.current||ki?(typeof f=="function"&&(hm(t,r,f,o),p=t.memoizedState),(d=ki||Wb(t,r,d,o,h,p,l)||!1)?(s||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,p,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,p,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||c===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=p),a.props=o,a.state=p,a.context=l,o=d):(typeof a.componentDidUpdate!="function"||c===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),o=!1)}return mm(e,t,r,o,i,n)}function mm(e,t,r,o,n,i){BC(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&jb(t,r,!1),ni(e,t,i);o=t.stateNode,ER.current=t;var c=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=Rl(t,e.child,null,i),t.child=Rl(t,null,c,i)):no(e,t,c,i),t.memoizedState=o.state,n&&jb(t,r,!0),t.child}function DC(e){var t=e.stateNode;t.pendingContext?Nb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Nb(e,t.context,!1),u0(e,t.containerInfo)}function tw(e,t,r,o,n){return Dl(),n0(n),t.flags|=256,no(e,t,r,o),t.child}var vm={dehydrated:null,treeContext:null,retryLane:0};function ym(e){return{baseLanes:e,cachePool:null,transitions:null}}function RC(e,t,r){var o=t.pendingProps,n=or.current,i=!1,a=(t.flags&128)!==0,c;if((c=a)||(c=e!==null&&e.memoizedState===null?!1:(n&2)!==0),c?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),Wt(or,n&1),e===null)return um(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=o.children,e=o.fallback,i?(o=t.mode,i=t.child,a={mode:"hidden",children:a},!(o&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Fh(a,o,0,null),e=ka(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ym(r),t.memoizedState=vm,e):y0(t,a));if(n=e.memoizedState,n!==null&&(c=n.dehydrated,c!==null))return LR(e,t,a,o,c,n,r);if(i){i=o.fallback,a=t.mode,n=e.child,c=n.sibling;var l={mode:"hidden",children:o.children};return!(a&1)&&t.child!==n?(o=t.child,o.childLanes=0,o.pendingProps=l,t.deletions=null):(o=Wi(n,l),o.subtreeFlags=n.subtreeFlags&14680064),c!==null?i=Wi(c,i):(i=ka(i,a,r,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,a=e.child.memoizedState,a=a===null?ym(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=vm,o}return i=e.child,e=i.sibling,o=Wi(i,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function y0(e,t){return t=Fh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Iu(e,t,r,o){return o!==null&&n0(o),Rl(t,e.child,null,r),e=y0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function LR(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=Np(Error(be(422))),Iu(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=Fh({mode:"visible",children:o.children},n,0,null),i=ka(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,t.mode&1&&Rl(t,e.child,null,a),t.child.memoizedState=ym(a),t.memoizedState=vm,i);if(!(t.mode&1))return Iu(e,t,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var c=o.dgst;return o=c,i=Error(be(419)),o=Np(i,o,void 0),Iu(e,t,a,o)}if(c=(a&e.childLanes)!==0,mo||c){if(o=Ir,o!==null){switch(a&-a){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=n&(o.suspendedLanes|a)?0:n,n!==0&&n!==i.retryLane&&(i.retryLane=n,oi(e,n),gn(o,e,n,-1))}return C0(),o=Np(Error(be(421))),Iu(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=zR.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,Lo=Gi(n.nextSibling),Do=t,Jt=!0,un=null,e!==null&&(Wo[Vo++]=Qn,Wo[Vo++]=Zn,Wo[Vo++]=Ra,Qn=e.id,Zn=e.overflow,Ra=t),t=y0(t,o.children),t.flags|=4096,t)}function rw(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),dm(e.return,t,r)}function jp(e,t,r,o,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=n)}function IC(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(no(e,t,o.children,r),o=or.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rw(e,r,t);else if(e.tag===19)rw(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Wt(or,o),!(t.mode&1))t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&qd(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),jp(t,!1,n,r,i);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&qd(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}jp(t,!0,r,null,i);break;case"together":jp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ni(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Pa|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(be(153));if(t.child!==null){for(e=t.child,r=Wi(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Wi(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function AR(e,t,r){switch(t.tag){case 3:DC(t),Dl();break;case 5:aC(t);break;case 1:bo(t.type)&&Fd(t);break;case 4:u0(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;Wt(Vd,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Wt(or,or.current&1),t.flags|=128,null):r&t.child.childLanes?RC(e,t,r):(Wt(or,or.current&1),e=ni(e,t,r),e!==null?e.sibling:null);Wt(or,or.current&1);break;case 19:if(o=(r&t.childLanes)!==0,e.flags&128){if(o)return IC(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Wt(or,or.current),o)break;return null;case 22:case 23:return t.lanes=0,AC(e,t,r)}return ni(e,t,r)}var PC,bm,$C,OC;PC=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};bm=function(){};$C=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,ya(Mn.current);var i=null;switch(r){case"input":n=zg(e,n),o=zg(e,o),i=[];break;case"select":n=ir({},n,{value:void 0}),o=ir({},o,{value:void 0}),i=[];break;case"textarea":n=Wg(e,n),o=Wg(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Gd)}Ug(r,o);var a;r=null;for(d in n)if(!o.hasOwnProperty(d)&&n.hasOwnProperty(d)&&n[d]!=null)if(d==="style"){var c=n[d];for(a in c)c.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(ic.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in o){var l=o[d];if(c=n!=null?n[d]:void 0,o.hasOwnProperty(d)&&l!==c&&(l!=null||c!=null))if(d==="style")if(c){for(a in c)!c.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&c[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(d,r)),r=l;else d==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(i=i||[]).push(d,l)):d==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(d,""+l):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(ic.hasOwnProperty(d)?(l!=null&&d==="onScroll"&&Vt("scroll",e),i||c===l||(i=[])):(i=i||[]).push(d,l))}r&&(i=i||[]).push("style",r);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};OC=function(e,t,r,o){r!==o&&(t.flags|=4)};function xs(e,t){if(!Jt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ur(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags&14680064,o|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function BR(e,t,r){var o=t.pendingProps;switch(o0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ur(t),null;case 1:return bo(t.type)&&zd(),Ur(t),null;case 3:return o=t.stateNode,Il(),Xt(yo),Xt(Qr),h0(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Du(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,un!==null&&(Em(un),un=null))),bm(e,t),Ur(t),null;case 5:d0(t);var n=ya(vc.current);if(r=t.type,e!==null&&t.stateNode!=null)$C(e,t,r,o,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(be(166));return Ur(t),null}if(e=ya(Mn.current),Du(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[Pn]=t,o[gc]=i,e=(t.mode&1)!==0,r){case"dialog":Vt("cancel",o),Vt("close",o);break;case"iframe":case"object":case"embed":Vt("load",o);break;case"video":case"audio":for(n=0;n<Ps.length;n++)Vt(Ps[n],o);break;case"source":Vt("error",o);break;case"img":case"image":case"link":Vt("error",o),Vt("load",o);break;case"details":Vt("toggle",o);break;case"input":db(o,i),Vt("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},Vt("invalid",o);break;case"textarea":fb(o,i),Vt("invalid",o)}Ug(r,i),n=null;for(var a in i)if(i.hasOwnProperty(a)){var c=i[a];a==="children"?typeof c=="string"?o.textContent!==c&&(i.suppressHydrationWarning!==!0&&Bu(o.textContent,c,e),n=["children",c]):typeof c=="number"&&o.textContent!==""+c&&(i.suppressHydrationWarning!==!0&&Bu(o.textContent,c,e),n=["children",""+c]):ic.hasOwnProperty(a)&&c!=null&&a==="onScroll"&&Vt("scroll",o)}switch(r){case"input":_u(o),hb(o,i,!0);break;case"textarea":_u(o),pb(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=Gd)}o=n,t.updateQueue=o,o!==null&&(t.flags|=4)}else{a=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ck(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(r,{is:o.is}):(e=a.createElement(r),r==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,r),e[Pn]=t,e[gc]=o,PC(e,t,!1,!1),t.stateNode=e;e:{switch(a=Kg(r,o),r){case"dialog":Vt("cancel",e),Vt("close",e),n=o;break;case"iframe":case"object":case"embed":Vt("load",e),n=o;break;case"video":case"audio":for(n=0;n<Ps.length;n++)Vt(Ps[n],e);n=o;break;case"source":Vt("error",e),n=o;break;case"img":case"image":case"link":Vt("error",e),Vt("load",e),n=o;break;case"details":Vt("toggle",e),n=o;break;case"input":db(e,o),n=zg(e,o),Vt("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=ir({},o,{value:void 0}),Vt("invalid",e);break;case"textarea":fb(e,o),n=Wg(e,o),Vt("invalid",e);break;default:n=o}Ug(r,n),c=n;for(i in c)if(c.hasOwnProperty(i)){var l=c[i];i==="style"?hk(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&uk(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&ac(e,l):typeof l=="number"&&ac(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ic.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Vt("scroll",e):l!=null&&Fv(e,i,l,a))}switch(r){case"input":_u(e),hb(e,o,!1);break;case"textarea":_u(e),pb(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Ui(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?yl(e,!!o.multiple,i,!1):o.defaultValue!=null&&yl(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=Gd)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ur(t),null;case 6:if(e&&t.stateNode!=null)OC(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(be(166));if(r=ya(vc.current),ya(Mn.current),Du(t)){if(o=t.stateNode,r=t.memoizedProps,o[Pn]=t,(i=o.nodeValue!==r)&&(e=Do,e!==null))switch(e.tag){case 3:Bu(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Bu(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Pn]=t,t.stateNode=o}return Ur(t),null;case 13:if(Xt(or),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Jt&&Lo!==null&&t.mode&1&&!(t.flags&128))Jk(),Dl(),t.flags|=98560,i=!1;else if(i=Du(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(be(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(be(317));i[Pn]=t}else Dl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ur(t),i=!1}else un!==null&&(Em(un),un=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,t.mode&1&&(e===null||or.current&1?Sr===0&&(Sr=3):C0())),t.updateQueue!==null&&(t.flags|=4),Ur(t),null);case 4:return Il(),bm(e,t),e===null&&fc(t.stateNode.containerInfo),Ur(t),null;case 10:return l0(t.type._context),Ur(t),null;case 17:return bo(t.type)&&zd(),Ur(t),null;case 19:if(Xt(or),i=t.memoizedState,i===null)return Ur(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)xs(i,!1);else{if(Sr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=qd(e),a!==null){for(t.flags|=128,xs(i,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)i=r,e=o,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Wt(or,or.current&1|2),t.child}e=e.sibling}i.tail!==null&&fr()>$l&&(t.flags|=128,o=!0,xs(i,!1),t.lanes=4194304)}else{if(!o)if(e=qd(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),xs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Jt)return Ur(t),null}else 2*fr()-i.renderingStartTime>$l&&r!==1073741824&&(t.flags|=128,o=!0,xs(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=fr(),t.sibling=null,r=or.current,Wt(or,o?r&1|2:r&1),t):(Ur(t),null);case 22:case 23:return k0(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?Eo&1073741824&&(Ur(t),t.subtreeFlags&6&&(t.flags|=8192)):Ur(t),null;case 24:return null;case 25:return null}throw Error(be(156,t.tag))}function DR(e,t){switch(o0(t),t.tag){case 1:return bo(t.type)&&zd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Il(),Xt(yo),Xt(Qr),h0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return d0(t),null;case 13:if(Xt(or),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(be(340));Dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xt(or),null;case 4:return Il(),null;case 10:return l0(t.type._context),null;case 22:case 23:return k0(),null;case 24:return null;default:return null}}var Pu=!1,Kr=!1,RR=typeof WeakSet=="function"?WeakSet:Set,Te=null;function hl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){ar(e,t,o)}else r.current=null}function wm(e,t,r){try{r()}catch(o){ar(e,t,o)}}var ow=!1;function IR(e,t){if(om=Md,e=Gk(),t0(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,c=-1,l=-1,d=0,s=0,u=e,h=null;t:for(;;){for(var f;u!==r||n!==0&&u.nodeType!==3||(c=a+n),u!==i||o!==0&&u.nodeType!==3||(l=a+o),u.nodeType===3&&(a+=u.nodeValue.length),(f=u.firstChild)!==null;)h=u,u=f;for(;;){if(u===e)break t;if(h===r&&++d===n&&(c=a),h===i&&++s===o&&(l=a),(f=u.nextSibling)!==null)break;u=h,h=u.parentNode}u=f}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(nm={focusedElem:e,selectionRange:r},Md=!1,Te=t;Te!==null;)if(t=Te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Te=e;else for(;Te!==null;){t=Te;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,v=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:ln(t.type,g),v);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(be(163))}}catch(_){ar(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Te=e;break}Te=t.return}return p=ow,ow=!1,p}function Hs(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,i!==void 0&&wm(t,r,i)}n=n.next}while(n!==o)}}function Gh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function xm(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function MC(e){var t=e.alternate;t!==null&&(e.alternate=null,MC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pn],delete t[gc],delete t[lm],delete t[gR],delete t[mR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function NC(e){return e.tag===5||e.tag===3||e.tag===4}function nw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||NC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _m(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Gd));else if(o!==4&&(e=e.child,e!==null))for(_m(e,t,r),e=e.sibling;e!==null;)_m(e,t,r),e=e.sibling}function km(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(km(e,t,r),e=e.sibling;e!==null;)km(e,t,r),e=e.sibling}var Mr=null,sn=!1;function fi(e,t,r){for(r=r.child;r!==null;)jC(e,t,r),r=r.sibling}function jC(e,t,r){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(Rh,r)}catch{}switch(r.tag){case 5:Kr||hl(r,t);case 6:var o=Mr,n=sn;Mr=null,fi(e,t,r),Mr=o,sn=n,Mr!==null&&(sn?(e=Mr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Mr.removeChild(r.stateNode));break;case 18:Mr!==null&&(sn?(e=Mr,r=r.stateNode,e.nodeType===8?Rp(e.parentNode,r):e.nodeType===1&&Rp(e,r),uc(e)):Rp(Mr,r.stateNode));break;case 4:o=Mr,n=sn,Mr=r.stateNode.containerInfo,sn=!0,fi(e,t,r),Mr=o,sn=n;break;case 0:case 11:case 14:case 15:if(!Kr&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&wm(r,t,a),n=n.next}while(n!==o)}fi(e,t,r);break;case 1:if(!Kr&&(hl(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(c){ar(r,t,c)}fi(e,t,r);break;case 21:fi(e,t,r);break;case 22:r.mode&1?(Kr=(o=Kr)||r.memoizedState!==null,fi(e,t,r),Kr=o):fi(e,t,r);break;default:fi(e,t,r)}}function iw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new RR),t.forEach(function(o){var n=FR.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function nn(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var n=r[o];try{var i=e,a=t,c=a;e:for(;c!==null;){switch(c.tag){case 5:Mr=c.stateNode,sn=!1;break e;case 3:Mr=c.stateNode.containerInfo,sn=!0;break e;case 4:Mr=c.stateNode.containerInfo,sn=!0;break e}c=c.return}if(Mr===null)throw Error(be(160));jC(i,a,n),Mr=null,sn=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(d){ar(n,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)GC(t,e),t=t.sibling}function GC(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(nn(t,e),Ln(e),o&4){try{Hs(3,e,e.return),Gh(3,e)}catch(g){ar(e,e.return,g)}try{Hs(5,e,e.return)}catch(g){ar(e,e.return,g)}}break;case 1:nn(t,e),Ln(e),o&512&&r!==null&&hl(r,r.return);break;case 5:if(nn(t,e),Ln(e),o&512&&r!==null&&hl(r,r.return),e.flags&32){var n=e.stateNode;try{ac(n,"")}catch(g){ar(e,e.return,g)}}if(o&4&&(n=e.stateNode,n!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c==="input"&&i.type==="radio"&&i.name!=null&&lk(n,i),Kg(c,a);var d=Kg(c,i);for(a=0;a<l.length;a+=2){var s=l[a],u=l[a+1];s==="style"?hk(n,u):s==="dangerouslySetInnerHTML"?uk(n,u):s==="children"?ac(n,u):Fv(n,s,u,d)}switch(c){case"input":Fg(n,i);break;case"textarea":sk(n,i);break;case"select":var h=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?yl(n,!!i.multiple,f,!1):h!==!!i.multiple&&(i.defaultValue!=null?yl(n,!!i.multiple,i.defaultValue,!0):yl(n,!!i.multiple,i.multiple?[]:"",!1))}n[gc]=i}catch(g){ar(e,e.return,g)}}break;case 6:if(nn(t,e),Ln(e),o&4){if(e.stateNode===null)throw Error(be(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(g){ar(e,e.return,g)}}break;case 3:if(nn(t,e),Ln(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{uc(t.containerInfo)}catch(g){ar(e,e.return,g)}break;case 4:nn(t,e),Ln(e);break;case 13:nn(t,e),Ln(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(x0=fr())),o&4&&iw(e);break;case 22:if(s=r!==null&&r.memoizedState!==null,e.mode&1?(Kr=(d=Kr)||s,nn(t,e),Kr=d):nn(t,e),Ln(e),o&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!s&&e.mode&1)for(Te=e,s=e.child;s!==null;){for(u=Te=s;Te!==null;){switch(h=Te,f=h.child,h.tag){case 0:case 11:case 14:case 15:Hs(4,h,h.return);break;case 1:hl(h,h.return);var p=h.stateNode;if(typeof p.componentWillUnmount=="function"){o=h,r=h.return;try{t=o,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(g){ar(o,r,g)}}break;case 5:hl(h,h.return);break;case 22:if(h.memoizedState!==null){lw(u);continue}}f!==null?(f.return=h,Te=f):lw(u)}s=s.sibling}e:for(s=null,u=e;;){if(u.tag===5){if(s===null){s=u;try{n=u.stateNode,d?(i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(c=u.stateNode,l=u.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,c.style.display=dk("display",a))}catch(g){ar(e,e.return,g)}}}else if(u.tag===6){if(s===null)try{u.stateNode.nodeValue=d?"":u.memoizedProps}catch(g){ar(e,e.return,g)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break e;for(;u.sibling===null;){if(u.return===null||u.return===e)break e;s===u&&(s=null),u=u.return}s===u&&(s=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:nn(t,e),Ln(e),o&4&&iw(e);break;case 21:break;default:nn(t,e),Ln(e)}}function Ln(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(NC(r)){var o=r;break e}r=r.return}throw Error(be(160))}switch(o.tag){case 5:var n=o.stateNode;o.flags&32&&(ac(n,""),o.flags&=-33);var i=nw(e);km(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,c=nw(e);_m(e,c,a);break;default:throw Error(be(161))}}catch(l){ar(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function PR(e,t,r){Te=e,zC(e)}function zC(e,t,r){for(var o=(e.mode&1)!==0;Te!==null;){var n=Te,i=n.child;if(n.tag===22&&o){var a=n.memoizedState!==null||Pu;if(!a){var c=n.alternate,l=c!==null&&c.memoizedState!==null||Kr;c=Pu;var d=Kr;if(Pu=a,(Kr=l)&&!d)for(Te=n;Te!==null;)a=Te,l=a.child,a.tag===22&&a.memoizedState!==null?sw(n):l!==null?(l.return=a,Te=l):sw(n);for(;i!==null;)Te=i,zC(i),i=i.sibling;Te=n,Pu=c,Kr=d}aw(e)}else n.subtreeFlags&8772&&i!==null?(i.return=n,Te=i):aw(e)}}function aw(e){for(;Te!==null;){var t=Te;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Kr||Gh(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Kr)if(r===null)o.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:ln(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Hb(t,i,o);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Hb(t,a,r)}break;case 5:var c=t.stateNode;if(r===null&&t.flags&4){r=c;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var s=d.memoizedState;if(s!==null){var u=s.dehydrated;u!==null&&uc(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(be(163))}Kr||t.flags&512&&xm(t)}catch(h){ar(t,t.return,h)}}if(t===e){Te=null;break}if(r=t.sibling,r!==null){r.return=t.return,Te=r;break}Te=t.return}}function lw(e){for(;Te!==null;){var t=Te;if(t===e){Te=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Te=r;break}Te=t.return}}function sw(e){for(;Te!==null;){var t=Te;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Gh(4,t)}catch(l){ar(t,r,l)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(l){ar(t,n,l)}}var i=t.return;try{xm(t)}catch(l){ar(t,i,l)}break;case 5:var a=t.return;try{xm(t)}catch(l){ar(t,a,l)}}}catch(l){ar(t,t.return,l)}if(t===e){Te=null;break}var c=t.sibling;if(c!==null){c.return=t.return,Te=c;break}Te=t.return}}var $R=Math.ceil,Qd=si.ReactCurrentDispatcher,b0=si.ReactCurrentOwner,qo=si.ReactCurrentBatchConfig,yt=0,Ir=null,yr=null,jr=0,Eo=0,fl=Qi(0),Sr=0,xc=null,Pa=0,zh=0,w0=0,Ws=null,po=null,x0=0,$l=1/0,Kn=null,Zd=!1,Cm=null,Fi=null,$u=!1,Di=null,Jd=0,Vs=0,Sm=null,pd=-1,gd=0;function io(){return yt&6?fr():pd!==-1?pd:pd=fr()}function Hi(e){return e.mode&1?yt&2&&jr!==0?jr&-jr:yR.transition!==null?(gd===0&&(gd=Ck()),gd):(e=Pt,e!==0||(e=window.event,e=e===void 0?16:Dk(e.type)),e):1}function gn(e,t,r,o){if(50<Vs)throw Vs=0,Sm=null,Error(be(185));Oc(e,r,o),(!(yt&2)||e!==Ir)&&(e===Ir&&(!(yt&2)&&(zh|=r),Sr===4&&Li(e,jr)),wo(e,o),r===1&&yt===0&&!(t.mode&1)&&($l=fr()+500,Mh&&Zi()))}function wo(e,t){var r=e.callbackNode;y2(e,t);var o=Od(e,e===Ir?jr:0);if(o===0)r!==null&&vb(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&vb(r),t===1)e.tag===0?vR(cw.bind(null,e)):Xk(cw.bind(null,e)),fR(function(){!(yt&6)&&Zi()}),r=null;else{switch(Sk(o)){case 1:r=Kv;break;case 4:r=_k;break;case 16:r=$d;break;case 536870912:r=kk;break;default:r=$d}r=YC(r,FC.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function FC(e,t){if(pd=-1,gd=0,yt&6)throw Error(be(327));var r=e.callbackNode;if(kl()&&e.callbackNode!==r)return null;var o=Od(e,e===Ir?jr:0);if(o===0)return null;if(o&30||o&e.expiredLanes||t)t=eh(e,o);else{t=o;var n=yt;yt|=2;var i=WC();(Ir!==e||jr!==t)&&(Kn=null,$l=fr()+500,_a(e,t));do try{NR();break}catch(c){HC(e,c)}while(!0);a0(),Qd.current=i,yt=n,yr!==null?t=0:(Ir=null,jr=0,t=Sr)}if(t!==0){if(t===2&&(n=Zg(e),n!==0&&(o=n,t=Tm(e,n))),t===1)throw r=xc,_a(e,0),Li(e,o),wo(e,fr()),r;if(t===6)Li(e,o);else{if(n=e.current.alternate,!(o&30)&&!OR(n)&&(t=eh(e,o),t===2&&(i=Zg(e),i!==0&&(o=i,t=Tm(e,i))),t===1))throw r=xc,_a(e,0),Li(e,o),wo(e,fr()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(be(345));case 2:ua(e,po,Kn);break;case 3:if(Li(e,o),(o&130023424)===o&&(t=x0+500-fr(),10<t)){if(Od(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){io(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=am(ua.bind(null,e,po,Kn),t);break}ua(e,po,Kn);break;case 4:if(Li(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-pn(o);i=1<<a,a=t[a],a>n&&(n=a),o&=~i}if(o=n,o=fr()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*$R(o/1960))-o,10<o){e.timeoutHandle=am(ua.bind(null,e,po,Kn),o);break}ua(e,po,Kn);break;case 5:ua(e,po,Kn);break;default:throw Error(be(329))}}}return wo(e,fr()),e.callbackNode===r?FC.bind(null,e):null}function Tm(e,t){var r=Ws;return e.current.memoizedState.isDehydrated&&(_a(e,t).flags|=256),e=eh(e,t),e!==2&&(t=po,po=r,t!==null&&Em(t)),e}function Em(e){po===null?po=e:po.push.apply(po,e)}function OR(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var n=r[o],i=n.getSnapshot;n=n.value;try{if(!vn(i(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Li(e,t){for(t&=~w0,t&=~zh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-pn(t),o=1<<r;e[r]=-1,t&=~o}}function cw(e){if(yt&6)throw Error(be(327));kl();var t=Od(e,0);if(!(t&1))return wo(e,fr()),null;var r=eh(e,t);if(e.tag!==0&&r===2){var o=Zg(e);o!==0&&(t=o,r=Tm(e,o))}if(r===1)throw r=xc,_a(e,0),Li(e,t),wo(e,fr()),r;if(r===6)throw Error(be(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ua(e,po,Kn),wo(e,fr()),null}function _0(e,t){var r=yt;yt|=1;try{return e(t)}finally{yt=r,yt===0&&($l=fr()+500,Mh&&Zi())}}function $a(e){Di!==null&&Di.tag===0&&!(yt&6)&&kl();var t=yt;yt|=1;var r=qo.transition,o=Pt;try{if(qo.transition=null,Pt=1,e)return e()}finally{Pt=o,qo.transition=r,yt=t,!(yt&6)&&Zi()}}function k0(){Eo=fl.current,Xt(fl)}function _a(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,hR(r)),yr!==null)for(r=yr.return;r!==null;){var o=r;switch(o0(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&zd();break;case 3:Il(),Xt(yo),Xt(Qr),h0();break;case 5:d0(o);break;case 4:Il();break;case 13:Xt(or);break;case 19:Xt(or);break;case 10:l0(o.type._context);break;case 22:case 23:k0()}r=r.return}if(Ir=e,yr=e=Wi(e.current,null),jr=Eo=t,Sr=0,xc=null,w0=zh=Pa=0,po=Ws=null,va!==null){for(t=0;t<va.length;t++)if(r=va[t],o=r.interleaved,o!==null){r.interleaved=null;var n=o.next,i=r.pending;if(i!==null){var a=i.next;i.next=n,o.next=a}r.pending=o}va=null}return e}function HC(e,t){do{var r=yr;try{if(a0(),dd.current=Xd,Yd){for(var o=nr.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}Yd=!1}if(Ia=0,Br=_r=nr=null,Fs=!1,yc=0,b0.current=null,r===null||r.return===null){Sr=1,xc=t,yr=null;break}e:{var i=e,a=r.return,c=r,l=t;if(t=jr,c.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=l,s=c,u=s.tag;if(!(s.mode&1)&&(u===0||u===11||u===15)){var h=s.alternate;h?(s.updateQueue=h.updateQueue,s.memoizedState=h.memoizedState,s.lanes=h.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=Xb(a);if(f!==null){f.flags&=-257,Qb(f,a,c,i,t),f.mode&1&&Yb(i,d,t),t=f,l=d;var p=t.updateQueue;if(p===null){var g=new Set;g.add(l),t.updateQueue=g}else p.add(l);break e}else{if(!(t&1)){Yb(i,d,t),C0();break e}l=Error(be(426))}}else if(Jt&&c.mode&1){var v=Xb(a);if(v!==null){!(v.flags&65536)&&(v.flags|=256),Qb(v,a,c,i,t),n0(Pl(l,c));break e}}i=l=Pl(l,c),Sr!==4&&(Sr=2),Ws===null?Ws=[i]:Ws.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=TC(i,l,t);Fb(i,m);break e;case 1:c=l;var y=i.type,C=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Fi===null||!Fi.has(C)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=EC(i,c,t);Fb(i,_);break e}}i=i.return}while(i!==null)}UC(r)}catch(k){t=k,yr===r&&r!==null&&(yr=r=r.return);continue}break}while(!0)}function WC(){var e=Qd.current;return Qd.current=Xd,e===null?Xd:e}function C0(){(Sr===0||Sr===3||Sr===2)&&(Sr=4),Ir===null||!(Pa&268435455)&&!(zh&268435455)||Li(Ir,jr)}function eh(e,t){var r=yt;yt|=2;var o=WC();(Ir!==e||jr!==t)&&(Kn=null,_a(e,t));do try{MR();break}catch(n){HC(e,n)}while(!0);if(a0(),yt=r,Qd.current=o,yr!==null)throw Error(be(261));return Ir=null,jr=0,Sr}function MR(){for(;yr!==null;)VC(yr)}function NR(){for(;yr!==null&&!c2();)VC(yr)}function VC(e){var t=qC(e.alternate,e,Eo);e.memoizedProps=e.pendingProps,t===null?UC(e):yr=t,b0.current=null}function UC(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=DR(r,t),r!==null){r.flags&=32767,yr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Sr=6,yr=null;return}}else if(r=BR(r,t,Eo),r!==null){yr=r;return}if(t=t.sibling,t!==null){yr=t;return}yr=t=e}while(t!==null);Sr===0&&(Sr=5)}function ua(e,t,r){var o=Pt,n=qo.transition;try{qo.transition=null,Pt=1,jR(e,t,r,o)}finally{qo.transition=n,Pt=o}return null}function jR(e,t,r,o){do kl();while(Di!==null);if(yt&6)throw Error(be(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(be(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(b2(e,i),e===Ir&&(yr=Ir=null,jr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||$u||($u=!0,YC($d,function(){return kl(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=qo.transition,qo.transition=null;var a=Pt;Pt=1;var c=yt;yt|=4,b0.current=null,IR(e,r),GC(r,e),iR(nm),Md=!!om,nm=om=null,e.current=r,PR(r),u2(),yt=c,Pt=a,qo.transition=i}else e.current=r;if($u&&($u=!1,Di=e,Jd=n),i=e.pendingLanes,i===0&&(Fi=null),f2(r.stateNode),wo(e,fr()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],o(n.value,{componentStack:n.stack,digest:n.digest});if(Zd)throw Zd=!1,e=Cm,Cm=null,e;return Jd&1&&e.tag!==0&&kl(),i=e.pendingLanes,i&1?e===Sm?Vs++:(Vs=0,Sm=e):Vs=0,Zi(),null}function kl(){if(Di!==null){var e=Sk(Jd),t=qo.transition,r=Pt;try{if(qo.transition=null,Pt=16>e?16:e,Di===null)var o=!1;else{if(e=Di,Di=null,Jd=0,yt&6)throw Error(be(331));var n=yt;for(yt|=4,Te=e.current;Te!==null;){var i=Te,a=i.child;if(Te.flags&16){var c=i.deletions;if(c!==null){for(var l=0;l<c.length;l++){var d=c[l];for(Te=d;Te!==null;){var s=Te;switch(s.tag){case 0:case 11:case 15:Hs(8,s,i)}var u=s.child;if(u!==null)u.return=s,Te=u;else for(;Te!==null;){s=Te;var h=s.sibling,f=s.return;if(MC(s),s===d){Te=null;break}if(h!==null){h.return=f,Te=h;break}Te=f}}}var p=i.alternate;if(p!==null){var g=p.child;if(g!==null){p.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(g!==null)}}Te=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,Te=a;else e:for(;Te!==null;){if(i=Te,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Hs(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,Te=m;break e}Te=i.return}}var y=e.current;for(Te=y;Te!==null;){a=Te;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,Te=C;else e:for(a=y;Te!==null;){if(c=Te,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Gh(9,c)}}catch(k){ar(c,c.return,k)}if(c===a){Te=null;break e}var _=c.sibling;if(_!==null){_.return=c.return,Te=_;break e}Te=c.return}}if(yt=n,Zi(),On&&typeof On.onPostCommitFiberRoot=="function")try{On.onPostCommitFiberRoot(Rh,e)}catch{}o=!0}return o}finally{Pt=r,qo.transition=t}}return!1}function uw(e,t,r){t=Pl(r,t),t=TC(e,t,1),e=zi(e,t,1),t=io(),e!==null&&(Oc(e,1,t),wo(e,t))}function ar(e,t,r){if(e.tag===3)uw(e,e,r);else for(;t!==null;){if(t.tag===3){uw(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Fi===null||!Fi.has(o))){e=Pl(r,e),e=EC(t,e,1),t=zi(t,e,1),e=io(),t!==null&&(Oc(t,1,e),wo(t,e));break}}t=t.return}}function GR(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=io(),e.pingedLanes|=e.suspendedLanes&r,Ir===e&&(jr&r)===r&&(Sr===4||Sr===3&&(jr&130023424)===jr&&500>fr()-x0?_a(e,0):w0|=r),wo(e,t)}function KC(e,t){t===0&&(e.mode&1?(t=Su,Su<<=1,!(Su&130023424)&&(Su=4194304)):t=1);var r=io();e=oi(e,t),e!==null&&(Oc(e,t,r),wo(e,r))}function zR(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),KC(e,r)}function FR(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(be(314))}o!==null&&o.delete(t),KC(e,r)}var qC;qC=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||yo.current)mo=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return mo=!1,AR(e,t,r);mo=!!(e.flags&131072)}else mo=!1,Jt&&t.flags&1048576&&Qk(t,Wd,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;fd(e,t),e=t.pendingProps;var n=Bl(t,Qr.current);_l(t,r),n=p0(null,t,o,e,n,r);var i=g0();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bo(o)?(i=!0,Fd(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,c0(t),n.updater=Nh,t.stateNode=n,n._reactInternals=t,fm(t,o,e,r),t=mm(null,t,o,!0,i,r)):(t.tag=0,Jt&&i&&r0(t),no(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(fd(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=WR(o),e=ln(o,e),n){case 0:t=gm(null,t,o,e,r);break e;case 1:t=ew(null,t,o,e,r);break e;case 11:t=Zb(null,t,o,e,r);break e;case 14:t=Jb(null,t,o,ln(o.type,e),r);break e}throw Error(be(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:ln(o,n),gm(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:ln(o,n),ew(e,t,o,n,r);case 3:e:{if(DC(t),e===null)throw Error(be(387));o=t.pendingProps,i=t.memoizedState,n=i.element,tC(e,t),Kd(t,o,null,r);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){n=Pl(Error(be(423)),t),t=tw(e,t,o,r,n);break e}else if(o!==n){n=Pl(Error(be(424)),t),t=tw(e,t,o,r,n);break e}else for(Lo=Gi(t.stateNode.containerInfo.firstChild),Do=t,Jt=!0,un=null,r=iC(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Dl(),o===n){t=ni(e,t,r);break e}no(e,t,o,r)}t=t.child}return t;case 5:return aC(t),e===null&&um(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,im(o,n)?a=null:i!==null&&im(o,i)&&(t.flags|=32),BC(e,t),no(e,t,a,r),t.child;case 6:return e===null&&um(t),null;case 13:return RC(e,t,r);case 4:return u0(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Rl(t,null,o,r):no(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:ln(o,n),Zb(e,t,o,n,r);case 7:return no(e,t,t.pendingProps,r),t.child;case 8:return no(e,t,t.pendingProps.children,r),t.child;case 12:return no(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,n=t.pendingProps,i=t.memoizedProps,a=n.value,Wt(Vd,o._currentValue),o._currentValue=a,i!==null)if(vn(i.value,a)){if(i.children===n.children&&!yo.current){t=ni(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){a=i.child;for(var l=c.firstContext;l!==null;){if(l.context===o){if(i.tag===1){l=Jn(-1,r&-r),l.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var s=d.pending;s===null?l.next=l:(l.next=s.next,s.next=l),d.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),dm(i.return,r,t),c.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(be(341));a.lanes|=r,c=a.alternate,c!==null&&(c.lanes|=r),dm(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}no(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,_l(t,r),n=Qo(n),o=o(n),t.flags|=1,no(e,t,o,r),t.child;case 14:return o=t.type,n=ln(o,t.pendingProps),n=ln(o.type,n),Jb(e,t,o,n,r);case 15:return LC(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:ln(o,n),fd(e,t),t.tag=1,bo(o)?(e=!0,Fd(t)):e=!1,_l(t,r),oC(t,o,n),fm(t,o,n,r),mm(null,t,o,!0,e,r);case 19:return IC(e,t,r);case 22:return AC(e,t,r)}throw Error(be(156,t.tag))};function YC(e,t){return xk(e,t)}function HR(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ko(e,t,r,o){return new HR(e,t,r,o)}function S0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function WR(e){if(typeof e=="function")return S0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wv)return 11;if(e===Vv)return 14}return 2}function Wi(e,t){var r=e.alternate;return r===null?(r=Ko(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function md(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")S0(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ol:return ka(r.children,n,i,t);case Hv:a=8,n|=8;break;case Mg:return e=Ko(12,r,t,n|2),e.elementType=Mg,e.lanes=i,e;case Ng:return e=Ko(13,r,t,n),e.elementType=Ng,e.lanes=i,e;case jg:return e=Ko(19,r,t,n),e.elementType=jg,e.lanes=i,e;case nk:return Fh(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rk:a=10;break e;case ok:a=9;break e;case Wv:a=11;break e;case Vv:a=14;break e;case _i:a=16,o=null;break e}throw Error(be(130,e==null?e:typeof e,""))}return t=Ko(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function ka(e,t,r,o){return e=Ko(7,e,o,t),e.lanes=r,e}function Fh(e,t,r,o){return e=Ko(22,e,o,t),e.elementType=nk,e.lanes=r,e.stateNode={isHidden:!1},e}function Gp(e,t,r){return e=Ko(6,e,null,t),e.lanes=r,e}function zp(e,t,r){return t=Ko(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function VR(e,t,r,o,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xp(0),this.expirationTimes=xp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xp(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function T0(e,t,r,o,n,i,a,c,l){return e=new VR(e,t,r,c,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ko(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},c0(i),e}function UR(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:rl,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function XC(e){if(!e)return Ki;e=e._reactInternals;e:{if(Ga(e)!==e||e.tag!==1)throw Error(be(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(bo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(be(171))}if(e.tag===1){var r=e.type;if(bo(r))return Yk(e,r,t)}return t}function QC(e,t,r,o,n,i,a,c,l){return e=T0(r,o,!0,e,n,i,a,c,l),e.context=XC(null),r=e.current,o=io(),n=Hi(r),i=Jn(o,n),i.callback=t??null,zi(r,i,n),e.current.lanes=n,Oc(e,n,o),wo(e,o),e}function Hh(e,t,r,o){var n=t.current,i=io(),a=Hi(n);return r=XC(r),t.context===null?t.context=r:t.pendingContext=r,t=Jn(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=zi(n,t,a),e!==null&&(gn(e,n,a,i),ud(e,n,a)),a}function th(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function dw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function E0(e,t){dw(e,t),(e=e.alternate)&&dw(e,t)}function KR(){return null}var ZC=typeof reportError=="function"?reportError:function(e){console.error(e)};function L0(e){this._internalRoot=e}Wh.prototype.render=L0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(be(409));Hh(e,t,null,null)};Wh.prototype.unmount=L0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$a(function(){Hh(null,e,null,null)}),t[ri]=null}};function Wh(e){this._internalRoot=e}Wh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lk();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ei.length&&t!==0&&t<Ei[r].priority;r++);Ei.splice(r,0,e),r===0&&Bk(e)}};function A0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hw(){}function qR(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var d=th(a);i.call(d)}}var a=QC(t,o,e,0,null,!1,!1,"",hw);return e._reactRootContainer=a,e[ri]=a.current,fc(e.nodeType===8?e.parentNode:e),$a(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var c=o;o=function(){var d=th(l);c.call(d)}}var l=T0(e,0,!1,null,null,!1,!1,"",hw);return e._reactRootContainer=l,e[ri]=l.current,fc(e.nodeType===8?e.parentNode:e),$a(function(){Hh(t,l,r,o)}),l}function Uh(e,t,r,o,n){var i=r._reactRootContainer;if(i){var a=i;if(typeof n=="function"){var c=n;n=function(){var l=th(a);c.call(l)}}Hh(t,a,e,n)}else a=qR(r,t,e,n,o);return th(a)}Tk=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Is(t.pendingLanes);r!==0&&(qv(t,r|1),wo(t,fr()),!(yt&6)&&($l=fr()+500,Zi()))}break;case 13:$a(function(){var o=oi(e,1);if(o!==null){var n=io();gn(o,e,1,n)}}),E0(e,1)}};Yv=function(e){if(e.tag===13){var t=oi(e,134217728);if(t!==null){var r=io();gn(t,e,134217728,r)}E0(e,134217728)}};Ek=function(e){if(e.tag===13){var t=Hi(e),r=oi(e,t);if(r!==null){var o=io();gn(r,e,t,o)}E0(e,t)}};Lk=function(){return Pt};Ak=function(e,t){var r=Pt;try{return Pt=e,t()}finally{Pt=r}};Yg=function(e,t,r){switch(t){case"input":if(Fg(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var n=Oh(o);if(!n)throw Error(be(90));ak(o),Fg(o,n)}}}break;case"textarea":sk(e,r);break;case"select":t=r.value,t!=null&&yl(e,!!r.multiple,t,!1)}};gk=_0;mk=$a;var YR={usingClientEntryPoint:!1,Events:[Nc,ll,Oh,fk,pk,_0]},_s={findFiberByHostInstance:ma,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},XR={bundleType:_s.bundleType,version:_s.version,rendererPackageName:_s.rendererPackageName,rendererConfig:_s.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:si.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=bk(e),e===null?null:e.stateNode},findFiberByHostInstance:_s.findFiberByHostInstance||KR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ou.isDisabled&&Ou.supportsFiber)try{Rh=Ou.inject(XR),On=Ou}catch{}}Oo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YR;Oo.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A0(t))throw Error(be(200));return UR(e,t,null,r)};Oo.createRoot=function(e,t){if(!A0(e))throw Error(be(299));var r=!1,o="",n=ZC;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=T0(e,1,!1,null,null,r,!1,o,n),e[ri]=t.current,fc(e.nodeType===8?e.parentNode:e),new L0(t)};Oo.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(be(188)):(e=Object.keys(e).join(","),Error(be(268,e)));return e=bk(t),e=e===null?null:e.stateNode,e};Oo.flushSync=function(e){return $a(e)};Oo.hydrate=function(e,t,r){if(!Vh(t))throw Error(be(200));return Uh(null,e,t,!0,r)};Oo.hydrateRoot=function(e,t,r){if(!A0(e))throw Error(be(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=ZC;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=QC(t,null,e,1,r??null,n,!1,i,a),e[ri]=t.current,fc(e),o)for(e=0;e<o.length;e++)r=o[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new Wh(t)};Oo.render=function(e,t,r){if(!Vh(t))throw Error(be(200));return Uh(null,e,t,!1,r)};Oo.unmountComponentAtNode=function(e){if(!Vh(e))throw Error(be(40));return e._reactRootContainer?($a(function(){Uh(null,null,e,!1,function(){e._reactRootContainer=null,e[ri]=null})}),!0):!1};Oo.unstable_batchedUpdates=_0;Oo.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Vh(r))throw Error(be(200));if(e==null||e._reactInternals===void 0)throw Error(be(38));return Uh(e,t,r,!1,o)};Oo.version="18.2.0-next-9e3b772b8-20220608";function JC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(JC)}catch(e){console.error(e)}}JC(),Q1.exports=Oo;var Uo=Q1.exports;const Mu=Gn(Uo);var eS,fw=Uo;eS=fw.createRoot,fw.hydrateRoot;/**
    41   * @remix-run/router v1.15.3
    42   *
    43   * Copyright (c) Remix Software Inc.
    44   *
    45   * This source code is licensed under the MIT license found in the
    46   * LICENSE.md file in the root directory of this source tree.
    47   *
    48   * @license MIT
    49   */function _c(){return _c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},_c.apply(this,arguments)}var Ri;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ri||(Ri={}));const pw="popstate";function QR(e){e===void 0&&(e={});function t(o,n){let{pathname:i,search:a,hash:c}=o.location;return Lm("",{pathname:i,search:a,hash:c},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function r(o,n){return typeof n=="string"?n:rS(n)}return JR(t,r,null,e)}function Tr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function tS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ZR(){return Math.random().toString(36).substr(2,8)}function gw(e,t){return{usr:e.state,key:e.key,idx:t}}function Lm(e,t,r,o){return r===void 0&&(r=null),_c({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xl(t):t,{state:r,key:t&&t.key||o||ZR()})}function rS(e){let{pathname:t="/",search:r="",hash:o=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(t+=o.charAt(0)==="#"?o:"#"+o),t}function Xl(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}function JR(e,t,r,o){o===void 0&&(o={});let{window:n=document.defaultView,v5Compat:i=!1}=o,a=n.history,c=Ri.Pop,l=null,d=s();d==null&&(d=0,a.replaceState(_c({},a.state,{idx:d}),""));function s(){return(a.state||{idx:null}).idx}function u(){c=Ri.Pop;let v=s(),m=v==null?null:v-d;d=v,l&&l({action:c,location:g.location,delta:m})}function h(v,m){c=Ri.Push;let y=Lm(g.location,v,m);r&&r(y,v),d=s()+1;let C=gw(y,d),_=g.createHref(y);try{a.pushState(C,"",_)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;n.location.assign(_)}i&&l&&l({action:c,location:g.location,delta:1})}function f(v,m){c=Ri.Replace;let y=Lm(g.location,v,m);r&&r(y,v),d=s();let C=gw(y,d),_=g.createHref(y);a.replaceState(C,"",_),i&&l&&l({action:c,location:g.location,delta:0})}function p(v){let m=n.location.origin!=="null"?n.location.origin:n.location.href,y=typeof v=="string"?v:rS(v);return y=y.replace(/ $/,"%20"),Tr(m,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,m)}let g={get action(){return c},get location(){return e(n,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return n.addEventListener(pw,u),l=v,()=>{n.removeEventListener(pw,u),l=null}},createHref(v){return t(n,v)},createURL:p,encodeLocation(v){let m=p(v);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:f,go(v){return a.go(v)}};return g}var mw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(mw||(mw={}));function eI(e,t,r){r===void 0&&(r="/");let o=typeof t=="string"?Xl(t):t,n=iS(o.pathname||"/",r);if(n==null)return null;let i=oS(e);tI(i);let a=null;for(let c=0;a==null&&c<i.length;++c){let l=fI(n);a=uI(i[c],l)}return a}function oS(e,t,r,o){t===void 0&&(t=[]),r===void 0&&(r=[]),o===void 0&&(o="");let n=(i,a,c)=>{let l={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Tr(l.relativePath.startsWith(o),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(o.length));let d=Ca([o,l.relativePath]),s=r.concat(l);i.children&&i.children.length>0&&(Tr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),oS(i.children,t,s,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:sI(d,i.index),routesMeta:s})};return e.forEach((i,a)=>{var c;if(i.path===""||!((c=i.path)!=null&&c.includes("?")))n(i,a);else for(let l of nS(i.path))n(i,a,l)}),t}function nS(e){let t=e.split("/");if(t.length===0)return[];let[r,...o]=t,n=r.endsWith("?"),i=r.replace(/\?$/,"");if(o.length===0)return n?[i,""]:[i];let a=nS(o.join("/")),c=[];return c.push(...a.map(l=>l===""?i:[i,l].join("/"))),n&&c.push(...a),c.map(l=>e.startsWith("/")&&l===""?"/":l)}function tI(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:cI(t.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}const rI=/^:[\w-]+$/,oI=3,nI=2,iI=1,aI=10,lI=-2,vw=e=>e==="*";function sI(e,t){let r=e.split("/"),o=r.length;return r.some(vw)&&(o+=lI),t&&(o+=nI),r.filter(n=>!vw(n)).reduce((n,i)=>n+(rI.test(i)?oI:i===""?iI:aI),o)}function cI(e,t){return e.length===t.length&&e.slice(0,-1).every((o,n)=>o===t[n])?e[e.length-1]-t[t.length-1]:0}function uI(e,t){let{routesMeta:r}=e,o={},n="/",i=[];for(let a=0;a<r.length;++a){let c=r[a],l=a===r.length-1,d=n==="/"?t:t.slice(n.length)||"/",s=dI({path:c.relativePath,caseSensitive:c.caseSensitive,end:l},d);if(!s)return null;Object.assign(o,s.params);let u=c.route;i.push({params:o,pathname:Ca([n,s.pathname]),pathnameBase:bI(Ca([n,s.pathnameBase])),route:u}),s.pathnameBase!=="/"&&(n=Ca([n,s.pathnameBase]))}return i}function dI(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=hI(e.path,e.caseSensitive,e.end),n=t.match(r);if(!n)return null;let i=n[0],a=i.replace(/(.)\/+$/,"$1"),c=n.slice(1);return{params:o.reduce((d,s,u)=>{let{paramName:h,isOptional:f}=s;if(h==="*"){let g=c[u]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=c[u];return f&&!p?d[h]=void 0:d[h]=(p||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function hI(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),tS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let o=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,c,l)=>(o.push({paramName:c,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),o]}function fI(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return tS(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function iS(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}function pI(e,t){t===void 0&&(t="/");let{pathname:r,search:o="",hash:n=""}=typeof e=="string"?Xl(e):e;return{pathname:r?r.startsWith("/")?r:gI(r,t):t,search:wI(o),hash:xI(n)}}function gI(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function Fp(e,t,r,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(o)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function mI(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function vI(e,t){let r=mI(e);return t?r.map((o,n)=>n===e.length-1?o.pathname:o.pathnameBase):r.map(o=>o.pathnameBase)}function yI(e,t,r,o){o===void 0&&(o=!1);let n;typeof e=="string"?n=Xl(e):(n=_c({},e),Tr(!n.pathname||!n.pathname.includes("?"),Fp("?","pathname","search",n)),Tr(!n.pathname||!n.pathname.includes("#"),Fp("#","pathname","hash",n)),Tr(!n.search||!n.search.includes("#"),Fp("#","search","hash",n)));let i=e===""||n.pathname==="",a=i?"/":n.pathname,c;if(a==null)c=r;else{let u=t.length-1;if(!o&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),u-=1;n.pathname=h.join("/")}c=u>=0?t[u]:"/"}let l=pI(n,c),d=a&&a!=="/"&&a.endsWith("/"),s=(i||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(d||s)&&(l.pathname+="/"),l}const Ca=e=>e.join("/").replace(/\/\/+/g,"/"),bI=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xI=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _I(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const aS=["post","put","patch","delete"];new Set(aS);const kI=["get",...aS];new Set(kI);/**
    50   * React Router v6.22.3
    51   *
    52   * Copyright (c) Remix Software Inc.
    53   *
    54   * This source code is licensed under the MIT license found in the
    55   * LICENSE.md file in the root directory of this source tree.
    56   *
    57   * @license MIT
    58   */function kc(){return kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},kc.apply(this,arguments)}const B0=B.createContext(null),CI=B.createContext(null),Kh=B.createContext(null),qh=B.createContext(null),za=B.createContext({outlet:null,matches:[],isDataRoute:!1}),lS=B.createContext(null);function Yh(){return B.useContext(qh)!=null}function Xh(){return Yh()||Tr(!1),B.useContext(qh).location}function sS(e){B.useContext(Kh).static||B.useLayoutEffect(e)}function At(){let{isDataRoute:e}=B.useContext(za);return e?MI():SI()}function SI(){Yh()||Tr(!1);let e=B.useContext(B0),{basename:t,future:r,navigator:o}=B.useContext(Kh),{matches:n}=B.useContext(za),{pathname:i}=Xh(),a=JSON.stringify(vI(n,r.v7_relativeSplatPath)),c=B.useRef(!1);return sS(()=>{c.current=!0}),B.useCallback(function(d,s){if(s===void 0&&(s={}),!c.current)return;if(typeof d=="number"){o.go(d);return}let u=yI(d,JSON.parse(a),i,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Ca([t,u.pathname])),(s.replace?o.replace:o.push)(u,s.state,s)},[t,o,a,i,e])}function Qh(){let{matches:e}=B.useContext(za),t=e[e.length-1];return t?t.params:{}}function TI(e,t){return EI(e,t)}function EI(e,t,r,o){Yh()||Tr(!1);let{navigator:n}=B.useContext(Kh),{matches:i}=B.useContext(za),a=i[i.length-1],c=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let d=Xh(),s;if(t){var u;let v=typeof t=="string"?Xl(t):t;l==="/"||(u=v.pathname)!=null&&u.startsWith(l)||Tr(!1),s=v}else s=d;let h=s.pathname||"/",f=h;if(l!=="/"){let v=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let p=eI(e,{pathname:f}),g=RI(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},c,v.params),pathname:Ca([l,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Ca([l,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r,o);return t&&g?B.createElement(qh.Provider,{value:{location:kc({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:Ri.Pop}},g):g}function LI(){let e=OI(),t=_I(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return B.createElement(B.Fragment,null,B.createElement("h2",null,"Unexpected Application Error!"),B.createElement("h3",{style:{fontStyle:"italic"}},t),r?B.createElement("pre",{style:n},r):null,null)}const AI=B.createElement(LI,null);class BI extends B.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?B.createElement(za.Provider,{value:this.props.routeContext},B.createElement(lS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DI(e){let{routeContext:t,match:r,children:o}=e,n=B.useContext(B0);return n&&n.static&&n.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=r.route.id),B.createElement(za.Provider,{value:t},o)}function RI(e,t,r,o){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),o===void 0&&(o=null),e==null){var i;if((i=r)!=null&&i.errors)e=r.matches;else return null}let a=e,c=(n=r)==null?void 0:n.errors;if(c!=null){let s=a.findIndex(u=>u.route.id&&(c==null?void 0:c[u.route.id]));s>=0||Tr(!1),a=a.slice(0,Math.min(a.length,s+1))}let l=!1,d=-1;if(r&&o&&o.v7_partialHydration)for(let s=0;s<a.length;s++){let u=a[s];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(d=s),u.route.id){let{loaderData:h,errors:f}=r,p=u.route.loader&&h[u.route.id]===void 0&&(!f||f[u.route.id]===void 0);if(u.route.lazy||p){l=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((s,u,h)=>{let f,p=!1,g=null,v=null;r&&(f=c&&u.route.id?c[u.route.id]:void 0,g=u.route.errorElement||AI,l&&(d<0&&h===0?(NI("route-fallback",!1),p=!0,v=null):d===h&&(p=!0,v=u.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,h+1)),y=()=>{let C;return f?C=g:p?C=v:u.route.Component?C=B.createElement(u.route.Component,null):u.route.element?C=u.route.element:C=s,B.createElement(DI,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:r!=null},children:C})};return r&&(u.route.ErrorBoundary||u.route.errorElement||h===0)?B.createElement(BI,{location:r.location,revalidation:r.revalidation,component:g,error:f,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}var cS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(cS||{}),rh=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(rh||{});function II(e){let t=B.useContext(B0);return t||Tr(!1),t}function PI(e){let t=B.useContext(CI);return t||Tr(!1),t}function $I(e){let t=B.useContext(za);return t||Tr(!1),t}function uS(e){let t=$I(),r=t.matches[t.matches.length-1];return r.route.id||Tr(!1),r.route.id}function OI(){var e;let t=B.useContext(lS),r=PI(rh.UseRouteError),o=uS(rh.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[o]}function MI(){let{router:e}=II(cS.UseNavigateStable),t=uS(rh.UseNavigateStable),r=B.useRef(!1);return sS(()=>{r.current=!0}),B.useCallback(function(n,i){i===void 0&&(i={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,kc({fromRouteId:t},i)))},[e,t])}const yw={};function NI(e,t,r){!t&&!yw[e]&&(yw[e]=!0)}function Ar(e){Tr(!1)}function jI(e){let{basename:t="/",children:r=null,location:o,navigationType:n=Ri.Pop,navigator:i,static:a=!1,future:c}=e;Yh()&&Tr(!1);let l=t.replace(/^\/*/,"/"),d=B.useMemo(()=>({basename:l,navigator:i,static:a,future:kc({v7_relativeSplatPath:!1},c)}),[l,c,i,a]);typeof o=="string"&&(o=Xl(o));let{pathname:s="/",search:u="",hash:h="",state:f=null,key:p="default"}=o,g=B.useMemo(()=>{let v=iS(s,l);return v==null?null:{location:{pathname:v,search:u,hash:h,state:f,key:p},navigationType:n}},[l,s,u,h,f,p,n]);return g==null?null:B.createElement(Kh.Provider,{value:d},B.createElement(qh.Provider,{children:r,value:g}))}function GI(e){let{children:t,location:r}=e;return TI(Am(t),r)}new Promise(()=>{});function Am(e,t){t===void 0&&(t=[]);let r=[];return B.Children.forEach(e,(o,n)=>{if(!B.isValidElement(o))return;let i=[...t,n];if(o.type===B.Fragment){r.push.apply(r,Am(o.props.children,i));return}o.type!==Ar&&Tr(!1),!o.props.index||!o.props.children||Tr(!1);let a={id:o.props.id||i.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(a.children=Am(o.props.children,i)),r.push(a)}),r}/**
    59   * React Router DOM v6.22.3
    60   *
    61   * Copyright (c) Remix Software Inc.
    62   *
    63   * This source code is licensed under the MIT license found in the
    64   * LICENSE.md file in the root directory of this source tree.
    65   *
    66   * @license MIT
    67   */const zI="6";try{window.__reactRouterVersion=zI}catch{}const FI="startTransition",bw=zD[FI];function HI(e){let{basename:t,children:r,future:o,window:n}=e,i=B.useRef();i.current==null&&(i.current=QR({window:n,v5Compat:!0}));let a=i.current,[c,l]=B.useState({action:a.action,location:a.location}),{v7_startTransition:d}=o||{},s=B.useCallback(u=>{d&&bw?bw(()=>l(u)):l(u)},[l,d]);return B.useLayoutEffect(()=>a.listen(s),[a,s]),B.createElement(jI,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:a,future:o})}var ww;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ww||(ww={}));var xw;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xw||(xw={}));function Gc(e,t){const[r,o]=B.useState(()=>{try{const i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch(i){return console.error(i),t}}),n=B.useCallback(i=>{try{const a=i instanceof Function?i(r):i;window.localStorage.setItem(e,JSON.stringify(a))}catch(a){console.error(a)}},[r,e]);return B.useEffect(()=>{n(r)},[r,n]),[r,o]}var Ol;(function(e){e.Light="light",e.Dark="dark"})(Ol||(Ol={}));var _w;(function(e){e.Comfortable="comfortable",e.Compact="compact"})(_w||(_w={}));function WI(e,t){return Object.keys(e).some(function(r){return e[r]===t})}function VI(e,t,r){r?e.classList.add(t):e.classList.remove(t)}function kw(e,t){if(t===void 0&&(t=document.body),e&&!WI(Ol,e)){console.warn('Mode "'.concat(e,'" is not supported'));return}VI(t,"awsui-dark-mode",e===Ol.Dark)}var Bm=function(e,t){return Bm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},Bm(e,t)};function dS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Bm(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ii=function(){return ii=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ii.apply(this,arguments)};function de(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}function Zh(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function c(s){try{d(o.next(s))}catch(u){a(u)}}function l(s){try{d(o.throw(s))}catch(u){a(u)}}function d(s){s.done?i(s.value):n(s.value).then(c,l)}d((o=o.apply(e,t||[])).next())})}function oh(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function hS(e){return JSON.parse(JSON.stringify(e))}function Vi(e){return Object.keys(e).map(function(t){return[t,e[t]]})}function Hp(e){return e.reduce(function(t,r){var o=r[0],n=r[1];return t[o]=n,t},{})}function Cw(e,t){return e.indexOf(t)>-1}function fS(e){return typeof e=="string"&&!Jh(e)}function Jh(e){return typeof e=="string"&&e.charAt(0)==="{"&&e.charAt(e.length-1)==="}"}function Dm(e){return typeof e=="object"&&e!==null&&!Object.keys(e).some(function(t){return!(fS(e[t])||Jh(e[t]))})}function UI(e){return"selector"in e}function KI(e){return e.slice(1,e.length-1)}function ef(e,t){var r,o=e.tokenModeMap[t];return(r=e.modes[o])!==null&&r!==void 0?r:null}function qI(e){for(var t=Object.keys(e.states),r=0;r<t.length;r++){var o=t[r],n=e.states[o];if(n&&"default"in n&&n.default)return o}throw new Error("Mode ".concat(JSON.stringify(e)," does not have a default state"))}function D0(e){return YI(e).resolvedTheme}function YI(e){var t={},r={};return Object.keys(e.tokens).forEach(function(o){var n=ef(e,o);n?(r[o]={},t[o]=Object.keys(n.states).reduce(function(i,a){return r[o][a]=[],i[a]=Rm(e,o,r[o][a],a),i},{})):(r[o]=[],t[o]=Rm(e,o,r[o]))}),{resolvedTheme:t,resolutionPaths:r}}function Rm(e,t,r,o){if(!e.tokens[t])throw new Error("Token ".concat(t," does not exist in the theme."));if(r.indexOf(t)!==-1)throw new Error("Token ".concat(t," has a circular dependency."));r.push(t);var n=e.tokens[t];if(Dm(n)){if(!o)throw new Error("Mode resolution for token ".concat(t," does not have any mode value. modes: ").concat(JSON.stringify(n)));n=n[o]}if(Jh(n)){var i=KI(n);return Rm(e,i,r,o)}else return n}function nh(e,t){var r=hS(e);return r.tokens=ii(ii({},r.tokens),t.tokens),D0(r)}function Ii(e,t,r){return Object.keys(e).reduce(function(o,n){var i=r(e[n],n,t);return i&&(o[n]=i),o},{})}var ih=function(){return function(e,t,r){var o=ef(r,t);if(o&&pS(e)){var n=qI(o);return e[n]}else{if(gS(e))return e;throw new Error("Mismatch between resolution ".concat(e," and mode ").concat(o))}}},ah=function(e,t){return function(r,o,n){var i=ef(n,o);if(i&&i.id===e.id&&pS(r))return r[t];if(gS(r))return r}};function pS(e){return typeof e=="object"}function gS(e){return typeof e=="string"}function XI(e,t,r){if(typeof e.tokens!="object"||Array.isArray(e.tokens)||e.tokens===null)throw new Error('Missing required "tokens" object field in '.concat(JSON.stringify(e)));var o={};function n(l){var d=Cw(t,l);return!d&&!(l in o)&&(console.warn("".concat(l," is not themeable and will be ignored during theming")),o[l]=!0),d}function i(l){var d=Cw(r,l);return d||console.warn("".concat(l," is not a valid ID of a visual context and will be ignored during theming.")),d}var a=Vi(e.tokens).filter(function(l){var d=l[0];return n(d)}),c=(e.contexts?Vi(e.contexts).filter(function(l){var d=l[1];return d!==void 0}):[]).filter(function(l){var d=l[0];return i(d)}).map(function(l){var d=l[0],s=l[1],u=Vi(s.tokens).filter(function(p){var g=p[0];return n(g)}),h=Hp(u),f=ii(ii({},s),{tokens:h});return[d,f]});return{contexts:Hp(c),tokens:Hp(a)}}function QI(e){for(var t,r=oh([e.theme],(t=e.secondary)!==null&&t!==void 0?t:[],!0),o=[],n=0,i=r;n<i.length;n++){var a=i[n];Object.keys(a.contexts).forEach(function(c){o.indexOf(c)===-1&&o.push(c)})}return o}function ZI(e,t){var r;if(!t)return e.theme;var o=oh([e.theme],(r=e.secondary)!==null&&r!==void 0?r:[],!0).reduce(function(n,i){return n[i.id]=i,n},{});if(!o[t])throw new Error("Specified baseThemeId '".concat(t,"' is not available. Available values are ").concat(Object.keys(o).map(function(n){return"'".concat(n,"'")}).join(", "),"."));return o[t]}function JI(e,t){var r=hS(e);function o(n,i,a){var c=fS(a)||Jh(a),l=ef(e,i);if(l&&c)return Object.keys(l.states).reduce(function(d,s){return d[s]=a,d},{});if((Dm(n)||n===void 0)&&Dm(a))return ii(ii({},n),a);if(c)return a;console.warn("The value for this token cannot be merged into the theme:",i)}return Vi(t.tokens).forEach(function(n){var i=n[0],a=n[1],c=o(e.tokens[i],i,a);c&&(r.tokens[i]=c)}),t.contexts&&Vi(t.contexts).forEach(function(n){var i=n[0],a=n[1],c=r.contexts[i];!a||!c||Vi(a.tokens).forEach(function(l){var d,s=l[0],u=l[1],h=(d=c.tokens[s])!==null&&d!==void 0?d:r.tokens[s],f=o(h,s,u);f&&(r.contexts[i].tokens[s]=f)})}),r}var mS=function(){function e(){this.rulesMap=new Map,this.paths=new Map,this.counter=0}return e.prototype.appendRule=function(t){this.rulesMap.set(t.selector,[t,this.counter++])},e.prototype.appendRuleWithPath=function(t,r){this.rulesMap.set(t.selector,[t,this.counter++]),this.paths.set(t,r)},e.prototype.removeRule=function(t){this.rulesMap.delete(t.selector),this.paths.delete(t)},e.prototype.findRule=function(t){var r=this.rulesMap.get(t);return r==null?void 0:r[0]},e.prototype.getPath=function(t){var r=this.paths.get(t);if(!r)throw new Error("No path for rule with selector: ".concat(t.selector));return r},e.prototype.getAllRules=function(){var t=[];return this.paths.forEach(function(r,o){return t.push(o)}),t},e.prototype.toString=function(){return Im(this.rulesMap).map(function(t){return t.toString()}).join(`
    68  `)},e}(),e5=function(){function e(t,r){this.declarationsMap=new Map,this.counter=0,this.selector=t,this.media=r}return e.prototype.appendDeclaration=function(t){this.declarationsMap.set(t.property,[t,this.counter++])},e.prototype.clear=function(){this.declarationsMap=new Map,this.counter=0},e.prototype.getAllDeclarations=function(){return Im(this.declarationsMap)},e.prototype.size=function(){return this.declarationsMap.size},e.prototype.toString=function(){var t=Im(this.declarationsMap).map(function(o){return o.toString()}),r="".concat(this.selector,`{
    69  	`).concat(t.join(`
    70  	`),`
    71  }`);return this.media?"@media ".concat(this.media," {").concat(r,"}"):r},e}(),t5=function(){function e(t,r){this.property=t,this.value=r}return e.prototype.toString=function(){return"".concat(this.property,":").concat(this.value,";")},e}();function Im(e){var t=[];return e.forEach(function(r){var o=r[0],n=r[1];return t.push([o,n])}),t.sort(function(r,o){r[0];var n=r[1];o[0];var i=o[1];return n-i}),t.map(function(r){var o=r[0];return o})}var r5=function(){function e(t,r){this.selector=t,this.registry=r}return e.prototype.create=function(t,r){var o=this,n=new e5(this.selectorFor(t),t.media);return Vi(r).forEach(function(i){var a=i[0],c=i[1],l=o.registry.get(a);l&&n.appendDeclaration(new t5(l,c))}),n},e.prototype.selectorFor=function(t){return this.selector.for(t)},e}(),vS=function(){function e(){}return e.forEachOptionalModeState=function(t,r){Object.keys(t.modes).forEach(function(o){var n=t.modes[o];Vi(n.states).forEach(function(i){var a=i[0],c=i[1];UI(c)&&r(n,a)})})},e.forEachContext=function(t,r){Object.keys(t.contexts).forEach(function(o){var n=t.contexts[o];r(n)})},e.forEachContextWithinOptionalModeState=function(t,r){e.forEachOptionalModeState(t,function(o,n){e.forEachContext(t,function(i){r(i,o,n)})})},e.appendRuleToStylesheet=function(t,r,o){r.size()&&t.appendRuleWithPath(r,o)},e}();function Ci(e){for(var t=[],r=0,o=e;r<o.length;r++){var n=o[r];n!==void 0&&t.push(n)}return t}var Pm=function(e){dS(t,e);function t(r,o){var n=e.call(this)||this;return n.theme=r,n.resolution=D0(r),n.ruleCreator=o,n}return t.prototype.create=function(){var r=this,o=new mS,n=Ii(this.resolution,this.theme,ih()),i=this.ruleCreator.create({global:[this.theme.selector]},n);return t.appendRuleToStylesheet(o,i,[]),t.forEachOptionalModeState(this.theme,function(a,c){var l=Ii(r.resolution,r.theme,ah(a,c)),d=a.states[c],s=r.ruleCreator.create({global:[r.theme.selector,d.selector],media:d.media},l);t.appendRuleToStylesheet(o,s,[i])}),t.forEachContext(this.theme,function(a){var c=Ii(nh(r.theme,a),r.theme,ih()),l=r.ruleCreator.create({global:[r.theme.selector],local:[a.selector]},c);t.appendRuleToStylesheet(o,l,[i]);var d=r.ruleCreator.create({global:[r.theme.selector,a.selector]},c);t.appendRuleToStylesheet(o,d,[i])}),t.forEachContextWithinOptionalModeState(this.theme,function(a,c,l){var d=Ii(nh(r.theme,a),r.theme,ah(c,l)),s=c.states[l],u=r.ruleCreator.create({global:[r.theme.selector,s.selector],local:[a.selector],media:s.media},d),h=o.findRule(r.ruleCreator.selectorFor({global:[r.theme.selector],local:[a.selector]})),f=o.findRule(r.ruleCreator.selectorFor({global:[r.theme.selector,c.states[l].selector]})),p=o.findRule(r.ruleCreator.selectorFor({global:[r.theme.selector,a.selector]}));t.appendRuleToStylesheet(o,u,Ci([h,f,i]));var g=r.ruleCreator.create({global:[r.theme.selector,s.selector,a.selector],media:s.media},d);t.appendRuleToStylesheet(o,g,Ci([p,f,i]))}),o},t}(vS),o5=":not(#\\9)";function yS(e){var t=e.split(":"),r=t[0],o=t.slice(1),n=o.length?":"+o.join(":"):"";return"".concat(r).concat(o5).concat(n)}var n5=[":root","body","html"],i5=function(e){return n5.indexOf(e)>-1};function Sw(e){var t=e.split(",").map(a5);return t.join(",")}function a5(e){var t=/[:.][\w_-]+/.exec(e);if((t==null?void 0:t.length)===1){var r=t[0],o=t.index;return"".concat(e.substring(0,o)).concat(r).concat(e.substring(o))}return yS(e)}(function(e){dS(t,e);function t(r,o){var n=e.call(this)||this;return n.themes=r,n.ruleCreator=o,n}return t.prototype.create=function(){var r=this,o=this.themes.filter(function(d){return i5(d.selector)});if(o.length>1)throw new Error("Themes ".concat(o.map(function(d){var s=d.id;return s}).join(", ")," have a global selector. It is not supported to have more than one global theme. It produces unpredictable styling results."));if(!o.length){var n=this.themes.map(function(d){return new Pm(d,r.ruleCreator).create()}),i=new mS;return n.forEach(function(d){d.getAllRules().map(function(s){var u;return i.appendRuleWithPath(s,(u=d.getPath(s))!==null&&u!==void 0?u:[])})}),i}var a=o[0],c=new Pm(a,this.ruleCreator).create(),l=this.getThemesWithout(a);return l.forEach(function(d){r.appendRulesForSecondary(c,a,d)}),c},t.prototype.appendRulesForSecondary=function(r,o,n){var i=this,a=D0(n),c=Ii(a,n,ih()),l=this.ruleCreator.create({global:[n.selector]},c),d=this.findRule(r,{global:[o.selector]});return t.appendRuleToStylesheet(r,l,Ci([d])),t.forEachOptionalModeState(n,function(s,u){var h=s.states[u],f=Ii(a,n,ah(s,u)),p=i.ruleCreator.create({global:[n.selector,h.selector],media:h.media},f),g=r.findRule(i.ruleCreator.selectorFor({global:[o.selector,h.selector]}));t.appendRuleToStylesheet(r,p,Ci([l,g,d]))}),t.forEachContext(n,function(s){var u=Ii(nh(n,s),n,ih()),h=i.ruleCreator.create({global:[n.selector],local:[s.selector]},u),f=r.findRule(i.ruleCreator.selectorFor({global:[o.selector],local:[s.selector]}));t.appendRuleToStylesheet(r,h,Ci([f,l,d]));var p=i.ruleCreator.create({global:[n.selector,s.selector]},u);t.appendRuleToStylesheet(r,p,Ci([l,f,d]))}),t.forEachContextWithinOptionalModeState(n,function(s,u,h){var f=u.states[h],p=Ii(nh(n,s),n,ah(u,h)),g=i.findRule(r,{global:[n.selector],local:[s.selector]}),v=i.findRule(r,{global:[n.selector,f.selector]}),m=i.ruleCreator.create({global:[n.selector,f.selector],local:[s.selector],media:f.media},p),y=r.findRule(i.ruleCreator.selectorFor({global:[o.selector],local:[s.selector]})),C=r.findRule(i.ruleCreator.selectorFor({global:[o.selector,f.selector]})),_=r.findRule(i.ruleCreator.selectorFor({global:[o.selector,f.selector],local:[s.selector]}));t.appendRuleToStylesheet(r,m,Ci([g,_,y,v,l,C,d]));var k=r.findRule(i.ruleCreator.selectorFor({global:[n.selector,s.selector]})),b=i.ruleCreator.create({global:[n.selector,f.selector,s.selector],media:f.media},p);t.appendRuleToStylesheet(r,b,Ci([g,v,k,l,y,C,d]))}),r},t.prototype.findRule=function(r,o){var n=r.findRule(this.ruleCreator.selectorFor(o));if(!n)throw new Error("No rule for selector ".concat(JSON.stringify(o)," found"));return n},t.prototype.getThemesWithout=function(r){var o=this.themes.indexOf(r);return oh(oh([],this.themes.slice(0,o),!0),this.themes.slice(o+1),!0)},t})(vS);var l5=function(){function e(t){this.customizer=t}return e.prototype.for=function(t){var r=t.global,o=t.local;if(r.length===1&&!(o!=null&&o.length)&&r[0]===":root")return this.customizer(":root");var n=r.filter(function(a){return a!==":root"}),i=this.toSelector(n);return o!=null&&o.length&&(i+=" ".concat(this.toSelector(o))),this.customizer(i.trim())},e.prototype.toSelector=function(t){return t.slice().sort().join("")},e}(),s5=function(){function e(t){this.map=t}return e.prototype.get=function(t){var r=this.map[t];if(!r)throw new Error("Token ".concat(t," does not have a property"));return r},e}();function c5(e,t,r,o){var n=JI(e,t),i=new r5(new l5(o),new s5(r)),a=new Pm(n,i),c=a.create();return c.toString()}function u5(e,t){var r=document.createElement("style");return t&&r.setAttribute("nonce",t),r.appendChild(document.createTextNode(e)),r}function d5(e){document.head.appendChild(e)}function h5(){var e,t=document.querySelector('meta[name="nonce"]');return(e=t==null?void 0:t.content)!==null&&e!==void 0?e:void 0}function f5(e){return function(t){return t===e?Sw(t):yS(Sw(t))}}function p5(e){var t=e.override,r=e.preset,o=e.baseThemeId,n=QI(r),i=XI(t,r.themeable,n),a=ZI(r,o),c=c5(a,i,r.propertiesMap,f5(r.theme.selector)),l=h5(),d=u5(c,l);return d5(d),{reset:function(){d.remove()}}}var g5={theme:{id:"visual-refresh",selector:":root",modes:{color:{id:"color",states:{light:{default:!0},dark:{selector:".awsui-dark-mode",media:"not print"}}},density:{id:"density",states:{comfortable:{default:!0},compact:{selector:".awsui-compact-mode"}}},motion:{id:"motion",states:{default:{default:!0},disabled:{selector:".awsui-motion-disabled"}}}},tokens:{colorAmazonOrange:"#ff9900",colorAwsSquidInk:"#232f3e",colorBlack:"#000000",colorBlue100:"#f2f8fd",colorBlue200:"#d3e7f9",colorBlue300:"#b5d6f4",colorBlue400:"#89bdee",colorBlue500:"#539fe5",colorBlue600:"#0972d3",colorBlue700:"#065299",colorBlue800:"#033160",colorBlue900:"#00142b",colorBlueOpaque:"rgba(51, 136, 221, 0.5)",colorGreen100:"#f2fcf3",colorGreen500:"#29ad32",colorGreen600:"#037f0c",colorGreen700:"#1a520f",colorGreen900:"#001a02",colorGrey100:"#fbfbfb",colorGrey125:"#f8f8f8",colorGrey150:"#f4f4f4",colorGrey200:"#e9ebed",colorGrey300:"#d1d5db",colorGrey350:"#b6bec9",colorGrey400:"#9ba7b6",colorGrey450:"#8d99a8",colorGrey500:"#7d8998",colorGrey550:"#5f6b7a",colorGrey600:"#414d5c",colorGrey650:"#354150",colorGrey700:"#232f3e",colorGrey750:"#192534",colorGrey800:"#0f1b2a",colorGrey850:"#081120",colorGrey900:"#000716",colorGrey950:"#222222",colorOrange100:"#fef6f0",colorOrange500:"#ec7211",colorOrange600:"#eb5f07",colorOrange700:"#dd6b10",colorRed100:"#fff7f7",colorRed500:"#eb6f6f",colorRed600:"#d91515",colorRed700:"#7c2718",colorRed900:"#1a0000",colorTransparent:"transparent",colorWhite:"#ffffff",colorYellow100:"#fffce9",colorYellow600:"#ffe457",colorYellow700:"#e0ca57",colorYellow800:"#8d6605",colorYellow900:"#1d1906",colorChartsRed300:{light:"#ea7158",dark:"#d63f38"},colorChartsRed400:{light:"#dc5032",dark:"#ed5958"},colorChartsRed500:{light:"#d13313",dark:"#fe6e73"},colorChartsRed600:{light:"#ba2e0f",dark:"#ff8a8a"},colorChartsRed700:{light:"#a82a0c",dark:"#ffa09e"},colorChartsRed800:{light:"#972709",dark:"#ffb3b0"},colorChartsRed900:{light:"#892407",dark:"#ffc4c0"},colorChartsRed1000:{light:"#7d2105",dark:"#ffd2cf"},colorChartsRed1100:{light:"#721e03",dark:"#ffe0dd"},colorChartsRed1200:{light:"#671c00",dark:"#ffecea"},colorChartsOrange300:{light:"#e07941",dark:"#c55305"},colorChartsOrange400:{light:"#cc5f21",dark:"#de6923"},colorChartsOrange500:{light:"#bc4d01",dark:"#f27c36"},colorChartsOrange600:{light:"#a84401",dark:"#f89256"},colorChartsOrange700:{light:"#983c02",dark:"#fca572"},colorChartsOrange800:{light:"#8a3603",dark:"#ffb68b"},colorChartsOrange900:{light:"#7e3103",dark:"#ffc6a4"},colorChartsOrange1000:{light:"#732c02",dark:"#ffd4bb"},colorChartsOrange1100:{light:"#692801",dark:"#ffe1cf"},colorChartsOrange1200:{light:"#602400",dark:"#ffede2"},colorChartsYellow300:{light:"#b2911c",dark:"#977001"},colorChartsYellow400:{light:"#9c7b0b",dark:"#b08400"},colorChartsYellow500:{light:"#8a6b05",dark:"#c59600"},colorChartsYellow600:{light:"#7b5f04",dark:"#d3a61c"},colorChartsYellow700:{light:"#6f5504",dark:"#dfb52c"},colorChartsYellow800:{light:"#654d03",dark:"#eac33a"},colorChartsYellow900:{light:"#5d4503",dark:"#f1cf65"},colorChartsYellow1000:{light:"#553f03",dark:"#f7db8a"},colorChartsYellow1100:{light:"#4d3901",dark:"#fce5a8"},colorChartsYellow1200:{light:"#483300",dark:"#ffefc9"},colorChartsGreen300:{light:"#67a353",dark:"#48851a"},colorChartsGreen400:{light:"#41902c",dark:"#5a9b29"},colorChartsGreen500:{light:"#1f8104",dark:"#69ae34"},colorChartsGreen600:{light:"#1a7302",dark:"#7dbd4c"},colorChartsGreen700:{light:"#176702",dark:"#8fca61"},colorChartsGreen800:{light:"#145d02",dark:"#9fd673"},colorChartsGreen900:{light:"#125502",dark:"#b2df8d"},colorChartsGreen1000:{light:"#104d01",dark:"#c5e7a8"},colorChartsGreen1100:{light:"#0f4601",dark:"#d5efbe"},colorChartsGreen1200:{light:"#0d4000",dark:"#e4f7d5"},colorChartsTeal300:{light:"#2ea597",dark:"#018977"},colorChartsTeal400:{light:"#1c8e81",dark:"#009d89"},colorChartsTeal500:{light:"#0d7d70",dark:"#00b09b"},colorChartsTeal600:{light:"#096f64",dark:"#40bfa9"},colorChartsTeal700:{light:"#06645a",dark:"#5fccb7"},colorChartsTeal800:{light:"#045b52",dark:"#77d7c3"},colorChartsTeal900:{light:"#03524a",dark:"#94e0d0"},colorChartsTeal1000:{light:"#014b44",dark:"#ace9db"},colorChartsTeal1100:{light:"#01443e",dark:"#c2f0e6"},colorChartsTeal1200:{light:"#003e38",dark:"#d7f7f0"},colorChartsBlue1300:{light:"#529ccb",dark:"#00819c"},colorChartsBlue1400:{light:"#3184c2",dark:"#0497ba"},colorChartsBlue1500:{light:"#0273bb",dark:"#08aad2"},colorChartsBlue1600:{light:"#0166ab",dark:"#44b9dd"},colorChartsBlue1700:{light:"#015b9d",dark:"#63c6e7"},colorChartsBlue1800:{light:"#015292",dark:"#79d2f0"},colorChartsBlue1900:{light:"#014a87",dark:"#98dcf5"},colorChartsBlue11000:{light:"#01437d",dark:"#b3e4f8"},colorChartsBlue11100:{light:"#003c75",dark:"#caedfc"},colorChartsBlue11200:{light:"#00366d",dark:"#ddf4ff"},colorChartsBlue2300:{light:"#688ae8",dark:"#486de8"},colorChartsBlue2400:{light:"#5978e3",dark:"#6384f5"},colorChartsBlue2500:{light:"#4066df",dark:"#7698fe"},colorChartsBlue2600:{light:"#3759ce",dark:"#8ea9ff"},colorChartsBlue2700:{light:"#314fbf",dark:"#a2b8ff"},colorChartsBlue2800:{light:"#2c46b1",dark:"#b1c5ff"},colorChartsBlue2900:{light:"#273ea5",dark:"#c3d1ff"},colorChartsBlue21000:{light:"#23379b",dark:"#d2dcff"},colorChartsBlue21100:{light:"#1f3191",dark:"#dfe6ff"},colorChartsBlue21200:{light:"#1b2b88",dark:"#ecf0ff"},colorChartsPurple300:{light:"#a783e1",dark:"#8d59de"},colorChartsPurple400:{light:"#9469d6",dark:"#a173ea"},colorChartsPurple500:{light:"#8456ce",dark:"#b088f5"},colorChartsPurple600:{light:"#7749bf",dark:"#bf9bf9"},colorChartsPurple700:{light:"#6b40b2",dark:"#cbabfc"},colorChartsPurple800:{light:"#6237a7",dark:"#d6baff"},colorChartsPurple900:{light:"#59309d",dark:"#dfc8ff"},colorChartsPurple1000:{light:"#512994",dark:"#e8d5ff"},colorChartsPurple1100:{light:"#4a238b",dark:"#efe2ff"},colorChartsPurple1200:{light:"#431d84",dark:"#f5edff"},colorChartsPink300:{light:"#da7596",dark:"#c64a70"},colorChartsPink400:{light:"#ce567c",dark:"#d56889"},colorChartsPink500:{light:"#c33d69",dark:"#e07f9d"},colorChartsPink600:{light:"#b1325c",dark:"#eb92ad"},colorChartsPink700:{light:"#a32952",dark:"#f5a2bb"},colorChartsPink800:{light:"#962249",dark:"#ffb0c8"},colorChartsPink900:{light:"#8b1b42",dark:"#ffc1d4"},colorChartsPink1000:{light:"#81143b",dark:"#ffd1de"},colorChartsPink1100:{light:"#780d35",dark:"#ffdfe8"},colorChartsPink1200:{light:"#6f062f",dark:"#ffecf1"},colorChartsStatusCritical:{light:"{colorChartsRed1000}",dark:"{colorChartsRed300}"},colorChartsStatusHigh:{light:"{colorChartsRed600}",dark:"{colorChartsRed500}"},colorChartsStatusMedium:{light:"{colorChartsOrange400}",dark:"{colorChartsOrange600}"},colorChartsStatusLow:{light:"{colorChartsYellow300}",dark:"{colorChartsYellow700}"},colorChartsStatusPositive:{light:"{colorChartsGreen300}",dark:"{colorChartsGreen500}"},colorChartsStatusInfo:{light:"{colorChartsBlue1400}",dark:"{colorChartsBlue1500}"},colorChartsStatusNeutral:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorChartsThresholdNegative:{light:"{colorRed600}",dark:"{colorRed500}"},colorChartsThresholdPositive:{light:"{colorGreen600}",dark:"{colorGreen500}"},colorChartsThresholdInfo:{light:"{colorBlue600}",dark:"{colorBlue400}"},colorChartsThresholdNeutral:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorChartsLineGrid:{light:"{colorGrey300}",dark:"{colorGrey600}"},colorChartsLineTick:{light:"{colorGrey300}",dark:"{colorGrey600}"},colorChartsLineAxis:{light:"{colorGrey300}",dark:"{colorGrey600}"},colorChartsPaletteCategorical1:{light:"{colorChartsBlue2300}",dark:"{colorChartsBlue2300}"},colorChartsPaletteCategorical2:{light:"{colorChartsPink500}",dark:"{colorChartsPink500}"},colorChartsPaletteCategorical3:{light:"{colorChartsTeal300}",dark:"{colorChartsTeal300}"},colorChartsPaletteCategorical4:{light:"{colorChartsPurple500}",dark:"{colorChartsPurple500}"},colorChartsPaletteCategorical5:{light:"{colorChartsOrange300}",dark:"{colorChartsOrange300}"},colorChartsPaletteCategorical6:{light:"{colorChartsBlue2600}",dark:"{colorChartsBlue2600}"},colorChartsPaletteCategorical7:{light:"{colorChartsPink800}",dark:"{colorChartsPink800}"},colorChartsPaletteCategorical8:{light:"{colorChartsTeal600}",dark:"{colorChartsTeal600}"},colorChartsPaletteCategorical9:{light:"{colorChartsPurple800}",dark:"{colorChartsPurple800}"},colorChartsPaletteCategorical10:{light:"{colorChartsOrange600}",dark:"{colorChartsOrange600}"},colorChartsPaletteCategorical11:{light:"{colorChartsBlue2900}",dark:"{colorChartsBlue2900}"},colorChartsPaletteCategorical12:{light:"{colorChartsPink1100}",dark:"{colorChartsPink1100}"},colorChartsPaletteCategorical13:{light:"{colorChartsTeal900}",dark:"{colorChartsTeal900}"},colorChartsPaletteCategorical14:{light:"{colorChartsPurple1100}",dark:"{colorChartsPurple1100}"},colorChartsPaletteCategorical15:{light:"{colorChartsOrange900}",dark:"{colorChartsOrange900}"},colorChartsPaletteCategorical16:{light:"{colorChartsBlue21200}",dark:"{colorChartsBlue21200}"},colorChartsPaletteCategorical17:{light:"{colorChartsPink400}",dark:"{colorChartsPink400}"},colorChartsPaletteCategorical18:{light:"{colorChartsTeal1200}",dark:"{colorChartsTeal1200}"},colorChartsPaletteCategorical19:{light:"{colorChartsPurple400}",dark:"{colorChartsPurple400}"},colorChartsPaletteCategorical20:{light:"{colorChartsOrange1200}",dark:"{colorChartsOrange1200}"},colorChartsPaletteCategorical21:{light:"{colorChartsBlue2500}",dark:"{colorChartsBlue2500}"},colorChartsPaletteCategorical22:{light:"{colorChartsPink700}",dark:"{colorChartsPink700}"},colorChartsPaletteCategorical23:{light:"{colorChartsTeal500}",dark:"{colorChartsTeal500}"},colorChartsPaletteCategorical24:{light:"{colorChartsPurple700}",dark:"{colorChartsPurple700}"},colorChartsPaletteCategorical25:{light:"{colorChartsOrange500}",dark:"{colorChartsOrange500}"},colorChartsPaletteCategorical26:{light:"{colorChartsBlue2800}",dark:"{colorChartsBlue2800}"},colorChartsPaletteCategorical27:{light:"{colorChartsPink1000}",dark:"{colorChartsPink1000}"},colorChartsPaletteCategorical28:{light:"{colorChartsTeal800}",dark:"{colorChartsTeal800}"},colorChartsPaletteCategorical29:{light:"{colorChartsPurple1000}",dark:"{colorChartsPurple1000}"},colorChartsPaletteCategorical30:{light:"{colorChartsOrange800}",dark:"{colorChartsOrange800}"},colorChartsPaletteCategorical31:{light:"{colorChartsBlue21100}",dark:"{colorChartsBlue21100}"},colorChartsPaletteCategorical32:{light:"{colorChartsPink300}",dark:"{colorChartsPink300}"},colorChartsPaletteCategorical33:{light:"{colorChartsTeal1100}",dark:"{colorChartsTeal1100}"},colorChartsPaletteCategorical34:{light:"{colorChartsPurple300}",dark:"{colorChartsPurple300}"},colorChartsPaletteCategorical35:{light:"{colorChartsOrange1100}",dark:"{colorChartsOrange1100}"},colorChartsPaletteCategorical36:{light:"{colorChartsBlue2400}",dark:"{colorChartsBlue2400}"},colorChartsPaletteCategorical37:{light:"{colorChartsPink600}",dark:"{colorChartsPink600}"},colorChartsPaletteCategorical38:{light:"{colorChartsTeal400}",dark:"{colorChartsTeal400}"},colorChartsPaletteCategorical39:{light:"{colorChartsPurple600}",dark:"{colorChartsPurple600}"},colorChartsPaletteCategorical40:{light:"{colorChartsOrange400}",dark:"{colorChartsOrange400}"},colorChartsPaletteCategorical41:{light:"{colorChartsBlue2700}",dark:"{colorChartsBlue2700}"},colorChartsPaletteCategorical42:{light:"{colorChartsPink900}",dark:"{colorChartsPink900}"},colorChartsPaletteCategorical43:{light:"{colorChartsTeal700}",dark:"{colorChartsTeal700}"},colorChartsPaletteCategorical44:{light:"{colorChartsPurple900}",dark:"{colorChartsPurple900}"},colorChartsPaletteCategorical45:{light:"{colorChartsOrange700}",dark:"{colorChartsOrange700}"},colorChartsPaletteCategorical46:{light:"{colorChartsBlue21000}",dark:"{colorChartsBlue21000}"},colorChartsPaletteCategorical47:{light:"{colorChartsPink1200}",dark:"{colorChartsPink1200}"},colorChartsPaletteCategorical48:{light:"{colorChartsTeal1000}",dark:"{colorChartsTeal1000}"},colorChartsPaletteCategorical49:{light:"{colorChartsPurple1200}",dark:"{colorChartsPurple1200}"},colorChartsPaletteCategorical50:{light:"{colorChartsOrange1000}",dark:"{colorChartsOrange1000}"},colorGreyOpaque25:{light:"rgba(255, 255, 255, 0.25)",dark:"rgba(255, 255, 255, 0.25)"},colorGreyOpaque40:{light:"rgba(0, 0, 0, 0.4)",dark:"rgba(0, 0, 0, 0.4)"},colorGreyOpaque50:{light:"rgba(0, 0, 0, 0.5)",dark:"rgba(0, 0, 0, 0.5)"},colorGreyOpaque70:{light:"rgba(35, 47, 62, 0.7)",dark:"rgba(0, 7, 22, 0.7)"},colorGreyOpaque80:{light:"rgba(22, 25, 31, 0.8)",dark:"rgba(22, 25, 31, 0.8)"},colorGreyOpaque90:{light:"rgba(242, 243, 243, 0.9)",dark:"rgba(242, 243, 243, 0.9)"},colorGreyTransparent:{light:"rgba(0, 7, 22, 0.12)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentHeavy:{light:"rgba(0, 7, 22, 0.12)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentLight:{light:"rgba(0, 7, 22, 0.12)",dark:"rgba(0, 7, 22, 1)"},colorBackgroundBadgeIcon:{light:"{colorRed600}",dark:"{colorRed500}"},colorBackgroundButtonLinkActive:{light:"{colorBlue200}",dark:"{colorGrey650}"},colorBackgroundButtonLinkHover:{light:"{colorBlue100}",dark:"{colorGrey750}"},colorBackgroundButtonNormalActive:{light:"{colorBlue200}",dark:"{colorGrey650}"},colorBackgroundButtonNormalDefault:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundButtonNormalDisabled:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundButtonNormalHover:{light:"{colorBlue100}",dark:"{colorGrey750}"},colorBackgroundButtonPrimaryActive:{light:"{colorBlue800}",dark:"{colorBlue500}"},colorBackgroundButtonPrimaryDefault:{light:"{colorBorderButtonNormalDefault}",dark:"{colorBorderButtonNormalDefault}"},colorBackgroundButtonPrimaryDisabled:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundButtonPrimaryHover:{light:"{colorBorderButtonNormalHover}",dark:"{colorBorderButtonNormalHover}"},colorBackgroundCalendarCurrentDate:{light:"{colorGrey150}",dark:"{colorGrey650}"},colorBackgroundCellShaded:{light:"{colorGrey125}",dark:"{colorGrey750}"},colorBackgroundCodeEditorGutterActiveLineDefault:{light:"{colorGrey550}",dark:"{colorGrey500}"},colorBackgroundCodeEditorGutterActiveLineError:{light:"{colorTextStatusError}",dark:"{colorTextStatusError}"},colorBackgroundCodeEditorGutterDefault:{light:"{colorGrey150}",dark:"{colorGrey750}"},colorBackgroundCodeEditorLoading:{light:"{colorGrey100}",dark:"{colorGrey750}"},colorBackgroundCodeEditorPaneItemHover:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundCodeEditorStatusBar:{light:"{colorGrey150}",dark:"{colorGrey750}"},colorBackgroundContainerContent:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundContainerHeader:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundControlChecked:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundControlDefault:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundControlDisabled:{light:"{colorGrey300}",dark:"{colorGrey650}"},colorBackgroundDropdownItemDefault:{light:"{colorWhite}",dark:"{colorGrey750}"},colorBackgroundDropdownItemDimmed:{light:"transparent",dark:"transparent"},colorBackgroundDropdownItemFilterMatch:{light:"{colorBlue100}",dark:"{colorGrey650}"},colorBackgroundDropdownItemHover:{light:"{colorGrey150}",dark:"{colorGrey850}"},colorBackgroundDropdownItemSelected:{light:"{colorBackgroundItemSelected}",dark:"{colorBackgroundItemSelected}"},colorBackgroundHomeHeader:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundInputDefault:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundInputDisabled:{light:"{colorGrey200}",dark:"{colorGrey750}"},colorBackgroundItemSelected:{light:"{colorBlue100}",dark:"{colorBlue900}"},colorBackgroundLayoutMain:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundLayoutMobilePanel:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundLayoutPanelContent:{light:"{colorBackgroundContainerContent}",dark:"{colorBackgroundContainerContent}"},colorBackgroundLayoutPanelHover:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundLayoutToggleActive:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleDefault:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleHover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBackgroundLayoutToggleSelectedActive:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedHover:{light:"{colorBlue700}",dark:"{colorBlue400}"},colorBackgroundModalOverlay:{light:"{colorGreyOpaque70}",dark:"{colorGreyOpaque70}"},colorBackgroundNotificationBlue:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorBackgroundNotificationGreen:{light:"{colorGreen600}",dark:"{colorGreen600}"},colorBackgroundNotificationGrey:{light:"{colorGrey600}",dark:"{colorGrey550}"},colorBackgroundNotificationRed:{light:"{colorRed600}",dark:"{colorRed600}"},colorBackgroundNotificationYellow:{light:"{colorYellow600}",dark:"{colorYellow600}"},colorBackgroundNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarActive:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarHover:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundPopover:{light:"{colorWhite}",dark:"{colorGrey750}"},colorBackgroundProgressBarContentDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundProgressBarContentInFlash:{light:"{colorWhite}",dark:"{colorWhite}"},colorBackgroundProgressBarLayoutDefault:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundProgressBarLayoutInFlash:{light:"{colorGreyOpaque25}",dark:"{colorGreyOpaque25}"},colorBackgroundSegmentActive:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundSegmentDefault:{light:"{colorBackgroundButtonNormalDefault}",dark:"{colorBackgroundButtonNormalDefault}"},colorBackgroundSegmentDisabled:{light:"{colorBackgroundButtonNormalDisabled}",dark:"{colorBackgroundButtonNormalDisabled}"},colorBackgroundSegmentHover:{light:"{colorBackgroundSegmentDefault}",dark:"{colorBackgroundSegmentDefault}"},colorBackgroundStatusError:{light:"{colorRed100}",dark:"{colorRed900}"},colorBackgroundStatusInfo:{light:"{colorBlue100}",dark:"{colorBlue900}"},colorBackgroundStatusSuccess:{light:"{colorGreen100}",dark:"{colorGreen900}"},colorBackgroundStatusWarning:{light:"{colorYellow100}",dark:"{colorYellow900}"},colorBackgroundTableHeader:{light:"{colorBackgroundContainerHeader}",dark:"{colorBackgroundContainerHeader}"},colorBackgroundTilesDisabled:{light:"{colorGrey200}",dark:"{colorGrey750}"},colorBackgroundToggleCheckedDisabled:{light:"{colorBlue300}",dark:"{colorBlue800}"},colorBackgroundToggleDefault:{light:"{colorGrey600}",dark:"{colorGrey500}"},colorBorderButtonNormalActive:{light:"{colorBlue800}",dark:"{colorBlue400}"},colorBorderButtonNormalDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBorderButtonNormalDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorBorderButtonNormalHover:{light:"{colorBlue800}",dark:"{colorBlue400}"},colorBorderButtonPrimaryDisabled:{light:"{colorBackgroundButtonPrimaryDisabled}",dark:"{colorBackgroundButtonPrimaryDisabled}"},colorBorderCalendarGrid:{light:"transparent",dark:"transparent"},colorBorderCalendarGridSelectedFocusRing:{light:"{colorGrey100}",dark:"{colorGrey800}"},colorBorderCodeEditorAceActiveLineLightTheme:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderCodeEditorAceActiveLineDarkTheme:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderCodeEditorDefault:{light:"{colorGrey300}",dark:"{colorGrey550}"},colorBorderCodeEditorPaneItemHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderContainerDivider:{light:"transparent",dark:"transparent"},colorBorderContainerTop:{light:"transparent",dark:"transparent"},colorBorderControlChecked:{light:"{colorBackgroundControlChecked}",dark:"{colorBackgroundControlChecked}"},colorBorderControlDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderControlDisabled:{light:"{colorBackgroundControlDisabled}",dark:"{colorBackgroundControlDisabled}"},colorBorderDividerActive:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorBorderDividerDefault:{light:"{colorGrey350}",dark:"{colorGrey600}"},colorBorderDividerPanelBottom:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerPanelSide:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerSecondary:{light:"{colorGrey200}",dark:"{colorGrey700}"},colorBorderDropdownContainer:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorBorderDropdownGroup:{light:"{colorBorderDropdownItemDefault}",dark:"{colorBorderDropdownItemDefault}"},colorBorderDropdownItemDefault:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDropdownItemHover:{light:"{colorGrey500}",dark:"{colorGrey550}"},colorBorderDropdownItemDimmedHover:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderDropdownItemSelected:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderDropdownItemTop:{light:"transparent",dark:"transparent"},colorBorderEditableCellHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderInputDefault:{light:"{colorGrey500}",dark:"{colorGrey550}"},colorBorderInputDisabled:{light:"{colorBackgroundInputDisabled}",dark:"{colorBackgroundInputDisabled}"},colorBorderInputFocused:{light:"{colorBlue800}",dark:"{colorBlue300}"},colorBorderItemFocused:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBorderDropdownItemFocused:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorBorderItemPlaceholder:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderItemSelected:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBorderLayout:{light:"{colorGrey300}",dark:"{colorGrey650}"},colorBorderNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBorderPopover:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorBorderSegmentActive:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorBorderSegmentDisabled:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentHover:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderStatusError:{light:"{colorRed600}",dark:"{colorRed500}"},colorBorderStatusInfo:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBorderStatusSuccess:{light:"{colorGreen600}",dark:"{colorGreen500}"},colorBorderStatusWarning:{light:"{colorYellow800}",dark:"{colorYellow700}"},colorBorderDividerInteractiveDefault:{light:"{colorGrey500}",dark:"{colorGrey300}"},colorBorderTabsDivider:{light:"{colorGrey350}",dark:"{colorGrey600}"},colorBorderTabsShadow:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorBorderTabsUnderline:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorBorderTilesDisabled:{light:"{colorBackgroundTilesDisabled}",dark:"{colorBackgroundTilesDisabled}"},colorBorderTutorial:{light:"{colorGrey300}",dark:"{colorGrey600}"},colorForegroundControlDefault:{light:"{colorWhite}",dark:"{colorGrey900}"},colorForegroundControlDisabled:{light:"{colorWhite}",dark:"{colorGrey800}"},colorShadowDefault:{light:"{colorGreyTransparentHeavy}",dark:"{colorGreyTransparentHeavy}"},colorShadowMedium:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorShadowSide:{light:"{colorGreyTransparentLight}",dark:"{colorGreyTransparentLight}"},colorStrokeChartLine:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorStrokeCodeEditorResizeHandler:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorStrokeCodeEditorGutterActiveLineDefault:{light:"{colorGrey300}",dark:"{colorGrey750}"},colorStrokeCodeEditorGutterActiveLineHover:{light:"{colorGrey100}",dark:"{colorGrey900}"},colorTextAccent:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextBodyDefault:{light:"{colorGrey900}",dark:"{colorGrey350}"},colorTextBodySecondary:{light:"{colorGrey600}",dark:"{colorGrey350}"},colorTextBreadcrumbCurrent:{light:"{colorGrey550}",dark:"{colorGrey500}"},colorTextBreadcrumbIcon:{light:"{colorGrey500}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconDefault:{light:"{colorTextLinkDefault}",dark:"{colorTextLinkDefault}"},colorTextButtonInlineIconDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconHover:{light:"{colorTextLinkHover}",dark:"{colorTextLinkHover}"},colorTextButtonNormalActive:{light:"{colorBlue800}",dark:"{colorBlue400}"},colorTextButtonNormalDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextButtonNormalHover:{light:"{colorBlue800}",dark:"{colorBlue400}"},colorTextLinkButtonNormalDefault:{light:"{colorTextButtonNormalDefault}",dark:"{colorTextButtonNormalDefault}"},colorTextLinkButtonNormalHover:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorTextLinkButtonNormalActive:{light:"{colorTextButtonNormalActive}",dark:"{colorTextButtonNormalActive}"},colorTextButtonPrimaryActive:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextButtonPrimaryDefault:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextButtonPrimaryHover:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextCalendarDateHover:{light:"{colorTextDropdownItemDefault}",dark:"{colorTextDropdownItemDefault}"},colorTextCalendarDateSelected:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorTextCalendarMonth:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextCodeEditorGutterActiveLine:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextCodeEditorGutterDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextCodeEditorStatusBarDisabled:{light:"{colorGrey500}",dark:"{colorGrey550}"},colorTextCodeEditorTabButtonError:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextColumnHeader:{light:"{colorGrey600}",dark:"{colorGrey400}"},colorTextColumnSortingIcon:{light:"{colorTextColumnHeader}",dark:"{colorTextColumnHeader}"},colorTextControlDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextCounter:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorTextDisabledInlineEdit:{light:"{colorGrey600}",dark:"{colorGrey400}"},colorTextDropdownFooter:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownGroupLabel:{light:"{colorTextGroupLabel}",dark:"{colorTextGroupLabel}"},colorTextDropdownItemDefault:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextDropdownItemDimmed:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemFilterMatch:{light:"{colorBlue600}",dark:"{colorBlue400}"},colorTextDropdownItemHighlighted:{light:"{colorGrey900}",dark:"{colorGrey200}"},colorTextDropdownItemSecondary:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownItemSecondaryHover:{light:"{colorGrey550}",dark:"{colorGrey300}"},colorTextEmpty:{light:"{colorGrey550}",dark:"{colorGrey300}"},colorTextExpandableSectionDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextExpandableSectionHover:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorTextExpandableSectionNavigationIconDefault:{light:"{colorTextInteractiveDefault}",dark:"{colorTextInteractiveDefault}"},colorTextFormDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextFormLabel:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextFormSecondary:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextGroupLabel:{light:"{colorGrey600}",dark:"{colorGrey350}"},colorTextHeadingDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextHeadingSecondary:{light:"{colorGrey600}",dark:"{colorGrey450}"},colorTextHomeHeaderDefault:{light:"{colorGrey200}",dark:"{colorGrey200}"},colorTextHomeHeaderSecondary:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextIconCaret:{light:"{colorGrey500}",dark:"{colorGrey450}"},colorTextIconSubtle:{light:"{colorGrey550}",dark:"{colorGrey400}"},colorTextInputDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorTextInputPlaceholder:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextInputPlaceholderDisabled:{light:"{colorTextInputDisabled}",dark:"{colorTextInputDisabled}"},colorTextInteractiveActive:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorTextInteractiveDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorTextInteractiveDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorTextInteractiveHover:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorTextInteractiveInvertedDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextInteractiveInvertedHover:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextInverted:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextLabel:{light:"{colorTextFormLabel}",dark:"{colorTextFormLabel}"},colorTextLayoutToggle:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLayoutToggleActive:{light:"{colorWhite}",dark:"{colorGrey800}"},colorTextLayoutToggleHover:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextLayoutToggleSelected:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextLinkDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextLinkHover:{light:"{colorBlue800}",dark:"{colorBlue400}"},colorTextLinkInvertedHover:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLinkButtonUnderline:{light:"transparent",dark:"transparent"},colorTextLinkButtonUnderlineHover:{light:"transparent",dark:"transparent"},colorTextNotificationDefault:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextNotificationStackBar:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextNotificationYellow:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextPaginationPageNumberActiveDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextPaginationPageNumberDefault:{light:"{colorTextInteractiveDefault}",dark:"{colorGrey400}"},colorTextSegmentActive:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextSegmentDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorTextSegmentHover:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextSmall:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextStatusError:{light:"{colorRed600}",dark:"{colorRed500}"},colorTextStatusInactive:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextStatusInfo:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextStatusSuccess:{light:"{colorGreen600}",dark:"{colorGreen500}"},colorTextStatusWarning:{light:"{colorYellow800}",dark:"{colorYellow700}"},colorTextTopNavigationTitle:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorBoardPlaceholderActive:{light:"{colorGrey200}",dark:"{colorGrey550}"},colorBoardPlaceholderHover:{light:"{colorBlue200}",dark:"{colorBlue600}"},colorDragPlaceholderActive:{light:"{colorGrey200}",dark:"{colorGrey550}"},colorDragPlaceholderHover:{light:"{colorBlue200}",dark:"{colorBlue600}"},colorDropzoneBackgroundActive:{light:"{colorGrey200}",dark:"{colorGrey500}"},colorDropzoneBackgroundHover:{light:"{colorBlue200}",dark:"{colorBlue600}"},colorDropzoneTextActive:{light:"{colorGrey550}",dark:"{colorGrey800}"},colorDropzoneTextHover:{light:"{colorBlue800}",dark:"{colorWhite}"},fontBoxValueLargeWeight:"700",fontButtonLetterSpacing:"0.005em",fontButtonWeight:"700",fontChartDetailSize:"{fontSizeBodyS}",fontDisplayLabelWeight:"700",fontExpandableHeadingSize:"{fontSizeHeadingS}",fontFamilyBase:"'Open Sans', 'Helvetica Neue', Roboto, Arial, sans-serif",fontFamilyMonospace:"Monaco, Menlo, Consolas, 'Courier Prime', Courier, 'Courier New', monospace",fontHeaderH2DescriptionLineHeight:"{lineHeightBodyM}",fontHeaderH2DescriptionSize:"{fontSizeBodyM}",fontLinkButtonLetterSpacing:"{fontButtonLetterSpacing}",fontLinkButtonWeight:"{fontButtonWeight}",fontPanelHeaderLineHeight:"{lineHeightHeadingM}",fontPanelHeaderSize:"{fontSizeHeadingM}",fontSizeBodyM:"14px",fontSizeBodyS:"12px",fontSizeDisplayL:"42px",fontSizeHeadingXl:"24px",fontSizeHeadingL:"20px",fontSizeHeadingM:"18px",fontSizeHeadingS:"16px",fontSizeHeadingXs:"14px",fontSmoothingMozOsx:"grayscale",fontSmoothingWebkit:"antialiased",fontTabsDisabledWeight:"{fontWayfindingLinkActiveWeight}",fontTabsLineHeight:"{lineHeightHeadingS}",fontTabsSize:"{fontSizeHeadingS}",fontWayfindingLinkActiveWeight:"700",fontWeightHeadingXl:"700",fontWeightHeadingL:"700",fontWeightHeadingM:"700",fontWeightHeadingS:"700",fontWeightHeadingXs:"700",fontWeightHeavy:"700",letterSpacingBodyS:"0.005em",letterSpacingDisplayL:"-0.03em",letterSpacingHeadingXl:"-0.02em",letterSpacingHeadingL:"-0.015em",letterSpacingHeadingM:"-0.010em",letterSpacingHeadingS:"-0.005em",lineHeightBodyM:"20px",lineHeightBodyS:"16px",lineHeightDisplayL:"48px",lineHeightHeadingXl:"30px",lineHeightHeadingL:"24px",lineHeightHeadingM:"22px",lineHeightHeadingS:"20px",lineHeightHeadingXs:"18px",borderActiveWidth:"4px",borderCodeEditorStatusDividerWidth:"{borderDividerSectionWidth}",borderContainerStickyWidth:"0px",borderContainerTopWidth:"0px",borderControlFocusRingShadowSpread:"0px",borderControlInvalidFocusRingShadowSpread:"2px",borderDividerListWidth:"1px",borderDividerSectionWidth:"1px",borderDropdownVirtualOffsetWidth:"2px",borderFieldWidth:"2px",borderInvalidWidth:"8px",borderItemWidth:"2px",borderLineChartDashArray:"3 5",borderLineChartLineJoin:"round",borderLineChartWidth:"2px",borderPanelHeaderWidth:"1px",borderPanelTopWidth:"1px",borderRadiusAlert:"{borderRadiusFlashbar}",borderRadiusBadge:"4px",borderRadiusButton:"20px",borderRadiusCalendarDayFocusRing:"3px",borderRadiusCodeEditor:"{borderRadiusInput}",borderRadiusContainer:"16px",borderRadiusControlCircularFocusRing:"4px",borderRadiusControlDefaultFocusRing:"4px",borderRadiusDropdown:"{borderRadiusItem}",borderRadiusDropzone:"12px",borderRadiusFlashbar:"12px",borderRadiusItem:"8px",borderRadiusInput:"8px",borderRadiusPopover:"{borderRadiusInput}",borderRadiusTabsFocusRing:"20px",borderRadiusTiles:"{borderRadiusInput}",borderRadiusToken:"{borderRadiusInput}",borderRadiusTutorialPanelItem:"{borderRadiusInput}",borderTableStickyWidth:"1px",borderLinkFocusRingOutline:"0",borderLinkFocusRingShadowSpread:"2px",motionDurationExtraFast:{default:"45ms",disabled:"0ms"},motionDurationExtraSlow:{default:"270ms",disabled:"0ms"},motionDurationFast:{default:"90ms",disabled:"0ms"},motionDurationModerate:{default:"135ms",disabled:"0ms"},motionDurationRefreshOnlyAmbient:{default:"2000ms",disabled:"0ms"},motionDurationRefreshOnlyFast:{default:"115ms",disabled:"0ms"},motionDurationRefreshOnlyMedium:{default:"165ms",disabled:"0ms"},motionDurationRefreshOnlySlow:{default:"250ms",disabled:"0ms"},motionDurationRotate180:{default:"{motionDurationModerate}",disabled:"{motionDurationModerate}"},motionDurationRotate90:{default:"{motionDurationModerate}",disabled:"{motionDurationModerate}"},motionDurationShowPaced:{default:"{motionDurationSlow}",disabled:"{motionDurationSlow}"},motionDurationShowQuick:{default:"{motionDurationModerate}",disabled:"{motionDurationModerate}"},motionDurationSlow:{default:"180ms",disabled:"0ms"},motionDurationTransitionQuick:{default:"{motionDurationFast}",disabled:"{motionDurationFast}"},motionDurationTransitionShowPaced:{default:"{motionDurationSlow}",disabled:"{motionDurationSlow}"},motionDurationTransitionShowQuick:{default:"{motionDurationFast}",disabled:"{motionDurationFast}"},motionEasingEaseOutQuart:{default:"cubic-bezier(0.165, 0.84, 0.44, 1)",disabled:"cubic-bezier(0.165, 0.84, 0.44, 1)"},motionEasingRefreshOnlyA:{default:"cubic-bezier(0, 0, 0, 1)",disabled:"cubic-bezier(0, 0, 0, 1)"},motionEasingRefreshOnlyB:{default:"cubic-bezier(1, 0, 0.83, 1)",disabled:"cubic-bezier(1, 0, 0.83, 1)"},motionEasingRefreshOnlyC:{default:"cubic-bezier(0.84, 0, 0.16, 1)",disabled:"cubic-bezier(0.84, 0, 0.16, 1)"},motionEasingRefreshOnlyD:{default:"cubic-bezier(0.33, 0, 0.67, 1)",disabled:"cubic-bezier(0.33, 0, 0.67, 1)"},motionEasingRotate180:{default:"{motionEasingEaseOutQuart}",disabled:"{motionEasingEaseOutQuart}"},motionEasingRotate90:{default:"{motionEasingEaseOutQuart}",disabled:"{motionEasingEaseOutQuart}"},motionEasingShowPaced:{default:"ease-out",disabled:"ease-out"},motionEasingShowQuick:{default:"ease-out",disabled:"ease-out"},motionEasingTransitionQuick:{default:"linear",disabled:"linear"},motionEasingTransitionShowPaced:{default:"ease-out",disabled:"ease-out"},motionEasingTransitionShowQuick:{default:"linear",disabled:"linear"},motionEasingResponsive:{default:"{motionEasingRefreshOnlyA}",disabled:"{motionEasingRefreshOnlyA}"},motionEasingSticky:{default:"{motionEasingRefreshOnlyB}",disabled:"{motionEasingRefreshOnlyB}"},motionEasingExpressive:{default:"{motionEasingRefreshOnlyC}",disabled:"{motionEasingRefreshOnlyC}"},motionDurationResponsive:{default:"{motionDurationRefreshOnlyFast}",disabled:"{motionDurationRefreshOnlyFast}"},motionDurationExpressive:{default:"{motionDurationRefreshOnlyMedium}",disabled:"{motionDurationRefreshOnlyMedium}"},motionDurationComplex:{default:"{motionDurationRefreshOnlySlow}",disabled:"{motionDurationRefreshOnlySlow}"},motionKeyframesFadeIn:{default:"awsui-fade-in-35003c",disabled:"awsui-fade-in-35003c"},motionKeyframesFadeOut:{default:"awsui-fade-out-35003c",disabled:"awsui-fade-out-35003c"},motionKeyframesStatusIconError:{default:"awsui-status-icon-error-35003c",disabled:"awsui-status-icon-error-35003c"},motionKeyframesScalePopup:{default:"awsui-scale-popup-35003c",disabled:"awsui-scale-popup-35003c"},sizeCalendarGridWidth:{comfortable:"238px",compact:"238px"},sizeControl:{comfortable:"16px",compact:"16px"},sizeIconBig:{comfortable:"32px",compact:"32px"},sizeIconLarge:{comfortable:"48px",compact:"48px"},sizeIconMedium:{comfortable:"20px",compact:"20px"},sizeIconNormal:{comfortable:"16px",compact:"16px"},sizeTableSelectionHorizontal:{comfortable:"40px",compact:"40px"},sizeVerticalInput:{comfortable:"32px",compact:"28px"},sizeVerticalPanelIconOffset:{comfortable:"15px",compact:"13px"},spaceAlertActionLeft:{comfortable:"{spaceS}",compact:"{spaceS}"},spaceAlertHorizontal:{comfortable:"{spaceFlashbarHorizontal}",compact:"{spaceFlashbarHorizontal}"},spaceAlertMessageRight:{comfortable:"{spaceXxs}",compact:"{spaceXxs}"},spaceAlertVertical:{comfortable:"{spaceScaledXs}",compact:"{spaceScaledXs}"},spaceButtonFocusOutlineGutter:{comfortable:"4px",compact:"4px"},spaceButtonHorizontal:{comfortable:"{spaceScaledL}",compact:"{spaceScaledL}"},spaceButtonIconFocusOutlineGutterVertical:{comfortable:"0px",compact:"0px"},spaceButtonIconOnlyHorizontal:{comfortable:"6px",compact:"{spaceXxs}"},spaceButtonInlineIconFocusOutlineGutter:{comfortable:"0px",compact:"0px"},spaceButtonModalDismissVertical:{comfortable:"{spaceScaledXxxs}",compact:"{spaceScaledXxxs}"},spaceCalendarGridFocusOutlineGutter:{comfortable:"-5px",compact:"-5px"},spaceCalendarGridSelectedFocusOutlineGutter:{comfortable:"{spaceCalendarGridFocusOutlineGutter}",compact:"{spaceCalendarGridFocusOutlineGutter}"},spaceCalendarGridGutter:{comfortable:"6px",compact:"6px"},spaceCardHorizontal:{comfortable:"{spaceContainerHorizontal}",compact:"{spaceContainerHorizontal}"},spaceCardVertical:{comfortable:"{spaceScaledM}",compact:"{spaceScaledM}"},spaceCodeEditorStatusFocusOutlineGutter:{comfortable:"-7px",compact:"-7px"},spaceContainerContentTop:{comfortable:"{spaceXxs}",compact:"{spaceXxs}"},spaceContainerHeaderTop:{comfortable:"{spaceS}",compact:"{spaceS}"},spaceContainerHeaderBottom:{comfortable:"{spaceScaledXs}",compact:"{spaceScaledXs}"},spaceContainerHorizontal:{comfortable:"{spaceL}",compact:"{spaceL}"},spaceContentHeaderPaddingBottom:{comfortable:"{spaceScaledM}",compact:"{spaceScaledM}"},spaceDarkHeaderOverlapDistance:{comfortable:"36px",compact:"32px"},spaceExpandableSectionIconOffsetTop:{comfortable:"{spaceScaled2xXxs}",compact:"{spaceScaled2xXxs}"},spaceFieldHorizontal:{comfortable:"{spaceS}",compact:"{spaceS}"},spaceFieldIconOffset:{comfortable:"36px",compact:"36px"},spaceFilteringTokenDismissButtonFocusOutlineGutter:{comfortable:"-5px",compact:"-5px"},spaceFilteringTokenOperationSelectFocusOutlineGutter:{comfortable:"-5px",compact:"-5px"},spaceFlashbarActionLeft:{comfortable:"{spaceS}",compact:"{spaceS}"},spaceFlashbarDismissRight:{comfortable:"0px",compact:"0px"},spaceFlashbarHorizontal:{comfortable:"{spaceM}",compact:"{spaceM}"},spaceGridGutter:{comfortable:"{spaceL}",compact:"{spaceM}"},spaceKeyValueGap:{comfortable:"0px",compact:"0px"},spaceLayoutContentBottom:{comfortable:"{spaceScaled2xXxxl}",compact:"{spaceScaled2xXxxl}"},spaceLayoutContentHorizontal:{comfortable:"{spaceScaled2xXl}",compact:"{spaceScaled2xXl}"},spaceLayoutToggleDiameter:{comfortable:"36px",compact:"36px"},spaceLayoutTogglePadding:{comfortable:"{spaceStaticS}",compact:"{spaceStaticS}"},spaceModalContentBottom:{comfortable:"{spaceScaled2xM}",compact:"{spaceScaled2xM}"},spaceModalHorizontal:{comfortable:"{spaceContainerHorizontal}",compact:"{spaceContainerHorizontal}"},spaceOptionIconBigTop:{comfortable:"0px",compact:"0px"},spacePanelNavLeft:{comfortable:"28px",compact:"28px"},spacePanelSideLeft:{comfortable:"28px",compact:"28px"},spacePanelSideRight:{comfortable:"{spaceScaledXl}",compact:"{spaceScaledXl}"},spacePanelSplitTop:{comfortable:"{spaceScaledL}",compact:"{spaceScaledL}"},spaceSegmentedControlFocusOutlineGutter:{comfortable:"4px",compact:"4px"},spaceTabsContentTop:{comfortable:"{spaceScaledS}",compact:"{spaceScaledS}"},spaceTabsFocusOutlineGutter:{comfortable:"-8px",compact:"-8px"},spaceTableContentBottom:{comfortable:"{spaceXxs}",compact:"{spaceXxs}"},spaceTableEmbeddedHeaderTop:{comfortable:"0px",compact:"0px"},spaceTableFooterHorizontal:{comfortable:"{spaceTableHeaderHorizontal}",compact:"{spaceTableHeaderHorizontal}"},spaceTableHeaderFocusOutlineGutter:{comfortable:"0px",compact:"-1px"},spaceTableHeaderHorizontal:{comfortable:"0px",compact:"0px"},spaceTableHeaderToolsBottom:{comfortable:"0px",compact:"0px"},spaceTableHeaderToolsFullPageBottom:{comfortable:"4px",compact:"4px"},spaceTableHorizontal:{comfortable:"{spaceContainerHorizontal}",compact:"{spaceContainerHorizontal}"},spaceScaled2xNone:{comfortable:"{spaceNone}",compact:"{spaceNone}"},spaceScaled2xXxxs:{comfortable:"{spaceXxxs}",compact:"{spaceNone}"},spaceScaled2xXxs:{comfortable:"{spaceXxs}",compact:"{spaceNone}"},spaceScaled2xXs:{comfortable:"{spaceXs}",compact:"{spaceNone}"},spaceScaled2xS:{comfortable:"{spaceS}",compact:"{spaceXxs}"},spaceScaled2xM:{comfortable:"{spaceM}",compact:"{spaceXs}"},spaceScaled2xL:{comfortable:"{spaceL}",compact:"{spaceS}"},spaceScaled2xXl:{comfortable:"{spaceXl}",compact:"{spaceM}"},spaceScaled2xXxl:{comfortable:"{spaceXxl}",compact:"{spaceL}"},spaceScaled2xXxxl:{comfortable:"{spaceXxxl}",compact:"{spaceXl}"},spaceScaledNone:{comfortable:"{spaceNone}",compact:"{spaceNone}"},spaceScaledXxxs:{comfortable:"{spaceXxxs}",compact:"{spaceNone}"},spaceScaledXxs:{comfortable:"{spaceXxs}",compact:"{spaceXxxs}"},spaceScaledXs:{comfortable:"{spaceXs}",compact:"{spaceXxs}"},spaceScaledS:{comfortable:"{spaceS}",compact:"{spaceXs}"},spaceScaledM:{comfortable:"{spaceM}",compact:"{spaceS}"},spaceScaledL:{comfortable:"{spaceL}",compact:"{spaceM}"},spaceScaledXl:{comfortable:"{spaceXl}",compact:"{spaceL}"},spaceScaledXxl:{comfortable:"{spaceXxl}",compact:"{spaceXl}"},spaceScaledXxxl:{comfortable:"{spaceXxxl}",compact:"{spaceXxl}"},spaceStaticXxxs:{comfortable:"{spaceXxxs}",compact:"{spaceXxxs}"},spaceStaticXxs:{comfortable:"{spaceXxs}",compact:"{spaceXxs}"},spaceStaticXs:{comfortable:"{spaceXs}",compact:"{spaceXs}"},spaceStaticS:{comfortable:"{spaceS}",compact:"{spaceS}"},spaceStaticM:{comfortable:"{spaceM}",compact:"{spaceM}"},spaceStaticL:{comfortable:"{spaceL}",compact:"{spaceL}"},spaceStaticXl:{comfortable:"{spaceXl}",compact:"{spaceXl}"},spaceStaticXxl:{comfortable:"{spaceXxl}",compact:"{spaceXxl}"},spaceStaticXxxl:{comfortable:"{spaceXxxl}",compact:"{spaceXxxl}"},spaceNone:{comfortable:"0px",compact:"0px"},spaceXxxs:{comfortable:"2px",compact:"2px"},spaceXxs:{comfortable:"4px",compact:"4px"},spaceXs:{comfortable:"8px",compact:"8px"},spaceS:{comfortable:"12px",compact:"12px"},spaceM:{comfortable:"16px",compact:"16px"},spaceL:{comfortable:"20px",compact:"20px"},spaceXl:{comfortable:"24px",compact:"24px"},spaceXxl:{comfortable:"32px",compact:"32px"},spaceXxxl:{comfortable:"40px",compact:"40px"},shadowContainer:{light:"0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12)",dark:"0px 1px 8px 2px rgba(0, 7, 22, 0.6)"},shadowContainerStacked:{light:"-1px 1px 1px 0px #e9ebed, 1px 1px 1px 0px #e9ebed, 0px 9px 8px -7px rgb(0 7 22 / 12%), 8px 0px 8px -7px rgb(0 7 22 / 12%), -8px 0px 8px -7px rgb(0 7 22 / 12%)",dark:"0px 9px 8px -7px rgb(0 7 22 / 60%), 8px 0px 8px -7px rgb(0 7 22 / 60%), -8px 0px 8px -7px rgb(0 7 22 / 60%)"},shadowContainerActive:{light:"0px 1px 1px 1px #e9ebed, 0px 6px 36px #0007161a",dark:"0px 1px 1px 1px #192534, 0px 6px 36px #00040c"},shadowDropdown:{light:"0px 4px 20px 1px rgba(0, 7, 22, 0.10)",dark:"0px 4px 20px 1px rgba(0, 4, 12, 1)"},shadowDropup:{light:"{shadowDropdown}",dark:"{shadowDropdown}"},shadowFlashCollapsed:{light:"0px 4px 4px rgba(0, 0, 0, 0.25)",dark:"0px 4px 4px rgba(0, 0, 0, 0.25)"},shadowFlashSticky:{light:"0px 4px 8px rgba(0, 7, 22, 0.10)",dark:"0px 4px 8px rgba(0, 7, 22, 0.5)"},shadowModal:{light:"{shadowDropdown}",dark:"{shadowDropdown}"},shadowPanel:{light:"0px 0px 0px 1px #b6bec9",dark:"0px 0px 0px 1px #414d5c"},shadowPanelToggle:{light:"0px 6px 12px 1px rgba(0, 7, 22, 0.12)",dark:"0px 6px 12px 1px rgba(0, 7, 22, 1)"},shadowPopover:{light:"{shadowDropdown}",dark:"{shadowDropdown}"},shadowSplitBottom:{light:"0px -36px 36px -36px rgba(0, 7, 22, 0.10)",dark:"0px -36px 36px -36px rgba(0, 7, 22, 1)"},shadowSplitSide:{light:"-1px 0px 1px 0px #e9ebed, -36px 6px 36px -36px rgba(0, 7, 22, 0.10)",dark:"-1px 0px 1px 0px #192534, -36px 6px 36px -36px rgba(0, 7, 22, 1)"},shadowSticky:{light:"0px 4px 8px 1px rgba(0, 7, 22, 0.10)",dark:"0px 4px 8px 1px rgba(0, 7, 22, 0.5)"},shadowStickyEmbedded:{light:"0px 2px 0px 0px #e9ebed, 0px 16px 16px -12px rgba(0, 7, 22, 0.10)",dark:"0px 2px 0px 0px #414d5c, 0px 16px 16px -12px rgba(0, 7, 22, 1)"},shadowStickyColumnFirst:{light:"4px 0px 8px 1px rgba(0, 7, 22, 0.1)",dark:"0px 4px 8px 1px rgba(0, 7, 22, 0.5)"},shadowStickyColumnLast:{light:"-4px 0 8px 1px rgba(0, 28, 36, 0.1)",dark:"0px 4px 8px 1px rgba(0, 7, 22, 0.5)"}},contexts:{"compact-table":{id:"compact-table",selector:".awsui-context-compact-table",tokens:{spaceAlertActionLeft:{comfortable:"{spaceS}",compact:"{spaceS}"},spaceAlertHorizontal:{comfortable:"{spaceFlashbarHorizontal}",compact:"{spaceFlashbarHorizontal}"},spaceAlertMessageRight:{comfortable:"{spaceXxs}",compact:"{spaceXxs}"},spaceAlertVertical:{comfortable:"{spaceScaledXs}",compact:"{spaceScaledXs}"},spaceButtonFocusOutlineGutter:{comfortable:"4px",compact:"4px"},spaceButtonHorizontal:{comfortable:"{spaceScaledL}",compact:"{spaceScaledL}"},spaceButtonIconFocusOutlineGutterVertical:{comfortable:"0px",compact:"0px"},spaceButtonIconOnlyHorizontal:{comfortable:"6px",compact:"{spaceXxs}"},spaceButtonInlineIconFocusOutlineGutter:{comfortable:"0px",compact:"0px"},spaceButtonModalDismissVertical:{comfortable:"{spaceScaledXxxs}",compact:"{spaceScaledXxxs}"},spaceCalendarGridFocusOutlineGutter:{comfortable:"-5px",compact:"-5px"},spaceCalendarGridSelectedFocusOutlineGutter:{comfortable:"{spaceCalendarGridFocusOutlineGutter}",compact:"{spaceCalendarGridFocusOutlineGutter}"},spaceCalendarGridGutter:{comfortable:"6px",compact:"6px"},spaceCardHorizontal:{comfortable:"{spaceContainerHorizontal}",compact:"{spaceContainerHorizontal}"},spaceCardVertical:{comfortable:"{spaceScaledM}",compact:"{spaceScaledM}"},spaceCodeEditorStatusFocusOutlineGutter:{comfortable:"-7px",compact:"-7px"},spaceContainerContentTop:{comfortable:"{spaceXxs}",compact:"{spaceXxs}"},spaceContainerHeaderTop:{comfortable:"{spaceS}",compact:"{spaceS}"},spaceContainerHeaderBottom:{comfortable:"{spaceScaledXs}",compact:"{spaceScaledXs}"},spaceContainerHorizontal:{comfortable:"{spaceL}",compact:"{spaceL}"},spaceContentHeaderPaddingBottom:{comfortable:"{spaceScaledM}",compact:"{spaceScaledM}"},spaceDarkHeaderOverlapDistance:{comfortable:"36px",compact:"32px"},spaceExpandableSectionIconOffsetTop:{comfortable:"{spaceScaled2xXxs}",compact:"{spaceScaled2xXxs}"},spaceFieldHorizontal:{comfortable:"{spaceS}",compact:"{spaceS}"},spaceFieldIconOffset:{comfortable:"36px",compact:"36px"},spaceFilteringTokenDismissButtonFocusOutlineGutter:{comfortable:"-5px",compact:"-5px"},spaceFilteringTokenOperationSelectFocusOutlineGutter:{comfortable:"-5px",compact:"-5px"},spaceFlashbarActionLeft:{comfortable:"{spaceS}",compact:"{spaceS}"},spaceFlashbarDismissRight:{comfortable:"0px",compact:"0px"},spaceFlashbarHorizontal:{comfortable:"{spaceM}",compact:"{spaceM}"},spaceGridGutter:{comfortable:"{spaceL}",compact:"{spaceM}"},spaceKeyValueGap:{comfortable:"0px",compact:"0px"},spaceLayoutContentBottom:{comfortable:"{spaceScaled2xXxxl}",compact:"{spaceScaled2xXxxl}"},spaceLayoutContentHorizontal:{comfortable:"{spaceScaled2xXl}",compact:"{spaceScaled2xXl}"},spaceLayoutToggleDiameter:{comfortable:"36px",compact:"36px"},spaceLayoutTogglePadding:{comfortable:"{spaceStaticS}",compact:"{spaceStaticS}"},spaceModalContentBottom:{comfortable:"{spaceScaled2xM}",compact:"{spaceScaled2xM}"},spaceModalHorizontal:{comfortable:"{spaceContainerHorizontal}",compact:"{spaceContainerHorizontal}"},spaceOptionIconBigTop:{comfortable:"0px",compact:"0px"},spacePanelNavLeft:{comfortable:"28px",compact:"28px"},spacePanelSideLeft:{comfortable:"28px",compact:"28px"},spacePanelSideRight:{comfortable:"{spaceScaledXl}",compact:"{spaceScaledXl}"},spacePanelSplitTop:{comfortable:"{spaceScaledL}",compact:"{spaceScaledL}"},spaceSegmentedControlFocusOutlineGutter:{comfortable:"4px",compact:"4px"},spaceTabsContentTop:{comfortable:"{spaceScaledS}",compact:"{spaceScaledS}"},spaceTabsFocusOutlineGutter:{comfortable:"-8px",compact:"-8px"},spaceTableContentBottom:{comfortable:"{spaceXxs}",compact:"{spaceXxs}"},spaceTableEmbeddedHeaderTop:{comfortable:"0px",compact:"0px"},spaceTableFooterHorizontal:{comfortable:"{spaceTableHeaderHorizontal}",compact:"{spaceTableHeaderHorizontal}"},spaceTableHeaderFocusOutlineGutter:{comfortable:"0px",compact:"-1px"},spaceTableHeaderHorizontal:{comfortable:"0px",compact:"0px"},spaceTableHeaderToolsBottom:{comfortable:"0px",compact:"0px"},spaceTableHeaderToolsFullPageBottom:{comfortable:"4px",compact:"4px"},spaceTableHorizontal:{comfortable:"{spaceContainerHorizontal}",compact:"{spaceContainerHorizontal}"},spaceScaled2xNone:{comfortable:"{spaceNone}",compact:"{spaceNone}"},spaceScaled2xXxxs:{comfortable:"{spaceXxxs}",compact:"{spaceNone}"},spaceScaled2xXxs:{comfortable:"{spaceXxs}",compact:"{spaceNone}"},spaceScaled2xXs:{comfortable:"{spaceXs}",compact:"{spaceNone}"},spaceScaled2xS:{comfortable:"{spaceS}",compact:"{spaceXxs}"},spaceScaled2xM:{comfortable:"{spaceM}",compact:"{spaceXs}"},spaceScaled2xL:{comfortable:"{spaceL}",compact:"{spaceS}"},spaceScaled2xXl:{comfortable:"{spaceXl}",compact:"{spaceM}"},spaceScaled2xXxl:{comfortable:"{spaceXxl}",compact:"{spaceL}"},spaceScaled2xXxxl:{comfortable:"{spaceXxxl}",compact:"{spaceXl}"},spaceScaledNone:{comfortable:"{spaceNone}",compact:"{spaceNone}"},spaceScaledXxxs:{comfortable:"{spaceNone}",compact:"{spaceNone}"},spaceScaledXxs:{comfortable:"{spaceXxxs}",compact:"{spaceXxxs}"},spaceScaledXs:{comfortable:"{spaceXxs}",compact:"{spaceXxs}"},spaceScaledS:{comfortable:"{spaceXs}",compact:"{spaceXs}"},spaceScaledM:{comfortable:"{spaceS}",compact:"{spaceS}"},spaceScaledL:{comfortable:"{spaceM}",compact:"{spaceM}"},spaceScaledXl:{comfortable:"{spaceL}",compact:"{spaceL}"},spaceScaledXxl:{comfortable:"{spaceXl}",compact:"{spaceXl}"},spaceScaledXxxl:{comfortable:"{spaceXxl}",compact:"{spaceXxl}"},spaceStaticXxxs:{comfortable:"{spaceXxxs}",compact:"{spaceXxxs}"},spaceStaticXxs:{comfortable:"{spaceXxs}",compact:"{spaceXxs}"},spaceStaticXs:{comfortable:"{spaceXs}",compact:"{spaceXs}"},spaceStaticS:{comfortable:"{spaceS}",compact:"{spaceS}"},spaceStaticM:{comfortable:"{spaceM}",compact:"{spaceM}"},spaceStaticL:{comfortable:"{spaceL}",compact:"{spaceL}"},spaceStaticXl:{comfortable:"{spaceXl}",compact:"{spaceXl}"},spaceStaticXxl:{comfortable:"{spaceXxl}",compact:"{spaceXxl}"},spaceStaticXxxl:{comfortable:"{spaceXxxl}",compact:"{spaceXxxl}"},spaceNone:{comfortable:"0px",compact:"0px"},spaceXxxs:{comfortable:"2px",compact:"2px"},spaceXxs:{comfortable:"4px",compact:"4px"},spaceXs:{comfortable:"8px",compact:"8px"},spaceS:{comfortable:"12px",compact:"12px"},spaceM:{comfortable:"16px",compact:"16px"},spaceL:{comfortable:"20px",compact:"20px"},spaceXl:{comfortable:"24px",compact:"24px"},spaceXxl:{comfortable:"32px",compact:"32px"},spaceXxxl:{comfortable:"40px",compact:"40px"},sizeVerticalInput:{comfortable:"28px",compact:"28px"}}},"top-navigation":{id:"top-navigation",selector:".awsui-context-top-navigation",tokens:{colorGreyOpaque25:{light:"rgba(255, 255, 255, 0.25)",dark:"rgba(255, 255, 255, 0.25)"},colorGreyOpaque40:{light:"rgba(0, 0, 0, 0.4)",dark:"rgba(0, 0, 0, 0.4)"},colorGreyOpaque50:{light:"rgba(0, 0, 0, 0.5)",dark:"rgba(0, 0, 0, 0.5)"},colorGreyOpaque70:{light:"rgba(0, 7, 22, 0.7)",dark:"rgba(0, 7, 22, 0.7)"},colorGreyOpaque80:{light:"rgba(22, 25, 31, 0.8)",dark:"rgba(22, 25, 31, 0.8)"},colorGreyOpaque90:{light:"rgba(242, 243, 243, 0.9)",dark:"rgba(242, 243, 243, 0.9)"},colorGreyTransparent:{light:"rgba(0, 7, 22, 1)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentHeavy:{light:"rgba(0, 7, 22, 1)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentLight:{light:"rgba(0, 7, 22, 1)",dark:"rgba(0, 7, 22, 1)"},colorBackgroundBadgeIcon:{light:"{colorRed500}",dark:"{colorRed500}"},colorBackgroundButtonLinkActive:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundButtonLinkHover:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundButtonNormalActive:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundButtonNormalDefault:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundButtonNormalDisabled:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundButtonNormalHover:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundButtonPrimaryActive:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundButtonPrimaryDefault:{light:"{colorBorderButtonNormalDefault}",dark:"{colorBorderButtonNormalDefault}"},colorBackgroundButtonPrimaryDisabled:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundButtonPrimaryHover:{light:"{colorBorderButtonNormalHover}",dark:"{colorBorderButtonNormalHover}"},colorBackgroundCalendarCurrentDate:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundCellShaded:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundCodeEditorGutterActiveLineDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBackgroundCodeEditorGutterActiveLineError:{light:"{colorTextStatusError}",dark:"{colorTextStatusError}"},colorBackgroundCodeEditorGutterDefault:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundCodeEditorLoading:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundCodeEditorPaneItemHover:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundCodeEditorStatusBar:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundContainerContent:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundContainerHeader:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundControlChecked:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundControlDefault:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundControlDisabled:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundDropdownItemDefault:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundDropdownItemDimmed:{light:"transparent",dark:"transparent"},colorBackgroundDropdownItemFilterMatch:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundDropdownItemHover:{light:"{colorGrey850}",dark:"{colorGrey850}"},colorBackgroundDropdownItemSelected:{light:"{colorBackgroundItemSelected}",dark:"{colorBackgroundItemSelected}"},colorBackgroundHomeHeader:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundInputDefault:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundInputDisabled:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundItemSelected:{light:"{colorBlue900}",dark:"{colorBlue900}"},colorBackgroundLayoutMain:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundLayoutMobilePanel:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundLayoutPanelContent:{light:"{colorBackgroundContainerContent}",dark:"{colorBackgroundContainerContent}"},colorBackgroundLayoutPanelHover:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundLayoutToggleActive:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleDefault:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleHover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBackgroundLayoutToggleSelectedActive:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedHover:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorBackgroundModalOverlay:{light:"{colorGreyOpaque70}",dark:"{colorGreyOpaque70}"},colorBackgroundNotificationBlue:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorBackgroundNotificationGreen:{light:"{colorGreen600}",dark:"{colorGreen600}"},colorBackgroundNotificationGrey:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBackgroundNotificationRed:{light:"{colorRed600}",dark:"{colorRed600}"},colorBackgroundNotificationYellow:{light:"{colorYellow600}",dark:"{colorYellow600}"},colorBackgroundNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarActive:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarHover:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundPopover:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundProgressBarContentDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundProgressBarContentInFlash:{light:"{colorWhite}",dark:"{colorWhite}"},colorBackgroundProgressBarLayoutDefault:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundProgressBarLayoutInFlash:{light:"{colorGreyOpaque25}",dark:"{colorGreyOpaque25}"},colorBackgroundSegmentActive:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundSegmentDefault:{light:"{colorBackgroundButtonNormalDefault}",dark:"{colorBackgroundButtonNormalDefault}"},colorBackgroundSegmentDisabled:{light:"{colorBackgroundButtonNormalDisabled}",dark:"{colorBackgroundButtonNormalDisabled}"},colorBackgroundSegmentHover:{light:"{colorBackgroundSegmentDefault}",dark:"{colorBackgroundSegmentDefault}"},colorBackgroundStatusError:{light:"{colorRed900}",dark:"{colorRed900}"},colorBackgroundStatusInfo:{light:"{colorBlue900}",dark:"{colorBlue900}"},colorBackgroundStatusSuccess:{light:"{colorGreen900}",dark:"{colorGreen900}"},colorBackgroundStatusWarning:{light:"{colorYellow900}",dark:"{colorYellow900}"},colorBackgroundTableHeader:{light:"{colorBackgroundContainerHeader}",dark:"{colorBackgroundContainerHeader}"},colorBackgroundTilesDisabled:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundToggleCheckedDisabled:{light:"{colorBlue800}",dark:"{colorBlue800}"},colorBackgroundToggleDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderButtonNormalActive:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorBorderButtonNormalDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBorderButtonNormalDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderButtonNormalHover:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorBorderButtonPrimaryDisabled:{light:"{colorBackgroundButtonPrimaryDisabled}",dark:"{colorBackgroundButtonPrimaryDisabled}"},colorBorderCalendarGrid:{light:"transparent",dark:"transparent"},colorBorderCalendarGridSelectedFocusRing:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBorderCodeEditorAceActiveLineLightTheme:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderCodeEditorAceActiveLineDarkTheme:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderCodeEditorDefault:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderCodeEditorPaneItemHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderContainerDivider:{light:"transparent",dark:"transparent"},colorBorderContainerTop:{light:"transparent",dark:"transparent"},colorBorderControlChecked:{light:"{colorBackgroundControlChecked}",dark:"{colorBackgroundControlChecked}"},colorBorderControlDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderControlDisabled:{light:"{colorBackgroundControlDisabled}",dark:"{colorBackgroundControlDisabled}"},colorBorderDividerActive:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorBorderDividerDefault:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBorderDividerPanelBottom:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerPanelSide:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerSecondary:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBorderDropdownContainer:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderDropdownGroup:{light:"{colorBorderDropdownItemDefault}",dark:"{colorBorderDropdownItemDefault}"},colorBorderDropdownItemDefault:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDropdownItemHover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderDropdownItemDimmedHover:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderDropdownItemSelected:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderDropdownItemTop:{light:"transparent",dark:"transparent"},colorBorderEditableCellHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderInputDefault:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderInputDisabled:{light:"{colorBackgroundInputDisabled}",dark:"{colorBackgroundInputDisabled}"},colorBorderInputFocused:{light:"{colorBlue300}",dark:"{colorBlue300}"},colorBorderItemFocused:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBorderDropdownItemFocused:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderItemPlaceholder:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderItemSelected:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBorderLayout:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBorderNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBorderPopover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderSegmentActive:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderSegmentDisabled:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentHover:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderStatusError:{light:"{colorRed500}",dark:"{colorRed500}"},colorBorderStatusInfo:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBorderStatusSuccess:{light:"{colorGreen500}",dark:"{colorGreen500}"},colorBorderStatusWarning:{light:"{colorYellow700}",dark:"{colorYellow700}"},colorBorderDividerInteractiveDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderTabsDivider:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBorderTabsShadow:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorBorderTabsUnderline:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorBorderTilesDisabled:{light:"{colorBackgroundTilesDisabled}",dark:"{colorBackgroundTilesDisabled}"},colorBorderTutorial:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorForegroundControlDefault:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorForegroundControlDisabled:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorShadowDefault:{light:"{colorGreyTransparentHeavy}",dark:"{colorGreyTransparentHeavy}"},colorShadowMedium:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorShadowSide:{light:"{colorGreyTransparentLight}",dark:"{colorGreyTransparentLight}"},colorStrokeChartLine:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorStrokeCodeEditorResizeHandler:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorStrokeCodeEditorGutterActiveLineDefault:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorStrokeCodeEditorGutterActiveLineHover:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextAccent:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextBodyDefault:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextBodySecondary:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextBreadcrumbCurrent:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorTextBreadcrumbIcon:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconDefault:{light:"{colorTextLinkDefault}",dark:"{colorTextLinkDefault}"},colorTextButtonInlineIconDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconHover:{light:"{colorTextLinkHover}",dark:"{colorTextLinkHover}"},colorTextButtonNormalActive:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorTextButtonNormalDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextButtonNormalHover:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorTextLinkButtonNormalDefault:{light:"{colorTextButtonNormalDefault}",dark:"{colorTextButtonNormalDefault}"},colorTextLinkButtonNormalHover:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorTextLinkButtonNormalActive:{light:"{colorTextButtonNormalActive}",dark:"{colorTextButtonNormalActive}"},colorTextButtonPrimaryActive:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextButtonPrimaryDefault:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextButtonPrimaryHover:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextCalendarDateHover:{light:"{colorTextDropdownItemDefault}",dark:"{colorTextDropdownItemDefault}"},colorTextCalendarDateSelected:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorTextCalendarMonth:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextCodeEditorGutterActiveLine:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextCodeEditorGutterDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextCodeEditorStatusBarDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorTextCodeEditorTabButtonError:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextColumnHeader:{light:"{colorGrey400}",dark:"{colorGrey400}"},colorTextColumnSortingIcon:{light:"{colorTextColumnHeader}",dark:"{colorTextColumnHeader}"},colorTextControlDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextCounter:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorTextDisabledInlineEdit:{light:"{colorGrey400}",dark:"{colorGrey400}"},colorTextDropdownFooter:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownGroupLabel:{light:"{colorTextGroupLabel}",dark:"{colorTextGroupLabel}"},colorTextDropdownItemDefault:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextDropdownItemDimmed:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemFilterMatch:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorTextDropdownItemHighlighted:{light:"{colorGrey200}",dark:"{colorGrey200}"},colorTextDropdownItemSecondary:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownItemSecondaryHover:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextEmpty:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextExpandableSectionDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextExpandableSectionHover:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorTextExpandableSectionNavigationIconDefault:{light:"{colorTextInteractiveDefault}",dark:"{colorTextInteractiveDefault}"},colorTextFormDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextFormLabel:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextFormSecondary:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextGroupLabel:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextHeadingDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextHeadingSecondary:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextHomeHeaderDefault:{light:"{colorGrey200}",dark:"{colorGrey200}"},colorTextHomeHeaderSecondary:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextIconCaret:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextIconSubtle:{light:"{colorGrey400}",dark:"{colorGrey400}"},colorTextInputDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorTextInputPlaceholder:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextInputPlaceholderDisabled:{light:"{colorTextInputDisabled}",dark:"{colorTextInputDisabled}"},colorTextInteractiveActive:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextInteractiveDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextInteractiveDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorTextInteractiveHover:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextInteractiveInvertedDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextInteractiveInvertedHover:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextInverted:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextLabel:{light:"{colorTextFormLabel}",dark:"{colorTextFormLabel}"},colorTextLayoutToggle:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLayoutToggleActive:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorTextLayoutToggleHover:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextLayoutToggleSelected:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextLinkDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextLinkHover:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorTextLinkInvertedHover:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLinkButtonUnderline:{light:"transparent",dark:"transparent"},colorTextLinkButtonUnderlineHover:{light:"transparent",dark:"transparent"},colorTextNotificationDefault:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextNotificationStackBar:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextNotificationYellow:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextPaginationPageNumberActiveDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextPaginationPageNumberDefault:{light:"{colorGrey400}",dark:"{colorGrey400}"},colorTextSegmentActive:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextSegmentDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextSegmentHover:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextSmall:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextStatusError:{light:"{colorRed500}",dark:"{colorRed500}"},colorTextStatusInactive:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextStatusInfo:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextStatusSuccess:{light:"{colorGreen500}",dark:"{colorGreen500}"},colorTextStatusWarning:{light:"{colorYellow700}",dark:"{colorYellow700}"},colorTextTopNavigationTitle:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorBoardPlaceholderActive:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBoardPlaceholderHover:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorDragPlaceholderActive:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorDragPlaceholderHover:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorDropzoneBackgroundActive:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorDropzoneBackgroundHover:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorDropzoneTextActive:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorDropzoneTextHover:{light:"{colorWhite}",dark:"{colorWhite}"}}},header:{id:"header",selector:".awsui-context-content-header",tokens:{shadowContainer:{light:"0px 1px 8px 2px rgba(0, 7, 22, 0.6)",dark:"0px 1px 8px 2px rgba(0, 7, 22, 0.6)"},shadowContainerStacked:{light:"0px 9px 8px -7px rgb(0 7 22 / 60%), 8px 0px 8px -7px rgb(0 7 22 / 60%), -8px 0px 8px -7px rgb(0 7 22 / 60%)",dark:"0px 9px 8px -7px rgb(0 7 22 / 60%), 8px 0px 8px -7px rgb(0 7 22 / 60%), -8px 0px 8px -7px rgb(0 7 22 / 60%)"},shadowContainerActive:{light:"0px 1px 1px 1px #192534, 0px 6px 36px #00040c",dark:"0px 1px 1px 1px #192534, 0px 6px 36px #00040c"},shadowDropdown:{light:"0px 4px 20px 1px rgba(0, 4, 12, 1)",dark:"0px 4px 20px 1px rgba(0, 4, 12, 1)"},shadowDropup:{light:"{shadowDropdown}",dark:"{shadowDropdown}"},shadowFlashCollapsed:{light:"0px 4px 4px rgba(0, 0, 0, 0.25)",dark:"0px 4px 4px rgba(0, 0, 0, 0.25)"},shadowFlashSticky:{light:"0px 4px 8px rgba(0, 7, 22, 0.10)",dark:"0px 4px 8px rgba(0, 7, 22, 0.5)"},shadowModal:{light:"{shadowDropdown}",dark:"{shadowDropdown}"},shadowPanel:{light:"0px 0px 0px 1px #b6bec9",dark:"0px 0px 0px 1px #414d5c"},shadowPanelToggle:{light:"0px 6px 12px 1px rgba(0, 7, 22, 0.12)",dark:"0px 6px 12px 1px rgba(0, 7, 22, 1)"},shadowPopover:{light:"{shadowDropdown}",dark:"{shadowDropdown}"},shadowSplitBottom:{light:"0px -36px 36px -36px rgba(0, 7, 22, 1)",dark:"0px -36px 36px -36px rgba(0, 7, 22, 1)"},shadowSplitSide:{light:"-1px 0px 1px 0px #192534, -36px 6px 36px -36px rgba(0, 7, 22, 1)",dark:"-1px 0px 1px 0px #192534, -36px 6px 36px -36px rgba(0, 7, 22, 1)"},shadowSticky:{light:"0px 4px 8px 1px rgba(0, 7, 22, 0.5)",dark:"0px 4px 8px 1px rgba(0, 7, 22, 0.5)"},shadowStickyEmbedded:{light:"0px 2px 0px 0px #414d5c, 0px 16px 16px -12px rgba(0, 7, 22, 1)",dark:"0px 2px 0px 0px #414d5c, 0px 16px 16px -12px rgba(0, 7, 22, 1)"},shadowStickyColumnFirst:{light:"0px 4px 8px 1px rgba(0, 7, 22, 0.5)",dark:"0px 4px 8px 1px rgba(0, 7, 22, 0.5)"},shadowStickyColumnLast:{light:"0px 4px 8px 1px rgba(0, 7, 22, 0.5)",dark:"0px 4px 8px 1px rgba(0, 7, 22, 0.5)"},colorGreyOpaque25:{light:"rgba(255, 255, 255, 0.25)",dark:"rgba(255, 255, 255, 0.25)"},colorGreyOpaque40:{light:"rgba(0, 0, 0, 0.4)",dark:"rgba(0, 0, 0, 0.4)"},colorGreyOpaque50:{light:"rgba(0, 0, 0, 0.5)",dark:"rgba(0, 0, 0, 0.5)"},colorGreyOpaque70:{light:"rgba(0, 7, 22, 0.7)",dark:"rgba(0, 7, 22, 0.7)"},colorGreyOpaque80:{light:"rgba(22, 25, 31, 0.8)",dark:"rgba(22, 25, 31, 0.8)"},colorGreyOpaque90:{light:"rgba(242, 243, 243, 0.9)",dark:"rgba(242, 243, 243, 0.9)"},colorGreyTransparent:{light:"rgba(0, 7, 22, 1)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentHeavy:{light:"rgba(0, 7, 22, 1)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentLight:{light:"rgba(0, 7, 22, 1)",dark:"rgba(0, 7, 22, 1)"},colorBackgroundBadgeIcon:{light:"{colorRed500}",dark:"{colorRed500}"},colorBackgroundButtonLinkActive:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundButtonLinkHover:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundButtonNormalActive:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundButtonNormalDefault:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundButtonNormalDisabled:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundButtonNormalHover:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundButtonPrimaryActive:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundButtonPrimaryDefault:{light:"{colorBorderButtonNormalDefault}",dark:"{colorBorderButtonNormalDefault}"},colorBackgroundButtonPrimaryDisabled:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundButtonPrimaryHover:{light:"{colorBorderButtonNormalHover}",dark:"{colorBorderButtonNormalHover}"},colorBackgroundCalendarCurrentDate:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundCellShaded:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundCodeEditorGutterActiveLineDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBackgroundCodeEditorGutterActiveLineError:{light:"{colorTextStatusError}",dark:"{colorTextStatusError}"},colorBackgroundCodeEditorGutterDefault:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundCodeEditorLoading:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundCodeEditorPaneItemHover:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundCodeEditorStatusBar:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundContainerContent:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundContainerHeader:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundControlChecked:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundControlDefault:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundControlDisabled:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundDropdownItemDefault:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundDropdownItemDimmed:{light:"transparent",dark:"transparent"},colorBackgroundDropdownItemFilterMatch:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundDropdownItemHover:{light:"{colorGrey850}",dark:"{colorGrey850}"},colorBackgroundDropdownItemSelected:{light:"{colorBackgroundItemSelected}",dark:"{colorBackgroundItemSelected}"},colorBackgroundHomeHeader:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundInputDefault:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundInputDisabled:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundItemSelected:{light:"{colorBlue900}",dark:"{colorBlue900}"},colorBackgroundLayoutMain:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundLayoutMobilePanel:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundLayoutPanelContent:{light:"{colorBackgroundContainerContent}",dark:"{colorBackgroundContainerContent}"},colorBackgroundLayoutPanelHover:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundLayoutToggleActive:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleDefault:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleHover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBackgroundLayoutToggleSelectedActive:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedHover:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorBackgroundModalOverlay:{light:"{colorGreyOpaque70}",dark:"{colorGreyOpaque70}"},colorBackgroundNotificationBlue:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorBackgroundNotificationGreen:{light:"{colorGreen600}",dark:"{colorGreen600}"},colorBackgroundNotificationGrey:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBackgroundNotificationRed:{light:"{colorRed600}",dark:"{colorRed600}"},colorBackgroundNotificationYellow:{light:"{colorYellow600}",dark:"{colorYellow600}"},colorBackgroundNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarActive:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarHover:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundPopover:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundProgressBarContentDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundProgressBarContentInFlash:{light:"{colorWhite}",dark:"{colorWhite}"},colorBackgroundProgressBarLayoutDefault:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundProgressBarLayoutInFlash:{light:"{colorGreyOpaque25}",dark:"{colorGreyOpaque25}"},colorBackgroundSegmentActive:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundSegmentDefault:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundSegmentDisabled:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundSegmentHover:{light:"{colorBackgroundSegmentDefault}",dark:"{colorBackgroundSegmentDefault}"},colorBackgroundStatusError:{light:"{colorRed900}",dark:"{colorRed900}"},colorBackgroundStatusInfo:{light:"{colorBlue900}",dark:"{colorBlue900}"},colorBackgroundStatusSuccess:{light:"{colorGreen900}",dark:"{colorGreen900}"},colorBackgroundStatusWarning:{light:"{colorYellow900}",dark:"{colorYellow900}"},colorBackgroundTableHeader:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundTilesDisabled:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundToggleCheckedDisabled:{light:"{colorBlue800}",dark:"{colorBlue800}"},colorBackgroundToggleDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderButtonNormalActive:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorBorderButtonNormalDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBorderButtonNormalDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderButtonNormalHover:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorBorderButtonPrimaryDisabled:{light:"{colorBackgroundButtonPrimaryDisabled}",dark:"{colorBackgroundButtonPrimaryDisabled}"},colorBorderCalendarGrid:{light:"transparent",dark:"transparent"},colorBorderCalendarGridSelectedFocusRing:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBorderCodeEditorAceActiveLineLightTheme:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderCodeEditorAceActiveLineDarkTheme:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderCodeEditorDefault:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderCodeEditorPaneItemHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderContainerDivider:{light:"transparent",dark:"transparent"},colorBorderContainerTop:{light:"transparent",dark:"transparent"},colorBorderControlChecked:{light:"{colorBackgroundControlChecked}",dark:"{colorBackgroundControlChecked}"},colorBorderControlDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderControlDisabled:{light:"{colorBackgroundControlDisabled}",dark:"{colorBackgroundControlDisabled}"},colorBorderDividerActive:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorBorderDividerDefault:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBorderDividerPanelBottom:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerPanelSide:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerSecondary:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBorderDropdownContainer:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderDropdownGroup:{light:"{colorBorderDropdownItemDefault}",dark:"{colorBorderDropdownItemDefault}"},colorBorderDropdownItemDefault:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDropdownItemHover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderDropdownItemDimmedHover:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderDropdownItemSelected:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderDropdownItemTop:{light:"transparent",dark:"transparent"},colorBorderEditableCellHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderInputDefault:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderInputDisabled:{light:"{colorBackgroundInputDisabled}",dark:"{colorBackgroundInputDisabled}"},colorBorderInputFocused:{light:"{colorBlue300}",dark:"{colorBlue300}"},colorBorderItemFocused:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBorderDropdownItemFocused:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderItemPlaceholder:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderItemSelected:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBorderLayout:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBorderNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBorderPopover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderSegmentActive:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderSegmentDisabled:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentHover:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderStatusError:{light:"{colorRed500}",dark:"{colorRed500}"},colorBorderStatusInfo:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBorderStatusSuccess:{light:"{colorGreen500}",dark:"{colorGreen500}"},colorBorderStatusWarning:{light:"{colorYellow700}",dark:"{colorYellow700}"},colorBorderDividerInteractiveDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderTabsDivider:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBorderTabsShadow:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorBorderTabsUnderline:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorBorderTilesDisabled:{light:"{colorBackgroundTilesDisabled}",dark:"{colorBackgroundTilesDisabled}"},colorBorderTutorial:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorForegroundControlDefault:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorForegroundControlDisabled:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorShadowDefault:{light:"{colorGreyTransparentHeavy}",dark:"{colorGreyTransparentHeavy}"},colorShadowMedium:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorShadowSide:{light:"{colorGreyTransparentLight}",dark:"{colorGreyTransparentLight}"},colorStrokeChartLine:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorStrokeCodeEditorResizeHandler:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorStrokeCodeEditorGutterActiveLineDefault:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorStrokeCodeEditorGutterActiveLineHover:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextAccent:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextBodyDefault:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextBodySecondary:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextBreadcrumbCurrent:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorTextBreadcrumbIcon:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconDefault:{light:"{colorTextLinkDefault}",dark:"{colorTextLinkDefault}"},colorTextButtonInlineIconDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconHover:{light:"{colorTextLinkHover}",dark:"{colorTextLinkHover}"},colorTextButtonNormalActive:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorTextButtonNormalDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextButtonNormalHover:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorTextLinkButtonNormalDefault:{light:"{colorTextButtonNormalDefault}",dark:"{colorTextButtonNormalDefault}"},colorTextLinkButtonNormalHover:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorTextLinkButtonNormalActive:{light:"{colorTextButtonNormalActive}",dark:"{colorTextButtonNormalActive}"},colorTextButtonPrimaryActive:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextButtonPrimaryDefault:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextButtonPrimaryHover:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextCalendarDateHover:{light:"{colorTextDropdownItemDefault}",dark:"{colorTextDropdownItemDefault}"},colorTextCalendarDateSelected:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorTextCalendarMonth:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextCodeEditorGutterActiveLine:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextCodeEditorGutterDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextCodeEditorStatusBarDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorTextCodeEditorTabButtonError:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextColumnHeader:{light:"{colorGrey400}",dark:"{colorGrey400}"},colorTextColumnSortingIcon:{light:"{colorTextColumnHeader}",dark:"{colorTextColumnHeader}"},colorTextControlDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextCounter:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorTextDisabledInlineEdit:{light:"{colorGrey400}",dark:"{colorGrey400}"},colorTextDropdownFooter:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownGroupLabel:{light:"{colorTextGroupLabel}",dark:"{colorTextGroupLabel}"},colorTextDropdownItemDefault:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextDropdownItemDimmed:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemFilterMatch:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorTextDropdownItemHighlighted:{light:"{colorGrey200}",dark:"{colorGrey200}"},colorTextDropdownItemSecondary:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownItemSecondaryHover:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextEmpty:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextExpandableSectionDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextExpandableSectionHover:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorTextExpandableSectionNavigationIconDefault:{light:"{colorTextInteractiveDefault}",dark:"{colorTextInteractiveDefault}"},colorTextFormDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextFormLabel:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextFormSecondary:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextGroupLabel:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextHeadingDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextHeadingSecondary:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextHomeHeaderDefault:{light:"{colorGrey200}",dark:"{colorGrey200}"},colorTextHomeHeaderSecondary:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextIconCaret:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextIconSubtle:{light:"{colorGrey400}",dark:"{colorGrey400}"},colorTextInputDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorTextInputPlaceholder:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextInputPlaceholderDisabled:{light:"{colorTextInputDisabled}",dark:"{colorTextInputDisabled}"},colorTextInteractiveActive:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextInteractiveDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextInteractiveDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorTextInteractiveHover:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextInteractiveInvertedDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextInteractiveInvertedHover:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextInverted:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextLabel:{light:"{colorTextFormLabel}",dark:"{colorTextFormLabel}"},colorTextLayoutToggle:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLayoutToggleActive:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorTextLayoutToggleHover:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextLayoutToggleSelected:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextLinkDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextLinkHover:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorTextLinkInvertedHover:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLinkButtonUnderline:{light:"transparent",dark:"transparent"},colorTextLinkButtonUnderlineHover:{light:"transparent",dark:"transparent"},colorTextNotificationDefault:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextNotificationStackBar:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextNotificationYellow:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextPaginationPageNumberActiveDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextPaginationPageNumberDefault:{light:"{colorGrey400}",dark:"{colorGrey400}"},colorTextSegmentActive:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextSegmentDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextSegmentHover:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextSmall:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextStatusError:{light:"{colorRed500}",dark:"{colorRed500}"},colorTextStatusInactive:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextStatusInfo:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextStatusSuccess:{light:"{colorGreen500}",dark:"{colorGreen500}"},colorTextStatusWarning:{light:"{colorYellow700}",dark:"{colorYellow700}"},colorTextTopNavigationTitle:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorBoardPlaceholderActive:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBoardPlaceholderHover:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorDragPlaceholderActive:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorDragPlaceholderHover:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorDropzoneBackgroundActive:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorDropzoneBackgroundHover:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorDropzoneTextActive:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorDropzoneTextHover:{light:"{colorWhite}",dark:"{colorWhite}"}}},flashbar:{id:"flashbar",selector:".awsui-context-flashbar",tokens:{colorGreyOpaque25:{light:"rgba(255, 255, 255, 0.25)",dark:"rgba(255, 255, 255, 0.25)"},colorGreyOpaque40:{light:"rgba(0, 0, 0, 0.4)",dark:"rgba(0, 0, 0, 0.4)"},colorGreyOpaque50:{light:"rgba(0, 0, 0, 0.5)",dark:"rgba(0, 0, 0, 0.5)"},colorGreyOpaque70:{light:"rgba(35, 47, 62, 0.7)",dark:"rgba(0, 7, 22, 0.7)"},colorGreyOpaque80:{light:"rgba(22, 25, 31, 0.8)",dark:"rgba(22, 25, 31, 0.8)"},colorGreyOpaque90:{light:"rgba(242, 243, 243, 0.9)",dark:"rgba(242, 243, 243, 0.9)"},colorGreyTransparent:{light:"rgba(0, 7, 22, 0.12)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentHeavy:{light:"rgba(0, 7, 22, 0.12)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentLight:{light:"rgba(0, 7, 22, 0.12)",dark:"rgba(0, 7, 22, 1)"},colorBackgroundBadgeIcon:{light:"{colorRed600}",dark:"{colorRed500}"},colorBackgroundButtonLinkActive:{light:"{colorBlue200}",dark:"{colorGrey650}"},colorBackgroundButtonLinkHover:{light:"{colorBlue100}",dark:"{colorGrey750}"},colorBackgroundButtonNormalActive:{light:"rgba(0, 7, 22, 0.2)",dark:"rgba(0, 7, 22, 0.2)"},colorBackgroundButtonNormalDefault:{light:"transparent",dark:"transparent"},colorBackgroundButtonNormalDisabled:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundButtonNormalHover:{light:"rgba(0, 7, 22, 0.15)",dark:"rgba(0, 7, 22, 0.15)"},colorBackgroundButtonPrimaryActive:{light:"{colorBlue800}",dark:"{colorBlue500}"},colorBackgroundButtonPrimaryDefault:{light:"{colorBorderButtonNormalDefault}",dark:"{colorBorderButtonNormalDefault}"},colorBackgroundButtonPrimaryDisabled:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundButtonPrimaryHover:{light:"{colorBorderButtonNormalHover}",dark:"{colorBorderButtonNormalHover}"},colorBackgroundCalendarCurrentDate:{light:"{colorGrey150}",dark:"{colorGrey650}"},colorBackgroundCellShaded:{light:"{colorGrey125}",dark:"{colorGrey750}"},colorBackgroundCodeEditorGutterActiveLineDefault:{light:"{colorGrey550}",dark:"{colorGrey500}"},colorBackgroundCodeEditorGutterActiveLineError:{light:"{colorTextStatusError}",dark:"{colorTextStatusError}"},colorBackgroundCodeEditorGutterDefault:{light:"{colorGrey150}",dark:"{colorGrey750}"},colorBackgroundCodeEditorLoading:{light:"{colorGrey100}",dark:"{colorGrey750}"},colorBackgroundCodeEditorPaneItemHover:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundCodeEditorStatusBar:{light:"{colorGrey150}",dark:"{colorGrey750}"},colorBackgroundContainerContent:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundContainerHeader:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundControlChecked:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundControlDefault:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundControlDisabled:{light:"{colorGrey300}",dark:"{colorGrey650}"},colorBackgroundDropdownItemDefault:{light:"{colorWhite}",dark:"{colorGrey750}"},colorBackgroundDropdownItemDimmed:{light:"transparent",dark:"transparent"},colorBackgroundDropdownItemFilterMatch:{light:"{colorBlue100}",dark:"{colorGrey650}"},colorBackgroundDropdownItemHover:{light:"{colorGrey150}",dark:"{colorGrey850}"},colorBackgroundDropdownItemSelected:{light:"{colorBackgroundItemSelected}",dark:"{colorBackgroundItemSelected}"},colorBackgroundHomeHeader:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundInputDefault:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundInputDisabled:{light:"{colorGrey200}",dark:"{colorGrey750}"},colorBackgroundItemSelected:{light:"{colorBlue100}",dark:"{colorBlue900}"},colorBackgroundLayoutMain:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundLayoutMobilePanel:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundLayoutPanelContent:{light:"{colorBackgroundContainerContent}",dark:"{colorBackgroundContainerContent}"},colorBackgroundLayoutPanelHover:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundLayoutToggleActive:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleDefault:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleHover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBackgroundLayoutToggleSelectedActive:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedHover:{light:"{colorBlue700}",dark:"{colorBlue400}"},colorBackgroundModalOverlay:{light:"{colorGreyOpaque70}",dark:"{colorGreyOpaque70}"},colorBackgroundNotificationBlue:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorBackgroundNotificationGreen:{light:"{colorGreen600}",dark:"{colorGreen600}"},colorBackgroundNotificationGrey:{light:"{colorGrey600}",dark:"{colorGrey550}"},colorBackgroundNotificationRed:{light:"{colorRed600}",dark:"{colorRed600}"},colorBackgroundNotificationYellow:{light:"{colorYellow600}",dark:"{colorYellow600}"},colorBackgroundNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarActive:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarHover:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundPopover:{light:"{colorWhite}",dark:"{colorGrey750}"},colorBackgroundProgressBarContentDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundProgressBarContentInFlash:{light:"{colorWhite}",dark:"{colorWhite}"},colorBackgroundProgressBarLayoutDefault:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundProgressBarLayoutInFlash:{light:"{colorGreyOpaque25}",dark:"{colorGreyOpaque25}"},colorBackgroundSegmentActive:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundSegmentDefault:{light:"{colorBackgroundButtonNormalDefault}",dark:"{colorBackgroundButtonNormalDefault}"},colorBackgroundSegmentDisabled:{light:"{colorBackgroundButtonNormalDisabled}",dark:"{colorBackgroundButtonNormalDisabled}"},colorBackgroundSegmentHover:{light:"{colorBackgroundSegmentDefault}",dark:"{colorBackgroundSegmentDefault}"},colorBackgroundStatusError:{light:"{colorRed100}",dark:"{colorRed900}"},colorBackgroundStatusInfo:{light:"{colorBlue100}",dark:"{colorBlue900}"},colorBackgroundStatusSuccess:{light:"{colorGreen100}",dark:"{colorGreen900}"},colorBackgroundStatusWarning:{light:"{colorYellow100}",dark:"{colorYellow900}"},colorBackgroundTableHeader:{light:"{colorBackgroundContainerHeader}",dark:"{colorBackgroundContainerHeader}"},colorBackgroundTilesDisabled:{light:"{colorGrey200}",dark:"{colorGrey750}"},colorBackgroundToggleCheckedDisabled:{light:"{colorBlue300}",dark:"{colorBlue800}"},colorBackgroundToggleDefault:{light:"{colorGrey600}",dark:"{colorGrey500}"},colorBorderButtonNormalActive:{light:"{colorWhite}",dark:"{colorWhite}"},colorBorderButtonNormalDefault:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorBorderButtonNormalDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorBorderButtonNormalHover:{light:"{colorWhite}",dark:"{colorWhite}"},colorBorderButtonPrimaryDisabled:{light:"{colorBackgroundButtonPrimaryDisabled}",dark:"{colorBackgroundButtonPrimaryDisabled}"},colorBorderCalendarGrid:{light:"transparent",dark:"transparent"},colorBorderCalendarGridSelectedFocusRing:{light:"{colorGrey100}",dark:"{colorGrey800}"},colorBorderCodeEditorAceActiveLineLightTheme:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderCodeEditorAceActiveLineDarkTheme:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderCodeEditorDefault:{light:"{colorGrey300}",dark:"{colorGrey550}"},colorBorderCodeEditorPaneItemHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderContainerDivider:{light:"transparent",dark:"transparent"},colorBorderContainerTop:{light:"transparent",dark:"transparent"},colorBorderControlChecked:{light:"{colorBackgroundControlChecked}",dark:"{colorBackgroundControlChecked}"},colorBorderControlDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderControlDisabled:{light:"{colorBackgroundControlDisabled}",dark:"{colorBackgroundControlDisabled}"},colorBorderDividerActive:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorBorderDividerDefault:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorBorderDividerPanelBottom:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerPanelSide:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerSecondary:{light:"{colorGrey200}",dark:"{colorGrey700}"},colorBorderDropdownContainer:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorBorderDropdownGroup:{light:"{colorBorderDropdownItemDefault}",dark:"{colorBorderDropdownItemDefault}"},colorBorderDropdownItemDefault:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDropdownItemHover:{light:"{colorGrey500}",dark:"{colorGrey550}"},colorBorderDropdownItemDimmedHover:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderDropdownItemSelected:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderDropdownItemTop:{light:"transparent",dark:"transparent"},colorBorderEditableCellHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderInputDefault:{light:"{colorGrey500}",dark:"{colorGrey550}"},colorBorderInputDisabled:{light:"{colorBackgroundInputDisabled}",dark:"{colorBackgroundInputDisabled}"},colorBorderInputFocused:{light:"{colorBlue800}",dark:"{colorBlue300}"},colorBorderItemFocused:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorBorderDropdownItemFocused:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorBorderItemPlaceholder:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderItemSelected:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBorderLayout:{light:"{colorGrey300}",dark:"{colorGrey650}"},colorBorderNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBorderPopover:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorBorderSegmentActive:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorBorderSegmentDisabled:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentHover:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderStatusError:{light:"{colorRed600}",dark:"{colorRed500}"},colorBorderStatusInfo:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBorderStatusSuccess:{light:"{colorGreen600}",dark:"{colorGreen500}"},colorBorderStatusWarning:{light:"{colorYellow800}",dark:"{colorYellow700}"},colorBorderDividerInteractiveDefault:{light:"{colorGrey500}",dark:"{colorGrey300}"},colorBorderTabsDivider:{light:"{colorGrey350}",dark:"{colorGrey600}"},colorBorderTabsShadow:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorBorderTabsUnderline:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorBorderTilesDisabled:{light:"{colorBackgroundTilesDisabled}",dark:"{colorBackgroundTilesDisabled}"},colorBorderTutorial:{light:"{colorGrey300}",dark:"{colorGrey600}"},colorForegroundControlDefault:{light:"{colorWhite}",dark:"{colorGrey900}"},colorForegroundControlDisabled:{light:"{colorWhite}",dark:"{colorGrey800}"},colorShadowDefault:{light:"{colorGreyTransparentHeavy}",dark:"{colorGreyTransparentHeavy}"},colorShadowMedium:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorShadowSide:{light:"{colorGreyTransparentLight}",dark:"{colorGreyTransparentLight}"},colorStrokeChartLine:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorStrokeCodeEditorResizeHandler:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorStrokeCodeEditorGutterActiveLineDefault:{light:"{colorGrey300}",dark:"{colorGrey750}"},colorStrokeCodeEditorGutterActiveLineHover:{light:"{colorGrey100}",dark:"{colorGrey900}"},colorTextAccent:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextBodyDefault:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextBodySecondary:{light:"{colorGrey600}",dark:"{colorGrey350}"},colorTextBreadcrumbCurrent:{light:"{colorGrey550}",dark:"{colorGrey500}"},colorTextBreadcrumbIcon:{light:"{colorGrey500}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconDefault:{light:"{colorTextLinkDefault}",dark:"{colorTextLinkDefault}"},colorTextButtonInlineIconDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconHover:{light:"{colorTextLinkHover}",dark:"{colorTextLinkHover}"},colorTextButtonNormalActive:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextButtonNormalDefault:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextButtonNormalHover:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLinkButtonNormalDefault:{light:"{colorTextButtonNormalDefault}",dark:"{colorTextButtonNormalDefault}"},colorTextLinkButtonNormalHover:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorTextLinkButtonNormalActive:{light:"{colorTextButtonNormalActive}",dark:"{colorTextButtonNormalActive}"},colorTextButtonPrimaryActive:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextButtonPrimaryDefault:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextButtonPrimaryHover:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextCalendarDateHover:{light:"{colorTextDropdownItemDefault}",dark:"{colorTextDropdownItemDefault}"},colorTextCalendarDateSelected:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorTextCalendarMonth:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextCodeEditorGutterActiveLine:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextCodeEditorGutterDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextCodeEditorStatusBarDisabled:{light:"{colorGrey500}",dark:"{colorGrey550}"},colorTextCodeEditorTabButtonError:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextColumnHeader:{light:"{colorGrey600}",dark:"{colorGrey400}"},colorTextColumnSortingIcon:{light:"{colorTextColumnHeader}",dark:"{colorTextColumnHeader}"},colorTextControlDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextCounter:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorTextDisabledInlineEdit:{light:"{colorGrey600}",dark:"{colorGrey400}"},colorTextDropdownFooter:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownGroupLabel:{light:"{colorTextGroupLabel}",dark:"{colorTextGroupLabel}"},colorTextDropdownItemDefault:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextDropdownItemDimmed:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemFilterMatch:{light:"{colorBlue600}",dark:"{colorBlue400}"},colorTextDropdownItemHighlighted:{light:"{colorGrey900}",dark:"{colorGrey200}"},colorTextDropdownItemSecondary:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownItemSecondaryHover:{light:"{colorGrey550}",dark:"{colorGrey300}"},colorTextEmpty:{light:"{colorGrey550}",dark:"{colorGrey300}"},colorTextExpandableSectionDefault:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextExpandableSectionHover:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextExpandableSectionNavigationIconDefault:{light:"{colorTextInteractiveDefault}",dark:"{colorTextInteractiveDefault}"},colorTextFormDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextFormLabel:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextFormSecondary:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextGroupLabel:{light:"{colorGrey600}",dark:"{colorGrey350}"},colorTextHeadingDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextHeadingSecondary:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextHomeHeaderDefault:{light:"{colorGrey200}",dark:"{colorGrey200}"},colorTextHomeHeaderSecondary:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextIconCaret:{light:"{colorGrey500}",dark:"{colorGrey450}"},colorTextIconSubtle:{light:"{colorGrey550}",dark:"{colorGrey400}"},colorTextInputDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorTextInputPlaceholder:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextInputPlaceholderDisabled:{light:"{colorTextInputDisabled}",dark:"{colorTextInputDisabled}"},colorTextInteractiveActive:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorTextInteractiveDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorTextInteractiveDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorTextInteractiveHover:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorTextInteractiveInvertedDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextInteractiveInvertedHover:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextInverted:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextLabel:{light:"{colorTextFormLabel}",dark:"{colorTextFormLabel}"},colorTextLayoutToggle:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLayoutToggleActive:{light:"{colorWhite}",dark:"{colorGrey800}"},colorTextLayoutToggleHover:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextLayoutToggleSelected:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextLinkDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextLinkHover:{light:"{colorBlue800}",dark:"{colorBlue400}"},colorTextLinkInvertedHover:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLinkButtonUnderline:{light:"transparent",dark:"transparent"},colorTextLinkButtonUnderlineHover:{light:"transparent",dark:"transparent"},colorTextNotificationDefault:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextNotificationStackBar:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextNotificationYellow:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextPaginationPageNumberActiveDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextPaginationPageNumberDefault:{light:"{colorTextInteractiveDefault}",dark:"{colorGrey400}"},colorTextSegmentActive:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextSegmentDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorTextSegmentHover:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextSmall:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextStatusError:{light:"{colorRed600}",dark:"{colorRed500}"},colorTextStatusInactive:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextStatusInfo:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextStatusSuccess:{light:"{colorGreen600}",dark:"{colorGreen500}"},colorTextStatusWarning:{light:"{colorYellow800}",dark:"{colorYellow700}"},colorTextTopNavigationTitle:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorBoardPlaceholderActive:{light:"{colorGrey200}",dark:"{colorGrey550}"},colorBoardPlaceholderHover:{light:"{colorBlue200}",dark:"{colorBlue600}"},colorDragPlaceholderActive:{light:"{colorGrey200}",dark:"{colorGrey550}"},colorDragPlaceholderHover:{light:"{colorBlue200}",dark:"{colorBlue600}"},colorDropzoneBackgroundActive:{light:"{colorGrey200}",dark:"{colorGrey500}"},colorDropzoneBackgroundHover:{light:"{colorBlue200}",dark:"{colorBlue600}"},colorDropzoneTextActive:{light:"{colorGrey550}",dark:"{colorGrey800}"},colorDropzoneTextHover:{light:"{colorBlue800}",dark:"{colorWhite}"}}},"flashbar-warning":{id:"flashbar-warning",selector:".awsui-context-flashbar-warning",tokens:{colorGreyOpaque25:{light:"rgba(255, 255, 255, 0.25)",dark:"rgba(255, 255, 255, 0.25)"},colorGreyOpaque40:{light:"rgba(0, 0, 0, 0.4)",dark:"rgba(0, 0, 0, 0.4)"},colorGreyOpaque50:{light:"rgba(0, 0, 0, 0.5)",dark:"rgba(0, 0, 0, 0.5)"},colorGreyOpaque70:{light:"rgba(35, 47, 62, 0.7)",dark:"rgba(0, 7, 22, 0.7)"},colorGreyOpaque80:{light:"rgba(22, 25, 31, 0.8)",dark:"rgba(22, 25, 31, 0.8)"},colorGreyOpaque90:{light:"rgba(242, 243, 243, 0.9)",dark:"rgba(242, 243, 243, 0.9)"},colorGreyTransparent:{light:"rgba(0, 7, 22, 0.12)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentHeavy:{light:"rgba(0, 7, 22, 0.12)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentLight:{light:"rgba(0, 7, 22, 0.12)",dark:"rgba(0, 7, 22, 1)"},colorBackgroundBadgeIcon:{light:"{colorRed600}",dark:"{colorRed500}"},colorBackgroundButtonLinkActive:{light:"{colorBlue200}",dark:"{colorGrey650}"},colorBackgroundButtonLinkHover:{light:"{colorBlue100}",dark:"{colorGrey750}"},colorBackgroundButtonNormalActive:{light:"rgba(0, 7, 22, 0.1)",dark:"rgba(0, 7, 22, 0.1)"},colorBackgroundButtonNormalDefault:{light:"transparent",dark:"transparent"},colorBackgroundButtonNormalDisabled:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundButtonNormalHover:{light:"rgba(0, 7, 22, 0.05)",dark:"rgba(0, 7, 22, 0.05)"},colorBackgroundButtonPrimaryActive:{light:"{colorBlue800}",dark:"{colorBlue500}"},colorBackgroundButtonPrimaryDefault:{light:"{colorBorderButtonNormalDefault}",dark:"{colorBorderButtonNormalDefault}"},colorBackgroundButtonPrimaryDisabled:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundButtonPrimaryHover:{light:"{colorBorderButtonNormalHover}",dark:"{colorBorderButtonNormalHover}"},colorBackgroundCalendarCurrentDate:{light:"{colorGrey150}",dark:"{colorGrey650}"},colorBackgroundCellShaded:{light:"{colorGrey125}",dark:"{colorGrey750}"},colorBackgroundCodeEditorGutterActiveLineDefault:{light:"{colorGrey550}",dark:"{colorGrey500}"},colorBackgroundCodeEditorGutterActiveLineError:{light:"{colorTextStatusError}",dark:"{colorTextStatusError}"},colorBackgroundCodeEditorGutterDefault:{light:"{colorGrey150}",dark:"{colorGrey750}"},colorBackgroundCodeEditorLoading:{light:"{colorGrey100}",dark:"{colorGrey750}"},colorBackgroundCodeEditorPaneItemHover:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundCodeEditorStatusBar:{light:"{colorGrey150}",dark:"{colorGrey750}"},colorBackgroundContainerContent:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundContainerHeader:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundControlChecked:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundControlDefault:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundControlDisabled:{light:"{colorGrey300}",dark:"{colorGrey650}"},colorBackgroundDropdownItemDefault:{light:"{colorWhite}",dark:"{colorGrey750}"},colorBackgroundDropdownItemDimmed:{light:"transparent",dark:"transparent"},colorBackgroundDropdownItemFilterMatch:{light:"{colorBlue100}",dark:"{colorGrey650}"},colorBackgroundDropdownItemHover:{light:"{colorGrey150}",dark:"{colorGrey850}"},colorBackgroundDropdownItemSelected:{light:"{colorBackgroundItemSelected}",dark:"{colorBackgroundItemSelected}"},colorBackgroundHomeHeader:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundInputDefault:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundInputDisabled:{light:"{colorGrey200}",dark:"{colorGrey750}"},colorBackgroundItemSelected:{light:"{colorBlue100}",dark:"{colorBlue900}"},colorBackgroundLayoutMain:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundLayoutMobilePanel:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundLayoutPanelContent:{light:"{colorBackgroundContainerContent}",dark:"{colorBackgroundContainerContent}"},colorBackgroundLayoutPanelHover:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundLayoutToggleActive:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleDefault:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleHover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBackgroundLayoutToggleSelectedActive:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedHover:{light:"{colorBlue700}",dark:"{colorBlue400}"},colorBackgroundModalOverlay:{light:"{colorGreyOpaque70}",dark:"{colorGreyOpaque70}"},colorBackgroundNotificationBlue:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorBackgroundNotificationGreen:{light:"{colorGreen600}",dark:"{colorGreen600}"},colorBackgroundNotificationGrey:{light:"{colorGrey600}",dark:"{colorGrey550}"},colorBackgroundNotificationRed:{light:"{colorRed600}",dark:"{colorRed600}"},colorBackgroundNotificationYellow:{light:"{colorYellow600}",dark:"{colorYellow600}"},colorBackgroundNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarActive:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarHover:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundPopover:{light:"{colorWhite}",dark:"{colorGrey750}"},colorBackgroundProgressBarContentDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundProgressBarContentInFlash:{light:"{colorWhite}",dark:"{colorWhite}"},colorBackgroundProgressBarLayoutDefault:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundProgressBarLayoutInFlash:{light:"{colorGreyOpaque25}",dark:"{colorGreyOpaque25}"},colorBackgroundSegmentActive:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundSegmentDefault:{light:"{colorBackgroundButtonNormalDefault}",dark:"{colorBackgroundButtonNormalDefault}"},colorBackgroundSegmentDisabled:{light:"{colorBackgroundButtonNormalDisabled}",dark:"{colorBackgroundButtonNormalDisabled}"},colorBackgroundSegmentHover:{light:"{colorBackgroundSegmentDefault}",dark:"{colorBackgroundSegmentDefault}"},colorBackgroundStatusError:{light:"{colorRed100}",dark:"{colorRed900}"},colorBackgroundStatusInfo:{light:"{colorBlue100}",dark:"{colorBlue900}"},colorBackgroundStatusSuccess:{light:"{colorGreen100}",dark:"{colorGreen900}"},colorBackgroundStatusWarning:{light:"{colorYellow100}",dark:"{colorYellow900}"},colorBackgroundTableHeader:{light:"{colorBackgroundContainerHeader}",dark:"{colorBackgroundContainerHeader}"},colorBackgroundTilesDisabled:{light:"{colorGrey200}",dark:"{colorGrey750}"},colorBackgroundToggleCheckedDisabled:{light:"{colorBlue300}",dark:"{colorBlue800}"},colorBackgroundToggleDefault:{light:"{colorGrey600}",dark:"{colorGrey500}"},colorBorderButtonNormalActive:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorBorderButtonNormalDefault:{light:"{colorTextButtonNormalDefault}",dark:"{colorTextButtonNormalDefault}"},colorBorderButtonNormalDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorBorderButtonNormalHover:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorBorderButtonPrimaryDisabled:{light:"{colorBackgroundButtonPrimaryDisabled}",dark:"{colorBackgroundButtonPrimaryDisabled}"},colorBorderCalendarGrid:{light:"transparent",dark:"transparent"},colorBorderCalendarGridSelectedFocusRing:{light:"{colorGrey100}",dark:"{colorGrey800}"},colorBorderCodeEditorAceActiveLineLightTheme:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderCodeEditorAceActiveLineDarkTheme:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderCodeEditorDefault:{light:"{colorGrey300}",dark:"{colorGrey550}"},colorBorderCodeEditorPaneItemHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderContainerDivider:{light:"transparent",dark:"transparent"},colorBorderContainerTop:{light:"transparent",dark:"transparent"},colorBorderControlChecked:{light:"{colorBackgroundControlChecked}",dark:"{colorBackgroundControlChecked}"},colorBorderControlDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderControlDisabled:{light:"{colorBackgroundControlDisabled}",dark:"{colorBackgroundControlDisabled}"},colorBorderDividerActive:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorBorderDividerDefault:{light:"{colorTextNotificationYellow}",dark:"{colorTextNotificationYellow}"},colorBorderDividerPanelBottom:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerPanelSide:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerSecondary:{light:"{colorGrey200}",dark:"{colorGrey700}"},colorBorderDropdownContainer:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorBorderDropdownGroup:{light:"{colorBorderDropdownItemDefault}",dark:"{colorBorderDropdownItemDefault}"},colorBorderDropdownItemDefault:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDropdownItemHover:{light:"{colorGrey500}",dark:"{colorGrey550}"},colorBorderDropdownItemDimmedHover:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderDropdownItemSelected:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderDropdownItemTop:{light:"transparent",dark:"transparent"},colorBorderEditableCellHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderInputDefault:{light:"{colorGrey500}",dark:"{colorGrey550}"},colorBorderInputDisabled:{light:"{colorBackgroundInputDisabled}",dark:"{colorBackgroundInputDisabled}"},colorBorderInputFocused:{light:"{colorBlue800}",dark:"{colorBlue300}"},colorBorderItemFocused:{light:"{colorTextNotificationYellow}",dark:"{colorTextNotificationYellow}"},colorBorderDropdownItemFocused:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorBorderItemPlaceholder:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderItemSelected:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBorderLayout:{light:"{colorGrey300}",dark:"{colorGrey650}"},colorBorderNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBorderPopover:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorBorderSegmentActive:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorBorderSegmentDisabled:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentHover:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderStatusError:{light:"{colorRed600}",dark:"{colorRed500}"},colorBorderStatusInfo:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBorderStatusSuccess:{light:"{colorGreen600}",dark:"{colorGreen500}"},colorBorderStatusWarning:{light:"{colorYellow800}",dark:"{colorYellow700}"},colorBorderDividerInteractiveDefault:{light:"{colorGrey500}",dark:"{colorGrey300}"},colorBorderTabsDivider:{light:"{colorGrey350}",dark:"{colorGrey600}"},colorBorderTabsShadow:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorBorderTabsUnderline:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorBorderTilesDisabled:{light:"{colorBackgroundTilesDisabled}",dark:"{colorBackgroundTilesDisabled}"},colorBorderTutorial:{light:"{colorGrey300}",dark:"{colorGrey600}"},colorForegroundControlDefault:{light:"{colorWhite}",dark:"{colorGrey900}"},colorForegroundControlDisabled:{light:"{colorWhite}",dark:"{colorGrey800}"},colorShadowDefault:{light:"{colorGreyTransparentHeavy}",dark:"{colorGreyTransparentHeavy}"},colorShadowMedium:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorShadowSide:{light:"{colorGreyTransparentLight}",dark:"{colorGreyTransparentLight}"},colorStrokeChartLine:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorStrokeCodeEditorResizeHandler:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorStrokeCodeEditorGutterActiveLineDefault:{light:"{colorGrey300}",dark:"{colorGrey750}"},colorStrokeCodeEditorGutterActiveLineHover:{light:"{colorGrey100}",dark:"{colorGrey900}"},colorTextAccent:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextBodyDefault:{light:"{colorTextNotificationYellow}",dark:"{colorTextNotificationYellow}"},colorTextBodySecondary:{light:"{colorGrey600}",dark:"{colorGrey350}"},colorTextBreadcrumbCurrent:{light:"{colorGrey550}",dark:"{colorGrey500}"},colorTextBreadcrumbIcon:{light:"{colorGrey500}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconDefault:{light:"{colorTextLinkDefault}",dark:"{colorTextLinkDefault}"},colorTextButtonInlineIconDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconHover:{light:"{colorTextLinkHover}",dark:"{colorTextLinkHover}"},colorTextButtonNormalActive:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorTextButtonNormalDefault:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorTextButtonNormalHover:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextLinkButtonNormalDefault:{light:"{colorTextLinkDefault}",dark:"{colorTextLinkDefault}"},colorTextLinkButtonNormalHover:{light:"{colorTextLinkHover}",dark:"{colorTextLinkHover}"},colorTextLinkButtonNormalActive:{light:"{colorTextButtonNormalActive}",dark:"{colorTextButtonNormalActive}"},colorTextButtonPrimaryActive:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextButtonPrimaryDefault:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextButtonPrimaryHover:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextCalendarDateHover:{light:"{colorTextDropdownItemDefault}",dark:"{colorTextDropdownItemDefault}"},colorTextCalendarDateSelected:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorTextCalendarMonth:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextCodeEditorGutterActiveLine:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextCodeEditorGutterDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextCodeEditorStatusBarDisabled:{light:"{colorGrey500}",dark:"{colorGrey550}"},colorTextCodeEditorTabButtonError:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextColumnHeader:{light:"{colorGrey600}",dark:"{colorGrey400}"},colorTextColumnSortingIcon:{light:"{colorTextColumnHeader}",dark:"{colorTextColumnHeader}"},colorTextControlDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextCounter:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorTextDisabledInlineEdit:{light:"{colorGrey600}",dark:"{colorGrey400}"},colorTextDropdownFooter:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownGroupLabel:{light:"{colorTextGroupLabel}",dark:"{colorTextGroupLabel}"},colorTextDropdownItemDefault:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextDropdownItemDimmed:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemFilterMatch:{light:"{colorBlue600}",dark:"{colorBlue400}"},colorTextDropdownItemHighlighted:{light:"{colorGrey900}",dark:"{colorGrey200}"},colorTextDropdownItemSecondary:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownItemSecondaryHover:{light:"{colorGrey550}",dark:"{colorGrey300}"},colorTextEmpty:{light:"{colorGrey550}",dark:"{colorGrey300}"},colorTextExpandableSectionDefault:{light:"{colorTextNotificationYellow}",dark:"{colorTextNotificationYellow}"},colorTextExpandableSectionHover:{light:"{colorTextNotificationYellow}",dark:"{colorTextNotificationYellow}"},colorTextExpandableSectionNavigationIconDefault:{light:"{colorTextInteractiveDefault}",dark:"{colorTextInteractiveDefault}"},colorTextFormDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextFormLabel:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextFormSecondary:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextGroupLabel:{light:"{colorGrey600}",dark:"{colorGrey350}"},colorTextHeadingDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextHeadingSecondary:{light:"{colorTextNotificationYellow}",dark:"{colorTextNotificationYellow}"},colorTextHomeHeaderDefault:{light:"{colorGrey200}",dark:"{colorGrey200}"},colorTextHomeHeaderSecondary:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextIconCaret:{light:"{colorGrey500}",dark:"{colorGrey450}"},colorTextIconSubtle:{light:"{colorGrey550}",dark:"{colorGrey400}"},colorTextInputDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorTextInputPlaceholder:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextInputPlaceholderDisabled:{light:"{colorTextInputDisabled}",dark:"{colorTextInputDisabled}"},colorTextInteractiveActive:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorTextInteractiveDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorTextInteractiveDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorTextInteractiveHover:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorTextInteractiveInvertedDefault:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorTextInteractiveInvertedHover:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextInverted:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextLabel:{light:"{colorTextFormLabel}",dark:"{colorTextFormLabel}"},colorTextLayoutToggle:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLayoutToggleActive:{light:"{colorWhite}",dark:"{colorGrey800}"},colorTextLayoutToggleHover:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextLayoutToggleSelected:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextLinkDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextLinkHover:{light:"{colorBlue800}",dark:"{colorBlue400}"},colorTextLinkInvertedHover:{light:"{colorTextNotificationYellow}",dark:"{colorTextNotificationYellow}"},colorTextLinkButtonUnderline:{light:"transparent",dark:"transparent"},colorTextLinkButtonUnderlineHover:{light:"transparent",dark:"transparent"},colorTextNotificationDefault:{light:"{colorTextNotificationYellow}",dark:"{colorTextNotificationYellow}"},colorTextNotificationStackBar:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextNotificationYellow:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextPaginationPageNumberActiveDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextPaginationPageNumberDefault:{light:"{colorTextInteractiveDefault}",dark:"{colorGrey400}"},colorTextSegmentActive:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextSegmentDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorTextSegmentHover:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextSmall:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextStatusError:{light:"{colorRed600}",dark:"{colorRed500}"},colorTextStatusInactive:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextStatusInfo:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextStatusSuccess:{light:"{colorGreen600}",dark:"{colorGreen500}"},colorTextStatusWarning:{light:"{colorYellow800}",dark:"{colorYellow700}"},colorTextTopNavigationTitle:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorBoardPlaceholderActive:{light:"{colorGrey200}",dark:"{colorGrey550}"},colorBoardPlaceholderHover:{light:"{colorBlue200}",dark:"{colorBlue600}"},colorDragPlaceholderActive:{light:"{colorGrey200}",dark:"{colorGrey550}"},colorDragPlaceholderHover:{light:"{colorBlue200}",dark:"{colorBlue600}"},colorDropzoneBackgroundActive:{light:"{colorGrey200}",dark:"{colorGrey500}"},colorDropzoneBackgroundHover:{light:"{colorBlue200}",dark:"{colorBlue600}"},colorDropzoneTextActive:{light:"{colorGrey550}",dark:"{colorGrey800}"},colorDropzoneTextHover:{light:"{colorBlue800}",dark:"{colorWhite}"}}},alert:{id:"alert",selector:".awsui-context-alert",tokens:{colorGreyOpaque25:{light:"rgba(255, 255, 255, 0.25)",dark:"rgba(255, 255, 255, 0.25)"},colorGreyOpaque40:{light:"rgba(0, 0, 0, 0.4)",dark:"rgba(0, 0, 0, 0.4)"},colorGreyOpaque50:{light:"rgba(0, 0, 0, 0.5)",dark:"rgba(0, 0, 0, 0.5)"},colorGreyOpaque70:{light:"rgba(35, 47, 62, 0.7)",dark:"rgba(0, 7, 22, 0.7)"},colorGreyOpaque80:{light:"rgba(22, 25, 31, 0.8)",dark:"rgba(22, 25, 31, 0.8)"},colorGreyOpaque90:{light:"rgba(242, 243, 243, 0.9)",dark:"rgba(242, 243, 243, 0.9)"},colorGreyTransparent:{light:"rgba(0, 7, 22, 0.12)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentHeavy:{light:"rgba(0, 7, 22, 0.12)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentLight:{light:"rgba(0, 7, 22, 0.12)",dark:"rgba(0, 7, 22, 1)"},colorBackgroundBadgeIcon:{light:"{colorRed600}",dark:"{colorRed500}"},colorBackgroundButtonLinkActive:{light:"{colorBlue200}",dark:"{colorGrey650}"},colorBackgroundButtonLinkHover:{light:"{colorBlue100}",dark:"{colorGrey750}"},colorBackgroundButtonNormalActive:{light:"rgba(0, 7, 22, 0.1)",dark:"rgba(255, 255, 255, 0.15)"},colorBackgroundButtonNormalDefault:{light:"transparent",dark:"transparent"},colorBackgroundButtonNormalDisabled:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundButtonNormalHover:{light:"rgba(0, 7, 22, 0.05)",dark:"rgba(255, 255, 255, 0.1)"},colorBackgroundButtonPrimaryActive:{light:"{colorBlue800}",dark:"{colorBlue500}"},colorBackgroundButtonPrimaryDefault:{light:"{colorBorderButtonNormalDefault}",dark:"{colorBorderButtonNormalDefault}"},colorBackgroundButtonPrimaryDisabled:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundButtonPrimaryHover:{light:"{colorBorderButtonNormalHover}",dark:"{colorBorderButtonNormalHover}"},colorBackgroundCalendarCurrentDate:{light:"{colorGrey150}",dark:"{colorGrey650}"},colorBackgroundCellShaded:{light:"{colorGrey125}",dark:"{colorGrey750}"},colorBackgroundCodeEditorGutterActiveLineDefault:{light:"{colorGrey550}",dark:"{colorGrey500}"},colorBackgroundCodeEditorGutterActiveLineError:{light:"{colorTextStatusError}",dark:"{colorTextStatusError}"},colorBackgroundCodeEditorGutterDefault:{light:"{colorGrey150}",dark:"{colorGrey750}"},colorBackgroundCodeEditorLoading:{light:"{colorGrey100}",dark:"{colorGrey750}"},colorBackgroundCodeEditorPaneItemHover:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundCodeEditorStatusBar:{light:"{colorGrey150}",dark:"{colorGrey750}"},colorBackgroundContainerContent:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundContainerHeader:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundControlChecked:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundControlDefault:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundControlDisabled:{light:"{colorGrey300}",dark:"{colorGrey650}"},colorBackgroundDropdownItemDefault:{light:"{colorWhite}",dark:"{colorGrey750}"},colorBackgroundDropdownItemDimmed:{light:"transparent",dark:"transparent"},colorBackgroundDropdownItemFilterMatch:{light:"{colorBlue100}",dark:"{colorGrey650}"},colorBackgroundDropdownItemHover:{light:"{colorGrey150}",dark:"{colorGrey850}"},colorBackgroundDropdownItemSelected:{light:"{colorBackgroundItemSelected}",dark:"{colorBackgroundItemSelected}"},colorBackgroundHomeHeader:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundInputDefault:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundInputDisabled:{light:"{colorGrey200}",dark:"{colorGrey750}"},colorBackgroundItemSelected:{light:"{colorBlue100}",dark:"{colorBlue900}"},colorBackgroundLayoutMain:{light:"{colorWhite}",dark:"{colorGrey800}"},colorBackgroundLayoutMobilePanel:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundLayoutPanelContent:{light:"{colorBackgroundContainerContent}",dark:"{colorBackgroundContainerContent}"},colorBackgroundLayoutPanelHover:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundLayoutToggleActive:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleDefault:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleHover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBackgroundLayoutToggleSelectedActive:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedHover:{light:"{colorBlue700}",dark:"{colorBlue400}"},colorBackgroundModalOverlay:{light:"{colorGreyOpaque70}",dark:"{colorGreyOpaque70}"},colorBackgroundNotificationBlue:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorBackgroundNotificationGreen:{light:"{colorGreen600}",dark:"{colorGreen600}"},colorBackgroundNotificationGrey:{light:"{colorGrey600}",dark:"{colorGrey550}"},colorBackgroundNotificationRed:{light:"{colorRed600}",dark:"{colorRed600}"},colorBackgroundNotificationYellow:{light:"{colorYellow600}",dark:"{colorYellow600}"},colorBackgroundNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarActive:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarHover:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundPopover:{light:"{colorWhite}",dark:"{colorGrey750}"},colorBackgroundProgressBarContentDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundProgressBarContentInFlash:{light:"{colorWhite}",dark:"{colorWhite}"},colorBackgroundProgressBarLayoutDefault:{light:"{colorGrey200}",dark:"{colorGrey650}"},colorBackgroundProgressBarLayoutInFlash:{light:"{colorGreyOpaque25}",dark:"{colorGreyOpaque25}"},colorBackgroundSegmentActive:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBackgroundSegmentDefault:{light:"{colorBackgroundButtonNormalDefault}",dark:"{colorBackgroundButtonNormalDefault}"},colorBackgroundSegmentDisabled:{light:"{colorBackgroundButtonNormalDisabled}",dark:"{colorBackgroundButtonNormalDisabled}"},colorBackgroundSegmentHover:{light:"{colorBackgroundSegmentDefault}",dark:"{colorBackgroundSegmentDefault}"},colorBackgroundStatusError:{light:"{colorRed100}",dark:"{colorRed900}"},colorBackgroundStatusInfo:{light:"{colorBlue100}",dark:"{colorBlue900}"},colorBackgroundStatusSuccess:{light:"{colorGreen100}",dark:"{colorGreen900}"},colorBackgroundStatusWarning:{light:"{colorYellow100}",dark:"{colorYellow900}"},colorBackgroundTableHeader:{light:"{colorBackgroundContainerHeader}",dark:"{colorBackgroundContainerHeader}"},colorBackgroundTilesDisabled:{light:"{colorGrey200}",dark:"{colorGrey750}"},colorBackgroundToggleCheckedDisabled:{light:"{colorBlue300}",dark:"{colorBlue800}"},colorBackgroundToggleDefault:{light:"{colorGrey600}",dark:"{colorGrey500}"},colorBorderButtonNormalActive:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorBorderButtonNormalDefault:{light:"{colorTextButtonNormalDefault}",dark:"{colorTextButtonNormalDefault}"},colorBorderButtonNormalDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorBorderButtonNormalHover:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorBorderButtonPrimaryDisabled:{light:"{colorBackgroundButtonPrimaryDisabled}",dark:"{colorBackgroundButtonPrimaryDisabled}"},colorBorderCalendarGrid:{light:"transparent",dark:"transparent"},colorBorderCalendarGridSelectedFocusRing:{light:"{colorGrey100}",dark:"{colorGrey800}"},colorBorderCodeEditorAceActiveLineLightTheme:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderCodeEditorAceActiveLineDarkTheme:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderCodeEditorDefault:{light:"{colorGrey300}",dark:"{colorGrey550}"},colorBorderCodeEditorPaneItemHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderContainerDivider:{light:"transparent",dark:"transparent"},colorBorderContainerTop:{light:"transparent",dark:"transparent"},colorBorderControlChecked:{light:"{colorBackgroundControlChecked}",dark:"{colorBackgroundControlChecked}"},colorBorderControlDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderControlDisabled:{light:"{colorBackgroundControlDisabled}",dark:"{colorBackgroundControlDisabled}"},colorBorderDividerActive:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorBorderDividerDefault:{light:"{colorTextButtonNormalDefault}",dark:"{colorTextButtonNormalDefault}"},colorBorderDividerPanelBottom:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerPanelSide:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerSecondary:{light:"{colorGrey200}",dark:"{colorGrey700}"},colorBorderDropdownContainer:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorBorderDropdownGroup:{light:"{colorBorderDropdownItemDefault}",dark:"{colorBorderDropdownItemDefault}"},colorBorderDropdownItemDefault:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDropdownItemHover:{light:"{colorGrey500}",dark:"{colorGrey550}"},colorBorderDropdownItemDimmedHover:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderDropdownItemSelected:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderDropdownItemTop:{light:"transparent",dark:"transparent"},colorBorderEditableCellHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderInputDefault:{light:"{colorGrey500}",dark:"{colorGrey550}"},colorBorderInputDisabled:{light:"{colorBackgroundInputDisabled}",dark:"{colorBackgroundInputDisabled}"},colorBorderInputFocused:{light:"{colorBlue800}",dark:"{colorBlue300}"},colorBorderItemFocused:{light:"{colorBlue600}",dark:"{colorGrey100}"},colorBorderDropdownItemFocused:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorBorderItemPlaceholder:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderItemSelected:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBorderLayout:{light:"{colorGrey300}",dark:"{colorGrey650}"},colorBorderNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBorderPopover:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorBorderSegmentActive:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorBorderSegmentDisabled:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentHover:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderStatusError:{light:"{colorRed600}",dark:"{colorRed500}"},colorBorderStatusInfo:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorBorderStatusSuccess:{light:"{colorGreen600}",dark:"{colorGreen500}"},colorBorderStatusWarning:{light:"{colorYellow800}",dark:"{colorYellow700}"},colorBorderDividerInteractiveDefault:{light:"{colorGrey500}",dark:"{colorGrey300}"},colorBorderTabsDivider:{light:"{colorGrey350}",dark:"{colorGrey600}"},colorBorderTabsShadow:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorBorderTabsUnderline:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorBorderTilesDisabled:{light:"{colorBackgroundTilesDisabled}",dark:"{colorBackgroundTilesDisabled}"},colorBorderTutorial:{light:"{colorGrey300}",dark:"{colorGrey600}"},colorForegroundControlDefault:{light:"{colorWhite}",dark:"{colorGrey900}"},colorForegroundControlDisabled:{light:"{colorWhite}",dark:"{colorGrey800}"},colorShadowDefault:{light:"{colorGreyTransparentHeavy}",dark:"{colorGreyTransparentHeavy}"},colorShadowMedium:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorShadowSide:{light:"{colorGreyTransparentLight}",dark:"{colorGreyTransparentLight}"},colorStrokeChartLine:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorStrokeCodeEditorResizeHandler:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorStrokeCodeEditorGutterActiveLineDefault:{light:"{colorGrey300}",dark:"{colorGrey750}"},colorStrokeCodeEditorGutterActiveLineHover:{light:"{colorGrey100}",dark:"{colorGrey900}"},colorTextAccent:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextBodyDefault:{light:"{colorGrey900}",dark:"{colorGrey350}"},colorTextBodySecondary:{light:"{colorGrey600}",dark:"{colorGrey350}"},colorTextBreadcrumbCurrent:{light:"{colorGrey550}",dark:"{colorGrey500}"},colorTextBreadcrumbIcon:{light:"{colorGrey500}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconDefault:{light:"{colorTextLinkDefault}",dark:"{colorTextLinkDefault}"},colorTextButtonInlineIconDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconHover:{light:"{colorTextLinkHover}",dark:"{colorTextLinkHover}"},colorTextButtonNormalActive:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorTextButtonNormalDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorTextButtonNormalHover:{light:"{colorGrey900}",dark:"{colorWhite}"},colorTextLinkButtonNormalDefault:{light:"{colorTextLinkDefault}",dark:"{colorTextLinkDefault}"},colorTextLinkButtonNormalHover:{light:"{colorTextLinkHover}",dark:"{colorTextLinkHover}"},colorTextLinkButtonNormalActive:{light:"{colorTextButtonNormalActive}",dark:"{colorTextButtonNormalActive}"},colorTextButtonPrimaryActive:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextButtonPrimaryDefault:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextButtonPrimaryHover:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextCalendarDateHover:{light:"{colorTextDropdownItemDefault}",dark:"{colorTextDropdownItemDefault}"},colorTextCalendarDateSelected:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorTextCalendarMonth:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextCodeEditorGutterActiveLine:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextCodeEditorGutterDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextCodeEditorStatusBarDisabled:{light:"{colorGrey500}",dark:"{colorGrey550}"},colorTextCodeEditorTabButtonError:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextColumnHeader:{light:"{colorGrey600}",dark:"{colorGrey400}"},colorTextColumnSortingIcon:{light:"{colorTextColumnHeader}",dark:"{colorTextColumnHeader}"},colorTextControlDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextCounter:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorTextDisabledInlineEdit:{light:"{colorGrey600}",dark:"{colorGrey400}"},colorTextDropdownFooter:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownGroupLabel:{light:"{colorTextGroupLabel}",dark:"{colorTextGroupLabel}"},colorTextDropdownItemDefault:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextDropdownItemDimmed:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemFilterMatch:{light:"{colorBlue600}",dark:"{colorBlue400}"},colorTextDropdownItemHighlighted:{light:"{colorGrey900}",dark:"{colorGrey200}"},colorTextDropdownItemSecondary:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownItemSecondaryHover:{light:"{colorGrey550}",dark:"{colorGrey300}"},colorTextEmpty:{light:"{colorGrey550}",dark:"{colorGrey300}"},colorTextExpandableSectionDefault:{light:"{colorTextButtonNormalDefault}",dark:"{colorTextButtonNormalDefault}"},colorTextExpandableSectionHover:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorTextExpandableSectionNavigationIconDefault:{light:"{colorTextInteractiveDefault}",dark:"{colorTextInteractiveDefault}"},colorTextFormDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextFormLabel:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextFormSecondary:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextGroupLabel:{light:"{colorGrey600}",dark:"{colorGrey350}"},colorTextHeadingDefault:{light:"{colorGrey900}",dark:"{colorGrey300}"},colorTextHeadingSecondary:{light:"{colorGrey600}",dark:"{colorGrey450}"},colorTextHomeHeaderDefault:{light:"{colorGrey200}",dark:"{colorGrey200}"},colorTextHomeHeaderSecondary:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextIconCaret:{light:"{colorGrey500}",dark:"{colorGrey450}"},colorTextIconSubtle:{light:"{colorGrey550}",dark:"{colorGrey400}"},colorTextInputDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorTextInputPlaceholder:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextInputPlaceholderDisabled:{light:"{colorTextInputDisabled}",dark:"{colorTextInputDisabled}"},colorTextInteractiveActive:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorTextInteractiveDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorTextInteractiveDisabled:{light:"{colorGrey400}",dark:"{colorGrey550}"},colorTextInteractiveHover:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorTextInteractiveInvertedDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextInteractiveInvertedHover:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextInverted:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextLabel:{light:"{colorTextFormLabel}",dark:"{colorTextFormLabel}"},colorTextLayoutToggle:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLayoutToggleActive:{light:"{colorWhite}",dark:"{colorGrey800}"},colorTextLayoutToggleHover:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextLayoutToggleSelected:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextLinkDefault:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextLinkHover:{light:"{colorBlue800}",dark:"{colorBlue400}"},colorTextLinkInvertedHover:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLinkButtonUnderline:{light:"transparent",dark:"transparent"},colorTextLinkButtonUnderlineHover:{light:"transparent",dark:"transparent"},colorTextNotificationDefault:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextNotificationStackBar:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextNotificationYellow:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextPaginationPageNumberActiveDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextPaginationPageNumberDefault:{light:"{colorTextInteractiveDefault}",dark:"{colorGrey400}"},colorTextSegmentActive:{light:"{colorWhite}",dark:"{colorGrey900}"},colorTextSegmentDefault:{light:"{colorGrey600}",dark:"{colorGrey300}"},colorTextSegmentHover:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextSmall:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextStatusError:{light:"{colorRed600}",dark:"{colorRed500}"},colorTextStatusInactive:{light:"{colorGrey550}",dark:"{colorGrey450}"},colorTextStatusInfo:{light:"{colorBlue600}",dark:"{colorBlue500}"},colorTextStatusSuccess:{light:"{colorGreen600}",dark:"{colorGreen500}"},colorTextStatusWarning:{light:"{colorYellow800}",dark:"{colorYellow700}"},colorTextTopNavigationTitle:{light:"{colorGrey900}",dark:"{colorGrey100}"},colorBoardPlaceholderActive:{light:"{colorGrey200}",dark:"{colorGrey550}"},colorBoardPlaceholderHover:{light:"{colorBlue200}",dark:"{colorBlue600}"},colorDragPlaceholderActive:{light:"{colorGrey200}",dark:"{colorGrey550}"},colorDragPlaceholderHover:{light:"{colorBlue200}",dark:"{colorBlue600}"},colorDropzoneBackgroundActive:{light:"{colorGrey200}",dark:"{colorGrey500}"},colorDropzoneBackgroundHover:{light:"{colorBlue200}",dark:"{colorBlue600}"},colorDropzoneTextActive:{light:"{colorGrey550}",dark:"{colorGrey800}"},colorDropzoneTextHover:{light:"{colorBlue800}",dark:"{colorWhite}"},fontExpandableHeadingSize:"14px",borderDividerSectionWidth:"1px"}},"alert-header":{id:"alert-header",selector:".awsui-context-content-header .awsui-context-alert",tokens:{colorGreyOpaque25:{light:"rgba(255, 255, 255, 0.25)",dark:"rgba(255, 255, 255, 0.25)"},colorGreyOpaque40:{light:"rgba(0, 0, 0, 0.4)",dark:"rgba(0, 0, 0, 0.4)"},colorGreyOpaque50:{light:"rgba(0, 0, 0, 0.5)",dark:"rgba(0, 0, 0, 0.5)"},colorGreyOpaque70:{light:"rgba(0, 7, 22, 0.7)",dark:"rgba(0, 7, 22, 0.7)"},colorGreyOpaque80:{light:"rgba(22, 25, 31, 0.8)",dark:"rgba(22, 25, 31, 0.8)"},colorGreyOpaque90:{light:"rgba(242, 243, 243, 0.9)",dark:"rgba(242, 243, 243, 0.9)"},colorGreyTransparent:{light:"rgba(0, 7, 22, 1)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentHeavy:{light:"rgba(0, 7, 22, 1)",dark:"rgba(0, 7, 22, 1)"},colorGreyTransparentLight:{light:"rgba(0, 7, 22, 1)",dark:"rgba(0, 7, 22, 1)"},colorBackgroundBadgeIcon:{light:"{colorRed500}",dark:"{colorRed500}"},colorBackgroundButtonLinkActive:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundButtonLinkHover:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundButtonNormalActive:{light:"rgba(255, 255, 255, 0.15)",dark:"rgba(255, 255, 255, 0.15)"},colorBackgroundButtonNormalDefault:{light:"transparent",dark:"transparent"},colorBackgroundButtonNormalDisabled:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundButtonNormalHover:{light:"rgba(255, 255, 255, 0.1)",dark:"rgba(255, 255, 255, 0.1)"},colorBackgroundButtonPrimaryActive:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundButtonPrimaryDefault:{light:"{colorBorderButtonNormalDefault}",dark:"{colorBorderButtonNormalDefault}"},colorBackgroundButtonPrimaryDisabled:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundButtonPrimaryHover:{light:"{colorBorderButtonNormalHover}",dark:"{colorBorderButtonNormalHover}"},colorBackgroundCalendarCurrentDate:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundCellShaded:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundCodeEditorGutterActiveLineDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBackgroundCodeEditorGutterActiveLineError:{light:"{colorTextStatusError}",dark:"{colorTextStatusError}"},colorBackgroundCodeEditorGutterDefault:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundCodeEditorLoading:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundCodeEditorPaneItemHover:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundCodeEditorStatusBar:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundContainerContent:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundContainerHeader:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundControlChecked:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundControlDefault:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundControlDisabled:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundDropdownItemDefault:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundDropdownItemDimmed:{light:"transparent",dark:"transparent"},colorBackgroundDropdownItemFilterMatch:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundDropdownItemHover:{light:"{colorGrey850}",dark:"{colorGrey850}"},colorBackgroundDropdownItemSelected:{light:"{colorBackgroundItemSelected}",dark:"{colorBackgroundItemSelected}"},colorBackgroundHomeHeader:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundInputDefault:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundInputDisabled:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundItemSelected:{light:"{colorBlue900}",dark:"{colorBlue900}"},colorBackgroundLayoutMain:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBackgroundLayoutMobilePanel:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorBackgroundLayoutPanelContent:{light:"{colorBackgroundContainerContent}",dark:"{colorBackgroundContainerContent}"},colorBackgroundLayoutPanelHover:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundLayoutToggleActive:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleDefault:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundLayoutToggleHover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBackgroundLayoutToggleSelectedActive:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundLayoutToggleSelectedHover:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorBackgroundModalOverlay:{light:"{colorGreyOpaque70}",dark:"{colorGreyOpaque70}"},colorBackgroundNotificationBlue:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorBackgroundNotificationGreen:{light:"{colorGreen600}",dark:"{colorGreen600}"},colorBackgroundNotificationGrey:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBackgroundNotificationRed:{light:"{colorRed600}",dark:"{colorRed600}"},colorBackgroundNotificationYellow:{light:"{colorYellow600}",dark:"{colorYellow600}"},colorBackgroundNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarActive:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBackgroundNotificationStackBarHover:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBackgroundPopover:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundProgressBarContentDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundProgressBarContentInFlash:{light:"{colorWhite}",dark:"{colorWhite}"},colorBackgroundProgressBarLayoutDefault:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBackgroundProgressBarLayoutInFlash:{light:"{colorGreyOpaque25}",dark:"{colorGreyOpaque25}"},colorBackgroundSegmentActive:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBackgroundSegmentDefault:{light:"{colorBackgroundButtonNormalDefault}",dark:"{colorBackgroundButtonNormalDefault}"},colorBackgroundSegmentDisabled:{light:"{colorBackgroundButtonNormalDisabled}",dark:"{colorBackgroundButtonNormalDisabled}"},colorBackgroundSegmentHover:{light:"{colorBackgroundSegmentDefault}",dark:"{colorBackgroundSegmentDefault}"},colorBackgroundStatusError:{light:"{colorRed900}",dark:"{colorRed900}"},colorBackgroundStatusInfo:{light:"{colorBlue900}",dark:"{colorBlue900}"},colorBackgroundStatusSuccess:{light:"{colorGreen900}",dark:"{colorGreen900}"},colorBackgroundStatusWarning:{light:"{colorYellow900}",dark:"{colorYellow900}"},colorBackgroundTableHeader:{light:"{colorBackgroundContainerHeader}",dark:"{colorBackgroundContainerHeader}"},colorBackgroundTilesDisabled:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorBackgroundToggleCheckedDisabled:{light:"{colorBlue800}",dark:"{colorBlue800}"},colorBackgroundToggleDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderButtonNormalActive:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorBorderButtonNormalDefault:{light:"{colorTextButtonNormalDefault}",dark:"{colorTextButtonNormalDefault}"},colorBorderButtonNormalDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderButtonNormalHover:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorBorderButtonPrimaryDisabled:{light:"{colorBackgroundButtonPrimaryDisabled}",dark:"{colorBackgroundButtonPrimaryDisabled}"},colorBorderCalendarGrid:{light:"transparent",dark:"transparent"},colorBorderCalendarGridSelectedFocusRing:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorBorderCodeEditorAceActiveLineLightTheme:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderCodeEditorAceActiveLineDarkTheme:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderCodeEditorDefault:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderCodeEditorPaneItemHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderContainerDivider:{light:"transparent",dark:"transparent"},colorBorderContainerTop:{light:"transparent",dark:"transparent"},colorBorderControlChecked:{light:"{colorBackgroundControlChecked}",dark:"{colorBackgroundControlChecked}"},colorBorderControlDefault:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderControlDisabled:{light:"{colorBackgroundControlDisabled}",dark:"{colorBackgroundControlDisabled}"},colorBorderDividerActive:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorBorderDividerDefault:{light:"{colorTextButtonNormalDefault}",dark:"{colorTextButtonNormalDefault}"},colorBorderDividerPanelBottom:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerPanelSide:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDividerSecondary:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBorderDropdownContainer:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderDropdownGroup:{light:"{colorBorderDropdownItemDefault}",dark:"{colorBorderDropdownItemDefault}"},colorBorderDropdownItemDefault:{light:"{colorBorderDividerDefault}",dark:"{colorBorderDividerDefault}"},colorBorderDropdownItemHover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderDropdownItemDimmedHover:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorBorderDropdownItemSelected:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderDropdownItemTop:{light:"transparent",dark:"transparent"},colorBorderEditableCellHover:{light:"{colorBorderDropdownItemHover}",dark:"{colorBorderDropdownItemHover}"},colorBorderInputDefault:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderInputDisabled:{light:"{colorBackgroundInputDisabled}",dark:"{colorBackgroundInputDisabled}"},colorBorderInputFocused:{light:"{colorBlue300}",dark:"{colorBlue300}"},colorBorderItemFocused:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorBorderDropdownItemFocused:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderItemPlaceholder:{light:"{colorBorderItemSelected}",dark:"{colorBorderItemSelected}"},colorBorderItemSelected:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBorderLayout:{light:"{colorGrey650}",dark:"{colorGrey650}"},colorBorderNotificationStackBar:{light:"{colorGrey700}",dark:"{colorGrey700}"},colorBorderPopover:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBorderSegmentActive:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderSegmentDisabled:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderSegmentHover:{light:"{colorBorderSegmentDefault}",dark:"{colorBorderSegmentDefault}"},colorBorderStatusError:{light:"{colorRed500}",dark:"{colorRed500}"},colorBorderStatusInfo:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorBorderStatusSuccess:{light:"{colorGreen500}",dark:"{colorGreen500}"},colorBorderStatusWarning:{light:"{colorYellow700}",dark:"{colorYellow700}"},colorBorderDividerInteractiveDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorBorderTabsDivider:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorBorderTabsShadow:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorBorderTabsUnderline:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorBorderTilesDisabled:{light:"{colorBackgroundTilesDisabled}",dark:"{colorBackgroundTilesDisabled}"},colorBorderTutorial:{light:"{colorGrey600}",dark:"{colorGrey600}"},colorForegroundControlDefault:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorForegroundControlDisabled:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorShadowDefault:{light:"{colorGreyTransparentHeavy}",dark:"{colorGreyTransparentHeavy}"},colorShadowMedium:{light:"{colorGreyTransparent}",dark:"{colorGreyTransparent}"},colorShadowSide:{light:"{colorGreyTransparentLight}",dark:"{colorGreyTransparentLight}"},colorStrokeChartLine:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorStrokeCodeEditorResizeHandler:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorStrokeCodeEditorGutterActiveLineDefault:{light:"{colorGrey750}",dark:"{colorGrey750}"},colorStrokeCodeEditorGutterActiveLineHover:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextAccent:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextBodyDefault:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextBodySecondary:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextBreadcrumbCurrent:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorTextBreadcrumbIcon:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconDefault:{light:"{colorTextLinkDefault}",dark:"{colorTextLinkDefault}"},colorTextButtonInlineIconDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextButtonInlineIconHover:{light:"{colorTextLinkHover}",dark:"{colorTextLinkHover}"},colorTextButtonNormalActive:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorTextButtonNormalDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextButtonNormalHover:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLinkButtonNormalDefault:{light:"{colorTextLinkDefault}",dark:"{colorTextLinkDefault}"},colorTextLinkButtonNormalHover:{light:"{colorTextLinkHover}",dark:"{colorTextLinkHover}"},colorTextLinkButtonNormalActive:{light:"{colorTextButtonNormalActive}",dark:"{colorTextButtonNormalActive}"},colorTextButtonPrimaryActive:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextButtonPrimaryDefault:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextButtonPrimaryHover:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextCalendarDateHover:{light:"{colorTextDropdownItemDefault}",dark:"{colorTextDropdownItemDefault}"},colorTextCalendarDateSelected:{light:"{colorTextAccent}",dark:"{colorTextAccent}"},colorTextCalendarMonth:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextCodeEditorGutterActiveLine:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextCodeEditorGutterDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextCodeEditorStatusBarDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorTextCodeEditorTabButtonError:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextColumnHeader:{light:"{colorGrey400}",dark:"{colorGrey400}"},colorTextColumnSortingIcon:{light:"{colorTextColumnHeader}",dark:"{colorTextColumnHeader}"},colorTextControlDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextCounter:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorTextDisabledInlineEdit:{light:"{colorGrey400}",dark:"{colorGrey400}"},colorTextDropdownFooter:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownGroupLabel:{light:"{colorTextGroupLabel}",dark:"{colorTextGroupLabel}"},colorTextDropdownItemDefault:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextDropdownItemDimmed:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextDropdownItemFilterMatch:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorTextDropdownItemHighlighted:{light:"{colorGrey200}",dark:"{colorGrey200}"},colorTextDropdownItemSecondary:{light:"{colorTextFormSecondary}",dark:"{colorTextFormSecondary}"},colorTextDropdownItemSecondaryHover:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextEmpty:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextExpandableSectionDefault:{light:"{colorTextButtonNormalDefault}",dark:"{colorTextButtonNormalDefault}"},colorTextExpandableSectionHover:{light:"{colorTextButtonNormalHover}",dark:"{colorTextButtonNormalHover}"},colorTextExpandableSectionNavigationIconDefault:{light:"{colorTextInteractiveDefault}",dark:"{colorTextInteractiveDefault}"},colorTextFormDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextFormLabel:{light:"{colorTextFormDefault}",dark:"{colorTextFormDefault}"},colorTextFormSecondary:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextGroupLabel:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextHeadingDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextHeadingSecondary:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextHomeHeaderDefault:{light:"{colorGrey200}",dark:"{colorGrey200}"},colorTextHomeHeaderSecondary:{light:"{colorGrey350}",dark:"{colorGrey350}"},colorTextIconCaret:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextIconSubtle:{light:"{colorGrey400}",dark:"{colorGrey400}"},colorTextInputDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorTextInputPlaceholder:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextInputPlaceholderDisabled:{light:"{colorTextInputDisabled}",dark:"{colorTextInputDisabled}"},colorTextInteractiveActive:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextInteractiveDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextInteractiveDisabled:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorTextInteractiveHover:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextInteractiveInvertedDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextInteractiveInvertedHover:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextInverted:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextLabel:{light:"{colorTextFormLabel}",dark:"{colorTextFormLabel}"},colorTextLayoutToggle:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLayoutToggleActive:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorTextLayoutToggleHover:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextLayoutToggleSelected:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextLinkDefault:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextLinkHover:{light:"{colorBlue400}",dark:"{colorBlue400}"},colorTextLinkInvertedHover:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextLinkButtonUnderline:{light:"transparent",dark:"transparent"},colorTextLinkButtonUnderlineHover:{light:"transparent",dark:"transparent"},colorTextNotificationDefault:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorTextNotificationStackBar:{light:"{colorWhite}",dark:"{colorWhite}"},colorTextNotificationYellow:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextPaginationPageNumberActiveDisabled:{light:"{colorTextInteractiveDisabled}",dark:"{colorTextInteractiveDisabled}"},colorTextPaginationPageNumberDefault:{light:"{colorGrey400}",dark:"{colorGrey400}"},colorTextSegmentActive:{light:"{colorGrey900}",dark:"{colorGrey900}"},colorTextSegmentDefault:{light:"{colorGrey300}",dark:"{colorGrey300}"},colorTextSegmentHover:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextSmall:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextStatusError:{light:"{colorRed500}",dark:"{colorRed500}"},colorTextStatusInactive:{light:"{colorGrey450}",dark:"{colorGrey450}"},colorTextStatusInfo:{light:"{colorBlue500}",dark:"{colorBlue500}"},colorTextStatusSuccess:{light:"{colorGreen500}",dark:"{colorGreen500}"},colorTextStatusWarning:{light:"{colorYellow700}",dark:"{colorYellow700}"},colorTextTopNavigationTitle:{light:"{colorGrey100}",dark:"{colorGrey100}"},colorBoardPlaceholderActive:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorBoardPlaceholderHover:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorDragPlaceholderActive:{light:"{colorGrey550}",dark:"{colorGrey550}"},colorDragPlaceholderHover:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorDropzoneBackgroundActive:{light:"{colorGrey500}",dark:"{colorGrey500}"},colorDropzoneBackgroundHover:{light:"{colorBlue600}",dark:"{colorBlue600}"},colorDropzoneTextActive:{light:"{colorGrey800}",dark:"{colorGrey800}"},colorDropzoneTextHover:{light:"{colorWhite}",dark:"{colorWhite}"}}}},tokenModeMap:{colorChartsRed300:"color",colorChartsRed400:"color",colorChartsRed500:"color",colorChartsRed600:"color",colorChartsRed700:"color",colorChartsRed800:"color",colorChartsRed900:"color",colorChartsRed1000:"color",colorChartsRed1100:"color",colorChartsRed1200:"color",colorChartsOrange300:"color",colorChartsOrange400:"color",colorChartsOrange500:"color",colorChartsOrange600:"color",colorChartsOrange700:"color",colorChartsOrange800:"color",colorChartsOrange900:"color",colorChartsOrange1000:"color",colorChartsOrange1100:"color",colorChartsOrange1200:"color",colorChartsYellow300:"color",colorChartsYellow400:"color",colorChartsYellow500:"color",colorChartsYellow600:"color",colorChartsYellow700:"color",colorChartsYellow800:"color",colorChartsYellow900:"color",colorChartsYellow1000:"color",colorChartsYellow1100:"color",colorChartsYellow1200:"color",colorChartsGreen300:"color",colorChartsGreen400:"color",colorChartsGreen500:"color",colorChartsGreen600:"color",colorChartsGreen700:"color",colorChartsGreen800:"color",colorChartsGreen900:"color",colorChartsGreen1000:"color",colorChartsGreen1100:"color",colorChartsGreen1200:"color",colorChartsTeal300:"color",colorChartsTeal400:"color",colorChartsTeal500:"color",colorChartsTeal600:"color",colorChartsTeal700:"color",colorChartsTeal800:"color",colorChartsTeal900:"color",colorChartsTeal1000:"color",colorChartsTeal1100:"color",colorChartsTeal1200:"color",colorChartsBlue1300:"color",colorChartsBlue1400:"color",colorChartsBlue1500:"color",colorChartsBlue1600:"color",colorChartsBlue1700:"color",colorChartsBlue1800:"color",colorChartsBlue1900:"color",colorChartsBlue11000:"color",colorChartsBlue11100:"color",colorChartsBlue11200:"color",colorChartsBlue2300:"color",colorChartsBlue2400:"color",colorChartsBlue2500:"color",colorChartsBlue2600:"color",colorChartsBlue2700:"color",colorChartsBlue2800:"color",colorChartsBlue2900:"color",colorChartsBlue21000:"color",colorChartsBlue21100:"color",colorChartsBlue21200:"color",colorChartsPurple300:"color",colorChartsPurple400:"color",colorChartsPurple500:"color",colorChartsPurple600:"color",colorChartsPurple700:"color",colorChartsPurple800:"color",colorChartsPurple900:"color",colorChartsPurple1000:"color",colorChartsPurple1100:"color",colorChartsPurple1200:"color",colorChartsPink300:"color",colorChartsPink400:"color",colorChartsPink500:"color",colorChartsPink600:"color",colorChartsPink700:"color",colorChartsPink800:"color",colorChartsPink900:"color",colorChartsPink1000:"color",colorChartsPink1100:"color",colorChartsPink1200:"color",colorChartsStatusCritical:"color",colorChartsStatusHigh:"color",colorChartsStatusMedium:"color",colorChartsStatusLow:"color",colorChartsStatusPositive:"color",colorChartsStatusInfo:"color",colorChartsStatusNeutral:"color",colorChartsThresholdNegative:"color",colorChartsThresholdPositive:"color",colorChartsThresholdInfo:"color",colorChartsThresholdNeutral:"color",colorChartsLineGrid:"color",colorChartsLineTick:"color",colorChartsLineAxis:"color",colorChartsPaletteCategorical1:"color",colorChartsPaletteCategorical2:"color",colorChartsPaletteCategorical3:"color",colorChartsPaletteCategorical4:"color",colorChartsPaletteCategorical5:"color",colorChartsPaletteCategorical6:"color",colorChartsPaletteCategorical7:"color",colorChartsPaletteCategorical8:"color",colorChartsPaletteCategorical9:"color",colorChartsPaletteCategorical10:"color",colorChartsPaletteCategorical11:"color",colorChartsPaletteCategorical12:"color",colorChartsPaletteCategorical13:"color",colorChartsPaletteCategorical14:"color",colorChartsPaletteCategorical15:"color",colorChartsPaletteCategorical16:"color",colorChartsPaletteCategorical17:"color",colorChartsPaletteCategorical18:"color",colorChartsPaletteCategorical19:"color",colorChartsPaletteCategorical20:"color",colorChartsPaletteCategorical21:"color",colorChartsPaletteCategorical22:"color",colorChartsPaletteCategorical23:"color",colorChartsPaletteCategorical24:"color",colorChartsPaletteCategorical25:"color",colorChartsPaletteCategorical26:"color",colorChartsPaletteCategorical27:"color",colorChartsPaletteCategorical28:"color",colorChartsPaletteCategorical29:"color",colorChartsPaletteCategorical30:"color",colorChartsPaletteCategorical31:"color",colorChartsPaletteCategorical32:"color",colorChartsPaletteCategorical33:"color",colorChartsPaletteCategorical34:"color",colorChartsPaletteCategorical35:"color",colorChartsPaletteCategorical36:"color",colorChartsPaletteCategorical37:"color",colorChartsPaletteCategorical38:"color",colorChartsPaletteCategorical39:"color",colorChartsPaletteCategorical40:"color",colorChartsPaletteCategorical41:"color",colorChartsPaletteCategorical42:"color",colorChartsPaletteCategorical43:"color",colorChartsPaletteCategorical44:"color",colorChartsPaletteCategorical45:"color",colorChartsPaletteCategorical46:"color",colorChartsPaletteCategorical47:"color",colorChartsPaletteCategorical48:"color",colorChartsPaletteCategorical49:"color",colorChartsPaletteCategorical50:"color",colorGreyOpaque25:"color",colorGreyOpaque40:"color",colorGreyOpaque50:"color",colorGreyOpaque70:"color",colorGreyOpaque80:"color",colorGreyOpaque90:"color",colorGreyTransparent:"color",colorGreyTransparentHeavy:"color",colorGreyTransparentLight:"color",colorBackgroundBadgeIcon:"color",colorBackgroundButtonLinkActive:"color",colorBackgroundButtonLinkHover:"color",colorBackgroundButtonNormalActive:"color",colorBackgroundButtonNormalDefault:"color",colorBackgroundButtonNormalDisabled:"color",colorBackgroundButtonNormalHover:"color",colorBackgroundButtonPrimaryActive:"color",colorBackgroundButtonPrimaryDefault:"color",colorBackgroundButtonPrimaryDisabled:"color",colorBackgroundButtonPrimaryHover:"color",colorBackgroundCalendarCurrentDate:"color",colorBackgroundCellShaded:"color",colorBackgroundCodeEditorGutterActiveLineDefault:"color",colorBackgroundCodeEditorGutterActiveLineError:"color",colorBackgroundCodeEditorGutterDefault:"color",colorBackgroundCodeEditorLoading:"color",colorBackgroundCodeEditorPaneItemHover:"color",colorBackgroundCodeEditorStatusBar:"color",colorBackgroundContainerContent:"color",colorBackgroundContainerHeader:"color",colorBackgroundControlChecked:"color",colorBackgroundControlDefault:"color",colorBackgroundControlDisabled:"color",colorBackgroundDropdownItemDefault:"color",colorBackgroundDropdownItemDimmed:"color",colorBackgroundDropdownItemFilterMatch:"color",colorBackgroundDropdownItemHover:"color",colorBackgroundDropdownItemSelected:"color",colorBackgroundHomeHeader:"color",colorBackgroundInputDefault:"color",colorBackgroundInputDisabled:"color",colorBackgroundItemSelected:"color",colorBackgroundLayoutMain:"color",colorBackgroundLayoutMobilePanel:"color",colorBackgroundLayoutPanelContent:"color",colorBackgroundLayoutPanelHover:"color",colorBackgroundLayoutToggleActive:"color",colorBackgroundLayoutToggleDefault:"color",colorBackgroundLayoutToggleHover:"color",colorBackgroundLayoutToggleSelectedActive:"color",colorBackgroundLayoutToggleSelectedDefault:"color",colorBackgroundLayoutToggleSelectedHover:"color",colorBackgroundModalOverlay:"color",colorBackgroundNotificationBlue:"color",colorBackgroundNotificationGreen:"color",colorBackgroundNotificationGrey:"color",colorBackgroundNotificationRed:"color",colorBackgroundNotificationYellow:"color",colorBackgroundNotificationStackBar:"color",colorBackgroundNotificationStackBarActive:"color",colorBackgroundNotificationStackBarHover:"color",colorBackgroundPopover:"color",colorBackgroundProgressBarContentDefault:"color",colorBackgroundProgressBarContentInFlash:"color",colorBackgroundProgressBarLayoutDefault:"color",colorBackgroundProgressBarLayoutInFlash:"color",colorBackgroundSegmentActive:"color",colorBackgroundSegmentDefault:"color",colorBackgroundSegmentDisabled:"color",colorBackgroundSegmentHover:"color",colorBackgroundStatusError:"color",colorBackgroundStatusInfo:"color",colorBackgroundStatusSuccess:"color",colorBackgroundStatusWarning:"color",colorBackgroundTableHeader:"color",colorBackgroundTilesDisabled:"color",colorBackgroundToggleCheckedDisabled:"color",colorBackgroundToggleDefault:"color",colorBorderButtonNormalActive:"color",colorBorderButtonNormalDefault:"color",colorBorderButtonNormalDisabled:"color",colorBorderButtonNormalHover:"color",colorBorderButtonPrimaryDisabled:"color",colorBorderCalendarGrid:"color",colorBorderCalendarGridSelectedFocusRing:"color",colorBorderCodeEditorAceActiveLineLightTheme:"color",colorBorderCodeEditorAceActiveLineDarkTheme:"color",colorBorderCodeEditorDefault:"color",colorBorderCodeEditorPaneItemHover:"color",colorBorderContainerDivider:"color",colorBorderContainerTop:"color",colorBorderControlChecked:"color",colorBorderControlDefault:"color",colorBorderControlDisabled:"color",colorBorderDividerActive:"color",colorBorderDividerDefault:"color",colorBorderDividerPanelBottom:"color",colorBorderDividerPanelSide:"color",colorBorderDividerSecondary:"color",colorBorderDropdownContainer:"color",colorBorderDropdownGroup:"color",colorBorderDropdownItemDefault:"color",colorBorderDropdownItemHover:"color",colorBorderDropdownItemDimmedHover:"color",colorBorderDropdownItemSelected:"color",colorBorderDropdownItemTop:"color",colorBorderEditableCellHover:"color",colorBorderInputDefault:"color",colorBorderInputDisabled:"color",colorBorderInputFocused:"color",colorBorderItemFocused:"color",colorBorderDropdownItemFocused:"color",colorBorderItemPlaceholder:"color",colorBorderItemSelected:"color",colorBorderLayout:"color",colorBorderNotificationStackBar:"color",colorBorderPopover:"color",colorBorderSegmentActive:"color",colorBorderSegmentDefault:"color",colorBorderSegmentDisabled:"color",colorBorderSegmentHover:"color",colorBorderStatusError:"color",colorBorderStatusInfo:"color",colorBorderStatusSuccess:"color",colorBorderStatusWarning:"color",colorBorderDividerInteractiveDefault:"color",colorBorderTabsDivider:"color",colorBorderTabsShadow:"color",colorBorderTabsUnderline:"color",colorBorderTilesDisabled:"color",colorBorderTutorial:"color",colorForegroundControlDefault:"color",colorForegroundControlDisabled:"color",colorShadowDefault:"color",colorShadowMedium:"color",colorShadowSide:"color",colorStrokeChartLine:"color",colorStrokeCodeEditorResizeHandler:"color",colorStrokeCodeEditorGutterActiveLineDefault:"color",colorStrokeCodeEditorGutterActiveLineHover:"color",colorTextAccent:"color",colorTextBodyDefault:"color",colorTextBodySecondary:"color",colorTextBreadcrumbCurrent:"color",colorTextBreadcrumbIcon:"color",colorTextButtonInlineIconDefault:"color",colorTextButtonInlineIconDisabled:"color",colorTextButtonInlineIconHover:"color",colorTextButtonNormalActive:"color",colorTextButtonNormalDefault:"color",colorTextButtonNormalHover:"color",colorTextLinkButtonNormalDefault:"color",colorTextLinkButtonNormalHover:"color",colorTextLinkButtonNormalActive:"color",colorTextButtonPrimaryActive:"color",colorTextButtonPrimaryDefault:"color",colorTextButtonPrimaryHover:"color",colorTextCalendarDateHover:"color",colorTextCalendarDateSelected:"color",colorTextCalendarMonth:"color",colorTextCodeEditorGutterActiveLine:"color",colorTextCodeEditorGutterDefault:"color",colorTextCodeEditorStatusBarDisabled:"color",colorTextCodeEditorTabButtonError:"color",colorTextColumnHeader:"color",colorTextColumnSortingIcon:"color",colorTextControlDisabled:"color",colorTextCounter:"color",colorTextDisabled:"color",colorTextDisabledInlineEdit:"color",colorTextDropdownFooter:"color",colorTextDropdownGroupLabel:"color",colorTextDropdownItemDefault:"color",colorTextDropdownItemDimmed:"color",colorTextDropdownItemDisabled:"color",colorTextDropdownItemFilterMatch:"color",colorTextDropdownItemHighlighted:"color",colorTextDropdownItemSecondary:"color",colorTextDropdownItemSecondaryHover:"color",colorTextEmpty:"color",colorTextExpandableSectionDefault:"color",colorTextExpandableSectionHover:"color",colorTextExpandableSectionNavigationIconDefault:"color",colorTextFormDefault:"color",colorTextFormLabel:"color",colorTextFormSecondary:"color",colorTextGroupLabel:"color",colorTextHeadingDefault:"color",colorTextHeadingSecondary:"color",colorTextHomeHeaderDefault:"color",colorTextHomeHeaderSecondary:"color",colorTextIconCaret:"color",colorTextIconSubtle:"color",colorTextInputDisabled:"color",colorTextInputPlaceholder:"color",colorTextInputPlaceholderDisabled:"color",colorTextInteractiveActive:"color",colorTextInteractiveDefault:"color",colorTextInteractiveDisabled:"color",colorTextInteractiveHover:"color",colorTextInteractiveInvertedDefault:"color",colorTextInteractiveInvertedHover:"color",colorTextInverted:"color",colorTextLabel:"color",colorTextLayoutToggle:"color",colorTextLayoutToggleActive:"color",colorTextLayoutToggleHover:"color",colorTextLayoutToggleSelected:"color",colorTextLinkDefault:"color",colorTextLinkHover:"color",colorTextLinkInvertedHover:"color",colorTextLinkButtonUnderline:"color",colorTextLinkButtonUnderlineHover:"color",colorTextNotificationDefault:"color",colorTextNotificationStackBar:"color",colorTextNotificationYellow:"color",colorTextPaginationPageNumberActiveDisabled:"color",colorTextPaginationPageNumberDefault:"color",colorTextSegmentActive:"color",colorTextSegmentDefault:"color",colorTextSegmentHover:"color",colorTextSmall:"color",colorTextStatusError:"color",colorTextStatusInactive:"color",colorTextStatusInfo:"color",colorTextStatusSuccess:"color",colorTextStatusWarning:"color",colorTextTopNavigationTitle:"color",colorBoardPlaceholderActive:"color",colorBoardPlaceholderHover:"color",colorDragPlaceholderActive:"color",colorDragPlaceholderHover:"color",colorDropzoneBackgroundActive:"color",colorDropzoneBackgroundHover:"color",colorDropzoneTextActive:"color",colorDropzoneTextHover:"color",motionDurationExtraFast:"motion",motionDurationExtraSlow:"motion",motionDurationFast:"motion",motionDurationModerate:"motion",motionDurationRefreshOnlyAmbient:"motion",motionDurationRefreshOnlyFast:"motion",motionDurationRefreshOnlyMedium:"motion",motionDurationRefreshOnlySlow:"motion",motionDurationRotate180:"motion",motionDurationRotate90:"motion",motionDurationShowPaced:"motion",motionDurationShowQuick:"motion",motionDurationSlow:"motion",motionDurationTransitionQuick:"motion",motionDurationTransitionShowPaced:"motion",motionDurationTransitionShowQuick:"motion",motionEasingEaseOutQuart:"motion",motionEasingRefreshOnlyA:"motion",motionEasingRefreshOnlyB:"motion",motionEasingRefreshOnlyC:"motion",motionEasingRefreshOnlyD:"motion",motionEasingRotate180:"motion",motionEasingRotate90:"motion",motionEasingShowPaced:"motion",motionEasingShowQuick:"motion",motionEasingTransitionQuick:"motion",motionEasingTransitionShowPaced:"motion",motionEasingTransitionShowQuick:"motion",motionEasingResponsive:"motion",motionEasingSticky:"motion",motionEasingExpressive:"motion",motionDurationResponsive:"motion",motionDurationExpressive:"motion",motionDurationComplex:"motion",motionKeyframesFadeIn:"motion",motionKeyframesFadeOut:"motion",motionKeyframesStatusIconError:"motion",motionKeyframesScalePopup:"motion",sizeCalendarGridWidth:"density",sizeControl:"density",sizeIconBig:"density",sizeIconLarge:"density",sizeIconMedium:"density",sizeIconNormal:"density",sizeTableSelectionHorizontal:"density",sizeVerticalInput:"density",sizeVerticalPanelIconOffset:"density",spaceAlertActionLeft:"density",spaceAlertHorizontal:"density",spaceAlertMessageRight:"density",spaceAlertVertical:"density",spaceButtonFocusOutlineGutter:"density",spaceButtonHorizontal:"density",spaceButtonIconFocusOutlineGutterVertical:"density",spaceButtonIconOnlyHorizontal:"density",spaceButtonInlineIconFocusOutlineGutter:"density",spaceButtonModalDismissVertical:"density",spaceCalendarGridFocusOutlineGutter:"density",spaceCalendarGridSelectedFocusOutlineGutter:"density",spaceCalendarGridGutter:"density",spaceCardHorizontal:"density",spaceCardVertical:"density",spaceCodeEditorStatusFocusOutlineGutter:"density",spaceContainerContentTop:"density",spaceContainerHeaderTop:"density",spaceContainerHeaderBottom:"density",spaceContainerHorizontal:"density",spaceContentHeaderPaddingBottom:"density",spaceDarkHeaderOverlapDistance:"density",spaceExpandableSectionIconOffsetTop:"density",spaceFieldHorizontal:"density",spaceFieldIconOffset:"density",spaceFilteringTokenDismissButtonFocusOutlineGutter:"density",spaceFilteringTokenOperationSelectFocusOutlineGutter:"density",spaceFlashbarActionLeft:"density",spaceFlashbarDismissRight:"density",spaceFlashbarHorizontal:"density",spaceGridGutter:"density",spaceKeyValueGap:"density",spaceLayoutContentBottom:"density",spaceLayoutContentHorizontal:"density",spaceLayoutToggleDiameter:"density",spaceLayoutTogglePadding:"density",spaceModalContentBottom:"density",spaceModalHorizontal:"density",spaceOptionIconBigTop:"density",spacePanelNavLeft:"density",spacePanelSideLeft:"density",spacePanelSideRight:"density",spacePanelSplitTop:"density",spaceSegmentedControlFocusOutlineGutter:"density",spaceTabsContentTop:"density",spaceTabsFocusOutlineGutter:"density",spaceTableContentBottom:"density",spaceTableEmbeddedHeaderTop:"density",spaceTableFooterHorizontal:"density",spaceTableHeaderFocusOutlineGutter:"density",spaceTableHeaderHorizontal:"density",spaceTableHeaderToolsBottom:"density",spaceTableHeaderToolsFullPageBottom:"density",spaceTableHorizontal:"density",spaceScaled2xNone:"density",spaceScaled2xXxxs:"density",spaceScaled2xXxs:"density",spaceScaled2xXs:"density",spaceScaled2xS:"density",spaceScaled2xM:"density",spaceScaled2xL:"density",spaceScaled2xXl:"density",spaceScaled2xXxl:"density",spaceScaled2xXxxl:"density",spaceScaledNone:"density",spaceScaledXxxs:"density",spaceScaledXxs:"density",spaceScaledXs:"density",spaceScaledS:"density",spaceScaledM:"density",spaceScaledL:"density",spaceScaledXl:"density",spaceScaledXxl:"density",spaceScaledXxxl:"density",spaceStaticXxxs:"density",spaceStaticXxs:"density",spaceStaticXs:"density",spaceStaticS:"density",spaceStaticM:"density",spaceStaticL:"density",spaceStaticXl:"density",spaceStaticXxl:"density",spaceStaticXxxl:"density",spaceNone:"density",spaceXxxs:"density",spaceXxs:"density",spaceXs:"density",spaceS:"density",spaceM:"density",spaceL:"density",spaceXl:"density",spaceXxl:"density",spaceXxxl:"density",shadowContainer:"color",shadowContainerStacked:"color",shadowContainerActive:"color",shadowDropdown:"color",shadowDropup:"color",shadowFlashCollapsed:"color",shadowFlashSticky:"color",shadowModal:"color",shadowPanel:"color",shadowPanelToggle:"color",shadowPopover:"color",shadowSplitBottom:"color",shadowSplitSide:"color",shadowSticky:"color",shadowStickyEmbedded:"color",shadowStickyColumnFirst:"color",shadowStickyColumnLast:"color"}},secondary:[],themeable:["colorChartsStatusCritical","colorChartsStatusHigh","colorChartsStatusMedium","colorChartsStatusLow","colorChartsStatusPositive","colorChartsStatusInfo","colorChartsStatusNeutral","colorChartsThresholdNegative","colorChartsThresholdPositive","colorChartsThresholdInfo","colorChartsThresholdNeutral","colorChartsPaletteCategorical1","colorChartsPaletteCategorical2","colorChartsPaletteCategorical3","colorChartsPaletteCategorical4","colorChartsPaletteCategorical5","colorChartsPaletteCategorical6","colorChartsPaletteCategorical7","colorChartsPaletteCategorical8","colorChartsPaletteCategorical9","colorChartsPaletteCategorical10","colorChartsPaletteCategorical11","colorChartsPaletteCategorical12","colorChartsPaletteCategorical13","colorChartsPaletteCategorical14","colorChartsPaletteCategorical15","colorChartsPaletteCategorical16","colorChartsPaletteCategorical17","colorChartsPaletteCategorical18","colorChartsPaletteCategorical19","colorChartsPaletteCategorical20","colorChartsPaletteCategorical21","colorChartsPaletteCategorical22","colorChartsPaletteCategorical23","colorChartsPaletteCategorical24","colorChartsPaletteCategorical25","colorChartsPaletteCategorical26","colorChartsPaletteCategorical27","colorChartsPaletteCategorical28","colorChartsPaletteCategorical29","colorChartsPaletteCategorical30","colorChartsPaletteCategorical31","colorChartsPaletteCategorical32","colorChartsPaletteCategorical33","colorChartsPaletteCategorical34","colorChartsPaletteCategorical35","colorChartsPaletteCategorical36","colorChartsPaletteCategorical37","colorChartsPaletteCategorical38","colorChartsPaletteCategorical39","colorChartsPaletteCategorical40","colorChartsPaletteCategorical41","colorChartsPaletteCategorical42","colorChartsPaletteCategorical43","colorChartsPaletteCategorical44","colorChartsPaletteCategorical45","colorChartsPaletteCategorical46","colorChartsPaletteCategorical47","colorChartsPaletteCategorical48","colorChartsPaletteCategorical49","colorChartsPaletteCategorical50","colorBackgroundButtonNormalActive","colorBackgroundButtonNormalDefault","colorBackgroundButtonNormalDisabled","colorBackgroundButtonNormalHover","colorBackgroundButtonPrimaryActive","colorBackgroundButtonPrimaryDefault","colorBackgroundButtonPrimaryDisabled","colorBackgroundButtonPrimaryHover","colorBackgroundCellShaded","colorBackgroundContainerContent","colorBackgroundContainerHeader","colorBackgroundControlChecked","colorBackgroundControlDefault","colorBackgroundControlDisabled","colorBackgroundDropdownItemDefault","colorBackgroundDropdownItemFilterMatch","colorBackgroundDropdownItemHover","colorBackgroundHomeHeader","colorBackgroundInputDefault","colorBackgroundInputDisabled","colorBackgroundItemSelected","colorBackgroundLayoutMain","colorBackgroundLayoutToggleActive","colorBackgroundLayoutToggleDefault","colorBackgroundLayoutToggleHover","colorBackgroundLayoutToggleSelectedActive","colorBackgroundLayoutToggleSelectedDefault","colorBackgroundLayoutToggleSelectedHover","colorBackgroundNotificationBlue","colorBackgroundNotificationGreen","colorBackgroundNotificationRed","colorBackgroundNotificationYellow","colorBackgroundPopover","colorBackgroundSegmentActive","colorBackgroundSegmentDefault","colorBackgroundSegmentDisabled","colorBackgroundSegmentHover","colorBackgroundStatusError","colorBackgroundStatusInfo","colorBackgroundStatusSuccess","colorBackgroundStatusWarning","colorBackgroundToggleCheckedDisabled","colorBorderButtonNormalActive","colorBorderButtonNormalDefault","colorBorderButtonNormalDisabled","colorBorderButtonNormalHover","colorBorderButtonPrimaryDisabled","colorBorderContainerTop","colorBorderControlDefault","colorBorderDividerDefault","colorBorderDividerSecondary","colorBorderDropdownItemHover","colorBorderInputDefault","colorBorderInputFocused","colorBorderItemFocused","colorBorderDropdownItemFocused","colorBorderItemSelected","colorBorderSegmentActive","colorBorderSegmentDefault","colorBorderSegmentDisabled","colorBorderSegmentHover","colorBorderStatusError","colorBorderStatusInfo","colorBorderStatusSuccess","colorBorderStatusWarning","colorForegroundControlDefault","colorForegroundControlDisabled","colorTextAccent","colorTextBodyDefault","colorTextBodySecondary","colorTextBreadcrumbCurrent","colorTextBreadcrumbIcon","colorTextButtonNormalActive","colorTextButtonNormalDefault","colorTextButtonNormalHover","colorTextLinkButtonNormalDefault","colorTextLinkButtonNormalHover","colorTextLinkButtonNormalActive","colorTextButtonPrimaryActive","colorTextButtonPrimaryDefault","colorTextButtonPrimaryHover","colorTextCounter","colorTextDropdownItemFilterMatch","colorTextDropdownItemHighlighted","colorTextEmpty","colorTextFormDefault","colorTextFormSecondary","colorTextGroupLabel","colorTextHeadingDefault","colorTextHeadingSecondary","colorTextHomeHeaderDefault","colorTextHomeHeaderSecondary","colorTextInputDisabled","colorTextInputPlaceholder","colorTextInteractiveActive","colorTextInteractiveDefault","colorTextInteractiveDisabled","colorTextInteractiveHover","colorTextInteractiveInvertedDefault","colorTextInteractiveInvertedHover","colorTextLabel","colorTextLayoutToggle","colorTextLayoutToggleActive","colorTextLayoutToggleHover","colorTextLayoutToggleSelected","colorTextLinkDefault","colorTextLinkHover","colorTextNotificationDefault","colorTextSegmentActive","colorTextSegmentDefault","colorTextSegmentHover","colorTextStatusError","colorTextStatusInactive","colorTextStatusInfo","colorTextStatusSuccess","colorTextStatusWarning","colorTextTopNavigationTitle","fontFamilyBase","fontFamilyMonospace","fontSizeBodyM","fontSizeBodyS","fontSizeDisplayL","fontSizeHeadingXl","fontSizeHeadingL","fontSizeHeadingM","fontSizeHeadingS","fontSizeHeadingXs","fontWeightHeadingXl","fontWeightHeadingL","fontWeightHeadingM","fontWeightHeadingS","fontWeightHeadingXs","lineHeightBodyM","lineHeightBodyS","lineHeightDisplayL","lineHeightHeadingXl","lineHeightHeadingL","lineHeightHeadingM","lineHeightHeadingS","lineHeightHeadingXs","borderRadiusAlert","borderRadiusBadge","borderRadiusButton","borderRadiusCalendarDayFocusRing","borderRadiusContainer","borderRadiusControlCircularFocusRing","borderRadiusControlDefaultFocusRing","borderRadiusDropdown","borderRadiusFlashbar","borderRadiusItem","borderRadiusInput","borderRadiusPopover","borderRadiusTabsFocusRing","borderRadiusTiles","borderRadiusToken","borderRadiusTutorialPanelItem"],exposed:["colorChartsRed300","colorChartsRed400","colorChartsRed500","colorChartsRed600","colorChartsRed700","colorChartsRed800","colorChartsRed900","colorChartsRed1000","colorChartsRed1100","colorChartsRed1200","colorChartsOrange300","colorChartsOrange400","colorChartsOrange500","colorChartsOrange600","colorChartsOrange700","colorChartsOrange800","colorChartsOrange900","colorChartsOrange1000","colorChartsOrange1100","colorChartsOrange1200","colorChartsYellow300","colorChartsYellow400","colorChartsYellow500","colorChartsYellow600","colorChartsYellow700","colorChartsYellow800","colorChartsYellow900","colorChartsYellow1000","colorChartsYellow1100","colorChartsYellow1200","colorChartsGreen300","colorChartsGreen400","colorChartsGreen500","colorChartsGreen600","colorChartsGreen700","colorChartsGreen800","colorChartsGreen900","colorChartsGreen1000","colorChartsGreen1100","colorChartsGreen1200","colorChartsTeal300","colorChartsTeal400","colorChartsTeal500","colorChartsTeal600","colorChartsTeal700","colorChartsTeal800","colorChartsTeal900","colorChartsTeal1000","colorChartsTeal1100","colorChartsTeal1200","colorChartsBlue1300","colorChartsBlue1400","colorChartsBlue1500","colorChartsBlue1600","colorChartsBlue1700","colorChartsBlue1800","colorChartsBlue1900","colorChartsBlue11000","colorChartsBlue11100","colorChartsBlue11200","colorChartsBlue2300","colorChartsBlue2400","colorChartsBlue2500","colorChartsBlue2600","colorChartsBlue2700","colorChartsBlue2800","colorChartsBlue2900","colorChartsBlue21000","colorChartsBlue21100","colorChartsBlue21200","colorChartsPurple300","colorChartsPurple400","colorChartsPurple500","colorChartsPurple600","colorChartsPurple700","colorChartsPurple800","colorChartsPurple900","colorChartsPurple1000","colorChartsPurple1100","colorChartsPurple1200","colorChartsPink300","colorChartsPink400","colorChartsPink500","colorChartsPink600","colorChartsPink700","colorChartsPink800","colorChartsPink900","colorChartsPink1000","colorChartsPink1100","colorChartsPink1200","colorChartsStatusCritical","colorChartsStatusHigh","colorChartsStatusMedium","colorChartsStatusLow","colorChartsStatusPositive","colorChartsStatusInfo","colorChartsStatusNeutral","colorChartsThresholdNegative","colorChartsThresholdPositive","colorChartsThresholdInfo","colorChartsThresholdNeutral","colorChartsLineGrid","colorChartsLineTick","colorChartsLineAxis","colorChartsPaletteCategorical1","colorChartsPaletteCategorical2","colorChartsPaletteCategorical3","colorChartsPaletteCategorical4","colorChartsPaletteCategorical5","colorChartsPaletteCategorical6","colorChartsPaletteCategorical7","colorChartsPaletteCategorical8","colorChartsPaletteCategorical9","colorChartsPaletteCategorical10","colorChartsPaletteCategorical11","colorChartsPaletteCategorical12","colorChartsPaletteCategorical13","colorChartsPaletteCategorical14","colorChartsPaletteCategorical15","colorChartsPaletteCategorical16","colorChartsPaletteCategorical17","colorChartsPaletteCategorical18","colorChartsPaletteCategorical19","colorChartsPaletteCategorical20","colorChartsPaletteCategorical21","colorChartsPaletteCategorical22","colorChartsPaletteCategorical23","colorChartsPaletteCategorical24","colorChartsPaletteCategorical25","colorChartsPaletteCategorical26","colorChartsPaletteCategorical27","colorChartsPaletteCategorical28","colorChartsPaletteCategorical29","colorChartsPaletteCategorical30","colorChartsPaletteCategorical31","colorChartsPaletteCategorical32","colorChartsPaletteCategorical33","colorChartsPaletteCategorical34","colorChartsPaletteCategorical35","colorChartsPaletteCategorical36","colorChartsPaletteCategorical37","colorChartsPaletteCategorical38","colorChartsPaletteCategorical39","colorChartsPaletteCategorical40","colorChartsPaletteCategorical41","colorChartsPaletteCategorical42","colorChartsPaletteCategorical43","colorChartsPaletteCategorical44","colorChartsPaletteCategorical45","colorChartsPaletteCategorical46","colorChartsPaletteCategorical47","colorChartsPaletteCategorical48","colorChartsPaletteCategorical49","colorChartsPaletteCategorical50","colorBackgroundButtonNormalActive","colorBackgroundButtonNormalDefault","colorBackgroundButtonNormalDisabled","colorBackgroundButtonNormalHover","colorBackgroundButtonPrimaryActive","colorBackgroundButtonPrimaryDefault","colorBackgroundButtonPrimaryDisabled","colorBackgroundButtonPrimaryHover","colorBackgroundCellShaded","colorBackgroundContainerContent","colorBackgroundContainerHeader","colorBackgroundControlChecked","colorBackgroundControlDefault","colorBackgroundControlDisabled","colorBackgroundDropdownItemDefault","colorBackgroundDropdownItemFilterMatch","colorBackgroundDropdownItemHover","colorBackgroundHomeHeader","colorBackgroundInputDefault","colorBackgroundInputDisabled","colorBackgroundItemSelected","colorBackgroundLayoutMain","colorBackgroundLayoutToggleActive","colorBackgroundLayoutToggleDefault","colorBackgroundLayoutToggleHover","colorBackgroundLayoutToggleSelectedActive","colorBackgroundLayoutToggleSelectedDefault","colorBackgroundLayoutToggleSelectedHover","colorBackgroundNotificationBlue","colorBackgroundNotificationGreen","colorBackgroundNotificationRed","colorBackgroundNotificationYellow","colorBackgroundPopover","colorBackgroundSegmentActive","colorBackgroundSegmentDefault","colorBackgroundSegmentDisabled","colorBackgroundSegmentHover","colorBackgroundStatusError","colorBackgroundStatusInfo","colorBackgroundStatusSuccess","colorBackgroundStatusWarning","colorBackgroundToggleCheckedDisabled","colorBorderButtonNormalActive","colorBorderButtonNormalDefault","colorBorderButtonNormalDisabled","colorBorderButtonNormalHover","colorBorderButtonPrimaryDisabled","colorBorderContainerTop","colorBorderControlDefault","colorBorderDividerDefault","colorBorderDividerSecondary","colorBorderDropdownItemHover","colorBorderInputDefault","colorBorderInputFocused","colorBorderItemFocused","colorBorderDropdownItemFocused","colorBorderItemSelected","colorBorderSegmentActive","colorBorderSegmentDefault","colorBorderSegmentDisabled","colorBorderSegmentHover","colorBorderStatusError","colorBorderStatusInfo","colorBorderStatusSuccess","colorBorderStatusWarning","colorForegroundControlDefault","colorForegroundControlDisabled","colorTextAccent","colorTextBodyDefault","colorTextBodySecondary","colorTextBreadcrumbCurrent","colorTextBreadcrumbIcon","colorTextButtonNormalActive","colorTextButtonNormalDefault","colorTextButtonNormalHover","colorTextButtonPrimaryActive","colorTextButtonPrimaryDefault","colorTextButtonPrimaryHover","colorTextCounter","colorTextDropdownItemFilterMatch","colorTextDropdownItemHighlighted","colorTextEmpty","colorTextFormDefault","colorTextFormSecondary","colorTextGroupLabel","colorTextHeadingDefault","colorTextHeadingSecondary","colorTextHomeHeaderDefault","colorTextHomeHeaderSecondary","colorTextInputDisabled","colorTextInputPlaceholder","colorTextInteractiveActive","colorTextInteractiveDefault","colorTextInteractiveDisabled","colorTextInteractiveHover","colorTextInteractiveInvertedDefault","colorTextInteractiveInvertedHover","colorTextLabel","colorTextLayoutToggle","colorTextLayoutToggleActive","colorTextLayoutToggleHover","colorTextLayoutToggleSelected","colorTextLinkDefault","colorTextLinkHover","colorTextNotificationDefault","colorTextSegmentActive","colorTextSegmentDefault","colorTextSegmentHover","colorTextStatusError","colorTextStatusInactive","colorTextStatusInfo","colorTextStatusSuccess","colorTextStatusWarning","colorTextTopNavigationTitle","colorBoardPlaceholderActive","colorBoardPlaceholderHover","colorDragPlaceholderActive","colorDragPlaceholderHover","fontFamilyBase","fontFamilyMonospace","fontSizeBodyM","fontSizeBodyS","fontSizeDisplayL","fontSizeHeadingXl","fontSizeHeadingL","fontSizeHeadingM","fontSizeHeadingS","fontSizeHeadingXs","fontWeightHeadingXl","fontWeightHeadingL","fontWeightHeadingM","fontWeightHeadingS","fontWeightHeadingXs","lineHeightBodyM","lineHeightBodyS","lineHeightDisplayL","lineHeightHeadingXl","lineHeightHeadingL","lineHeightHeadingM","lineHeightHeadingS","lineHeightHeadingXs","borderRadiusAlert","borderRadiusBadge","borderRadiusButton","borderRadiusCalendarDayFocusRing","borderRadiusContainer","borderRadiusControlCircularFocusRing","borderRadiusControlDefaultFocusRing","borderRadiusDropdown","borderRadiusFlashbar","borderRadiusItem","borderRadiusInput","borderRadiusPopover","borderRadiusTabsFocusRing","borderRadiusTiles","borderRadiusToken","borderRadiusTutorialPanelItem","motionEasingResponsive","motionEasingSticky","motionEasingExpressive","motionDurationResponsive","motionDurationExpressive","motionDurationComplex","motionKeyframesFadeIn","motionKeyframesFadeOut","motionKeyframesStatusIconError","motionKeyframesScalePopup","spaceContainerHorizontal","spaceFieldHorizontal","spaceScaledXxxs","spaceScaledXxs","spaceScaledXs","spaceScaledS","spaceScaledM","spaceScaledL","spaceScaledXl","spaceScaledXxl","spaceScaledXxxl","spaceStaticXxxs","spaceStaticXxs","spaceStaticXs","spaceStaticS","spaceStaticM","spaceStaticL","spaceStaticXl","spaceStaticXxl","spaceStaticXxxl","shadowContainerActive"],variablesMap:{colorAmazonOrange:"color-amazon-orange",colorAwsSquidInk:"color-aws-squid-ink",colorBlack:"color-black",colorBlue100:"color-blue-100",colorBlue200:"color-blue-200",colorBlue300:"color-blue-300",colorBlue400:"color-blue-400",colorBlue500:"color-blue-500",colorBlue600:"color-blue-600",colorBlue700:"color-blue-700",colorBlue800:"color-blue-800",colorBlue900:"color-blue-900",colorBlueOpaque:"color-blue-opaque",colorGreen100:"color-green-100",colorGreen500:"color-green-500",colorGreen600:"color-green-600",colorGreen700:"color-green-700",colorGreen900:"color-green-900",colorGrey100:"color-grey-100",colorGrey125:"color-grey-125",colorGrey150:"color-grey-150",colorGrey200:"color-grey-200",colorGrey300:"color-grey-300",colorGrey350:"color-grey-350",colorGrey400:"color-grey-400",colorGrey450:"color-grey-450",colorGrey500:"color-grey-500",colorGrey550:"color-grey-550",colorGrey600:"color-grey-600",colorGrey650:"color-grey-650",colorGrey700:"color-grey-700",colorGrey750:"color-grey-750",colorGrey800:"color-grey-800",colorGrey850:"color-grey-850",colorGrey900:"color-grey-900",colorGrey950:"color-grey-950",colorOrange100:"color-orange-100",colorOrange500:"color-orange-500",colorOrange600:"color-orange-600",colorOrange700:"color-orange-700",colorRed100:"color-red-100",colorRed500:"color-red-500",colorRed600:"color-red-600",colorRed700:"color-red-700",colorRed900:"color-red-900",colorTransparent:"color-transparent",colorWhite:"color-white",colorYellow100:"color-yellow-100",colorYellow600:"color-yellow-600",colorYellow700:"color-yellow-700",colorYellow800:"color-yellow-800",colorYellow900:"color-yellow-900",colorChartsRed300:"color-charts-red-300",colorChartsRed400:"color-charts-red-400",colorChartsRed500:"color-charts-red-500",colorChartsRed600:"color-charts-red-600",colorChartsRed700:"color-charts-red-700",colorChartsRed800:"color-charts-red-800",colorChartsRed900:"color-charts-red-900",colorChartsRed1000:"color-charts-red-1000",colorChartsRed1100:"color-charts-red-1100",colorChartsRed1200:"color-charts-red-1200",colorChartsOrange300:"color-charts-orange-300",colorChartsOrange400:"color-charts-orange-400",colorChartsOrange500:"color-charts-orange-500",colorChartsOrange600:"color-charts-orange-600",colorChartsOrange700:"color-charts-orange-700",colorChartsOrange800:"color-charts-orange-800",colorChartsOrange900:"color-charts-orange-900",colorChartsOrange1000:"color-charts-orange-1000",colorChartsOrange1100:"color-charts-orange-1100",colorChartsOrange1200:"color-charts-orange-1200",colorChartsYellow300:"color-charts-yellow-300",colorChartsYellow400:"color-charts-yellow-400",colorChartsYellow500:"color-charts-yellow-500",colorChartsYellow600:"color-charts-yellow-600",colorChartsYellow700:"color-charts-yellow-700",colorChartsYellow800:"color-charts-yellow-800",colorChartsYellow900:"color-charts-yellow-900",colorChartsYellow1000:"color-charts-yellow-1000",colorChartsYellow1100:"color-charts-yellow-1100",colorChartsYellow1200:"color-charts-yellow-1200",colorChartsGreen300:"color-charts-green-300",colorChartsGreen400:"color-charts-green-400",colorChartsGreen500:"color-charts-green-500",colorChartsGreen600:"color-charts-green-600",colorChartsGreen700:"color-charts-green-700",colorChartsGreen800:"color-charts-green-800",colorChartsGreen900:"color-charts-green-900",colorChartsGreen1000:"color-charts-green-1000",colorChartsGreen1100:"color-charts-green-1100",colorChartsGreen1200:"color-charts-green-1200",colorChartsTeal300:"color-charts-teal-300",colorChartsTeal400:"color-charts-teal-400",colorChartsTeal500:"color-charts-teal-500",colorChartsTeal600:"color-charts-teal-600",colorChartsTeal700:"color-charts-teal-700",colorChartsTeal800:"color-charts-teal-800",colorChartsTeal900:"color-charts-teal-900",colorChartsTeal1000:"color-charts-teal-1000",colorChartsTeal1100:"color-charts-teal-1100",colorChartsTeal1200:"color-charts-teal-1200",colorChartsBlue1300:"color-charts-blue-1-300",colorChartsBlue1400:"color-charts-blue-1-400",colorChartsBlue1500:"color-charts-blue-1-500",colorChartsBlue1600:"color-charts-blue-1-600",colorChartsBlue1700:"color-charts-blue-1-700",colorChartsBlue1800:"color-charts-blue-1-800",colorChartsBlue1900:"color-charts-blue-1-900",colorChartsBlue11000:"color-charts-blue-1-1000",colorChartsBlue11100:"color-charts-blue-1-1100",colorChartsBlue11200:"color-charts-blue-1-1200",colorChartsBlue2300:"color-charts-blue-2-300",colorChartsBlue2400:"color-charts-blue-2-400",colorChartsBlue2500:"color-charts-blue-2-500",colorChartsBlue2600:"color-charts-blue-2-600",colorChartsBlue2700:"color-charts-blue-2-700",colorChartsBlue2800:"color-charts-blue-2-800",colorChartsBlue2900:"color-charts-blue-2-900",colorChartsBlue21000:"color-charts-blue-2-1000",colorChartsBlue21100:"color-charts-blue-2-1100",colorChartsBlue21200:"color-charts-blue-2-1200",colorChartsPurple300:"color-charts-purple-300",colorChartsPurple400:"color-charts-purple-400",colorChartsPurple500:"color-charts-purple-500",colorChartsPurple600:"color-charts-purple-600",colorChartsPurple700:"color-charts-purple-700",colorChartsPurple800:"color-charts-purple-800",colorChartsPurple900:"color-charts-purple-900",colorChartsPurple1000:"color-charts-purple-1000",colorChartsPurple1100:"color-charts-purple-1100",colorChartsPurple1200:"color-charts-purple-1200",colorChartsPink300:"color-charts-pink-300",colorChartsPink400:"color-charts-pink-400",colorChartsPink500:"color-charts-pink-500",colorChartsPink600:"color-charts-pink-600",colorChartsPink700:"color-charts-pink-700",colorChartsPink800:"color-charts-pink-800",colorChartsPink900:"color-charts-pink-900",colorChartsPink1000:"color-charts-pink-1000",colorChartsPink1100:"color-charts-pink-1100",colorChartsPink1200:"color-charts-pink-1200",colorChartsStatusCritical:"color-charts-status-critical",colorChartsStatusHigh:"color-charts-status-high",colorChartsStatusMedium:"color-charts-status-medium",colorChartsStatusLow:"color-charts-status-low",colorChartsStatusPositive:"color-charts-status-positive",colorChartsStatusInfo:"color-charts-status-info",colorChartsStatusNeutral:"color-charts-status-neutral",colorChartsThresholdNegative:"color-charts-threshold-negative",colorChartsThresholdPositive:"color-charts-threshold-positive",colorChartsThresholdInfo:"color-charts-threshold-info",colorChartsThresholdNeutral:"color-charts-threshold-neutral",colorChartsLineGrid:"color-charts-line-grid",colorChartsLineTick:"color-charts-line-tick",colorChartsLineAxis:"color-charts-line-axis",colorChartsPaletteCategorical1:"color-charts-palette-categorical-1",colorChartsPaletteCategorical2:"color-charts-palette-categorical-2",colorChartsPaletteCategorical3:"color-charts-palette-categorical-3",colorChartsPaletteCategorical4:"color-charts-palette-categorical-4",colorChartsPaletteCategorical5:"color-charts-palette-categorical-5",colorChartsPaletteCategorical6:"color-charts-palette-categorical-6",colorChartsPaletteCategorical7:"color-charts-palette-categorical-7",colorChartsPaletteCategorical8:"color-charts-palette-categorical-8",colorChartsPaletteCategorical9:"color-charts-palette-categorical-9",colorChartsPaletteCategorical10:"color-charts-palette-categorical-10",colorChartsPaletteCategorical11:"color-charts-palette-categorical-11",colorChartsPaletteCategorical12:"color-charts-palette-categorical-12",colorChartsPaletteCategorical13:"color-charts-palette-categorical-13",colorChartsPaletteCategorical14:"color-charts-palette-categorical-14",colorChartsPaletteCategorical15:"color-charts-palette-categorical-15",colorChartsPaletteCategorical16:"color-charts-palette-categorical-16",colorChartsPaletteCategorical17:"color-charts-palette-categorical-17",colorChartsPaletteCategorical18:"color-charts-palette-categorical-18",colorChartsPaletteCategorical19:"color-charts-palette-categorical-19",colorChartsPaletteCategorical20:"color-charts-palette-categorical-20",colorChartsPaletteCategorical21:"color-charts-palette-categorical-21",colorChartsPaletteCategorical22:"color-charts-palette-categorical-22",colorChartsPaletteCategorical23:"color-charts-palette-categorical-23",colorChartsPaletteCategorical24:"color-charts-palette-categorical-24",colorChartsPaletteCategorical25:"color-charts-palette-categorical-25",colorChartsPaletteCategorical26:"color-charts-palette-categorical-26",colorChartsPaletteCategorical27:"color-charts-palette-categorical-27",colorChartsPaletteCategorical28:"color-charts-palette-categorical-28",colorChartsPaletteCategorical29:"color-charts-palette-categorical-29",colorChartsPaletteCategorical30:"color-charts-palette-categorical-30",colorChartsPaletteCategorical31:"color-charts-palette-categorical-31",colorChartsPaletteCategorical32:"color-charts-palette-categorical-32",colorChartsPaletteCategorical33:"color-charts-palette-categorical-33",colorChartsPaletteCategorical34:"color-charts-palette-categorical-34",colorChartsPaletteCategorical35:"color-charts-palette-categorical-35",colorChartsPaletteCategorical36:"color-charts-palette-categorical-36",colorChartsPaletteCategorical37:"color-charts-palette-categorical-37",colorChartsPaletteCategorical38:"color-charts-palette-categorical-38",colorChartsPaletteCategorical39:"color-charts-palette-categorical-39",colorChartsPaletteCategorical40:"color-charts-palette-categorical-40",colorChartsPaletteCategorical41:"color-charts-palette-categorical-41",colorChartsPaletteCategorical42:"color-charts-palette-categorical-42",colorChartsPaletteCategorical43:"color-charts-palette-categorical-43",colorChartsPaletteCategorical44:"color-charts-palette-categorical-44",colorChartsPaletteCategorical45:"color-charts-palette-categorical-45",colorChartsPaletteCategorical46:"color-charts-palette-categorical-46",colorChartsPaletteCategorical47:"color-charts-palette-categorical-47",colorChartsPaletteCategorical48:"color-charts-palette-categorical-48",colorChartsPaletteCategorical49:"color-charts-palette-categorical-49",colorChartsPaletteCategorical50:"color-charts-palette-categorical-50",colorGreyOpaque25:"color-grey-opaque-25",colorGreyOpaque40:"color-grey-opaque-40",colorGreyOpaque50:"color-grey-opaque-50",colorGreyOpaque70:"color-grey-opaque-70",colorGreyOpaque80:"color-grey-opaque-80",colorGreyOpaque90:"color-grey-opaque-90",colorGreyTransparent:"color-grey-transparent",colorGreyTransparentHeavy:"color-grey-transparent-heavy",colorGreyTransparentLight:"color-grey-transparent-light",colorBackgroundBadgeIcon:"color-background-badge-icon",colorBackgroundButtonLinkActive:"color-background-button-link-active",colorBackgroundButtonLinkHover:"color-background-button-link-hover",colorBackgroundButtonNormalActive:"color-background-button-normal-active",colorBackgroundButtonNormalDefault:"color-background-button-normal-default",colorBackgroundButtonNormalDisabled:"color-background-button-normal-disabled",colorBackgroundButtonNormalHover:"color-background-button-normal-hover",colorBackgroundButtonPrimaryActive:"color-background-button-primary-active",colorBackgroundButtonPrimaryDefault:"color-background-button-primary-default",colorBackgroundButtonPrimaryDisabled:"color-background-button-primary-disabled",colorBackgroundButtonPrimaryHover:"color-background-button-primary-hover",colorBackgroundCalendarCurrentDate:"color-background-calendar-current-date",colorBackgroundCellShaded:"color-background-cell-shaded",colorBackgroundCodeEditorGutterActiveLineDefault:"color-background-code-editor-gutter-active-line-default",colorBackgroundCodeEditorGutterActiveLineError:"color-background-code-editor-gutter-active-line-error",colorBackgroundCodeEditorGutterDefault:"color-background-code-editor-gutter-default",colorBackgroundCodeEditorLoading:"color-background-code-editor-loading",colorBackgroundCodeEditorPaneItemHover:"color-background-code-editor-pane-item-hover",colorBackgroundCodeEditorStatusBar:"color-background-code-editor-status-bar",colorBackgroundContainerContent:"color-background-container-content",colorBackgroundContainerHeader:"color-background-container-header",colorBackgroundControlChecked:"color-background-control-checked",colorBackgroundControlDefault:"color-background-control-default",colorBackgroundControlDisabled:"color-background-control-disabled",colorBackgroundDropdownItemDefault:"color-background-dropdown-item-default",colorBackgroundDropdownItemDimmed:"color-background-dropdown-item-dimmed",colorBackgroundDropdownItemFilterMatch:"color-background-dropdown-item-filter-match",colorBackgroundDropdownItemHover:"color-background-dropdown-item-hover",colorBackgroundDropdownItemSelected:"color-background-dropdown-item-selected",colorBackgroundHomeHeader:"color-background-home-header",colorBackgroundInputDefault:"color-background-input-default",colorBackgroundInputDisabled:"color-background-input-disabled",colorBackgroundItemSelected:"color-background-item-selected",colorBackgroundLayoutMain:"color-background-layout-main",colorBackgroundLayoutMobilePanel:"color-background-layout-mobile-panel",colorBackgroundLayoutPanelContent:"color-background-layout-panel-content",colorBackgroundLayoutPanelHover:"color-background-layout-panel-hover",colorBackgroundLayoutToggleActive:"color-background-layout-toggle-active",colorBackgroundLayoutToggleDefault:"color-background-layout-toggle-default",colorBackgroundLayoutToggleHover:"color-background-layout-toggle-hover",colorBackgroundLayoutToggleSelectedActive:"color-background-layout-toggle-selected-active",colorBackgroundLayoutToggleSelectedDefault:"color-background-layout-toggle-selected-default",colorBackgroundLayoutToggleSelectedHover:"color-background-layout-toggle-selected-hover",colorBackgroundModalOverlay:"color-background-modal-overlay",colorBackgroundNotificationBlue:"color-background-notification-blue",colorBackgroundNotificationGreen:"color-background-notification-green",colorBackgroundNotificationGrey:"color-background-notification-grey",colorBackgroundNotificationRed:"color-background-notification-red",colorBackgroundNotificationYellow:"color-background-notification-yellow",colorBackgroundNotificationStackBar:"color-background-notification-stack-bar",colorBackgroundNotificationStackBarActive:"color-background-notification-stack-bar-active",colorBackgroundNotificationStackBarHover:"color-background-notification-stack-bar-hover",colorBackgroundPopover:"color-background-popover",colorBackgroundProgressBarContentDefault:"color-background-progress-bar-content-default",colorBackgroundProgressBarContentInFlash:"color-background-progress-bar-content-in-flash",colorBackgroundProgressBarLayoutDefault:"color-background-progress-bar-layout-default",colorBackgroundProgressBarLayoutInFlash:"color-background-progress-bar-layout-in-flash",colorBackgroundSegmentActive:"color-background-segment-active",colorBackgroundSegmentDefault:"color-background-segment-default",colorBackgroundSegmentDisabled:"color-background-segment-disabled",colorBackgroundSegmentHover:"color-background-segment-hover",colorBackgroundStatusError:"color-background-status-error",colorBackgroundStatusInfo:"color-background-status-info",colorBackgroundStatusSuccess:"color-background-status-success",colorBackgroundStatusWarning:"color-background-status-warning",colorBackgroundTableHeader:"color-background-table-header",colorBackgroundTilesDisabled:"color-background-tiles-disabled",colorBackgroundToggleCheckedDisabled:"color-background-toggle-checked-disabled",colorBackgroundToggleDefault:"color-background-toggle-default",colorBorderButtonNormalActive:"color-border-button-normal-active",colorBorderButtonNormalDefault:"color-border-button-normal-default",colorBorderButtonNormalDisabled:"color-border-button-normal-disabled",colorBorderButtonNormalHover:"color-border-button-normal-hover",colorBorderButtonPrimaryDisabled:"color-border-button-primary-disabled",colorBorderCalendarGrid:"color-border-calendar-grid",colorBorderCalendarGridSelectedFocusRing:"color-border-calendar-grid-selected-focus-ring",colorBorderCodeEditorAceActiveLineLightTheme:"color-border-code-editor-ace-active-line-light-theme",colorBorderCodeEditorAceActiveLineDarkTheme:"color-border-code-editor-ace-active-line-dark-theme",colorBorderCodeEditorDefault:"color-border-code-editor-default",colorBorderCodeEditorPaneItemHover:"color-border-code-editor-pane-item-hover",colorBorderContainerDivider:"color-border-container-divider",colorBorderContainerTop:"color-border-container-top",colorBorderControlChecked:"color-border-control-checked",colorBorderControlDefault:"color-border-control-default",colorBorderControlDisabled:"color-border-control-disabled",colorBorderDividerActive:"color-border-divider-active",colorBorderDividerDefault:"color-border-divider-default",colorBorderDividerPanelBottom:"color-border-divider-panel-bottom",colorBorderDividerPanelSide:"color-border-divider-panel-side",colorBorderDividerSecondary:"color-border-divider-secondary",colorBorderDropdownContainer:"color-border-dropdown-container",colorBorderDropdownGroup:"color-border-dropdown-group",colorBorderDropdownItemDefault:"color-border-dropdown-item-default",colorBorderDropdownItemHover:"color-border-dropdown-item-hover",colorBorderDropdownItemDimmedHover:"color-border-dropdown-item-dimmed-hover",colorBorderDropdownItemSelected:"color-border-dropdown-item-selected",colorBorderDropdownItemTop:"color-border-dropdown-item-top",colorBorderEditableCellHover:"color-border-editable-cell-hover",colorBorderInputDefault:"color-border-input-default",colorBorderInputDisabled:"color-border-input-disabled",colorBorderInputFocused:"color-border-input-focused",colorBorderItemFocused:"color-border-item-focused",colorBorderDropdownItemFocused:"color-border-dropdown-item-focused",colorBorderItemPlaceholder:"color-border-item-placeholder",colorBorderItemSelected:"color-border-item-selected",colorBorderLayout:"color-border-layout",colorBorderNotificationStackBar:"color-border-notification-stack-bar",colorBorderPopover:"color-border-popover",colorBorderSegmentActive:"color-border-segment-active",colorBorderSegmentDefault:"color-border-segment-default",colorBorderSegmentDisabled:"color-border-segment-disabled",colorBorderSegmentHover:"color-border-segment-hover",colorBorderStatusError:"color-border-status-error",colorBorderStatusInfo:"color-border-status-info",colorBorderStatusSuccess:"color-border-status-success",colorBorderStatusWarning:"color-border-status-warning",colorBorderDividerInteractiveDefault:"color-border-divider-interactive-default",colorBorderTabsDivider:"color-border-tabs-divider",colorBorderTabsShadow:"color-border-tabs-shadow",colorBorderTabsUnderline:"color-border-tabs-underline",colorBorderTilesDisabled:"color-border-tiles-disabled",colorBorderTutorial:"color-border-tutorial",colorForegroundControlDefault:"color-foreground-control-default",colorForegroundControlDisabled:"color-foreground-control-disabled",colorShadowDefault:"color-shadow-default",colorShadowMedium:"color-shadow-medium",colorShadowSide:"color-shadow-side",colorStrokeChartLine:"color-stroke-chart-line",colorStrokeCodeEditorResizeHandler:"color-stroke-code-editor-resize-handler",colorStrokeCodeEditorGutterActiveLineDefault:"color-stroke-code-editor-gutter-active-line-default",colorStrokeCodeEditorGutterActiveLineHover:"color-stroke-code-editor-gutter-active-line-hover",colorTextAccent:"color-text-accent",colorTextBodyDefault:"color-text-body-default",colorTextBodySecondary:"color-text-body-secondary",colorTextBreadcrumbCurrent:"color-text-breadcrumb-current",colorTextBreadcrumbIcon:"color-text-breadcrumb-icon",colorTextButtonInlineIconDefault:"color-text-button-inline-icon-default",colorTextButtonInlineIconDisabled:"color-text-button-inline-icon-disabled",colorTextButtonInlineIconHover:"color-text-button-inline-icon-hover",colorTextButtonNormalActive:"color-text-button-normal-active",colorTextButtonNormalDefault:"color-text-button-normal-default",colorTextButtonNormalHover:"color-text-button-normal-hover",colorTextLinkButtonNormalDefault:"color-text-link-button-normal-default",colorTextLinkButtonNormalHover:"color-text-link-button-normal-hover",colorTextLinkButtonNormalActive:"color-text-link-button-normal-active",colorTextButtonPrimaryActive:"color-text-button-primary-active",colorTextButtonPrimaryDefault:"color-text-button-primary-default",colorTextButtonPrimaryHover:"color-text-button-primary-hover",colorTextCalendarDateHover:"color-text-calendar-date-hover",colorTextCalendarDateSelected:"color-text-calendar-date-selected",colorTextCalendarMonth:"color-text-calendar-month",colorTextCodeEditorGutterActiveLine:"color-text-code-editor-gutter-active-line",colorTextCodeEditorGutterDefault:"color-text-code-editor-gutter-default",colorTextCodeEditorStatusBarDisabled:"color-text-code-editor-status-bar-disabled",colorTextCodeEditorTabButtonError:"color-text-code-editor-tab-button-error",colorTextColumnHeader:"color-text-column-header",colorTextColumnSortingIcon:"color-text-column-sorting-icon",colorTextControlDisabled:"color-text-control-disabled",colorTextCounter:"color-text-counter",colorTextDisabled:"color-text-disabled",colorTextDisabledInlineEdit:"color-text-disabled-inline-edit",colorTextDropdownFooter:"color-text-dropdown-footer",colorTextDropdownGroupLabel:"color-text-dropdown-group-label",colorTextDropdownItemDefault:"color-text-dropdown-item-default",colorTextDropdownItemDimmed:"color-text-dropdown-item-dimmed",colorTextDropdownItemDisabled:"color-text-dropdown-item-disabled",colorTextDropdownItemFilterMatch:"color-text-dropdown-item-filter-match",colorTextDropdownItemHighlighted:"color-text-dropdown-item-highlighted",colorTextDropdownItemSecondary:"color-text-dropdown-item-secondary",colorTextDropdownItemSecondaryHover:"color-text-dropdown-item-secondary-hover",colorTextEmpty:"color-text-empty",colorTextExpandableSectionDefault:"color-text-expandable-section-default",colorTextExpandableSectionHover:"color-text-expandable-section-hover",colorTextExpandableSectionNavigationIconDefault:"color-text-expandable-section-navigation-icon-default",colorTextFormDefault:"color-text-form-default",colorTextFormLabel:"color-text-form-label",colorTextFormSecondary:"color-text-form-secondary",colorTextGroupLabel:"color-text-group-label",colorTextHeadingDefault:"color-text-heading-default",colorTextHeadingSecondary:"color-text-heading-secondary",colorTextHomeHeaderDefault:"color-text-home-header-default",colorTextHomeHeaderSecondary:"color-text-home-header-secondary",colorTextIconCaret:"color-text-icon-caret",colorTextIconSubtle:"color-text-icon-subtle",colorTextInputDisabled:"color-text-input-disabled",colorTextInputPlaceholder:"color-text-input-placeholder",colorTextInputPlaceholderDisabled:"color-text-input-placeholder-disabled",colorTextInteractiveActive:"color-text-interactive-active",colorTextInteractiveDefault:"color-text-interactive-default",colorTextInteractiveDisabled:"color-text-interactive-disabled",colorTextInteractiveHover:"color-text-interactive-hover",colorTextInteractiveInvertedDefault:"color-text-interactive-inverted-default",colorTextInteractiveInvertedHover:"color-text-interactive-inverted-hover",colorTextInverted:"color-text-inverted",colorTextLabel:"color-text-label",colorTextLayoutToggle:"color-text-layout-toggle",colorTextLayoutToggleActive:"color-text-layout-toggle-active",colorTextLayoutToggleHover:"color-text-layout-toggle-hover",colorTextLayoutToggleSelected:"color-text-layout-toggle-selected",colorTextLinkDefault:"color-text-link-default",colorTextLinkHover:"color-text-link-hover",colorTextLinkInvertedHover:"color-text-link-inverted-hover",colorTextLinkButtonUnderline:"color-text-link-button-underline",colorTextLinkButtonUnderlineHover:"color-text-link-button-underline-hover",colorTextNotificationDefault:"color-text-notification-default",colorTextNotificationStackBar:"color-text-notification-stack-bar",colorTextNotificationYellow:"color-text-notification-yellow",colorTextPaginationPageNumberActiveDisabled:"color-text-pagination-page-number-active-disabled",colorTextPaginationPageNumberDefault:"color-text-pagination-page-number-default",colorTextSegmentActive:"color-text-segment-active",colorTextSegmentDefault:"color-text-segment-default",colorTextSegmentHover:"color-text-segment-hover",colorTextSmall:"color-text-small",colorTextStatusError:"color-text-status-error",colorTextStatusInactive:"color-text-status-inactive",colorTextStatusInfo:"color-text-status-info",colorTextStatusSuccess:"color-text-status-success",colorTextStatusWarning:"color-text-status-warning",colorTextTopNavigationTitle:"color-text-top-navigation-title",colorBoardPlaceholderActive:"color-board-placeholder-active",colorBoardPlaceholderHover:"color-board-placeholder-hover",colorDragPlaceholderActive:"color-drag-placeholder-active",colorDragPlaceholderHover:"color-drag-placeholder-hover",colorDropzoneBackgroundActive:"color-dropzone-background-active",colorDropzoneBackgroundHover:"color-dropzone-background-hover",colorDropzoneTextActive:"color-dropzone-text-active",colorDropzoneTextHover:"color-dropzone-text-hover",fontBoxValueLargeWeight:"font-box-value-large-weight",fontButtonLetterSpacing:"font-button-letter-spacing",fontButtonWeight:"font-button-weight",fontChartDetailSize:"font-chart-detail-size",fontDisplayLabelWeight:"font-display-label-weight",fontExpandableHeadingSize:"font-expandable-heading-size",fontFamilyBase:"font-family-base",fontFamilyMonospace:"font-family-monospace",fontHeaderH2DescriptionLineHeight:"font-header-h2-description-line-height",fontHeaderH2DescriptionSize:"font-header-h2-description-size",fontLinkButtonLetterSpacing:"font-link-button-letter-spacing",fontLinkButtonWeight:"font-link-button-weight",fontPanelHeaderLineHeight:"font-panel-header-line-height",fontPanelHeaderSize:"font-panel-header-size",fontSizeBodyM:"font-size-body-m",fontSizeBodyS:"font-size-body-s",fontSizeDisplayL:"font-size-display-l",fontSizeHeadingXl:"font-size-heading-xl",fontSizeHeadingL:"font-size-heading-l",fontSizeHeadingM:"font-size-heading-m",fontSizeHeadingS:"font-size-heading-s",fontSizeHeadingXs:"font-size-heading-xs",fontSmoothingMozOsx:"font-smoothing-moz-osx",fontSmoothingWebkit:"font-smoothing-webkit",fontTabsDisabledWeight:"font-tabs-disabled-weight",fontTabsLineHeight:"font-tabs-line-height",fontTabsSize:"font-tabs-size",fontWayfindingLinkActiveWeight:"font-wayfinding-link-active-weight",fontWeightHeadingXl:"font-weight-heading-xl",fontWeightHeadingL:"font-weight-heading-l",fontWeightHeadingM:"font-weight-heading-m",fontWeightHeadingS:"font-weight-heading-s",fontWeightHeadingXs:"font-weight-heading-xs",fontWeightHeavy:"font-weight-heavy",letterSpacingBodyS:"letter-spacing-body-s",letterSpacingDisplayL:"letter-spacing-display-l",letterSpacingHeadingXl:"letter-spacing-heading-xl",letterSpacingHeadingL:"letter-spacing-heading-l",letterSpacingHeadingM:"letter-spacing-heading-m",letterSpacingHeadingS:"letter-spacing-heading-s",lineHeightBodyM:"line-height-body-m",lineHeightBodyS:"line-height-body-s",lineHeightDisplayL:"line-height-display-l",lineHeightHeadingXl:"line-height-heading-xl",lineHeightHeadingL:"line-height-heading-l",lineHeightHeadingM:"line-height-heading-m",lineHeightHeadingS:"line-height-heading-s",lineHeightHeadingXs:"line-height-heading-xs",borderActiveWidth:"border-active-width",borderCodeEditorStatusDividerWidth:"border-code-editor-status-divider-width",borderContainerStickyWidth:"border-container-sticky-width",borderContainerTopWidth:"border-container-top-width",borderControlFocusRingShadowSpread:"border-control-focus-ring-shadow-spread",borderControlInvalidFocusRingShadowSpread:"border-control-invalid-focus-ring-shadow-spread",borderDividerListWidth:"border-divider-list-width",borderDividerSectionWidth:"border-divider-section-width",borderDropdownVirtualOffsetWidth:"border-dropdown-virtual-offset-width",borderFieldWidth:"border-field-width",borderInvalidWidth:"border-invalid-width",borderItemWidth:"border-item-width",borderLineChartDashArray:"border-line-chart-dash-array",borderLineChartLineJoin:"border-line-chart-line-join",borderLineChartWidth:"border-line-chart-width",borderPanelHeaderWidth:"border-panel-header-width",borderPanelTopWidth:"border-panel-top-width",borderRadiusAlert:"border-radius-alert",borderRadiusBadge:"border-radius-badge",borderRadiusButton:"border-radius-button",borderRadiusCalendarDayFocusRing:"border-radius-calendar-day-focus-ring",borderRadiusCodeEditor:"border-radius-code-editor",borderRadiusContainer:"border-radius-container",borderRadiusControlCircularFocusRing:"border-radius-control-circular-focus-ring",borderRadiusControlDefaultFocusRing:"border-radius-control-default-focus-ring",borderRadiusDropdown:"border-radius-dropdown",borderRadiusDropzone:"border-radius-dropzone",borderRadiusFlashbar:"border-radius-flashbar",borderRadiusItem:"border-radius-item",borderRadiusInput:"border-radius-input",borderRadiusPopover:"border-radius-popover",borderRadiusTabsFocusRing:"border-radius-tabs-focus-ring",borderRadiusTiles:"border-radius-tiles",borderRadiusToken:"border-radius-token",borderRadiusTutorialPanelItem:"border-radius-tutorial-panel-item",borderTableStickyWidth:"border-table-sticky-width",borderLinkFocusRingOutline:"border-link-focus-ring-outline",borderLinkFocusRingShadowSpread:"border-link-focus-ring-shadow-spread",motionDurationExtraFast:"motion-duration-extra-fast",motionDurationExtraSlow:"motion-duration-extra-slow",motionDurationFast:"motion-duration-fast",motionDurationModerate:"motion-duration-moderate",motionDurationRefreshOnlyAmbient:"motion-duration-refresh-only-ambient",motionDurationRefreshOnlyFast:"motion-duration-refresh-only-fast",motionDurationRefreshOnlyMedium:"motion-duration-refresh-only-medium",motionDurationRefreshOnlySlow:"motion-duration-refresh-only-slow",motionDurationRotate180:"motion-duration-rotate-180",motionDurationRotate90:"motion-duration-rotate-90",motionDurationShowPaced:"motion-duration-show-paced",motionDurationShowQuick:"motion-duration-show-quick",motionDurationSlow:"motion-duration-slow",motionDurationTransitionQuick:"motion-duration-transition-quick",motionDurationTransitionShowPaced:"motion-duration-transition-show-paced",motionDurationTransitionShowQuick:"motion-duration-transition-show-quick",motionEasingEaseOutQuart:"motion-easing-ease-out-quart",motionEasingRefreshOnlyA:"motion-easing-refresh-only-a",motionEasingRefreshOnlyB:"motion-easing-refresh-only-b",motionEasingRefreshOnlyC:"motion-easing-refresh-only-c",motionEasingRefreshOnlyD:"motion-easing-refresh-only-d",motionEasingRotate180:"motion-easing-rotate-180",motionEasingRotate90:"motion-easing-rotate-90",motionEasingShowPaced:"motion-easing-show-paced",motionEasingShowQuick:"motion-easing-show-quick",motionEasingTransitionQuick:"motion-easing-transition-quick",motionEasingTransitionShowPaced:"motion-easing-transition-show-paced",motionEasingTransitionShowQuick:"motion-easing-transition-show-quick",motionEasingResponsive:"motion-easing-responsive",motionEasingSticky:"motion-easing-sticky",motionEasingExpressive:"motion-easing-expressive",motionDurationResponsive:"motion-duration-responsive",motionDurationExpressive:"motion-duration-expressive",motionDurationComplex:"motion-duration-complex",motionKeyframesFadeIn:"motion-keyframes-fade-in",motionKeyframesFadeOut:"motion-keyframes-fade-out",motionKeyframesStatusIconError:"motion-keyframes-status-icon-error",motionKeyframesScalePopup:"motion-keyframes-scale-popup",sizeCalendarGridWidth:"size-calendar-grid-width",sizeControl:"size-control",sizeIconBig:"size-icon-big",sizeIconLarge:"size-icon-large",sizeIconMedium:"size-icon-medium",sizeIconNormal:"size-icon-normal",sizeTableSelectionHorizontal:"size-table-selection-horizontal",sizeVerticalInput:"size-vertical-input",sizeVerticalPanelIconOffset:"size-vertical-panel-icon-offset",spaceAlertActionLeft:"space-alert-action-left",spaceAlertHorizontal:"space-alert-horizontal",spaceAlertMessageRight:"space-alert-message-right",spaceAlertVertical:"space-alert-vertical",spaceButtonFocusOutlineGutter:"space-button-focus-outline-gutter",spaceButtonHorizontal:"space-button-horizontal",spaceButtonIconFocusOutlineGutterVertical:"space-button-icon-focus-outline-gutter-vertical",spaceButtonIconOnlyHorizontal:"space-button-icon-only-horizontal",spaceButtonInlineIconFocusOutlineGutter:"space-button-inline-icon-focus-outline-gutter",spaceButtonModalDismissVertical:"space-button-modal-dismiss-vertical",spaceCalendarGridFocusOutlineGutter:"space-calendar-grid-focus-outline-gutter",spaceCalendarGridSelectedFocusOutlineGutter:"space-calendar-grid-selected-focus-outline-gutter",spaceCalendarGridGutter:"space-calendar-grid-gutter",spaceCardHorizontal:"space-card-horizontal",spaceCardVertical:"space-card-vertical",spaceCodeEditorStatusFocusOutlineGutter:"space-code-editor-status-focus-outline-gutter",spaceContainerContentTop:"space-container-content-top",spaceContainerHeaderTop:"space-container-header-top",spaceContainerHeaderBottom:"space-container-header-bottom",spaceContainerHorizontal:"space-container-horizontal",spaceContentHeaderPaddingBottom:"space-content-header-padding-bottom",spaceDarkHeaderOverlapDistance:"space-dark-header-overlap-distance",spaceExpandableSectionIconOffsetTop:"space-expandable-section-icon-offset-top",spaceFieldHorizontal:"space-field-horizontal",spaceFieldIconOffset:"space-field-icon-offset",spaceFilteringTokenDismissButtonFocusOutlineGutter:"space-filtering-token-dismiss-button-focus-outline-gutter",spaceFilteringTokenOperationSelectFocusOutlineGutter:"space-filtering-token-operation-select-focus-outline-gutter",spaceFlashbarActionLeft:"space-flashbar-action-left",spaceFlashbarDismissRight:"space-flashbar-dismiss-right",spaceFlashbarHorizontal:"space-flashbar-horizontal",spaceGridGutter:"space-grid-gutter",spaceKeyValueGap:"space-key-value-gap",spaceLayoutContentBottom:"space-layout-content-bottom",spaceLayoutContentHorizontal:"space-layout-content-horizontal",spaceLayoutToggleDiameter:"space-layout-toggle-diameter",spaceLayoutTogglePadding:"space-layout-toggle-padding",spaceModalContentBottom:"space-modal-content-bottom",spaceModalHorizontal:"space-modal-horizontal",spaceOptionIconBigTop:"space-option-icon-big-top",spacePanelNavLeft:"space-panel-nav-left",spacePanelSideLeft:"space-panel-side-left",spacePanelSideRight:"space-panel-side-right",spacePanelSplitTop:"space-panel-split-top",spaceSegmentedControlFocusOutlineGutter:"space-segmented-control-focus-outline-gutter",spaceTabsContentTop:"space-tabs-content-top",spaceTabsFocusOutlineGutter:"space-tabs-focus-outline-gutter",spaceTableContentBottom:"space-table-content-bottom",spaceTableEmbeddedHeaderTop:"space-table-embedded-header-top",spaceTableFooterHorizontal:"space-table-footer-horizontal",spaceTableHeaderFocusOutlineGutter:"space-table-header-focus-outline-gutter",spaceTableHeaderHorizontal:"space-table-header-horizontal",spaceTableHeaderToolsBottom:"space-table-header-tools-bottom",spaceTableHeaderToolsFullPageBottom:"space-table-header-tools-full-page-bottom",spaceTableHorizontal:"space-table-horizontal",spaceScaled2xNone:"space-scaled-2x-none",spaceScaled2xXxxs:"space-scaled-2x-xxxs",spaceScaled2xXxs:"space-scaled-2x-xxs",spaceScaled2xXs:"space-scaled-2x-xs",spaceScaled2xS:"space-scaled-2x-s",spaceScaled2xM:"space-scaled-2x-m",spaceScaled2xL:"space-scaled-2x-l",spaceScaled2xXl:"space-scaled-2x-xl",spaceScaled2xXxl:"space-scaled-2x-xxl",spaceScaled2xXxxl:"space-scaled-2x-xxxl",spaceScaledNone:"space-scaled-none",spaceScaledXxxs:"space-scaled-xxxs",spaceScaledXxs:"space-scaled-xxs",spaceScaledXs:"space-scaled-xs",spaceScaledS:"space-scaled-s",spaceScaledM:"space-scaled-m",spaceScaledL:"space-scaled-l",spaceScaledXl:"space-scaled-xl",spaceScaledXxl:"space-scaled-xxl",spaceScaledXxxl:"space-scaled-xxxl",spaceStaticXxxs:"space-static-xxxs",spaceStaticXxs:"space-static-xxs",spaceStaticXs:"space-static-xs",spaceStaticS:"space-static-s",spaceStaticM:"space-static-m",spaceStaticL:"space-static-l",spaceStaticXl:"space-static-xl",spaceStaticXxl:"space-static-xxl",spaceStaticXxxl:"space-static-xxxl",spaceNone:"space-none",spaceXxxs:"space-xxxs",spaceXxs:"space-xxs",spaceXs:"space-xs",spaceS:"space-s",spaceM:"space-m",spaceL:"space-l",spaceXl:"space-xl",spaceXxl:"space-xxl",spaceXxxl:"space-xxxl",shadowContainer:"shadow-container",shadowContainerStacked:"shadow-container-stacked",shadowContainerActive:"shadow-container-active",shadowDropdown:"shadow-dropdown",shadowDropup:"shadow-dropup",shadowFlashCollapsed:"shadow-flash-collapsed",shadowFlashSticky:"shadow-flash-sticky",shadowModal:"shadow-modal",shadowPanel:"shadow-panel",shadowPanelToggle:"shadow-panel-toggle",shadowPopover:"shadow-popover",shadowSplitBottom:"shadow-split-bottom",shadowSplitSide:"shadow-split-side",shadowSticky:"shadow-sticky",shadowStickyEmbedded:"shadow-sticky-embedded",shadowStickyColumnFirst:"shadow-sticky-column-first",shadowStickyColumnLast:"shadow-sticky-column-last"},propertiesMap:{colorAmazonOrange:"--color-amazon-orange-gsvdv7",colorAwsSquidInk:"--color-aws-squid-ink-uuesmr",colorBlack:"--color-black-q5so4f",colorBlue100:"--color-blue-100-weysyn",colorBlue200:"--color-blue-200-d32cp4",colorBlue300:"--color-blue-300-jkp6w2",colorBlue400:"--color-blue-400-7bxm3i",colorBlue500:"--color-blue-500-kd3aso",colorBlue600:"--color-blue-600-71kjka",colorBlue700:"--color-blue-700-iue0ce",colorBlue800:"--color-blue-800-cgfbin",colorBlue900:"--color-blue-900-83cq5c",colorBlueOpaque:"--color-blue-opaque-gzkvwf",colorGreen100:"--color-green-100-bdu8xp",colorGreen500:"--color-green-500-gikgfc",colorGreen600:"--color-green-600-mp0fiq",colorGreen700:"--color-green-700-rkinot",colorGreen900:"--color-green-900-8c9h2m",colorGrey100:"--color-grey-100-jhkxvy",colorGrey125:"--color-grey-125-vgqc37",colorGrey150:"--color-grey-150-b2e5ja",colorGrey200:"--color-grey-200-w3zm5l",colorGrey300:"--color-grey-300-6uke44",colorGrey350:"--color-grey-350-f8nt1k",colorGrey400:"--color-grey-400-ovyv8h",colorGrey450:"--color-grey-450-4d2li9",colorGrey500:"--color-grey-500-smhp37",colorGrey550:"--color-grey-550-r96hyi",colorGrey600:"--color-grey-600-hd8ea7",colorGrey650:"--color-grey-650-1qo59q",colorGrey700:"--color-grey-700-haaq6z",colorGrey750:"--color-grey-750-fgajeq",colorGrey800:"--color-grey-800-vaw4c4",colorGrey850:"--color-grey-850-a5pd8s",colorGrey900:"--color-grey-900-fhjw67",colorGrey950:"--color-grey-950-i7xp6k",colorOrange100:"--color-orange-100-akgi2l",colorOrange500:"--color-orange-500-dpl1nc",colorOrange600:"--color-orange-600-5vsg33",colorOrange700:"--color-orange-700-3igdeo",colorRed100:"--color-red-100-wywj7v",colorRed500:"--color-red-500-9zl15j",colorRed600:"--color-red-600-gv9so7",colorRed700:"--color-red-700-4exdbi",colorRed900:"--color-red-900-944b65",colorTransparent:"--color-transparent-0ltpn5",colorWhite:"--color-white-s5xhu1",colorYellow100:"--color-yellow-100-nbkqkq",colorYellow600:"--color-yellow-600-0l8ygq",colorYellow700:"--color-yellow-700-0u7yhy",colorYellow800:"--color-yellow-800-5b0f4g",colorYellow900:"--color-yellow-900-mo2qow",colorChartsRed300:"--color-charts-red-300-l64jkq",colorChartsRed400:"--color-charts-red-400-wa91b2",colorChartsRed500:"--color-charts-red-500-clvvu0",colorChartsRed600:"--color-charts-red-600-n5f5z7",colorChartsRed700:"--color-charts-red-700-9qnabz",colorChartsRed800:"--color-charts-red-800-03myov",colorChartsRed900:"--color-charts-red-900-t7y4st",colorChartsRed1000:"--color-charts-red-1000-2569eu",colorChartsRed1100:"--color-charts-red-1100-utabtk",colorChartsRed1200:"--color-charts-red-1200-p41vo4",colorChartsOrange300:"--color-charts-orange-300-8xdemd",colorChartsOrange400:"--color-charts-orange-400-98kh01",colorChartsOrange500:"--color-charts-orange-500-3exfo1",colorChartsOrange600:"--color-charts-orange-600-tyzxch",colorChartsOrange700:"--color-charts-orange-700-9es7jg",colorChartsOrange800:"--color-charts-orange-800-zzyr3p",colorChartsOrange900:"--color-charts-orange-900-ozn3mk",colorChartsOrange1000:"--color-charts-orange-1000-2j9x6g",colorChartsOrange1100:"--color-charts-orange-1100-gbb7zd",colorChartsOrange1200:"--color-charts-orange-1200-k1a2bc",colorChartsYellow300:"--color-charts-yellow-300-ud5z8m",colorChartsYellow400:"--color-charts-yellow-400-er893i",colorChartsYellow500:"--color-charts-yellow-500-zf6yw3",colorChartsYellow600:"--color-charts-yellow-600-e1b0zr",colorChartsYellow700:"--color-charts-yellow-700-3ihyrv",colorChartsYellow800:"--color-charts-yellow-800-2luor7",colorChartsYellow900:"--color-charts-yellow-900-k8cds4",colorChartsYellow1000:"--color-charts-yellow-1000-9ibbxn",colorChartsYellow1100:"--color-charts-yellow-1100-igbqae",colorChartsYellow1200:"--color-charts-yellow-1200-qg1amh",colorChartsGreen300:"--color-charts-green-300-gduyir",colorChartsGreen400:"--color-charts-green-400-jvx3c1",colorChartsGreen500:"--color-charts-green-500-uj364g",colorChartsGreen600:"--color-charts-green-600-mbov5u",colorChartsGreen700:"--color-charts-green-700-m7xx1p",colorChartsGreen800:"--color-charts-green-800-97d577",colorChartsGreen900:"--color-charts-green-900-79vtkm",colorChartsGreen1000:"--color-charts-green-1000-dw0ace",colorChartsGreen1100:"--color-charts-green-1100-fdxgm3",colorChartsGreen1200:"--color-charts-green-1200-0w78ld",colorChartsTeal300:"--color-charts-teal-300-b1amlp",colorChartsTeal400:"--color-charts-teal-400-75fmn4",colorChartsTeal500:"--color-charts-teal-500-5p6o7k",colorChartsTeal600:"--color-charts-teal-600-1ar5in",colorChartsTeal700:"--color-charts-teal-700-3m4vci",colorChartsTeal800:"--color-charts-teal-800-0fx1b9",colorChartsTeal900:"--color-charts-teal-900-a0x7u4",colorChartsTeal1000:"--color-charts-teal-1000-n2wukj",colorChartsTeal1100:"--color-charts-teal-1100-3rvzfn",colorChartsTeal1200:"--color-charts-teal-1200-hfik8s",colorChartsBlue1300:"--color-charts-blue-1-300-uwr1wq",colorChartsBlue1400:"--color-charts-blue-1-400-y4dmzv",colorChartsBlue1500:"--color-charts-blue-1-500-jj2qqx",colorChartsBlue1600:"--color-charts-blue-1-600-ntcnzw",colorChartsBlue1700:"--color-charts-blue-1-700-vhr7bu",colorChartsBlue1800:"--color-charts-blue-1-800-zq4na2",colorChartsBlue1900:"--color-charts-blue-1-900-pu28p4",colorChartsBlue11000:"--color-charts-blue-1-1000-a1wpur",colorChartsBlue11100:"--color-charts-blue-1-1100-fyl0u6",colorChartsBlue11200:"--color-charts-blue-1-1200-y913fp",colorChartsBlue2300:"--color-charts-blue-2-300-sh1kxw",colorChartsBlue2400:"--color-charts-blue-2-400-s269w5",colorChartsBlue2500:"--color-charts-blue-2-500-y9grom",colorChartsBlue2600:"--color-charts-blue-2-600-ljsd9s",colorChartsBlue2700:"--color-charts-blue-2-700-8pne2y",colorChartsBlue2800:"--color-charts-blue-2-800-v3m6dn",colorChartsBlue2900:"--color-charts-blue-2-900-2rg9qw",colorChartsBlue21000:"--color-charts-blue-2-1000-ore46l",colorChartsBlue21100:"--color-charts-blue-2-1100-rj1e0b",colorChartsBlue21200:"--color-charts-blue-2-1200-i1tjtx",colorChartsPurple300:"--color-charts-purple-300-egsaob",colorChartsPurple400:"--color-charts-purple-400-y2qlpj",colorChartsPurple500:"--color-charts-purple-500-akrt38",colorChartsPurple600:"--color-charts-purple-600-dnhyx7",colorChartsPurple700:"--color-charts-purple-700-sk05tr",colorChartsPurple800:"--color-charts-purple-800-g5mys1",colorChartsPurple900:"--color-charts-purple-900-ap3bee",colorChartsPurple1000:"--color-charts-purple-1000-pymhe3",colorChartsPurple1100:"--color-charts-purple-1100-f2iopl",colorChartsPurple1200:"--color-charts-purple-1200-aic8dr",colorChartsPink300:"--color-charts-pink-300-cctxfi",colorChartsPink400:"--color-charts-pink-400-kpryka",colorChartsPink500:"--color-charts-pink-500-tccj7z",colorChartsPink600:"--color-charts-pink-600-4bki3e",colorChartsPink700:"--color-charts-pink-700-gexeia",colorChartsPink800:"--color-charts-pink-800-9fchm4",colorChartsPink900:"--color-charts-pink-900-z4eeu8",colorChartsPink1000:"--color-charts-pink-1000-7uou4m",colorChartsPink1100:"--color-charts-pink-1100-j0uevl",colorChartsPink1200:"--color-charts-pink-1200-jpnl1t",colorChartsStatusCritical:"--color-charts-status-critical-vygogl",colorChartsStatusHigh:"--color-charts-status-high-xmh5vl",colorChartsStatusMedium:"--color-charts-status-medium-le4kdn",colorChartsStatusLow:"--color-charts-status-low-seyj13",colorChartsStatusPositive:"--color-charts-status-positive-g1vr65",colorChartsStatusInfo:"--color-charts-status-info-10v3c7",colorChartsStatusNeutral:"--color-charts-status-neutral-f30kx5",colorChartsThresholdNegative:"--color-charts-threshold-negative-jxxft8",colorChartsThresholdPositive:"--color-charts-threshold-positive-gxjdw9",colorChartsThresholdInfo:"--color-charts-threshold-info-jheddl",colorChartsThresholdNeutral:"--color-charts-threshold-neutral-9351o8",colorChartsLineGrid:"--color-charts-line-grid-9oxvql",colorChartsLineTick:"--color-charts-line-tick-mf5hvw",colorChartsLineAxis:"--color-charts-line-axis-r7291n",colorChartsPaletteCategorical1:"--color-charts-palette-categorical-1-ld9m1p",colorChartsPaletteCategorical2:"--color-charts-palette-categorical-2-jwteam",colorChartsPaletteCategorical3:"--color-charts-palette-categorical-3-tlwr5r",colorChartsPaletteCategorical4:"--color-charts-palette-categorical-4-prlvih",colorChartsPaletteCategorical5:"--color-charts-palette-categorical-5-04vsso",colorChartsPaletteCategorical6:"--color-charts-palette-categorical-6-2wgmsi",colorChartsPaletteCategorical7:"--color-charts-palette-categorical-7-w06irv",colorChartsPaletteCategorical8:"--color-charts-palette-categorical-8-1qnvcp",colorChartsPaletteCategorical9:"--color-charts-palette-categorical-9-0342zm",colorChartsPaletteCategorical10:"--color-charts-palette-categorical-10-u73kns",colorChartsPaletteCategorical11:"--color-charts-palette-categorical-11-tloc2a",colorChartsPaletteCategorical12:"--color-charts-palette-categorical-12-23xv0d",colorChartsPaletteCategorical13:"--color-charts-palette-categorical-13-tuq7ce",colorChartsPaletteCategorical14:"--color-charts-palette-categorical-14-bom4ss",colorChartsPaletteCategorical15:"--color-charts-palette-categorical-15-kpqcpe",colorChartsPaletteCategorical16:"--color-charts-palette-categorical-16-pzlo2l",colorChartsPaletteCategorical17:"--color-charts-palette-categorical-17-spn4mx",colorChartsPaletteCategorical18:"--color-charts-palette-categorical-18-kxbv8i",colorChartsPaletteCategorical19:"--color-charts-palette-categorical-19-cl97gf",colorChartsPaletteCategorical20:"--color-charts-palette-categorical-20-gzcnb4",colorChartsPaletteCategorical21:"--color-charts-palette-categorical-21-vyqcuq",colorChartsPaletteCategorical22:"--color-charts-palette-categorical-22-6r7gq7",colorChartsPaletteCategorical23:"--color-charts-palette-categorical-23-7c98ot",colorChartsPaletteCategorical24:"--color-charts-palette-categorical-24-0i0wmq",colorChartsPaletteCategorical25:"--color-charts-palette-categorical-25-7j0tso",colorChartsPaletteCategorical26:"--color-charts-palette-categorical-26-eql7mt",colorChartsPaletteCategorical27:"--color-charts-palette-categorical-27-8doiqc",colorChartsPaletteCategorical28:"--color-charts-palette-categorical-28-tlstes",colorChartsPaletteCategorical29:"--color-charts-palette-categorical-29-noa7ft",colorChartsPaletteCategorical30:"--color-charts-palette-categorical-30-ttbs6s",colorChartsPaletteCategorical31:"--color-charts-palette-categorical-31-lz0ukh",colorChartsPaletteCategorical32:"--color-charts-palette-categorical-32-ncpn1t",colorChartsPaletteCategorical33:"--color-charts-palette-categorical-33-fpbcye",colorChartsPaletteCategorical34:"--color-charts-palette-categorical-34-sk46nw",colorChartsPaletteCategorical35:"--color-charts-palette-categorical-35-wwtyjx",colorChartsPaletteCategorical36:"--color-charts-palette-categorical-36-7v0fgy",colorChartsPaletteCategorical37:"--color-charts-palette-categorical-37-b2rc0w",colorChartsPaletteCategorical38:"--color-charts-palette-categorical-38-nlzlk1",colorChartsPaletteCategorical39:"--color-charts-palette-categorical-39-esgczm",colorChartsPaletteCategorical40:"--color-charts-palette-categorical-40-0hdln6",colorChartsPaletteCategorical41:"--color-charts-palette-categorical-41-bsk8cf",colorChartsPaletteCategorical42:"--color-charts-palette-categorical-42-97om84",colorChartsPaletteCategorical43:"--color-charts-palette-categorical-43-euzcqg",colorChartsPaletteCategorical44:"--color-charts-palette-categorical-44-a7wos6",colorChartsPaletteCategorical45:"--color-charts-palette-categorical-45-iz0wz2",colorChartsPaletteCategorical46:"--color-charts-palette-categorical-46-nzigym",colorChartsPaletteCategorical47:"--color-charts-palette-categorical-47-croxgd",colorChartsPaletteCategorical48:"--color-charts-palette-categorical-48-tptw1p",colorChartsPaletteCategorical49:"--color-charts-palette-categorical-49-6lrkes",colorChartsPaletteCategorical50:"--color-charts-palette-categorical-50-mqbaxr",colorGreyOpaque25:"--color-grey-opaque-25-igqnxy",colorGreyOpaque40:"--color-grey-opaque-40-wxjof3",colorGreyOpaque50:"--color-grey-opaque-50-akurqr",colorGreyOpaque70:"--color-grey-opaque-70-naqvbh",colorGreyOpaque80:"--color-grey-opaque-80-dkpq62",colorGreyOpaque90:"--color-grey-opaque-90-vv6tpi",colorGreyTransparent:"--color-grey-transparent-ekx6mv",colorGreyTransparentHeavy:"--color-grey-transparent-heavy-iqptxt",colorGreyTransparentLight:"--color-grey-transparent-light-6bril0",colorBackgroundBadgeIcon:"--color-background-badge-icon-q1kfox",colorBackgroundButtonLinkActive:"--color-background-button-link-active-cbd6sf",colorBackgroundButtonLinkHover:"--color-background-button-link-hover-t0fnno",colorBackgroundButtonNormalActive:"--color-background-button-normal-active-qmds3y",colorBackgroundButtonNormalDefault:"--color-background-button-normal-default-klhbuw",colorBackgroundButtonNormalDisabled:"--color-background-button-normal-disabled-3ksod4",colorBackgroundButtonNormalHover:"--color-background-button-normal-hover-imnrq7",colorBackgroundButtonPrimaryActive:"--color-background-button-primary-active-1ucrg4",colorBackgroundButtonPrimaryDefault:"--color-background-button-primary-default-jrg2xu",colorBackgroundButtonPrimaryDisabled:"--color-background-button-primary-disabled-31l9pn",colorBackgroundButtonPrimaryHover:"--color-background-button-primary-hover-l3mbyt",colorBackgroundCalendarCurrentDate:"--color-background-calendar-current-date-kmb0ji",colorBackgroundCellShaded:"--color-background-cell-shaded-7v0jy4",colorBackgroundCodeEditorGutterActiveLineDefault:"--color-background-code-editor-gutter-active-line-default-n2dsul",colorBackgroundCodeEditorGutterActiveLineError:"--color-background-code-editor-gutter-active-line-error-ov6y7a",colorBackgroundCodeEditorGutterDefault:"--color-background-code-editor-gutter-default-om1nsh",colorBackgroundCodeEditorLoading:"--color-background-code-editor-loading-0hc882",colorBackgroundCodeEditorPaneItemHover:"--color-background-code-editor-pane-item-hover-7wgkyr",colorBackgroundCodeEditorStatusBar:"--color-background-code-editor-status-bar-x8dalt",colorBackgroundContainerContent:"--color-background-container-content-4un1ap",colorBackgroundContainerHeader:"--color-background-container-header-8b9fgi",colorBackgroundControlChecked:"--color-background-control-checked-w517i0",colorBackgroundControlDefault:"--color-background-control-default-qzruqy",colorBackgroundControlDisabled:"--color-background-control-disabled-pwkvgd",colorBackgroundDropdownItemDefault:"--color-background-dropdown-item-default-be16w5",colorBackgroundDropdownItemDimmed:"--color-background-dropdown-item-dimmed-dlm6wk",colorBackgroundDropdownItemFilterMatch:"--color-background-dropdown-item-filter-match-h5rjsp",colorBackgroundDropdownItemHover:"--color-background-dropdown-item-hover-swsulg",colorBackgroundDropdownItemSelected:"--color-background-dropdown-item-selected-n136dm",colorBackgroundHomeHeader:"--color-background-home-header-2rudu7",colorBackgroundInputDefault:"--color-background-input-default-igdh5e",colorBackgroundInputDisabled:"--color-background-input-disabled-ab59a3",colorBackgroundItemSelected:"--color-background-item-selected-hcx8l4",colorBackgroundLayoutMain:"--color-background-layout-main-nx09lr",colorBackgroundLayoutMobilePanel:"--color-background-layout-mobile-panel-0ussje",colorBackgroundLayoutPanelContent:"--color-background-layout-panel-content-t82vgh",colorBackgroundLayoutPanelHover:"--color-background-layout-panel-hover-n9apd3",colorBackgroundLayoutToggleActive:"--color-background-layout-toggle-active-aa8dko",colorBackgroundLayoutToggleDefault:"--color-background-layout-toggle-default-o2evu2",colorBackgroundLayoutToggleHover:"--color-background-layout-toggle-hover-awem6j",colorBackgroundLayoutToggleSelectedActive:"--color-background-layout-toggle-selected-active-xfk480",colorBackgroundLayoutToggleSelectedDefault:"--color-background-layout-toggle-selected-default-caco0q",colorBackgroundLayoutToggleSelectedHover:"--color-background-layout-toggle-selected-hover-kjak2q",colorBackgroundModalOverlay:"--color-background-modal-overlay-ljm46n",colorBackgroundNotificationBlue:"--color-background-notification-blue-g2q2z0",colorBackgroundNotificationGreen:"--color-background-notification-green-1jtqmb",colorBackgroundNotificationGrey:"--color-background-notification-grey-2odmfy",colorBackgroundNotificationRed:"--color-background-notification-red-ovptxu",colorBackgroundNotificationYellow:"--color-background-notification-yellow-seoi5y",colorBackgroundNotificationStackBar:"--color-background-notification-stack-bar-btgysg",colorBackgroundNotificationStackBarActive:"--color-background-notification-stack-bar-active-g701bg",colorBackgroundNotificationStackBarHover:"--color-background-notification-stack-bar-hover-905myr",colorBackgroundPopover:"--color-background-popover-szburm",colorBackgroundProgressBarContentDefault:"--color-background-progress-bar-content-default-yvwdkl",colorBackgroundProgressBarContentInFlash:"--color-background-progress-bar-content-in-flash-ccuxyt",colorBackgroundProgressBarLayoutDefault:"--color-background-progress-bar-layout-default-ktc0zl",colorBackgroundProgressBarLayoutInFlash:"--color-background-progress-bar-layout-in-flash-rlu77n",colorBackgroundSegmentActive:"--color-background-segment-active-366806",colorBackgroundSegmentDefault:"--color-background-segment-default-3arros",colorBackgroundSegmentDisabled:"--color-background-segment-disabled-o4y9v5",colorBackgroundSegmentHover:"--color-background-segment-hover-jysoxv",colorBackgroundStatusError:"--color-background-status-error-pbprvn",colorBackgroundStatusInfo:"--color-background-status-info-mvnbre",colorBackgroundStatusSuccess:"--color-background-status-success-jp14wa",colorBackgroundStatusWarning:"--color-background-status-warning-oor4hw",colorBackgroundTableHeader:"--color-background-table-header-82ew8p",colorBackgroundTilesDisabled:"--color-background-tiles-disabled-0j6ior",colorBackgroundToggleCheckedDisabled:"--color-background-toggle-checked-disabled-uqvx2z",colorBackgroundToggleDefault:"--color-background-toggle-default-6qtbef",colorBorderButtonNormalActive:"--color-border-button-normal-active-tc4102",colorBorderButtonNormalDefault:"--color-border-button-normal-default-x52rkp",colorBorderButtonNormalDisabled:"--color-border-button-normal-disabled-40wkb4",colorBorderButtonNormalHover:"--color-border-button-normal-hover-qs1x3s",colorBorderButtonPrimaryDisabled:"--color-border-button-primary-disabled-q34ikb",colorBorderCalendarGrid:"--color-border-calendar-grid-u86q1u",colorBorderCalendarGridSelectedFocusRing:"--color-border-calendar-grid-selected-focus-ring-thqa8y",colorBorderCodeEditorAceActiveLineLightTheme:"--color-border-code-editor-ace-active-line-light-theme-37hmmo",colorBorderCodeEditorAceActiveLineDarkTheme:"--color-border-code-editor-ace-active-line-dark-theme-5oxz8x",colorBorderCodeEditorDefault:"--color-border-code-editor-default-c1jpix",colorBorderCodeEditorPaneItemHover:"--color-border-code-editor-pane-item-hover-std69p",colorBorderContainerDivider:"--color-border-container-divider-p2uygo",colorBorderContainerTop:"--color-border-container-top-736buh",colorBorderControlChecked:"--color-border-control-checked-wlsmbn",colorBorderControlDefault:"--color-border-control-default-0fzxw0",colorBorderControlDisabled:"--color-border-control-disabled-bv2kkn",colorBorderDividerActive:"--color-border-divider-active-k4haaf",colorBorderDividerDefault:"--color-border-divider-default-j74lyz",colorBorderDividerPanelBottom:"--color-border-divider-panel-bottom-dwyqvg",colorBorderDividerPanelSide:"--color-border-divider-panel-side-93n0qu",colorBorderDividerSecondary:"--color-border-divider-secondary-um17yo",colorBorderDropdownContainer:"--color-border-dropdown-container-5boaph",colorBorderDropdownGroup:"--color-border-dropdown-group-yakmix",colorBorderDropdownItemDefault:"--color-border-dropdown-item-default-k36ra7",colorBorderDropdownItemHover:"--color-border-dropdown-item-hover-461g78",colorBorderDropdownItemDimmedHover:"--color-border-dropdown-item-dimmed-hover-xdu0hf",colorBorderDropdownItemSelected:"--color-border-dropdown-item-selected-096aj1",colorBorderDropdownItemTop:"--color-border-dropdown-item-top-ky64jq",colorBorderEditableCellHover:"--color-border-editable-cell-hover-nqrv6y",colorBorderInputDefault:"--color-border-input-default-1zl7hq",colorBorderInputDisabled:"--color-border-input-disabled-rx2aau",colorBorderInputFocused:"--color-border-input-focused-3d15sl",colorBorderItemFocused:"--color-border-item-focused-b2ntyl",colorBorderDropdownItemFocused:"--color-border-dropdown-item-focused-5hbaf3",colorBorderItemPlaceholder:"--color-border-item-placeholder-h8j85e",colorBorderItemSelected:"--color-border-item-selected-k00wlz",colorBorderLayout:"--color-border-layout-ownedw",colorBorderNotificationStackBar:"--color-border-notification-stack-bar-t3aws2",colorBorderPopover:"--color-border-popover-umqvld",colorBorderSegmentActive:"--color-border-segment-active-9ah16u",colorBorderSegmentDefault:"--color-border-segment-default-a5zrkd",colorBorderSegmentDisabled:"--color-border-segment-disabled-ylnixy",colorBorderSegmentHover:"--color-border-segment-hover-ggg2rz",colorBorderStatusError:"--color-border-status-error-dj6icm",colorBorderStatusInfo:"--color-border-status-info-8upc6f",colorBorderStatusSuccess:"--color-border-status-success-wmgb40",colorBorderStatusWarning:"--color-border-status-warning-52glov",colorBorderDividerInteractiveDefault:"--color-border-divider-interactive-default-byy830",colorBorderTabsDivider:"--color-border-tabs-divider-6vpso4",colorBorderTabsShadow:"--color-border-tabs-shadow-w5xpb4",colorBorderTabsUnderline:"--color-border-tabs-underline-f1qo5r",colorBorderTilesDisabled:"--color-border-tiles-disabled-q5e1so",colorBorderTutorial:"--color-border-tutorial-kk53ya",colorForegroundControlDefault:"--color-foreground-control-default-wq2gpa",colorForegroundControlDisabled:"--color-foreground-control-disabled-zmz2k2",colorShadowDefault:"--color-shadow-default-8jp634",colorShadowMedium:"--color-shadow-medium-wuskz4",colorShadowSide:"--color-shadow-side-75ahs7",colorStrokeChartLine:"--color-stroke-chart-line-ppq5nh",colorStrokeCodeEditorResizeHandler:"--color-stroke-code-editor-resize-handler-lv2a3k",colorStrokeCodeEditorGutterActiveLineDefault:"--color-stroke-code-editor-gutter-active-line-default-0bl22a",colorStrokeCodeEditorGutterActiveLineHover:"--color-stroke-code-editor-gutter-active-line-hover-i9389t",colorTextAccent:"--color-text-accent-n2acxv",colorTextBodyDefault:"--color-text-body-default-at06ol",colorTextBodySecondary:"--color-text-body-secondary-w9jvno",colorTextBreadcrumbCurrent:"--color-text-breadcrumb-current-bnqeha",colorTextBreadcrumbIcon:"--color-text-breadcrumb-icon-ma8w3r",colorTextButtonInlineIconDefault:"--color-text-button-inline-icon-default-s3yux9",colorTextButtonInlineIconDisabled:"--color-text-button-inline-icon-disabled-mz5gmn",colorTextButtonInlineIconHover:"--color-text-button-inline-icon-hover-my2daf",colorTextButtonNormalActive:"--color-text-button-normal-active-4it2mv",colorTextButtonNormalDefault:"--color-text-button-normal-default-mo7k6u",colorTextButtonNormalHover:"--color-text-button-normal-hover-04pe0y",colorTextLinkButtonNormalDefault:"--color-text-link-button-normal-default-px6yl8",colorTextLinkButtonNormalHover:"--color-text-link-button-normal-hover-4psj43",colorTextLinkButtonNormalActive:"--color-text-link-button-normal-active-pv8vqs",colorTextButtonPrimaryActive:"--color-text-button-primary-active-jqjf9n",colorTextButtonPrimaryDefault:"--color-text-button-primary-default-ltldxu",colorTextButtonPrimaryHover:"--color-text-button-primary-hover-tcoaeg",colorTextCalendarDateHover:"--color-text-calendar-date-hover-llr4as",colorTextCalendarDateSelected:"--color-text-calendar-date-selected-otk0dm",colorTextCalendarMonth:"--color-text-calendar-month-hxx5ey",colorTextCodeEditorGutterActiveLine:"--color-text-code-editor-gutter-active-line-zmlu0u",colorTextCodeEditorGutterDefault:"--color-text-code-editor-gutter-default-n16krn",colorTextCodeEditorStatusBarDisabled:"--color-text-code-editor-status-bar-disabled-mrlsxh",colorTextCodeEditorTabButtonError:"--color-text-code-editor-tab-button-error-5ax346",colorTextColumnHeader:"--color-text-column-header-czuvwg",colorTextColumnSortingIcon:"--color-text-column-sorting-icon-8or30j",colorTextControlDisabled:"--color-text-control-disabled-ircsnq",colorTextCounter:"--color-text-counter-zqugin",colorTextDisabled:"--color-text-disabled-f4c52h",colorTextDisabledInlineEdit:"--color-text-disabled-inline-edit-zrb7bp",colorTextDropdownFooter:"--color-text-dropdown-footer-7d1eld",colorTextDropdownGroupLabel:"--color-text-dropdown-group-label-4x4uyw",colorTextDropdownItemDefault:"--color-text-dropdown-item-default-4o4hes",colorTextDropdownItemDimmed:"--color-text-dropdown-item-dimmed-f2joj8",colorTextDropdownItemDisabled:"--color-text-dropdown-item-disabled-6oq3n6",colorTextDropdownItemFilterMatch:"--color-text-dropdown-item-filter-match-6moumb",colorTextDropdownItemHighlighted:"--color-text-dropdown-item-highlighted-a51hdb",colorTextDropdownItemSecondary:"--color-text-dropdown-item-secondary-jho0ju",colorTextDropdownItemSecondaryHover:"--color-text-dropdown-item-secondary-hover-zfmqjr",colorTextEmpty:"--color-text-empty-2wfcyr",colorTextExpandableSectionDefault:"--color-text-expandable-section-default-djhi83",colorTextExpandableSectionHover:"--color-text-expandable-section-hover-2d1zpj",colorTextExpandableSectionNavigationIconDefault:"--color-text-expandable-section-navigation-icon-default-htcovl",colorTextFormDefault:"--color-text-form-default-vh42kd",colorTextFormLabel:"--color-text-form-label-ktbzsd",colorTextFormSecondary:"--color-text-form-secondary-dxc248",colorTextGroupLabel:"--color-text-group-label-jpw8sm",colorTextHeadingDefault:"--color-text-heading-default-lstrpn",colorTextHeadingSecondary:"--color-text-heading-secondary-37b2tq",colorTextHomeHeaderDefault:"--color-text-home-header-default-efg900",colorTextHomeHeaderSecondary:"--color-text-home-header-secondary-v3y5co",colorTextIconCaret:"--color-text-icon-caret-3dlaji",colorTextIconSubtle:"--color-text-icon-subtle-c4qyia",colorTextInputDisabled:"--color-text-input-disabled-f8pjm5",colorTextInputPlaceholder:"--color-text-input-placeholder-mx1ygd",colorTextInputPlaceholderDisabled:"--color-text-input-placeholder-disabled-abhb0d",colorTextInteractiveActive:"--color-text-interactive-active-ox3ozh",colorTextInteractiveDefault:"--color-text-interactive-default-lnx6lk",colorTextInteractiveDisabled:"--color-text-interactive-disabled-z7a3t4",colorTextInteractiveHover:"--color-text-interactive-hover-mj8add",colorTextInteractiveInvertedDefault:"--color-text-interactive-inverted-default-yhw7hw",colorTextInteractiveInvertedHover:"--color-text-interactive-inverted-hover-zzkght",colorTextInverted:"--color-text-inverted-70cpkk",colorTextLabel:"--color-text-label-rj4jdv",colorTextLayoutToggle:"--color-text-layout-toggle-zybz0r",colorTextLayoutToggleActive:"--color-text-layout-toggle-active-p0m0v1",colorTextLayoutToggleHover:"--color-text-layout-toggle-hover-1r0lo8",colorTextLayoutToggleSelected:"--color-text-layout-toggle-selected-b93usl",colorTextLinkDefault:"--color-text-link-default-latg1a",colorTextLinkHover:"--color-text-link-hover-8j6p14",colorTextLinkInvertedHover:"--color-text-link-inverted-hover-09cw7h",colorTextLinkButtonUnderline:"--color-text-link-button-underline-ik5r9i",colorTextLinkButtonUnderlineHover:"--color-text-link-button-underline-hover-gyir88",colorTextNotificationDefault:"--color-text-notification-default-rdawv9",colorTextNotificationStackBar:"--color-text-notification-stack-bar-jc9tvx",colorTextNotificationYellow:"--color-text-notification-yellow-p027cz",colorTextPaginationPageNumberActiveDisabled:"--color-text-pagination-page-number-active-disabled-pnozll",colorTextPaginationPageNumberDefault:"--color-text-pagination-page-number-default-i8se09",colorTextSegmentActive:"--color-text-segment-active-6s77n9",colorTextSegmentDefault:"--color-text-segment-default-nncpby",colorTextSegmentHover:"--color-text-segment-hover-k5ujfk",colorTextSmall:"--color-text-small-zfvvfc",colorTextStatusError:"--color-text-status-error-wdvepn",colorTextStatusInactive:"--color-text-status-inactive-m7co45",colorTextStatusInfo:"--color-text-status-info-ahz8zp",colorTextStatusSuccess:"--color-text-status-success-bpiyjm",colorTextStatusWarning:"--color-text-status-warning-yik8vi",colorTextTopNavigationTitle:"--color-text-top-navigation-title-v7rgbf",colorBoardPlaceholderActive:"--color-board-placeholder-active-jh49z8",colorBoardPlaceholderHover:"--color-board-placeholder-hover-ombmcs",colorDragPlaceholderActive:"--color-drag-placeholder-active-j62q9o",colorDragPlaceholderHover:"--color-drag-placeholder-hover-4im65s",colorDropzoneBackgroundActive:"--color-dropzone-background-active-g7hjqs",colorDropzoneBackgroundHover:"--color-dropzone-background-hover-42q8nb",colorDropzoneTextActive:"--color-dropzone-text-active-8e1lcf",colorDropzoneTextHover:"--color-dropzone-text-hover-4qxymq",fontBoxValueLargeWeight:"--font-box-value-large-weight-onoq9k",fontButtonLetterSpacing:"--font-button-letter-spacing-65ug0o",fontButtonWeight:"--font-button-weight-hv56tz",fontChartDetailSize:"--font-chart-detail-size-1n389u",fontDisplayLabelWeight:"--font-display-label-weight-815ja9",fontExpandableHeadingSize:"--font-expandable-heading-size-smdiul",fontFamilyBase:"--font-family-base-dnvic8",fontFamilyMonospace:"--font-family-monospace-bftdwf",fontHeaderH2DescriptionLineHeight:"--font-header-h2-description-line-height-rtewek",fontHeaderH2DescriptionSize:"--font-header-h2-description-size-2hj97p",fontLinkButtonLetterSpacing:"--font-link-button-letter-spacing-yi9f0l",fontLinkButtonWeight:"--font-link-button-weight-jephf1",fontPanelHeaderLineHeight:"--font-panel-header-line-height-kxi4u2",fontPanelHeaderSize:"--font-panel-header-size-edjz3l",fontSizeBodyM:"--font-size-body-m-x4okxb",fontSizeBodyS:"--font-size-body-s-asqx2i",fontSizeDisplayL:"--font-size-display-l-htkq3e",fontSizeHeadingXl:"--font-size-heading-xl-ypc05a",fontSizeHeadingL:"--font-size-heading-l-ou0d0l",fontSizeHeadingM:"--font-size-heading-m-sjd256",fontSizeHeadingS:"--font-size-heading-s-yykzif",fontSizeHeadingXs:"--font-size-heading-xs-wo4hpf",fontSmoothingMozOsx:"--font-smoothing-moz-osx-foywby",fontSmoothingWebkit:"--font-smoothing-webkit-m8nc84",fontTabsDisabledWeight:"--font-tabs-disabled-weight-1xcs5l",fontTabsLineHeight:"--font-tabs-line-height-dzo7k3",fontTabsSize:"--font-tabs-size-8zzqp2",fontWayfindingLinkActiveWeight:"--font-wayfinding-link-active-weight-rbmzei",fontWeightHeadingXl:"--font-weight-heading-xl-yvsksd",fontWeightHeadingL:"--font-weight-heading-l-f8711v",fontWeightHeadingM:"--font-weight-heading-m-m2ekmb",fontWeightHeadingS:"--font-weight-heading-s-cwn6wc",fontWeightHeadingXs:"--font-weight-heading-xs-l7rqme",fontWeightHeavy:"--font-weight-heavy-cqd9pv",letterSpacingBodyS:"--letter-spacing-body-s-z9jkwp",letterSpacingDisplayL:"--letter-spacing-display-l-9cigop",letterSpacingHeadingXl:"--letter-spacing-heading-xl-sagq9c",letterSpacingHeadingL:"--letter-spacing-heading-l-qqjd4y",letterSpacingHeadingM:"--letter-spacing-heading-m-0w575i",letterSpacingHeadingS:"--letter-spacing-heading-s-jr3mor",lineHeightBodyM:"--line-height-body-m-30ar75",lineHeightBodyS:"--line-height-body-s-7zv1j5",lineHeightDisplayL:"--line-height-display-l-8nioft",lineHeightHeadingXl:"--line-height-heading-xl-avbttk",lineHeightHeadingL:"--line-height-heading-l-mmm3my",lineHeightHeadingM:"--line-height-heading-m-50evfk",lineHeightHeadingS:"--line-height-heading-s-4i6ewn",lineHeightHeadingXs:"--line-height-heading-xs-aeleja",borderActiveWidth:"--border-active-width-9dmqf4",borderCodeEditorStatusDividerWidth:"--border-code-editor-status-divider-width-tf47q3",borderContainerStickyWidth:"--border-container-sticky-width-6asz33",borderContainerTopWidth:"--border-container-top-width-uugwwl",borderControlFocusRingShadowSpread:"--border-control-focus-ring-shadow-spread-0ctpjf",borderControlInvalidFocusRingShadowSpread:"--border-control-invalid-focus-ring-shadow-spread-fhmbjn",borderDividerListWidth:"--border-divider-list-width-27y3k5",borderDividerSectionWidth:"--border-divider-section-width-1061zr",borderDropdownVirtualOffsetWidth:"--border-dropdown-virtual-offset-width-kekgc0",borderFieldWidth:"--border-field-width-09w7vk",borderInvalidWidth:"--border-invalid-width-5ktjp2",borderItemWidth:"--border-item-width-yel47s",borderLineChartDashArray:"--border-line-chart-dash-array-k49cgz",borderLineChartLineJoin:"--border-line-chart-line-join-hdz0jf",borderLineChartWidth:"--border-line-chart-width-9mzos2",borderPanelHeaderWidth:"--border-panel-header-width-3w1py7",borderPanelTopWidth:"--border-panel-top-width-7uc0w9",borderRadiusAlert:"--border-radius-alert-mdtrse",borderRadiusBadge:"--border-radius-badge-0z09dt",borderRadiusButton:"--border-radius-button-ypmfry",borderRadiusCalendarDayFocusRing:"--border-radius-calendar-day-focus-ring-545h0w",borderRadiusCodeEditor:"--border-radius-code-editor-qvw11o",borderRadiusContainer:"--border-radius-container-wqv1zi",borderRadiusControlCircularFocusRing:"--border-radius-control-circular-focus-ring-w07mub",borderRadiusControlDefaultFocusRing:"--border-radius-control-default-focus-ring-u8zbsz",borderRadiusDropdown:"--border-radius-dropdown-0dhh79",borderRadiusDropzone:"--border-radius-dropzone-4sx861",borderRadiusFlashbar:"--border-radius-flashbar-hcdl9q",borderRadiusItem:"--border-radius-item-05df9h",borderRadiusInput:"--border-radius-input-plgbrq",borderRadiusPopover:"--border-radius-popover-clv1ya",borderRadiusTabsFocusRing:"--border-radius-tabs-focus-ring-1q0rjo",borderRadiusTiles:"--border-radius-tiles-60y8e6",borderRadiusToken:"--border-radius-token-923jqq",borderRadiusTutorialPanelItem:"--border-radius-tutorial-panel-item-b44p0a",borderTableStickyWidth:"--border-table-sticky-width-87kf12",borderLinkFocusRingOutline:"--border-link-focus-ring-outline-kkfop6",borderLinkFocusRingShadowSpread:"--border-link-focus-ring-shadow-spread-v8hkrl",motionDurationExtraFast:"--motion-duration-extra-fast-3huyux",motionDurationExtraSlow:"--motion-duration-extra-slow-ngjb9g",motionDurationFast:"--motion-duration-fast-sbm3r7",motionDurationModerate:"--motion-duration-moderate-5k1phv",motionDurationRefreshOnlyAmbient:"--motion-duration-refresh-only-ambient-hnjwnd",motionDurationRefreshOnlyFast:"--motion-duration-refresh-only-fast-4jn2d7",motionDurationRefreshOnlyMedium:"--motion-duration-refresh-only-medium-nf6485",motionDurationRefreshOnlySlow:"--motion-duration-refresh-only-slow-zbvbxt",motionDurationRotate180:"--motion-duration-rotate-180-dpvl4m",motionDurationRotate90:"--motion-duration-rotate-90-4ry26y",motionDurationShowPaced:"--motion-duration-show-paced-q2lo2h",motionDurationShowQuick:"--motion-duration-show-quick-aq3ump",motionDurationSlow:"--motion-duration-slow-z2kaah",motionDurationTransitionQuick:"--motion-duration-transition-quick-6npj01",motionDurationTransitionShowPaced:"--motion-duration-transition-show-paced-9s9l5z",motionDurationTransitionShowQuick:"--motion-duration-transition-show-quick-osg026",motionEasingEaseOutQuart:"--motion-easing-ease-out-quart-rrej5m",motionEasingRefreshOnlyA:"--motion-easing-refresh-only-a-8flf9q",motionEasingRefreshOnlyB:"--motion-easing-refresh-only-b-ufhmjm",motionEasingRefreshOnlyC:"--motion-easing-refresh-only-c-vg1m9h",motionEasingRefreshOnlyD:"--motion-easing-refresh-only-d-3kjugn",motionEasingRotate180:"--motion-easing-rotate-180-e270ko",motionEasingRotate90:"--motion-easing-rotate-90-sb4dk7",motionEasingShowPaced:"--motion-easing-show-paced-ne2o0s",motionEasingShowQuick:"--motion-easing-show-quick-vc5zgd",motionEasingTransitionQuick:"--motion-easing-transition-quick-l9jfsx",motionEasingTransitionShowPaced:"--motion-easing-transition-show-paced-eobwvi",motionEasingTransitionShowQuick:"--motion-easing-transition-show-quick-urd1sm",motionEasingResponsive:"--motion-easing-responsive-vbn2t8",motionEasingSticky:"--motion-easing-sticky-56u8cd",motionEasingExpressive:"--motion-easing-expressive-jz8pes",motionDurationResponsive:"--motion-duration-responsive-67fgfp",motionDurationExpressive:"--motion-duration-expressive-0by09d",motionDurationComplex:"--motion-duration-complex-vy4sma",motionKeyframesFadeIn:"--motion-keyframes-fade-in-gpabjb",motionKeyframesFadeOut:"--motion-keyframes-fade-out-kva0ei",motionKeyframesStatusIconError:"--motion-keyframes-status-icon-error-ldv006",motionKeyframesScalePopup:"--motion-keyframes-scale-popup-d42fd1",sizeCalendarGridWidth:"--size-calendar-grid-width-lrunz7",sizeControl:"--size-control-28i7hr",sizeIconBig:"--size-icon-big-zkdryd",sizeIconLarge:"--size-icon-large-bivhmh",sizeIconMedium:"--size-icon-medium-y9xuoq",sizeIconNormal:"--size-icon-normal-0m1722",sizeTableSelectionHorizontal:"--size-table-selection-horizontal-oqvl1b",sizeVerticalInput:"--size-vertical-input-v5iwwf",sizeVerticalPanelIconOffset:"--size-vertical-panel-icon-offset-wy8j08",spaceAlertActionLeft:"--space-alert-action-left-ea9czk",spaceAlertHorizontal:"--space-alert-horizontal-eyt1xx",spaceAlertMessageRight:"--space-alert-message-right-knlb6u",spaceAlertVertical:"--space-alert-vertical-l6cc71",spaceButtonFocusOutlineGutter:"--space-button-focus-outline-gutter-cqfd0c",spaceButtonHorizontal:"--space-button-horizontal-8jxzea",spaceButtonIconFocusOutlineGutterVertical:"--space-button-icon-focus-outline-gutter-vertical-zgqy8m",spaceButtonIconOnlyHorizontal:"--space-button-icon-only-horizontal-zsf2nw",spaceButtonInlineIconFocusOutlineGutter:"--space-button-inline-icon-focus-outline-gutter-vk4r2v",spaceButtonModalDismissVertical:"--space-button-modal-dismiss-vertical-0n4y5m",spaceCalendarGridFocusOutlineGutter:"--space-calendar-grid-focus-outline-gutter-g00bgj",spaceCalendarGridSelectedFocusOutlineGutter:"--space-calendar-grid-selected-focus-outline-gutter-hxbct6",spaceCalendarGridGutter:"--space-calendar-grid-gutter-2jsrps",spaceCardHorizontal:"--space-card-horizontal-tuwbbd",spaceCardVertical:"--space-card-vertical-m591he",spaceCodeEditorStatusFocusOutlineGutter:"--space-code-editor-status-focus-outline-gutter-dqxswe",spaceContainerContentTop:"--space-container-content-top-1ae0r3",spaceContainerHeaderTop:"--space-container-header-top-5qav00",spaceContainerHeaderBottom:"--space-container-header-bottom-vj01hn",spaceContainerHorizontal:"--space-container-horizontal-wfukh3",spaceContentHeaderPaddingBottom:"--space-content-header-padding-bottom-y2enua",spaceDarkHeaderOverlapDistance:"--space-dark-header-overlap-distance-lxpp0s",spaceExpandableSectionIconOffsetTop:"--space-expandable-section-icon-offset-top-ekk5vc",spaceFieldHorizontal:"--space-field-horizontal-gg19kw",spaceFieldIconOffset:"--space-field-icon-offset-csk9vw",spaceFilteringTokenDismissButtonFocusOutlineGutter:"--space-filtering-token-dismiss-button-focus-outline-gutter-76gsim",spaceFilteringTokenOperationSelectFocusOutlineGutter:"--space-filtering-token-operation-select-focus-outline-gutter-0ailok",spaceFlashbarActionLeft:"--space-flashbar-action-left-qkhz5m",spaceFlashbarDismissRight:"--space-flashbar-dismiss-right-tcpfax",spaceFlashbarHorizontal:"--space-flashbar-horizontal-xmjla3",spaceGridGutter:"--space-grid-gutter-ieqn7e",spaceKeyValueGap:"--space-key-value-gap-0517k5",spaceLayoutContentBottom:"--space-layout-content-bottom-noqzmw",spaceLayoutContentHorizontal:"--space-layout-content-horizontal-7l52k3",spaceLayoutToggleDiameter:"--space-layout-toggle-diameter-hb85rk",spaceLayoutTogglePadding:"--space-layout-toggle-padding-lcu6qi",spaceModalContentBottom:"--space-modal-content-bottom-hqahub",spaceModalHorizontal:"--space-modal-horizontal-f89syl",spaceOptionIconBigTop:"--space-option-icon-big-top-hybljv",spacePanelNavLeft:"--space-panel-nav-left-b1g0mt",spacePanelSideLeft:"--space-panel-side-left-5t0who",spacePanelSideRight:"--space-panel-side-right-xofg51",spacePanelSplitTop:"--space-panel-split-top-q1pux4",spaceSegmentedControlFocusOutlineGutter:"--space-segmented-control-focus-outline-gutter-gbye20",spaceTabsContentTop:"--space-tabs-content-top-dedu0k",spaceTabsFocusOutlineGutter:"--space-tabs-focus-outline-gutter-xm37ly",spaceTableContentBottom:"--space-table-content-bottom-9yr834",spaceTableEmbeddedHeaderTop:"--space-table-embedded-header-top-bfjeam",spaceTableFooterHorizontal:"--space-table-footer-horizontal-ptapb9",spaceTableHeaderFocusOutlineGutter:"--space-table-header-focus-outline-gutter-7js4en",spaceTableHeaderHorizontal:"--space-table-header-horizontal-wl3ykr",spaceTableHeaderToolsBottom:"--space-table-header-tools-bottom-25ubsj",spaceTableHeaderToolsFullPageBottom:"--space-table-header-tools-full-page-bottom-xulfq9",spaceTableHorizontal:"--space-table-horizontal-8davlm",spaceScaled2xNone:"--space-scaled-2x-none-8i5al4",spaceScaled2xXxxs:"--space-scaled-2x-xxxs-fp07j9",spaceScaled2xXxs:"--space-scaled-2x-xxs-7v8ivz",spaceScaled2xXs:"--space-scaled-2x-xs-cijznx",spaceScaled2xS:"--space-scaled-2x-s-owsac7",spaceScaled2xM:"--space-scaled-2x-m-owtj1o",spaceScaled2xL:"--space-scaled-2x-l-ujnz41",spaceScaled2xXl:"--space-scaled-2x-xl-udij7m",spaceScaled2xXxl:"--space-scaled-2x-xxl-ts4prk",spaceScaled2xXxxl:"--space-scaled-2x-xxxl-eqb3m6",spaceScaledNone:"--space-scaled-none-vhzhxe",spaceScaledXxxs:"--space-scaled-xxxs-27y4hv",spaceScaledXxs:"--space-scaled-xxs-7597g1",spaceScaledXs:"--space-scaled-xs-26e2du",spaceScaledS:"--space-scaled-s-aqzyko",spaceScaledM:"--space-scaled-m-mo5yse",spaceScaledL:"--space-scaled-l-0hpmd7",spaceScaledXl:"--space-scaled-xl-kswcw7",spaceScaledXxl:"--space-scaled-xxl-wbot5q",spaceScaledXxxl:"--space-scaled-xxxl-fdg8ai",spaceStaticXxxs:"--space-static-xxxs-3gu9os",spaceStaticXxs:"--space-static-xxs-82cdfi",spaceStaticXs:"--space-static-xs-7sfb63",spaceStaticS:"--space-static-s-n2eb28",spaceStaticM:"--space-static-m-lrhgl2",spaceStaticL:"--space-static-l-0xsx8r",spaceStaticXl:"--space-static-xl-qalw6z",spaceStaticXxl:"--space-static-xxl-02zgl2",spaceStaticXxxl:"--space-static-xxxl-qj5g91",spaceNone:"--space-none-zrljql",spaceXxxs:"--space-xxxs-zbmxqb",spaceXxs:"--space-xxs-p8yyaw",spaceXs:"--space-xs-zb16t3",spaceS:"--space-s-34lx8l",spaceM:"--space-m-udix3p",spaceL:"--space-l-t419sm",spaceXl:"--space-xl-lmui9r",spaceXxl:"--space-xxl-cu2m1r",spaceXxxl:"--space-xxxl-4x2gki",shadowContainer:"--shadow-container-fxmdn3",shadowContainerStacked:"--shadow-container-stacked-4gw245",shadowContainerActive:"--shadow-container-active-kl29x9",shadowDropdown:"--shadow-dropdown-e5guvm",shadowDropup:"--shadow-dropup-xqkiza",shadowFlashCollapsed:"--shadow-flash-collapsed-s7gipk",shadowFlashSticky:"--shadow-flash-sticky-pq8cuq",shadowModal:"--shadow-modal-2ennni",shadowPanel:"--shadow-panel-g6fkp1",shadowPanelToggle:"--shadow-panel-toggle-0l64f2",shadowPopover:"--shadow-popover-8zls8c",shadowSplitBottom:"--shadow-split-bottom-5e389u",shadowSplitSide:"--shadow-split-side-ggdtnk",shadowSticky:"--shadow-sticky-blixp9",shadowStickyEmbedded:"--shadow-sticky-embedded-uvh5ry",shadowStickyColumnFirst:"--shadow-sticky-column-first-039dqs",shadowStickyColumnLast:"--shadow-sticky-column-last-n170vw"}};function m5({theme:e,baseThemeId:t}){return p5({override:e,preset:g5,baseThemeId:t})}function at(e,t){e.displayName=t}function bS(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=bS(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function W(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=bS(e))&&(o&&(o+=" "),o+=t);return o}class v5{constructor(t=!1,r=null){this.cancelable=t,this.detail=r,this.defaultPrevented=!1,this.cancelBubble=!1}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.cancelBubble=!0}}function wS({cancelable:e,detail:t}){return new v5(e,t)}function xe(e,t){if(!e)return;const r=wS({cancelable:!1,detail:t});e(r)}function St(e,t,r){if(!e)return!1;const o=wS({cancelable:!0,detail:t});return e(o),o.defaultPrevented&&r&&r.preventDefault(),o.cancelBubble&&r&&r.stopPropagation(),o.defaultPrevented}function Cc(e,t){return St(e,{keyCode:t.keyCode,key:t.key,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey},t)}const y5=e=>e.button!==void 0;function b5(e){return e.ctrlKey||e.altKey||e.shiftKey||e.metaKey}function ci(e){return e&&(!y5(e)||e.button===0)&&!b5(e)}function Ji(e,t){B.useImperativeHandle(e,()=>({focus(...r){var o;(o=t.current)===null||o===void 0||o.focus(...r)}}),[t])}const cn={content:"awsui_content_vjswe_12tek_103",button:"awsui_button_vjswe_12tek_107","variant-normal":"awsui_variant-normal_vjswe_12tek_158","variant-icon":"awsui_variant-icon_vjswe_12tek_201","variant-modal-dismiss":"awsui_variant-modal-dismiss_vjswe_12tek_201","variant-flashbar-icon":"awsui_variant-flashbar-icon_vjswe_12tek_201","variant-inline-icon":"awsui_variant-inline-icon_vjswe_12tek_222",disabled:"awsui_disabled_vjswe_12tek_243","variant-primary":"awsui_variant-primary_vjswe_12tek_251","variant-link":"awsui_variant-link_vjswe_12tek_344","variant-inline-link":"awsui_variant-inline-link_vjswe_12tek_623","variant-breadcrumb-group":"awsui_variant-breadcrumb-group_vjswe_12tek_906","variant-menu-trigger":"awsui_variant-menu-trigger_vjswe_12tek_1004","button-no-text":"awsui_button-no-text_vjswe_12tek_1097","button-no-wrap":"awsui_button-no-wrap_vjswe_12tek_1101","full-width":"awsui_full-width_vjswe_12tek_1104","icon-left":"awsui_icon-left_vjswe_12tek_1123","icon-right":"awsui_icon-right_vjswe_12tek_1128",icon:"awsui_icon_vjswe_12tek_1123"};var w5="__awsuiMetadata__";function xS(e,t){var r=B.useRef(null);return B.useEffect(function(){if(r.current){var o=r.current,n={name:e,version:t};Object.freeze(n),Object.defineProperty(o,w5,{value:n,writable:!1,configurable:!0})}}),r}function pl(e,t){return!e||e.length<=t}var x5=function(){function e(){}return e.prototype.sendMetric=function(t,r,o){if(!t||!/^[a-zA-Z0-9_-]+$/.test(t)){console.error("Invalid metric name: ".concat(t));return}if(!pl(t,1e3)){console.error("Metric name ".concat(t," is too long"));return}if(!pl(o,4e3)){console.error("Detail for metric ".concat(t," is too long: ").concat(o));return}var n=this.findAWSC(window);typeof n=="object"&&typeof n.Clog=="object"&&typeof n.Clog.log=="function"&&n.Clog.log(t,r,o)},e.prototype.findAWSC=function(t){try{return typeof(t==null?void 0:t.AWSC)=="object"?t==null?void 0:t.AWSC:!t||t.parent===t?void 0:this.findAWSC(t.parent)}catch{return}},e}(),_5=function(){function e(){}return e.prototype.sendMetric=function(t){if(typeof t.eventDetail=="object"&&(t.eventDetail=JSON.stringify(t.eventDetail)),typeof t.eventValue=="object"&&(t.eventValue=JSON.stringify(t.eventValue)),!pl(t.eventDetail,4e3)){console.error("Event detail for metric is too long: ".concat(t.eventDetail));return}if(!pl(t.eventValue,4e3)){console.error("Event value for metric is too long: ".concat(t.eventValue));return}if(!pl(t.eventContext,4e3)){console.error("Event context for metric is too long: ".concat(t.eventContext));return}if(!pl(t.eventType,50)){console.error("Event type for metric is too long: ".concat(t.eventType));return}var r=this.findPanorama(window);typeof r=="function"&&r("trackCustomEvent",ii({timestamp:Date.now()},t))},e.prototype.findPanorama=function(t){try{return typeof(t==null?void 0:t.panorama)=="function"?t==null?void 0:t.panorama:!t||t.parent===t?void 0:this.findPanorama(t.parent)}catch{return}},e}(),k5="react";function C5(e,t){var r=e.source,o=e.action,n=e.version,i=e.configuration,a=typeof AWSUI_METRIC_ORIGIN<"u"?AWSUI_METRIC_ORIGIN:"main",c={o:a,s:r,t,a:o,f:k5,v:E5(n),c:i};return _S(c)}function _S(e){return JSON.stringify(e,S5)}function S5(e,t){return typeof t=="number"&&!Number.isFinite(t)?"".concat(t):t}function T5(e,t){var r=e.source,o=e.version;return["awsui",r,"".concat(L5(t,o))].join("_")}function E5(e){return e.replace(/\s/g,"")}function L5(e,t){return"".concat(e.charAt(0)).concat(A5(t).replace(".",""))}function A5(e){var t=e.match(/^(\d+\.\d+)/);return t?t[1]:""}var Nu=new Set,vd="";function B5(e){vd=e}var kS=function(){function e(t,r){this.clog=new x5,this.panorama=new _5,this.source=t,this.packageVersion=r}return e.prototype.initMetrics=function(t){B5(t)},e.prototype.sendMetric=function(t,r,o){if(!vd){console.error("Metrics need to be initialized first.");return}this.clog.sendMetric(t,r,o)},e.prototype.sendPanoramaMetric=function(t){this.panorama.sendMetric(t)},e.prototype.sendMetricObject=function(t,r){this.sendMetric(T5(t,vd),r,C5(t,vd))},e.prototype.sendMetricObjectOnce=function(t,r){var o=_S(t);Nu.has(o)||(this.sendMetricObject(t,r),Nu.add(o))},e.prototype.sendMetricOnce=function(t,r,o){Nu.has(t)||(this.sendMetric(t,r,o),Nu.add(t))},e.prototype.logComponentsLoaded=function(){this.sendMetricObjectOnce({source:this.source,action:"loaded",version:this.packageVersion},1)},e.prototype.logComponentUsed=function(t,r){this.sendMetricObjectOnce({source:t,action:"used",version:this.packageVersion,configuration:r},1)},e}();function CS(e,t,r){var o=t.packageSource,n=t.packageVersion,i=t.theme;r===void 0&&(r={props:{}}),B.useEffect(function(){var a=new kS(o,n);a.initMetrics(i),typeof window<"u"&&(a.sendMetricOnce("awsui-viewport-width",window.innerWidth||0),a.sendMetricOnce("awsui-viewport-height",window.innerHeight||0)),a.logComponentsLoaded(),a.logComponentUsed(e.toLowerCase(),r)},[])}function SS(e,t){typeof window<"u"&&(window.awsuiVersions||(window.awsuiVersions={}),window.awsuiVersions[e]||(window.awsuiVersions[e]=[]),window.awsuiVersions[e].push(t))}var Sa=[],D5=function(){return Sa.some(function(e){return e.activeTargets.length>0})},R5=function(){return Sa.some(function(e){return e.skippedTargets.length>0})},Tw="ResizeObserver loop completed with undelivered notifications.",I5=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Tw}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Tw),window.dispatchEvent(e)},Sc;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Sc||(Sc={}));var Ta=function(e){return Object.freeze(e)},P5=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Ta(this)}return e}(),TS=function(){function e(t,r,o,n){return this.x=t,this.y=r,this.width=o,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ta(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,o=t.y,n=t.top,i=t.right,a=t.bottom,c=t.left,l=t.width,d=t.height;return{x:r,y:o,top:n,right:i,bottom:a,left:c,width:l,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),R0=function(e){return e instanceof SVGElement&&"getBBox"in e},ES=function(e){if(R0(e)){var t=e.getBBox(),r=t.width,o=t.height;return!r&&!o}var n=e,i=n.offsetWidth,a=n.offsetHeight;return!(i||a||e.getClientRects().length)},Ew=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},$5=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Us=typeof window<"u"?window:{},ju=new WeakMap,Lw=/auto|scroll/,O5=/^tb|vertical/,M5=/msie|trident/i.test(Us.navigator&&Us.navigator.userAgent),An=function(e){return parseFloat(e||"0")},Cl=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new P5((r?t:e)||0,(r?e:t)||0)},Aw=Ta({devicePixelContentBoxSize:Cl(),borderBoxSize:Cl(),contentBoxSize:Cl(),contentRect:new TS(0,0,0,0)}),LS=function(e,t){if(t===void 0&&(t=!1),ju.has(e)&&!t)return ju.get(e);if(ES(e))return ju.set(e,Aw),Aw;var r=getComputedStyle(e),o=R0(e)&&e.ownerSVGElement&&e.getBBox(),n=!M5&&r.boxSizing==="border-box",i=O5.test(r.writingMode||""),a=!o&&Lw.test(r.overflowY||""),c=!o&&Lw.test(r.overflowX||""),l=o?0:An(r.paddingTop),d=o?0:An(r.paddingRight),s=o?0:An(r.paddingBottom),u=o?0:An(r.paddingLeft),h=o?0:An(r.borderTopWidth),f=o?0:An(r.borderRightWidth),p=o?0:An(r.borderBottomWidth),g=o?0:An(r.borderLeftWidth),v=u+d,m=l+s,y=g+f,C=h+p,_=c?e.offsetHeight-C-e.clientHeight:0,k=a?e.offsetWidth-y-e.clientWidth:0,b=n?v+y:0,S=n?m+C:0,T=o?o.width:An(r.width)-b-k,L=o?o.height:An(r.height)-S-_,I=T+v+k+y,A=L+m+_+C,P=Ta({devicePixelContentBoxSize:Cl(Math.round(T*devicePixelRatio),Math.round(L*devicePixelRatio),i),borderBoxSize:Cl(I,A,i),contentBoxSize:Cl(T,L,i),contentRect:new TS(u,l,T,L)});return ju.set(e,P),P},AS=function(e,t,r){var o=LS(e,r),n=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case Sc.DEVICE_PIXEL_CONTENT_BOX:return a;case Sc.BORDER_BOX:return n;default:return i}},BS=function(){function e(t){var r=LS(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Ta([r.borderBoxSize]),this.contentBoxSize=Ta([r.contentBoxSize]),this.devicePixelContentBoxSize=Ta([r.devicePixelContentBoxSize])}return e}(),DS=function(e){if(ES(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},N5=function(){var e=1/0,t=[];Sa.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(d){var s=new BS(d.target),u=DS(d.target);c.push(s),d.lastReportedSize=AS(d.target,d.observedBox),u<e&&(e=u)}),t.push(function(){a.callback.call(a.observer,c,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var r=0,o=t;r<o.length;r++){var n=o[r];n()}return e},Bw=function(e){Sa.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(n){n.isActive()&&(DS(n.target)>e?r.activeTargets.push(n):r.skippedTargets.push(n))})})},j5=function(){var e=0;for(Bw(e);D5();)e=N5(),Bw(e);return R5()&&I5(),e>0},Wp,RS=[],G5=function(){return RS.splice(0).forEach(function(e){return e()})},z5=function(e){if(!Wp){var t=0,r=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return G5()}).observe(r,o),Wp=function(){r.textContent="".concat(t?t--:t++)}}RS.push(e),Wp()},F5=function(e){z5(function(){requestAnimationFrame(e)})},yd=0,H5=function(){return!!yd},W5=250,V5={attributes:!0,characterData:!0,childList:!0,subtree:!0},Dw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Rw=function(e){return e===void 0&&(e=0),Date.now()+e},Vp=!1,U5=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=W5),!Vp){Vp=!0;var o=Rw(t);F5(function(){var n=!1;try{n=j5()}finally{if(Vp=!1,t=o-Rw(),!H5())return;n?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,V5)};document.body?r():Us.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Dw.forEach(function(r){return Us.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Dw.forEach(function(r){return Us.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),$m=new U5,Iw=function(e){!yd&&e>0&&$m.start(),yd+=e,!yd&&$m.stop()},K5=function(e){return!R0(e)&&!$5(e)&&getComputedStyle(e).display==="inline"},q5=function(){function e(t,r){this.target=t,this.observedBox=r||Sc.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=AS(this.target,this.observedBox,!0);return K5(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Y5=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),Gu=new WeakMap,Pw=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},zu=function(){function e(){}return e.connect=function(t,r){var o=new Y5(t,r);Gu.set(t,o)},e.observe=function(t,r,o){var n=Gu.get(t),i=n.observationTargets.length===0;Pw(n.observationTargets,r)<0&&(i&&Sa.push(n),n.observationTargets.push(new q5(r,o&&o.box)),Iw(1),$m.schedule())},e.unobserve=function(t,r){var o=Gu.get(t),n=Pw(o.observationTargets,r),i=o.observationTargets.length===1;n>=0&&(i&&Sa.splice(Sa.indexOf(o),1),o.observationTargets.splice(n,1),Iw(-1))},e.disconnect=function(t){var r=this,o=Gu.get(t);o.observationTargets.slice().forEach(function(n){return r.unobserve(t,n.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),IS=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");zu.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ew(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");zu.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ew(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");zu.unobserve(this,t)},e.prototype.disconnect=function(){zu.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function ao(e){var t=B.useRef();return B.useEffect(function(){t.current=e}),B.useCallback(function(){for(var r,o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return(r=t.current)===null||r===void 0?void 0:r.apply(void 0,o)},[])}function yn(e,t){var r=ao(t);B.useLayoutEffect(function(){var o=typeof e=="function"?e():e==null?void 0:e.current;o&&t($w(new BS(o)))},[]),B.useEffect(function(){var o=typeof e=="function"?e():e==null?void 0:e.current;if(o){var n=!0,i=new IS(function(a){n&&r($w(a[0]))});return i.observe(o),function(){n=!1,i.disconnect()}}},[e,r])}function $w(e){return{target:e.target,contentBoxWidth:e.contentBoxSize[0].inlineSize,contentBoxHeight:e.contentBoxSize[0].blockSize,borderBoxWidth:e.borderBoxSize[0].inlineSize,borderBoxHeight:e.borderBoxSize[0].blockSize}}function I0(e){var t=[],r=function(n){Uo.unstable_batchedUpdates(function(){for(var i=0,a=t;i<a.length;i++){var c=a[i];c(n)}})},o;return function(i){B.useEffect(function(){return t.length===0&&(o=e(r)),t.push(i),function(){t.splice(t.indexOf(i),1),t.length===0&&(o(),o=void 0)}},[])}}function X5(e){var t=e.factory,r=e.initialState,o=I0(t),n=r;return function(){var a=B.useState(n),c=a[0],l=a[1];return o(function(d){n=d,l(d)}),c}}function Oa(e,t){for(var r=e;r&&!t(r);)for(r=r.parentElement;r&&!(r instanceof HTMLElement);)r=r.parentElement;return r}function lh(e,t){return!e||!t||!("nodeType"in t)?!1:e.contains(t)}function Q5(e){var t,r;return!!Oa(e,function(o){return o.classList.contains("awsui-motion-disabled")})||((r=(t=window.matchMedia)===null||t===void 0?void 0:t.call(window,"(prefers-reduced-motion: reduce)").matches)!==null&&r!==void 0?r:!1)}function tf(e){var t=B.useState("light"),r=t[0],o=t[1];return $0(e,function(n){var i=Oa(n,function(a){return a.classList.contains("awsui-polaris-dark-mode")||a.classList.contains("awsui-dark-mode")});o(i?"dark":"light")}),r}function PS(e){var t=B.useState("comfortable"),r=t[0],o=t[1];return $0(e,function(n){var i=Oa(n,function(a){return a.classList.contains("awsui-polaris-compact-mode")||a.classList.contains("awsui-compact-mode")});o(i?"compact":"comfortable")}),r}function P0(e){var t=B.useState(!1),r=t[0],o=t[1];return $0(e,function(n){o(Q5(n))}),r}var Z5=I0(function(e){var t=new MutationObserver(function(){return e()});return t.observe(document.body,{attributes:!0,subtree:!0}),function(){return t.disconnect()}});function $0(e,t){var r=ao(function(){e.current&&t(e.current)});Z5(r),B.useEffect(function(){r()},[r])}var O0="components",zc="3.0.0 (6748ddaf)";SS(O0,zc);function Ie(e){const t={};return Object.keys(e).forEach(r=>{(r==="id"||r==="className"||r.match(/^data-/))&&(t[r]=e[r])}),t}const ra={icon:"awsui_icon_h11ix_1l964_104","icon-flex-height":"awsui_icon-flex-height_h11ix_1l964_110","size-small":"awsui_size-small_h11ix_1l964_135","size-small-mapped-height":"awsui_size-small-mapped-height_h11ix_1l964_139","size-normal":"awsui_size-normal_h11ix_1l964_154","size-normal-mapped-height":"awsui_size-normal-mapped-height_h11ix_1l964_158","size-medium":"awsui_size-medium_h11ix_1l964_173","size-medium-mapped-height":"awsui_size-medium-mapped-height_h11ix_1l964_177","size-big":"awsui_size-big_h11ix_1l964_192","size-big-mapped-height":"awsui_size-big-mapped-height_h11ix_1l964_196","size-large":"awsui_size-large_h11ix_1l964_211","size-large-mapped-height":"awsui_size-large-mapped-height_h11ix_1l964_215","variant-normal":"awsui_variant-normal_h11ix_1l964_230","variant-disabled":"awsui_variant-disabled_h11ix_1l964_233","variant-inverted":"awsui_variant-inverted_h11ix_1l964_236","variant-subtle":"awsui_variant-subtle_h11ix_1l964_239","variant-warning":"awsui_variant-warning_h11ix_1l964_242","variant-error":"awsui_variant-error_h11ix_1l964_245","variant-success":"awsui_variant-success_h11ix_1l964_248","variant-link":"awsui_variant-link_h11ix_1l964_251","name-angle-left-double":"awsui_name-angle-left-double_h11ix_1l964_254","name-angle-left":"awsui_name-angle-left_h11ix_1l964_254","name-angle-right-double":"awsui_name-angle-right-double_h11ix_1l964_256","name-angle-right":"awsui_name-angle-right_h11ix_1l964_256","name-arrow-left":"awsui_name-arrow-left_h11ix_1l964_258","name-caret-left-filled":"awsui_name-caret-left-filled_h11ix_1l964_259","name-caret-right-filled":"awsui_name-caret-right-filled_h11ix_1l964_260","name-audio-full":"awsui_name-audio-full_h11ix_1l964_261","name-audio-half":"awsui_name-audio-half_h11ix_1l964_262","name-audio-off":"awsui_name-audio-off_h11ix_1l964_263","name-external":"awsui_name-external_h11ix_1l964_264","name-redo":"awsui_name-redo_h11ix_1l964_265","name-shrink":"awsui_name-shrink_h11ix_1l964_266","name-undo":"awsui_name-undo_h11ix_1l964_267","name-view-vertical":"awsui_name-view-vertical_h11ix_1l964_268",badge:"awsui_badge_h11ix_1l964_272"},Ow={"add-plus":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="M8 1v14M15 8H1"/></svg>',"anchor-link":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linecap-round" d="M11 8H5"/><path d="M7 4H5a4 4 0 0 0 0 8h2M9 4h2a4 4 0 0 1 0 8H9"/></svg>',"angle-down":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="m1 4 7 7 7-7"/></svg>',"angle-left-double":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="M14 1 7 8l7 7"/><path d="M9 1 2 8l7 7"/></svg>',"angle-left":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="M12 1 5 8l7 7"/></svg>',"angle-right-double":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="m2 1 7 7-7 7"/><path d="m7 1 7 7-7 7"/></svg>',"angle-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="m4 1 7 7-7 7"/></svg>',"angle-up":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="m1 12 7-7 7 7"/></svg>',"arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="M9 1 2 8l7 7M2 8h13"/></svg>',"audio-full":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M7 15V1L1 6v4l6 5ZM15 3v10M11 5v6"/></svg>',"audio-half":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M7 15V1L1 6v4l6 5ZM11 5v6"/></svg>',"audio-off":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M7 15V1L1 6v4l6 5Z"/><path d="m15.01 5.75-4.5 4.5M15.01 10.25l-4.5-4.5"/></svg>',bug:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M5 5h6a1 1 0 0 1 1 1v5.5A3.5 3.5 0 0 1 8.5 15h-1A3.5 3.5 0 0 1 4 11.5V6a1 1 0 0 1 1-1ZM5 5a3 3 0 0 1 6 0"/><path d="M12 9h3M1 9h3M12 12h2l1 2M4 12H2l-1 2M12 6h2l1-2M4 6H2L1 4"/></svg>',calendar:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M2 2h12v12H2z"/><path d="M4.99 8H5v.01h-.01zM7.99 8H8v.01h-.01zM10.99 8H11v.01h-.01zM4.99 5H5v.01h-.01zM7.99 5H8v.01h-.01zM10.99 5H11v.01h-.01zM4.99 11H5v.01h-.01zM7.99 11H8v.01h-.01z"/></svg>',call:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="M9 2c2.8 0 5 2.2 5 5M7.9 13c1.3 1.3 3.5 1.3 4.8 0l1-1c.4-.4.4-1 0-1.4l-1.5-1.5c-.3-.3-1-.2-1.3.1l-.1.1c-.5.5-1.4.5-2 0L6.6 7.2c-.5-.5-.5-1.4 0-2l.1-.1c.3-.3.4-1 .1-1.3L5.3 2.3c-.3-.4-1-.4-1.3 0l-1 1C1.7 4.6 1.7 6.7 3 8.1L7.9 13z"/></svg>',"caret-down-filled":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="filled stroke-linejoin-round" d="M4 5h8l-4 6-4-6z"/></svg>',"caret-down":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M4 5h8l-4 6-4-6z"/></svg>',"caret-left-filled":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="filled stroke-linejoin-round" d="M11 4v8L5 8l6-4z"/></svg>',"caret-right-filled":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="filled stroke-linejoin-round" d="M5 4v8l6-4-6-4z"/></svg>',"caret-up-filled":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="filled stroke-linejoin-round" d="M4 11h8L8 5l-4 6z"/></svg>',"caret-up":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M4 11h8L8 5l-4 6z"/></svg>',check:'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="m14.254 4.254-8.25 8.25L6 12.5l-.004.004-4.25-4.25.008-.008L6 12.493l8.246-8.247.008.008Z"/></svg>',close:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="m2 2 12 12M14 2 2 14"/></svg>',contact:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round stroke-linecap-round" d="M2 12.286h5.143L8.857 14l1.714-1.714H14V2H2v10.286z"/><path class="stroke-linecap-round" d="M4.99 7H5v.01h-.01zM7.99 7H8v.01h-.01zM10.99 7H11v.01h-.01z"/></svg>',copy:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M2 5h9v9H2z"/><path class="stroke-linejoin-round" d="M5 5V2h9v9h-3"/></svg>',"delete-marker":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M3 7V1h6l5 5v9H9"/><path class="stroke-linejoin-round" d="M8 1v6h6M1 15l6-6M7 15 1 9"/></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M11 2h3v12H2V2h3"/><path d="m4 6 4 4 4-4M8 1v9"/></svg>',"drag-indicator":'<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><circle cx="5.5" cy="2.5" r=".5" class="filled"/><circle cx="5.5" cy="13.5" r=".5" class="filled"/><circle cx="5.5" cy="8" r=".5" class="filled"/><circle cx="10.5" cy="2.5" r=".5" class="filled"/><circle cx="10.5" cy="13.5" r=".5" class="filled"/><circle cx="10.5" cy="8" r=".5" class="filled"/></svg>',edit:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="filled" d="M8.2 13.9H14v.1H8.1l.1-.1Zm2.37-9.17.7.7-5.3 5.3-.7-.7 5.3-5.3Zm2.71-2.7a.1.1 0 0 1 .14 0l.57.57a.1.1 0 0 1 0 .14l-.58.58-.71-.71.58-.58ZM3.15 12.15l.7.71-.24.24a1 1 0 0 1-.43.26l-.74.2.21-.73a1 1 0 0 1 .26-.44l.24-.24Z"/></svg>',ellipsis:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><circle class="filled" cx="8" cy="2.5" r=".5"/><circle class="filled" cx="8" cy="8" r=".5"/><circle class="filled" cx="8" cy="13.5" r=".5"/></svg>',envelope:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M1 2h14v12H1z"/><path class="stroke-linejoin-round" d="m1 4 7 6 7-6"/></svg>',expand:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="M9 2h5v5M7 2H2v5M7 14H2V9M9 14h5V9M2 2l12 12M14 2 2 14"/></svg>',external:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linecap-square" d="M10 2h4v4"/><path d="m6 10 8-8"/><path class="stroke-linejoin-round" d="M14 9.048V14H2V2h5"/></svg>',"file-open":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="M8 1v4a1 1 0 0 0 1 1h4"/><path class="stroke-linejoin-round" d="M3 15h10V5L9 1H3v14z"/><path d="m3 8 7 7"/></svg>',file:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M8 1v5h5"/><path class="stroke-linejoin-round" d="M3 15V1h6l4 4v10H3z"/></svg>',filter:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="M14.986 2.016A.01.01 0 0 0 14.98 2H1.02a.01.01 0 0 0-.007.016l4.984 5.981A.01.01 0 0 1 6 8.004v6.98a.01.01 0 0 0 .014.009l3.98-1.99a.01.01 0 0 0 .006-.01v-4.99c0-.002 0-.004.002-.006l4.984-5.98Z"/></svg>',flag:'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="m2.71 9.18 1.11-.39C5.2 8.3 6.74 8.44 8 9.18c1.27.74 2.8.89 4.18.39l1.11-.39v-6l-1.11.39c-1.38.49-2.92.35-4.18-.39-1.27-.74-2.8-.89-4.18-.39l-1.11.39v11.83"/></svg>',"folder-open":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M2 7V2h7l1 2h5v9a1 1 0 0 1-1 1H3L1 7h10l2.006 7"/></svg>',folder:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M14 14H2V2h5.143L9 5h5v9z"/></svg>',"gen-ai":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M7.981 1.047a.02.02 0 0 1 .038 0l1.96 4.973 4.974 1.961a.02.02 0 0 1 0 .038L9.98 9.979l-1.961 4.974a.02.02 0 0 1-.038 0L6.021 9.98 1.046 8.019a.02.02 0 0 1 0-.038l4.973-1.96 1.961-4.974Z"/><path d="m2.5 2.65.045-.095.095-.045-.095-.045L2.5 2.37l-.045.095-.095.045.095.045.045.095Z" class="filled"/></svg>',"group-active":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M14 4a2 2 0 1 0-4 0 2 2 0 0 0 4 0ZM9 11v3h6v-3c0-1.66-1.34-3-3-3s-3 1.34-3 3Z"/><path class="filled stroke-linejoin-round" d="M6 4a2 2 0 1 0-4 0 2 2 0 0 0 4 0ZM1 11v3h6v-3c0-1.66-1.34-3-3-3s-3 1.34-3 3Z"/></svg>',group:'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M14 4a2 2 0 1 0-4 0 2 2 0 0 0 4 0ZM9 11v3h6v-3c0-1.66-1.34-3-3-3s-3 1.34-3 3ZM6 4a2 2 0 1 0-4 0 2 2 0 0 0 4 0ZM1 11v3h6v-3c0-1.66-1.34-3-3-3s-3 1.34-3 3Z"/></svg>',heart:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="M13.92 3.061a3.729 3.729 0 0 0-5.21 0L8 3.76l-.71-.699a3.729 3.729 0 0 0-5.21 0 3.58 3.58 0 0 0 0 5.123l5.21 5.124.003-.004L8 14l.707-.696.004.004 5.21-5.124a3.58 3.58 0 0 0 0-5.123Z"/></svg>',"insert-row":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M15 6V3H1v9h5M16 11H8M12 15V7"/></svg>',key:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M9 10a5.023 5.023 0 0 1 0 1 3.996 3.996 0 1 1-3-3.874L13 1h2v5h-2v2h-2l.016 1.983Z"/><path d="M4.99 11H5v.01h-.01z"/></svg>',keyboard:'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M15 2H1v12h14V2Z"/><path d="M6 5H4M9 5H7M12 5h-2M6 8H4M12 11H4M9 8H7M12 8h-2"/></svg>',"lock-private":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M2 7h12v7H2z"/><path d="M4 7V5a4 4 0 0 1 8 0v2"/></svg>',menu:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="M15 8H1M15 3H1M15 13H1"/></svg>',"microphone-off":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M13.76 1.34 2.11 12.98M4.75 10.8A5.002 5.002 0 0 0 13 7V6M8 15v-3M3 15h10"/><path class="filled" d="M8 1c-1.1 0-2 .9-2 2v1.09l2.88-2.88C8.61 1.08 8.32 1 8 1ZM6.64 8.46A2 2 0 0 0 8 9c1.1 0 2-.9 2-2V5.09L6.64 8.45v.01Z"/><path class="stroke-linejoin-round" d="M3.37 8.53C3.024 8.184 3 7.537 3 7V6"/></svg>',microphone:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><rect class="stroke-linejoin-round" x="6" y="1" width="4" height="8" rx="2"/><path class="stroke-linejoin-round" d="M3 6v1a5 5 0 0 0 10 0V6M8 12v3M3 15h10"/></svg>',multiscreen:'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M11 5H1v7h10V5Z"/><path class="stroke-linejoin-round" d="M11 8.229h4v-7H5V5M1 15h10M6 15v-3"/></svg>',notification:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M8 2.167c-3.5 0-3.5 4.666-3.5 4.666L1 11.5h14l-3.5-4.667s0-4.666-3.5-4.666ZM5.667 11.5v1.167a2.333 2.333 0 0 0 4.666 0V11.5"/><path class="stroke-linecap-round" d="M8 1v1.167"/></svg>',redo:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M12 5H6.38c-4.5 0-4.5 8 0 8H13"/><path class="stroke-linejoin-round" d="m10 8 3-3-3-3"/></svg>',refresh:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="M10 5h5V0"/><path d="M15 8a6.957 6.957 0 0 1-7 7 6.957 6.957 0 0 1-7-7 6.957 6.957 0 0 1 7-7 6.87 6.87 0 0 1 6.3 4"/></svg>',remove:'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="m3 3 1 11h8l1-11H3ZM1 3h14M10 2H6v1h4V2Z"/></svg>',"resize-area":'<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="m9.5 14.5 5-5M4 14.5 14.5 4"/></svg>',script:'<svg viewBox="0 0 16 17" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="m9.53 4.397-3.06 7.4M4.5 11.597 1 8.097l3.5-3.5M11.5 11.597l3.5-3.5-3.5-3.5"/></svg>',search:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><circle cx="7" cy="7" r="5"/><path d="m15 15-4.5-4.5"/></svg>',security:'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M8 14.83s-6-1.925-6-6.74V3.265c3.31 0 5.99-1.916 5.99-1.916s2.7 1.916 6.01 1.916V8.09c0 4.815-6 6.74-6 6.74Z"/><path d="M2 8.09V3.265c3.31 0 5.99-1.916 5.99-1.916M13.99 8.09V3.265C10.68 3.265 8 1.35 8 1.35"/><path class="stroke-linejoin-round" d="M8 4v5M8 10v2"/></svg>',settings:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path d="M13.33 5.792a1.942 1.942 0 0 1 .287-1.97 6.984 6.984 0 0 0-1.44-1.439 1.943 1.943 0 0 1-3.159-1.308 6.965 6.965 0 0 0-2.037 0 1.943 1.943 0 0 1-3.158 1.308 6.962 6.962 0 0 0-1.44 1.44 1.943 1.943 0 0 1-1.308 3.158 6.972 6.972 0 0 0 0 2.037 1.943 1.943 0 0 1 1.308 3.159 6.952 6.952 0 0 0 1.44 1.44 1.942 1.942 0 0 1 3.159 1.308 6.962 6.962 0 0 0 2.036 0 1.942 1.942 0 0 1 3.159-1.308 6.974 6.974 0 0 0 1.44-1.44 1.943 1.943 0 0 1 1.308-3.159 6.974 6.974 0 0 0 0-2.037 1.942 1.942 0 0 1-1.596-1.189Z"/><circle cx="8" cy="8" r="2"/></svg>',share:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><circle cx="11" cy="4" r="2"/><circle cx="4" cy="8" r="2"/><circle cx="11" cy="12" r="2"/><path d="M9.2 4.9 5.8 7.1M9.2 11.1 5.8 8.9"/></svg>',shrink:'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M10 1v5h5M10 6l5-5M6 15v-5H1M6 10l-5 5"/></svg>',"star-filled":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="filled stroke-linejoin-round stroke-linecap-round" d="m8 1 2.16 4.61 4.84.74-3.5 3.58.83 5.07L8 12.61 3.67 15l.83-5.07L1 6.35l4.84-.74L8 1z"/></svg>',"star-half":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="m8 1 2.16 4.61 4.84.74-3.5 3.58.83 5.07L8 12.61 3.67 15l.83-5.07L1 6.35l4.84-.74L8 1z"/><path class="filled" d="M8 12.61 3.67 15l.83-5.07L1 6.35l4.84-.74L8 1v11.61z"/></svg>',star:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round stroke-linecap-round" d="m8 1 2.16 4.61 4.84.74-3.5 3.58.83 5.07L8 12.61 3.67 15l.83-5.07L1 6.35l4.84-.74L8 1z"/></svg>',"status-in-progress":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><circle class="stroke-linejoin-round" cx="8" cy="8" r="7"/><path class="stroke-linecap-round" d="M4.99 7.995H5v.01h-.01zM7.99 7.995H8v.01h-.01zM10.99 7.995H11v.01h-.01z"/></svg>',"status-info":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><circle class="stroke-linejoin-round" cx="8" cy="8" r="7"/><path d="M8 11V8H6"/><path class="stroke-linejoin-round" d="M10 11H6"/><path d="M7.99 5H8v.01h-.01z"/></svg>',"status-negative":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><circle class="stroke-linejoin-round" cx="8" cy="8" r="7"/><path d="m10.828 5.172-5.656 5.656M10.828 10.828 5.172 5.172"/></svg>',"status-pending":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><circle class="stroke-linejoin-round" cx="8" cy="8" r="7"/><path class="stroke-linecap-square" d="M8 5v4H5"/></svg>',"status-positive":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><circle class="stroke-linejoin-round" cx="8" cy="8" r="7"/><path class="stroke-linecap-square" d="m5 8 2 2 3.521-3.521"/></svg>',"status-stopped":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><circle class="stroke-linejoin-round" cx="8" cy="8" r="7"/><path class="stroke-linecap-square" d="M11 8H5"/></svg>',"status-warning":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="m8 1 7 14H1L8 1z"/><path d="M7.99 12H8v.01h-.01zM8 6v4"/></svg>',suggestions:'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M6 14h4"/><path d="M8 11h1c0-1.53 3-2.46 3-5.24.02-1.36-.61-2.4-1.57-3.09a4.208 4.208 0 0 0-4.86 0C4.61 3.36 3.98 4.4 4 5.76 4 8.54 7 9.47 7 11h1Z"/></svg>',"thumbs-down-filled":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="filled stroke-linejoin-round" d="M6 9.58c0 .27.06.55.19.79l1.64 3.28c.1.21.32.34.55.34.34 0 .62-.28.62-.62v-3.33h3.44a2 2 0 0 0 1.94-2.48l-1.01-4.05a2 2 0 0 0-1.94-1.52H6v7.59Z"/><path class="stroke-linejoin-round" d="M6 2H2v7h4"/></svg>',"thumbs-down":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M6 9.58c0 .27.06.55.19.79l1.64 3.28c.1.21.32.34.55.34.34 0 .62-.28.62-.62v-3.33h3.44a2 2 0 0 0 1.94-2.48l-1.01-4.05a2 2 0 0 0-1.94-1.52H6v7.59ZM6 2H2v7h4"/></svg>',"thumbs-up-filled":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="filled stroke-linejoin-round" d="M6 6.42c0-.27.06-.55.19-.79l1.64-3.28c.1-.21.32-.34.55-.34.34 0 .62.28.62.62v3.33h3.44a2 2 0 0 1 1.94 2.48l-1.01 4.05a2 2 0 0 1-1.94 1.52H6V6.42Z"/><path class="stroke-linejoin-round" d="M6 14H2V7h4"/></svg>',"thumbs-up":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M6 6.42c0-.27.06-.55.19-.79l1.64-3.28c.1-.21.32-.34.55-.34.34 0 .62.28.62.62v3.33h3.44a2 2 0 0 1 1.94 2.48l-1.01 4.05a2 2 0 0 1-1.94 1.52H6V6.42ZM6 14H2V7h4"/></svg>',ticket:'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M8 4.275a2 2 0 0 1-2-2H3v12h3a2 2 0 1 1 4 0h3v-12h-3a2 2 0 0 1-2 2Z"/></svg>',"treeview-collapse":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M5 8h6M2 2h12v12H2z"/></svg>',"treeview-expand":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M5 8h6M8 11V5M2 2h12v12H2z"/></svg>',undo:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M4 13h5.625c4.5 0 4.5-8 0-8H3"/><path class="stroke-linejoin-round" d="M6 2 3 5l3 3"/></svg>',unlocked:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M2 7h12v7H2z"/><path d="M11.874 4A4 4 0 0 0 4 5v2"/></svg>',"upload-download":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M11 13.701v-10M8 6.702l3-3 3 3M4.98 2.662v10.04M7.98 9.662l-3 3-3-3"/></svg>',upload:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M5 14H2V2h12v12h-3"/><path d="M12 10 8 6l-4 4M8 6v9"/></svg>',"user-profile-active":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="filled stroke-linejoin-round" d="M4.61 4.39C4.61 2.52 6.13 1 8 1s3.39 1.52 3.39 3.39S9.87 7.78 8 7.78 4.61 6.26 4.61 4.39M2.05 14.08h11.91c0-2.25-1.17-4.23-2.9-5.3A5.77 5.77 0 0 0 8 7.91c-3.29 0-5.95 2.76-5.95 6.17z"/></svg>',"user-profile":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M4.61 4.39C4.61 2.52 6.13 1 8 1s3.39 1.52 3.39 3.39S9.87 7.78 8 7.78 4.61 6.26 4.61 4.39M2.05 14.08h11.91c0-2.25-1.17-4.23-2.9-5.3A5.77 5.77 0 0 0 8 7.91c-3.29 0-5.95 2.76-5.95 6.17z"/></svg>',"video-off":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M3 15h10M8 15v-3M8 12A5 5 0 1 0 8 2a5 5 0 0 0 0 10ZM6 5l4 4M10 5 6 9"/></svg>',"video-on":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M3 15h10M8 15v-3M8 12A5 5 0 1 0 8 2a5 5 0 0 0 0 10Z"/><path class="stroke-linejoin-round" d="M8 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"/></svg>',"video-unavailable":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path class="stroke-linejoin-round" d="M3 15h10M8 15v-3M8 12A5 5 0 1 0 8 2a5 5 0 0 0 0 10ZM5.5 7h5"/></svg>',"view-full":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="filled" d="M5 5h6v6H5z"/><path class="stroke-linejoin-round" d="M2 2h12v12H2z"/></svg>',"view-horizontal":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="filled" d="M5 9h6v2H5z"/><path class="stroke-linejoin-round" d="M2 2h12v12H2z"/></svg>',"view-vertical":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><path class="filled" d="M11 5v6H9V5z"/><path class="stroke-linejoin-round" d="M2 2h12v12H2z"/></svg>',"zoom-in":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><circle cx="6.885" cy="6.885" r="5.385"/><path d="m14.5 14.5-3.846-3.846M7 4v6M10 7H4"/></svg>',"zoom-out":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false" aria-hidden="true"><circle cx="6.885" cy="6.885" r="5.385"/><path d="m14.5 14.5-3.846-3.846M10 7H4"/></svg>',"zoom-to-fit":'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M14 11v3h-4M2 11v3h4M2 5V2h4M14 5V2h-4M10 6H6v4h4V6Z"/></svg>'};function Lt(...e){return B.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const kn=()=>!0;function J5(e){return e===null?"normal":e>=50?"large":e>=36?"big":e>=24?"medium":e<=16?"small":"normal"}const eP=e=>{var{name:t,size:r="normal",variant:o="normal",url:n,alt:i,svg:a,badge:c,__internalRootRef:l=null}=e,d=de(e,["name","size","variant","url","alt","svg","badge","__internalRootRef"]);const s=B.useRef(null),[u,h]=B.useState(null),f=r==="inherit",p=f?J5(u):r,g=f&&u!==null?{height:`${u}px`}:{},v=Ie(d);v.className=W(v.className,ra.icon,f&&ra["icon-flex-height"],c&&ra.badge,!f&&ra[`size-${p}-mapped-height`],ra[`size-${p}`],ra[`variant-${o}`],ra[`name-${t}`]),B.useLayoutEffect(()=>{if(!f||!s.current)return;const{lineHeight:_}=getComputedStyle(s.current),k=parseInt(_,10);h(k)});const m=Lt(s,l);if(a)return x.createElement("span",Object.assign({},v,{ref:m,"aria-hidden":"true",style:g}),a);if(n)return x.createElement("span",Object.assign({},v,{ref:m,style:g}),x.createElement("img",{src:n,alt:i}));const y=t&&Object.prototype.hasOwnProperty.call(Ow,t);function C(_){const k=`<svg
    72          width="12"
    73          height="12"
    74          viewBox="0 0 16 16"
    75          xmlns="http://www.w3.org/2000/svg"
    76          focusable="false"
    77          aria-hidden="true"
    78          data-testid="gen-ai-filled"
    79        >
    80          <path d="m8 4.4 1.018 2.582L11.6 8 9.018 9.018 8 11.6 6.982 9.018 4.4 8l2.582-1.018L8 4.4ZM2.405 2.41l.002-.003.003-.002-.003-.002-.002-.003-.002.003-.003.002.003.002.002.003Z" class="filled"></path>
    81        </svg>`;return _==="gen-ai"&&p==="small"?k:Ow[_]}return x.createElement("span",Object.assign({},v,{dangerouslySetInnerHTML:y?{__html:C(t)}:void 0,ref:m,style:g}))},ze=eP,oa={root:"awsui_root_1612d_mmb9t_133","spinner-rotator":"awsui_spinner-rotator_1612d_mmb9t_1","size-normal":"awsui_size-normal_1612d_mmb9t_147","size-big":"awsui_size-big_1612d_mmb9t_155","size-large":"awsui_size-large_1612d_mmb9t_163","variant-normal":"awsui_variant-normal_1612d_mmb9t_171","variant-disabled":"awsui_variant-disabled_1612d_mmb9t_174","variant-inverted":"awsui_variant-inverted_1612d_mmb9t_177",circle:"awsui_circle_1612d_mmb9t_189","circle-left":"awsui_circle-left_1612d_mmb9t_217","spinner-line-left":"awsui_spinner-line-left_1612d_mmb9t_1","circle-right":"awsui_circle-right_1612d_mmb9t_222","spinner-line-right":"awsui_spinner-line-right_1612d_mmb9t_1"};function rf(e){var{size:t="normal",variant:r="normal",__internalRootRef:o}=e,n=de(e,["size","variant","__internalRootRef"]);const i=Ie(n);return x.createElement("span",Object.assign({},i,{className:W(i.className,oa.root,oa[`size-${t}`],oa[`variant-${r}`]),ref:o}),x.createElement("span",{className:W(oa.circle,oa["circle-left"])}),x.createElement("span",{className:W(oa.circle,oa["circle-right"])}))}function M0(e){return e.variant==="icon"||e.variant==="inline-icon"?"left":e.iconAlign}function $S(e){var{iconName:t,iconUrl:r,iconAlt:o,iconSvg:n,iconSize:i,badge:a}=e,c=de(e,["iconName","iconUrl","iconAlt","iconSvg","iconSize","badge"]);return!t&&!r&&!n?null:B.createElement(ze,{className:W(cn.icon,cn[`icon-${M0(c)}`],c.iconClass),name:t,url:r,svg:n,alt:o,size:i,badge:a})}function tP(e){return e.loading?B.createElement(rf,{className:W(cn.icon,cn["icon-left"])}):M0(e)==="left"?B.createElement($S,Object.assign({},e)):null}function rP(e){return M0(e)==="right"?B.createElement($S,Object.assign({},e)):null}const oP=["javascript:void(0)","javascript:void(0);","javascript:;"];function bn(e,t){if(!t||oP.indexOf(t.toLowerCase())!==-1)return;let r;try{r=new URL(t)}catch{return}if(r.protocol==="javascript:")throw new Error("A javascript: URL was blocked as a security precaution.")}const nP={root:"awsui_root_xttbq_pgwjg_99"};function Ql(e){return x.createElement("span",Object.assign({},e,{className:W(nP.root,e.className)}))}const iP={root:"awsui_root_3bgfn_im8v7_5"},lo=B.memo(aP);function aP(e){var{assertive:t=!1,delay:r=10,visible:o=!1,tagName:n="span",children:i,id:a,source:c}=e,l=de(e,["assertive","delay","visible","tagName","children","id","source"]);const d=B.useRef(null),s=B.useRef(null);return B.useEffect(()=>{function u(){if(c)return c.map(p=>{if(p){if(typeof p=="string")return p;if(p.current)return Up(p.current)}}).filter(Boolean).join(" ");if(d.current)return Up(d.current)}function h(){const p=u();s.current&&p&&Up(s.current)!==p&&(s.current.innerText=p)}let f;return r?f=setTimeout(h,r):h(),()=>{f&&clearTimeout(f)}}),x.createElement(x.Fragment,null,o&&!c&&x.createElement(n,{ref:d,id:a},i),x.createElement(Ql,Object.assign({},l,{className:W(iP.root,l.className)}),!o&&!c&&x.createElement(n,{ref:d,"aria-hidden":"true"},i),x.createElement("span",{ref:s,"aria-atomic":"true","aria-live":t?"assertive":"polite"})))}function Up(e){return(e.innerText||"").replace(/\s+/g," ").trim()}const N0=B.createContext({onClick:()=>{}});function lP(){return B.useContext(N0)}const Fc="data-analytics-funnel",sP=`${Fc}-interaction-id`,Zl=`${Fc}-key`,OS=`${Fc}-value`,cP=`${Fc}-step`,j0=`${Fc}-substep`,uP="data-analytics-field-label",dP="data-analytics-field-error",hP="data-analytics-alert",fP="data-analytics-flashbar",MS="funnel-name",NS="step-name",jS="substep-name",Om=()=>`[${Zl}="${MS}"]`,Ks=()=>`[${j0}]`,GS=e=>`[${j0}="${e}"]`,zS=e=>[e?GS(e):"",`[${Zl}="${jS}"]`].join(" "),Fu=e=>e?`[id="${e}"]`:void 0,qr=e=>{var t,r;return e?(r=(t=document.querySelector(e))===null||t===void 0?void 0:t.innerText)===null||r===void 0?void 0:r.trim():void 0},FS=B.createContext({funnelInteractionId:void 0,funnelNameSelector:Om(),setFunnelInteractionId:()=>{},funnelType:"single-page",optionalStepNumbers:[],totalFunnelSteps:0,funnelSubmit:()=>{},funnelCancel:()=>{},submissionAttempt:0,funnelNextOrSubmitAttempt:()=>{},funnelState:{current:"default"},errorCount:{current:0},loadingButtonCount:{current:0},latestFocusCleanupFunction:{current:void 0},isInFunnel:!1,wizardCount:{current:0}}),HS=B.createContext({stepNameSelector:"",stepNumber:0,subStepCount:{current:0},isInStep:!1,funnelInteractionId:void 0,onStepChange:()=>{},subStepConfiguration:{current:new Map}}),Mm=B.createContext({subStepId:"",subStepSelector:"",subStepNameSelector:"",subStepRef:{current:null},isNestedSubStep:!1,mousePressed:{current:!1},isFocusedSubStep:{current:!1},focusCleanupFunction:{current:void 0}}),WS=B.createContext(void 0);let Sl={funnelStart(){return""},funnelError(){},funnelComplete(){},funnelSuccessful(){},funnelCancelled(){},funnelChange(){},funnelStepStart(){},funnelStepComplete(){},funnelStepNavigation(){},funnelStepError(){},funnelStepChange(){},funnelSubStepStart(){},funnelSubStepComplete(){},funnelSubStepError(){},helpPanelInteracted(){},externalLinkInteracted(){}};function pP(e,t,r){e instanceof RegExp&&(e=Mw(e,r)),t instanceof RegExp&&(t=Mw(t,r));var o=VS(e,t,r);return o&&{start:o[0],end:o[1],pre:r.slice(0,o[0]),body:r.slice(o[0]+e.length,o[1]),post:r.slice(o[1]+t.length)}}function Mw(e,t){var r=t.match(e);return r?r[0]:null}pP.range=VS;function VS(e,t,r){var o,n,i,a,c,l=r.indexOf(e),d=r.indexOf(t,l+1),s=l;if(l>=0&&d>0){if(e===t)return[l,d];for(o=[],i=r.length;s>=0&&!c;)s==l?(o.push(s),l=r.indexOf(e,s+1)):o.length==1?c=[o.pop(),d]:(n=o.pop(),n<i&&(i=n,a=d),d=r.indexOf(t,s+1)),s=l<d&&l>=0?l:d;o.length&&(c=[i,a])}return c}function US(e){let t;return()=>(t===void 0&&(t=e()),t)}function tn(e,t){let r=e;for(;r&&!t(r);)for(r=r.parentElement;r&&!(r instanceof HTMLElement);)r=r.parentElement;return r}function Ea(){var e,t,r;return typeof window>"u"?!1:(r=(t=(e=window.CSS)===null||e===void 0?void 0:e.supports)===null||t===void 0?void 0:t.call(e,"position","sticky"))!==null&&r!==void 0?r:!1}const gP=US(()=>{const e=document.createElement("div");e.style.transform="translateY(5px)",document.body.appendChild(e);const t=document.createElement("div");t.style.position="fixed",t.style.top="0",e.appendChild(t);const r=e.getBoundingClientRect().top===t.getBoundingClientRect().top;return document.body.removeChild(e),r});function KS(e){return e.parentElement&&gP()?tn(e.parentElement,t=>{const r=getComputedStyle(t);return!!r.transform&&r.transform!=="none"||!!r.perspective&&r.perspective!=="none"}):null}function fn(e,t){var r;if(!(t instanceof Node))return!1;const o=tn(t,i=>i===e||i instanceof HTMLElement&&!!i.dataset.awsuiReferrerId);if(o&&o===e)return!0;const n=o instanceof HTMLElement?document.getElementById((r=o.dataset.awsuiReferrerId)!==null&&r!==void 0?r:""):null;return n?lh(e,n):lh(e,t)}const Fa=()=>{const e=B.useContext(Mm),{funnelInteractionId:t,funnelState:r,latestFocusCleanupFunction:o}=xo(),{stepNumber:n,stepNameSelector:i,subStepConfiguration:a}=ai(),{subStepId:c,subStepSelector:l,subStepNameSelector:d,subStepRef:s,isNestedSubStep:u,mousePressed:h,isFocusedSubStep:f,focusCleanupFunction:p}=e;if(u)return e;const g=y=>Zh(void 0,void 0,void 0,function*(){var C,_,k,b;const S=y.target;if(yield new Promise(T=>setTimeout(T,1)),document.activeElement===S&&!f.current&&(f.current=!0,t&&c)){(C=o.current)===null||C===void 0||C.call(o);const T=qr(d);qr(i),(b=(k=(_=a.current)===null||_===void 0?void 0:_.get(n))===null||k===void 0?void 0:k.find(I=>I.name===T))===null||b===void 0||b.number;let L=!1;p.current=()=>{var I,A,P;L||(L=!0,(P=(A=(I=a.current)===null||I===void 0?void 0:I.get(n))===null||A===void 0?void 0:A.find(D=>D.name===T))===null||P===void 0||P.number,r.current)},o.current=p.current}}),v=y=>{var C;h.current||(!s.current||!y.relatedTarget||!fn(s.current,y.relatedTarget))&&(f.current=!1,t&&c&&r.current!=="cancelled"&&((C=p.current)===null||C===void 0||C.call(p)))},m=t?{[j0]:c,onFocus:g,onBlur:v}:{};return Object.assign({funnelSubStepProps:m},e)},ai=()=>B.useContext(HS),xo=()=>{const e=B.useContext(FS),t=e.funnelInteractionId?{[sP]:e.funnelInteractionId}:{};return Object.assign({funnelProps:t},e)},mP=()=>B.useContext(WS);var Kp;let vP=0;const yP=()=>{const e=B.useRef(null);return e.current||(e.current=`${vP++}-${Date.now()}-${Math.round(Math.random()*1e4)}`),e.current},bP=(Kp=x.useId)!==null&&Kp!==void 0?Kp:yP;function De(e){return`${e||""}`+bP()}function Hc(e,t){const r=B.useRef(!0);B.useEffect(()=>{if(r.current)r.current=!1;else return e()},t)}function qS(e,t,r,o,n){const i=De();B.useEffect(()=>{if(!t||!r.current||!(r.current.offsetWidth>0&&r.current.offsetHeight>0&&getComputedStyle(r.current).visibility!=="hidden"))return;const c=`${e}Rendered`;performance.mark(c,{detail:Object.assign({source:"awsui",instanceId:i},o())})},[]),Hc(()=>{if(!t||!r.current||!(r.current.offsetWidth>0&&r.current.offsetHeight>0&&getComputedStyle(r.current).visibility!=="hidden"))return;const c=`${e}Updated`;performance.mark(c,{detail:Object.assign({source:"awsui",instanceId:i},o())})},n)}const YS={navigationActive:!1,registerFocusable:()=>()=>{}},G0=B.createContext(YS);function Cn(e,t){var r;const{navigationActive:o,registerFocusable:n}=B.useContext(G0),[i,a]=B.useState(!1),c=(t==null?void 0:t.tabIndex)&&(t==null?void 0:t.tabIndex)<0,l=o&&!c;B.useEffect(()=>{if(l&&e&&e.current){const s=n(e.current,u=>a(u));return()=>s()}});let d=t==null?void 0:t.tabIndex;return l&&(d=i?(r=t==null?void 0:t.tabIndex)!==null&&r!==void 0?r:0:-1),{navigationActive:l,tabIndex:d}}const pt=x.forwardRef((e,t)=>{var{children:r,iconName:o,__iconClass:n,onClick:i,onFollow:a,iconAlign:c="left",iconUrl:l,iconSvg:d,iconAlt:s,variant:u="normal",loading:h=!1,loadingText:f,disabled:p=!1,wrapText:g=!0,href:v,target:m,rel:y,download:C,formAction:_="submit",ariaLabel:k,ariaDescribedby:b,ariaExpanded:S,ariaControls:T,fullWidth:L,badge:I,__nativeAttributes:A,__internalRootRef:P=null,__focusable:D=!1}=e,E=de(e,["children","iconName","__iconClass","onClick","onFollow","iconAlign","iconUrl","iconSvg","iconAlt","variant","loading","loadingText","disabled","wrapText","href","target","rel","download","formAction","ariaLabel","ariaDescribedby","ariaExpanded","ariaControls","fullWidth","badge","__nativeAttributes","__internalRootRef","__focusable"]);bn("Button",v);const R=!!v,$=h||p,N=h&&!p||p&&D,M=r&&["icon","inline-icon","flashbar-icon","modal-dismiss"].indexOf(u)===-1,O=B.useRef(null);Ji(t,O);const j=lP(),z=De("button"),{funnelInteractionId:F}=xo(),{stepNumber:K,stepNameSelector:U}=ai(),{subStepSelector:Y,subStepNameSelector:V}=Fa();qS("primaryButton",u==="primary",O,()=>{var oe;return{loading:h,disabled:p,text:(oe=O.current)===null||oe===void 0?void 0:oe.innerText}},[h,p]);const q=oe=>{if($)return oe.preventDefault();R&&ci(oe)&&(St(a,{href:v,target:m},oe),(o==="external"||m==="_blank")&&F&&(qr(U),qr(V)));const{altKey:Z,button:G,ctrlKey:H,metaKey:te,shiftKey:ae}=oe;St(i,{altKey:Z,button:G,ctrlKey:H,metaKey:te,shiftKey:ae},oe),j.onClick({variant:u})},ee=W(E.className,cn.button,cn[`variant-${u}`],{[cn.disabled]:$,[cn["button-no-wrap"]]:!g,[cn["button-no-text"]]:!M,[cn["full-width"]]:M&&L}),X=A&&"tabIndex"in A?A.tabIndex:void 0,{tabIndex:ie}=Cn(O,{tabIndex:R&&$?-1:X}),se=Object.assign(Object.assign(Object.assign({},E),A),{tabIndex:ie,ref:Lt(O,P),"aria-label":k,"aria-describedby":b,"aria-expanded":S,"aria-controls":T,title:k,className:ee,onClick:q,[OS]:z}),me={loading:h,iconName:o,iconAlign:c,iconUrl:l,iconSvg:d,iconAlt:s,variant:u,badge:I,iconClass:n,iconSize:u==="modal-dismiss"?"medium":"normal"},ve=x.createElement(x.Fragment,null,x.createElement(tP,Object.assign({},me)),M&&x.createElement("span",{className:cn.content},r),x.createElement(rP,Object.assign({},me))),{loadingButtonCount:Q}=xo();return B.useEffect(()=>{if(h)return Q.current++,()=>{Q.current--}},[h,Q]),R?x.createElement(x.Fragment,null,x.createElement("a",Object.assign({},se,{href:v,target:m,rel:y??(m==="_blank"?"noopener noreferrer":void 0),"aria-disabled":$?!0:void 0,download:C}),ve),h&&f&&x.createElement(lo,null,f)):x.createElement(x.Fragment,null,x.createElement("button",Object.assign({},se,{type:_==="none"?"button":"submit",disabled:p&&!D,"aria-disabled":N?!0:void 0}),ve),h&&f&&x.createElement(lo,null,f))}),wn=pt,Nw=/awsui-context-([\w-]+)/;function wP(e){const[t,r]=B.useState("");return B.useLayoutEffect(()=>{var o;if(e.current){const n=tn(e.current,i=>!!i.className.match(Nw));r((o=n==null?void 0:n.className.match(Nw)[1])!==null&&o!==void 0?o:"")}},[e]),t}function Wc(e){return`awsui-context-${e}`}function XS({contextName:e,className:t,children:r}){return x.createElement("div",{className:W(Wc(e),t)},r)}const gr={alert:"awsui_alert_mx3cw_ipfn3_99","awsui-motion-fade-in":"awsui_awsui-motion-fade-in_mx3cw_ipfn3_1",root:"awsui_root_mx3cw_ipfn3_125",hidden:"awsui_hidden_mx3cw_ipfn3_163","with-dismiss":"awsui_with-dismiss_mx3cw_ipfn3_213","with-action":"awsui_with-action_mx3cw_ipfn3_213","breakpoint-default":"awsui_breakpoint-default_mx3cw_ipfn3_219",header:"awsui_header_mx3cw_ipfn3_226",action:"awsui_action_mx3cw_ipfn3_230","action-slot":"awsui_action-slot_mx3cw_ipfn3_235","action-button":"awsui_action-button_mx3cw_ipfn3_236","alert-focus-wrapper":"awsui_alert-focus-wrapper_mx3cw_ipfn3_240",text:"awsui_text_mx3cw_ipfn3_269",icon:"awsui_icon_mx3cw_ipfn3_276",message:"awsui_message_mx3cw_ipfn3_279","icon-size-medium":"awsui_icon-size-medium_mx3cw_ipfn3_287","icon-size-big":"awsui_icon-size-big_mx3cw_ipfn3_290","icon-size-normal":"awsui_icon-size-normal_mx3cw_ipfn3_293",content:"awsui_content_mx3cw_ipfn3_297",dismiss:"awsui_dismiss_mx3cw_ipfn3_301","dismiss-button":"awsui_dismiss-button_mx3cw_ipfn3_306","type-error":"awsui_type-error_mx3cw_ipfn3_310","type-warning":"awsui_type-warning_mx3cw_ipfn3_318","type-success":"awsui_type-success_mx3cw_ipfn3_326","type-info":"awsui_type-info_mx3cw_ipfn3_334"},Vc=[["xl",1840],["l",1320],["m",1120],["s",912],["xs",688],["xxs",465],["default",-1]],xP=Vc.filter(e=>e[0]==="xs")[0][1],_P=Vc.map(([e])=>e);function kP(e,t){const r=Vc.slice(_P.indexOf(t));for(const[o]of r){const n=e[o];if(n!==void 0)return n}return null}function QS(e,t){for(const[r,o]of Vc)if(e>o&&(!t||t.indexOf(r)!==-1))return r;return"default"}function CP(e){return Vc.find(t=>t[0]===e)[1]}function zr(e,t){t===void 0&&(t=[]);var r=B.useRef(null),o=B.useState(null),n=o[0],i=o[1],a=B.useCallback(function(){return r.current},t);return yn(a,function(c){return i(function(l){return e(c,l)})}),[n,r]}function zn(e){const t=e==null?void 0:e.join();return zr(r=>QS(r.contentBoxWidth,e),[t])}const SP=x.createContext({locale:null,format:(e,t,r,o)=>o});function it(e){const{format:t}=B.useContext(SP);return(r,o,n)=>t("@cloudscape-design/components",e,r,o,n)}const ZS={defaultVariant:"secondary"},Jl=B.createContext(ZS);function JS({mountContent:e,unmountContent:t}){const r=B.useRef(null);return B.useEffect(()=>{const o=r.current;return e(o),()=>t(o)},[]),x.createElement("div",{ref:r})}function TP(e,t){return e?x.createElement(JS,{key:e.id+"-"+t.type,mountContent:r=>e.mountContent(r,t),unmountContent:r=>e.unmountContent(r)}):null}function eT(e){return function(r){const[o,n]=B.useState([]),i=B.useRef(null),a=B.useRef(null);return B.useEffect(()=>e(c=>{n(c.map(l=>TP(l,{type:r,headerRef:i,contentRef:a})))}),[r]),{discoveredActions:o,headerRef:i,contentRef:a}}}const EP=200;function z0(e,t=EP){let r;return function(...o){r&&clearTimeout(r),r=setTimeout(()=>{r=null,e(...o)},t)}}class LP{constructor(){this.drawers=[],this.drawersRegistrationListener=null,this.scheduleUpdate=z0(()=>{var t;(t=this.drawersRegistrationListener)===null||t===void 0||t.call(this,this.drawers)},0),this.registerDrawer=t=>{this.drawers=this.drawers.concat(t),this.scheduleUpdate()},this.onDrawersRegistered=t=>(this.drawersRegistrationListener!==null&&console.warn("[AwsUi] [runtime drawers] multiple app layout instances detected"),this.drawersRegistrationListener=t,this.scheduleUpdate(),()=>{this.drawersRegistrationListener=null}),this.clearRegisteredDrawers=()=>{this.drawers=[]}}installPublic(t={}){var r;return(r=t.registerDrawer)!==null&&r!==void 0||(t.registerDrawer=this.registerDrawer),t}installInternal(t={}){var r,o;return(r=t.clearRegisteredDrawers)!==null&&r!==void 0||(t.clearRegisteredDrawers=this.clearRegisteredDrawers),(o=t.onDrawersRegistered)!==null&&o!==void 0||(t.onDrawersRegistered=this.onDrawersRegistered),t}}function F0(e){return e.slice().sort((t,r)=>{var o,n;return r.orderPriority!==t.orderPriority?Math.sign(((o=r.orderPriority)!==null&&o!==void 0?o:0)-((n=t.orderPriority)!==null&&n!==void 0?n:0)):r.id<t.id?1:-1})}class jw{constructor(){this.listeners=[],this.actions=[],this.scheduleUpdate=z0(()=>{this.listeners.forEach(t=>t(this.actions))},0),this.registerAction=t=>{this.actions.push(t),this.actions=F0(this.actions),this.scheduleUpdate()},this.clearRegisteredActions=()=>{this.actions=[]},this.onActionRegistered=t=>(this.listeners.push(t),this.scheduleUpdate(),()=>{this.listeners=this.listeners.filter(r=>r!==t)})}installPublic(t={}){var r;return(r=t.registerAction)!==null&&r!==void 0||(t.registerAction=this.registerAction),t}installInternal(t={}){var r,o;return(r=t.clearRegisteredActions)!==null&&r!==void 0||(t.clearRegisteredActions=this.clearRegisteredActions),(o=t.onActionRegistered)!==null&&o!==void 0||(t.onActionRegistered=this.onActionRegistered),t}}const sh=Symbol.for("awsui-plugin-api");function tT(e){try{return e!=null&&e[sh]?e[sh]:!e||e.parent===e?void 0:tT(e.parent)}catch{return}}function AP(){if(typeof window>"u")return Gw({});const e=window,t=tT(e);return e[sh]=Gw(t??{}),e[sh]}const{awsuiPlugins:yne,awsuiPluginsInternal:H0}=AP();function Gw(e){var t,r;(t=e.awsuiPlugins)!==null&&t!==void 0||(e.awsuiPlugins={}),(r=e.awsuiPluginsInternal)!==null&&r!==void 0||(e.awsuiPluginsInternal={});const o=new LP;e.awsuiPlugins.appLayout=o.installPublic(e.awsuiPlugins.appLayout),e.awsuiPluginsInternal.appLayout=o.installInternal(e.awsuiPluginsInternal.appLayout);const n=new jw;e.awsuiPlugins.alert=n.installPublic(e.awsuiPlugins.alert),e.awsuiPluginsInternal.alert=n.installInternal(e.awsuiPluginsInternal.alert);const i=new jw;return e.awsuiPlugins.flashbar=i.installPublic(e.awsuiPlugins.flashbar),e.awsuiPluginsInternal.flashbar=i.installInternal(e.awsuiPluginsInternal.flashbar),e}const BP={root:"awsui_root_37gf8_14wux_9"};function DP(e,t,r,o){return!t&&r&&(t=x.createElement(wn,{className:e.actionButton,onClick:o,formAction:"none"},r)),t?x.createElement("div",{className:e.actionSlot},t):null}function rT({className:e,testUtilClasses:t,action:r,discoveredActions:o,buttonText:n,onButtonClick:i}){const a=DP(t,r,n,i);return!a&&o.length===0?null:x.createElement("div",{className:W(BP.root,e)},a,o)}const RP={error:"status-negative",warning:"status-warning",success:"status-positive",info:"status-info"},IP=eT(H0.alert.onActionRegistered),PP=x.forwardRef((e,t)=>{var{type:r,statusIconAriaLabel:o,visible:n=!0,dismissible:i,dismissAriaLabel:a,children:c,header:l,buttonText:d,action:s,onDismiss:u,onButtonClick:h,__internalRootRef:f=null}=e,p=de(e,["type","statusIconAriaLabel","visible","dismissible","dismissAriaLabel","children","header","buttonText","action","onDismiss","onButtonClick","__internalRootRef"]);const g=Ie(p),v=it("alert"),m=B.useRef(null);Ji(t,m);const[y,C]=zn(["xs"]),_=Lt(C,f),k="normal",{discoveredActions:b,headerRef:S,contentRef:T}=IP(r),L=!!(s||d||b.length),I={[hP]:r};return x.createElement("div",Object.assign({},g,I,{"aria-hidden":!n,className:W(gr.root,{[gr.hidden]:!n},g.className),ref:_}),x.createElement(Jl.Provider,{value:{defaultVariant:"primary"}},x.createElement(XS,{contextName:"alert"},x.createElement("div",{className:W(gr.alert,gr[`type-${r}`],gr[`icon-size-${k}`],L&&gr["with-action"],i&&gr["with-dismiss"],gr[`breakpoint-${y}`])},x.createElement("div",{className:gr["alert-focus-wrapper"],tabIndex:-1,ref:m},x.createElement("div",{className:W(gr.icon,gr.text),role:"img","aria-label":o},x.createElement(ze,{name:RP[r],size:k})),x.createElement("div",{className:W(gr.message,gr.text)},l&&x.createElement("div",{className:gr.header,ref:S},l),x.createElement("div",{className:gr.content,ref:T},c))),x.createElement(rT,{className:gr.action,testUtilClasses:{actionSlot:gr["action-slot"],actionButton:gr["action-button"]},action:s,discoveredActions:b,buttonText:d,onButtonClick:()=>xe(h)}),i&&x.createElement("div",{className:gr.dismiss},x.createElement(pt,{className:gr["dismiss-button"],variant:"icon",iconName:"close",formAction:"none",ariaLabel:v("dismissAriaLabel",a),onClick:()=>xe(u)}))))))}),oT=PP;function $P(e,t){CS(e,{packageSource:O0,packageVersion:zc,theme:"vr"},t)}var ke;(function(e){e[e.pageUp=33]="pageUp",e[e.pageDown=34]="pageDown",e[e.end=35]="end",e[e.home=36]="home",e[e.backspace=8]="backspace",e[e.space=32]="space",e[e.down=40]="down",e[e.left=37]="left",e[e.right=39]="right",e[e.up=38]="up",e[e.escape=27]="escape",e[e.enter=13]="enter",e[e.tab=9]="tab",e[e.shift=16]="shift",e[e.control=17]="control",e[e.alt=18]="alt",e[e.meta=91]="meta"})(ke||(ke={}));function OP(e){return[ke.shift,ke.alt,ke.control,ke.meta].indexOf(e.keyCode)>-1}function nT(e){e?document.body.setAttribute("data-awsui-focus-visible","true"):document.body.removeAttribute("data-awsui-focus-visible")}function iT(){return nT(!1)}function aT(e){OP(e)||nT(!0)}let Hu=0;function MP(){document.addEventListener("mousedown",iT),document.addEventListener("keydown",aT)}function NP(){document.removeEventListener("mousedown",iT),document.removeEventListener("keydown",aT)}function jP(){B.useEffect(()=>(Hu===0&&MP(),Hu++,()=>{Hu--,Hu===0&&NP()}),[])}function ut(e,t){return $P(e,t),jP(),{__internalRootRef:xS(e,zc)}}const lT=x.forwardRef((e,t)=>{var{type:r="info",visible:o=!0}=e,n=de(e,["type","visible"]);const i=ut("Alert",{props:{type:r,visible:o,dismissible:n.dismissible}}),{funnelInteractionId:a,submissionAttempt:c,funnelState:l,errorCount:d}=xo(),{stepNumber:s,stepNameSelector:u}=ai(),{subStepSelector:h,subStepNameSelector:f}=Fa();return B.useEffect(()=>{var p,g,v;if(a&&o&&r==="error"&&l.current!=="complete")return qr(u),qr(f),d.current++,((v=(g=(p=i.__internalRootRef.current)===null||p===void 0?void 0:p.getBoundingClientRect())===null||g===void 0?void 0:g.width)!==null&&v!==void 0?v:0)>0,()=>{d.current--}},[a,o,c,d]),x.createElement(oT,Object.assign({type:r,visible:o},n,i,{ref:t}))});at(lT,"Alert");const Gt=lT,an={root:"awsui_root_18wu0_1h82x_99",box:"awsui_box_18wu0_1h82x_219","p-variant":"awsui_p-variant_18wu0_1h82x_219","color-default":"awsui_color-default_18wu0_1h82x_219","b-variant":"awsui_b-variant_18wu0_1h82x_219","strong-variant":"awsui_strong-variant_18wu0_1h82x_219","code-variant":"awsui_code-variant_18wu0_1h82x_219","pre-variant":"awsui_pre-variant_18wu0_1h82x_219","samp-variant":"awsui_samp-variant_18wu0_1h82x_219","h1-variant":"awsui_h1-variant_18wu0_1h82x_223","h2-variant":"awsui_h2-variant_18wu0_1h82x_223","h3-variant":"awsui_h3-variant_18wu0_1h82x_223","h4-variant":"awsui_h4-variant_18wu0_1h82x_223","h5-variant":"awsui_h5-variant_18wu0_1h82x_223","small-variant":"awsui_small-variant_18wu0_1h82x_227","a-variant":"awsui_a-variant_18wu0_1h82x_231","font-size-default":"awsui_font-size-default_18wu0_1h82x_235","font-weight-default":"awsui_font-weight-default_18wu0_1h82x_275","key-label-variant":"awsui_key-label-variant_18wu0_1h82x_317","value-large-variant":"awsui_value-large-variant_18wu0_1h82x_324","font-weight-heavy":"awsui_font-weight-heavy_18wu0_1h82x_331","color-inverted":"awsui_color-inverted_18wu0_1h82x_336","color-text-label":"awsui_color-text-label_18wu0_1h82x_339","color-text-body-secondary":"awsui_color-text-body-secondary_18wu0_1h82x_342","color-text-status-error":"awsui_color-text-status-error_18wu0_1h82x_345","color-text-status-success":"awsui_color-text-status-success_18wu0_1h82x_348","color-text-status-info":"awsui_color-text-status-info_18wu0_1h82x_351","color-text-status-inactive":"awsui_color-text-status-inactive_18wu0_1h82x_354","color-text-status-warning":"awsui_color-text-status-warning_18wu0_1h82x_357","color-inherit":"awsui_color-inherit_18wu0_1h82x_360","font-size-body-s":"awsui_font-size-body-s_18wu0_1h82x_363","font-size-body-m":"awsui_font-size-body-m_18wu0_1h82x_368","font-size-heading-xs":"awsui_font-size-heading-xs_18wu0_1h82x_372","font-size-heading-s":"awsui_font-size-heading-s_18wu0_1h82x_376","font-size-heading-m":"awsui_font-size-heading-m_18wu0_1h82x_381","font-size-heading-l":"awsui_font-size-heading-l_18wu0_1h82x_386","font-size-heading-xl":"awsui_font-size-heading-xl_18wu0_1h82x_391","font-size-display-l":"awsui_font-size-display-l_18wu0_1h82x_396","font-weight-light":"awsui_font-weight-light_18wu0_1h82x_401","font-weight-normal":"awsui_font-weight-normal_18wu0_1h82x_404","font-weight-bold":"awsui_font-weight-bold_18wu0_1h82x_407","t-left":"awsui_t-left_18wu0_1h82x_414","t-right":"awsui_t-right_18wu0_1h82x_418","t-center":"awsui_t-center_18wu0_1h82x_422","p-n":"awsui_p-n_18wu0_1h82x_529","p-top-n":"awsui_p-top-n_18wu0_1h82x_533","p-vertical-n":"awsui_p-vertical-n_18wu0_1h82x_534","p-right-n":"awsui_p-right-n_18wu0_1h82x_538","p-horizontal-n":"awsui_p-horizontal-n_18wu0_1h82x_539","p-bottom-n":"awsui_p-bottom-n_18wu0_1h82x_543","p-left-n":"awsui_p-left-n_18wu0_1h82x_548","p-xxxs":"awsui_p-xxxs_18wu0_1h82x_553","p-top-xxxs":"awsui_p-top-xxxs_18wu0_1h82x_557","p-vertical-xxxs":"awsui_p-vertical-xxxs_18wu0_1h82x_558","p-right-xxxs":"awsui_p-right-xxxs_18wu0_1h82x_562","p-horizontal-xxxs":"awsui_p-horizontal-xxxs_18wu0_1h82x_563","p-bottom-xxxs":"awsui_p-bottom-xxxs_18wu0_1h82x_567","p-left-xxxs":"awsui_p-left-xxxs_18wu0_1h82x_572","p-xxs":"awsui_p-xxs_18wu0_1h82x_577","p-top-xxs":"awsui_p-top-xxs_18wu0_1h82x_581","p-vertical-xxs":"awsui_p-vertical-xxs_18wu0_1h82x_582","p-right-xxs":"awsui_p-right-xxs_18wu0_1h82x_586","p-horizontal-xxs":"awsui_p-horizontal-xxs_18wu0_1h82x_587","p-bottom-xxs":"awsui_p-bottom-xxs_18wu0_1h82x_591","p-left-xxs":"awsui_p-left-xxs_18wu0_1h82x_596","p-xs":"awsui_p-xs_18wu0_1h82x_601","p-top-xs":"awsui_p-top-xs_18wu0_1h82x_605","p-vertical-xs":"awsui_p-vertical-xs_18wu0_1h82x_606","p-right-xs":"awsui_p-right-xs_18wu0_1h82x_610","p-horizontal-xs":"awsui_p-horizontal-xs_18wu0_1h82x_611","p-bottom-xs":"awsui_p-bottom-xs_18wu0_1h82x_615","p-left-xs":"awsui_p-left-xs_18wu0_1h82x_620","p-s":"awsui_p-s_18wu0_1h82x_625","p-top-s":"awsui_p-top-s_18wu0_1h82x_629","p-vertical-s":"awsui_p-vertical-s_18wu0_1h82x_630","p-right-s":"awsui_p-right-s_18wu0_1h82x_634","p-horizontal-s":"awsui_p-horizontal-s_18wu0_1h82x_635","p-bottom-s":"awsui_p-bottom-s_18wu0_1h82x_639","p-left-s":"awsui_p-left-s_18wu0_1h82x_644","p-m":"awsui_p-m_18wu0_1h82x_649","p-top-m":"awsui_p-top-m_18wu0_1h82x_653","p-vertical-m":"awsui_p-vertical-m_18wu0_1h82x_654","p-right-m":"awsui_p-right-m_18wu0_1h82x_658","p-horizontal-m":"awsui_p-horizontal-m_18wu0_1h82x_659","p-bottom-m":"awsui_p-bottom-m_18wu0_1h82x_663","p-left-m":"awsui_p-left-m_18wu0_1h82x_668","p-l":"awsui_p-l_18wu0_1h82x_548","p-top-l":"awsui_p-top-l_18wu0_1h82x_677","p-vertical-l":"awsui_p-vertical-l_18wu0_1h82x_678","p-right-l":"awsui_p-right-l_18wu0_1h82x_682","p-horizontal-l":"awsui_p-horizontal-l_18wu0_1h82x_683","p-bottom-l":"awsui_p-bottom-l_18wu0_1h82x_687","p-left-l":"awsui_p-left-l_18wu0_1h82x_692","p-xl":"awsui_p-xl_18wu0_1h82x_697","p-top-xl":"awsui_p-top-xl_18wu0_1h82x_701","p-vertical-xl":"awsui_p-vertical-xl_18wu0_1h82x_702","p-right-xl":"awsui_p-right-xl_18wu0_1h82x_706","p-horizontal-xl":"awsui_p-horizontal-xl_18wu0_1h82x_707","p-bottom-xl":"awsui_p-bottom-xl_18wu0_1h82x_711","p-left-xl":"awsui_p-left-xl_18wu0_1h82x_716","p-xxl":"awsui_p-xxl_18wu0_1h82x_721","p-top-xxl":"awsui_p-top-xxl_18wu0_1h82x_725","p-vertical-xxl":"awsui_p-vertical-xxl_18wu0_1h82x_726","p-right-xxl":"awsui_p-right-xxl_18wu0_1h82x_730","p-horizontal-xxl":"awsui_p-horizontal-xxl_18wu0_1h82x_731","p-bottom-xxl":"awsui_p-bottom-xxl_18wu0_1h82x_735","p-left-xxl":"awsui_p-left-xxl_18wu0_1h82x_740","p-xxxl":"awsui_p-xxxl_18wu0_1h82x_745","p-top-xxxl":"awsui_p-top-xxxl_18wu0_1h82x_749","p-vertical-xxxl":"awsui_p-vertical-xxxl_18wu0_1h82x_750","p-right-xxxl":"awsui_p-right-xxxl_18wu0_1h82x_754","p-horizontal-xxxl":"awsui_p-horizontal-xxxl_18wu0_1h82x_755","p-bottom-xxxl":"awsui_p-bottom-xxxl_18wu0_1h82x_759","p-left-xxxl":"awsui_p-left-xxxl_18wu0_1h82x_764","m-n":"awsui_m-n_18wu0_1h82x_769","m-top-n":"awsui_m-top-n_18wu0_1h82x_773","m-vertical-n":"awsui_m-vertical-n_18wu0_1h82x_774","m-right-n":"awsui_m-right-n_18wu0_1h82x_778","m-horizontal-n":"awsui_m-horizontal-n_18wu0_1h82x_779","m-bottom-n":"awsui_m-bottom-n_18wu0_1h82x_783","m-left-n":"awsui_m-left-n_18wu0_1h82x_788","m-xxxs":"awsui_m-xxxs_18wu0_1h82x_793","m-top-xxxs":"awsui_m-top-xxxs_18wu0_1h82x_797","m-vertical-xxxs":"awsui_m-vertical-xxxs_18wu0_1h82x_798","m-right-xxxs":"awsui_m-right-xxxs_18wu0_1h82x_802","m-horizontal-xxxs":"awsui_m-horizontal-xxxs_18wu0_1h82x_803","m-bottom-xxxs":"awsui_m-bottom-xxxs_18wu0_1h82x_807","m-left-xxxs":"awsui_m-left-xxxs_18wu0_1h82x_812","m-xxs":"awsui_m-xxs_18wu0_1h82x_817","m-top-xxs":"awsui_m-top-xxs_18wu0_1h82x_821","m-vertical-xxs":"awsui_m-vertical-xxs_18wu0_1h82x_822","m-right-xxs":"awsui_m-right-xxs_18wu0_1h82x_826","m-horizontal-xxs":"awsui_m-horizontal-xxs_18wu0_1h82x_827","m-bottom-xxs":"awsui_m-bottom-xxs_18wu0_1h82x_831","m-left-xxs":"awsui_m-left-xxs_18wu0_1h82x_836","m-xs":"awsui_m-xs_18wu0_1h82x_841","m-top-xs":"awsui_m-top-xs_18wu0_1h82x_845","m-vertical-xs":"awsui_m-vertical-xs_18wu0_1h82x_846","m-right-xs":"awsui_m-right-xs_18wu0_1h82x_850","m-horizontal-xs":"awsui_m-horizontal-xs_18wu0_1h82x_851","m-bottom-xs":"awsui_m-bottom-xs_18wu0_1h82x_855","m-left-xs":"awsui_m-left-xs_18wu0_1h82x_860","m-s":"awsui_m-s_18wu0_1h82x_865","m-top-s":"awsui_m-top-s_18wu0_1h82x_869","m-vertical-s":"awsui_m-vertical-s_18wu0_1h82x_870","m-right-s":"awsui_m-right-s_18wu0_1h82x_874","m-horizontal-s":"awsui_m-horizontal-s_18wu0_1h82x_875","m-bottom-s":"awsui_m-bottom-s_18wu0_1h82x_879","m-left-s":"awsui_m-left-s_18wu0_1h82x_884","m-m":"awsui_m-m_18wu0_1h82x_889","m-top-m":"awsui_m-top-m_18wu0_1h82x_893","m-vertical-m":"awsui_m-vertical-m_18wu0_1h82x_894","m-right-m":"awsui_m-right-m_18wu0_1h82x_898","m-horizontal-m":"awsui_m-horizontal-m_18wu0_1h82x_899","m-bottom-m":"awsui_m-bottom-m_18wu0_1h82x_903","m-left-m":"awsui_m-left-m_18wu0_1h82x_908","m-l":"awsui_m-l_18wu0_1h82x_788","m-top-l":"awsui_m-top-l_18wu0_1h82x_917","m-vertical-l":"awsui_m-vertical-l_18wu0_1h82x_918","m-right-l":"awsui_m-right-l_18wu0_1h82x_922","m-horizontal-l":"awsui_m-horizontal-l_18wu0_1h82x_923","m-bottom-l":"awsui_m-bottom-l_18wu0_1h82x_927","m-left-l":"awsui_m-left-l_18wu0_1h82x_932","m-xl":"awsui_m-xl_18wu0_1h82x_937","m-top-xl":"awsui_m-top-xl_18wu0_1h82x_941","m-vertical-xl":"awsui_m-vertical-xl_18wu0_1h82x_942","m-right-xl":"awsui_m-right-xl_18wu0_1h82x_946","m-horizontal-xl":"awsui_m-horizontal-xl_18wu0_1h82x_947","m-bottom-xl":"awsui_m-bottom-xl_18wu0_1h82x_951","m-left-xl":"awsui_m-left-xl_18wu0_1h82x_956","m-xxl":"awsui_m-xxl_18wu0_1h82x_961","m-top-xxl":"awsui_m-top-xxl_18wu0_1h82x_965","m-vertical-xxl":"awsui_m-vertical-xxl_18wu0_1h82x_966","m-right-xxl":"awsui_m-right-xxl_18wu0_1h82x_970","m-horizontal-xxl":"awsui_m-horizontal-xxl_18wu0_1h82x_971","m-bottom-xxl":"awsui_m-bottom-xxl_18wu0_1h82x_975","m-left-xxl":"awsui_m-left-xxl_18wu0_1h82x_980","m-xxxl":"awsui_m-xxxl_18wu0_1h82x_985","m-top-xxxl":"awsui_m-top-xxxl_18wu0_1h82x_989","m-vertical-xxxl":"awsui_m-vertical-xxxl_18wu0_1h82x_990","m-right-xxxl":"awsui_m-right-xxxl_18wu0_1h82x_994","m-horizontal-xxxl":"awsui_m-horizontal-xxxl_18wu0_1h82x_995","m-bottom-xxxl":"awsui_m-bottom-xxxl_18wu0_1h82x_999","m-left-xxxl":"awsui_m-left-xxxl_18wu0_1h82x_1004","d-block":"awsui_d-block_18wu0_1h82x_1009","d-inline":"awsui_d-inline_18wu0_1h82x_1012","d-inline-block":"awsui_d-inline-block_18wu0_1h82x_1015","d-none":"awsui_d-none_18wu0_1h82x_1018","f-left":"awsui_f-left_18wu0_1h82x_1023","f-right":"awsui_f-right_18wu0_1h82x_1027"};function xn(e){var{variant:t="div",tagOverride:r,margin:o={},padding:n={},display:i,textAlign:a,float:c,fontSize:l,fontWeight:d,color:s,children:u,__internalRootRef:h=null}=e,f=de(e,["variant","tagOverride","margin","padding","display","textAlign","float","fontSize","fontWeight","color","children","__internalRootRef"]);const p=Ie(f),g=zw(o),v=zw(n),m=GP(t,r),y=W(p.className,an.root,an.box,an[`${t.replace(/^awsui-/,"")}-variant`],g.map(C=>an[`m-${C}`]),v.map(C=>an[`p-${C}`]),an[`d-${i}`],an[`f-${c}`],an[`color-${s||"default"}`],an[`font-size-${l||"default"}`],an[`font-weight-${d||"default"}`],an[`t-${a}`]);return x.createElement(m,Object.assign({},p,{className:y,ref:h}),u)}const zw=e=>typeof e=="string"?[e]:["top","right","bottom","left","horizontal","vertical"].filter(r=>!!e[r]).map(r=>`${r}-${e[r]}`),GP=(e,t)=>t||(e==="awsui-value-large"?"span":e==="awsui-key-label"?"div":e),ks={root:"awsui_root_18582_z63vw_99",child:"awsui_child_18582_z63vw_103",horizontal:"awsui_horizontal_18582_z63vw_114","horizontal-xxxs":"awsui_horizontal-xxxs_18582_z63vw_118","horizontal-xxs":"awsui_horizontal-xxs_18582_z63vw_121","horizontal-xs":"awsui_horizontal-xs_18582_z63vw_124","horizontal-s":"awsui_horizontal-s_18582_z63vw_127","horizontal-m":"awsui_horizontal-m_18582_z63vw_130","horizontal-l":"awsui_horizontal-l_18582_z63vw_133","horizontal-xl":"awsui_horizontal-xl_18582_z63vw_136","horizontal-xxl":"awsui_horizontal-xxl_18582_z63vw_139",vertical:"awsui_vertical_18582_z63vw_146","vertical-xxxs":"awsui_vertical-xxxs_18582_z63vw_149","vertical-xxs":"awsui_vertical-xxs_18582_z63vw_152","vertical-xs":"awsui_vertical-xs_18582_z63vw_155","vertical-s":"awsui_vertical-s_18582_z63vw_158","vertical-m":"awsui_vertical-m_18582_z63vw_161","vertical-l":"awsui_vertical-l_18582_z63vw_164","vertical-xl":"awsui_vertical-xl_18582_z63vw_167","vertical-xxl":"awsui_vertical-xxl_18582_z63vw_170","align-center":"awsui_align-center_18582_z63vw_174","align-start":"awsui_align-start_18582_z63vw_178","align-end":"awsui_align-end_18582_z63vw_182"};var sT={},cT={exports:{}},$t={};/** @license React v16.13.1
    82   * react-is.production.min.js
    83   *
    84   * Copyright (c) Facebook, Inc. and its affiliates.
    85   *
    86   * This source code is licensed under the MIT license found in the
    87   * LICENSE file in the root directory of this source tree.
    88   */var Pr=typeof Symbol=="function"&&Symbol.for,W0=Pr?Symbol.for("react.element"):60103,V0=Pr?Symbol.for("react.portal"):60106,of=Pr?Symbol.for("react.fragment"):60107,nf=Pr?Symbol.for("react.strict_mode"):60108,af=Pr?Symbol.for("react.profiler"):60114,lf=Pr?Symbol.for("react.provider"):60109,sf=Pr?Symbol.for("react.context"):60110,U0=Pr?Symbol.for("react.async_mode"):60111,cf=Pr?Symbol.for("react.concurrent_mode"):60111,uf=Pr?Symbol.for("react.forward_ref"):60112,df=Pr?Symbol.for("react.suspense"):60113,zP=Pr?Symbol.for("react.suspense_list"):60120,hf=Pr?Symbol.for("react.memo"):60115,ff=Pr?Symbol.for("react.lazy"):60116,FP=Pr?Symbol.for("react.block"):60121,HP=Pr?Symbol.for("react.fundamental"):60117,WP=Pr?Symbol.for("react.responder"):60118,VP=Pr?Symbol.for("react.scope"):60119;function No(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case W0:switch(e=e.type,e){case U0:case cf:case of:case af:case nf:case df:return e;default:switch(e=e&&e.$$typeof,e){case sf:case uf:case ff:case hf:case lf:return e;default:return t}}case V0:return t}}}function uT(e){return No(e)===cf}$t.AsyncMode=U0;$t.ConcurrentMode=cf;$t.ContextConsumer=sf;$t.ContextProvider=lf;$t.Element=W0;$t.ForwardRef=uf;$t.Fragment=of;$t.Lazy=ff;$t.Memo=hf;$t.Portal=V0;$t.Profiler=af;$t.StrictMode=nf;$t.Suspense=df;$t.isAsyncMode=function(e){return uT(e)||No(e)===U0};$t.isConcurrentMode=uT;$t.isContextConsumer=function(e){return No(e)===sf};$t.isContextProvider=function(e){return No(e)===lf};$t.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===W0};$t.isForwardRef=function(e){return No(e)===uf};$t.isFragment=function(e){return No(e)===of};$t.isLazy=function(e){return No(e)===ff};$t.isMemo=function(e){return No(e)===hf};$t.isPortal=function(e){return No(e)===V0};$t.isProfiler=function(e){return No(e)===af};$t.isStrictMode=function(e){return No(e)===nf};$t.isSuspense=function(e){return No(e)===df};$t.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===of||e===cf||e===af||e===nf||e===df||e===zP||typeof e=="object"&&e!==null&&(e.$$typeof===ff||e.$$typeof===hf||e.$$typeof===lf||e.$$typeof===sf||e.$$typeof===uf||e.$$typeof===HP||e.$$typeof===WP||e.$$typeof===VP||e.$$typeof===FP)};$t.typeOf=No;cT.exports=$t;var UP=cT.exports;Object.defineProperty(sT,"__esModule",{value:!0});var qp=B,KP=UP;function dT(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=[]),qp.Children.toArray(e).reduce(function(o,n,i){return KP.isFragment(n)?o.push.apply(o,dT(n.props.children,t+1,r.concat(n.key||i))):qp.isValidElement(n)?o.push(qp.cloneElement(n,{key:r.concat(String(n.key)).join(".")})):(typeof n=="string"||typeof n=="number")&&o.push(n),o},[])}var pf=sT.default=dT;function li(e){var{direction:t="vertical",size:r,children:o,alignItems:n,__internalRootRef:i}=e,a=de(e,["direction","size","children","alignItems","__internalRootRef"]);const c=Ie(a),l=pf(o);return x.createElement("div",Object.assign({},c,{className:W(c.className,ks.root,ks[t],ks[`${t}-${r}`],n&&ks[`align-${n}`]),ref:i}),l.map(d=>{const s=typeof d=="object"?d.key:void 0;return x.createElement("div",{key:s,className:ks.child},d)}))}const Ct={arrow:"awsui_arrow_xjuzf_ekpfy_197","arrow-outer":"awsui_arrow-outer_xjuzf_ekpfy_201","arrow-inner":"awsui_arrow-inner_xjuzf_ekpfy_201",refresh:"awsui_refresh_xjuzf_ekpfy_231","arrow-position-right-top":"awsui_arrow-position-right-top_xjuzf_ekpfy_241","arrow-position-right-bottom":"awsui_arrow-position-right-bottom_xjuzf_ekpfy_241","arrow-position-left-top":"awsui_arrow-position-left-top_xjuzf_ekpfy_244","arrow-position-left-bottom":"awsui_arrow-position-left-bottom_xjuzf_ekpfy_244","arrow-position-top-center":"awsui_arrow-position-top-center_xjuzf_ekpfy_247","arrow-position-top-right":"awsui_arrow-position-top-right_xjuzf_ekpfy_247","arrow-position-top-left":"awsui_arrow-position-top-left_xjuzf_ekpfy_247","arrow-position-top-responsive":"awsui_arrow-position-top-responsive_xjuzf_ekpfy_247","arrow-position-bottom-center":"awsui_arrow-position-bottom-center_xjuzf_ekpfy_250","arrow-position-bottom-right":"awsui_arrow-position-bottom-right_xjuzf_ekpfy_250","arrow-position-bottom-left":"awsui_arrow-position-bottom-left_xjuzf_ekpfy_250","arrow-position-bottom-responsive":"awsui_arrow-position-bottom-responsive_xjuzf_ekpfy_250",body:"awsui_body_xjuzf_ekpfy_352","body-overflow-visible":"awsui_body-overflow-visible_xjuzf_ekpfy_391","has-dismiss":"awsui_has-dismiss_xjuzf_ekpfy_395",dismiss:"awsui_dismiss_xjuzf_ekpfy_400","dismiss-control":"awsui_dismiss-control_xjuzf_ekpfy_408","header-row":"awsui_header-row_xjuzf_ekpfy_412",header:"awsui_header_xjuzf_ekpfy_412",content:"awsui_content_xjuzf_ekpfy_438","content-overflow-visible":"awsui_content-overflow-visible_xjuzf_ekpfy_446",container:"awsui_container_xjuzf_ekpfy_548","container-body":"awsui_container-body_xjuzf_ekpfy_556","container-body-variant-annotation":"awsui_container-body-variant-annotation_xjuzf_ekpfy_599","container-body-size-small":"awsui_container-body-size-small_xjuzf_ekpfy_604","fixed-width":"awsui_fixed-width_xjuzf_ekpfy_607","container-body-size-medium":"awsui_container-body-size-medium_xjuzf_ekpfy_611","container-body-size-large":"awsui_container-body-size-large_xjuzf_ekpfy_618","container-arrow":"awsui_container-arrow_xjuzf_ekpfy_630","container-arrow-position-right-top":"awsui_container-arrow-position-right-top_xjuzf_ekpfy_634","container-arrow-position-right-bottom":"awsui_container-arrow-position-right-bottom_xjuzf_ekpfy_634","container-arrow-position-left-top":"awsui_container-arrow-position-left-top_xjuzf_ekpfy_646","container-arrow-position-left-bottom":"awsui_container-arrow-position-left-bottom_xjuzf_ekpfy_646","container-arrow-position-top-center":"awsui_container-arrow-position-top-center_xjuzf_ekpfy_658","container-arrow-position-top-right":"awsui_container-arrow-position-top-right_xjuzf_ekpfy_658","container-arrow-position-top-left":"awsui_container-arrow-position-top-left_xjuzf_ekpfy_658","container-arrow-position-top-responsive":"awsui_container-arrow-position-top-responsive_xjuzf_ekpfy_658","container-arrow-position-bottom-center":"awsui_container-arrow-position-bottom-center_xjuzf_ekpfy_674","container-arrow-position-bottom-right":"awsui_container-arrow-position-bottom-right_xjuzf_ekpfy_678","container-arrow-position-bottom-left":"awsui_container-arrow-position-bottom-left_xjuzf_ekpfy_682","awsui-motion-fade-in":"awsui_awsui-motion-fade-in_xjuzf_ekpfy_1",root:"awsui_root_xjuzf_ekpfy_828",trigger:"awsui_trigger_xjuzf_ekpfy_864","trigger-type-text":"awsui_trigger-type-text_xjuzf_ekpfy_871","trigger-inner-text":"awsui_trigger-inner-text_xjuzf_ekpfy_906","popover-content":"awsui_popover-content_xjuzf_ekpfy_910"},pi=12,qP={top:["top-center","top-right","top-left","bottom-center","bottom-right","bottom-left","right-top","right-bottom","left-top","left-bottom"],bottom:["bottom-center","bottom-right","bottom-left","top-center","top-right","top-left","right-top","right-bottom","left-top","left-bottom"],left:["left-top","left-bottom","right-top","right-bottom","bottom-center","top-center","bottom-left","top-left","bottom-right","top-right"],right:["right-top","right-bottom","left-top","left-bottom","bottom-center","top-center","bottom-right","top-right","bottom-left","top-left"]},Fw={"top-center":({body:e,trigger:t,arrow:r})=>({top:t.top-e.height-r.height,left:t.left+t.width/2-e.width/2,width:e.width,height:e.height}),"top-right":({body:e,trigger:t,arrow:r})=>({top:t.top-e.height-r.height,left:t.left+t.width/2-pi-r.width/2,width:e.width,height:e.height}),"top-left":({body:e,trigger:t,arrow:r})=>({top:t.top-e.height-r.height,left:t.left+t.width/2+pi+r.width/2-e.width,width:e.width,height:e.height}),"bottom-center":({body:e,trigger:t,arrow:r})=>({top:t.top+t.height+r.height,left:t.left+t.width/2-e.width/2,width:e.width,height:e.height}),"bottom-right":({body:e,trigger:t,arrow:r})=>({top:t.top+t.height+r.height,left:t.left+t.width/2-pi-r.width/2,width:e.width,height:e.height}),"bottom-left":({body:e,trigger:t,arrow:r})=>({top:t.top+t.height+r.height,left:t.left+t.width/2+pi+r.width/2-e.width,width:e.width,height:e.height}),"right-top":({body:e,trigger:t,arrow:r})=>({top:t.top+t.height/2-pi-r.height,left:t.left+t.width+r.height,width:e.width,height:e.height}),"right-bottom":({body:e,trigger:t,arrow:r})=>({top:t.top+t.height/2-e.height+pi+r.height,left:t.left+t.width+r.height,width:e.width,height:e.height}),"left-top":({body:e,trigger:t,arrow:r})=>({top:t.top+t.height/2-pi-r.height,left:t.left-e.width-r.height,width:e.width,height:e.height}),"left-bottom":({body:e,trigger:t,arrow:r})=>({top:t.top+t.height/2-e.height+pi+r.height,left:t.left-e.width-r.height,width:e.width,height:e.height})};function YP(e,t){let{left:r,width:o,top:n,height:i}=e;return r<t.left?(o=r+o-t.left,r=t.left):r+o>t.left+t.width&&(o=t.left+t.width-r),n<t.top?(i=n+i-t.top,n=t.top):n+i>t.top+t.height&&(i=t.top+t.height-n),{left:r,width:o,top:n,height:i}}function XP(e,t){return e.height>=t.height?e:t}function Hw(e){let t=null;for(const r of e){if(!t){t=r;continue}const o=Math.max(t.left,r.left),n=Math.max(t.top,r.top),i=Math.min(t.left+t.width,r.left+r.width),a=Math.min(t.top+t.height,r.top+r.height);if(i<o||a<n)return null;t={left:o,top:n,width:i-o,height:a-n}}return t}function QP({preferredPosition:e,fixedInternalPosition:t,trigger:r,arrow:o,body:n,container:i,viewport:a,renderWithPortal:c,allowVerticalOverflow:l}){let d=null;const s=t?[t]:qP[e];for(const m of s){const y=Fw[m]({body:n,trigger:r,arrow:o}),C=Hw(c?[y,a]:[y,a,i]);if(C&&C.width===n.width&&C.height===n.height)return{internalPosition:m,rect:y};d=ZP({rect:y,internalPosition:m,visibleArea:C},d)}const u=(d==null?void 0:d.internalPosition)||"right-top",h=Fw[u]({body:n,trigger:r,arrow:o}),f=XP(a,i),p=l&&t$(u)?{top:f.top,height:f.height,left:a.left,width:a.width}:a,g=YP(h,p),v=g.height<h.height;return{internalPosition:u,rect:g,scrollable:v}}function ZP(e,t){return t!=null&&t.visibleArea?e.visibleArea?e.visibleArea.width===t.visibleArea.width?e.visibleArea.height>t.visibleArea.height?e:t:e.visibleArea.width>t.visibleArea.width?e:t:t:e}function JP(e){return{offsetHeight:e.offsetHeight,offsetWidth:e.offsetWidth}}function e$(e){const t=getComputedStyle(e);return{width:parseFloat(t.width),height:parseFloat(t.height)}}function t$(e){return["top","bottom"].includes(e.split("-")[0])}const es=e=>{const t=[];let r=e;for(;(r=r.parentElement)&&r!==document.body;)getComputedStyle(r).overflow!=="visible"&&t.push(r);return t},hT=({element:e,excludeClosestParent:t=!1,expandToViewport:r=!1,canExpandOutsideViewport:o=!1})=>{const n=r?[]:es(e).map(i=>{const{height:a,width:c,top:l,left:d}=i.getBoundingClientRect();return{height:o?i.scrollHeight:a,width:c,top:l,left:d}});if(o&&!r){const i=document.documentElement.getBoundingClientRect();n.push({width:Math.max(i.width,document.documentElement.clientWidth),height:Math.max(i.height,document.documentElement.clientHeight),top:i.top,left:i.left})}else n.push({height:window.innerHeight,width:window.innerWidth,top:0,left:0});return t&&!r&&n.shift(),n};function Uc(e,t={block:"nearest",inline:"nearest"}){var r;(r=e==null?void 0:e.scrollIntoView)===null||r===void 0||r.call(e,t)}function fT({top:e,height:t}){return e<0?e:e+t>window.innerHeight?t>window.innerHeight?e:e+t-window.innerHeight:0}function r$(e,t){const r=fT(e);r&&(t||window).scrollBy(0,r)}function o$(e){return tn(e,t=>t.scrollHeight>t.clientHeight&&["scroll","auto"].includes(getComputedStyle(t).overflowY))||void 0}function n$({popoverRef:e,bodyRef:t,arrowRef:r,trackRef:o,contentRef:n,allowScrollToFit:i,allowVerticalOverflow:a,preferredPosition:c,renderWithPortal:l,keepPosition:d}){const s=B.useRef(null),[u,h]=B.useState({}),[f,p]=B.useState(null),g=B.useRef(()=>{});return{updatePositionHandler:B.useCallback((m=!1)=>{var y;if(!o.current||!e.current||!t.current||!n.current||!r.current)return;const C=e.current,_=t.current,k=r.current,b=C.ownerDocument,S=o.current,{offsetWidth:T,offsetHeight:L}=JP(C);if(T===0||L===0||!lh(b.body,S))return;const I=C.style.top,A=C.style.left;C.style.top="0",C.style.left="0",_.style.maxHeight="",_.style.overflowX="",_.style.overflowY="";const P=a$(b.defaultView),D=S.getBoundingClientRect(),E=e$(k),R=KS(C),$=R?R.getBoundingClientRect():P,N=i$(_),M=n.current.getBoundingClientRect(),O={width:M.width+2*N,height:M.height+2*N},j=d&&m&&!!s.current,z=(y=j&&s.current)!==null&&y!==void 0?y:void 0,{scrollable:F,internalPosition:K,rect:U}=QP({preferredPosition:c,fixedInternalPosition:z,trigger:D,arrow:E,body:O,container:R?$:l$(b),viewport:P,renderWithPortal:l,allowVerticalOverflow:a}),Y=Wu(U,$),V=Wu(Y,Wu(D,$));C.style.top=I,C.style.left=A,F&&(_.style.maxHeight=U.height+"px",_.style.overflowX="hidden",_.style.overflowY="auto"),s.current=K,p(K);const q=i&&!j,ee=q?Y.top+fT(U):Y.top;if(h({top:ee,left:Y.left}),q){const X=o$(C);r$(U,X)}g.current=()=>{const X=Wu(S.getBoundingClientRect(),R?R.getBoundingClientRect():P);h({top:X.top+V.top,left:X.left+V.left})}},[o,e,t,n,r,d,i,c,l,a]),popoverStyle:u,internalPosition:f,positionHandlerRef:g}}function i$(e){return parseInt(getComputedStyle(e).borderWidth)||0}function Wu(e,t){return{top:e.top-t.top,left:e.left-t.left}}function a$(e){return{top:0,left:0,width:e.innerWidth,height:e.innerHeight}}function l$(e){const{top:t,left:r}=e.documentElement.getBoundingClientRect();return{top:t,left:r,width:e.documentElement.scrollWidth,height:e.documentElement.scrollHeight}}function gf({position:e,trackRef:t,trackKey:r,arrow:o,children:n,zIndex:i,renderWithPortal:a,size:c,fixedWidth:l,variant:d,keepPosition:s,allowScrollToFit:u,allowVerticalOverflow:h}){const f=B.useRef(null),p=B.useRef(null),g=B.useRef(null),v=B.useRef(null),{updatePositionHandler:m,popoverStyle:y,internalPosition:C,positionHandlerRef:_}=n$({popoverRef:g,bodyRef:f,arrowRef:v,trackRef:t,contentRef:p,allowScrollToFit:u,allowVerticalOverflow:h,preferredPosition:e,renderWithPortal:a,keepPosition:s});return B.useLayoutEffect(()=>{m()},[m,r]),yn(p,()=>{m(!0)}),B.useLayoutEffect(()=>{const k=T=>{s||lh(t.current,T.target)||requestAnimationFrame(()=>{m()})},b=()=>requestAnimationFrame(()=>m()),S=()=>requestAnimationFrame(()=>_.current());return window.addEventListener("click",k),window.addEventListener("resize",b),window.addEventListener("scroll",S,!0),()=>{window.removeEventListener("click",k),window.removeEventListener("resize",b),window.removeEventListener("scroll",S,!0)}},[s,_,t,m]),x.createElement("div",{ref:g,style:Object.assign(Object.assign({},y),{zIndex:i}),className:W(Ct.container,Ct.refresh)},x.createElement("div",{ref:v,className:W(Ct["container-arrow"],Ct[`container-arrow-position-${C}`]),"aria-hidden":!0},o(C)),x.createElement("div",{ref:f,className:W(Ct["container-body"],Ct[`container-body-size-${c}`],{[Ct["fixed-width"]]:l,[Ct[`container-body-variant-${d}`]]:d})},x.createElement("div",{ref:p},n)))}function qs({focusNextCallback:e,disabled:t=!1}){return x.createElement("div",{tabIndex:t?-1:0,onFocus:e})}const s$=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(",");function pT(e){return Array.prototype.slice.call(e.querySelectorAll(s$))}function gT(e){return pT(e).filter(t=>t.tabIndex!==-1)}function Ma(e){var t;return(t=gT(e)[0])!==null&&t!==void 0?t:null}function mT(e){var t;const r=gT(e);return(t=r[r.length-1])!==null&&t!==void 0?t:null}function c$({className:e,disabled:t,autoFocus:r,restoreFocus:o,children:n},i){const a=B.useRef(null),c=B.useRef(null),l=()=>{var p;c.current&&((p=Ma(c.current))===null||p===void 0||p.focus())},d=()=>{var p;c.current&&((p=mT(c.current))===null||p===void 0||p.focus())};B.useEffect(()=>{r&&!t&&(a.current=document.activeElement,l())},[r,t]);const[s,u]=B.useState(!!t);B.useEffect(()=>{var p;s!==!!t&&(u(!!t),o&&t&&((p=a.current)===null||p===void 0||p.focus(),a.current=null))},[s,t,o]);const h=B.useCallback(p=>{var g;p===null&&o&&((g=a.current)===null||g===void 0||g.focus(),a.current=null)},[o]);B.useImperativeHandle(i,()=>({focusFirst:l}));const f=Lt(c,h);return x.createElement(x.Fragment,null,x.createElement(qs,{disabled:t,focusNextCallback:d}),x.createElement("div",{className:e,ref:f},n),x.createElement(qs,{disabled:t,focusNextCallback:l}))}const ts=x.forwardRef(c$);function mf({dismissButton:e,dismissAriaLabel:t,header:r,children:o,onDismiss:n,variant:i,overflowVisible:a,className:c,ariaLabelledby:l}){const d=it("popover"),s=De("awsui-popover-"),u=B.useRef(!1),h=B.useRef(null),f=B.useCallback(y=>{y.keyCode===ke.escape&&(y.stopPropagation(),n())},[n]);B.useEffect(()=>{var y;e&&!u.current&&((y=h.current)===null||y===void 0||y.focus({preventScroll:!0})),u.current=e},[e]);const p=(e??null)&&x.createElement("div",{className:Ct.dismiss},x.createElement(pt,{variant:"icon",formAction:"none",iconName:"close",className:Ct["dismiss-control"],ariaLabel:d("dismissAriaLabel",t),onClick:()=>n(),ref:h})),g=e,v=e&&i!=="annotation",m=g?{role:"dialog","aria-modal":v?!0:void 0,"aria-labelledby":l??(r?s:void 0)}:{};return x.createElement("div",Object.assign({className:W(Ct.body,c,{[Ct["body-overflow-visible"]]:a==="both"}),onKeyDown:f},m),x.createElement(ts,{disabled:!v,autoFocus:!1},r&&x.createElement("div",{className:W(Ct["header-row"],e&&Ct["has-dismiss"])},p,x.createElement("div",{className:Ct.header,id:s},x.createElement("h2",null,r))),x.createElement("div",{className:!r&&e?Ct["has-dismiss"]:void 0},!r&&p,x.createElement("div",{className:W(Ct.content,{[Ct["content-overflow-visible"]]:!!a})},o))))}function Ro(...e){return e.filter(Boolean).join(" ")||void 0}const u$=Symbol.for("awsui-global-flags"),d$=()=>window.top;function h$(){return typeof window<"u"?window:globalThis}function Ww(e,t){var r;const o=e;return(r=o==null?void 0:o[u$])===null||r===void 0?void 0:r[t]}const vT=e=>{try{const t=Ww(h$(),e);return t!==void 0?t:Ww(d$(),e)}catch{return}};function go(e,t,r,{componentName:o,changeHandler:n,controlledProp:i}){const a=B.useState(e!==void 0)[0],[c,l]=B.useState(r),[d,s]=B.useState(!1),u=d?c:r,h=B.useCallback(f=>{l(f),s(!0)},[l,s]);return a?[e,f$]:[u,h]}function f$(){}function Vw(){return typeof window>"u"?!1:window.matchMedia?window.matchMedia(`(max-width: ${xP}px)`).matches:QS(window.innerWidth,["xs"])!=="xs"}const rn=X5({initialState:()=>Vw(),factory:e=>{const t=()=>e(Vw());return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}}}),Uw={navigationOpen:!0,minContentWidth:280,maxContentWidth:void 0},Kw={default:Object.assign({},Uw),dashboard:Object.assign({},Uw),cards:{navigationOpen:!0,minContentWidth:280,maxContentWidth:void 0},form:{navigationOpen:!1,minContentWidth:280,maxContentWidth:800},table:{navigationOpen:!0,minContentWidth:280,maxContentWidth:void 0},wizard:{navigationOpen:!1,minContentWidth:280,maxContentWidth:1080}};function yT(e,t,r){var o,n,i,a;const c=r?Object.assign(Object.assign({},Kw[e]),{maxContentWidth:void 0}):Kw[e];return{maxContentWidth:(o=t.maxContentWidth)!==null&&o!==void 0?o:c.maxContentWidth,minContentWidth:(n=t.minContentWidth)!==null&&n!==void 0?n:c.minContentWidth,navigationOpen:(i=t.navigationOpen)!==null&&i!==void 0?i:c.navigationOpen,toolsOpen:(a=t.toolsOpen)!==null&&a!==void 0?a:c.toolsOpen}}const Vu={notifications:"awsui_notifications_1hmm4_1d89k_9","notifications-sticky":"awsui_notifications-sticky_1hmm4_1d89k_10","no-content-paddings":"awsui_no-content-paddings_1hmm4_1d89k_25"},p$=x.forwardRef((e,t)=>{var r,o,{sticky:n,disableContentPaddings:i}=e,a=de(e,["sticky","disableContentPaddings"]);return n?x.createElement("div",{ref:t,className:Vu["notifications-sticky"],style:{top:a.topOffset}},x.createElement("div",{role:"region",className:W(a.testUtilsClassName,i&&Vu["no-content-paddings"]),"aria-label":(r=a.labels)===null||r===void 0?void 0:r.notifications},a.children)):x.createElement("div",{role:"region",ref:t,className:W(a.testUtilsClassName,Vu.notifications,i&&Vu["no-content-paddings"]),"aria-label":(o=a.labels)===null||o===void 0?void 0:o.notifications},a.children)}),bT={"toggle-button":"awsui_toggle-button_16w0h_1lkgf_99","close-button":"awsui_close-button_16w0h_1lkgf_134"},Tc={navigation:{TagName:"nav",iconName:"menu",getLabels:(e={})=>({mainLabel:e.navigation,openLabel:e.navigationToggle,closeLabel:e.navigationClose})},tools:{TagName:"aside",iconName:"status-info",getLabels:(e={})=>({mainLabel:e.tools,openLabel:e.toolsToggle,closeLabel:e.toolsClose})}},vf=x.forwardRef(({className:e,ariaLabel:t,ariaExpanded:r,ariaControls:o,iconName:n,iconSvg:i,disabled:a,testId:c,onClick:l,badge:d},s)=>x.createElement("button",{ref:s,className:W(e,bT["toggle-button"]),"aria-label":t,type:"button",onClick:l,disabled:a,"aria-expanded":r,"aria-haspopup":r?void 0:!0,"aria-controls":o,"data-testid":c},x.createElement(ze,{svg:i,name:n,badge:d}))),g$=x.forwardRef(({className:e,ariaLabel:t,onClick:r},o)=>x.createElement("span",{className:bT["close-button"]},x.createElement(pt,{ref:o,className:e,ariaLabel:t,variant:"icon",formAction:"none",iconName:"close",onClick:r}))),dr={"button-dropdown":"awsui_button-dropdown_sne0l_17rq9_99","items-list-container":"awsui_items-list-container_sne0l_17rq9_103","awsui-motion-fade-in-0":"awsui_awsui-motion-fade-in-0_sne0l_17rq9_1","rotate-up":"awsui_rotate-up_sne0l_17rq9_122","rotate-down":"awsui_rotate-down_sne0l_17rq9_137",header:"awsui_header_sne0l_17rq9_152",title:"awsui_title_sne0l_17rq9_163",description:"awsui_description_sne0l_17rq9_164","split-trigger-wrapper":"awsui_split-trigger-wrapper_sne0l_17rq9_168","trigger-item":"awsui_trigger-item_sne0l_17rq9_171","trigger-button":"awsui_trigger-button_sne0l_17rq9_174","visual-refresh":"awsui_visual-refresh_sne0l_17rq9_185","split-trigger":"awsui_split-trigger_sne0l_17rq9_168","dropdown-trigger":"awsui_dropdown-trigger_sne0l_17rq9_193","test-utils-button-trigger":"awsui_test-utils-button-trigger_sne0l_17rq9_197"},zt={"dropdown-content-wrapper":"awsui_dropdown-content-wrapper_qwoo0_1ea5w_99","awsui-motion-fade-in-dropdown":"awsui_awsui-motion-fade-in-dropdown_qwoo0_1ea5w_1",refresh:"awsui_refresh_qwoo0_1ea5w_120","awsui-motion-fade-in-0":"awsui_awsui-motion-fade-in-0_qwoo0_1ea5w_1",root:"awsui_root_qwoo0_1ea5w_149",interior:"awsui_interior_qwoo0_1ea5w_185",dropdown:"awsui_dropdown_qwoo0_1ea5w_99","use-portal":"awsui_use-portal_qwoo0_1ea5w_196","is-empty":"awsui_is-empty_qwoo0_1ea5w_248","dropdown-drop-up":"awsui_dropdown-drop-up_qwoo0_1ea5w_255","with-limited-width":"awsui_with-limited-width_qwoo0_1ea5w_259","dropdown-drop-left":"awsui_dropdown-drop-left_qwoo0_1ea5w_262","dropdown-drop-right":"awsui_dropdown-drop-right_qwoo0_1ea5w_268","occupy-entire-width":"awsui_occupy-entire-width_qwoo0_1ea5w_274","stretch-beyond-trigger-width":"awsui_stretch-beyond-trigger-width_qwoo0_1ea5w_277","hide-block-border":"awsui_hide-block-border_qwoo0_1ea5w_281",open:"awsui_open_qwoo0_1ea5w_287",nowrap:"awsui_nowrap_qwoo0_1ea5w_296","dropdown-content":"awsui_dropdown-content_qwoo0_1ea5w_99","stretch-trigger-height":"awsui_stretch-trigger-height_qwoo0_1ea5w_307"},ch=50,wT=19,xT=20,m$=e=>es(e).map(r=>{const{height:o,width:n,top:i,left:a}=r.getBoundingClientRect();return{height:o,width:n,top:i,left:a}}).shift(),_T=CP("xxs"),kT=({trigger:e,overflowParents:t,stretchWidth:r=!1,stretchHeight:o=!1,isMobile:n})=>{const i=o?0:n?wT:ch,a=r?0:n?xT:ch,{bottom:c,left:l,right:d}=e.getBoundingClientRect();return t.reduce(({above:s,below:u,left:h,right:f},p)=>{const g=c-p.top,v=g-e.offsetHeight-i,m=p.height-g-i,y=d-p.left-a,C=p.left+p.width-l-a;return{above:Math.min(s,v),below:Math.min(u,m),left:Math.min(h,y),right:Math.min(f,C)}},{above:Number.MAX_VALUE,below:Number.MAX_VALUE,left:Number.MAX_VALUE,right:Number.MAX_VALUE})},v$=({trigger:e,overflowParents:t,isMobile:r})=>{const o=r?wT:ch,n=r?xT:ch,{bottom:i,top:a,left:c,right:l}=e.getBoundingClientRect();return t.reduce(({above:d,below:s,left:u,right:h},f)=>{const p=i-f.top-o,g=f.height-a+f.top-o,v=c-f.left-n,m=f.left+f.width-l-n;return{above:Math.min(d,p),below:Math.min(s,g),left:Math.min(u,v),right:Math.min(h,m)}},{above:Number.MAX_VALUE,below:Number.MAX_VALUE,left:Number.MAX_VALUE,right:Number.MAX_VALUE})},CT=({triggerElement:e,dropdownElement:t,desiredMinWidth:r,stretchBeyondTriggerWidth:o=!1})=>{const n=e.getBoundingClientRect().width,i=r?Math.min(n,r):n,a=o?Math.max(_T,n):Number.MAX_VALUE,c=t.getBoundingClientRect().width;return{idealWidth:Math.min(Math.max(c,i),a),minWidth:i,triggerWidth:n}},y$=({triggerElement:e,dropdownElement:t,desiredMinWidth:r,expandToViewport:o,stretchWidth:n,stretchHeight:i,isMobile:a})=>{const c=hT({element:t,excludeClosestParent:!1,expandToViewport:o,canExpandOutsideViewport:i}),{idealWidth:l}=CT({triggerElement:e,dropdownElement:t,desiredMinWidth:r,stretchBeyondTriggerWidth:!0}),d=kT({trigger:e,overflowParents:c,stretchWidth:n,stretchHeight:i,isMobile:a});return l<=d.left||l<=d.right},b$=({triggerElement:e,dropdownElement:t,overflowParents:r,minWidth:o,preferCenter:n=!1,stretchWidth:i=!1,stretchHeight:a=!1,isMobile:c=!1,stretchBeyondTriggerWidth:l=!1})=>{const d=kT({trigger:e,overflowParents:r,stretchWidth:i,stretchHeight:a,isMobile:c}),{idealWidth:s,minWidth:u,triggerWidth:h}=CT({triggerElement:e,dropdownElement:t,desiredMinWidth:o,stretchBeyondTriggerWidth:l});let f,p=null,g=s;if(s<=d.right?f=!1:s<=d.left?f=!0:(f=d.left>d.right,g=Math.max(d.left,d.right,u)),n){const C=(s-h)/2,_=d.left-h,k=d.right-h;_>=C&&k>=C&&(p=-C)}const v=d.below<t.offsetHeight&&d.above>d.below,m=v?d.above:d.below,y=a?m:Math.floor(m/31)*31+16;return{dropUp:v,dropLeft:f,left:p===null?"auto":`${p}px`,height:`${y}px`,width:`${g}px`}},w$=(e,t,r,o)=>{const n=v$({trigger:e,overflowParents:r,isMobile:o}),{bottom:i,top:a,width:c}=e.getBoundingClientRect(),{top:l,height:d}=m$(e);let s,u=t.getBoundingClientRect().width;const h=a-l;u<=n.right?s=!1:u<=n.left?s=!0:(s=n.left>n.right,u=Math.max(n.left,n.right));const f=s?0-u:c,p=n.below<t.offsetHeight&&n.above>n.below,g=p?l+d-i:0,v=p?n.above:n.below,m=Math.floor(v/31)*31+16;return{dropUp:p,dropLeft:s,height:`${m}px`,width:`${u}px`,top:`${h}px`,bottom:`${g}px`,left:`${f}px`}},x$=(e,t,r,o,n,i,a,c,l,d,s)=>{r.style.maxHeight="",e.style.width="",e.style.top="",e.style.bottom="",e.style.left="",e.classList.remove(zt["dropdown-drop-left"]),e.classList.remove(zt["dropdown-drop-right"]),e.classList.remove(zt["dropdown-drop-up"]);const u=hT({element:e,excludeClosestParent:o,expandToViewport:n,canExpandOutsideViewport:c}),h=o?w$(t,e,u,l):b$({triggerElement:t,dropdownElement:e,overflowParents:u,minWidth:d,preferCenter:i,stretchWidth:a,stretchHeight:c,isMobile:l,stretchBeyondTriggerWidth:s}),f=t.getBoundingClientRect();return[h,f]};function uh(){return uh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},uh.apply(this,arguments)}function K0(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Nm(e,t){return Nm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},Nm(e,t)}function q0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nm(e,t)}var Yp={exports:{}},Xp,qw;function _$(){if(qw)return Xp;qw=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xp=e,Xp}var Qp,Yw;function k$(){if(Yw)return Qp;Yw=1;var e=_$();function t(){}function r(){}return r.resetWarningCache=t,Qp=function(){function o(a,c,l,d,s,u){if(u!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}o.isRequired=o;function n(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:n,element:o,elementType:o,instanceOf:n,node:o,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},Qp}var Xw;function ST(){return Xw||(Xw=1,Yp.exports=k$()()),Yp.exports}ST();function C$(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function S$(e,t){e.classList?e.classList.add(t):C$(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Qw(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function T$(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Qw(e.className,t):e.setAttribute("class",Qw(e.className&&e.className.baseVal||"",t))}const Zw={disabled:!1},dh=x.createContext(null);var TT=function(t){return t.scrollTop},$s="unmounted",da="exited",ha="entering",tl="entered",jm="exiting",ui=function(e){q0(t,e);function t(o,n){var i;i=e.call(this,o,n)||this;var a=n,c=a&&!a.isMounting?o.enter:o.appear,l;return i.appearStatus=null,o.in?c?(l=da,i.appearStatus=ha):l=tl:o.unmountOnExit||o.mountOnEnter?l=$s:l=da,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(n,i){var a=n.in;return a&&i.status===$s?{status:da}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var i=null;if(n!==this.props){var a=this.state.status;this.props.in?a!==ha&&a!==tl&&(i=ha):(a===ha||a===tl)&&(i=jm)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,i,a,c;return i=a=c=n,n!=null&&typeof n!="number"&&(i=n.exit,a=n.enter,c=n.appear!==void 0?n.appear:a),{exit:i,enter:a,appear:c}},r.updateStatus=function(n,i){if(n===void 0&&(n=!1),i!==null)if(this.cancelNextCallback(),i===ha){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Mu.findDOMNode(this);a&&TT(a)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===da&&this.setState({status:$s})},r.performEnter=function(n){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:n,l=this.props.nodeRef?[c]:[Mu.findDOMNode(this),c],d=l[0],s=l[1],u=this.getTimeouts(),h=c?u.appear:u.enter;if(!n&&!a||Zw.disabled){this.safeSetState({status:tl},function(){i.props.onEntered(d)});return}this.props.onEnter(d,s),this.safeSetState({status:ha},function(){i.props.onEntering(d,s),i.onTransitionEnd(h,function(){i.safeSetState({status:tl},function(){i.props.onEntered(d,s)})})})},r.performExit=function(){var n=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:Mu.findDOMNode(this);if(!i||Zw.disabled){this.safeSetState({status:da},function(){n.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:jm},function(){n.props.onExiting(c),n.onTransitionEnd(a.exit,function(){n.safeSetState({status:da},function(){n.props.onExited(c)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,i){i=this.setNextCallback(i),this.setState(n,i)},r.setNextCallback=function(n){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,n(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(n,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Mu.findDOMNode(this),c=n==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=l[0],s=l[1];this.props.addEndListener(d,s)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===$s)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=K0(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(dh.Provider,{value:null},typeof a=="function"?a(n,c):x.cloneElement(x.Children.only(a),c))},t}(x.Component);ui.contextType=dh;ui.propTypes={};function Ja(){}ui.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ja,onEntering:Ja,onEntered:Ja,onExit:Ja,onExiting:Ja,onExited:Ja};ui.UNMOUNTED=$s;ui.EXITED=da;ui.ENTERING=ha;ui.ENTERED=tl;ui.EXITING=jm;const ET=ui;var E$=function(t,r){return t&&r&&r.split(" ").forEach(function(o){return S$(t,o)})},Zp=function(t,r){return t&&r&&r.split(" ").forEach(function(o){return T$(t,o)})},Y0=function(e){q0(t,e);function t(){for(var o,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o=e.call.apply(e,[this].concat(i))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(c,l){var d=o.resolveArguments(c,l),s=d[0],u=d[1];o.removeClasses(s,"exit"),o.addClass(s,u?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(c,l)},o.onEntering=function(c,l){var d=o.resolveArguments(c,l),s=d[0],u=d[1],h=u?"appear":"enter";o.addClass(s,h,"active"),o.props.onEntering&&o.props.onEntering(c,l)},o.onEntered=function(c,l){var d=o.resolveArguments(c,l),s=d[0],u=d[1],h=u?"appear":"enter";o.removeClasses(s,h),o.addClass(s,h,"done"),o.props.onEntered&&o.props.onEntered(c,l)},o.onExit=function(c){var l=o.resolveArguments(c),d=l[0];o.removeClasses(d,"appear"),o.removeClasses(d,"enter"),o.addClass(d,"exit","base"),o.props.onExit&&o.props.onExit(c)},o.onExiting=function(c){var l=o.resolveArguments(c),d=l[0];o.addClass(d,"exit","active"),o.props.onExiting&&o.props.onExiting(c)},o.onExited=function(c){var l=o.resolveArguments(c),d=l[0];o.removeClasses(d,"exit"),o.addClass(d,"exit","done"),o.props.onExited&&o.props.onExited(c)},o.resolveArguments=function(c,l){return o.props.nodeRef?[o.props.nodeRef.current,c]:[c,l]},o.getClassNames=function(c){var l=o.props.classNames,d=typeof l=="string",s=d&&l?l+"-":"",u=d?""+s+c:l[c],h=d?u+"-active":l[c+"Active"],f=d?u+"-done":l[c+"Done"];return{baseClassName:u,activeClassName:h,doneClassName:f}},o}var r=t.prototype;return r.addClass=function(n,i,a){var c=this.getClassNames(i)[a+"ClassName"],l=this.getClassNames("enter"),d=l.doneClassName;i==="appear"&&a==="done"&&d&&(c+=" "+d),a==="active"&&n&&TT(n),c&&(this.appliedClasses[i][a]=c,E$(n,c))},r.removeClasses=function(n,i){var a=this.appliedClasses[i],c=a.base,l=a.active,d=a.done;this.appliedClasses[i]={},c&&Zp(n,c),l&&Zp(n,l),d&&Zp(n,d)},r.render=function(){var n=this.props;n.classNames;var i=K0(n,["classNames"]);return x.createElement(ET,uh({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(x.Component);Y0.defaultProps={classNames:""};Y0.propTypes={};const L$=Y0;function A$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X0(e,t){var r=function(i){return t&&B.isValidElement(i)?t(i):i},o=Object.create(null);return e&&B.Children.map(e,function(n){return n}).forEach(function(n){o[n.key]=r(n)}),o}function B$(e,t){e=e||{},t=t||{};function r(s){return s in t?t[s]:e[s]}var o=Object.create(null),n=[];for(var i in e)i in t?n.length&&(o[i]=n,n=[]):n.push(i);var a,c={};for(var l in t){if(o[l])for(a=0;a<o[l].length;a++){var d=o[l][a];c[o[l][a]]=r(d)}c[l]=r(l)}for(a=0;a<n.length;a++)c[n[a]]=r(n[a]);return c}function ba(e,t,r){return r[t]!=null?r[t]:e.props[t]}function D$(e,t){return X0(e.children,function(r){return B.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:ba(r,"appear",e),enter:ba(r,"enter",e),exit:ba(r,"exit",e)})})}function R$(e,t,r){var o=X0(e.children),n=B$(t,o);return Object.keys(n).forEach(function(i){var a=n[i];if(B.isValidElement(a)){var c=i in t,l=i in o,d=t[i],s=B.isValidElement(d)&&!d.props.in;l&&(!c||s)?n[i]=B.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:ba(a,"exit",e),enter:ba(a,"enter",e)}):!l&&c&&!s?n[i]=B.cloneElement(a,{in:!1}):l&&c&&B.isValidElement(d)&&(n[i]=B.cloneElement(a,{onExited:r.bind(null,a),in:d.props.in,exit:ba(a,"exit",e),enter:ba(a,"enter",e)}))}}),n}var I$=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},P$={component:"div",childFactory:function(t){return t}},Q0=function(e){q0(t,e);function t(o,n){var i;i=e.call(this,o,n)||this;var a=i.handleExited.bind(A$(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(n,i){var a=i.children,c=i.handleExited,l=i.firstRender;return{children:l?D$(n,c):R$(n,a,c),firstRender:!1}},r.handleExited=function(n,i){var a=X0(this.props.children);n.key in a||(n.props.onExited&&n.props.onExited(i),this.mounted&&this.setState(function(c){var l=uh({},c.children);return delete l[n.key],{children:l}}))},r.render=function(){var n=this.props,i=n.component,a=n.childFactory,c=K0(n,["component","childFactory"]),l=this.state.contextValue,d=I$(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?x.createElement(dh.Provider,{value:l},d):x.createElement(dh.Provider,{value:l},x.createElement(i,c,d))},t}(x.Component);Q0.propTypes={};Q0.defaultProps=P$;const LT=Q0;function Ha(e){var{in:t,children:r,exit:o=!0,onStatusChange:n=()=>{},disabled:i=!1,transitionChangeDelay:a}=e,c=de(e,["in","children","exit","onStatusChange","disabled","transitionChangeDelay"]);const l=B.useRef(null),[d,s]=B.useState(t?"entered":"exited"),u=P0(l)||i,h=B.useCallback(f=>{const p=l.current;if(p===null)return;const g=v=>{v.target===p&&(p.removeEventListener("transitionend",g),p.removeEventListener("animationend",g),f())};p.addEventListener("transitionend",g),p.addEventListener("animationend",g)},[]);return x.createElement(ET,Object.assign({addEndListener:h,timeout:u?0:void 0,in:t,nodeRef:l,exit:o,onEnter:f=>{f||(s("enter"),n("enter"))},onEntering:f=>{var p;f||((p=l.current)===null||p===void 0||p.offsetHeight,a!=null&&a.entering?setTimeout(()=>{s("entering"),n("entering")},a==null?void 0:a.entering):(s("entering"),n("entering")))},onEntered:f=>{f||(s("entered"),n("entered"))},onExit:()=>{s("exit"),n("exit")},onExiting:()=>{s("exiting"),n("exiting")},onExited:()=>{s("exited"),n("exited")}},c),()=>r(d,l))}function yf(e){const t=tf(e),r=PS(e),o=wP(e),n=kn();return W({"awsui-polaris-dark-mode awsui-dark-mode":t==="dark","awsui-polaris-compact-mode awsui-compact-mode":r==="compact","awsui-visual-refresh":n,[`awsui-context-${o}`]:o})}const AT=x.createContext({position:"bottom-right"});function $$({children:e,position:t="bottom-right"}){return x.createElement(AT.Provider,{value:{position:t}},e)}function O$(){return B.useContext(AT)}const sr={breadcrumbsGap:"--awsui-breadcrumbs-gap-iof9y8",contentGapLeft:"--awsui-content-gap-left-iof9y8",contentGapRight:"--awsui-content-gap-right-iof9y8",contentHeight:"--awsui-content-height-iof9y8",containerFirstGap:"--awsui-container-first-gap-iof9y8",containerFirstOverlapExtension:"--awsui-container-first-overlap-extension-iof9y8",defaultMaxContentWidth:"--awsui-default-max-content-width-iof9y8",defaultMinContentWidth:"--awsui-default-min-content-width-iof9y8",drawerSize:"--awsui-drawer-size-iof9y8",footerHeight:"--awsui-footer-height-iof9y8",headerGap:"--awsui-header-gap-iof9y8",headerHeight:"--awsui-header-height-iof9y8",layoutWidth:"--awsui-layout-width-iof9y8",mainGap:"--awsui-main-gap-iof9y8",mainOffsetLeft:"--awsui-main-offset-left-iof9y8",mainTemplateRows:"--awsui-main-template-rows-iof9y8",maxContentWidth:"--awsui-max-content-width-iof9y8",minContentWidth:"--awsui-min-content-width-iof9y8",mobileBarHeight:"--awsui-mobile-bar-height-iof9y8",notificationsGap:"--awsui-notifications-gap-iof9y8",notificationsHeight:"--awsui-notifications-height-iof9y8",offsetTop:"--awsui-offset-top-iof9y8",offsetTopWithNotifications:"--awsui-offset-top-with-notifications-iof9y8",overlapHeight:"--awsui-overlap-height-iof9y8",navigationWidth:"--awsui-navigation-width-iof9y8",splitPanelReportedHeaderSize:"--awsui-split-panel-reported-header-size-iof9y8",splitPanelReportedSize:"--awsui-split-panel-reported-size-iof9y8",splitPanelHeight:"--awsui-split-panel-height-iof9y8",splitPanelMinWidth:"--awsui-split-panel-min-width-iof9y8",splitPanelMaxWidth:"--awsui-split-panel-max-width-iof9y8",toolsMaxWidth:"--awsui-tools-max-width-iof9y8",toolsWidth:"--awsui-tools-width-iof9y8",toolsAnimationStartingOpacity:"--awsui-tools-animation-starting-opacity-iof9y8",contentScrollMargin:"--awsui-content-scroll-margin-iof9y8",flashbarStackDepth:"--awsui-flashbar-stack-depth-iof9y8",flashbarStackIndex:"--awsui-flashbar-stack-index-iof9y8",flashbarStickyBottomMargin:"--awsui-flashbar-sticky-bottom-margin-iof9y8",stackedNotificationsBottomMargin:"--awsui-stacked-notifications-bottom-margin-iof9y8",stackedNotificationsDefaultBottomMargin:"--awsui-stacked-notifications-default-bottom-margin-iof9y8",dropdownDefaultMaxWidth:"--awsui-dropdown-default-max-width-iof9y8",spinnerRotatorFrom:"--awsui-spinner-rotator-from-iof9y8",spinnerRotatorTo:"--awsui-spinner-rotator-to-iof9y8",spinnerLineLeftFrom:"--awsui-spinner-line-left-from-iof9y8",spinnerLineLeftTo:"--awsui-spinner-line-left-to-iof9y8",spinnerLineRightFrom:"--awsui-spinner-line-right-from-iof9y8",spinnerLineRightTo:"--awsui-spinner-line-right-to-iof9y8"},M$=({children:e,renderWithPortal:t=!1,id:r,referrerId:o,open:n})=>t?n?Uo.createPortal(x.createElement("div",{id:r,"data-awsui-referrer-id":o},e),document.body):null:x.createElement(x.Fragment,null,e),N$=({state:e,transitionRef:t,dropdownClasses:r,stretchWidth:o,interior:n,isRefresh:i,dropdownRef:a,verticalContainerRef:c,expandToViewport:l,stretchBeyondTriggerWidth:d,header:s,children:u,footer:h,position:f,open:p,onMouseDown:g,id:v,role:m,ariaLabelledby:y,ariaDescribedby:C})=>{const _=Lt(a,t);return x.createElement("div",{className:W(zt.dropdown,r,{[zt.open]:p,[zt["with-limited-width"]]:!o,[zt["hide-block-border"]]:o,[zt.interior]:n,[zt.refresh]:i,[zt["use-portal"]]:l&&!n,[zt["stretch-beyond-trigger-width"]]:d}),ref:_,id:v,role:m,"aria-labelledby":y,"aria-describedby":C,"data-open":p,"data-animating":e!=="exited","aria-hidden":!p,style:d?{[sr.dropdownDefaultMaxWidth]:`${_T}px`}:{},onMouseDown:g},x.createElement("div",{className:W(zt["dropdown-content-wrapper"],!s&&!u&&zt["is-empty"],i&&zt.refresh)},x.createElement("div",{ref:c,className:zt["dropdown-content"]},x.createElement($$,{position:f},s,u,h))))},j$=({children:e,trigger:t,open:r,onDropdownClose:o,onMouseDown:n,header:i,footer:a,dropdownId:c,stretchTriggerHeight:l=!1,stretchWidth:d=!0,stretchHeight:s=!1,stretchToTriggerWidth:u=!0,stretchBeyondTriggerWidth:h=!1,expandToViewport:f=!1,preferCenter:p=!1,interior:g=!1,minWidth:v,scrollable:m=!0,loopFocus:y=f,onFocus:C,onBlur:_,contentKey:k,dropdownContentId:b,dropdownContentRole:S,ariaLabelledby:T,ariaDescribedby:L})=>{const I=B.useRef(null),A=B.useRef(null),P=B.useRef(null),D=B.useRef(null),E=B.useRef(null),R=B.useRef(null),$=kn(),N=yf(A),[M,O]=B.useState("bottom-right"),j=rn(),z=(q,ee,X,ie)=>{const se=!g&&d;if(d?ie.style.maxHeight=q.height:ie.style.maxHeight=`${parseInt(q.height)+1}px`,se&&!f?u&&X.classList.add(zt["occupy-entire-width"]):X.style.width=q.width,q.dropUp&&!g?(X.classList.add(zt["dropdown-drop-up"]),f||(X.style.bottom="100%")):X.classList.remove(zt["dropdown-drop-up"]),X.classList.add(q.dropLeft?zt["dropdown-drop-left"]:zt["dropdown-drop-right"]),q.left&&q.left!=="auto"&&(X.style.left=q.left),f&&!g){X.style.position="fixed",q.dropUp?X.style.bottom=`calc(100% - ${ee.top}px)`:X.style.top=`${ee.bottom}px`,q.dropLeft?X.style.left=`calc(${ee.right}px - ${q.width})`:X.style.left=`${ee.left}px`,R.current=q;return}g&&G$(q)&&(q.dropUp?X.style.bottom=q.bottom:X.style.top=q.top,X.style.left=q.left),q.dropUp&&q.dropLeft?O("top-left"):q.dropUp?O("top-right"):q.dropLeft?O("bottom-left"):O("bottom-right")},F=q=>(!I.current||!fn(I.current,q))&&(!D.current||!fn(D.current,q)),K=q=>{(!q.relatedTarget||F(q.relatedTarget))&&xe(C,q)},U=q=>{(!q.relatedTarget||F(q.relatedTarget))&&xe(_,q)};yn(()=>P.current,()=>{const q=zt["stretch-beyond-trigger-width"];r&&h&&P.current&&A.current&&P.current.classList.contains(q)&&!y$({triggerElement:A.current,dropdownElement:P.current,desiredMinWidth:v,expandToViewport:f,stretchWidth:d,stretchHeight:s,isMobile:j})&&P.current.classList.remove(q)}),B.useLayoutEffect(()=>{const q=()=>{r&&P.current&&A.current&&E.current&&(m&&P.current.classList.add(zt.nowrap),z(...x$(P.current,A.current,E.current,g,f,p,d,s,j,v,h),P.current,E.current),m&&P.current.classList.remove(zt.nowrap))};if(q(),r){window.addEventListener("scroll",q);const ee=setTimeout(()=>{window.removeEventListener("scroll",q)},500);return()=>{clearTimeout(ee),window.removeEventListener("scroll",q)}}},[r,P,A,E,g,d,j,k]),B.useEffect(()=>{if(!r)return;const q=ee=>{!fn(P.current,ee.target)&&!fn(A.current,ee.target)&&xe(o)};return window.addEventListener("click",q,!0),()=>{window.removeEventListener("click",q,!0)}},[r,o]),B.useLayoutEffect(()=>{if(!f||!r)return;const q=()=>{if(A.current&&P.current&&E.current){const ee=A.current.getBoundingClientRect(),X=P.current;R.current&&(R.current.dropUp?P.current.style.bottom=`calc(100% - ${ee.top}px)`:X.style.top=`${ee.bottom}px`,R.current.dropLeft?X.style.left=`calc(${ee.right}px - ${R.current.width})`:X.style.left=`${ee.left}px`)}};return q(),window.addEventListener("scroll",q,!0),window.addEventListener("resize",q,!0),()=>{window.removeEventListener("scroll",q,!0),window.removeEventListener("resize",q,!0)}},[r,f]);const V=De();return x.createElement("div",{className:W(zt.root,g&&zt.interior,l&&zt["stretch-trigger-height"]),ref:I,onFocus:K,onBlur:U},x.createElement("div",{id:V,className:W(l&&zt["stretch-trigger-height"]),ref:A},t),x.createElement(qs,{focusNextCallback:()=>{var q;return P.current&&((q=Ma(P.current))===null||q===void 0?void 0:q.focus())},disabled:!r||!y}),x.createElement(M$,{renderWithPortal:f&&!g,id:c,referrerId:V,open:r},x.createElement(Ha,{in:r??!1,exit:!1},(q,ee)=>x.createElement("div",{ref:D},x.createElement(qs,{focusNextCallback:()=>{var X;return A.current&&((X=mT(A.current))===null||X===void 0?void 0:X.focus())},disabled:!r||!y}),x.createElement(N$,{state:q,transitionRef:ee,dropdownClasses:N,open:r,stretchWidth:d,interior:g,header:i,expandToViewport:f,stretchBeyondTriggerWidth:h,footer:a,onMouseDown:n,isRefresh:$,dropdownRef:P,verticalContainerRef:E,position:M,id:b,role:S,ariaLabelledby:T,ariaDescribedby:L},e),x.createElement(qs,{focusNextCallback:()=>{var X;return A.current&&((X=Ma(A.current))===null||X===void 0?void 0:X.focus())},disabled:!r||!y})))))},G$=e=>e.bottom!==void 0,Kc=j$,Pi=e=>e&&e.items!==void 0,bf=e=>e&&e.href!==void 0,BT=e=>e.external?"_blank":void 0;function Jw(e,t){for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function Z0(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const Fo={"item-element":"awsui_item-element_93a1u_3lrfz_99",disabled:"awsui_disabled_93a1u_3lrfz_111","show-divider":"awsui_show-divider_93a1u_3lrfz_118",highlighted:"awsui_highlighted_93a1u_3lrfz_121","variant-icon":"awsui_variant-icon_93a1u_3lrfz_125","variant-inline-icon":"awsui_variant-inline-icon_93a1u_3lrfz_125","variant-normal":"awsui_variant-normal_93a1u_3lrfz_125","variant-primary":"awsui_variant-primary_93a1u_3lrfz_125","is-focused":"awsui_is-focused_93a1u_3lrfz_138","variant-navigation":"awsui_variant-navigation_93a1u_3lrfz_142",first:"awsui_first_93a1u_3lrfz_145","has-category-header":"awsui_has-category-header_93a1u_3lrfz_145",last:"awsui_last_93a1u_3lrfz_148","menu-item":"awsui_menu-item_93a1u_3lrfz_158",icon:"awsui_icon_93a1u_3lrfz_176","external-icon":"awsui_external-icon_93a1u_3lrfz_181"},z$=e=>x.createElement("div",{className:W(Ct.arrow,e.position&&Ct[`arrow-position-${e.position}`])},x.createElement("div",{className:Ct["arrow-outer"]}),x.createElement("div",{className:W(Ct["arrow-inner"],Ct.refresh)})),J0=x.memo(z$);function Wa({container:e,children:t}){const[r,o]=B.useState(e??null);return B.useLayoutEffect(()=>{if(e){o(e);return}const n=document.createElement("div");return document.body.appendChild(n),o(n),()=>{document.body.removeChild(n),o(null)}},[e]),r&&Uo.createPortal(t,r)}const F$=120;function ey({children:e,content:t,position:r="right"}){const o=B.useRef(null),n=P0(o),{open:i,triggerProps:a}=H$(n?0:F$),c=yf(o);return x.createElement("span",Object.assign({ref:o},a),e,i&&x.createElement(Wa,null,x.createElement("span",{className:c},x.createElement(gf,{size:"small",fixedWidth:!1,position:r,trackRef:o,arrow:l=>x.createElement(J0,{position:l}),renderWithPortal:!0,zIndex:7e3},x.createElement(mf,{dismissButton:!1,dismissAriaLabel:void 0,header:null,onDismiss:()=>{},overflowVisible:"both"},x.createElement("span",{"data-testid":"button-dropdown-disabled-reason",role:"tooltip"},t))))))}function H$(e){const t=B.useRef(),[r,o]=B.useState(!1),n=()=>{clearTimeout(t.current),o(!1)},i=()=>o(!0);return{open:r,triggerProps:{onBlur:n,onFocus:()=>{t.current=setTimeout(i,e)},onKeyDown:s=>{r&&W$(s.key)&&(s.preventDefault(),s.stopPropagation(),n())}}}}const W$=e=>e==="Escape"||e==="Esc";function wf(e){const t=De();return{targetProps:{"aria-describedby":e?t:void 0},descriptionEl:e?x.createElement("span",{id:t,hidden:!0},e):null}}const ty=({disabled:e,parent:t,expanded:r})=>({role:"menuitem","aria-disabled":e?"true":void 0,"aria-haspopup":t?"true":void 0,"aria-expanded":r?"true":t?"false":void 0}),V$=({item:e,disabled:t,onItemActivate:r,highlighted:o,highlightItem:n,first:i=!1,lastInSection:a,showDivider:c,hasCategoryHeader:l,isKeyboardHighlighted:d=!1,variant:s="normal"})=>{const u=bf(e),h=p=>{p.stopPropagation(),u||p.preventDefault(),t||r(e,p)},f=()=>{n(e)};return x.createElement("li",{className:W(Fo["item-element"],Fo[`variant-${s}`],{[Fo.highlighted]:o,[Fo.disabled]:t,[Fo.first]:i,[Fo.last]:a,[Fo["has-category-header"]]:l,[Fo["show-divider"]]:c,[Fo["is-focused"]]:d}),role:"presentation","data-testid":e.id,"data-description":e.description,onClick:h,onMouseEnter:f,onTouchStart:f},x.createElement(U$,{item:e,disabled:t,highlighted:o}))};function U$({item:e,disabled:t,highlighted:r}){const o=B.useRef(null);B.useEffect(()=>{r&&o.current&&o.current.focus()},[r]);const n=t&&e.disabledReason,{targetProps:i,descriptionEl:a}=wf(e.disabledReason),c=Object.assign(Object.assign({className:Fo["menu-item"],lang:e.lang,ref:o,tabIndex:r?0:-1},ty({disabled:t})),n?i:{}),l=bf(e)?x.createElement("a",Object.assign({},c,{href:t?void 0:e.href,target:BT(e),rel:e.external?"noopener noreferrer":void 0}),x.createElement(ex,{item:e,disabled:t})):x.createElement("span",Object.assign({},c),x.createElement(ex,{item:e,disabled:t})),{position:d}=O$(),s=d==="bottom-left"||d==="top-left"?"left":"right";return n?x.createElement(ey,{content:e.disabledReason,position:s},l,a):l}const ex=({item:e,disabled:t})=>{const r=!!(e.iconName||e.iconUrl||e.iconSvg),o=bf(e)&&e.external;return x.createElement(x.Fragment,null,r&&x.createElement(K$,{name:e.iconName,url:e.iconUrl,svg:e.iconSvg,alt:e.iconAlt,badge:e.badge})," ",e.text," ",o&&x.createElement(q$,{disabled:t,ariaLabel:e.externalIconAriaLabel}))},K$=e=>x.createElement("span",{className:Fo.icon},x.createElement(ze,Object.assign({},e))),q$=({disabled:e,ariaLabel:t})=>{const r=x.createElement(ze,{variant:e?"disabled":"normal",name:"external"});return x.createElement("span",{className:Fo["external-icon"],role:t?"img":void 0,"aria-label":t},r)},Y$=V$,ot={header:"awsui_header_16mm3_186aw_99",disabled:"awsui_disabled_16mm3_186aw_116","expandable-header":"awsui_expandable-header_16mm3_186aw_120","rolled-down":"awsui_rolled-down_16mm3_186aw_131",highlighted:"awsui_highlighted_16mm3_186aw_134","is-focused":"awsui_is-focused_16mm3_186aw_152","variant-navigation":"awsui_variant-navigation_16mm3_186aw_156",category:"awsui_category_16mm3_186aw_168",expandable:"awsui_expandable_16mm3_186aw_120","expand-icon":"awsui_expand-icon_16mm3_186aw_190","expand-icon-up":"awsui_expand-icon-up_16mm3_186aw_197","expand-icon-right":"awsui_expand-icon-right_16mm3_186aw_200","items-list-container":"awsui_items-list-container_16mm3_186aw_214","in-dropdown":"awsui_in-dropdown_16mm3_186aw_223"},X$=({item:e,onItemActivate:t,onGroupToggle:r,targetItem:o,isHighlighted:n,isKeyboardHighlight:i,isExpanded:a,lastInDropdown:c,highlightItem:l,disabled:d,expandToViewport:s,variant:u})=>{const h=n(e),f=a(e),p=i(e),g=x.useRef(null),v=B.useRef(null);B.useEffect(()=>{g.current&&h&&!f&&g.current.focus()},[f,h]);const m=T=>{var L;d||(T.preventDefault(),r(e,T),(L=g.current)===null||L===void 0||L.focus())},y=()=>{l(e)},C=!!e.disabledReason&&e.disabled,{targetProps:_,descriptionEl:k}=wf(e.disabledReason),b=e.text&&x.createElement("span",Object.assign({className:W(ot.header,ot["expandable-header"],ot[`variant-${u}`],{[ot.disabled]:d,[ot.highlighted]:h,[ot["is-focused"]]:p}),tabIndex:h?0:-1,ref:g},ty({parent:!0,expanded:f,disabled:d}),C?_:{}),e.text,x.createElement("span",{className:W(ot["expand-icon"],ot["expand-icon-right"])},x.createElement(ze,{name:"caret-down-filled"})));let S;return C?S=x.createElement(ey,{content:e.disabledReason},b,k):d?S=b:S=x.createElement(Kc,{open:f,stretchWidth:!1,interior:!0,expandToViewport:s,trigger:b},e.items&&f&&x.createElement("ul",{role:"menu","aria-label":e.text,className:W(ot["items-list-container"],ot["in-dropdown"])},x.createElement(xf,{items:e.items,onItemActivate:t,onGroupToggle:r,targetItem:o,isHighlighted:n,isKeyboardHighlight:i,isExpanded:a,lastInDropdown:c,highlightItem:l,variant:u}))),x.createElement("li",{className:W(ot.category,ot[`variant-${u}`],ot.expandable,{[ot.expanded]:f,[ot.disabled]:d,[ot.highlighted]:h}),role:"presentation","data-testid":e.id,ref:v,onClick:m,onMouseEnter:y,onTouchStart:y},S)},Q$=X$,Z$=({item:e,onItemActivate:t,onGroupToggle:r,targetItem:o,isHighlighted:n,isKeyboardHighlight:i,isExpanded:a,lastInDropdown:c,highlightItem:l,disabled:d,variant:s})=>x.createElement("li",{className:W(ot.category,ot[`variant-${s}`],d&&ot.disabled),role:"presentation","aria-disabled":d?"true":void 0},e.text&&x.createElement("p",{className:W(ot.header,{[ot.disabled]:d}),"aria-hidden":"true"},e.text),x.createElement("ul",{className:W(ot["items-list-container"]),role:"group","aria-label":e.text},e.items&&x.createElement(xf,{items:e.items,onItemActivate:t,onGroupToggle:r,targetItem:o,isHighlighted:n,isKeyboardHighlight:i,isExpanded:a,lastInDropdown:c,highlightItem:l,categoryDisabled:d,hasCategoryHeader:!!e.text,variant:s}))),J$=Z$,Uu={root:"awsui_root_14cnr_1ev1z_99",trigger:"awsui_trigger_14cnr_1ev1z_136",dropdown:"awsui_dropdown_14cnr_1ev1z_139",nowrap:"awsui_nowrap_14cnr_1ev1z_150",open:"awsui_open_14cnr_1ev1z_153"},eO=({children:e,trigger:t,open:r})=>x.createElement("div",{className:W(Uu.root)},x.createElement("div",{className:Uu.trigger},t),x.createElement("div",{className:W(Uu.dropdown,{[Uu.open]:r}),"data-open":r},e)),tO=eO,rO=({item:e,onItemActivate:t,onGroupToggle:r,targetItem:o,isHighlighted:n,isKeyboardHighlight:i,isExpanded:a,lastInDropdown:c,highlightItem:l,disabled:d,variant:s})=>{const u=n(e),h=a(e),f=i(e),p=x.useRef(null);B.useEffect(()=>{p.current&&u&&!h&&p.current.focus()},[h,u]);const g=b=>{d||(b.preventDefault(),r(e,b))},v=()=>{l(e)},m=!!e.disabledReason&&e.disabled,{targetProps:y,descriptionEl:C}=wf(e.disabledReason),_=e.text&&x.createElement("span",Object.assign({className:W(ot.header,ot["expandable-header"],ot[`variant-${s}`],{[ot.highlighted]:u,[ot["rolled-down"]]:h,[ot.disabled]:d,[ot["is-focused"]]:f}),tabIndex:u?0:-1,ref:p},ty({parent:!0,disabled:d,expanded:h}),m?y:{}),e.text,x.createElement("span",{className:W(ot["expand-icon"],{[ot["expand-icon-up"]]:h})},x.createElement(ze,{name:"caret-down-filled"})));let k;return m?k=x.createElement(x.Fragment,null,C,x.createElement(ey,{content:e.disabledReason},_)):d?k=_:k=x.createElement(tO,{open:h,trigger:_},e.items&&h&&x.createElement("ul",{role:"menu","aria-label":e.text,className:W(ot["items-list-container"])},x.createElement(xf,{items:e.items,onItemActivate:t,onGroupToggle:r,targetItem:o,isHighlighted:n,isKeyboardHighlight:i,isExpanded:a,lastInDropdown:c,highlightItem:l,hasCategoryHeader:!0,variant:s}))),x.createElement("li",{className:W(ot.category,ot[`variant-${s}`],ot.expandable,{[ot.expanded]:h,[ot.disabled]:d,[ot.highlighted]:u||h,[ot.expandable]:!0}),role:"presentation",onClick:g,onMouseEnter:v,onTouchStart:v,"data-testid":e.id},k)},oO=rO;function xf({items:e,onItemActivate:t,onGroupToggle:r,targetItem:o,isHighlighted:n,isKeyboardHighlight:i,isExpanded:a,lastInDropdown:c,highlightItem:l,categoryDisabled:d=!1,hasExpandableGroups:s=!1,hasCategoryHeader:u=!1,expandToViewport:h=!1,variant:f="normal"}){const p=rn(),g=e.map((v,m)=>{var y,C,_,k;if(!Pi(v)){const b=m===e.length-1||Pi(e[m+1]),S=m===e.length-1&&!c||Pi(e[m+1]);return x.createElement(Y$,{key:m,item:v,onItemActivate:t,disabled:(y=v.disabled)!==null&&y!==void 0?y:d,highlighted:n(v),isKeyboardHighlighted:i(v),highlightItem:l,first:m===0||Pi(e[m-1]),lastInSection:b,showDivider:S,hasCategoryHeader:u,variant:f})}return s?v.text?p?x.createElement(oO,{key:m,item:v,onItemActivate:t,onGroupToggle:r,targetItem:o,isHighlighted:n,isKeyboardHighlight:i,isExpanded:a,lastInDropdown:c&&m===e.length-1,highlightItem:l,disabled:(C=v.disabled)!==null&&C!==void 0?C:!1,variant:f}):x.createElement(Q$,{key:m,item:v,onItemActivate:t,onGroupToggle:r,targetItem:o,isHighlighted:n,isKeyboardHighlight:i,isExpanded:a,lastInDropdown:!0,highlightItem:l,disabled:(_=v.disabled)!==null&&_!==void 0?_:!1,expandToViewport:h,variant:f}):null:x.createElement(J$,{key:m,item:v,onItemActivate:t,onGroupToggle:r,targetItem:o,isHighlighted:n,isKeyboardHighlight:i,isExpanded:a,lastInDropdown:c&&m===e.length-1,highlightItem:l,disabled:(k=v.disabled)!==null&&k!==void 0?k:!1,variant:f})});return x.createElement(x.Fragment,null,g)}const DT=({onOpen:e,onClose:t})=>{const[r,o]=B.useState(!1),[n,i]=B.useState(!1),a=d=>{r||(o(!0),i(!!d),e==null||e())},c=()=>{r&&(o(!1),t==null||t())};return{isOpen:r,openDropdown:a,closeDropdown:c,toggleDropdown:()=>{r?c():a(!1)},openedWithKeyboard:n}};function nO(e){const t=new Map,r=new Map,o=[];return RT(e,(n,i)=>{const a=Jp(i);t.set(n,a),r.set(a,n),o.push(a)}),{getItem:n=>{const i=Jp(n);return r.get(i)||null},getItemIndex:n=>{const i=t.get(n);if(!i)throw new Error("Invariant violation: item is not found.");return eg(i)},getSequentialIndex:(n,i)=>{const a=Jp(n),c=o.indexOf(a),l=o[c+i];return l?eg(l):null},getParentIndex:n=>{const i=t.get(n);if(!i)throw new Error("Invariant violation: item is not found.");const a=eg(i);return a.length===1?null:a.slice(0,a.length-1)}}}function RT(e,t,r=[]){e.forEach((o,n)=>{const i=[...r,n];t(o,i),Pi(o)&&RT(o.items,t,i)})}function Jp(e){return e.join("-")}function eg(e){return e.split("-").map(t=>parseInt(t))}function iO({startIndex:e,expandedIndex:t,getNext:r,hasExpandableGroups:o,isInRestrictedView:n}){const i=a=>{var c;const l=r(a);return l?!((c=l.parent)===null||c===void 0)&&c.disabled&&o||Pi(l.item)&&!o||o&&!n&&!aO(e,l.index)||o&&n&&!lO(l.index,t)&&!sO(t,l.index)?i(l.index):l.index:null};return i(e)}function aO(e,t){return Z0(e.slice(0,-1),t.slice(0,-1))}function lO(e,t){return e.length===t.length}function sO(e,t){return Z0(e,t.slice(0,-1))}function cO({items:e,hasExpandableGroups:t,isInRestrictedView:r=!1}){const[o,n]=B.useState([]),[i,a]=B.useState([]),[c,l]=B.useState(!0),{getItem:d,getItemIndex:s,getSequentialIndex:u,getParentIndex:h}=B.useMemo(()=>nO(e),[e]),f=B.useMemo(()=>d(o),[o,d]),p=B.useCallback(b=>{const S=s(b);return Jw(S,o)},[o,s]),g=B.useCallback(b=>{const S=s(b);return!c&&Z0(S,o)},[o,s,c]),v=B.useCallback(b=>{const S=s(b);return Jw(S,i)},[i,s]),m=B.useCallback(b=>{const T=iO({startIndex:o,expandedIndex:i,getNext:L=>{const I=u(L,b),A=d(I||[-1]);if(!I||!A)return null;const P=h(A),D=P&&d(P);return{index:I,item:A,parent:D||void 0}},hasExpandableGroups:t,isInRestrictedView:r});T&&n(T)},[o,i,d,u,h,t,r]),y=B.useCallback(b=>{n(s(b))},[s]),C=B.useCallback(b=>{const S=b?s(b):o,T=[...S,0];n(r?S:T),a(S)},[o,s,r]),_=B.useCallback(()=>{i.length>0&&(n(i),a(i.slice(0,-1)))},[i]),k=B.useCallback(()=>{n([]),a([])},[]);return{targetItem:f,isHighlighted:p,isKeyboardHighlight:g,isExpanded:v,moveHighlight:m,highlightItem:y,expandGroup:C,collapseGroup:_,reset:k,setIsUsingMouse:l}}function uO({items:e,onItemClick:t,onItemFollow:r,onReturnFocus:o,hasExpandableGroups:n,isInRestrictedView:i=!1,expandToViewport:a=!1}){const{targetItem:c,isHighlighted:l,isKeyboardHighlight:d,isExpanded:s,highlightItem:u,moveHighlight:h,expandGroup:f,collapseGroup:p,reset:g,setIsUsingMouse:v}=cO({items:e,hasExpandableGroups:n,isInRestrictedView:i}),m=DT({onClose:g}),{isOpen:y,closeDropdown:C}=m,_=de(m,["isOpen","closeDropdown"]),k=(E={})=>{var R;const $=(R=E.moveHighlightOnOpen)!==null&&R!==void 0?R:!0;!y&&$&&h(1),_.toggleDropdown()},b=E=>s(E)?p():f(E),S=(E,R)=>{const $={id:E.id||"undefined",href:E.href,external:E.external,target:BT(E)};r&&E.href&&ci(R)&&St(r,$,R),t&&St(t,$,R),o(),C()},T=E=>{y&&h(E)},L=E=>{k(),E.preventDefault()},I=E=>{c?Pi(c)?b(c):S(c,E):y&&!i?k():L(E)},A=(E,R)=>{v(!1),!(c&&bf(c)&&R)&&(E.preventDefault(),I(E))};return{isOpen:y,targetItem:c,isHighlighted:l,isKeyboardHighlight:d,isExpanded:s,highlightItem:u,onKeyDown:E=>{switch(v(!1),E.keyCode){case ke.down:{T(1),E.preventDefault();break}case ke.up:{T(-1),E.preventDefault();break}case ke.space:{E.preventDefault();break}case ke.enter:{c!=null&&c.disabled||A(E,!0);break}case ke.left:case ke.right:{c&&!c.disabled&&Pi(c)&&!s(c)?f():n&&p(),E.preventDefault();break}case ke.escape:{o(),C(),E.preventDefault(),y&&E.stopPropagation();break}case ke.tab:{a&&o(),C();break}}},onKeyUp:E=>{E.keyCode===ke.space&&!(c!=null&&c.disabled)&&A(E)},onItemActivate:S,onGroupToggle:b,toggleDropdown:k,closeDropdown:C,setIsUsingMouse:v}}const tx={"options-list":"awsui_options-list_19gcf_halkh_99","decrease-block-margin":"awsui_decrease-block-margin_19gcf_halkh_149"},dO=80,rx=(e,t)=>{const r=tn(t.target,n=>n===e.current||!!n.dataset.mouseTarget),o=r==null?void 0:r.dataset.mouseTarget;return o?parseInt(o):-1},hO=(e,t)=>{var{open:r,statusType:o,children:n,nativeAttributes:i={},onKeyDown:a,onBlur:c,onFocus:l,onLoadMore:d,onMouseUp:s,onMouseMove:u,position:h="relative",role:f="listbox",decreaseBlockMargin:p=!1,ariaLabel:g,ariaLabelledby:v,ariaDescribedby:m}=e,y=de(e,["open","statusType","children","nativeAttributes","onKeyDown","onBlur","onFocus","onLoadMore","onMouseUp","onMouseMove","position","role","decreaseBlockMargin","ariaLabel","ariaLabelledby","ariaDescribedby"]);const C=Ie(y),_=B.useRef(null),k=ao(()=>{const T=_==null?void 0:_.current;if(T){const L=T.scrollTop+T.clientHeight;T.scrollHeight-L<dO&&xe(d)}});B.useEffect(()=>{r&&o==="pending"&&k()},[r,o,k]);const b=W(tx["options-list"],{[tx["decrease-block-margin"]]:p}),S=Lt(t,_);return x.createElement("ul",Object.assign({},C,i,{className:b,ref:S,style:{position:h},role:f,onScroll:k,onKeyDown:T=>a&&Cc(a,T),onMouseMove:T=>u==null?void 0:u(rx(_,T)),onMouseUp:T=>s==null?void 0:s(rx(_,T)),onBlur:T=>xe(c,{relatedTarget:T.relatedTarget}),onFocus:()=>xe(l),tabIndex:-1,"aria-label":g,"aria-labelledby":v,"aria-describedby":m}),r&&n)},rs=x.forwardRef(hO),fO=x.forwardRef((e,t)=>{var r,{items:o,variant:n="normal",loading:i=!1,loadingText:a,disabled:c=!1,expandableGroups:l=!1,children:d,onItemClick:s,onItemFollow:u,customTriggerBuilder:h,expandToViewport:f,ariaLabel:p,title:g,description:v,preferCenter:m,mainAction:y,__internalRootRef:C}=e,_=de(e,["items","variant","loading","loadingText","disabled","expandableGroups","children","onItemClick","onItemFollow","customTriggerBuilder","expandToViewport","ariaLabel","title","description","preferCenter","mainAction","__internalRootRef"]);const k=rn(),b=De("dropdown");for(const G of o)bn("ButtonDropdown",G.href);y&&bn("ButtonDropdown",y.href);const S=y&&(n==="primary"||n==="normal"),{isOpen:T,targetItem:L,isHighlighted:I,isKeyboardHighlight:A,isExpanded:P,highlightItem:D,onKeyDown:E,onKeyUp:R,onItemActivate:$,onGroupToggle:N,toggleDropdown:M,closeDropdown:O,setIsUsingMouse:j}=uO({items:o,onItemClick:s,onItemFollow:u,onReturnFocus:()=>{var G;return(G=U.current)===null||G===void 0?void 0:G.focus()},expandToViewport:f,hasExpandableGroups:l,isInRestrictedView:k}),z=()=>{j(!0)},F=Ie(_),K=B.useRef(null),U=B.useRef(null);Ji(t,S?K:U);const Y=()=>{!i&&!c&&M({moveHighlightOnOpen:!k})},V=!i&&!c,q=n==="navigation"?void 0:n==="inline-icon"?"inline-icon":n,ee=n==="icon"||n==="inline-icon"?{iconName:"ellipsis"}:{iconName:"caret-down-filled",iconAlign:"right",__iconClass:V&&T?dr["rotate-up"]:dr["rotate-down"]},X=Object.assign(Object.assign({className:W(dr["trigger-button"],dr["test-utils-button-trigger"])},ee),{variant:q,loading:i,loadingText:a,disabled:c,onClick:G=>{G.preventDefault(),Y()},ariaLabel:p,ariaExpanded:V&&T,formAction:"none",__nativeAttributes:{"aria-haspopup":!0}}),ie=De("awsui-button-dropdown__trigger"),se=()=>{const G=o.flatMap(H=>"items"in H?H.items:H);return n==="icon"&&!!(G!=null&&G.find(H=>{if("badge"in H)return H.badge}))};let me=null;if(h)me=x.createElement("div",{className:dr["dropdown-trigger"]},h({testUtilsClass:dr["test-utils-button-trigger"],ariaExpanded:V&&T,onClick:Y,triggerRef:U,ariaLabel:p,disabled:c,isOpen:T}));else if(S){const{text:G,iconName:H,iconAlt:te,iconSvg:ae,iconUrl:le,external:we,externalIconAriaLabel:ce}=y,ye=de(y,["text","iconName","iconAlt","iconSvg","iconUrl","external","externalIconAriaLabel"]),Ae=we?{iconName:"external",iconAlign:"right"}:{iconName:H,iconAlt:te,iconSvg:ae,iconUrl:le},ne=ce?`${(r=y.ariaLabel)!==null&&r!==void 0?r:y.text} ${y.externalIconAriaLabel}`:void 0;me=x.createElement("div",{role:"group","aria-label":p,className:dr["split-trigger-wrapper"]},x.createElement("div",{className:W(dr["trigger-item"],dr["split-trigger"]),onClick:O,onKeyDown:pe=>pe.stopPropagation(),onKeyUp:pe=>pe.stopPropagation()},x.createElement(pt,Object.assign({ref:K},ye,Ae,{className:dr["trigger-button"],variant:n,ariaLabel:ne,formAction:"none"}),G)),x.createElement("div",{className:W(dr["trigger-item"],dr["dropdown-trigger"],dr["visual-refresh"])},x.createElement(pt,Object.assign({ref:U},X))))}else me=x.createElement("div",{className:dr["dropdown-trigger"]},x.createElement(pt,Object.assign({ref:U,id:ie},X,{badge:se()}),d));const ve=g||v,Q=De("awsui-button-dropdown__header"),oe=!p&&!y&&n!=="icon"&&n!=="inline-icon",{loadingButtonCount:Z}=xo();return B.useEffect(()=>{if(i)return Z.current++,()=>{Z.current--}},[i,Z]),x.createElement("div",Object.assign({},F,{onKeyDown:E,onKeyUp:R,onMouseDown:z,onMouseMove:z,className:W(dr["button-dropdown"],dr[`variant-${n}`],F.className),"aria-owns":f&&T?b:void 0,ref:C}),x.createElement(Kc,{open:V&&T,stretchWidth:!1,stretchTriggerHeight:n==="navigation",expandToViewport:f,preferCenter:m,onDropdownClose:()=>M(),trigger:me,dropdownId:b},ve&&x.createElement("div",{className:dr.header,id:Q},g&&x.createElement("div",{className:dr.title},x.createElement(xn,{fontSize:"heading-s",fontWeight:"bold",color:"inherit",tagOverride:"h2",margin:{vertical:"n",horizontal:"n"}},g)),v&&x.createElement(xn,{fontSize:"body-s"},x.createElement("span",{className:dr.description},v))),x.createElement(rs,{open:V&&T,position:"static",role:"menu",decreaseBlockMargin:!0,ariaLabel:p,ariaLabelledby:ve?Q:oe?ie:void 0,statusType:"finished"},x.createElement(xf,{items:o,onItemActivate:$,onGroupToggle:N,hasExpandableGroups:l,targetItem:L,isHighlighted:I,isKeyboardHighlight:A,isExpanded:P,lastInDropdown:!0,highlightItem:D,expandToViewport:f,variant:n}))))}),_f=fO;function kf({items:e,onItemClick:t,customTriggerBuilder:r,ariaLabel:o}){return x.createElement(_f,{items:e.map(n=>({id:n.id,text:n.ariaLabels.drawerName,iconName:n.trigger.iconName,iconSvg:n.trigger.iconSvg,badge:n.badge})),onItemClick:t,ariaLabel:o,variant:"icon",customTriggerBuilder:r,expandToViewport:!0})}const zo={"block-body-scroll":"awsui_block-body-scroll_19d8l_c90gb_103","mobile-bar":"awsui_mobile-bar_19d8l_c90gb_107","mobile-bar-breadcrumbs":"awsui_mobile-bar-breadcrumbs_19d8l_c90gb_120","mobile-toggle":"awsui_mobile-toggle_19d8l_c90gb_127","mobile-toggle-type-navigation":"awsui_mobile-toggle-type-navigation_19d8l_c90gb_136","mobile-toggle-type-tools":"awsui_mobile-toggle-type-tools_19d8l_c90gb_139","mobile-toggle-type-drawer":"awsui_mobile-toggle-type-drawer_19d8l_c90gb_139","drawers-container":"awsui_drawers-container_19d8l_c90gb_146"},rr={"resize-active":"awsui_resize-active_lm6vo_1lt83_104","resize-side":"awsui_resize-side_lm6vo_1lt83_110","resize-bottom":"awsui_resize-bottom_lm6vo_1lt83_113","with-motion":"awsui_with-motion_lm6vo_1lt83_118",root:"awsui_root_lm6vo_1lt83_133","root-no-scroll":"awsui_root-no-scroll_lm6vo_1lt83_140",layout:"awsui_layout_lm6vo_1lt83_145","layout-no-scroll":"awsui_layout-no-scroll_lm6vo_1lt83_151","layout-main":"awsui_layout-main_lm6vo_1lt83_155","layout-main-scrollable":"awsui_layout-main-scrollable_lm6vo_1lt83_161",unfocusable:"awsui_unfocusable_lm6vo_1lt83_166","breadcrumbs-desktop":"awsui_breadcrumbs-desktop_lm6vo_1lt83_170","content-header-wrapper":"awsui_content-header-wrapper_lm6vo_1lt83_175","content-wrapper":"awsui_content-wrapper_lm6vo_1lt83_179","content-overlapped":"awsui_content-overlapped_lm6vo_1lt83_183","content-extra-top-padding":"awsui_content-extra-top-padding_lm6vo_1lt83_187"},Pe={root:"awsui_root_1fj9k_1uvk8_5",navigation:"awsui_navigation_1fj9k_1uvk8_9","navigation-toggle":"awsui_navigation-toggle_1fj9k_1uvk8_13","navigation-close":"awsui_navigation-close_1fj9k_1uvk8_17",content:"awsui_content_1fj9k_1uvk8_21",notifications:"awsui_notifications_1fj9k_1uvk8_25",breadcrumbs:"awsui_breadcrumbs_1fj9k_1uvk8_29",tools:"awsui_tools_1fj9k_1uvk8_33","tools-close":"awsui_tools-close_1fj9k_1uvk8_37","tools-toggle":"awsui_tools-toggle_1fj9k_1uvk8_41","drawer-closed":"awsui_drawer-closed_1fj9k_1uvk8_45","mobile-bar":"awsui_mobile-bar_1fj9k_1uvk8_49","disable-body-scroll-root":"awsui_disable-body-scroll-root_1fj9k_1uvk8_53","drawers-trigger":"awsui_drawers-trigger_1fj9k_1uvk8_57","active-drawer":"awsui_active-drawer_1fj9k_1uvk8_61","active-drawer-close-button":"awsui_active-drawer-close-button_1fj9k_1uvk8_65","drawers-slider":"awsui_drawers-slider_1fj9k_1uvk8_69"};function Cf(e,t,r){const o=e??[],n=o.slice(0,t),i=o.slice(t);if(i.length===1)return{visibleItems:o,overflowItems:[]};if(r&&i.length>0&&n.length>0){const a=i.find(c=>c.id===r);a&&(i.splice(i.indexOf(a),1),i.unshift(n.pop()),n.push(a))}return{visibleItems:n,overflowItems:i}}function pO(e){const t=e.map(o=>{var n,{mountContent:i,unmountContent:a,trigger:c}=o,l=de(o,["mountContent","unmountContent","trigger"]);return Object.assign(Object.assign({},l),{ariaLabels:Object.assign({drawerName:(n=l.ariaLabels.content)!==null&&n!==void 0?n:""},l.ariaLabels),trigger:{iconSvg:x.createElement("span",{dangerouslySetInnerHTML:{__html:c.iconSvg}})},content:x.createElement(JS,{key:l.id,mountContent:i,unmountContent:a}),onResize:d=>{xe(l.onResize,{size:d.detail.size,id:l.id})}})}),r=F0(t);return{before:r.filter(o=>{var n;return((n=o.orderPriority)!==null&&n!==void 0?n:0)>0}),after:r.filter(o=>{var n;return((n=o.orderPriority)!==null&&n!==void 0?n:0)<=0})}}const Yr="awsui-internal-tools";function gO(e){if(e.toolsHide)return null;const{iconName:t,getLabels:r}=Tc.tools,{mainLabel:o,closeLabel:n,openLabel:i}=r(e.ariaLabels);return{id:Yr,content:e.tools,resizable:!1,ariaLabels:{triggerButton:i,closeButton:n,drawerName:o??""},trigger:{iconName:t}}}function mO(e,t,r){const[o,n]=B.useState({before:[],after:[]}),i=ao(r),a=B.useRef(!1);return a.current=a.current||!!t,B.useEffect(()=>{if(e)return;const c=H0.appLayout.onDrawersRegistered(l=>{if(n(pO(l)),!a.current){const d=F0(l).find(s=>s.defaultActive);d&&i(d.id)}});return()=>{c(),n({before:[],after:[]})}},[e,i]),o}function vO(e,t){const r=[...t.before,...t.after];if(r.length===0)return null;const o=gO(e);return o&&r.unshift(o),r}function IT({drawers:e,activeDrawerId:t,onDrawerChange:r,__disableRuntimeDrawers:o},n,i){var a,c,l,d;const[s=null,u]=go(t,r,null,{componentName:"AppLayout",controlledProp:"activeDrawerId",changeHandler:"onChange"}),[h,f]=B.useState({});function p({id:S,size:T}){f(L=>Object.assign(Object.assign({},L),{[S]:T})),xe(_==null?void 0:_.onResize,{id:S,size:T})}function g(S){u(S),v?xe(r,{activeDrawerId:S}):i.toolsHide||i.onToolsToggle(S===Yr)}const v=!!e,m=mO(o,s,g),y=e?[...m.before,...e,...m.after]:vO(i,m);let C=i!=null&&i.toolsOpen&&!v?Yr:s;const _=y==null?void 0:y.find(S=>S.id===C);C=(a=_==null?void 0:_.id)!==null&&a!==void 0?a:null;const k=C&&(l=(c=h[C])!==null&&c!==void 0?c:_==null?void 0:_.defaultSize)!==null&&l!==void 0?l:i.toolsWidth,b=Math.min((d=_==null?void 0:_.defaultSize)!==null&&d!==void 0?d:290,290);return{ariaLabelsWithDrawers:n,drawers:y||void 0,activeDrawer:_,activeDrawerId:C,activeDrawerSize:k,minDrawerSize:b,onActiveDrawerChange:g,onActiveDrawerResize:p}}const ox=x.forwardRef(({className:e,ariaLabels:t,type:r,disabled:o,onClick:n},i)=>{const{TagName:a,iconName:c,getLabels:l}=Tc[r],{mainLabel:d,openLabel:s}=l(t);return x.createElement(a,{className:W(zo["mobile-toggle"],zo[`mobile-toggle-type-${r}`]),"aria-hidden":o,"aria-label":d,onClick:u=>u.target===u.currentTarget&&n()},x.createElement(vf,{ref:i,className:e,iconName:c,onClick:n,ariaLabel:s,disabled:o,ariaExpanded:o}))});function yO({ariaLabels:e,toggleRefs:t,topOffset:r,navigationHide:o,toolsHide:n,anyPanelOpen:i,unfocusable:a,drawers:c,activeDrawerId:l,children:d,onNavigationOpen:s,onToolsOpen:u,onDrawerChange:h,mobileBarRef:f}){B.useEffect(()=>{if(i)return document.body.classList.add(zo["block-body-scroll"]),()=>{document.body.classList.remove(zo["block-body-scroll"])};document.body.classList.remove(zo["block-body-scroll"])},[i]);const{overflowItems:p,visibleItems:g}=Cf(c,2,l),v=!!p.find(m=>m.badge);return x.createElement("div",{ref:f,className:W(zo["mobile-bar"],Pe["mobile-bar"],a&&rr.unfocusable),style:{top:r}},!o&&x.createElement(ox,{ref:t.navigation,type:"navigation",className:Pe["navigation-toggle"],ariaLabels:e,disabled:i,onClick:s}),x.createElement("div",{className:zo["mobile-bar-breadcrumbs"]},d&&x.createElement("div",{className:Pe.breadcrumbs},d)),!n&&!c&&x.createElement(ox,{ref:t.tools,type:"tools",className:Pe["tools-toggle"],ariaLabels:e,disabled:i,onClick:u}),c&&x.createElement("aside",{"aria-label":e==null?void 0:e.drawers,role:"region"},x.createElement("div",{className:W(zo["drawers-container"]),role:"toolbar","aria-orientation":"horizontal"},g.map((m,y)=>{var C;return x.createElement("div",{className:W(zo["mobile-toggle"],zo["mobile-toggle-type-drawer"]),key:y,onClick:()=>h(m.id)},x.createElement(vf,{className:W(Pe["drawers-trigger"],m.id===Yr&&Pe["tools-toggle"]),iconName:m.trigger.iconName,iconSvg:m.trigger.iconSvg,badge:m.badge,ariaLabel:(C=m.ariaLabels)===null||C===void 0?void 0:C.triggerButton,ariaExpanded:l===m.id,testId:`awsui-app-layout-trigger-${m.id}`}))}),p.length>0&&x.createElement("div",{className:W(zo["mobile-toggle"],zo["mobile-toggle-type-drawer"])},x.createElement(kf,{ariaLabel:v?e==null?void 0:e.drawersOverflowWithBadge:e==null?void 0:e.drawersOverflow,items:p,onItemClick:({detail:m})=>h(m.id)})))))}function Tl(e,t=!1,r){const o={toggle:B.useRef(null),close:B.useRef(null),slider:B.useRef(null)},n=B.useRef(),i=B.useRef(!1),a=()=>{var d,s,u;i.current&&(e?(n.current=document.activeElement!==document.body?document.activeElement:void 0,o.slider.current?(d=o.slider.current)===null||d===void 0||d.focus():(s=o.close.current)===null||s===void 0||s.focus()):t&&n.current&&document.contains(n.current)?(n.current.focus(),n.current=void 0):(u=o.toggle.current)===null||u===void 0||u.focus(),i.current=!1)},c=d=>{i.current=!0,d&&e&&a()};B.useEffect(a,[e,r]);const l=B.useCallback(()=>{n.current=void 0},[]);return{refs:o,setFocus:c,loseFocus:l}}function hh(e){const t=B.useCallback(()=>document.querySelector(e),[e]),[r,o]=B.useState(0);return yn(t,n=>o(n.borderBoxHeight)),r}function bO(e,t,r){const o=hh(e),n=hh(t),[i,a]=B.useState(0);B.useEffect(()=>{const l=requestAnimationFrame(()=>a(o+n));return()=>cancelAnimationFrame(l)},[o,n]);const c=`calc(100vh - ${i}px)`;return{headerHeight:o,footerHeight:n,contentHeightStyle:{[r?"height":"minHeight"]:c}}}const PT={stickyOffsetTop:0,stickyOffsetBottom:0,mobileBarHeight:0},Sf=B.createContext(PT);function ry(){return B.useContext(Sf)}const nx=400,ix=250,wO=40;function $T(e){return typeof document>"u"?0:e==="side"?document.documentElement.clientWidth/3:document.documentElement.clientHeight/2}function Ml(e,t,r){return e>r||t<e?e:t>r?r:t}const Cs={"content-wrapper":"awsui_content-wrapper_zycdx_1ocfz_103","content-wrapper-mobile":"awsui_content-wrapper-mobile_zycdx_1ocfz_107","content-type-dashboard":"awsui_content-type-dashboard_zycdx_1ocfz_112"},xO=x.forwardRef(({className:e,contentType:t,children:r,toolsPadding:o,disablePaddings:n,navigationPadding:i,isMobile:a,contentWidthStyles:c},l)=>n?x.createElement("div",{className:e,ref:l},r):x.createElement("div",{ref:l,className:W(Cs["content-wrapper"],!i&&Cs["content-wrapper-no-navigation-padding"],!o&&Cs["content-wrapper-no-tools-padding"],a&&Cs["content-wrapper-mobile"])},x.createElement("div",{style:c,className:W(e,Cs[`content-type-${t}`])},r))),ax=xO,kr={toggle:"awsui_toggle_1uo6m_1740t_103","drawer-triggers":"awsui_drawer-triggers_1uo6m_1740t_109",drawer:"awsui_drawer_1uo6m_1740t_109","drawer-mobile":"awsui_drawer-mobile_1uo6m_1740t_119","drawer-closed":"awsui_drawer-closed_1uo6m_1740t_122","drawer-content":"awsui_drawer-content_1uo6m_1740t_129","drawer-content-clickable":"awsui_drawer-content-clickable_1uo6m_1740t_141","drawer-resize-content":"awsui_drawer-resize-content_1uo6m_1740t_151","drawer-triggers-wrapper":"awsui_drawer-triggers-wrapper_1uo6m_1740t_157","drawer-trigger":"awsui_drawer-trigger_1uo6m_1740t_109","drawer-trigger-active":"awsui_drawer-trigger-active_1uo6m_1740t_176",hide:"awsui_hide_1uo6m_1740t_184"},Gm=x.forwardRef(({id:e,contentClassName:t,toggleClassName:r,closeClassName:o,width:n,type:i,toggleRefs:a,topOffset:c,bottomOffset:l,ariaLabels:d,children:s,hideOpenButton:u,isOpen:h,isHidden:f,isMobile:p,onToggle:g,onClick:v,onLoseFocus:m,resizeHandle:y},C)=>{const _=B.useRef(null),{TagName:k,iconName:b}=Tc[i],{mainLabel:S,closeLabel:T,openLabel:L}=d,A=h?p?void 0:n:void 0,P=x.createElement(k,{ref:_,"aria-label":S,className:kr.toggle,"aria-hidden":h},x.createElement(vf,{ref:a.toggle,className:r,iconName:b,ariaLabel:L,onClick:()=>g(!0),ariaExpanded:h?void 0:!1}));return x.createElement("div",{ref:C,className:W(kr.drawer,{[kr.hide]:f,[kr["drawer-closed"]]:!h,[Pe["drawer-closed"]]:!h,[kr["drawer-mobile"]]:p}),style:{width:A},onBlur:m?D=>{(!D.relatedTarget||!D.currentTarget.contains(D.relatedTarget))&&m(D)}:void 0,onClick:D=>{var E;v&&v(D),h||(_.current===D.target||!(!((E=_.current)===null||E===void 0)&&E.contains(D.target)))&&g(!0)}},x.createElement("div",{id:e,style:{width:A,top:c,bottom:l},className:W(kr["drawer-content"],kr["drawer-content-clickable"],t)},!p&&!u&&P,x.createElement(k,{className:W(y&&kr["drawer-resize-content"]),"aria-label":S,"aria-hidden":!h},!p&&h&&y,x.createElement(g$,{ref:a.close,className:o,ariaLabel:T,onClick:()=>{g(!1)}}),s)))}),_O=x.forwardRef(({testUtilsClassName:e,ariaLabel:t,ariaExpanded:r,ariaControls:o,badge:n,itemId:i,isActive:a,trigger:c,onClick:l},d)=>x.createElement("div",{className:W(kr["drawer-trigger"],a&&kr["drawer-trigger-active"]),onClick:l},x.createElement(vf,{ref:d,className:e,iconName:c.iconName,iconSvg:c.iconSvg,ariaLabel:t,ariaExpanded:r,ariaControls:o,badge:n,testId:i&&`awsui-app-layout-trigger-${i}`}))),kO=({isMobile:e,topOffset:t,bottomOffset:r,activeDrawerId:o,ariaLabels:n,drawers:i,drawerRefs:a,onDrawerChange:c})=>{const l=x.useRef(null),d=B.useRef(o),[s,u]=zr(m=>m.contentBoxHeight),h=PS(l)==="compact";o&&(d.current=o);const f=()=>{if(s){const m=h?34:38,y=s/1.5;return Math.floor(y/m)}return 0},{visibleItems:p,overflowItems:g}=Cf(i,f(),o),v=!!g.find(m=>m.badge);return x.createElement("div",{className:W(kr.drawer,kr["drawer-closed"],Pe["drawer-closed"],{[kr["drawer-mobile"]]:e,[kr.hide]:i.length===1&&!!o}),ref:l},x.createElement("div",{ref:u,style:{top:t,bottom:r},className:W(kr["drawer-content"],{[kr["drawer-content-clickable"]]:i.length===1}),onClick:i.length===1?()=>c(i[0].id!==o?i[0].id:null):void 0},!e&&x.createElement("aside",{"aria-label":n==null?void 0:n.drawers,role:"region"},x.createElement("div",{className:W(kr["drawer-triggers-wrapper"]),role:"toolbar","aria-orientation":"vertical"},p.map((m,y)=>{var C;return x.createElement(_O,{key:y,testUtilsClassName:W(Pe["drawers-trigger"],m.id===Yr&&Pe["tools-toggle"]),ariaExpanded:o===m.id,ref:m.id===d.current?a.toggle:void 0,ariaLabel:(C=m.ariaLabels)===null||C===void 0?void 0:C.triggerButton,ariaControls:o===m.id?m.id:void 0,trigger:m.trigger,badge:m.badge,itemId:m.id,isActive:o===m.id,onClick:i.length!==1?()=>c(m.id!==o?m.id:null):void 0})}),g.length>0&&x.createElement("div",{className:W(kr["drawer-trigger"])},x.createElement(kf,{ariaLabel:v?n==null?void 0:n.drawersOverflowWithBadge:n==null?void 0:n.drawersOverflow,items:g,onItemClick:({detail:m})=>c(m.id)}))))))},OT=({position:e,panelRef:t,handleRef:r,onResize:o,hasTransitions:n=!1})=>{const i=B.useCallback(l=>{if(!(!t||!t.current||!r||!r.current))if(t.current.classList.remove(rr["with-motion"]),e==="side"){const d=l.clientX||0,s=r.current.getBoundingClientRect().width/2,u=t.current.getBoundingClientRect().right-d+s;o(u)}else{const d=l.clientY||0,s=r.current.getBoundingClientRect().height/2,u=t.current.getBoundingClientRect().bottom-d+s;o(u)}},[e,t,r,o]),a=B.useCallback(()=>{!t||!t.current||(n&&t.current.classList.add(rr["with-motion"]),document.body.classList.remove(rr["resize-active"]),document.body.classList.remove(rr[`resize-${e}`]),document.removeEventListener("pointerup",a),document.removeEventListener("pointermove",i))},[t,i,e,n]);return B.useCallback(()=>{document.body.classList.add(rr["resize-active"]),document.body.classList.add(rr[`resize-${e}`]),document.addEventListener("pointerup",a),document.addEventListener("pointermove",i)},[i,a,e])},lx=10,sx=60,CO=e=>!e||!e.current?{panelHeight:0,panelWidth:0}:{panelHeight:e.current.clientHeight,panelWidth:e.current.clientWidth},MT=({position:e,onResize:t,panelRef:r})=>o=>{let n,i;const{panelHeight:a,panelWidth:c}=CO(r);e==="side"?(n=c,i=window.innerWidth):(n=a,i=window.innerHeight);const l=e==="bottom"?ke.up:ke.left,d=e==="bottom"?ke.down:ke.right,s=e==="bottom"?ke.right:ke.down,u=e==="bottom"?ke.left:ke.up;let h=!0;switch(o.keyCode){case l:case s:t(n+lx);break;case d:case u:t(n-lx);break;case ke.pageUp:t(n+sx);break;case ke.pageDown:t(n-sx);break;case ke.home:t(i);break;case ke.end:t(0);break;default:h=!1}h&&(o.preventDefault(),o.stopPropagation())},SO=({className:e})=>x.createElement("svg",{focusable:!1,className:e,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},x.createElement("line",{strokeWidth:"2",x1:"2",y1:"5",x2:"14",y2:"5"}),x.createElement("line",{strokeWidth:"2",x1:"14",y1:"10",x2:"2",y2:"10"})),NT=SO,hn={drawer:"awsui_drawer_1r9lg_5jcsd_201",refresh:"awsui_refresh_1r9lg_5jcsd_201",animating:"awsui_animating_1r9lg_5jcsd_215","preference-icon--layout-border":"awsui_preference-icon--layout-border_1r9lg_5jcsd_238","preference-icon--layout-background":"awsui_preference-icon--layout-background_1r9lg_5jcsd_242","preference-icon--layout-header":"awsui_preference-icon--layout-header_1r9lg_5jcsd_245","preference-icon--border":"awsui_preference-icon--border_1r9lg_5jcsd_248","preference-icon--primary-button":"awsui_preference-icon--primary-button_1r9lg_5jcsd_252","preference-icon--secondary":"awsui_preference-icon--secondary_1r9lg_5jcsd_255","preference-icon--disabled-element":"awsui_preference-icon--disabled-element_1r9lg_5jcsd_258","preference-icon--separator":"awsui_preference-icon--separator_1r9lg_5jcsd_261","preference-icon--focus-text":"awsui_preference-icon--focus-text_1r9lg_5jcsd_264","preference-icon-refresh--layout-top":"awsui_preference-icon-refresh--layout-top_1r9lg_5jcsd_268","preference-icon-refresh--layout-main":"awsui_preference-icon-refresh--layout-main_1r9lg_5jcsd_271","preference-icon-refresh--primary":"awsui_preference-icon-refresh--primary_1r9lg_5jcsd_274","preference-icon-refresh--disabled":"awsui_preference-icon-refresh--disabled_1r9lg_5jcsd_277","preference-icon-refresh--column-header":"awsui_preference-icon-refresh--column-header_1r9lg_5jcsd_280","preference-icon-refresh--window":"awsui_preference-icon-refresh--window_1r9lg_5jcsd_283","preference-icon-refresh--secondary":"awsui_preference-icon-refresh--secondary_1r9lg_5jcsd_287","preference-icon-refresh--default":"awsui_preference-icon-refresh--default_1r9lg_5jcsd_290","preference-icon-refresh--separator":"awsui_preference-icon-refresh--separator_1r9lg_5jcsd_293","preference-icon-refresh--input-default":"awsui_preference-icon-refresh--input-default_1r9lg_5jcsd_296","preference-icon-refresh--heading":"awsui_preference-icon-refresh--heading_1r9lg_5jcsd_299",root:"awsui_root_1r9lg_5jcsd_303","preferences-button":"awsui_preferences-button_1r9lg_5jcsd_338","close-button":"awsui_close-button_1r9lg_5jcsd_342","drawer-closed":"awsui_drawer-closed_1r9lg_5jcsd_354","drawer-content-side":"awsui_drawer-content-side_1r9lg_5jcsd_359","drawer-content-bottom":"awsui_drawer-content-bottom_1r9lg_5jcsd_375","position-bottom":"awsui_position-bottom_1r9lg_5jcsd_381","position-side":"awsui_position-side_1r9lg_5jcsd_408",slider:"awsui_slider_1r9lg_5jcsd_414","slider-side":"awsui_slider-side_1r9lg_5jcsd_449","slider-wrapper-bottom":"awsui_slider-wrapper-bottom_1r9lg_5jcsd_456","slider-wrapper-side":"awsui_slider-wrapper-side_1r9lg_5jcsd_467","open-button":"awsui_open-button_1r9lg_5jcsd_478","open-button-side":"awsui_open-button-side_1r9lg_5jcsd_482","slider-icon":"awsui_slider-icon_1r9lg_5jcsd_491","slider-icon-bottom":"awsui_slider-icon-bottom_1r9lg_5jcsd_497","slider-icon-side":"awsui_slider-icon-side_1r9lg_5jcsd_501","pane-header-wrapper-bottom":"awsui_pane-header-wrapper-bottom_1r9lg_5jcsd_505","drawer-mobile":"awsui_drawer-mobile_1r9lg_5jcsd_516","drawer-disable-content-paddings":"awsui_drawer-disable-content-paddings_1r9lg_5jcsd_520","content-bottom":"awsui_content-bottom_1r9lg_5jcsd_529","pane-bottom-center-align":"awsui_pane-bottom-center-align_1r9lg_5jcsd_545","pane-bottom-content-nav-padding":"awsui_pane-bottom-content-nav-padding_1r9lg_5jcsd_550","pane-bottom-content-tools-padding":"awsui_pane-bottom-content-tools-padding_1r9lg_5jcsd_554","content-bottom-max-width":"awsui_content-bottom-max-width_1r9lg_5jcsd_558","content-side":"awsui_content-side_1r9lg_5jcsd_563","pane-header-wrapper-side":"awsui_pane-header-wrapper-side_1r9lg_5jcsd_573","pane-content-wrapper-side":"awsui_pane-content-wrapper-side_1r9lg_5jcsd_579",header:"awsui_header_1r9lg_5jcsd_586","header-text":"awsui_header-text_1r9lg_5jcsd_596","header-actions":"awsui_header-actions_1r9lg_5jcsd_609",divider:"awsui_divider_1r9lg_5jcsd_617"},TO=e=>{var t,r,o,n,{onResize:i,maxWidth:a,minWidth:c,refs:l,activeDrawer:d,toolsContent:s}=e,u=de(e,["onResize","maxWidth","minWidth","refs","activeDrawer","toolsContent"]);const{isOpen:h,children:f,width:p,isMobile:g}=u,v=Ml(c,p,a),m=(v-c)/(a-c)*100,y=T=>{const L=Ml(c,T,a),I=d==null?void 0:d.id;h&&I&&a>=c&&i({size:L,id:I})},C=B.useRef(null),_={position:"side",panelRef:C,handleRef:l.slider,onResize:y},k=OT(_),b=MT(_),S=x.createElement("div",{ref:l.slider,role:"slider",tabIndex:0,"aria-label":(t=d==null?void 0:d.ariaLabels)===null||t===void 0?void 0:t.resizeHandle,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":m,className:W(hn.slider,hn["slider-side"],Pe["drawers-slider"]),onKeyDown:b,onPointerDown:k},x.createElement(NT,{className:W(hn["slider-icon"],hn["slider-icon-side"])}));return x.createElement(Gm,Object.assign({},u,{id:d==null?void 0:d.id,width:v,ref:C,isHidden:!d,resizeHandle:!g&&(d==null?void 0:d.resizable)&&x.createElement("div",{className:hn["slider-wrapper-side"]},S),ariaLabels:{openLabel:(r=d==null?void 0:d.ariaLabels)===null||r===void 0?void 0:r.triggerButton,mainLabel:(o=d==null?void 0:d.ariaLabels)===null||o===void 0?void 0:o.drawerName,closeLabel:(n=d==null?void 0:d.ariaLabels)===null||n===void 0?void 0:n.closeButton}}),s&&x.createElement("div",{className:W((d==null?void 0:d.id)!==Yr&&kr.hide)},s),(d==null?void 0:d.id)!==Yr?f:null)},cx=160,zm=280,ux={"drawer-displayed":"awsui_drawer-displayed_1lh3u_1yevz_103","drawer-content":"awsui_drawer-content_1lh3u_1yevz_107"},jT=B.createContext(null),EO=jT.Provider;function LO(){const e=B.useContext(jT);if(!e)throw new Error("Split panel can only be used inside app layout");return e}function AO({displayed:e,children:t}){const{isOpen:r,size:o,topOffset:n,bottomOffset:i}=LO(),a=r&&t?o:void 0;return x.createElement("div",{className:W(e&&ux["drawer-displayed"]),style:{width:a},"data-testid":"side-split-panel-drawer"},x.createElement("div",{className:ux["drawer-content"],style:{width:a,top:n,bottom:i}},t))}function GT(e){var{children:t,size:r,getMaxHeight:o,maxWidth:n,onResize:i}=e,a=de(e,["children","size","getMaxHeight","maxWidth","onResize"]);const{position:c,reportSize:l,isOpen:d}=a,[s,u]=B.useState(r),h=c==="bottom"?cx:zm,f=c==="bottom"?s:n,p=Ml(h,r,f),g=(r-h)/(f-h)*100,v=m=>{const y=c==="side"?n:o(),C=c==="side"?y>=zm:y>=cx;d&&C&&i(Ml(h,m,y))};return B.useEffect(()=>{if(c!=="bottom")return;const m=requestAnimationFrame(()=>u(o()));return()=>cancelAnimationFrame(m)},[r,h,c,o]),B.useEffect(()=>{l(p)},[l,p]),B.useEffect(()=>{if(c!=="bottom")return;const m=()=>u(o());return window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[c,o]),x.createElement(EO,{value:Object.assign(Object.assign({},a),{size:p,relativeSize:g,onResize:v})},t)}function BO(e){const[t,r]=B.useState({left:0,right:0,width:Number.POSITIVE_INFINITY}),o=B.useCallback(()=>{if(!e||!document.body.clientWidth)return;const{left:i,right:a}=e.getBoundingClientRect(),c=document.body.clientWidth;r({left:i,right:c-a,width:c})},[e]);B.useEffect(()=>(window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)),[o]);const n=B.useCallback(()=>e,[e]);return yn(n,o),t}function zT(e){const t={toggle:B.useRef(null),slider:B.useRef(null),preferences:B.useRef(null)},r=B.useRef(null);return B.useEffect(()=>{var o,n,i,a;switch((o=r.current)===null||o===void 0?void 0:o.type){case"open":(n=t.slider.current)===null||n===void 0||n.focus();break;case"close":(i=t.toggle.current)===null||i===void 0||i.focus();break;case"position":(a=t.preferences.current)===null||a===void 0||a.focus();break}r.current=null},e),{refs:t,setLastInteraction:o=>r.current=o}}const DO=x.forwardRef((e,t)=>{var r,o,n,i,a,c,{navigation:l,navigationWidth:d=280,navigationHide:s,navigationOpen:u,tools:h,toolsWidth:f=290,toolsHide:p,toolsOpen:g,breadcrumbs:v,notifications:m,stickyNotifications:y,contentHeader:C,disableContentHeaderOverlap:_,content:k,contentType:b="default",disableContentPaddings:S,disableBodyScroll:T,maxContentWidth:L,minContentWidth:I,headerSelector:A="#b #h",footerSelector:P="#b #f",ariaLabels:D,splitPanel:E,splitPanelSize:R,splitPanelOpen:$,splitPanelPreferences:N,onSplitPanelPreferencesChange:M,onSplitPanelResize:O,onSplitPanelToggle:j,onNavigationChange:z,onToolsChange:F,drawers:K,onDrawerChange:U,activeDrawerId:Y}=e,V=de(e,["navigation","navigationWidth","navigationHide","navigationOpen","tools","toolsWidth","toolsHide","toolsOpen","breadcrumbs","notifications","stickyNotifications","contentHeader","disableContentHeaderOverlap","content","contentType","disableContentPaddings","disableBodyScroll","maxContentWidth","minContentWidth","headerSelector","footerSelector","ariaLabels","splitPanel","splitPanelSize","splitPanelOpen","splitPanelPreferences","onSplitPanelPreferencesChange","onSplitPanelResize","onSplitPanelToggle","onNavigationChange","onToolsChange","drawers","onDrawerChange","activeDrawerId"]);const q=!!V.__embeddedViewMode,ee=B.useRef(null),X=rn(),ie=yT(b,{maxContentWidth:L,minContentWidth:I},!1),[se=!1,me]=go(u,z,X?!1:ie.navigationOpen,{componentName:"AppLayout",controlledProp:"navigationOpen",changeHandler:"onNavigationChange"}),[ve=!1,Q]=go(g,F,X?!1:ie.toolsOpen,{componentName:"AppLayout",controlledProp:"toolsOpen",changeHandler:"onToolsChange"}),oe=Ze=>{Q(Ze),ue(),xe(F,{open:Ze})},{drawers:Z,activeDrawer:G,minDrawerSize:H,activeDrawerSize:te,activeDrawerId:ae,ariaLabelsWithDrawers:le,onActiveDrawerChange:we,onActiveDrawerResize:ce}=IT(Object.assign({drawers:K,onDrawerChange:U,activeDrawerId:Y},V),D,{ariaLabels:D,tools:h,toolsOpen:ve,toolsHide:p,toolsWidth:f,onToolsToggle:oe});D=le;const ye=!!Z,{refs:Ae,setFocus:ne}=Tl(se),{refs:pe,setFocus:ue,loseFocus:_e}=Tl(ve||G!==void 0,!0),{refs:Be,setFocus:Re,loseFocus:qe}=Tl(!!ae,!0,ae),je=ao(Ze=>{me(Ze),ne(),xe(z,{open:Ze})}),Ve=Ze=>{tn(Ze.target,nb=>nb.tagName==="A"&&!!nb.href)&&je(!1)};B.useEffect(()=>{X&&je(!1)},[X,je]);const $e=!s&&se,Ke=!p&&ve,{contentHeightStyle:Ot,headerHeight:Ft,footerHeight:cr}=bO(A,P,T),[er,bt]=zr(Ze=>Ze.contentBoxHeight),lt=$e||Ke||!!G,wt=er?er>0:!1,dt=y?er:null,[st,Ht]=go(N,M,void 0,{componentName:"AppLayout",controlledProp:"splitPanelPreferences",changeHandler:"onSplitPanelPreferencesChange"}),[mt=!1,Lr]=go($,j,!1,{componentName:"AppLayout",controlledProp:"splitPanelOpen",changeHandler:"onSplitPanelToggle"}),Me=(st==null?void 0:st.position)||"bottom",[He,Xe]=B.useState({displayed:!1,ariaLabel:void 0}),Rt=!!(E&&(He.displayed||mt)),Ee=40,Oe=s?0:se?d:Ee,Qt=G&&te?te:p||Z?0:ve?f:Ee,wr=$T(Me),[Wr=wr,ko]=go(R,O,wr,{componentName:"AppLayout",controlledProp:"splitPanelSize",changeHandler:"onSplitPanelResize"}),Or=B.useRef(null),tt=B.useRef(null),{refs:xt,setLastInteraction:Mt}=zT([st,mt]),Ka=B.useCallback(Ze=>{Ht(Ze),Mt({type:"position"}),xe(M,Ze)},[Ht,M,Mt]),qa=B.useCallback(Ze=>{ko(Ze),xe(O,{size:Ze})},[ko,O]),rt=B.useCallback(()=>{Lr(!mt),Mt({type:mt?"close":"open"}),xe(j,{open:!mt})},[Lr,mt,j,Mt]),We=ao(()=>{if(typeof document>"u")return 0;if(T&&tt.current){const Ze=tt.current.clientHeight;return Ze<nx?Ze:Ze-ix}else{const Ze=document.documentElement.clientHeight-Ft-cr;return Ze<nx?Ze-wO:Ze-ix}}),{left:_t,right:tr,width:jo}=BO(ee.current),Ya=Z&&Z.length>1?Ee:0,Xa=Math.max(0,jo-_t-tr-Oe-ie.minContentWidth-80-Ya),ho=X||Xa-Qt<zm,ur=ho?"bottom":Me,Qa=Rt&&ur==="side",dp=Qa?mt?Wr:Ee:0,hp=Math.max(0,Xa-Qt),fp=Math.max(0,Xa-dp),pp=s||X?0:Ee,vD=X?void 0:{maxWidth:ie.maxContentWidth},[yD,bD]=B.useState(0),[wD,xD]=B.useState(0),_D={topOffset:Ft+(ur==="bottom"&&dt||0),bottomOffset:cr,leftOffset:_t+(X?0:!s&&se?d:pp),rightOffset:X?0:tr+Qt+Ya,position:ur,size:Wr,maxWidth:hp,getMaxHeight:We,disableContentPaddings:S,contentWidthStyles:vD,isOpen:mt,isForcedPosition:ho,onResize:qa,onToggle:rt,onPreferencesChange:Ka,setSplitPanelToggle:Xe,reportSize:bD,reportHeaderHeight:xD,refs:xt},tb=E&&x.createElement(GT,Object.assign({},_D),ur==="side"?x.createElement(AO,{displayed:Rt},E):E),rb={contentType:b,navigationPadding:s||!!se,contentWidthStyles:X?void 0:{minWidth:ie.minContentWidth,maxWidth:ie.maxContentWidth},toolsPadding:p||ye&&!G&&(!Rt||ur!=="side")||Ke||Qa&&mt,isMobile:X};B.useImperativeHandle(t,()=>({openTools:()=>oe(!0),closeNavigationIfNecessary:()=>{X&&je(!1)},focusToolsClose:()=>{ye?Re(!0):ue(!0)},focusActiveDrawer:()=>Re(!0),focusSplitPanel:()=>{var Ze;return(Ze=xt.slider.current)===null||Ze===void 0?void 0:Ze.focus()}}));const ob=(r=!Rt||ur!=="bottom"?void 0:mt?yD:wD)!==null&&r!==void 0?r:void 0,[gp,kD]=zr(Ze=>Ze.contentBoxHeight);return x.createElement("div",{className:W(rr.root,Pe.root,T&&rr["root-no-scroll"]),ref:ee,style:Ot},X&&!q&&(!p||!s||v)&&x.createElement(yO,{anyPanelOpen:lt,toggleRefs:{navigation:Ae.toggle,tools:pe.toggle},topOffset:Ft,ariaLabels:D,navigationHide:s,toolsHide:p,onNavigationOpen:()=>je(!0),onToolsOpen:()=>oe(!0),unfocusable:lt,mobileBarRef:kD,drawers:Z,activeDrawerId:ae,onDrawerChange:Ze=>{we(Ze),Ze!==ae&&(ue(),Re())}},v),x.createElement("div",{className:W(rr.layout,T&&rr["layout-no-scroll"])},!s&&x.createElement(Gm,{contentClassName:Pe.navigation,toggleClassName:Pe["navigation-toggle"],closeClassName:Pe["navigation-close"],ariaLabels:Tc.navigation.getLabels(D),bottomOffset:cr,topOffset:Ft,isMobile:X,isOpen:se,onClick:X?Ve:void 0,onToggle:je,toggleRefs:Ae,type:"navigation",width:d},l),x.createElement("main",{ref:tt,className:W(rr["layout-main"],{[rr["layout-main-scrollable"]]:T,[Pe["disable-body-scroll-root"]]:T,[rr.unfocusable]:X&&lt})},x.createElement("div",{style:{marginBottom:ob}},m&&x.createElement(p$,{disableContentPaddings:S,testUtilsClassName:Pe.notifications,labels:D,topOffset:T?0:Ft,sticky:!X&&y,ref:bt},m),(!X&&v||C)&&x.createElement(ax,Object.assign({},rb),!X&&v&&x.createElement("div",{className:W(Pe.breadcrumbs,rr["breadcrumbs-desktop"])},v),C&&x.createElement("div",{className:W(rr["content-header-wrapper"],!wt&&(X||!v)&&rr["content-extra-top-padding"],!wt&&!v&&rr["content-header-wrapper-first-child"],!_&&rr["content-header-wrapper-overlapped"])},C)),x.createElement(ax,Object.assign({},rb,{ref:Or,disablePaddings:S,className:W(!S&&rr["content-wrapper"],!S&&(X||!v)&&!C&&rr["content-extra-top-padding"],Pe.content,!_&&C&&rr["content-overlapped"],!wt&&!v&&!X&&!C&&rr["content-wrapper-first-child"])}),x.createElement(Sf.Provider,{value:{stickyOffsetTop:(T?X?-9999:0:Ft)+(X?0:dt!==null?dt:0),stickyOffsetBottom:cr+(ob||0),mobileBarHeight:gp??0}},k))),ur==="bottom"&&tb),ur==="side"&&tb,ye?x.createElement(TO,{contentClassName:W(ae&&Pe["active-drawer"],ae===Yr&&Pe.tools),toggleClassName:Pe["tools-toggle"],closeClassName:W(Pe["active-drawer-close-button"],ae===Yr&&Pe["tools-close"]),ariaLabels:{openLabel:(o=G==null?void 0:G.ariaLabels)===null||o===void 0?void 0:o.triggerButton,closeLabel:(n=G==null?void 0:G.ariaLabels)===null||n===void 0?void 0:n.closeButton,mainLabel:(i=G==null?void 0:G.ariaLabels)===null||i===void 0?void 0:i.drawerName,resizeHandle:(a=G==null?void 0:G.ariaLabels)===null||a===void 0?void 0:a.resizeHandle},minWidth:H,maxWidth:fp,width:te,bottomOffset:cr,topOffset:Ft,isMobile:X,onToggle:Ze=>{Ze||(ue(),Re(),we(null))},isOpen:!0,hideOpenButton:!0,toggleRefs:Be,type:"tools",onLoseFocus:qe,activeDrawer:G,onResize:Ze=>ce(Ze),refs:Be,toolsContent:(c=Z==null?void 0:Z.find(Ze=>Ze.id===Yr))===null||c===void 0?void 0:c.content},G==null?void 0:G.content):!p&&x.createElement(Gm,{contentClassName:Pe.tools,toggleClassName:Pe["tools-toggle"],closeClassName:Pe["tools-close"],ariaLabels:Tc.tools.getLabels(D),width:f,bottomOffset:cr,topOffset:Ft,isMobile:X,onToggle:oe,isOpen:ve,toggleRefs:pe,type:"tools",onLoseFocus:_e},h),ye&&Z.length>0&&x.createElement(kO,{drawerRefs:Be,bottomOffset:cr,topOffset:Ft,isMobile:X,drawers:Z,activeDrawerId:ae,onDrawerChange:Ze=>{ae!==Ze&&(ue(),Re()),we(Ze)},ariaLabels:D})))}),RO=DO,FT=B.createContext(()=>{}),he={background:"awsui_background_hyvsj_zz5e8_99","scrolling-background":"awsui_scrolling-background_hyvsj_zz5e8_102","sticky-background":"awsui_sticky-background_hyvsj_zz5e8_108","has-sticky-notifications":"awsui_has-sticky-notifications_hyvsj_zz5e8_116",breadcrumbs:"awsui_breadcrumbs_hyvsj_zz5e8_129","has-sticky-background":"awsui_has-sticky-background_hyvsj_zz5e8_139","drawers-container":"awsui_drawers-container_hyvsj_zz5e8_151","has-open-drawer":"awsui_has-open-drawer_hyvsj_zz5e8_162","disable-body-scroll":"awsui_disable-body-scroll_hyvsj_zz5e8_185","drawers-desktop-triggers-container":"awsui_drawers-desktop-triggers-container_hyvsj_zz5e8_190","has-multiple-triggers":"awsui_has-multiple-triggers_hyvsj_zz5e8_231","drawers-mobile-triggers-container":"awsui_drawers-mobile-triggers-container_hyvsj_zz5e8_241","drawers-trigger-content":"awsui_drawers-trigger-content_hyvsj_zz5e8_245","drawers-trigger-overflow":"awsui_drawers-trigger-overflow_hyvsj_zz5e8_259","drawers-trigger":"awsui_drawers-trigger_hyvsj_zz5e8_245",drawer:"awsui_drawer_hyvsj_zz5e8_151","drawer-content-container":"awsui_drawer-content-container_hyvsj_zz5e8_290","drawer-close-button":"awsui_drawer-close-button_hyvsj_zz5e8_299","drawer-content":"awsui_drawer-content_hyvsj_zz5e8_290","drawer-content-hidden":"awsui_drawer-content-hidden_hyvsj_zz5e8_307","drawer-slider":"awsui_drawer-slider_hyvsj_zz5e8_310","is-drawer-open":"awsui_is-drawer-open_hyvsj_zz5e8_317",content:"awsui_content_hyvsj_zz5e8_343",layout:"awsui_layout_hyvsj_zz5e8_364","has-max-content-width":"awsui_has-max-content-width_hyvsj_zz5e8_447","content-type-dashboard":"awsui_content-type-dashboard_hyvsj_zz5e8_462","content-type-table":"awsui_content-type-table_hyvsj_zz5e8_476","content-type-cards":"awsui_content-type-cards_hyvsj_zz5e8_476","is-overlap-disabled":"awsui_is-overlap-disabled_hyvsj_zz5e8_482","is-hide-mobile-toolbar":"awsui_is-hide-mobile-toolbar_hyvsj_zz5e8_485","has-content-gap-left":"awsui_has-content-gap-left_hyvsj_zz5e8_517","has-content-gap-right":"awsui_has-content-gap-right_hyvsj_zz5e8_520","content-first-child-notifications":"awsui_content-first-child-notifications_hyvsj_zz5e8_530","has-breadcrumbs":"awsui_has-breadcrumbs_hyvsj_zz5e8_533","content-first-child-header":"awsui_content-first-child-header_hyvsj_zz5e8_536","has-header":"awsui_has-header_hyvsj_zz5e8_536","content-first-child-main":"awsui_content-first-child-main_hyvsj_zz5e8_557","disable-content-paddings":"awsui_disable-content-paddings_hyvsj_zz5e8_557","has-split-panel":"awsui_has-split-panel_hyvsj_zz5e8_600","split-panel-position-bottom":"awsui_split-panel-position-bottom_hyvsj_zz5e8_600","block-body-scroll":"awsui_block-body-scroll_hyvsj_zz5e8_616",unfocusable:"awsui_unfocusable_hyvsj_zz5e8_621",container:"awsui_container_hyvsj_zz5e8_631","is-navigation-open":"awsui_is-navigation-open_hyvsj_zz5e8_657","is-tools-open":"awsui_is-tools-open_hyvsj_zz5e8_660","is-split-panel-open":"awsui_is-split-panel-open_hyvsj_zz5e8_660","split-panel-position-side":"awsui_split-panel-position-side_hyvsj_zz5e8_660","has-active-drawer":"awsui_has-active-drawer_hyvsj_zz5e8_660","mobile-toolbar":"awsui_mobile-toolbar_hyvsj_zz5e8_669","remove-high-contrast-header":"awsui_remove-high-contrast-header_hyvsj_zz5e8_686","mobile-toolbar-nav":"awsui_mobile-toolbar-nav_hyvsj_zz5e8_690","mobile-toolbar-breadcrumbs":"awsui_mobile-toolbar-breadcrumbs_hyvsj_zz5e8_694","mobile-toolbar-tools":"awsui_mobile-toolbar-tools_hyvsj_zz5e8_698","navigation-container":"awsui_navigation-container_hyvsj_zz5e8_707","show-navigation":"awsui_show-navigation_hyvsj_zz5e8_751",animating:"awsui_animating_hyvsj_zz5e8_774",showButtons:"awsui_showButtons_hyvsj_zz5e8_1",navigation:"awsui_navigation_hyvsj_zz5e8_707",openNavigation:"awsui_openNavigation_hyvsj_zz5e8_1","animated-content":"awsui_animated-content_hyvsj_zz5e8_836","hide-navigation":"awsui_hide-navigation_hyvsj_zz5e8_845",notifications:"awsui_notifications_hyvsj_zz5e8_855","sticky-notifications":"awsui_sticky-notifications_hyvsj_zz5e8_861","split-panel-bottom":"awsui_split-panel-bottom_hyvsj_zz5e8_878","position-bottom":"awsui_position-bottom_hyvsj_zz5e8_925",openSplitPanelBottom:"awsui_openSplitPanelBottom_hyvsj_zz5e8_1","split-panel-side":"awsui_split-panel-side_hyvsj_zz5e8_954","position-side":"awsui_position-side_hyvsj_zz5e8_967","tools-container":"awsui_tools-container_hyvsj_zz5e8_989",tools:"awsui_tools_hyvsj_zz5e8_989",openTools:"awsui_openTools_hyvsj_zz5e8_1","has-tools-form-persistence":"awsui_has-tools-form-persistence_hyvsj_zz5e8_1086","hide-tools":"awsui_hide-tools_hyvsj_zz5e8_1096","show-tools":"awsui_show-tools_hyvsj_zz5e8_1108","has-tools-form":"awsui_has-tools-form_hyvsj_zz5e8_1086","trigger-badge-wrapper":"awsui_trigger-badge-wrapper_hyvsj_zz5e8_1191",trigger:"awsui_trigger_hyvsj_zz5e8_1191",selected:"awsui_selected_hyvsj_zz5e8_1265",badge:"awsui_badge_hyvsj_zz5e8_1285","trigger-wrapper":"awsui_trigger-wrapper_hyvsj_zz5e8_1289",dot:"awsui_dot_hyvsj_zz5e8_1300"};function La({children:e}){const{footerHeight:t,handleSplitPanelClick:r,handleSplitPanelPreferencesChange:o,handleSplitPanelResize:n,headerHeight:i,isSplitPanelForcedPosition:a,isSplitPanelOpen:c,setSplitPanelReportedSize:l,setSplitPanelReportedHeaderHeight:d,setSplitPanelToggle:s,splitPanelPosition:u,splitPanelRefs:h,splitPanelSize:f}=Jr(),p={bottomOffset:0,getMaxHeight:()=>{const g=document.documentElement.clientHeight-i-t;return g<400?g-40:g-250},maxWidth:typeof document<"u"?document.documentElement.clientWidth:Number.POSITIVE_INFINITY,isForcedPosition:a,isOpen:c,leftOffset:0,onPreferencesChange:o,onResize:n,onToggle:r,position:u,reportSize:l,reportHeaderHeight:d,rightOffset:0,size:f||0,topOffset:0,setSplitPanelToggle:s,refs:h};return x.createElement(GT,Object.assign({},p),e)}function IO(){const{disableBodyScroll:e,hasOpenDrawer:t,isNavigationOpen:r,isSplitPanelOpen:o,splitPanel:n,splitPanelPosition:i,splitPanelReportedSize:a,splitPanelReportedHeaderHeight:c}=Jr();return n?x.createElement(Ha,{in:o??!1,exit:!1},(l,d)=>x.createElement("section",{className:W(he["split-panel-bottom"],he[`position-${i}`],{[he.animating]:l==="entering",[he["disable-body-scroll"]]:e,[he["has-open-drawer"]]:t,[he["is-navigation-open"]]:r,[he["is-split-panel-open"]]:o}),ref:d,style:{[sr.splitPanelReportedSize]:`${a}px`,[sr.splitPanelReportedHeaderSize]:`${c}px`}},x.createElement(La,null),i==="bottom"&&n)):null}function PO(){const{isSplitPanelOpen:e,splitPanel:t,splitPanelPosition:r,splitPanelMaxWidth:o,splitPanelMinWidth:n,splitPanelControlId:i,isToolsOpen:a,activeDrawerId:c}=Jr();return t?x.createElement("section",{id:i,"aria-hidden":!e||r==="bottom",className:W(he["split-panel-side"],he[`position-${r}`],{[he["is-split-panel-open"]]:e,[he["has-open-drawer"]]:!!c||a}),style:{[sr.splitPanelMaxWidth]:`${o}px`,[sr.splitPanelMinWidth]:`${n}px`}},r==="side"&&t):null}function $O(e,t){let r="bottom";return!e&&(t==null?void 0:t.position)==="side"&&(r="side"),r}La.Bottom=IO;La.Side=PO;function OO(e,{activeDrawer:t,activeDrawerSize:r,onActiveDrawerResize:o,drawersRefs:n,isToolsOpen:i,drawersMaxWidth:a}){var c,l;const s=Math.min((c=t==null?void 0:t.defaultSize)!==null&&c!==void 0?c:Number.POSITIVE_INFINITY,290),[u,h]=B.useState(0),f=!t&&!i?0:r;B.useEffect(()=>{const C=requestAnimationFrame(()=>{const _=a;h((f-s)/(_-s)*100)});return()=>cancelAnimationFrame(C)},[f,a,s]);const p=C=>{const _=a,k=Ml(s,C,_),b=t==null?void 0:t.id;b&&_>=s&&o({size:k,id:b})},g={position:"side",panelRef:e,handleRef:n.slider,onResize:p,hasTransitions:!0},v=OT(g),m=MT(g),y=x.createElement("div",{ref:n.slider,role:"slider",tabIndex:0,"aria-label":(l=t==null?void 0:t.ariaLabels)===null||l===void 0?void 0:l.resizeHandle,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":u,className:W(hn.slider,hn["slider-side"],Pe["drawers-slider"]),onKeyDown:m,onPointerDown:v},x.createElement(NT,{className:W(hn["slider-icon"],hn["slider-icon-side"])}));return{resizeHandle:x.createElement("div",{className:he["drawer-slider"]},y),drawerSize:f}}function MO({contentHeader:e,disableContentHeaderOverlap:t,layoutElement:r}){const o=!!e,[n,i]=B.useState(o),a=B.useCallback(c=>{const l=o||c>0;i(l);const d=typeof r!="function"&&(r==null?void 0:r.current);d&&(t||!l||c<=0?d.style.removeProperty(sr.overlapHeight):d.style.setProperty(sr.overlapHeight,`${c}px`))},[o,r,t]);return{hasBackgroundOverlap:n,updateBackgroundOverlapHeight:a}}const HT=B.createContext(null);function Jr(){const e=B.useContext(HT);if(!e)throw new Error("Invariant violation: this context is only available inside app layout");return e}const NO=x.forwardRef((e,t)=>{var r,o,n,i,a,c,{toolsHide:l,toolsOpen:d,navigationHide:s,navigationOpen:u,contentType:h="default",headerSelector:f="#b #h",footerSelector:p="#b #h",children:g,splitPanel:v}=e,m=de(e,["toolsHide","toolsOpen","navigationHide","navigationOpen","contentType","headerSelector","footerSelector","children","splitPanel"]);const y=rn(),C=!!m.__embeddedViewMode,[_,k]=B.useState(!1),S=((1<<30)-1)/60/2,T=m.maxContentWidth&&m.maxContentWidth>S?S:(r=m.maxContentWidth)!==null&&r!==void 0?r:0,L=(o=m.minContentWidth)!==null&&o!==void 0?o:280,I=yT(h,{maxContentWidth:T,minContentWidth:L},!0),[A=!1,P]=go(u,m.onNavigationChange,y?!1:I.navigationOpen,{componentName:"AppLayout",controlledProp:"navigationOpen",changeHandler:"onNavigationChange"}),{refs:D,setFocus:E}=Tl(A),R=ao(function(_t){P(_t),E(),xe(m.onNavigationChange,{open:_t})});B.useEffect(()=>{y&&R(!1)},[y,R]);const $=(n=m.toolsWidth)!==null&&n!==void 0?n:290,N=m.toolsWidth===void 0,[M=!1,O]=go(d,m.onToolsChange,y?!1:I.toolsOpen,{componentName:"AppLayout",controlledProp:"toolsOpen",changeHandler:"onToolsChange"}),{refs:j,setFocus:z,loseFocus:F}=Tl(M,!0),K=B.useCallback(function(_t,tr){O(_t),!tr&&z(),xe(m.onToolsChange,{open:_t})},[m.onToolsChange,O,z]),U=hh(f),Y=hh(p),V=280,[q,ee]=B.useState(V),[X,ie]=go(m.splitPanelOpen,m.onSplitPanelToggle,!1,{componentName:"AppLayout",controlledProp:"splitPanelOpen",changeHandler:"onSplitPanelToggle"}),[se,me]=go(m.splitPanelPreferences,m.onSplitPanelPreferencesChange,void 0,{componentName:"AppLayout",controlledProp:"splitPanelPreferences",changeHandler:"onSplitPanelPreferencesChange"}),{refs:ve,setLastInteraction:Q}=zT([se,X]),oe=B.useCallback(function(){ie(!X),Q({type:X?"close":"open"}),xe(m.onSplitPanelToggle,{open:!X})},[m.onSplitPanelToggle,X,ie,Q]),[Z,G]=B.useState(!1),H=$O(Z,se);B.useLayoutEffect(function(){G(V>q)},[q,V]);const[te,ae]=B.useState(0),[le,we]=B.useState(0),[ce,ye]=B.useState({displayed:!1,ariaLabel:void 0}),Ae=!!(ce.displayed||X&&v),ne=De("split-panel-"),pe=De("tools-"),[ue,_e]=go(m.splitPanelSize,m.onSplitPanelResize,$T(H),{componentName:"AppLayout",controlledProp:"splitPanelSize",changeHandler:"onSplitPanelResize"}),Be=B.useCallback(We=>{_e(We),xe(m.onSplitPanelResize,{size:We})},[m.onSplitPanelResize,_e]),Re=B.useCallback(function(_t){me(_t),Q({type:"position"}),xe(m.onSplitPanelPreferencesChange,_t)},[m.onSplitPanelPreferencesChange,me,Q]),qe=IT(m,m.ariaLabels,{ariaLabels:m.ariaLabels,toolsHide:l,toolsOpen:M,tools:m.tools,toolsWidth:$,onToolsToggle:K}),{drawers:je,activeDrawer:Ve,activeDrawerId:$e,minDrawerSize:Ke,onActiveDrawerChange:Ot,onActiveDrawerResize:Ft,activeDrawerSize:cr}=qe,er=de(qe,["drawers","activeDrawer","activeDrawerId","minDrawerSize","onActiveDrawerChange","onActiveDrawerResize","activeDrawerSize"]),[bt,lt]=B.useState($),wt=!!je&&je.length>0,{refs:dt,setFocus:st,loseFocus:Ht}=Tl(!!$e,!0,$e),mt=B.useRef(null),{resizeHandle:Lr,drawerSize:Me}=OO(mt,{onActiveDrawerResize:Ft,activeDrawerSize:cr,activeDrawer:Ve,drawersRefs:dt,isToolsOpen:M,drawersMaxWidth:bt}),He=(We,_t)=>{Ot(We!==$e?We:null),!_t&&st()};let Xe=je?je.length:l?0:1;Ae&&H==="side"&&Xe++;const Rt=!!$e||!l&&M||Ae&&H==="side"&&X,Ee=y&&(!!$e||!s&&A||!l&&M),[Oe,Qe]=zr(We=>We.contentBoxWidth),Qt=Oe??0,wr=B.useRef(null),[Wr,ko]=B.useState(0),{hasBackgroundOverlap:Or,updateBackgroundOverlapHeight:tt}=MO({contentHeader:m.contentHeader,disableContentHeaderOverlap:m.disableContentHeaderOverlap,layoutElement:Qe});B.useLayoutEffect(function(){var _t,tr;ko((tr=(_t=wr==null?void 0:wr.current)===null||_t===void 0?void 0:_t.offsetLeft)!==null&&tr!==void 0?tr:0)},[Qt,A,M,te]),B.useEffect(function(){return y&&(A||M||Ve)?document.body.classList.add(he["block-body-scroll"]):document.body.classList.remove(he["block-body-scroll"]),function(){document.body.classList.remove(he["block-body-scroll"])}},[y,A,M,Ve]);const[xt,Mt]=zr(We=>We.contentBoxHeight),Ka=xt??0,qa=Ka>0;let rt=Y;return Ae&&H==="bottom"&&(X?rt+=te:rt+=le),B.useLayoutEffect(function(){const jo=()=>je?$e?Me:0:M?$:0;ee(Qt-Wr-L-50-120-jo()),lt(Qt-Wr-L-50-120)},[$e,Me,je,A,M,Qt,Wr,L,$]),B.useImperativeHandle(t,function(){return{closeNavigationIfNecessary:function(){y&&R(!1)},openTools:function(){K(!0)},focusToolsClose:()=>{wt?st(!0):z(!0)},focusActiveDrawer:()=>st(!0),focusSplitPanel:()=>{var _t;return(_t=ve.slider.current)===null||_t===void 0?void 0:_t.focus()}}},[y,R,K,z,st,ve.slider,wt]),x.createElement(HT.Provider,{value:Object.assign(Object.assign({},m),{activeDrawerId:$e,contentType:h,drawers:je,drawersAriaLabel:(i=er.ariaLabelsWithDrawers)===null||i===void 0?void 0:i.drawers,drawersOverflowAriaLabel:(a=er.ariaLabelsWithDrawers)===null||a===void 0?void 0:a.drawersOverflow,drawersOverflowWithBadgeAriaLabel:(c=er.ariaLabelsWithDrawers)===null||c===void 0?void 0:c.drawersOverflowWithBadge,drawersRefs:dt,drawersMinWidth:Ke,drawersMaxWidth:bt,drawerSize:Me,drawerRef:mt,resizeHandle:Lr,drawersTriggerCount:Xe,headerHeight:U,footerHeight:Y,hasDefaultToolsWidth:N,hasDrawerViewportOverlay:Ee,handleDrawersClick:He,handleNavigationClick:R,handleSplitPanelClick:oe,handleSplitPanelPreferencesChange:Re,handleSplitPanelResize:Be,handleToolsClick:K,hasBackgroundOverlap:Or,hasNotificationsContent:qa,hasOpenDrawer:Rt,hasStickyBackground:_,isBackgroundOverlapDisabled:m.disableContentHeaderOverlap||!Or,isMobile:y,isNavigationOpen:A??!1,isSplitPanelForcedPosition:Z,isSplitPanelOpen:X,isToolsOpen:M,layoutElement:Qe,layoutWidth:Qt,loseToolsFocus:F,loseDrawersFocus:Ht,mainElement:wr,mainOffsetLeft:Wr,maxContentWidth:T,minContentWidth:L,navigationHide:s,navigationRefs:D,notificationsElement:Mt,notificationsHeight:Ka,offsetBottom:rt,setHasStickyBackground:k,setSplitPanelReportedSize:ae,setSplitPanelReportedHeaderHeight:we,splitPanel:v,splitPanelControlId:ne,splitPanelDisplayed:Ae,splitPanelMaxWidth:q,splitPanelMinWidth:V,splitPanelPosition:H,splitPanelPreferences:se,splitPanelReportedSize:te,splitPanelReportedHeaderHeight:le,splitPanelSize:ue,splitPanelToggle:ce,setSplitPanelToggle:ye,splitPanelRefs:ve,toolsControlId:pe,toolsHide:l,toolsOpen:M,toolsWidth:$,toolsRefs:j,__embeddedViewMode:C})},x.createElement(Sf.Provider,{value:{stickyOffsetBottom:rt,stickyOffsetTop:0,setHasStickyBackground:k}},x.createElement(FT.Provider,{value:tt},g)))}),jn=()=>!!vT("removeHighContrastHeader"),_n=()=>jn()?"":"awsui-context-content-header";function jO(){const{breadcrumbs:e,hasBackgroundOverlap:t,hasNotificationsContent:r,hasStickyBackground:o,isMobile:n,stickyNotifications:i}=Jr();return!r&&(!e||n)&&!t?null:x.createElement("div",{className:W(he.background,_n())},x.createElement("div",{className:he["scrolling-background"]}),!n&&o&&x.createElement("div",{className:W(he["sticky-background"],{[he["has-sticky-notifications"]]:i})}))}function GO(){const{breadcrumbs:e,hasStickyBackground:t,isMobile:r}=Jr();return r||!e?null:x.createElement("div",{className:W(he.breadcrumbs,Pe.breadcrumbs,{[he["has-sticky-background"]]:t},_n())},e)}function zO({ariaLabel:e,className:t,iconName:r,iconSvg:o,ariaExpanded:n,ariaControls:i,onClick:a,testId:c,badge:l,selected:d=!1},s){return x.createElement("div",{className:W(he["trigger-wrapper"],jn()&&he["remove-high-contrast-header"])},x.createElement("button",{"aria-expanded":n,"aria-controls":i,"aria-haspopup":!0,"aria-label":e,className:W(he.trigger,{[he.selected]:d,[he.badge]:l},t),onClick:a,ref:s,type:"button","data-testid":c},x.createElement("span",{className:W(l&&he["trigger-badge-wrapper"])},x.createElement(ze,{name:r,svg:o}))),l&&x.createElement("div",{className:W(he.dot)}))}const El=x.forwardRef(zO);function FO(){const{disableBodyScroll:e,drawers:t,drawersTriggerCount:r,hasDrawerViewportOverlay:o,hasOpenDrawer:n,isNavigationOpen:i,navigationHide:a,isMobile:c}=Jr(),l=o&&i&&!a;return!t||r===0?null:x.createElement("div",{className:W(he["drawers-container"],{[he["disable-body-scroll"]]:e,[he["has-open-drawer"]]:n,[he.unfocusable]:l})},x.createElement(La.Side,null),x.createElement(HO,null),!c&&x.createElement(WO,null))}function HO(){var e,t,r,o;const{activeDrawerId:n,ariaLabels:i,drawers:a,drawersRefs:c,handleDrawersClick:l,handleToolsClick:d,hasDrawerViewportOverlay:s,isMobile:u,isNavigationOpen:h,navigationHide:f,loseDrawersFocus:p,resizeHandle:g,drawerSize:v,drawersMinWidth:m,drawersMaxWidth:y,drawerRef:C}=Jr(),_=(e=a==null?void 0:a.find(A=>A.id===n))!==null&&e!==void 0?e:null,k={closeButton:n?(t=_==null?void 0:_.ariaLabels)===null||t===void 0?void 0:t.closeButton:i==null?void 0:i.toolsClose,content:n?(r=_==null?void 0:_.ariaLabels)===null||r===void 0?void 0:r.drawerName:i==null?void 0:i.tools},b=!n,S=b||s&&h&&!f,T=n===Yr,L=(o=a==null?void 0:a.find(A=>A.id===Yr))===null||o===void 0?void 0:o.content,I=Ml(m,v,y);return x.createElement("aside",{id:n??void 0,"aria-hidden":b,"aria-label":k.content,className:W(he.drawer,{[he["is-drawer-open"]]:n,[he.unfocusable]:S,[Pe["active-drawer"]]:n,[Pe.tools]:T}),style:Object.assign({},!u&&v&&{[sr.drawerSize]:`${I}px`}),ref:C,onBlur:A=>{(!A.relatedTarget||!A.currentTarget.contains(A.relatedTarget))&&p()}},!u&&(_==null?void 0:_.resizable)&&g,x.createElement("div",{className:he["drawer-content-container"]},x.createElement("div",{className:W(he["drawer-close-button"])},x.createElement(pt,{ariaLabel:k.closeButton,className:W({[Pe["active-drawer-close-button"]]:n,[Pe["tools-close"]]:T}),formAction:"none",iconName:u?"close":"angle-right",onClick:()=>{l(n),d(!1)},ref:c.close,variant:"icon"})),L&&x.createElement("div",{className:W(he["drawer-content"],n!==Yr&&he["drawer-content-hidden"])},L),n!==Yr&&x.createElement("div",{className:he["drawer-content"]},n&&(_==null?void 0:_.content))))}function WO(){const{activeDrawerId:e,drawers:t,drawersAriaLabel:r,drawersOverflowAriaLabel:o,drawersOverflowWithBadgeAriaLabel:n,drawersRefs:i,drawersTriggerCount:a,handleDrawersClick:c,handleSplitPanelClick:l,hasOpenDrawer:d,isSplitPanelOpen:s,splitPanel:u,splitPanelControlId:h,splitPanelDisplayed:f,splitPanelPosition:p,splitPanelRefs:g,splitPanelToggle:v,splitPanelReportedHeaderHeight:m,splitPanelReportedSize:y}=Jr(),C=a>1,_=u&&f&&p==="side",k=B.useRef(e),[b,S]=zr(D=>D.contentBoxHeight);e&&(k.current=e);const T=s&&p==="bottom"?y:m,L=()=>{if(b){const E=e&&s?(b-m)/1.5:(b-T)/1.5,R=Math.floor(E/48);let $=0;return _&&v.displayed&&($=1),R-$}return 0},{visibleItems:I,overflowItems:A}=Cf(t??void 0,L(),e),P=!!A.find(D=>D.badge);return x.createElement("aside",{className:W(he["drawers-desktop-triggers-container"],{[he["has-multiple-triggers"]]:C,[he["has-open-drawer"]]:d}),"aria-label":r,ref:S,role:"region"},x.createElement("div",{className:W(he["drawers-trigger-content"],{[he["has-multiple-triggers"]]:C,[he["has-open-drawer"]]:d}),role:"toolbar","aria-orientation":"vertical"},I.map(D=>{var E;return x.createElement(El,{ariaLabel:(E=D.ariaLabels)===null||E===void 0?void 0:E.triggerButton,ariaExpanded:D.id===e,ariaControls:e===D.id?D.id:void 0,className:W(he["drawers-trigger"],Pe["drawers-trigger"],D.id===Yr&&Pe["tools-toggle"]),iconName:D.trigger.iconName,iconSvg:D.trigger.iconSvg,key:D.id,onClick:()=>c(D.id),ref:D.id===k.current?i.toggle:void 0,selected:D.id===e,badge:D.badge,testId:`awsui-app-layout-trigger-${D.id}`})}),A.length>0&&x.createElement(kf,{items:A,ariaLabel:P?n:o,customTriggerBuilder:({onClick:D,triggerRef:E,ariaLabel:R,ariaExpanded:$,testUtilsClass:N})=>x.createElement(El,{ref:E,ariaLabel:R,ariaExpanded:$,badge:P,className:W(he["drawers-trigger"],Pe["drawers-trigger"],N),iconName:"ellipsis",onClick:D}),onItemClick:({detail:D})=>{c(D.id)}}),_&&v.displayed&&x.createElement(El,{ariaLabel:v.ariaLabel,ariaControls:h,ariaExpanded:!!s,className:W(he["drawers-trigger"],hn["open-button"]),iconName:"view-vertical",onClick:()=>l(),selected:_&&s,ref:g.toggle})))}function VO(){const{activeDrawerId:e,drawers:t,drawersAriaLabel:r,drawersOverflowAriaLabel:o,drawersOverflowWithBadgeAriaLabel:n,drawersRefs:i,handleDrawersClick:a,hasDrawerViewportOverlay:c}=Jr(),l=B.useRef(e);if(!t)return null;e&&(l.current=e);const{visibleItems:d,overflowItems:s}=Cf(t,2,e),u=!!s.find(h=>h.badge);return x.createElement("aside",{"aria-hidden":c,className:W({[he.unfocusable]:c}),"aria-label":r,role:"region"},x.createElement("div",{className:W(he["drawers-mobile-triggers-container"]),role:"toolbar","aria-orientation":"horizontal"},d.map(h=>{var f;return x.createElement(pt,{ariaExpanded:h.id===e,ariaLabel:(f=h.ariaLabels)===null||f===void 0?void 0:f.triggerButton,className:W(he["drawers-trigger"],Pe["drawers-trigger"],h.id===Yr&&Pe["tools-toggle"]),disabled:c,ref:h.id===l.current?i.toggle:void 0,formAction:"none",iconName:h.trigger.iconName,iconSvg:h.trigger.iconSvg,badge:h.badge,key:h.id,onClick:()=>a(h.id),variant:"icon",__nativeAttributes:{"aria-haspopup":!0,"data-testid":`awsui-app-layout-trigger-${h.id}`}})}),s.length>0&&x.createElement(kf,{items:s,ariaLabel:u?n:o,onItemClick:({detail:h})=>a(h.id)})))}function UO(){const{breadcrumbs:e,contentHeader:t,hasDrawerViewportOverlay:r,hasNotificationsContent:o}=Jr();return t?x.createElement("header",{className:W(he.content,{[he["has-breadcrumbs"]]:e,[he["has-notifications-content"]]:o,[he.unfocusable]:r},_n())},t):null}function KO({children:e}){const{breadcrumbs:t,contentHeader:r,contentType:o,disableBodyScroll:n,disableContentPaddings:i,drawersTriggerCount:a,footerHeight:c,hasNotificationsContent:l,hasStickyBackground:d,hasOpenDrawer:s,headerHeight:u,isBackgroundOverlapDisabled:h,isMobile:f,isNavigationOpen:p,layoutElement:g,layoutWidth:v,mainOffsetLeft:m,maxContentWidth:y,minContentWidth:C,navigationHide:_,notificationsHeight:k,__embeddedViewMode:b,splitPanelPosition:S,stickyNotifications:T,splitPanelDisplayed:L}=Jr(),I=qO(t,r,l,f),A=p||_,P=a===0||s;return x.createElement("main",{className:W(he.layout,he[`content-first-child-${I}`],he[`content-type-${o}`],he[`split-panel-position-${S??"bottom"}`],{[he["disable-body-scroll"]]:n,[Pe["disable-body-scroll-root"]]:n,[he["disable-content-paddings"]]:i,[he["has-breadcrumbs"]]:t&&!f,[he["has-content-gap-left"]]:A,[he["has-content-gap-right"]]:P,[he["has-header"]]:r,[he["has-max-content-width"]]:y&&y>0,[he["has-split-panel"]]:L,[he["has-sticky-background"]]:d,[he["has-sticky-notifications"]]:T&&l,[he["is-overlap-disabled"]]:h,[he["is-hide-mobile-toolbar"]]:b},Pe.root),ref:g,style:Object.assign(Object.assign(Object.assign({[sr.headerHeight]:`${u}px`,[sr.footerHeight]:`${c}px`,[sr.layoutWidth]:`${v}px`,[sr.mainOffsetLeft]:`${m}px`},y&&{[sr.maxContentWidth]:`${y}px`}),C&&{[sr.minContentWidth]:`${C}px`}),{[sr.notificationsHeight]:`${k}px`})},e)}function qO(e,t,r,o){let n="main";return r?n="notifications":e&&!o?n="breadcrumbs":t&&(n="header"),n}function YO(){const{content:e,disableContentPaddings:t,footerHeight:r,hasDrawerViewportOverlay:o,isNavigationOpen:n,isSplitPanelOpen:i,isToolsOpen:a,mainElement:c,offsetBottom:l,splitPanelDisplayed:d,splitPanelPosition:s,activeDrawerId:u}=Jr(),h=l-r;return x.createElement("div",{className:W(he.container,he[`split-panel-position-${s??"bottom"}`],{[he["disable-content-paddings"]]:t,[he["has-split-panel"]]:d,[he["is-navigation-open"]]:n,[he["is-tools-open"]]:a,[he["has-active-drawer"]]:!!u,[he["is-split-panel-open"]]:i,[he.unfocusable]:o},Pe.content),ref:c,style:{[sr.splitPanelHeight]:`${h}px`}},e)}function XO(){var e,t,r;const{ariaLabels:o,breadcrumbs:n,drawers:i,handleNavigationClick:a,handleToolsClick:c,hasDrawerViewportOverlay:l,isMobile:d,isNavigationOpen:s,__embeddedViewMode:u,isToolsOpen:h,navigationHide:f,navigationRefs:p,toolsHide:g,toolsRefs:v}=Jr();return!d||u||f&&!n&&g&&(!i||i.length===0)?null:x.createElement("section",{className:W(he["mobile-toolbar"],[Pe["mobile-bar"]],{[he["has-breadcrumbs"]]:n,[he.unfocusable]:l},Pe["mobile-bar"],_n(),jn()&&he["remove-high-contrast-header"])},!f&&x.createElement("nav",{"aria-hidden":s,className:W(he["mobile-toolbar-nav"],{[Pe["drawer-closed"]]:!s})},x.createElement(pt,{ariaLabel:(e=o==null?void 0:o.navigationToggle)!==null&&e!==void 0?e:void 0,ariaExpanded:s?void 0:!1,iconName:"menu",formAction:"none",onClick:()=>a(!0),variant:"icon",className:Pe["navigation-toggle"],ref:p.toggle,disabled:l,__nativeAttributes:{"aria-haspopup":s?void 0:!0}})),n&&x.createElement("div",{className:W(he["mobile-toolbar-breadcrumbs"],Pe.breadcrumbs)},n),i?x.createElement(VO,null):!g&&x.createElement("aside",{"aria-hidden":h,"aria-label":(t=o==null?void 0:o.tools)!==null&&t!==void 0?t:void 0,className:W(he["mobile-toolbar-tools"],{[Pe["drawer-closed"]]:!h})},x.createElement(pt,{className:Pe["tools-toggle"],ariaExpanded:h,disabled:l,ariaLabel:(r=o==null?void 0:o.toolsToggle)!==null&&r!==void 0?r:void 0,iconName:"status-info",formAction:"none",onClick:()=>c(!0),variant:"icon",ref:v.toggle,__nativeAttributes:{"aria-haspopup":!0}})))}function QO(){const{ariaLabels:e,disableBodyScroll:t,handleNavigationClick:r,hasDrawerViewportOverlay:o,isMobile:n,isNavigationOpen:i,isToolsOpen:a,navigation:c,navigationHide:l,navigationRefs:d,navigationWidth:s,toolsHide:u}=Jr();if(l)return null;const h=p=>{tn(p.target,v=>v.tagName==="A"&&!!v.href)&&n&&r(!1)},f=o&&(!i||a&&!u);return x.createElement(Ha,{in:i},(p,g)=>{var v,m,y;return x.createElement("div",{className:W(he["navigation-container"],{[he["disable-body-scroll"]]:t,[he.unfocusable]:f,[Pe["drawer-closed"]]:!i}),style:Object.assign({},s&&{[sr.navigationWidth]:`${s}px`})},!n&&x.createElement("nav",{"aria-hidden":!!(n||i),"aria-label":(v=e==null?void 0:e.navigation)!==null&&v!==void 0?v:void 0,className:W(he["show-navigation"],{[he.animating]:p==="exiting",[he["is-navigation-open"]]:i}),ref:p==="exiting"?g:void 0},x.createElement(El,{ariaLabel:e==null?void 0:e.navigationToggle,ariaExpanded:i?void 0:!1,iconName:"menu",className:Pe["navigation-toggle"],onClick:()=>r(!0),ref:d.toggle})),x.createElement("nav",{"aria-label":(m=e==null?void 0:e.navigation)!==null&&m!==void 0?m:void 0,className:W(he.navigation,{[he.animating]:p==="entering",[he["is-navigation-open"]]:i},Pe.navigation),ref:p!=="exiting"?g:void 0,"aria-hidden":!i,onClick:C=>{h&&h(C)}},x.createElement("div",{className:W(he["animated-content"])},x.createElement("div",{className:W(he["hide-navigation"])},x.createElement(pt,{ariaLabel:(y=e==null?void 0:e.navigationClose)!==null&&y!==void 0?y:void 0,iconName:n?"close":"angle-left",onClick:()=>r(!1),variant:"icon",formAction:"none",className:Pe["navigation-close"],ref:d.close})),c)))})}function ZO(){var e;const{ariaLabels:t,hasDrawerViewportOverlay:r,notifications:o,notificationsElement:n,stickyNotifications:i}=Jr();return o?x.createElement("div",{role:"region","aria-label":(e=t==null?void 0:t.notifications)!==null&&e!==void 0?e:void 0,className:W(he.notifications,{[he["sticky-notifications"]]:i,[he.unfocusable]:r},Pe.notifications,_n())},x.createElement("div",{ref:n},o)):null}function JO({children:e}){const{ariaLabels:t,disableBodyScroll:r,drawers:o,handleSplitPanelClick:n,handleToolsClick:i,hasDefaultToolsWidth:a,hasDrawerViewportOverlay:c,isMobile:l,isSplitPanelOpen:d,isToolsOpen:s,loseToolsFocus:u,splitPanel:h,splitPanelControlId:f,splitPanelDisplayed:p,splitPanelPosition:g,splitPanelRefs:v,splitPanelToggle:m,tools:y,toolsControlId:C,toolsHide:_,toolsRefs:k,toolsWidth:b}=Jr(),S=!!h&&eM(p,g),T=tM(S,l,d,s,_),L=rM(S,d,s,_),I=c&&!s;return _&&!S||o?null:x.createElement(Ha,{in:s??!1},(A,P)=>{var D,E,R;return x.createElement("div",{className:W(he["tools-container"],{[he["disable-body-scroll"]]:r,[he.unfocusable]:I,[Pe["drawer-closed"]]:!s}),style:{[sr.toolsAnimationStartingOpacity]:`${S&&d?1:0}`,[sr.toolsWidth]:a?"":`${b}px`},onBlur:$=>{(!$.relatedTarget||!$.currentTarget.contains($.relatedTarget))&&u()}},e,!_&&x.createElement("aside",{id:C,"aria-hidden":!s,"aria-label":(D=t==null?void 0:t.tools)!==null&&D!==void 0?D:void 0,className:W(he.tools,{[he.animating]:A==="entering",[he["has-tools-form-persistence"]]:L,[he["is-tools-open"]]:s},Pe.tools),ref:A!=="exiting"?P:void 0},x.createElement("div",{className:W(he["animated-content"])},x.createElement("div",{className:W(he["hide-tools"])},x.createElement(pt,{ariaLabel:(E=t==null?void 0:t.toolsClose)!==null&&E!==void 0?E:void 0,iconName:l?"close":"angle-right",onClick:()=>i(!1),variant:"icon",formAction:"none",className:Pe["tools-close"],ref:k.close})),y)),!l&&x.createElement("aside",{"aria-hidden":!T,"aria-label":(R=t==null?void 0:t.tools)!==null&&R!==void 0?R:void 0,className:W(he["show-tools"],{[he.animating]:A==="exiting",[he["has-tools-form"]]:T,[he["has-tools-form-persistence"]]:L}),ref:A==="exiting"?P:void 0,"data-testid":"side-split-panel-drawer"},!_&&x.createElement(El,{ariaLabel:t==null?void 0:t.toolsToggle,ariaControls:C,ariaExpanded:s,iconName:"status-info",onClick:()=>i(!s),selected:S&&s,className:Pe["tools-toggle"],ref:k.toggle}),S&&m.displayed&&x.createElement(El,{ariaLabel:m.ariaLabel,ariaControls:f,ariaExpanded:!!d,iconName:"view-vertical",onClick:()=>n(),selected:S&&d,className:hn["open-button"],ref:v.toggle})))})}function eM(e,t){return!!(e&&t==="side")}function tM(e,t,r,o,n){let i=!1;return t||(e&&!n&&(i=!0),e&&!r&&n&&(i=!0),!e&&!n&&!o&&(i=!0)),i}function rM(e,t,r,o){let n=!1;return e&&!o&&(t||r)&&(n=!0),n}const oM=x.forwardRef(function(t,r){return x.createElement(NO,Object.assign({},t,{ref:r}),x.createElement(La,null,x.createElement(KO,null,x.createElement(jO,null),x.createElement(QO,null),x.createElement(XO,null),x.createElement(ZO,null),x.createElement(GO,null),x.createElement(UO,null),x.createElement(YO,null),x.createElement(La.Bottom,null),x.createElement(JO,null,x.createElement(La.Side,null)),x.createElement(FO,null))))}),nM=oM,iM=x.forwardRef((e,t)=>kn()?x.createElement(nM,Object.assign({ref:t},e)):x.createElement(RO,Object.assign({ref:t},e)));function aM(e){return x.forwardRef((t,r)=>vT("appLayoutWidget")&&e?x.createElement(e,Object.assign({ref:r},t)):x.createElement(iM,Object.assign({ref:r},t)))}const lM=aM(),WT=x.forwardRef((e,t)=>{var r,o,n,i,a,c,l,d,s,u,{contentType:h="default",headerSelector:f="#b #h",footerSelector:p="#b #f"}=e,g=de(e,["contentType","headerSelector","footerSelector"]);const{__internalRootRef:v}=ut("AppLayout",{props:{contentType:h,disableContentPaddings:g.disableContentPaddings,disableBodyScroll:g.disableBodyScroll,navigationWidth:g.navigationWidth,navigationHide:g.navigationHide,toolsHide:g.toolsHide,toolsWidth:g.toolsWidth,maxContentWidth:g.maxContentWidth,minContentWidth:g.minContentWidth,stickyNotifications:g.stickyNotifications,disableContentHeaderOverlap:g.disableContentHeaderOverlap}}),m=it("app-layout"),y={navigation:m("ariaLabels.navigation",(r=g.ariaLabels)===null||r===void 0?void 0:r.navigation),navigationClose:m("ariaLabels.navigationClose",(o=g.ariaLabels)===null||o===void 0?void 0:o.navigationClose),navigationToggle:m("ariaLabels.navigationToggle",(n=g.ariaLabels)===null||n===void 0?void 0:n.navigationToggle),notifications:m("ariaLabels.notifications",(i=g.ariaLabels)===null||i===void 0?void 0:i.notifications),tools:m("ariaLabels.tools",(a=g.ariaLabels)===null||a===void 0?void 0:a.tools),toolsClose:m("ariaLabels.toolsClose",(c=g.ariaLabels)===null||c===void 0?void 0:c.toolsClose),toolsToggle:m("ariaLabels.toolsToggle",(l=g.ariaLabels)===null||l===void 0?void 0:l.toolsToggle),drawers:m("ariaLabels.drawers",(d=g.ariaLabels)===null||d===void 0?void 0:d.drawers),drawersOverflow:m("ariaLabels.drawersOverflow",(s=g.ariaLabels)===null||s===void 0?void 0:s.drawersOverflow),drawersOverflowWithBadge:m("ariaLabels.drawersOverflowWithBadge",(u=g.ariaLabels)===null||u===void 0?void 0:u.drawersOverflowWithBadge)},C=Object.assign(Object.assign({contentType:h,headerSelector:f,footerSelector:p},g),{ariaLabels:y}),_=Ie(g);return x.createElement("div",Object.assign({ref:v},_),x.createElement(lM,Object.assign({ref:t},C)))});at(WT,"AppLayout");const Fr=WT,Vn={"icon-shake":"awsui_icon-shake_1cbgc_azp03_103","awsui-motion-shake-horizontally":"awsui_awsui-motion-shake-horizontally_1cbgc_azp03_1","container-fade-in":"awsui_container-fade-in_1cbgc_azp03_131","awsui-motion-fade-in-0":"awsui_awsui-motion-fade-in-0_1cbgc_azp03_1",root:"awsui_root_1cbgc_azp03_153","status-error":"awsui_status-error_1cbgc_azp03_162","status-warning":"awsui_status-warning_1cbgc_azp03_165","status-success":"awsui_status-success_1cbgc_azp03_168","status-info":"awsui_status-info_1cbgc_azp03_171","status-stopped":"awsui_status-stopped_1cbgc_azp03_174","status-pending":"awsui_status-pending_1cbgc_azp03_177","status-in-progress":"awsui_status-in-progress_1cbgc_azp03_180","status-loading":"awsui_status-loading_1cbgc_azp03_183","color-override-red":"awsui_color-override-red_1cbgc_azp03_186","color-override-grey":"awsui_color-override-grey_1cbgc_azp03_189","color-override-blue":"awsui_color-override-blue_1cbgc_azp03_192","color-override-green":"awsui_color-override-green_1cbgc_azp03_195","color-override-yellow":"awsui_color-override-yellow_1cbgc_azp03_198",container:"awsui_container_1cbgc_azp03_131","display-inline":"awsui_display-inline_1cbgc_azp03_202",icon:"awsui_icon_1cbgc_azp03_103","display-inline-block":"awsui_display-inline-block_1cbgc_azp03_210","overflow-ellipsis":"awsui_overflow-ellipsis_1cbgc_azp03_219"},sM=e=>({error:x.createElement(ze,{name:"status-negative",size:e}),warning:x.createElement(ze,{name:"status-warning",size:e}),success:x.createElement(ze,{name:"status-positive",size:e}),info:x.createElement(ze,{name:"status-info",size:e}),stopped:x.createElement(ze,{name:"status-stopped",size:e}),pending:x.createElement(ze,{name:"status-pending",size:e}),"in-progress":x.createElement(ze,{name:"status-in-progress",size:e}),loading:x.createElement(rf,null)});function Ec(e){var{type:t,children:r,iconAriaLabel:o,colorOverride:n,wrapText:i=!0,__animate:a=!1,__internalRootRef:c,__size:l="normal",__display:d="inline-block"}=e,s=de(e,["type","children","iconAriaLabel","colorOverride","wrapText","__animate","__internalRootRef","__size","__display"]);const u=Ie(s);return x.createElement("span",Object.assign({},u,{className:W(Vn.root,Vn[`status-${t}`],{[Vn[`color-override-${n}`]]:n},u.className),ref:c}),x.createElement("span",{className:W(Vn.container,Vn[`display-${d}`],i===!1&&Vn["overflow-ellipsis"],a&&Vn["container-fade-in"])},x.createElement("span",{className:W(Vn.icon,a&&Vn["icon-shake"]),"aria-label":o,role:o?"img":void 0},sM(l)[t],d==="inline"&&x.createElement(x.Fragment,null," ")),r))}const na={link:"awsui_link_4c84z_e7dbz_99","variant-secondary":"awsui_variant-secondary_4c84z_e7dbz_168","variant-primary":"awsui_variant-primary_4c84z_e7dbz_203","variant-info":"awsui_variant-info_4c84z_e7dbz_236","variant-value-large":"awsui_variant-value-large_4c84z_e7dbz_271","variant-top-navigation":"awsui_variant-top-navigation_4c84z_e7dbz_303","variant-recovery":"awsui_variant-recovery_4c84z_e7dbz_336",button:"awsui_button_4c84z_e7dbz_369","color-inverted":"awsui_color-inverted_4c84z_e7dbz_404","font-size-body-s":"awsui_font-size-body-s_4c84z_e7dbz_425","font-size-body-m":"awsui_font-size-body-m_4c84z_e7dbz_432","font-size-heading-xs":"awsui_font-size-heading-xs_4c84z_e7dbz_438","font-size-heading-s":"awsui_font-size-heading-s_4c84z_e7dbz_444","font-size-heading-m":"awsui_font-size-heading-m_4c84z_e7dbz_451","font-size-heading-l":"awsui_font-size-heading-l_4c84z_e7dbz_458","font-size-heading-xl":"awsui_font-size-heading-xl_4c84z_e7dbz_465","font-size-display-l":"awsui_font-size-display-l_4c84z_e7dbz_472","font-size-inherit":"awsui_font-size-inherit_4c84z_e7dbz_479","icon-wrapper":"awsui_icon-wrapper_4c84z_e7dbz_487",icon:"awsui_icon_4c84z_e7dbz_487"},Tf=B.createContext(void 0),cM=x.forwardRef((e,t)=>{var{variant:r,fontSize:o="body-m",color:n="normal",external:i=!1,target:a,href:c,rel:l,ariaLabel:d,externalIconAriaLabel:s,onFollow:u,children:h,__internalRootRef:f=null}=e,p=de(e,["variant","fontSize","color","external","target","href","rel","ariaLabel","externalIconAriaLabel","onFollow","children","__internalRootRef"]);bn("Link",c);const g=!c,{defaultVariant:v}=B.useContext(Jl),m=r||v,C=["top-navigation","link","recovery"].indexOf(m)>-1,_=it("link"),k=Ie(p),b=a??(i?"_blank":void 0),S=l??(b==="_blank"?"noopener noreferrer":void 0),T=De("link"),L=De("link-self"),I=De("link-info"),A=B.useContext(Tf),{funnelInteractionId:P}=xo(),{stepNumber:D,stepNameSelector:E}=ai(),{subStepSelector:R,subStepNameSelector:$}=Fa(),N=X=>{(m==="info"||i)&&(qr(E),qr($))},M=X=>{P&&N(),St(u,{href:c,external:i,target:b},X)},O=X=>{ci(X)&&M(X)},j=X=>{M(X)},z=X=>{(X.keyCode===ke.space||X.keyCode===ke.enter)&&(X.preventDefault(),M(X))},F=B.useRef(null),K=kn();Ji(t,F);const U=g&&K&&!C,Y=Object.assign(Object.assign({id:L},k),{ref:Lt(F,f),className:W(na.link,k.className,U?na.button:null,na[uM(m)],na[dM(m,o)],na[hM(m,n)]),"aria-label":d,"aria-labelledby":"",[OS]:T});m==="info"&&A&&!d&&(Y["aria-labelledby"]=`${Y.id} ${I} ${A}`);const V=_("externalIconAriaLabel",s),q=x.createElement(x.Fragment,null,h,i&&x.createElement("span",{className:na["icon-wrapper"]}," ",x.createElement("span",{className:na.icon,"aria-label":V,role:V?"img":void 0},x.createElement(ze,{name:"external",size:"inherit"}))),m==="info"&&x.createElement("span",{hidden:!0,id:I},":")),{tabIndex:ee}=Cn(F,{tabIndex:g?0:void 0});return g?x.createElement("a",Object.assign({},Y,{role:"button",tabIndex:ee,onKeyDown:z,onClick:j}),q):x.createElement("a",Object.assign({},Y,{tabIndex:ee,target:b,rel:S,href:c,onClick:O}),q)});function uM(e){return`variant-${e.replace(/^awsui-/,"")}`}function dM(e,t){switch(e){case"info":return"font-size-body-s";case"awsui-value-large":return"font-size-display-l";default:return`font-size-${t}`}}function hM(e,t){return`color-${e==="info"?"normal":t}`}const qc=cM,fh=B.createContext({});function fM(e,t,r){const o={};return r.forEach(n=>{o[n]=e[n]===void 0?t[n]:e[n]}),o}function Sn(e){const t=B.useContext(fh);return fM(e,t,["invalid","controlId","ariaLabelledby","ariaDescribedby"])}const gl={grid:"awsui_grid_14yj0_1lwse_99","no-gutters":"awsui_no-gutters_14yj0_1lwse_138","grid-column":"awsui_grid-column_14yj0_1lwse_143","colspan-1":"awsui_colspan-1_14yj0_1lwse_154","push-1":"awsui_push-1_14yj0_1lwse_158","pull-1":"awsui_pull-1_14yj0_1lwse_161","colspan-2":"awsui_colspan-2_14yj0_1lwse_164","push-2":"awsui_push-2_14yj0_1lwse_168","pull-2":"awsui_pull-2_14yj0_1lwse_171","colspan-3":"awsui_colspan-3_14yj0_1lwse_174","push-3":"awsui_push-3_14yj0_1lwse_178","pull-3":"awsui_pull-3_14yj0_1lwse_181","colspan-4":"awsui_colspan-4_14yj0_1lwse_184","push-4":"awsui_push-4_14yj0_1lwse_188","pull-4":"awsui_pull-4_14yj0_1lwse_191","colspan-5":"awsui_colspan-5_14yj0_1lwse_194","push-5":"awsui_push-5_14yj0_1lwse_198","pull-5":"awsui_pull-5_14yj0_1lwse_201","colspan-6":"awsui_colspan-6_14yj0_1lwse_204","push-6":"awsui_push-6_14yj0_1lwse_208","pull-6":"awsui_pull-6_14yj0_1lwse_211","colspan-7":"awsui_colspan-7_14yj0_1lwse_214","push-7":"awsui_push-7_14yj0_1lwse_218","pull-7":"awsui_pull-7_14yj0_1lwse_221","colspan-8":"awsui_colspan-8_14yj0_1lwse_224","push-8":"awsui_push-8_14yj0_1lwse_228","pull-8":"awsui_pull-8_14yj0_1lwse_231","colspan-9":"awsui_colspan-9_14yj0_1lwse_234","push-9":"awsui_push-9_14yj0_1lwse_238","pull-9":"awsui_pull-9_14yj0_1lwse_241","colspan-10":"awsui_colspan-10_14yj0_1lwse_244","push-10":"awsui_push-10_14yj0_1lwse_248","pull-10":"awsui_pull-10_14yj0_1lwse_251","colspan-11":"awsui_colspan-11_14yj0_1lwse_254","push-11":"awsui_push-11_14yj0_1lwse_258","pull-11":"awsui_pull-11_14yj0_1lwse_261","colspan-12":"awsui_colspan-12_14yj0_1lwse_264","push-12":"awsui_push-12_14yj0_1lwse_268","pull-12":"awsui_pull-12_14yj0_1lwse_271","push-0":"awsui_push-0_14yj0_1lwse_274","pull-0":"awsui_pull-0_14yj0_1lwse_277","offset-1":"awsui_offset-1_14yj0_1lwse_280","offset-2":"awsui_offset-2_14yj0_1lwse_283","offset-3":"awsui_offset-3_14yj0_1lwse_286","offset-4":"awsui_offset-4_14yj0_1lwse_289","offset-5":"awsui_offset-5_14yj0_1lwse_292","offset-6":"awsui_offset-6_14yj0_1lwse_295","offset-7":"awsui_offset-7_14yj0_1lwse_298","offset-8":"awsui_offset-8_14yj0_1lwse_301","offset-9":"awsui_offset-9_14yj0_1lwse_304","offset-10":"awsui_offset-10_14yj0_1lwse_307","offset-11":"awsui_offset-11_14yj0_1lwse_310","restore-pointer-events":"awsui_restore-pointer-events_14yj0_1lwse_314"},pM=x.forwardRef((e,t)=>{var{__breakpoint:r,gridDefinition:o=[],disableGutters:n=!1,children:i,__responsiveClassName:a,__internalRootRef:c=null}=e,l=de(e,["__breakpoint","gridDefinition","disableGutters","children","__responsiveClassName","__internalRootRef"]);let[d,s]=zn(void 0);r!==void 0&&(d=r,s=t);const u=Ie(l),h=pf(i),f=Lt(s,c);return x.createElement("div",Object.assign({},u,{className:W(gl.grid,u.className,{[gl["no-gutters"]]:n},a?a(d):null),ref:f}),h.map((p,g)=>{var v,m,y,C;const _=p.key;return x.createElement("div",{key:_?String(_):void 0,className:W(gl["grid-column"],Ku("colspan",(v=o[g])===null||v===void 0?void 0:v.colspan,d),Ku("offset",(m=o[g])===null||m===void 0?void 0:m.offset,d),Ku("pull",(y=o[g])===null||y===void 0?void 0:y.pull,d),Ku("push",(C=o[g])===null||C===void 0?void 0:C.push,d))},x.createElement("div",{className:gl["restore-pointer-events"]},p))}))});function Ku(e,t,r){return typeof t=="number"?gl[`${e}-${t}`]:r===null||t===void 0?null:gl[`${e}-${kP(t,r)}`]}const oy=pM;function qu(e,t,r){if(e)return`${t}-${r}`}function gM(e,t,r,o,n){return{label:qu(t,e,"label"),description:qu(r,e,"description"),constraint:qu(o,e,"constraint"),error:qu(n,e,"error")}}function mM({error:e,description:t,constraint:r}){const o=[e,t,r].filter(i=>!!i);return o.length?o.join(" "):void 0}function vM(e,t,r){let o;return e?o=[{colspan:12},{colspan:12}]:r?o=[{colspan:{default:12,xs:8}},{colspan:{default:12,xs:4}}]:o=[{colspan:{default:12,xs:9}},{colspan:{default:12,xs:3}}],t?o:[o[0]]}const Nr={"error-icon-shake-wrapper":"awsui_error-icon-shake-wrapper_14mhv_av9zi_103","awsui-motion-shake-horizontally":"awsui_awsui-motion-shake-horizontally_14mhv_av9zi_1","error-icon-scale-wrapper":"awsui_error-icon-scale-wrapper_14mhv_av9zi_130","awsui-motion-scale-popup":"awsui_awsui-motion-scale-popup_14mhv_av9zi_1",error:"awsui_error_14mhv_av9zi_103","awsui-motion-fade-in-0":"awsui_awsui-motion-fade-in-0_14mhv_av9zi_1",root:"awsui_root_14mhv_av9zi_174",label:"awsui_label_14mhv_av9zi_210",info:"awsui_info_14mhv_av9zi_224",description:"awsui_description_14mhv_av9zi_229",constraint:"awsui_constraint_14mhv_av9zi_230",hints:"awsui_hints_14mhv_av9zi_237","constraint-has-error":"awsui_constraint-has-error_14mhv_av9zi_238","secondary-control":"awsui_secondary-control_14mhv_av9zi_242",controls:"awsui_controls_14mhv_av9zi_246","label-hidden":"awsui_label-hidden_14mhv_av9zi_246",control:"awsui_control_14mhv_av9zi_246",error__message:"awsui_error__message_14mhv_av9zi_264","visually-hidden":"awsui_visually-hidden_14mhv_av9zi_268"};function ml(e,t){for(;e.length<t;)e=`0${e}`;return e}function VT({id:e,children:t,errorIconAriaLabel:r}){const o=it("form-field");return x.createElement("div",{id:e,className:Nr.error},x.createElement("div",{className:Nr["error-icon-shake-wrapper"]},x.createElement("div",{role:"img","aria-label":o("i18nStrings.errorIconAriaLabel",r),className:Nr["error-icon-scale-wrapper"]},x.createElement(ze,{name:"status-warning",size:"small"}))),x.createElement("span",{className:Nr.error__message},t))}function yM({id:e,hasError:t,children:r}){return x.createElement("div",{id:e,className:W(Nr.constraint,t&&Nr["constraint-has-error"])},r)}function Nn(e){var{controlId:t,stretch:r=!1,label:o,info:n,i18nStrings:i,children:a,secondaryControl:c,description:l,constraintText:d,errorText:s,__hideLabel:u,__internalRootRef:h=null,__disableGutters:f=!1}=e,p=de(e,["controlId","stretch","label","info","i18nStrings","children","secondaryControl","description","constraintText","errorText","__hideLabel","__internalRootRef","__disableGutters"]);const g=Ie(p),v=kn(),m=De("formField"),y=t||m,C=t||y,{funnelInteractionId:_,submissionAttempt:k,funnelState:b,errorCount:S}=xo(),{stepNumber:T,stepNameSelector:L}=ai(),{subStepSelector:I,subStepNameSelector:A}=Fa(),P=gM(C,o,l,d,s),D=mM(P),E=vM(r,!!c,v),{ariaLabelledby:R,ariaDescribedby:$,invalid:N}=Sn({}),M={ariaLabelledby:Ro(R,P.label)||void 0,ariaDescribedby:Ro($,D)||void 0,invalid:!!s||!!N},O={[uP]:P.label?Fu(P.label):void 0,[dP]:P.error?Fu(P.error):void 0};return B.useEffect(()=>{var j,z,F;if(_&&s&&b.current!=="complete"){const K=qr(L),U=qr(A);return S.current++,((F=(z=(j=h==null?void 0:h.current)===null||j===void 0?void 0:j.getBoundingClientRect())===null||z===void 0?void 0:z.width)!==null&&F!==void 0?F:0)>0&&Sl.funnelSubStepError({funnelInteractionId:_,subStepSelector:I,subStepName:U,subStepNameSelector:A,stepNumber:T,stepName:K,stepNameSelector:L,fieldErrorSelector:`${Fu(P.error)} .${Nr.error__message}`,fieldLabelSelector:Fu(P.label),subStepAllSelector:Ks()}),()=>{S.current--}}},[_,s,k,S]),x.createElement("div",Object.assign({},g,{className:W(g.className,Nr.root),ref:h},O),x.createElement("div",{className:W(u&&Nr["visually-hidden"])},o&&x.createElement("label",{className:Nr.label,id:P.label,htmlFor:y},o),x.createElement(Tf.Provider,{value:P.label},!u&&n&&x.createElement("span",{className:Nr.info},n))),l&&x.createElement("div",{className:Nr.description,id:P.description},l),x.createElement("div",{className:W(Nr.controls,u&&Nr["label-hidden"])},x.createElement(oy,{gridDefinition:E,disableGutters:f},x.createElement(fh.Provider,{value:Object.assign({controlId:y},M)},a&&x.createElement("div",{className:Nr.control},a)),c&&x.createElement(fh.Provider,{value:M},x.createElement("div",{className:Nr["secondary-control"]},c)))),(d||s)&&x.createElement("div",{className:Nr.hints},s&&x.createElement(VT,{id:P.error,errorIconAriaLabel:i==null?void 0:i.errorIconAriaLabel},s),d&&x.createElement(yM,{id:P.constraint,hasError:!!s},d)))}const bM=["value","label","description","labelTag"],dx=(e,t,r)=>{if(!e)return!1;const o=e.toLowerCase().indexOf(t);return r?o===0:o>-1},hx=(e,t,r)=>{const o=t.toLowerCase(),n=e.option,i=l=>dx(n[l],o,r),a=l=>{var d;return(d=n[l])===null||d===void 0?void 0:d.some(s=>dx(s,o,r))},c=["tags"];return r||c.push("filteringTags"),bM.some(i)||c.some(a)},UT=(e,t,r=!1)=>{if(t==="")return e;let o=null,n=!1;return e.reduce((i,a)=>a.type==="parent"?(n=!1,o=a,hx(a,t,r)&&(n=!0,i.push(o)),i):(a.type!=="child"&&(o=null,n=!1),n?i.push(a):hx(a,t,r)&&(o&&(i.push(o),o=null),i.push(a)),i),[])},KT=e=>!!e&&!e.disabled&&e.type!=="parent",qT=e=>!!e&&!e.disabled,Ys=e=>!!e&&"options"in e,tg={root:"awsui_root_1afi9_5kqbd_99",hidden:"awsui_hidden_1afi9_5kqbd_133","no-items":"awsui_no-items_1afi9_5kqbd_136"},Lc=e=>{const t=B.useRef();return B.useEffect(()=>{t.current=e}),t.current},YT={root:"awsui_root_vrgzu_ljki3_99",recovery:"awsui_recovery_vrgzu_ljki3_137"};function wM({children:e}){return x.createElement("div",{className:YT.root},e)}const Ef=({statusType:e,empty:t,loadingText:r,finishedText:o,filteringResultsText:n,errorText:i,recoveryText:a,isEmpty:c,isNoMatch:l,isFiltered:d,noMatch:s,onRecoveryClick:u,hasRecoveryCallback:h=!1,errorIconAriaLabel:f})=>{const p=Lc(e),g={isSticky:!0,content:null};return e==="loading"?g.content=x.createElement(Ec,{type:"loading"},r):e==="error"?g.content=x.createElement("span",null,x.createElement(Ec,{type:"error",__display:"inline",__animate:p!=="error",iconAriaLabel:f},i)," ",!!a&&h&&x.createElement(qc,{onFollow:()=>xe(u),variant:"recovery",className:YT.recovery},a)):c&&t?g.content=t:l&&s?g.content=s:d&&n?g.content=n:e==="finished"&&o&&(g.content=o,g.isSticky=!1),g},xM=({content:e,id:t,hasItems:r=!0})=>x.createElement("div",{className:W(tg.root,{[tg.hidden]:e===null,[tg["no-items"]]:!r})},x.createElement(lo,{visible:!0,tagName:"div",id:t},e&&x.createElement(wM,null,e))),qi=xM,_M=e=>{const t=new Map;return{flatOptions:e.reduce((o,n)=>{if("options"in n){const{options:i}=n,a=de(n,["options"]),c={type:"parent",option:n},l=i.every(d=>d.disabled);(n.disabled||l)&&(c.disabled=!0),o.push(c),i.forEach(d=>{const s={type:"child",option:d};(a.disabled||d.disabled)&&(s.disabled=!0),o.push(s),t.set(s,c)})}else{const i={option:n};n.disabled&&(i.disabled=!0),o.push(i)}return o},[]),parentMap:t}},bd=new WeakMap,XT=e=>bd.get(e),QT=(e,t)=>{let r=1,o=0,n=1,i=null;e.forEach(a=>{const c=a.type==="parent",l=c?a:t(a);l&&l!==i&&(i=l,o+=1,n=1),c?bd.set(a,{groupIndex:o}):l&&a.type==="child"?bd.set(a,{throughIndex:r++,groupIndex:o,inGroupIndex:n++}):(a.type==="child"||!a.type)&&bd.set(a,{throughIndex:r++})})};function ZT(e,t,r){const{flatOptions:o,parentMap:n}=_M(e),i=t!=="auto"?o:UT(o,r);return QT(i,n.get.bind(n)),{filteredOptions:i,parentMap:n,totalCount:o.length,matchesCount:i.length}}class ia{constructor(t,r=t==="keyboard"){this.type=t,this.moveFocus=r}}function JT({options:e,isHighlightable:t}){const[r,o]=B.useState(-1),[n,i]=B.useState(new ia("keyboard")),a=B.useCallback((u,h)=>{o(u),i(h)},[]),c=e[r]&&t(e[r])?e[r]:void 0,l=(u,h=r,f)=>{let g=h===-1&&u===-1?e.length:h;do g+=u;while(e[g]&&!t(e[g]));e[g]&&a(g,f)},d=(u,h)=>l(u,r,h),s=B.useCallback((u,h)=>{const f=e.indexOf(u);a(f,h)},[e,a]);return[{highlightType:n,highlightedIndex:r,highlightedOption:c},{setHighlightedIndexWithMouse:(u,h=!1)=>a(u,new ia("mouse",h)),moveHighlightWithKeyboard:u=>d(u,new ia("keyboard")),highlightOptionWithKeyboard:u=>s(u,new ia("keyboard")),resetHighlightWithKeyboard:()=>a(-1,new ia("keyboard")),goHomeWithKeyboard:()=>l(1,-1,new ia("keyboard")),goEndWithKeyboard:()=>l(-1,e.length,new ia("keyboard"))}]}const kM=36,CM=35,SM=({moveHighlight:e,selectOption:t,goHome:r,goEnd:o,closeDropdown:n,preventNativeSpace:i=!1})=>B.useCallback(a=>{switch(a.detail.keyCode){case ke.up:a.preventDefault(),e(-1);break;case ke.down:a.preventDefault(),e(1);break;case kM:r();break;case CM:o();break;case ke.escape:a.stopPropagation(),n();break;case ke.enter:a.preventDefault(),t();break;case ke.space:i&&(a.preventDefault(),t())}},[e,t,r,o,n,i]),TM=({openDropdown:e,goHome:t})=>B.useCallback(r=>{switch(r.detail.keyCode){case ke.up:case ke.down:r.preventDefault(),t(),e();break;case ke.space:case ke.enter:r.preventDefault(),e();break}},[e,t]),fx=(e,t)=>{if(!(t<0))return`${e}-option-${t}`},EM=(e,t)=>(t||[]).map(r=>{for(const o of e)if(o.type!=="parent"&&o.option.value===r.value)return o;return{option:r}}),Yu=(e,t)=>{for(let r=0;r<e.length;r++){const o=e[r];if(o===t||o.value===t.value)return r}return-1};function eE({selectedOptions:e,updateSelectedOption:t,options:r,filteringType:o,onBlur:n,onFocus:i,externalRef:a,keepOpen:c,fireLoadItems:l,setFilteringValue:d,useInteractiveGroups:s=!1,statusType:u}){const h=s?qT:KT,f=G=>!!G&&(s||G.type!=="parent"),p=B.useRef(null),g=B.useRef(null),v=B.useRef(null),m=o!=="none",y=m?p:v,C=EM(r,e),_=e.reduce((G,H)=>(H.value&&G.add(H.value),G),new Set),[{highlightType:k,highlightedOption:b,highlightedIndex:S},{moveHighlightWithKeyboard:T,resetHighlightWithKeyboard:L,setHighlightedIndexWithMouse:I,highlightOptionWithKeyboard:A,goHomeWithKeyboard:P,goEndWithKeyboard:D}]=JT({options:r,isHighlightable:f}),{isOpen:E,openDropdown:R,closeDropdown:$,toggleDropdown:N,openedWithKeyboard:M}=DT({onOpen:()=>l(""),onClose:()=>{L(),d("")}}),O=()=>{xe(i,{})},j=()=>{xe(n,{}),$()},z=C.length>0,F=De("option-list"),K=De("dialog"),U=fx(F,S),Y=G=>{var H;const te=G||b;!te||!h(te)||(t(te.option),c||((H=g.current)===null||H===void 0||H.focus(),$()))},V=SM({moveHighlight:T,selectOption:Y,goHome:P,goEnd:D,closeDropdown:()=>{var G;(G=g.current)===null||G===void 0||G.focus(),$()},preventNativeSpace:!m}),q=TM({openDropdown:()=>R(!0),goHome:P}),ee=()=>({onFocus:O,onBlur:j,dropdownContentId:K,dropdownContentRole:m?"dialog":void 0}),X=(G=!1,H=!1)=>{const te={ref:g,onFocus:()=>$(),autoFocus:H,ariaHasPopup:m?"dialog":"listbox",ariaControls:E?m?K:F:void 0};return G||(te.onMouseDown=ae=>{var le;ae.preventDefault(),E&&((le=g.current)===null||le===void 0||le.focus()),N()},te.onKeyDown=q),te},ie=()=>m?{ref:p,onKeyDown:V,onChange:G=>{d(G.detail.value),L()},__onDelayedInput:G=>{l(G.detail.value)},__nativeAttributes:{"aria-activedescendant":U,"aria-owns":F,"aria-controls":F}}:{},se=()=>{const G={id:F,ref:v,open:E,onMouseUp:H=>{H>-1&&Y(r[H])},onMouseMove:H=>{H>-1&&I(H)},statusType:u};return m||(G.onKeyDown=V,G.nativeAttributes={"aria-activedescendant":U}),G},me=G=>{const H=G.options.filter(le=>!!le.value&&_.has(le.value)).length,te=H>0,ae=H===G.options.length;return{selected:te&&ae,indeterminate:te&&!ae}},ve=(G,H)=>{var te;const ae=G===b,le=Ys(G.option)?me(G.option):void 0,we=C.indexOf(G)>-1||!!(le!=null&&le.selected),ce=(te=r[H+1])===null||te===void 0?void 0:te.option,ye=ce&&Ys(ce)?me(ce).selected:C.indexOf(r[H+1])>-1;return{key:H,option:G,highlighted:ae,selected:we,isNextSelected:ye,indeterminate:!!(le!=null&&le.indeterminate),"data-mouse-target":f(G)?H:-1,id:fx(F,H)}},Q=Lc(E);B.useEffect(()=>{E&&!Q&&z&&!m&&(M?A(C[0]):I(r.indexOf(C[0]),!0))},[E,C,z,I,A,M,r,Q,m]),B.useEffect(()=>{var G;E&&((G=y.current)===null||G===void 0||G.focus({preventScroll:!0}))},[E,y]),Ji(a,g);const oe=!!b&&Ys(b.option)&&me(b.option).selected,Z=!!b&&(C.indexOf(b)>-1||oe);return{isOpen:E,highlightedOption:b,highlightedIndex:S,highlightType:k,getTriggerProps:X,getDropdownProps:ee,getMenuProps:se,getFilterProps:ie,getOptionProps:ve,highlightOption:A,selectOption:Y,announceSelected:Z,dialogId:K}}function Lf(e,t){const r=B.useRef();return r.current=e,B.useCallback(z0((...o)=>{r.current&&r.current(...o)},t),[])}const LM=e=>[0,ke.enter,ke.space,ke.tab].indexOf(e)===-1,AM=e=>e.split("").every(t=>t===e[0]);function BM(e,t,r,o){const n=o?qT:KT,i=c=>UT(e,c,!0).filter(l=>n(l)),a=i(t);if(a.length===1)return a[0];if(r&&t.length>1&&AM(t)){const c=i(t[0]);if(c.length>0){let l=Ys(r)?c.map(({option:d})=>d).indexOf(r):c.map(({option:d})=>d.value).indexOf(r.value);return l+=1,l=l%c.length,c[l]}}return a.length>0?a[0]:null}function tE({isEnabled:e,options:t,highlightOption:r,highlightedOption:o,useInteractiveGroups:n}){const i=B.useRef(""),a=Lf(()=>i.current="",500);return c=>{if(!e)return;const{charCode:l}=c;if(!LM(l))return;a();const d=i.current+String.fromCharCode(l);i.current=d;const s=BM(t,d,o,n);s&&r(s)}}const rE=({onLoadItems:e,options:t,statusType:r})=>{const o=B.useRef(void 0);return{fireLoadItems:c=>{o.current!==c&&(o.current=c,xe(e,{filteringText:c,firstPage:!0,samePage:!1}))},handleLoadMore:()=>{const c=t.length===0;r==="pending"&&xe(e,{firstPage:c,samePage:!1,filteringText:o.current||""})},handleRecoveryClick:()=>xe(e,{firstPage:!1,samePage:!0,filteringText:o.current||""})}};function DM(e,t){return[t&&t.label,e.__labelPrefix,e.label||e.value,e.description,e.labelTag].concat(e.tags).filter(r=>!!r).join(" ")}function ny({announceSelected:e,highlightedOption:t,getParent:r,selectedAriaLabel:o,renderHighlightedAriaLive:n}){const i=B.useRef(void 0);if(B.useEffect(()=>{if(t){const u=requestAnimationFrame(()=>{i.current=r(t)});return()=>cancelAnimationFrame(u)}}),!t)return"";const a=t.option,c=r(t),l=c&&c!==i.current?c:void 0;if(n)return n(a,l);const d=e&&o?o:"",s=DM(a,l);return[d,s].filter(Boolean).join(" ")}const Zt={placeholder:"awsui_placeholder_dwuol_jewio_99",item:"awsui_item_dwuol_jewio_104",checkbox:"awsui_checkbox_dwuol_jewio_108",filter:"awsui_filter_dwuol_jewio_117",trigger:"awsui_trigger_dwuol_jewio_122","layout-strut":"awsui_layout-strut_dwuol_jewio_128","list-bottom":"awsui_list-bottom_dwuol_jewio_134","selected-icon":"awsui_selected-icon_dwuol_jewio_138","show-label-tag":"awsui_show-label-tag_dwuol_jewio_142","inline-token-trigger":"awsui_inline-token-trigger_dwuol_jewio_146","inline-token-list":"awsui_inline-token-list_dwuol_jewio_153","inline-token":"awsui_inline-token_dwuol_jewio_146","visual-refresh":"awsui_visual-refresh_dwuol_jewio_179","inline-token-hidden-placeholder":"awsui_inline-token-hidden-placeholder_dwuol_jewio_186","inline-token-counter":"awsui_inline-token-counter_dwuol_jewio_192","inline-token-trigger--disabled":"awsui_inline-token-trigger--disabled_dwuol_jewio_196"},It={option:"awsui_option_1p2cx_cx2ic_103",disabled:"awsui_disabled_1p2cx_cx2ic_143",parent:"awsui_parent_1p2cx_cx2ic_146",highlighted:"awsui_highlighted_1p2cx_cx2ic_149",content:"awsui_content_1p2cx_cx2ic_153","label-content":"awsui_label-content_1p2cx_cx2ic_160",label:"awsui_label_1p2cx_cx2ic_160",tag:"awsui_tag_1p2cx_cx2ic_167","label-tag":"awsui_label-tag_1p2cx_cx2ic_168","label-prefix":"awsui_label-prefix_1p2cx_cx2ic_178",tags:"awsui_tags_1p2cx_cx2ic_191",description:"awsui_description_1p2cx_cx2ic_192",selected:"awsui_selected_1p2cx_cx2ic_203",icon:"awsui_icon_1p2cx_cx2ic_217","icon-size-big":"awsui_icon-size-big_1p2cx_cx2ic_224","filtering-match-highlight":"awsui_filtering-match-highlight_1p2cx_cx2ic_228","trigger-variant":"awsui_trigger-variant_1p2cx_cx2ic_243"},RM=(e,t)=>{if(t.length>1e5)return{noMatches:[e],matches:null};const r=t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&"),o=new RegExp(r,"gi"),n=e.split(o),i=e.match(o);return{noMatches:n,matches:i}},px=({str:e})=>e?x.createElement("span",{className:W(It["filtering-match-highlight"])},e):null;function Yc({str:e,highlightText:t}){if(!e||!t)return x.createElement("span",null,e);if(e===t)return x.createElement(px,{str:e});const{noMatches:r,matches:o}=RM(e,t),n=[];return r.forEach((i,a)=>{n.push(x.createElement("span",{key:`noMatch-${a}`},i)),o&&a<o.length&&n.push(x.createElement(px,{key:`match-${a}`,str:o[a]}))}),x.createElement("span",null,n)}const IM=({label:e,prefix:t,highlightText:r,triggerVariant:o})=>x.createElement("span",{className:W(It.label,o&&It["trigger-variant"])},t&&x.createElement("span",{className:W(It["label-prefix"],o&&It["trigger-variant"])},t," "),x.createElement(Yc,{str:e,highlightText:r})),PM=({labelTag:e,highlightText:t,triggerVariant:r})=>e?x.createElement("span",{className:W(It["label-tag"],r&&It["trigger-variant"])},x.createElement(Yc,{str:e,highlightText:t})):null,$M=({description:e,highlightedOption:t,highlightText:r,selectedOption:o,triggerVariant:n})=>e?x.createElement("span",{className:W(It.description,{[It["trigger-variant"]]:n,[It.highlighted]:t,[It.selected]:o})},x.createElement(Yc,{str:e,highlightText:r})):null,OM=({tags:e,highlightedOption:t,highlightText:r,selectedOption:o,triggerVariant:n})=>e?x.createElement("span",{className:W(It.tags,{[It.highlighted]:t,[It.selected]:o})},e.map((i,a)=>x.createElement("span",{key:a,className:W(It.tag,n&&It["trigger-variant"])},x.createElement(Yc,{str:i,highlightText:r})))):null,MM=({filteringTags:e,highlightedOption:t,highlightText:r,selectedOption:o,triggerVariant:n})=>{if(!r||!e)return null;const i=r.toLowerCase();return x.createElement("span",{className:W(It.tags,{[It.highlighted]:t,[It.selected]:o})},e.map((a,c)=>a.toLowerCase().indexOf(i)!==-1?x.createElement("span",{className:W(It.tag,n&&It["trigger-variant"]),key:c,"aria-disabled":!0},x.createElement(Yc,{str:a,highlightText:r})):null))},NM=e=>!e.name&&!e.url&&!e.svg?null:x.createElement("span",{className:W(It.icon,e.size==="big"&&[It["icon-size-big"]])},x.createElement(ze,Object.assign({},e))),jM=e=>{var t,r,{option:o,highlightText:n,triggerVariant:i=!1,isGroupOption:a=!1,isGenericGroup:c=!0,highlightedOption:l=!1,selectedOption:d=!1}=e,s=de(e,["option","highlightText","triggerVariant","isGroupOption","isGenericGroup","highlightedOption","selectedOption"]);if(!o)return null;const{disabled:u}=o,h=Ie(s),f=W(It.option,u&&It.disabled,a&&It.parent,l&&It.highlighted),p=o.__customIcon||x.createElement(NM,{name:o.iconName,url:o.iconUrl,svg:o.iconSvg,alt:o.iconAlt,size:o.description||o.tags?"big":"normal"}),g=c?{title:(t=o.label)!==null&&t!==void 0?t:o.value,"aria-disabled":u}:void 0;return x.createElement("span",Object.assign({"data-value":o.value,className:f,lang:o.lang},g,h),p,x.createElement("span",{className:W(It.content)},x.createElement("span",{className:W(It["label-content"])},x.createElement(IM,{label:(r=o.label)!==null&&r!==void 0?r:o.value,prefix:o.__labelPrefix,highlightText:n,triggerVariant:i}),x.createElement(PM,{labelTag:o.labelTag,highlightText:n,triggerVariant:i})),x.createElement($M,{description:o.description,highlightedOption:l,selectedOption:d,highlightText:n,triggerVariant:i}),x.createElement(OM,{tags:o.tags,highlightedOption:l,selectedOption:d,highlightText:n,triggerVariant:i}),x.createElement(MM,{filteringTags:o.filteringTags,highlightedOption:l,selectedOption:d,highlightText:n,triggerVariant:i})))},Xc=jM,ro={"selectable-item":"awsui_selectable-item_15o6u_1qv14_99","pad-bottom":"awsui_pad-bottom_15o6u_1qv14_123","has-background":"awsui_has-background_15o6u_1qv14_132",highlighted:"awsui_highlighted_15o6u_1qv14_135",selected:"awsui_selected_15o6u_1qv14_135",disabled:"awsui_disabled_15o6u_1qv14_153","next-item-selected":"awsui_next-item-selected_15o6u_1qv14_163","is-keyboard":"awsui_is-keyboard_15o6u_1qv14_175",parent:"awsui_parent_15o6u_1qv14_179",interactiveGroups:"awsui_interactiveGroups_15o6u_1qv14_183",child:"awsui_child_15o6u_1qv14_201",virtual:"awsui_virtual_15o6u_1qv14_216","measure-strut":"awsui_measure-strut_15o6u_1qv14_227","measure-strut-first":"awsui_measure-strut-first_15o6u_1qv14_236","screenreader-content":"awsui_screenreader-content_15o6u_1qv14_240","option-content":"awsui_option-content_15o6u_1qv14_246"},GM=(e,t)=>{var{children:r,ariaSelected:o,ariaChecked:n,selected:i,highlighted:a,disabled:c,hasBackground:l,isParent:d,isChild:s,virtualPosition:u,padBottom:h,isNextSelected:f,useInteractiveGroups:p,screenReaderContent:g,ariaPosinset:v,ariaSetsize:m,highlightType:y}=e,C=de(e,["children","ariaSelected","ariaChecked","selected","highlighted","disabled","hasBackground","isParent","isChild","virtualPosition","padBottom","isNextSelected","useInteractiveGroups","screenReaderContent","ariaPosinset","ariaSetsize","highlightType"]);const _=Ie(C),{className:k}=_,b=de(_,["className"]),S=W(k,ro["selectable-item"],{[ro.selected]:i,[ro.highlighted]:a,[ro["has-background"]]:l,[ro.parent]:d,[ro.child]:s,[ro["is-keyboard"]]:y==="keyboard",[ro.disabled]:c,[ro.virtual]:u!==void 0,[ro["pad-bottom"]]:h,[ro["next-item-selected"]]:f,[ro.interactiveGroups]:p}),T=B.useRef(null),L=B.useRef(null);B.useLayoutEffect(()=>{a&&g&&(T.current&&T.current.setAttribute("aria-hidden","true"),L.current&&(L.current.textContent=g))},[a,g,T,L]);const I=u!==void 0?{transform:`translateY(${u}px)`}:void 0,A={"aria-disabled":c};return d&&!p&&(A["aria-hidden"]=!0),o!==void 0&&(A["aria-selected"]=o),n!==void 0&&(A["aria-checked"]=n),v&&m&&(A["aria-posinset"]=v,A["aria-setsize"]=m),x.createElement("li",Object.assign({role:"option",className:S,style:I},A,b),x.createElement("div",{className:ro["option-content"],ref:T},r),x.createElement("div",{className:ro["measure-strut"],ref:t}),x.createElement("div",{className:ro["screenreader-content"],ref:L}))},iy=x.forwardRef(GM),aa={root:"awsui_root_1fn7j_ayb8r_99","styled-box":"awsui_styled-box_1fn7j_ayb8r_106","styled-box-checked":"awsui_styled-box-checked_1fn7j_ayb8r_112","styled-box-indeterminate":"awsui_styled-box-indeterminate_1fn7j_ayb8r_112","styled-box-disabled":"awsui_styled-box-disabled_1fn7j_ayb8r_116","styled-line":"awsui_styled-line_1fn7j_ayb8r_130","styled-line-disabled":"awsui_styled-line-disabled_1fn7j_ayb8r_135"},zM={default:{viewBox:"0 0 14 14",indeterminate:"2.5,7 11.5,7",checked:"2.5,7 6,10 11,3",xy:.5,r:1.5,size:13},refresh:{viewBox:"0 0 16 16",indeterminate:"3.5,8 12.5,8",checked:"3.5,8 7,11 12,4",xy:1,r:2,size:14}},FM=e=>{var{checked:t,indeterminate:r,disabled:o=!1}=e,n=de(e,["checked","indeterminate","disabled"]);const i=Ie(n),c=zM["refresh"];return x.createElement("svg",Object.assign({className:aa.root,viewBox:c.viewBox,"aria-hidden":"true",focusable:"false"},i),x.createElement("rect",{className:W(aa["styled-box"],{[aa["styled-box-checked"]]:t,[aa["styled-box-indeterminate"]]:r,[aa["styled-box-disabled"]]:o}),x:c.xy,y:c.xy,rx:c.r,ry:c.r,width:c.size,height:c.size}),t||r?x.createElement("polyline",{className:W(aa["styled-line"],{[aa["styled-line-disabled"]]:o}),points:r?c.indeterminate:c.checked}):null)},ay=FM,HM=(e,t)=>{var{option:r,highlighted:o,selected:n,filteringValue:i,hasCheckbox:a,virtualPosition:c,padBottom:l,isNextSelected:d,screenReaderContent:s,ariaPosinset:u,ariaSetsize:h,highlightType:f}=e,p=de(e,["option","highlighted","selected","filteringValue","hasCheckbox","virtualPosition","padBottom","isNextSelected","screenReaderContent","ariaPosinset","ariaSetsize","highlightType"]);const g=Ie(p),v=r.type==="parent",m=r.type==="child",y=r.option,C=r.disabled||y.disabled;return x.createElement(iy,Object.assign({ariaSelected:!!n,selected:n,isNextSelected:d,highlighted:o,disabled:r.disabled,isParent:v,isChild:m,ref:t,virtualPosition:c,padBottom:l,screenReaderContent:s,ariaPosinset:u,ariaSetsize:h,highlightType:f},g),x.createElement("div",{className:W(Zt.item,!v&&y.labelTag&&Zt["show-label-tag"])},a&&!v&&x.createElement("div",{className:Zt.checkbox},x.createElement(ay,{checked:n||!1,disabled:r.disabled})),v?x.createElement("span",null,y.label||y.value):x.createElement(Xc,{option:Object.assign(Object.assign({},y),{disabled:C}),highlightedOption:o,selectedOption:n,highlightText:i}),!a&&!v&&n&&x.createElement("div",{className:Zt["selected-icon"]},x.createElement(ze,{name:"check"}))))},WM=x.memo(x.forwardRef(HM)),VM=(e,t)=>{var{option:r,highlighted:o,selected:n,filteringValue:i,hasCheckbox:a,virtualPosition:c,padBottom:l,isNextSelected:d,indeterminate:s,screenReaderContent:u,ariaPosinset:h,ariaSetsize:f,highlightType:p}=e,g=de(e,["option","highlighted","selected","filteringValue","hasCheckbox","virtualPosition","padBottom","isNextSelected","indeterminate","screenReaderContent","ariaPosinset","ariaSetsize","highlightType"]);const v=Ie(g),m=r.type==="parent",y=r.type==="child",C=r.option,_=r.disabled||C.disabled,k=W(Zt.item,{[Zt.disabled]:_});return x.createElement(iy,Object.assign({ariaChecked:m&&s?"mixed":!!n,selected:n,isNextSelected:d,highlighted:o,disabled:_,isParent:m,isChild:y,highlightType:p,ref:t,virtualPosition:c,padBottom:l,useInteractiveGroups:!0,screenReaderContent:u,ariaPosinset:h,ariaSetsize:f},v),x.createElement("div",{className:k},a&&x.createElement("div",{className:Zt.checkbox},x.createElement(ay,{checked:n,indeterminate:m&&s,disabled:r.disabled})),x.createElement(Xc,{option:Object.assign(Object.assign({},C),{disabled:_}),highlightedOption:o,selectedOption:n,highlightText:i,isGroupOption:m})))},UM=x.memo(x.forwardRef(VM)),KM=({option:e,index:t,getOptionProps:r,filteringValue:o,checkboxes:n=!1})=>{const i=r(e,t);i.filteringValue=o;const{inGroupIndex:a,groupIndex:c,throughIndex:l}=XT(e)||{};return Object.assign(Object.assign({},i),{hasCheckbox:n,"data-group-index":c,"data-child-index":a,"data-test-index":l})},oE=({options:e,getOptionProps:t,filteringValue:r,highlightType:o,checkboxes:n=!1,hasDropdownStatus:i,virtualItems:a,useInteractiveGroups:c,screenReaderContent:l,ariaSetsize:d})=>e.map((s,u)=>{const h=a&&a[u],f=h?h.index:u,p=KM({option:s,index:f,getOptionProps:t,filteringValue:r,checkboxes:n}),g=u===e.length-1,v=!i&&g,m=c?UM:WM;return x.createElement(m,Object.assign({key:f},p,{virtualPosition:h&&h.start,ref:h&&h.measureRef,padBottom:v,screenReaderContent:l,ariaPosinset:f+1,ariaSetsize:d,highlightType:o.type}))}),qM=({menuProps:e,getOptionProps:t,filteredOptions:r,filteringValue:o,highlightType:n,checkboxes:i,hasDropdownStatus:a,listBottom:c,useInteractiveGroups:l,screenReaderContent:d},s)=>{const u=e.ref;return B.useImperativeHandle(s,()=>h=>{var f;const p=(f=u.current)===null||f===void 0?void 0:f.querySelector(`[data-mouse-target="${h}"]`);n.moveFocus&&p&&Uc(p)},[n,u]),x.createElement(rs,Object.assign({},e),oE({options:r,getOptionProps:t,filteringValue:o,highlightType:n,checkboxes:i,hasDropdownStatus:a,useInteractiveGroups:l,screenReaderContent:d}),c?x.createElement("li",{role:"option",className:Zt["list-bottom"]},c):null)},nE=B.forwardRef(qM);function pa(){return pa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},pa.apply(this,arguments)}function YM(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var XM=["bottom","height","left","right","top","width"],QM=function(t,r){return t===void 0&&(t={}),r===void 0&&(r={}),XM.some(function(o){return t[o]!==r[o]})},bi=new Map,iE,ZM=function e(){var t=[];bi.forEach(function(r,o){var n=o.getBoundingClientRect();QM(n,r.rect)&&(r.rect=n,t.push(r))}),t.forEach(function(r){r.callbacks.forEach(function(o){return o(r.rect)})}),iE=window.requestAnimationFrame(e)};function JM(e,t){return{observe:function(){var o=bi.size===0;bi.has(e)?bi.get(e).callbacks.push(t):bi.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),o&&ZM()},unobserve:function(){var o=bi.get(e);if(o){var n=o.callbacks.indexOf(t);n>=0&&o.callbacks.splice(n,1),o.callbacks.length||bi.delete(e),bi.size||cancelAnimationFrame(iE)}}}}var ph=typeof window<"u"?x.useLayoutEffect:x.useEffect;function eN(e,t){t===void 0&&(t={width:0,height:0});var r=x.useState(e.current),o=r[0],n=r[1],i=x.useReducer(tN,t),a=i[0],c=i[1],l=x.useRef(!1);return ph(function(){e.current!==o&&n(e.current)}),ph(function(){if(o&&!l.current){l.current=!0;var d=o.getBoundingClientRect();c({rect:d})}},[o]),x.useEffect(function(){if(o){var d=JM(o,function(s){c({rect:s})});return d.observe(),function(){d.unobserve()}}},[o]),a}function tN(e,t){var r=t.rect;return e.height!==r.height||e.width!==r.width?r:e}var rN=function(){return 50},oN=function(t){return t},nN=function(t,r){var o=r?"offsetWidth":"offsetHeight";return t[o]},iN=function(t){for(var r=Math.max(t.start-t.overscan,0),o=Math.min(t.end+t.overscan,t.size-1),n=[],i=r;i<=o;i++)n.push(i);return n};function aN(e){var t,r=e.size,o=r===void 0?0:r,n=e.estimateSize,i=n===void 0?rN:n,a=e.overscan,c=a===void 0?1:a,l=e.paddingStart,d=l===void 0?0:l,s=e.paddingEnd,u=s===void 0?0:s,h=e.parentRef,f=e.horizontal,p=e.scrollToFn,g=e.useObserver,v=e.initialRect,m=e.onScrollElement,y=e.scrollOffsetFn,C=e.keyExtractor,_=C===void 0?oN:C,k=e.measureSize,b=k===void 0?nN:k,S=e.rangeExtractor,T=S===void 0?iN:S,L=f?"width":"height",I=f?"scrollLeft":"scrollTop",A=x.useRef({scrollOffset:0,measurements:[]}),P=x.useState(0),D=P[0],E=P[1];A.current.scrollOffset=D;var R=g||eN,$=R(h,v),N=$[L];A.current.outerSize=N;var M=x.useCallback(function(te){h.current&&(h.current[I]=te)},[h,I]),O=p||M;p=x.useCallback(function(te){O(te,M)},[M,O]);var j=x.useState({}),z=j[0],F=j[1],K=x.useCallback(function(){return F({})},[]),U=x.useRef([]),Y=x.useMemo(function(){var te=U.current.length>0?Math.min.apply(Math,U.current):0;U.current=[];for(var ae=A.current.measurements.slice(0,te),le=te;le<o;le++){var we=_(le),ce=z[we],ye=ae[le-1]?ae[le-1].end:d,Ae=typeof ce=="number"?ce:i(le),ne=ye+Ae;ae[le]={index:le,start:ye,size:Ae,end:ne,key:we}}return ae},[i,z,d,o,_]),V=(((t=Y[o-1])==null?void 0:t.end)||d)+u;A.current.measurements=Y,A.current.totalSize=V;var q=m?m.current:h.current,ee=x.useRef(y);ee.current=y,ph(function(){if(!q){E(0);return}var te=function(le){var we=ee.current?ee.current(le):q[I];E(we)};return te(),q.addEventListener("scroll",te,{capture:!1,passive:!0}),function(){q.removeEventListener("scroll",te)}},[q,I]);var X=sN(A.current),ie=X.start,se=X.end,me=x.useMemo(function(){return T({start:ie,end:se,overscan:c,size:Y.length})},[ie,se,c,Y.length,T]),ve=x.useRef(b);ve.current=b;var Q=x.useMemo(function(){for(var te=[],ae=function(ye,Ae){var ne=me[ye],pe=Y[ne],ue=pa(pa({},pe),{},{measureRef:function(Be){if(Be){var Re=ve.current(Be,f);if(Re!==ue.size){var qe=A.current.scrollOffset;ue.start<qe&&M(qe+(Re-ue.size)),U.current.push(ne),F(function(je){var Ve;return pa(pa({},je),{},(Ve={},Ve[ue.key]=Re,Ve))})}}}});te.push(ue)},le=0,we=me.length;le<we;le++)ae(le);return te},[me,M,f,Y]),oe=x.useRef(!1);ph(function(){oe.current&&F({}),oe.current=!0},[i]);var Z=x.useCallback(function(te,ae){var le=ae===void 0?{}:ae,we=le.align,ce=we===void 0?"start":we,ye=A.current,Ae=ye.scrollOffset,ne=ye.outerSize;ce==="auto"&&(te<=Ae?ce="start":te>=Ae+ne?ce="end":ce="start"),ce==="start"?p(te):ce==="end"?p(te-ne):ce==="center"&&p(te-ne/2)},[p]),G=x.useCallback(function(te,ae){var le=ae===void 0?{}:ae,we=le.align,ce=we===void 0?"auto":we,ye=YM(le,["align"]),Ae=A.current,ne=Ae.measurements,pe=Ae.scrollOffset,ue=Ae.outerSize,_e=ne[Math.max(0,Math.min(te,o-1))];if(_e){if(ce==="auto")if(_e.end>=pe+ue)ce="end";else if(_e.start<=pe)ce="start";else return;var Be=ce==="center"?_e.start+_e.size/2:ce==="end"?_e.end:_e.start;Z(Be,pa({align:ce},ye))}},[Z,o]),H=x.useCallback(function(){for(var te=arguments.length,ae=new Array(te),le=0;le<te;le++)ae[le]=arguments[le];G.apply(void 0,ae),requestAnimationFrame(function(){G.apply(void 0,ae)})},[G]);return{virtualItems:Q,totalSize:V,scrollToOffset:Z,scrollToIndex:H,measure:K}}var lN=function(t,r,o,n){for(;t<=r;){var i=(t+r)/2|0,a=o(i);if(a<n)t=i+1;else if(a>n)r=i-1;else return i}return t>0?t-1:0};function sN(e){for(var t=e.measurements,r=e.outerSize,o=e.scrollOffset,n=t.length-1,i=function(d){return t[d].start},a=lN(0,n,i,o),c=a;c<n&&t[c].end<o+r;)c++;return{start:a,end:c}}const cN=100;function aE({items:e,parentRef:t,estimateSize:r}){const o=aN({size:e.length,parentRef:t,estimateSize:r,overscan:5}),n=B.useRef(new WeakMap),i=o.virtualItems.map(c=>`${c.index}`).join(":");return B.useEffect(()=>{n.current=new WeakMap},[i,e,r]),{virtualItems:B.useMemo(()=>o.virtualItems.map(c=>Object.assign(Object.assign({},c),{measureRef:l=>{var d;const s=(d=n.current.get(e[c.index]))!==null&&d!==void 0?d:0;s<cN&&(c.measureRef(l),n.current.set(e[c.index],s+1))}})),[e,o.virtualItems]),totalSize:o.totalSize,scrollToIndex:o.scrollToIndex}}const uN=(e,t)=>e.menuProps.open?x.createElement(dN,Object.assign({},e,{ref:t})):x.createElement(hN,Object.assign({},e,{ref:t})),dN=B.forwardRef(({menuProps:e,getOptionProps:t,filteredOptions:r,filteringValue:o,highlightType:n,checkboxes:i,hasDropdownStatus:a,listBottom:c,useInteractiveGroups:l,screenReaderContent:d},s)=>{const[u,h]=zr(C=>C.contentBoxWidth,[]),f=B.useRef(null),p=Lt(h,f,e.ref),{virtualItems:g,totalSize:v,scrollToIndex:m}=aE({items:r,parentRef:f,estimateSize:B.useCallback(()=>31,[u,o])});B.useImperativeHandle(s,()=>C=>{n.moveFocus&&m(C)},[n,m]);const y=oE({options:g.map(({index:C})=>r[C]),getOptionProps:t,filteringValue:o,highlightType:n,checkboxes:i,hasDropdownStatus:a,virtualItems:g,useInteractiveGroups:l,screenReaderContent:d,ariaSetsize:r.length});return x.createElement(rs,Object.assign({},e,{ref:p}),x.createElement("div",{"aria-hidden":"true",key:"total-size",className:Zt["layout-strut"],style:{height:v}}),y,c?x.createElement("li",{role:"option",className:Zt["list-bottom"]},c):null)}),hN=B.forwardRef(({menuProps:e,listBottom:t},r)=>(B.useImperativeHandle(r,()=>()=>{},[]),x.createElement(rs,Object.assign({},e,{ref:e.ref}),t?x.createElement("li",{role:"option",className:Zt["list-bottom"]},t):null))),lE=B.forwardRef(uN),fN=(e,t,r,o,n,i)=>{const a={},c=B.useCallback(()=>{var l;(l=n.current)===null||l===void 0||l.focus(),i("")},[n,i]);return(e==="search"||e==="visualSearch")&&(a.__leftIcon="search",!t&&!r&&o&&(a.__rightIcon="close",a.__onRightIconClick=c)),a},pN=(e=!1)=>e===!0?"on":e||"off",Go={root:"awsui_root_2rhyz_15wpl_99",input:"awsui_input_2rhyz_15wpl_103","input-readonly":"awsui_input-readonly_2rhyz_15wpl_153","input-invalid":"awsui_input-invalid_2rhyz_15wpl_220","input-has-icon-left":"awsui_input-has-icon-left_2rhyz_15wpl_231","input-type-search":"awsui_input-type-search_2rhyz_15wpl_236","input-has-icon-right":"awsui_input-has-icon-right_2rhyz_15wpl_252","input-has-no-border-radius":"awsui_input-has-no-border-radius_2rhyz_15wpl_255","input-container":"awsui_input-container_2rhyz_15wpl_262","input-icon-left":"awsui_input-icon-left_2rhyz_15wpl_267","input-icon-right":"awsui_input-icon-right_2rhyz_15wpl_274","input-button-right":"awsui_input-button-right_2rhyz_15wpl_280"};function gN(e,t){var{type:r="text",step:o,inputMode:n,autoComplete:i=!0,ariaLabel:a,clearAriaLabel:c,name:l,value:d,placeholder:s,autoFocus:u,disabled:h,readOnly:f,disableBrowserAutocorrect:p,spellcheck:g,__noBorderRadius:v,__leftIcon:m,__leftIconVariant:y="subtle",__onLeftIconClick:C,ariaRequired:_,__rightIcon:k,__onRightIconClick:b,onKeyDown:S,onKeyUp:T,onChange:L,__onDelayedInput:I,__onBlurWithDetail:A,onBlur:P,onFocus:D,__nativeAttributes:E,__internalRootRef:R,__inheritFormFieldProps:$}=e,N=de(e,["type","step","inputMode","autoComplete","ariaLabel","clearAriaLabel","name","value","placeholder","autoFocus","disabled","readOnly","disableBrowserAutocorrect","spellcheck","__noBorderRadius","__leftIcon","__leftIconVariant","__onLeftIconClick","ariaRequired","__rightIcon","__onRightIconClick","onKeyDown","onKeyUp","onChange","__onDelayedInput","__onBlurWithDetail","onBlur","onFocus","__nativeAttributes","__internalRootRef","__inheritFormFieldProps"]);const M=Ie(N),O=it("input"),j=Lf(se=>xe(I,{value:se})),z=se=>{j(se),xe(L,{value:se})},F=B.useRef(null),K=fN(r,h,f,d,F,z);m=m??K.__leftIcon,k=k??K.__rightIcon,b=b??K.__onRightIconClick;const U=Sn(N),{ariaLabelledby:Y,ariaDescribedby:V,controlId:q,invalid:ee}=$?U:N,X=Object.assign({"aria-label":a,"aria-labelledby":a&&!N.ariaLabelledby?void 0:Y,"aria-describedby":V,name:l,placeholder:s,autoFocus:u,id:q,className:W(Go.input,r&&Go[`input-type-${r}`],k&&Go["input-has-icon-right"],m&&Go["input-has-icon-left"],v&&Go["input-has-no-border-radius"],{[Go["input-readonly"]]:f,[Go["input-invalid"]]:ee}),autoComplete:pN(i),disabled:h,readOnly:f,type:r,step:o,inputMode:n,spellCheck:g,onKeyDown:S&&(se=>Cc(S,se)),onKeyUp:T&&(se=>Cc(T,se)),value:d??"",onChange:L&&(se=>z(se.target.value)),onBlur:se=>{P&&xe(P),A&&xe(A,{relatedTarget:se.relatedTarget})},onFocus:D&&(()=>xe(D))},E);r==="number"&&(X.onWheel=se=>se.currentTarget.blur()),p&&(X.autoCorrect="off",X.autoCapitalize="off"),_&&(X["aria-required"]="true"),ee&&(X["aria-invalid"]="true");const ie=Lt(t,F);return X.type==="visualSearch"&&(X.type="text"),x.createElement("div",Object.assign({},M,{className:W(M.className,Go["input-container"]),ref:R}),m&&x.createElement("span",{onClick:C,className:Go["input-icon-left"]},x.createElement(ze,{name:m,variant:h||f?"disabled":y})),x.createElement("input",Object.assign({ref:ie},X)),k&&x.createElement("span",{className:Go["input-icon-right"]},x.createElement(wn,{className:Go["input-button-right"],variant:"inline-icon",formAction:"none",iconName:k,onClick:b,ariaLabel:O("clearAriaLabel",c),disabled:h})))}const Af=x.forwardRef(gN),mN=x.forwardRef((e,t)=>{var{filteringType:r}=e,o=de(e,["filteringType"]);return r==="none"?null:x.createElement(Af,Object.assign({ref:t,type:"visualSearch",className:Zt.filter,autoComplete:!1,disableBrowserAutocorrect:!0,invalid:!1,__noBorderRadius:!0},o,{__nativeAttributes:Object.assign({"aria-expanded":!0,"aria-haspopup":!0,role:"combobox",autoCorrect:"off",autoCapitalize:"off"},o.__nativeAttributes)}))}),sE=mN,Un={"button-trigger":"awsui_button-trigger_18eso_syr88_103",arrow:"awsui_arrow_18eso_syr88_103","has-caret":"awsui_has-caret_18eso_syr88_170",placeholder:"awsui_placeholder_18eso_syr88_173",pressed:"awsui_pressed_18eso_syr88_186",disabled:"awsui_disabled_18eso_syr88_189","in-filtering-token":"awsui_in-filtering-token_18eso_syr88_199","read-only":"awsui_read-only_18eso_syr88_205",invalid:"awsui_invalid_18eso_syr88_227","inline-tokens":"awsui_inline-tokens_18eso_syr88_265"},vN=(e,t)=>{var{children:r,pressed:o=!1,hideCaret:n=!1,disabled:i=!1,readOnly:a=!1,invalid:c=!1,inlineTokens:l,inFilteringToken:d,ariaHasPopup:s,ariaLabel:u,ariaLabelledby:h,ariaDescribedby:f,ariaControls:p,onKeyDown:g,onKeyUp:v,onMouseDown:m,onClick:y,onFocus:C,onBlur:_,autoFocus:k}=e,b=de(e,["children","pressed","hideCaret","disabled","readOnly","invalid","inlineTokens","inFilteringToken","ariaHasPopup","ariaLabel","ariaLabelledby","ariaDescribedby","ariaControls","onKeyDown","onKeyUp","onMouseDown","onClick","onFocus","onBlur","autoFocus"]);const S=Ie(b),T=Object.assign(Object.assign({},S),{type:"button",className:W(Un["button-trigger"],S.className,o&&Un.pressed,i&&Un.disabled,c&&Un.invalid,!n&&Un["has-caret"],a&&Un["read-only"],d&&Un["in-filtering-token"],l&&Un["inline-tokens"]),disabled:i||a,"aria-expanded":o,"aria-label":u,"aria-labelledby":h,"aria-describedby":f,"aria-haspopup":s??"listbox","aria-controls":p,onKeyDown:g&&(L=>Cc(g,L)),onKeyUp:v&&(L=>Cc(v,L)),onMouseDown:m&&(L=>St(m,{},L)),onClick:y&&(L=>St(y,{},L)),onFocus:C&&(L=>St(C,{},L)),onBlur:_&&(L=>St(_,{relatedTarget:L.relatedTarget},L)),autoFocus:k});return c&&(T["aria-invalid"]=c),x.createElement("button",Object.assign({ref:t},T),r,!n&&x.createElement("span",{className:Un.arrow},x.createElement(ze,{name:"caret-down-filled",variant:i?"disabled":"normal"})))},yN=x.forwardRef(vN),bN=x.forwardRef(({ariaLabelledby:e,ariaDescribedby:t,controlId:r,invalid:o,triggerProps:n,selectedOption:i,selectedOptions:a,triggerVariant:c,inFilteringToken:l,isOpen:d,placeholder:s,disabled:u},h)=>{const f=De(),p=r??f,g=De("trigger-content-");let v=Ro(e,g),m=null;c==="tokens"?a!=null&&a.length?(m=x.createElement("span",{className:W(Zt["inline-token-trigger"],u&&Zt["inline-token-trigger--disabled"],Zt["visual-refresh"])},x.createElement("span",{className:Zt["inline-token-list"]},a.map(({label:C},_)=>x.createElement("span",{key:_,className:Zt["inline-token"]},C))),x.createElement("span",{className:Zt["inline-token-counter"],id:g},x.createElement("span",{className:Zt["inline-token-hidden-placeholder"]},s),x.createElement("span",null,"(",a.length,")"))),v=e):m=x.createElement("span",{"aria-disabled":"true",className:W(Zt.placeholder,Zt.trigger),id:g},s):i?c==="option"?m=x.createElement(Xc,{id:g,option:Object.assign(Object.assign({},i),{disabled:u}),triggerVariant:!0}):m=x.createElement("span",{id:g,className:Zt.trigger},i.label||i.value):m=x.createElement("span",{"aria-disabled":"true",className:W(Zt.placeholder,Zt.trigger),id:g},s);const y=Lt(n.ref,h);return x.createElement(yN,Object.assign({},n,{id:p,ref:y,pressed:d,disabled:u,invalid:o,inFilteringToken:l,inlineTokens:c==="tokens",ariaDescribedby:t,ariaLabelledby:v}),m)}),cE=bN,$i={root:"awsui_root_dm8gx_9oo5q_103","has-items":"awsui_has-items_dm8gx_9oo5q_137","no-padding":"awsui_no-padding_dm8gx_9oo5q_137","dismiss-button":"awsui_dismiss-button_dm8gx_9oo5q_141",token:"awsui_token_dm8gx_9oo5q_183","token-box":"awsui_token-box_dm8gx_9oo5q_190","token-box-error":"awsui_token-box-error_dm8gx_9oo5q_209","token-box-disabled":"awsui_token-box-disabled_dm8gx_9oo5q_220"},oo={root:"awsui_root_gfwv3_1exu9_99",horizontal:"awsui_horizontal_gfwv3_1exu9_104",vertical:"awsui_vertical_gfwv3_1exu9_108",list:"awsui_list_gfwv3_1exu9_112","list-item":"awsui_list-item_gfwv3_1exu9_132","toggle-container-inline":"awsui_toggle-container-inline_gfwv3_1exu9_139",toggle:"awsui_toggle_gfwv3_1exu9_139",description:"awsui_description_gfwv3_1exu9_235",separator:"awsui_separator_gfwv3_1exu9_239"};function wN({controlId:e,allHidden:t,expanded:r,numberOfHiddenOptions:o,onClick:n,i18nStrings:i={}}){const a=it("token-group"),c=t?o:`+${o}`,l=r?a("i18nStrings.limitShowFewer",i.limitShowFewer):`${a("i18nStrings.limitShowMore",i.limitShowMore)||""} (${c})`,d=B.useCallback(()=>{xe(n,null)},[n]);return x.createElement("button",{type:"button",className:oo.toggle,onClick:d,"aria-controls":e,"aria-expanded":r},x.createElement(ze,{name:r?"treeview-collapse":"treeview-expand"}),x.createElement("span",{className:oo.description},l))}const xN=`.${oo["list-item"]}`,_N=`.${oo.toggle}`;function kN({moveFocusNextToIndex:e}){const t=B.useRef(null);return B.useEffect(()=>{var r,o;if(e==null||t.current===null)return;const n=t.current.querySelectorAll(xN),i=t.current.querySelector(_N);let a=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY;for(let s=0;s<n.length;s++)s<e?a=e-s<e-a?s:a:c=s-e<c-e?s:c;const l=n[c],d=n[a];l instanceof HTMLElement?(r=Ma(l))===null||r===void 0||r.focus():d instanceof HTMLElement?(o=Ma(d))===null||o===void 0||o.focus():i instanceof HTMLElement&&i.focus()},[e]),t}function uE({items:e,alignment:t,renderItem:r,limit:o,after:n,i18nStrings:i,moveFocusNextToIndex:a,onExpandedClick:c=()=>{}}){const l=kN({moveFocusNextToIndex:a}),d=De(),[s,u]=B.useState(!1),h=e.length>0,f=h&&o!==void 0&&e.length>o,p=f&&!s?e.slice(0,o):e,g=p.length>0,v=f?x.createElement("div",{className:oo[`toggle-container-${t}`]},x.createElement(wN,{controlId:g?d:void 0,allHidden:o===0,expanded:s,numberOfHiddenOptions:e.length-p.length,i18nStrings:i,onClick:()=>{const m=!s;u(m),c(m)}})):null;return t==="inline"?x.createElement("div",{ref:l,className:W(oo.root,oo.horizontal)},h&&x.createElement("ul",{id:d,className:oo.list},p.map((m,y)=>x.createElement("li",{key:y,className:oo["list-item"],"aria-setsize":e.length,"aria-posinset":y+1},r(m,y)))),v,n&&x.createElement("div",{className:oo.separator}),n):x.createElement("div",{ref:l,className:W(oo.root,oo.vertical)},g&&x.createElement("ul",{id:d,className:W(oo.list,oo[t])},p.map((m,y)=>x.createElement("li",{key:y,className:oo["list-item"],"aria-setsize":e.length,"aria-posinset":y+1},r(m,y)))),v,n)}const CN=B.forwardRef(SN);function SN({disabled:e,dismissLabel:t,onDismiss:r},o){return x.createElement("button",{ref:o,type:"button",className:W($i["dismiss-button"]),"aria-disabled":e?!0:void 0,onClick:!e&&r?()=>r():void 0,"aria-label":t},x.createElement(ze,{name:"close"}))}function TN(e){var{ariaLabel:t,disabled:r,dismissLabel:o,onDismiss:n,children:i,errorText:a,errorIconAriaLabel:c}=e,l=de(e,["ariaLabel","disabled","dismissLabel","onDismiss","children","errorText","errorIconAriaLabel"]);const d=De("error"),s=Ie(l);return x.createElement("div",Object.assign({},s,{className:W($i.token,s.className),role:"group","aria-label":t,"aria-describedby":a?d:void 0,"aria-disabled":r}),x.createElement("div",{className:W($i["token-box"],r&&$i["token-box-disabled"],a&&$i["token-box-error"])},i,n&&x.createElement(CN,{disabled:r,dismissLabel:o,onDismiss:n})),a&&x.createElement(VT,{id:d,errorIconAriaLabel:c},a))}function EN(e){var{alignment:t,items:r,onDismiss:o,limit:n,i18nStrings:i,disableOuterPadding:a,__internalRootRef:c}=e,l=de(e,["alignment","items","onDismiss","limit","i18nStrings","disableOuterPadding","__internalRootRef"]);const[d,s]=B.useState(null),u=Ie(l),h=r.length>0;return x.createElement("div",Object.assign({},u,{className:W(u.className,$i.root,h&&$i["has-items"],a&&$i["no-padding"]),ref:c}),x.createElement(uE,{alignment:t,items:r,limit:n,renderItem:(f,p)=>x.createElement(TN,{ariaLabel:f.label,dismissLabel:f.dismissLabel,onDismiss:()=>{xe(o,{itemIndex:p}),s(p)},disabled:f.disabled},x.createElement(Xc,{option:f,isGenericGroup:!1})),i18nStrings:i,moveFocusNextToIndex:d,onExpandedClick:f=>{s(f&&n?n:null)}}))}const gx={root:"awsui_root_f8g6q_17z04_99",tokens:"awsui_tokens_f8g6q_17z04_134"},LN=x.forwardRef((e,t)=>{var r,{options:o=[],filteringType:n="none",filteringPlaceholder:i,filteringAriaLabel:a,filteringClearAriaLabel:c,filteringResultsText:l,ariaRequired:d,placeholder:s,disabled:u,ariaLabel:h,statusType:f="finished",empty:p,loadingText:g,finishedText:v,errorText:m,noMatch:y,renderHighlightedAriaLive:C,selectedOptions:_=[],deselectAriaLabel:k,keepOpen:b=!0,tokenLimit:S,i18nStrings:T,onBlur:L,onFocus:I,onLoadItems:A,onChange:P,virtualScroll:D,inlineTokens:E=!1,hideTokens:R=!1,expandToViewport:$,__internalRootRef:N=null,autoFocus:M}=e,O=de(e,["options","filteringType","filteringPlaceholder","filteringAriaLabel","filteringClearAriaLabel","filteringResultsText","ariaRequired","placeholder","disabled","ariaLabel","statusType","empty","loadingText","finishedText","errorText","noMatch","renderHighlightedAriaLive","selectedOptions","deselectAriaLabel","keepOpen","tokenLimit","i18nStrings","onBlur","onFocus","onLoadItems","onChange","virtualScroll","inlineTokens","hideTokens","expandToViewport","__internalRootRef","autoFocus"]);const j=Ie(O),z=Sn(O),F=it("multiselect"),K=it("select"),U=K("recoveryText",O.recoveryText),Y=K("errorIconAriaLabel",O.errorIconAriaLabel),V=K("selectedAriaLabel",O.selectedAriaLabel);O.recoveryText;const{handleLoadMore:q,handleRecoveryClick:ee,fireLoadItems:X}=rE({onLoadItems:A,options:o,statusType:f}),ie=!0,[se,me]=B.useState(""),{filteredOptions:ve,parentMap:Q,totalCount:oe,matchesCount:Z}=ZT(o,n,se),G=B.useCallback(Ee=>{const Oe=ve.filter(tt=>tt.type!=="parent").map(tt=>tt.option),Qe=tt=>tt.every(xt=>Yu(_,xt)>-1||xt.disabled),Qt=(tt,xt)=>tt.filter(Mt=>Yu(xt,Mt)>-1&&!Mt.disabled),wr=(tt,xt)=>tt.filter(Mt=>Yu(xt,Mt)===-1).concat(xt),Wr=(tt,xt)=>wr(xt,tt),ko=(tt,xt)=>xt.filter(Mt=>Yu(tt,Mt)===-1);let Or=[..._];if(Ys(Ee)){const tt=Qt([...Ee.options],Oe);Or=Qe(tt)?ko(tt,Or):Wr(tt,Or)}else Or=Qe([Ee])?ko([Ee],Or):Wr([Ee],Or);xe(P,{selectedOptions:Or})},[P,_,ve]),H=B.useRef(null),te=De("trigger"),ae=(r=z.controlId)!==null&&r!==void 0?r:te,le=De("multiselect-arialabel-"),we=De("footer"),ce=B.useRef(null),{isOpen:ye,highlightType:Ae,highlightedOption:ne,highlightedIndex:pe,getTriggerProps:ue,getDropdownProps:_e,getFilterProps:Be,getMenuProps:Re,getOptionProps:qe,highlightOption:je,announceSelected:Ve}=eE({selectedOptions:_,updateSelectedOption:G,options:ve,filteringType:n,onFocus:I,onBlur:L,externalRef:t,keepOpen:b,fireLoadItems:X,setFilteringValue:me,useInteractiveGroups:ie,statusType:f}),$e=tE({isEnabled:n==="none"&&ye,options:ve,highlightOption:je,highlightedOption:ne==null?void 0:ne.option,useInteractiveGroups:ie}),Ke=!o||o.length===0,Ot=ve&&ve.length===0,Ft=n!=="none"&&se.length>0&&ve&&ve.length>0,cr=Ft?l==null?void 0:l(Z,oe):void 0,er=Ef({statusType:f,empty:p,loadingText:g,finishedText:v,errorText:m,recoveryText:U,isEmpty:Ke,isNoMatch:Ot,noMatch:y,isFiltered:Ft,filteringResultsText:cr,onRecoveryClick:ee,errorIconAriaLabel:Y,hasRecoveryCallback:!!A}),bt=x.createElement(sE,Object.assign({clearAriaLabel:c,filteringType:n,placeholder:i,ariaLabel:a,ariaRequired:d,value:se},Be())),lt=x.createElement(cE,Object.assign({placeholder:s,disabled:u,triggerProps:ue(u,M),selectedOption:null,selectedOptions:_,triggerVariant:E?"tokens":"placeholder",isOpen:ye},z,{controlId:ae,ariaLabelledby:Ro(z.ariaLabelledby,le)})),wt=Object.assign(Object.assign({},Re()),{onLoadMore:q,ariaLabelledby:Ro(le,ae),ariaDescribedby:er.content?we:void 0}),dt=ny({announceSelected:Ve,highlightedOption:ne,getParent:Ee=>{var Oe;return(Oe=Q.get(Ee))===null||Oe===void 0?void 0:Oe.option},selectedAriaLabel:V,renderHighlightedAriaLive:C}),st=_.map(Ee=>({label:Ee.label,disabled:u||Ee.disabled,labelTag:Ee.labelTag,description:Ee.description,iconAlt:Ee.iconAlt,iconName:Ee.iconName,iconUrl:Ee.iconUrl,iconSvg:Ee.iconSvg,tags:Ee.tags,dismissLabel:F("deselectAriaLabel",k==null?void 0:k(Ee),Oe=>{var Qe;return Oe({option__label:(Qe=Ee.label)!==null&&Qe!==void 0?Qe:""})})}));B.useEffect(()=>{var Ee;(Ee=ce.current)===null||Ee===void 0||Ee.call(ce,pe)},[pe]);const Ht=D?lE:nE,mt=Ee=>{Ee.target!==document.activeElement&&Ee.preventDefault()},Lr=!R&&!E&&st.length>0,Me=({detail:Ee})=>{const Oe=_[Ee.itemIndex];G(Oe);const Qe=ue().ref;Qe.current&&Qe.current.focus()},He={limitShowFewer:T==null?void 0:T.tokenLimitShowFewer,limitShowMore:T==null?void 0:T.tokenLimitShowMore},Xe=Lt(H,N),Rt=_e();return x.createElement("div",Object.assign({},j,{ref:Xe,className:W(gx.root,j.className),onKeyPress:$e}),x.createElement(Kc,Object.assign({},Rt,{ariaLabelledby:Rt.dropdownContentRole?Ro(le,ae):void 0,ariaDescribedby:Rt.dropdownContentRole&&er.content?we:void 0,open:ye,trigger:lt,header:bt,onMouseDown:mt,footer:er.isSticky?x.createElement(qi,{content:ye?er.content:null,id:we}):null,expandToViewport:$,stretchBeyondTriggerWidth:!0}),x.createElement(Ht,{listBottom:er.isSticky?null:x.createElement(qi,{content:ye?er.content:null,id:we}),menuProps:wt,getOptionProps:qe,filteredOptions:ve,filteringValue:se,ref:ce,hasDropdownStatus:er.content!==null,checkboxes:!0,useInteractiveGroups:ie,screenReaderContent:dt,highlightType:Ae})),Lr&&x.createElement(EN,{className:gx.tokens,alignment:"horizontal",limit:S,items:st,onDismiss:Me,i18nStrings:He,disableOuterPadding:!0}),x.createElement(Ql,{id:le},h))}),AN=LN;class BN{constructor(t){this._listeners=[],this._state=t}get(){return this._state}set(t){const r=this._state,o=t(r);this._state=o,Uo.unstable_batchedUpdates(()=>{for(const[n,i]of this._listeners)n(r)!==n(o)&&i(o,r)})}subscribe(t,r){return this._listeners.push([t,r]),()=>this.unsubscribe(r)}unsubscribe(t){for(let r=0;r<this._listeners.length;r++){const[,o]=this._listeners[r];if(o===t){this._listeners.splice(r,1);break}}}}const ht={"content-enter":"awsui_content-enter_gwq0h_1i3aj_103","awsui-motion-fade-in":"awsui_awsui-motion-fade-in_gwq0h_1i3aj_1","trigger-expanded":"awsui_trigger-expanded_gwq0h_1i3aj_125",icon:"awsui_icon_gwq0h_1i3aj_139",root:"awsui_root_gwq0h_1i3aj_157","expand-button":"awsui_expand-button_gwq0h_1i3aj_195",expanded:"awsui_expanded_gwq0h_1i3aj_202","icon-container":"awsui_icon-container_gwq0h_1i3aj_206","icon-container-container":"awsui_icon-container-container_gwq0h_1i3aj_210",wrapper:"awsui_wrapper_gwq0h_1i3aj_214","wrapper-default":"awsui_wrapper-default_gwq0h_1i3aj_222","wrapper-footer":"awsui_wrapper-footer_gwq0h_1i3aj_222","wrapper-navigation":"awsui_wrapper-navigation_gwq0h_1i3aj_226","wrapper-container":"awsui_wrapper-container_gwq0h_1i3aj_229","wrapper-compact":"awsui_wrapper-compact_gwq0h_1i3aj_233","header-deprecated":"awsui_header-deprecated_gwq0h_1i3aj_246","wrapper-expanded":"awsui_wrapper-expanded_gwq0h_1i3aj_268",header:"awsui_header_gwq0h_1i3aj_246","header-wrapper":"awsui_header-wrapper_gwq0h_1i3aj_288","header-actions-wrapper":"awsui_header-actions-wrapper_gwq0h_1i3aj_300","header-button":"awsui_header-button_gwq0h_1i3aj_305","header-container-button":"awsui_header-container-button_gwq0h_1i3aj_305","header-container":"awsui_header-container_gwq0h_1i3aj_305","header-navigation":"awsui_header-navigation_gwq0h_1i3aj_340","header-text":"awsui_header-text_gwq0h_1i3aj_377",content:"awsui_content_gwq0h_1i3aj_103","content-default":"awsui_content-default_gwq0h_1i3aj_384","content-footer":"awsui_content-footer_gwq0h_1i3aj_388","content-expanded":"awsui_content-expanded_gwq0h_1i3aj_392","content-compact":"awsui_content-compact_gwq0h_1i3aj_395",focusable:"awsui_focusable_gwq0h_1i3aj_399","click-target":"awsui_click-target_gwq0h_1i3aj_414"};function DN({isMobile:e,isVisualRefresh:t,customCssProps:r,__stickyOffset:o,__mobileStickyOffset:n,mobileBarHeight:i=0,stickyOffsetTop:a,hasInnerOverflowParents:c}){let d=`${o??(c?0:a)}px`;if(e){const s=`${a+i+(o??0)-(n??0)}px`,u=`calc(var(${r.offsetTop}, 0px) + var(${r.mobileBarHeight}, 0px) + ${(o??0)-(n??0)}px)`;d=t?u:s}else t&&!c&&(d=`var(${r.offsetTopWithNotifications}, ${d})`);return d}const ly=B.createContext({isStuck:!1}),RN=(e,t,r,o,n,i=!0)=>{const a=rn(),{stickyOffsetTop:c,mobileBarHeight:l}=ry(),d=a&&i,s=Ea()&&!d&&!!r,u=kn(),[h,f]=B.useState(!1),[p,g]=B.useState(!1);B.useLayoutEffect(()=>{if(e.current){const C=es(e.current),_=tn(e.current,k=>k.tagName==="MAIN");f(C.length>0&&C[0]!==_)}},[e]);const v=DN({isMobile:a,isVisualRefresh:u,customCssProps:sr,__stickyOffset:o,__mobileStickyOffset:n,mobileBarHeight:l,stickyOffsetTop:c,hasInnerOverflowParents:h}),m=s?{style:{top:v}}:{},y=B.useCallback(()=>{if(e.current&&t.current){const C=parseFloat(getComputedStyle(e.current).borderTopWidth)||0,_=e.current.getBoundingClientRect().top+C,k=t.current.getBoundingClientRect().top;_<k?g(!0):g(!1)}},[e,t]);return B.useEffect(()=>{if(s)return window.addEventListener("scroll",y,!0),window.addEventListener("resize",y),()=>{window.removeEventListener("scroll",y,!0),window.removeEventListener("resize",y)}},[s,y]),{isSticky:s,isStuck:p,stickyStyles:m}};function Bf(e){var t;const r=(t=e==null?void 0:e.disabled)!==null&&t!==void 0?t:!1,o=B.useContext(FT),n=B.useRef(null),i=B.useCallback(()=>n.current,[n]),a=B.useCallback(c=>{r||o(c.contentBoxHeight)},[r,o]);return yn(i,a),B.useLayoutEffect(function(){return()=>{r||o(0)}},[r,o]),n}const Bt={root:"awsui_root_14iqq_v4tpg_103","fit-height":"awsui_fit-height_14iqq_v4tpg_139","with-side-media":"awsui_with-side-media_14iqq_v4tpg_144","variant-default":"awsui_variant-default_14iqq_v4tpg_147","variant-stacked":"awsui_variant-stacked_14iqq_v4tpg_147",refresh:"awsui_refresh_14iqq_v4tpg_155","sticky-enabled":"awsui_sticky-enabled_14iqq_v4tpg_205","with-top-media":"awsui_with-top-media_14iqq_v4tpg_217","content-wrapper":"awsui_content-wrapper_14iqq_v4tpg_222","content-wrapper-fit-height":"awsui_content-wrapper-fit-height_14iqq_v4tpg_227",media:"awsui_media_14iqq_v4tpg_234","media-top":"awsui_media-top_14iqq_v4tpg_252","media-side":"awsui_media-side_14iqq_v4tpg_257",header:"awsui_header_14iqq_v4tpg_263","header-with-media":"awsui_header-with-media_14iqq_v4tpg_268","header-sticky-disabled":"awsui_header-sticky-disabled_14iqq_v4tpg_274","header-sticky-enabled":"awsui_header-sticky-enabled_14iqq_v4tpg_278","header-stuck":"awsui_header-stuck_14iqq_v4tpg_284","header-variant-cards":"awsui_header-variant-cards_14iqq_v4tpg_294","header-dynamic-height":"awsui_header-dynamic-height_14iqq_v4tpg_297","with-paddings":"awsui_with-paddings_14iqq_v4tpg_303","with-hidden-content":"awsui_with-hidden-content_14iqq_v4tpg_312","header-variant-full-page":"awsui_header-variant-full-page_14iqq_v4tpg_370","remove-high-contrast-header":"awsui_remove-high-contrast-header_14iqq_v4tpg_390","dark-header":"awsui_dark-header_14iqq_v4tpg_399",content:"awsui_content_14iqq_v4tpg_222","content-fit-height":"awsui_content-fit-height_14iqq_v4tpg_407","content-with-media":"awsui_content-with-media_14iqq_v4tpg_417",footer:"awsui_footer_14iqq_v4tpg_421","with-divider":"awsui_with-divider_14iqq_v4tpg_425"},dE=B.createContext({isInModal:!1}),IN=()=>B.useContext(dE);function hE(e){const{subStepRef:t,funnelSubStepProps:r}=Fa(),o=IN();return x.createElement(fE,Object.assign({},e,{__subStepRef:o!=null&&o.isInModal?{current:null}:t,__funnelSubStepProps:o!=null&&o.isInModal?{}:r}))}function fE(e){var t,{header:r,footer:o,children:n,variant:i="default",disableHeaderPaddings:a=!1,disableContentPaddings:c=!1,fitHeight:l,media:d,__stickyOffset:s,__mobileStickyOffset:u,__stickyHeader:h=!1,__internalRootRef:f=null,__disableFooterDivider:p=!1,__disableFooterPaddings:g=!1,__hiddenContent:v=!1,__headerRef:m,__darkHeader:y=!1,__disableStickyMobile:C=!0,__funnelSubStepProps:_,__subStepRef:k}=e,b=de(e,["header","footer","children","variant","disableHeaderPaddings","disableContentPaddings","fitHeight","media","__stickyOffset","__mobileStickyOffset","__stickyHeader","__internalRootRef","__disableFooterDivider","__disableFooterPaddings","__hiddenContent","__headerRef","__darkHeader","__disableStickyMobile","__funnelSubStepProps","__subStepRef"]);const S=rn(),T=Ie(b),L=B.useRef(null),I=B.useRef(null),{isSticky:A,isStuck:P,stickyStyles:D}=RN(L,I,h,s,u,C),E=De(),{setHasStickyBackground:R}=ry(),$=i==="full-page",N=Bf({disabled:!$||!y}),M=Lt(L,f),O=Lt(I,N,m);B.useEffect(()=>{const K=A&&i==="full-page"&&R;return K&&R(!0),()=>{K&&R(!1)}},[A,R,i]);const j=A&&!S,z=!!(d!=null&&d.content),F=(t=d==null?void 0:d.position)!==null&&t!==void 0?t:"top";return x.createElement("div",Object.assign({},T,_,{className:W(T.className,Bt.root,Bt[`variant-${i}`],l&&Bt["fit-height"],z&&(F==="side"?Bt["with-side-media"]:Bt["with-top-media"]),j&&[Bt["sticky-enabled"]],Bt.refresh),ref:M}),z&&x.createElement("div",{className:W(Bt[`media-${F==="side"?"side":"top"}`],Bt.media),style:F==="top"?{height:(d==null?void 0:d.height)||""}:{width:(d==null?void 0:d.width)||""}},d.content),x.createElement("div",{id:E,ref:k,className:W(Bt["content-wrapper"],l&&Bt["content-wrapper-fit-height"])},r&&x.createElement(ly.Provider,{value:{isStuck:P}},x.createElement("div",Object.assign({className:W(Bt.refresh,Bt.header,Bt[`header-variant-${i}`],jn()&&Bt["remove-high-contrast-header"],{[Bt["header-sticky-disabled"]]:h&&!A,[Bt["header-sticky-enabled"]]:A,[Bt["header-dynamic-height"]]:$,[Bt["header-stuck"]]:P,[Bt["with-paddings"]]:!a,[Bt["with-hidden-content"]]:!n||v,[Bt["header-with-media"]]:z})},D,{ref:O}),y?x.createElement("div",{className:W(Bt["dark-header"],_n())},r):r)),x.createElement("div",{className:W(Bt.content,l&&Bt["content-fit-height"],jn()&&Bt["remove-high-contrast-header"],{[Bt["with-paddings"]]:!c})},n),o&&x.createElement("div",{className:W(Bt.footer,{[Bt["with-divider"]]:!p,[Bt["with-paddings"]]:!g})},o)))}const PN="1.4",pE=e=>{const{isInFunnel:t}=xo();return t&&e.funnelType==="single-page"?x.createElement(x.Fragment,null,e.children):x.createElement(NN,Object.assign({},e))},$N="awsui-creation-edit-flow-done",ON=()=>{var e;try{(e=window.top)===null||e===void 0||e.document.dispatchEvent(new Event($N))}catch{}},mx=({funnelInteractionId:e})=>{ON()};function MN(e,t){for(const r of e)if(document.querySelector(r))return r;return t}const NN=e=>{var{children:t,stepConfiguration:r}=e,o=de(e,["children","stepConfiguration"]);const[n,i]=B.useState(""),[a,c]=B.useState(0),l=B.useRef("default"),d=B.useRef(Om()),s=B.useRef(0),u=B.useRef(0),h=B.useRef(0),f=B.useRef(void 0);B.useEffect(()=>{let y;const C=setTimeout(()=>{var _;if(d.current=MN(o.funnelNameSelectors||[],Om()),o.funnelType==="single-page"&&h.current>0)return;l.current="default";const k=[{number:1,isOptional:!1,name:(_=qr(d.current))!==null&&_!==void 0?_:""}];y=Sl.funnelStart({funnelNameSelector:d.current,optionalStepNumbers:o.optionalStepNumbers,funnelType:o.funnelType,totalFunnelSteps:o.totalFunnelSteps,componentVersion:zc,theme:"vr",funnelVersion:PN,stepConfiguration:r??k}),i(y)},1);return()=>{clearTimeout(C),!(o.funnelType==="single-page"&&h.current>0)&&(l.current==="validating"&&(mx({funnelInteractionId:y}),l.current="complete"),l.current==="complete"||(l.current="cancelled"))}},[]);const p=()=>{l.current="validating";const y=50,C=100,_=()=>{if(l.current!=="complete"){if(u.current>0){setTimeout(_,C);return}s.current===0?(mx({funnelInteractionId:n}),l.current="complete"):l.current="default"}};setTimeout(_,y)},g=()=>c(y=>y+1),v=()=>{},m={funnelInteractionId:n,setFunnelInteractionId:i,funnelType:o.funnelType,optionalStepNumbers:o.optionalStepNumbers,totalFunnelSteps:o.totalFunnelSteps,funnelNameSelector:d.current,funnelSubmit:p,funnelCancel:v,submissionAttempt:a,funnelNextOrSubmitAttempt:g,funnelState:l,errorCount:s,loadingButtonCount:u,latestFocusCleanupFunction:f,isInFunnel:!0,wizardCount:h};return x.createElement(FS.Provider,{value:m},t)},gE=e=>x.createElement(GN,Object.assign({},e,{key:e.stepNumber}));function Fm(){return Array.from(document.querySelectorAll(Ks())).map((r,o)=>{var n,i,a;return{name:(a=(i=(n=r.querySelector(zS()))===null||n===void 0?void 0:n.innerText)===null||i===void 0?void 0:i.trim())!==null&&a!==void 0?a:"",number:o+1}})}function jN(e,t){const r=B.useRef(new Map),o=50,n=B.useRef(!1);return B.useEffect(()=>{const a=setTimeout(()=>n.current=!0,o);return()=>{clearTimeout(a),n.current=!1}},[]),B.useEffect(()=>{const a=setTimeout(()=>r.current.set(e,Fm()),o);return()=>{clearTimeout(a)}},[e]),{onStepChange:Lf(()=>{n.current&&(r.current.set(e,Fm()),t(r.current.get(e)))},o),subStepConfiguration:r}}const GN=e=>{var{children:t,stepNumber:r}=e,o=de(e,["children","stepNumber"]);const{funnelInteractionId:n,funnelNameSelector:i,funnelState:a,funnelType:c}=xo(),l=ai(),d=l.isInStep,s=l.funnelInteractionId,u={[cP]:r},h=B.useRef(0),f=o.stepNameSelector||i,{onStepChange:p,subStepConfiguration:g}=jN(r,y=>{var C;if(!n)return;const _=(C=qr(f))!==null&&C!==void 0?C:"";Sl.funnelStepChange({funnelInteractionId:n,stepNumber:r,stepName:_,stepNameSelector:f,subStepAllSelector:Ks(),totalSubSteps:h.current,subStepConfiguration:y})});B.useEffect(()=>{if(!n||d&&s)return;const y=qr(f);return a.current==="default"&&Sl.funnelStepStart({funnelInteractionId:n,stepNumber:r,stepName:y,stepNameSelector:f,subStepAllSelector:Ks(),totalSubSteps:h.current,subStepConfiguration:Fm()}),()=>{a.current!=="cancelled"&&Sl.funnelStepComplete({funnelInteractionId:n,stepNumber:r,stepName:y,stepNameSelector:f,subStepAllSelector:Ks(),totalSubSteps:h.current})}},[n,r,f,a,d,c,s]);const m=d&&s?l:{stepNumber:r,stepNameSelector:f,funnelStepProps:u,subStepCount:h,isInStep:!0,funnelInteractionId:n,onStepChange:p,subStepConfiguration:g};return x.createElement(HS.Provider,{value:m},typeof t=="function"?t(m):t)},sy=({children:e})=>{const t=De("substep"),r=GS(t),o=zS(t),n=B.useRef(null),{subStepCount:i,onStepChange:a}=ai(),c=B.useRef(!1),l=B.useRef(!1),d=B.useRef(void 0),{funnelState:s,funnelInteractionId:u}=xo(),{stepNumber:h,stepNameSelector:f}=ai(),p={subStepSelector:r,subStepNameSelector:o,subStepId:t,subStepRef:n,mousePressed:c,isFocusedSubStep:l,focusCleanupFunction:d,isNestedSubStep:!1},g=Object.assign(Object.assign({},B.useContext(Mm)),{isNestedSubStep:!0}),v=!!g.subStepId;B.useEffect(()=>{if(!v)return i.current++,a(),()=>{i.current--,a()}},[v,i,a]);const m=v?g:p;return B.useEffect(()=>{if(v||!n.current)return;const y=()=>c.current=!0,C=()=>Zh(void 0,void 0,void 0,function*(){var _;c.current=!1,l.current&&(yield new Promise(k=>setTimeout(k,1)),(!n.current||!document.activeElement||!fn(n.current,document.activeElement))&&(l.current=!1,(_=d.current)===null||_===void 0||_.call(d)))});return window.addEventListener("mousedown",y),window.addEventListener("mouseup",C),()=>{window.removeEventListener("mousedown",y),window.removeEventListener("mouseup",C)}},[u,s,f,h,o,r,d,v,n]),x.createElement(Mm.Provider,{value:m},typeof e=="function"?e(m):e)},zN=e=>{var{className:t,children:r,header:o,variant:n,expanded:i,disableContentPaddings:a,__internalRootRef:c}=e,l=de(e,["className","children","header","variant","expanded","disableContentPaddings","__internalRootRef"]);return n==="container"||n==="stacked"?x.createElement(sy,null,x.createElement(hE,Object.assign({},l,{className:t,header:o,variant:n==="stacked"?"stacked":"default",disableContentPaddings:a||!i,disableHeaderPaddings:!0,__hiddenContent:!i,__internalRootRef:c}),r)):x.createElement("div",Object.assign({className:t},l,{ref:c}),o,r)},Nt={root:"awsui_root_2qdw9_1bpgx_99",refresh:"awsui_refresh_2qdw9_1bpgx_138","root-no-actions":"awsui_root-no-actions_2qdw9_1bpgx_138","root-variant-h2":"awsui_root-variant-h2_2qdw9_1bpgx_141","root-variant-h3":"awsui_root-variant-h3_2qdw9_1bpgx_141","root-has-description":"awsui_root-has-description_2qdw9_1bpgx_141","root-variant-h1":"awsui_root-variant-h1_2qdw9_1bpgx_150",main:"awsui_main_2qdw9_1bpgx_160","no-wrap":"awsui_no-wrap_2qdw9_1bpgx_170","main-variant-h1":"awsui_main-variant-h1_2qdw9_1bpgx_176",actions:"awsui_actions_2qdw9_1bpgx_184","actions-centered":"awsui_actions-centered_2qdw9_1bpgx_189","actions-variant-h1":"awsui_actions-variant-h1_2qdw9_1bpgx_192","actions-variant-h2":"awsui_actions-variant-h2_2qdw9_1bpgx_196","actions-variant-h3":"awsui_actions-variant-h3_2qdw9_1bpgx_200",title:"awsui_title_2qdw9_1bpgx_216","title-variant-h1":"awsui_title-variant-h1_2qdw9_1bpgx_221","title-variant-h2":"awsui_title-variant-h2_2qdw9_1bpgx_228","title-variant-h3":"awsui_title-variant-h3_2qdw9_1bpgx_234","virtual-space":"awsui_virtual-space_2qdw9_1bpgx_259",info:"awsui_info_2qdw9_1bpgx_265",description:"awsui_description_2qdw9_1bpgx_269","description-variant-h1":"awsui_description-variant-h1_2qdw9_1bpgx_276","description-variant-h2":"awsui_description-variant-h2_2qdw9_1bpgx_280","description-variant-h3":"awsui_description-variant-h3_2qdw9_1bpgx_287",heading:"awsui_heading_2qdw9_1bpgx_296","heading-variant-h1":"awsui_heading-variant-h1_2qdw9_1bpgx_307","heading-variant-h2":"awsui_heading-variant-h2_2qdw9_1bpgx_312","heading-variant-h3":"awsui_heading-variant-h3_2qdw9_1bpgx_317","heading-text":"awsui_heading-text_2qdw9_1bpgx_327","heading-text-variant-h1":"awsui_heading-text-variant-h1_2qdw9_1bpgx_330","heading-text-variant-h2":"awsui_heading-text-variant-h2_2qdw9_1bpgx_338","heading-text-variant-h3":"awsui_heading-text-variant-h3_2qdw9_1bpgx_346",counter:"awsui_counter_2qdw9_1bpgx_355"},Df=B.createContext({});function Rf(e){var{variant:t,headingTagOverride:r,children:o,actions:n,counter:i,description:a,info:c,__internalRootRef:l=null,__disableActionsWrapping:d}=e,s=de(e,["variant","headingTagOverride","children","actions","counter","description","info","__internalRootRef","__disableActionsWrapping"]);const u=rn(),h=r??(t==="awsui-h1-sticky"?"h1":t),{isStuck:f}=B.useContext(ly),p=Ie(s),g=B.useContext(Df).assignId,v=De("heading");g!==void 0&&g(v);const y=t==="awsui-h1-sticky"?!u&&f?"h2":"h1":t;return x.createElement("div",Object.assign({},p,{className:W(Nt.root,p.className,Nt[`root-variant-${y}`],Nt.refresh,!n&&[Nt["root-no-actions"]],a&&[Nt["root-has-description"]]),ref:l}),x.createElement("div",{className:W(Nt.main,Nt[`main-variant-${y}`],Nt.refresh,d&&[Nt["no-wrap"]])},x.createElement("div",{className:W(Nt.title,Nt[`title-variant-${y}`],Nt.refresh)},x.createElement(h,{className:W(Nt.heading,Nt[`heading-variant-${y}`])},x.createElement("span",Object.assign({},h==="h2"?{[Zl]:jS}:{},{className:W(Nt["heading-text"],Nt[`heading-text-variant-${y}`]),id:v}),o),i!==void 0&&x.createElement("span",{className:Nt.counter}," ",i)),c&&x.createElement(Tf.Provider,{value:v},x.createElement("span",{className:Nt["virtual-space"]},"  "),x.createElement("span",{className:Nt.info},c))),n&&x.createElement("div",{className:W(Nt.actions,Nt[`actions-variant-${y}`],Nt.refresh,!d&&[Nt["actions-centered"]])},n)),x.createElement(mE,{variantOverride:y},a))}function mE({children:e,variantOverride:t}){return e&&x.createElement("p",{className:W(Nt.description,Nt[`description-variant-${t}`],Nt.refresh)},e)||null}function vE(e){return["container","default","footer"].includes(e)}function FN(e){return["container","compact"].includes(e)}const HN=({id:e,className:t,onClick:r,ariaLabel:o,ariaControls:n,expanded:i,children:a,icon:c,onKeyUp:l,onKeyDown:d,variant:s})=>x.createElement("div",{id:e,role:"button",className:W(t,ht["expand-button"],ht["click-target"],ht["header-deprecated"]),tabIndex:0,onKeyUp:l,onKeyDown:d,onClick:r,"aria-label":o,"aria-controls":n,"aria-expanded":i},x.createElement("div",{className:W(ht["icon-container"],ht[`icon-container-${s}`])},c),a),WN=({id:e,className:t,onClick:r,ariaLabelledBy:o,ariaLabel:n,ariaControls:i,expanded:a,children:c,icon:l})=>x.createElement("div",{id:e,className:W(t,ht["click-target"])},x.createElement("button",{className:W(ht["icon-container"],ht["expand-button"]),"aria-labelledby":o,"aria-label":n,"aria-controls":i,"aria-expanded":a,type:"button",onClick:r},l),c),VN=({id:e,descriptionId:t,className:r,onClick:o,ariaLabel:n,ariaControls:i,expanded:a,children:c,icon:l,headerDescription:d,headerCounter:s,headerInfo:u,headerActions:h,variant:f,headingTagOverride:p,onKeyUp:g,onKeyDown:v})=>{const m=f==="container",y=p||"div",C=FN(f),_=C&&(u||h),k=C&&h,b=vE(f)&&d&&x.createElement("span",{id:t,className:ht[`description-${f}`]},d),S={onClick:o,onKeyDown:v,onKeyUp:g},T=_?S:void 0,L=!T&&!m&&b?S:void 0,I=!T&&!L?S:void 0,A=x.createElement("span",Object.assign({className:W(ht["expand-button"],m?ht["header-container-button"]:ht["header-button"],T&&ht["click-target"]),role:"button",tabIndex:0,"aria-label":n,"aria-labelledby":!n&&b?e:void 0,"aria-describedby":b?t:void 0,"aria-controls":i,"aria-expanded":a},T),x.createElement("span",{className:W(ht["icon-container"],ht[`icon-container-${f}`])},l),x.createElement("span",{id:e,className:ht["header-text"]},c));return x.createElement("div",Object.assign({className:W(r,I&&ht["click-target"])},I),m?x.createElement(Rf,{variant:"h2",description:b,counter:s,info:u,actions:k,headingTagOverride:p},A):x.createElement(x.Fragment,null,x.createElement("div",{className:W(k&&ht["header-actions-wrapper"])},x.createElement(y,Object.assign({className:W(ht["header-wrapper"],L&&ht["click-target"])},L),A),k),b&&x.createElement(mE,{variantOverride:"h3"},b)))},UN=({id:e,descriptionId:t,className:r,variant:o,header:n,headerText:i,headerDescription:a,headerCounter:c,headerInfo:l,headerActions:d,headingTagOverride:s,expanded:u,ariaControls:h,ariaLabel:f,ariaLabelledBy:p,onKeyUp:g,onKeyDown:v,onClick:m})=>{const y=x.createElement(ze,{size:o==="container"?"medium":"normal",className:W(ht.icon,u&&ht.expanded),name:"caret-down-filled"}),C={id:e,icon:y,expanded:u,ariaControls:h,ariaLabel:f,onClick:m,variant:o},_=W(ht.wrapper,ht[`wrapper-${o}`],u&&ht["wrapper-expanded"]);return o==="navigation"?x.createElement(WN,Object.assign({className:W(r,_),ariaLabelledBy:p},C),i??n):i?x.createElement(VN,Object.assign({className:W(r,_,u&&ht.expanded),descriptionId:t,headerDescription:a,headerCounter:c,headerInfo:l,headerActions:d,headingTagOverride:s,onKeyUp:g,onKeyDown:v},C),i):x.createElement(HN,Object.assign({className:W(r,_,ht.focusable,u&&ht.expanded),onKeyUp:g,onKeyDown:v},C),n)};function cy(e){var{expanded:t,defaultExpanded:r,onChange:o,variant:n="default",children:i,header:a,headerText:c,headerCounter:l,headerDescription:d,headerInfo:s,headerActions:u,headingTagOverride:h,disableContentPaddings:f,headerAriaLabel:p,__internalRootRef:g}=e,v=de(e,["expanded","defaultExpanded","onChange","variant","children","header","headerText","headerCounter","headerDescription","headerInfo","headerActions","headingTagOverride","disableContentPaddings","headerAriaLabel","__internalRootRef"]);const m=B.useRef(null),y=De(),C=`${y}-trigger`,_=`${y}-description`,k=Ie(v),[b,S]=go(t,o,r,{componentName:"ExpandableSection",controlledProp:"expanded",changeHandler:"onChange"}),T=B.useCallback(E=>{S(E),xe(o,{expanded:E})},[o,S]),L=B.useCallback(()=>{T(!b)},[T,b]),I=B.useCallback(E=>{[ke.enter,ke.space].indexOf(E.keyCode)!==-1&&T(!b)},[T,b]),A=B.useCallback(E=>{E.keyCode===ke.space&&E.preventDefault()},[]),P={ariaControls:y,ariaLabel:p,ariaLabelledBy:p?void 0:C,onKeyUp:I,onKeyDown:A,onClick:L},D=n==="stacked"?"container":n;return x.createElement(zN,Object.assign({},k,{expanded:b,className:W(k.className,ht.root),variant:n,disableContentPaddings:f,header:x.createElement(UN,Object.assign({id:C,descriptionId:_,className:W(ht.header,ht[`header-${D}`]),variant:D,expanded:!!b,header:a,headerText:c,headerDescription:d,headerCounter:l,headerInfo:s,headerActions:u,headingTagOverride:h},P)),__internalRootRef:g}),x.createElement(L$,{in:b,timeout:30,classNames:{enter:ht["content-enter"]},nodeRef:m},x.createElement("div",{id:y,ref:m,className:W(ht.content,ht[`content-${D}`],b&&ht["content-expanded"]),role:"group","aria-label":P.ariaLabel,"aria-labelledby":P.ariaLabelledBy,"aria-describedby":vE(D)&&d?_:void 0},i)))}function Nl(e){"@babel/helpers - typeof";return Nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nl(e)}function uy(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function _o(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Zr(e){_o(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Nl(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function KN(e,t){_o(2,arguments);var r=Zr(e),o=uy(t);return isNaN(o)?new Date(NaN):(o&&r.setDate(r.getDate()+o),r)}function dy(e,t){_o(2,arguments);var r=Zr(e),o=uy(t);if(isNaN(o))return new Date(NaN);if(!o)return r;var n=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+o+1,0);var a=i.getDate();return n>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),n),r)}function vx(e){_o(1,arguments);var t=Zr(e);return t.setHours(0,0,0,0),t}function qN(e,t){_o(2,arguments);var r=uy(t);return dy(e,r*12)}function yx(e,t){_o(2,arguments);var r=Zr(e),o=Zr(t),n=r.getTime()-o.getTime();return n<0?-1:n>0?1:n}function YN(e,t){_o(2,arguments);var r=vx(e),o=vx(t);return r.getTime()===o.getTime()}function XN(e,t){_o(2,arguments);var r=Zr(e),o=Zr(t);return r.getFullYear()-o.getFullYear()}function QN(e,t){_o(2,arguments);var r=Zr(e),o=Zr(t),n=yx(r,o),i=Math.abs(XN(r,o));r.setFullYear(1584),o.setFullYear(1584);var a=yx(r,o)===-n,c=n*(i-Number(a));return c===0?0:c}function ZN(e){_o(1,arguments);var t=Zr(e);return t.setDate(1),t.setHours(0,0,0,0),t}function JN(e){_o(1,arguments);var t=Zr(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function ej(e){_o(1,arguments);var t=Zr(e),r=t.getFullYear(),o=t.getMonth(),n=new Date(0);return n.setFullYear(r,o+1,0),n.setHours(0,0,0,0),n.getDate()}function tj(e,t){if(Nl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(Nl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rj(e){var t=tj(e,"string");return Nl(t)=="symbol"?t:t+""}function oj(e,t,r){return t=rj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xs(e,t){_o(2,arguments);var r=Zr(e),o=Zr(t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function hy(e,t){_o(2,arguments);var r=Zr(e),o=Zr(t);return r.getFullYear()===o.getFullYear()}function yE(e,t,{trailing:r=!0}={}){let o=null,n=null,i=null;function a(){if(o===null||n===null)return;const d=Date.now();d-n>=t?(e.apply(o.this,o.args),n=d,o=null,i=null):r&&c()}function c(){i&&cancelAnimationFrame(i),i=requestAnimationFrame(a)}function l(...d){n===null?(n=Date.now(),e.apply(this,d)):(o={this:this,args:d},c())}return l.cancel=()=>{i&&cancelAnimationFrame(i),o=null,n=null,i=null},l}const Ao={"empty-appear":"awsui_empty-appear_n4qlp_1ebkl_99","awsui-motion-fade-in":"awsui_awsui-motion-fade-in_n4qlp_1ebkl_1",root:"awsui_root_n4qlp_1ebkl_125",empty:"awsui_empty_n4qlp_1ebkl_99",row:"awsui_row_n4qlp_1ebkl_167","row-control":"awsui_row-control_n4qlp_1ebkl_171",field:"awsui_field_n4qlp_1ebkl_175","add-button":"awsui_add-button_n4qlp_1ebkl_179","remove-button":"awsui_remove-button_n4qlp_1ebkl_183","button-container-haslabel":"awsui_button-container-haslabel_n4qlp_1ebkl_187","button-container-nolabel":"awsui_button-container-nolabel_n4qlp_1ebkl_191",divider:"awsui_divider_n4qlp_1ebkl_195","additional-info":"awsui_additional-info_n4qlp_1ebkl_199","right-align":"awsui_right-align_n4qlp_1ebkl_245"},nj=({children:e,id:t})=>x.createElement(lo,{visible:!0,tagName:"div","data-testid":"info-live-region"},x.createElement("div",{id:t,className:Ao["additional-info"]},e)),Ss={"css-grid":"awsui_css-grid_zqq3x_19h7g_9","grid-no-gutters":"awsui_grid-no-gutters_zqq3x_19h7g_13","grid-variant-text-grid":"awsui_grid-variant-text-grid_zqq3x_19h7g_16",item:"awsui_item_zqq3x_19h7g_16","first-column":"awsui_first-column_zqq3x_19h7g_20"},ij=e=>e%2!==0;function aj(e,t,r){if(!r)return e;const o=Math.min(e,Math.floor(r/t));return Math.max(1,o<e&&ij(o)?o-1:o)}function lj({columns:e=1,minColumnWidth:t=0,disableGutters:r,variant:o,children:n}){const[i,a]=zr(s=>s.contentBoxWidth),c=aj(e,t,i),l=o!=="text-grid"&&r,d=pf(n);return x.createElement("div",{ref:a,className:W(Ss["css-grid"],Ss[`grid-variant-${o}`],l&&[Ss["grid-no-gutters"]]),style:{gridTemplateColumns:`repeat(${c}, 1fr)`}},d.map((s,u)=>{const h=s.key;return x.createElement("div",{key:h?String(h):void 0,className:W(Ss.item,{[Ss["first-column"]]:u%c===0})},s)}))}function sj(e,t){const r=[];for(let o=0;o<t;o++)r[o]=e;return r}const wi={"column-layout":"awsui_column-layout_vvxn7_14vht_99",grid:"awsui_grid_vvxn7_14vht_134","grid-no-gutters":"awsui_grid-no-gutters_vvxn7_14vht_140","grid-variant-text-grid":"awsui_grid-variant-text-grid_vvxn7_14vht_144","grid-breakpoint-default":"awsui_grid-breakpoint-default_vvxn7_14vht_152","grid-columns-1":"awsui_grid-columns-1_vvxn7_14vht_155","grid-breakpoint-xxs":"awsui_grid-breakpoint-xxs_vvxn7_14vht_155","grid-breakpoint-xs":"awsui_grid-breakpoint-xs_vvxn7_14vht_158","grid-columns-2":"awsui_grid-columns-2_vvxn7_14vht_161","grid-columns-3":"awsui_grid-columns-3_vvxn7_14vht_167","grid-columns-4":"awsui_grid-columns-4_vvxn7_14vht_173","grid-vertical-borders":"awsui_grid-vertical-borders_vvxn7_14vht_189","grid-horizontal-borders":"awsui_grid-horizontal-borders_vvxn7_14vht_222"},cj={1:{colspan:{default:12,xxs:12,xs:12}},2:{colspan:{default:12,xxs:6,xs:6}},3:{colspan:{default:12,xxs:6,xs:4}},4:{colspan:{default:12,xxs:6,xs:3}}};function uj({columns:e,variant:t,borders:r,disableGutters:o,__breakpoint:n,children:i}){var a;const c=t==="text-grid",l=!c&&o,d=!c&&(r==="horizontal"||r==="all"),s=!c&&(r==="vertical"||r==="all"),u=pf(i),[h,f]=zn(dj);return x.createElement(oy,{ref:f,disableGutters:!0,gridDefinition:sj((a=cj[e])!==null&&a!==void 0?a:{},u.length),className:W(wi.grid,wi[`grid-columns-${e}`],wi[`grid-variant-${t}`],{[wi["grid-horizontal-borders"]]:d,[wi["grid-vertical-borders"]]:s,[wi["grid-no-gutters"]]:l}),__breakpoint:n||h,__responsiveClassName:p=>p&&wi[`grid-breakpoint-${p}`]},i)}const dj=["default","xxs","xs"];function If(e){var{columns:t=1,variant:r="default",borders:o="none",disableGutters:n=!1,minColumnWidth:i,children:a,__breakpoint:c,__internalRootRef:l}=e,d=de(e,["columns","variant","borders","disableGutters","minColumnWidth","children","__breakpoint","__internalRootRef"]);const s=Ie(d);return x.createElement("div",Object.assign({},s,{className:W(s.className,wi["column-layout"]),ref:l}),i?x.createElement(lj,{columns:t,borders:o,variant:r,minColumnWidth:i,disableGutters:n},a):x.createElement(uj,{columns:t,variant:r,borders:o,disableGutters:n,__breakpoint:c},a))}const hj=()=>x.createElement(xn,{className:Ao.divider,padding:{top:"l"}});function rg(e,t,r){if(o(r))return r(e,t);return r;function o(n){return typeof n=="function"}}const fj=[{colspan:{default:12,xs:9}}],pj=[{colspan:{default:12,xs:9}},{colspan:{default:12,xs:3}}],gj=x.memo(({breakpoint:e,item:t,definition:r,i18nStrings:o={},index:n,removable:i,removeButtonText:a,removeButtonRefs:c,onRemoveButtonClick:l,removeButtonAriaLabel:d})=>{var s;const u=it("attribute-editor"),h=e==="default"||e==="xxs",f=!h,p=B.useCallback(()=>{xe(l,{itemIndex:n})},[l,n]),g=De("first-control-id-");return x.createElement(xn,{className:Ao.row,margin:{bottom:"s"}},x.createElement("div",{role:"group","aria-labelledby":`${g}-label ${g}`},x.createElement(oy,{__breakpoint:e,gridDefinition:i?pj:fj},x.createElement(If,{className:Ao["row-control"],columns:r.length,__breakpoint:e},r.map(({info:v,label:m,constraintText:y,errorText:C,control:_},k)=>x.createElement(Nn,{key:k,className:Ao.field,label:m,info:v,constraintText:rg(t,n,y),errorText:rg(t,n,C),stretch:!0,i18nStrings:{errorIconAriaLabel:o.errorIconAriaLabel},__hideLabel:f&&n>0,controlId:k===0?g:void 0},rg(t,n,_)))),i&&x.createElement(mj,{index:n,isNarrowViewport:h,hasLabel:r.some(v=>v.label)},x.createElement(pt,{className:Ao["remove-button"],formAction:"none",ref:v=>{c[n]=v??void 0},ariaLabel:(s=d??o.removeButtonAriaLabel)===null||s===void 0?void 0:s(t),onClick:p},u("removeButtonText",a))))),h&&x.createElement(hj,null))}),mj=({index:e,children:t,isNarrowViewport:r,hasLabel:o})=>x.createElement("div",{className:W({[Ao["button-container-haslabel"]]:!r&&e===0&&o,[Ao["button-container-nolabel"]]:!r&&e===0&&!o,[Ao["right-align"]]:r})},t),vj=x.forwardRef((e,t)=>{var{additionalInfo:r,disableAddButton:o,definition:n,items:i,isItemRemovable:a=()=>!0,empty:c,addButtonText:l,removeButtonText:d,removeButtonAriaLabel:s,i18nStrings:u,onAddButtonClick:h,onRemoveButtonClick:f,__internalRootRef:p=null}=e,g=de(e,["additionalInfo","disableAddButton","definition","items","isItemRemovable","empty","addButtonText","removeButtonText","removeButtonAriaLabel","i18nStrings","onAddButtonClick","onRemoveButtonClick","__internalRootRef"]);const[v,m]=zn(["default","xxs","xs"]),y=B.useRef([]),C=B.useRef(null),_=B.useRef(!1),[k,b]=B.useState(""),S=Ie(g),T=i&&i.length===0;_.current=_.current||!T,B.useImperativeHandle(t,()=>({focusRemoveButton(D){var E;(E=y.current[D])===null||E===void 0||E.focus()},focusAddButton(){var D;(D=C.current)===null||D===void 0||D.focus()}}));const L=Lt(m,p),I=De("attribute-editor-info"),A=r?I:void 0,P=Lc(i.length);return x.useEffect(()=>{P&&P>i.length&&(u!=null&&u.itemRemovedAriaLive)?b(u.itemRemovedAriaLive):b("")},[i,u==null?void 0:u.itemRemovedAriaLive]),x.createElement("div",Object.assign({},S,{ref:L,className:W(S.className,Ao.root)}),x.createElement(xn,{margin:{bottom:"l"}},T&&x.createElement("div",{className:W(Ao.empty,_.current&&Ao["empty-appear"])},c),i.map((D,E)=>x.createElement(gj,{key:E,index:E,breakpoint:v,item:D,definition:n,i18nStrings:u,removable:a(D),removeButtonText:d,removeButtonRefs:y.current,onRemoveButtonClick:f,removeButtonAriaLabel:s}))),x.createElement(pt,{className:Ao["add-button"],disabled:o,onClick:h,formAction:"none",ref:C,ariaDescribedby:A},l),x.createElement(lo,{"data-testid":"removal-announcement",delay:5,key:i.length},k),!!r&&x.createElement(nj,{id:A},r))}),yj=vj,bE=x.forwardRef((e,t)=>{var{items:r=[],isItemRemovable:o=()=>!0}=e,n=de(e,["items","isItemRemovable"]);const i=ut("AttributeEditor");return x.createElement(yj,Object.assign({items:r,isItemRemovable:o},n,i,{ref:t}))});at(bE,"AttributeEditor");const Qc=bE,wE=e=>"type"in e&&e.type==="parent",bx=e=>{if(e.length){const t=e[e.length-1];wE(t)&&e.pop()}},bj=(e,t)=>{const r=e.reduce((o,n)=>(wE(n)?(bx(o),o.push(n)):wj(n,t)&&o.push(n),o),[]);return bx(r),r},wj=(e,t)=>{const r=["value","label","description","labelTag"],o=["tags","filteringTags"],n=t.toLowerCase(),i=c=>wx(e[c],n),a=c=>{var l;return(l=e[c])===null||l===void 0?void 0:l.some(d=>wx(d,n))};return r.some(i)||o.some(a)},wx=(e,t)=>e&&e.toLowerCase().indexOf(t)!==-1,xx=e=>!!e&&e.type!=="parent",_x=e=>!!e&&!e.disabled&&e.type!=="parent",xE=({options:e,filterValue:t,filterText:r,filteringType:o,enteredTextLabel:n,hideEnteredTextLabel:i,onSelectItem:a})=>{const c=it("autosuggest"),[l,d]=B.useState(!1),{items:s,getItemGroup:u,getItemParent:h}=B.useMemo(()=>xj(e),[e]),f=c("enteredTextLabel",n==null?void 0:n(t),_=>_({value:t})),p=B.useMemo(()=>{const _=o==="auto"&&!l?bj(s,r):[...s];return t&&!i&&_.unshift({value:t,type:"use-entered",label:f,option:{value:t}}),QT(_,h),_},[o,l,s,r,t,i,h,f]),[g,v]=JT({options:p,isHighlightable:xx}),m=()=>g.highlightedOption&&_x(g.highlightedOption)?(a(g.highlightedOption),!0):!1,y=_=>{p[_]&&xx(p[_])&&v.setHighlightedIndexWithMouse(_)},C=_=>{p[_]&&_x(p[_])&&a(p[_])};return[Object.assign(Object.assign({},g),{items:p,showAll:l,getItemGroup:u}),Object.assign(Object.assign({},v),{setShowAll:d,selectHighlightedOptionWithKeyboard:m,highlightVisibleOptionWithMouse:y,selectVisibleOptionWithMouse:C})]};function xj(e){const t=[],r=new WeakMap,o=a=>r.get(a),n=a=>{var c;return(c=o(a))===null||c===void 0?void 0:c.option};for(const a of e)if(_j(a))for(const c of i(a))t.push(c);else t.push(Object.assign(Object.assign({},a),{option:a}));function i(a){const{options:c}=a,l=de(a,["options"]);let d=!0;const s=Object.assign(Object.assign({},l),{type:"parent",option:a}),u=[s];for(const h of c){h.disabled||(d=!1);const f=Object.assign(Object.assign({},h),{type:"child",disabled:h.disabled||l.disabled,option:h});u.push(f),r.set(f,s)}return u[0].disabled=u[0].disabled||d,u}return{items:t,getItemGroup:n,getItemParent:o}}function _j(e){return"options"in e}const jl={root:"awsui_root_12hwc_oboi4_5","layout-strut":"awsui_layout-strut_12hwc_oboi4_9","list-bottom":"awsui_list-bottom_12hwc_oboi4_15"},kj=(e,t)=>{var{nativeAttributes:r={},highlightText:o,option:n,highlighted:i,highlightType:a,current:c,virtualPosition:l,padBottom:d,screenReaderContent:s,ariaSetsize:u,ariaPosinset:h}=e,f=de(e,["nativeAttributes","highlightText","option","highlighted","highlightType","current","virtualPosition","padBottom","screenReaderContent","ariaSetsize","ariaPosinset"]);const p=Ie(f),g="type"in n&&n.type==="use-entered",v="type"in n&&n.type==="parent",m="type"in n&&n.type==="child",{throughIndex:y,inGroupIndex:C,groupIndex:_}=XT(n)||{};let k;if(g)k=n.label,s=void 0;else if(v)k=n.label;else{const b={};r["aria-label"]&&(b["aria-label"]=r["aria-label"]),k=x.createElement("div",Object.assign({},b),x.createElement(Xc,{option:n,highlightedOption:i,highlightText:o}))}return x.createElement(iy,Object.assign({},p,{className:jl.option,ariaSelected:c,highlighted:i,disabled:n.disabled,hasBackground:g,isParent:v,isChild:m,virtualPosition:l,"data-test-index":y,"data-in-group-index":C,"data-group-index":_,ref:t,padBottom:d,screenReaderContent:s,ariaSetsize:u,ariaPosinset:h,highlightType:a.type}),k)},_E=x.memo(x.forwardRef(kj)),kE=(e,t,r,o,n,i)=>{const a=t===n?o:{},c=Ie(a),l=e===r.length-1,d=r.length>1;return Object.assign({nativeAttributes:a,padBottom:!i&&d&&l},c)},Cj=({autosuggestItemsState:e,handleLoadMore:t,menuProps:r,highlightedA11yProps:o,hasDropdownStatus:n,highlightText:i,listBottom:a,screenReaderContent:c})=>{const l=B.useRef(null);return B.useEffect(()=>{var d;const s=(d=l.current)===null||d===void 0?void 0:d.querySelector(`[data-mouse-target="${e.highlightedIndex}"]`);e.highlightType.moveFocus&&s&&Uc(s)},[e.highlightType,e.highlightedIndex]),x.createElement(rs,Object.assign({},r,{onLoadMore:t,open:!0,ref:l,nativeAttributes:{unselectable:"on"}}),e.items.map((d,s)=>{const u=kE(s,d,e.items,o,e.highlightedOption,n);return x.createElement(_E,Object.assign({highlightText:i,option:d,highlighted:d===e.highlightedOption,current:d.value===i,key:s,"data-mouse-target":s,screenReaderContent:c,highlightType:e.highlightType},u))}),a?x.createElement("li",{role:"option",className:jl["list-bottom"]},a):null)},Sj=Cj,Tj=({autosuggestItemsState:e,handleLoadMore:t,menuProps:r,highlightedA11yProps:o,hasDropdownStatus:n,highlightText:i,listBottom:a,screenReaderContent:c})=>{const l=B.useRef(null),[d,s]=zr(h=>h.contentBoxWidth,[]);B.useImperativeHandle(s,()=>l.current);const u=aE({items:e.items,parentRef:l,estimateSize:B.useCallback(()=>31,[d,i])});return B.useEffect(()=>{e.highlightType.moveFocus&&u.scrollToIndex(e.highlightedIndex)},[e.highlightType,e.highlightedIndex,u]),x.createElement(rs,Object.assign({},r,{onLoadMore:t,ref:l,open:!0,nativeAttributes:{unselectable:"on"}}),x.createElement("div",{"aria-hidden":"true",key:"total-size",className:jl["layout-strut"],style:{height:u.totalSize+(e.items.length===1?1:0)}}),u.virtualItems.map(h=>{const{index:f,start:p,measureRef:g}=h,v=e.items[f],m=kE(f,v,e.items,o,e.highlightedOption,n);return x.createElement(_E,Object.assign({key:f,ref:g,highlightText:i,option:v,highlighted:v===e.highlightedOption,current:v.value===i,"data-mouse-target":f,virtualPosition:p+(f===0?1:0),screenReaderContent:c,ariaSetsize:e.items.length,ariaPosinset:f+1,highlightType:e.highlightType},m))}),a?x.createElement("li",{role:"option",className:jl["list-bottom"]},a):null)},Ej=Tj,kx=e=>t=>{t>-1&&e(t)};function CE({statusType:e,autosuggestItemsState:t,autosuggestItemsHandlers:r,highlightedOptionId:o,highlightText:n,listId:i,controlId:a,handleLoadMore:c,hasDropdownStatus:l,virtualScroll:d,selectedAriaLabel:s,renderHighlightedAriaLive:u,listBottom:h,ariaDescribedby:f}){var p;const g=kx(r.selectVisibleOptionWithMouse),v=kx(r.highlightVisibleOptionWithMouse),m=d?Ej:Sj,y=ny({announceSelected:((p=t.highlightedOption)===null||p===void 0?void 0:p.value)===n,highlightedOption:t.highlightedOption,getParent:C=>t.getItemGroup(C),selectedAriaLabel:s,renderHighlightedAriaLive:u});return x.createElement(m,{listBottom:h,handleLoadMore:c,autosuggestItemsState:t,highlightText:n,highlightedA11yProps:o?{id:o}:{},hasDropdownStatus:l,menuProps:{id:i,ariaLabelledby:a,onMouseUp:g,onMouseMove:v,ariaDescribedby:f,statusType:e},screenReaderContent:y})}const SE=({options:e=[],statusType:t,onLoadItems:r})=>{const o=B.useRef(null),n=({firstPage:d,samePage:s,filteringText:u})=>{var h;(u===void 0||o.current!==u)&&(u!==void 0&&(o.current=u),r({filteringText:(h=o.current)!==null&&h!==void 0?h:"",firstPage:d,samePage:s}))};return{fireLoadMoreOnScroll:()=>{e.length>0&&t==="pending"&&n({firstPage:!1,samePage:!1})},fireLoadMoreOnRecoveryClick:()=>n({firstPage:!1,samePage:!0}),fireLoadMoreOnInputFocus:()=>n({firstPage:!0,samePage:!1,filteringText:""}),fireLoadMoreOnInputChange:d=>n({firstPage:!0,samePage:!1,filteringText:d})}},og={"dropdown-footer":"awsui_dropdown-footer_vm8qf_jxdvh_5","dropdown-content":"awsui_dropdown-content_vm8qf_jxdvh_10"},Lj=x.forwardRef((e,t)=>{var{value:r,onChange:o,onBlur:n,onFocus:i,onKeyUp:a,onKeyDown:c,name:l,placeholder:d,disabled:s,readOnly:u,autoFocus:h,ariaLabel:f,ariaRequired:p,disableBrowserAutocorrect:g=!1,expandToViewport:v,ariaControls:m,ariaActivedescendant:y,clearAriaLabel:C,dropdownExpanded:_=!0,dropdownContentKey:k,dropdownContentFocusable:b=!1,dropdownContent:S=null,dropdownFooter:T=null,dropdownWidth:L,loopFocus:I,onCloseDropdown:A,onDelayedInput:P,onPressArrowDown:D,onPressArrowUp:E,onPressEnter:R,__internalRootRef:$}=e,N=de(e,["value","onChange","onBlur","onFocus","onKeyUp","onKeyDown","name","placeholder","disabled","readOnly","autoFocus","ariaLabel","ariaRequired","disableBrowserAutocorrect","expandToViewport","ariaControls","ariaActivedescendant","clearAriaLabel","dropdownExpanded","dropdownContentKey","dropdownContentFocusable","dropdownContent","dropdownFooter","dropdownWidth","loopFocus","onCloseDropdown","onDelayedInput","onPressArrowDown","onPressArrowUp","onPressEnter","__internalRootRef"]);const M=Ie(N),O=Sn(N),j=B.useRef(null),z=B.useRef(null),F=B.useRef(null),K=B.useRef(!1),U=B.useRef(!1),[Y,V]=B.useState(!1),q=()=>!u&&V(!0),ee=()=>{V(!1),xe(A,null)};B.useImperativeHandle(t,()=>({focus(H){var te;H!=null&&H.preventDropdown&&(K.current=!0),(te=j.current)===null||te===void 0||te.focus()},select(){var H;(H=j.current)===null||H===void 0||H.select()},open:q,close:ee}));const X=()=>{U.current||(ee(),xe(n,null))},ie=()=>{K.current||(q(),xe(i,null)),K.current=!1},se=H=>St(c,H.detail,H),me=H=>{switch(H.detail.keyCode){case ke.down:{D==null||D(),q(),H.preventDefault();break}case ke.up:{E==null||E(),q(),H.preventDefault();break}case ke.enter:{Y&&(R!=null&&R()||ee(),H.preventDefault()),se(H);break}case ke.escape:{Y?(H.stopPropagation(),ee()):r&&(H.stopPropagation(),xe(o,{value:""})),H.preventDefault(),se(H);break}default:se(H)}},ve=H=>{q(),xe(o,{value:H})},Q=H=>{xe(P,{value:H})},oe=H=>{b?(U.current=!0,requestAnimationFrame(()=>{U.current=!1})):H.preventDefault()},G={name:l,placeholder:d,autoFocus:h,onClick:q,role:"combobox","aria-autocomplete":"list","aria-expanded":Y&&_,"aria-controls":Y?m:void 0,"aria-owns":Y?m:void 0,"aria-label":f,"aria-activedescendant":y};return B.useEffect(()=>{if(!Y)return;const H=te=>{!fn(j.current,te.target)&&!fn(z.current,te.target)&&!fn(F.current,te.target)&&ee()};return window.addEventListener("mousedown",H),()=>{window.removeEventListener("mousedown",H)}},[Y]),x.createElement("div",Object.assign({},M,{className:W(M.className,og.root),ref:$}),x.createElement(Kc,{minWidth:L,stretchWidth:!L,stretchBeyondTriggerWidth:!0,contentKey:k,onFocus:ie,onBlur:X,trigger:x.createElement(Af,Object.assign({type:"visualSearch",value:r,onChange:H=>ve(H.detail.value),__onDelayedInput:H=>Q(H.detail.value),onKeyDown:me,onKeyUp:a,disabled:s,disableBrowserAutocorrect:g,readOnly:u,ariaRequired:p,clearAriaLabel:C,ref:j,autoComplete:!1,__nativeAttributes:G},O)),onMouseDown:oe,open:Y&&(!!S||!!T),footer:F&&x.createElement("div",{ref:F,className:og["dropdown-footer"]},T),expandToViewport:v,loopFocus:I},Y&&S?x.createElement("div",{ref:z,className:og["dropdown-content"]},S):null))}),TE=Lj,Aj=x.forwardRef((e,t)=>{var r,o;const{value:n,onChange:i,onBlur:a,onFocus:c,onKeyUp:l,onLoadItems:d,options:s,filteringType:u="auto",statusType:h="finished",placeholder:f,clearAriaLabel:p,name:g,disabled:v,disableBrowserAutocorrect:m=!1,autoFocus:y,readOnly:C,ariaLabel:_,ariaRequired:k,enteredTextLabel:b,filteringResultsText:S,onKeyDown:T,virtualScroll:L,expandToViewport:I,onSelect:A,renderHighlightedAriaLive:P,__internalRootRef:D}=e,E=de(e,["value","onChange","onBlur","onFocus","onKeyUp","onLoadItems","options","filteringType","statusType","placeholder","clearAriaLabel","name","disabled","disableBrowserAutocorrect","autoFocus","readOnly","ariaLabel","ariaRequired","enteredTextLabel","filteringResultsText","onKeyDown","virtualScroll","expandToViewport","onSelect","renderHighlightedAriaLive","__internalRootRef"]),R=B.useRef(null);B.useImperativeHandle(t,()=>({focus:()=>{var ne;return(ne=R.current)===null||ne===void 0?void 0:ne.focus()},select:()=>{var ne;return(ne=R.current)===null||ne===void 0?void 0:ne.select()}}),[]);const $=it("autosuggest"),N=$("errorIconAriaLabel",E.errorIconAriaLabel),M=$("selectedAriaLabel",E.selectedAriaLabel),O=$("recoveryText",E.recoveryText);E.recoveryText;const[j,z]=xE({options:s||[],filterValue:n,filterText:n,filteringType:u,enteredTextLabel:b,hideEnteredTextLabel:!1,onSelectItem:ne=>{var pe;const ue=ne.value||"";xe(i,{value:ue}),xe(A,{value:ue,selectedOption:ne.type!=="use-entered"?ne.option:void 0}),(pe=R.current)===null||pe===void 0||pe.close()}}),F=SE({options:s,statusType:h,onLoadItems:ne=>xe(d,ne)}),K=ne=>{z.setShowAll(!1),z.resetHighlightWithKeyboard(),xe(i,ne.detail)},U=ne=>{F.fireLoadMoreOnInputChange(ne.detail.value)},Y=()=>{xe(a,null)},V=()=>{z.setShowAll(!0),F.fireLoadMoreOnInputFocus(),xe(c,null)},q=ne=>{St(l,ne.detail,ne)},ee=ne=>{St(T,ne.detail,ne)},X=()=>{z.moveHighlightWithKeyboard(1)},ie=()=>{z.moveHighlightWithKeyboard(-1)},se=()=>z.selectHighlightedOptionWithKeyboard(),me=()=>{z.resetHighlightWithKeyboard()},ve=()=>{var ne;F.fireLoadMoreOnRecoveryClick(),(ne=R.current)===null||ne===void 0||ne.focus()},Q=Sn(E),oe=De("input"),Z=De("footer"),G=(r=Q.controlId)!==null&&r!==void 0?r:oe,H=De("list"),te=De(),ae=j.highlightedOption?te:void 0,le=!n&&!j.items.length,we=!!n&&n.length!==0,ce=we?S==null?void 0:S(j.items.length,(o=s==null?void 0:s.length)!==null&&o!==void 0?o:0):void 0,ye=Ef(Object.assign(Object.assign({},e),{isEmpty:le,isFiltered:we,recoveryText:O,errorIconAriaLabel:N,onRecoveryClick:ve,filteringResultsText:ce,hasRecoveryCallback:!!d})),Ae=!le||ye.content;return x.createElement(TE,Object.assign({},E,{className:W(jl.root,E.className),ref:R,__internalRootRef:D,value:n,onChange:K,onBlur:Y,onFocus:V,onKeyUp:q,onKeyDown:ee,name:g,controlId:G,placeholder:f,disabled:v,readOnly:C,autoFocus:y,ariaLabel:_,ariaRequired:k,clearAriaLabel:p,disableBrowserAutocorrect:m,expandToViewport:I,ariaControls:H,ariaActivedescendant:ae,dropdownExpanded:j.items.length>1||ye.content!==null,dropdownContent:Ae&&x.createElement(CE,{statusType:h,autosuggestItemsState:j,autosuggestItemsHandlers:z,highlightedOptionId:ae,highlightText:n,listId:H,controlId:G,handleLoadMore:F.fireLoadMoreOnScroll,hasDropdownStatus:ye.content!==null,virtualScroll:L,selectedAriaLabel:M,renderHighlightedAriaLive:P,listBottom:ye.isSticky?null:x.createElement(qi,{content:ye.content,id:Z}),ariaDescribedby:ye.content?Z:void 0}),dropdownFooter:ye.isSticky&&ye.content?x.createElement(qi,{id:Z,content:ye.content,hasItems:j.items.length>=1}):null,loopFocus:h==="error"&&!!O&&!!d,onCloseDropdown:me,onDelayedInput:U,onPressArrowDown:X,onPressArrowUp:ie,onPressEnter:se}))}),Bj=Aj,Pf=e=>Object.keys(e).filter(r=>r.indexOf("__")!==0).reduce((r,o)=>(r[o]=e[o],r),{}),Cx={badge:"awsui_badge_1yjyg_bjogl_99","badge-color-grey":"awsui_badge-color-grey_1yjyg_bjogl_145","badge-color-green":"awsui_badge-color-green_1yjyg_bjogl_148","badge-color-blue":"awsui_badge-color-blue_1yjyg_bjogl_151","badge-color-red":"awsui_badge-color-red_1yjyg_bjogl_154"};function Tn(e){var{color:t="grey",children:r}=e,o=de(e,["color","children"]);const{__internalRootRef:n}=ut("Badge",{props:{color:t}}),i=Ie(o),a=W(i.className,Cx.badge,Cx[`badge-color-${t}`]);return x.createElement("span",Object.assign({},i,{className:a},{ref:n}),r)}at(Tn,"Badge");function J(e){var{variant:t="div",margin:r={},padding:o={}}=e,n=de(e,["variant","margin","padding"]);const i=ut("Box",{props:{color:n.color,display:n.display,float:n.float,fontSize:n.fontSize,fontWeight:n.fontWeight,textAlign:n.textAlign,variant:t}});return x.createElement(xn,Object.assign({variant:t,margin:r,padding:o},n,i))}at(J,"Box");const ga={"breadcrumb-group":"awsui_breadcrumb-group_d19fg_z6pwg_99",item:"awsui_item_d19fg_z6pwg_137","breadcrumb-group-list":"awsui_breadcrumb-group-list_d19fg_z6pwg_172",ellipsis:"awsui_ellipsis_d19fg_z6pwg_184",icon:"awsui_icon_d19fg_z6pwg_194",mobile:"awsui_mobile_d19fg_z6pwg_199","mobile-short":"awsui_mobile-short_d19fg_z6pwg_212"},Xn={link:"awsui_link_1kosq_b8bvi_99",breadcrumb:"awsui_breadcrumb_1kosq_b8bvi_103",icon:"awsui_icon_1kosq_b8bvi_106",anchor:"awsui_anchor_1kosq_b8bvi_111",last:"awsui_last_1kosq_b8bvi_157",compressed:"awsui_compressed_1kosq_b8bvi_167",text:"awsui_text_1kosq_b8bvi_171","virtual-item":"awsui_virtual-item_1kosq_b8bvi_178","item-popover":"awsui_item-popover_1kosq_b8bvi_185"},Dj=e=>{var{item:t,isLast:r,anchorAttributes:o,funnelAttributes:n}=e,i=de(e,["item","isLast","anchorAttributes","funnelAttributes"]);const[a,c]=B.useState(!1),l=B.useRef(null),d=B.useRef(null),s=(h,f)=>{if(!h||!f||!h.current||!f.current)return!1;const p=f.current.getBoundingClientRect().width,g=h.current.getBoundingClientRect().width;return p>g},u=x.createElement(Wa,null,x.createElement("div",{className:Xn["item-popover"]},x.createElement(Ha,{in:!0},()=>x.createElement(gf,{trackRef:l,size:"small",fixedWidth:!1,position:"bottom",arrow:h=>x.createElement("div",{className:W(Ct.arrow,Ct[`arrow-position-${h}`])},x.createElement("div",{className:Ct["arrow-outer"]}),x.createElement("div",{className:Ct["arrow-inner"]}))},x.createElement(mf,{dismissButton:!1,dismissAriaLabel:void 0,onDismiss:()=>{},header:void 0},t.text)))));return B.useEffect(()=>{const h=f=>{f.key==="Escape"&&c(!1)};return a&&document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[a]),x.createElement(x.Fragment,null,x.createElement(EE,Object.assign({isLast:r},i,{onFocus:()=>{s(l,d)&&c(!0)},onBlur:()=>c(!1),onMouseEnter:()=>{s(l,d)&&c(!0)},onMouseLeave:()=>c(!1),anchorAttributes:o}),x.createElement("span",Object.assign({},n,{className:Xn.text,ref:l}),t.text),x.createElement("span",{className:Xn["virtual-item"],ref:d},t.text)),a&&u)},EE=e=>{var{anchorAttributes:t,children:r,isLast:o}=e,n=de(e,["anchorAttributes","children","isLast"]);return o?x.createElement("span",Object.assign({},n),r):x.createElement("a",Object.assign({},n,t),r)};function Rj({item:e,onClick:t,onFollow:r,isDisplayed:o,isLast:n=!1,isCompressed:i=!1}){const a=u=>u.preventDefault(),c=u=>{ci(u)&&St(r,gh(e),u),St(t,gh(e),u)},l={className:W(Xn.anchor,{[Xn.compressed]:i})},d={href:e.href||"#",onClick:n?a:c},s={};return n&&(s[Zl]=MS),x.createElement("div",{className:W(Xn.breadcrumb,n&&Xn.last)},o&&i?x.createElement(Dj,Object.assign({item:e,isLast:n,anchorAttributes:d,funnelAttributes:s},l)):x.createElement(EE,Object.assign({isLast:n,anchorAttributes:d},l),x.createElement("span",Object.assign({},s,{className:Xn.text}),e.text)),n?null:x.createElement("span",{className:Xn.icon},x.createElement(ze,{name:"angle-right"})))}const Ij="Show path",Pj=({ariaLabel:e,triggerRef:t,disabled:r,testUtilsClass:o,isOpen:n,onClick:i})=>x.createElement(pt,{ref:t,className:o,disabled:r,onClick:a=>{a.preventDefault(),i()},ariaExpanded:n,"aria-haspopup":!0,ariaLabel:e,variant:"breadcrumb-group",formAction:"none"},"..."),$j=({ariaLabel:e,dropdownItems:t,onDropdownItemClick:r,onDropdownItemFollow:o})=>{var n;const i=it("breadcrumb-group");return x.createElement("li",{className:ga.ellipsis},x.createElement(_f,{ariaLabel:(n=i("expandAriaLabel",e))!==null&&n!==void 0?n:Ij,items:t,onItemClick:r,onItemFollow:o,customTriggerBuilder:Pj}),x.createElement("span",{className:ga.icon},x.createElement(ze,{name:"angle-right"})))},gh=e=>({item:e,text:e.text,href:e.href});function Oj(e){var{items:t=[],ariaLabel:r,expandAriaLabel:o,onClick:n,onFollow:i,__internalRootRef:a}=e,c=de(e,["items","ariaLabel","expandAriaLabel","onClick","onFollow","__internalRootRef"]);for(const h of t)bn("BreadcrumbGroup",h.href);const l=Ie(c),d=rn();let s=t.map((h,f)=>{const p=f===t.length-1;return x.createElement("li",{className:ga.item,key:f},x.createElement(Rj,{item:h,onClick:n,onFollow:i,isCompressed:d,isLast:p,isDisplayed:!d||p||f===0}))});const u=h=>{const{id:f}=h.detail;return t[parseInt(f)]};if(s.length>=2){const h=t.slice(1,t.length-1).map((f,p)=>({id:(p+1).toString(),text:f.text,href:f.href||"#"}));s=[s[0],x.createElement($j,{key:"ellipsis",ariaLabel:o,dropdownItems:h,onDropdownItemClick:f=>St(n,gh(u(f)),f),onDropdownItemFollow:f=>St(i,gh(u(f)),f)}),...s.slice(1)]}return x.createElement("nav",Object.assign({},l,{className:W(ga["breadcrumb-group"],d&&ga.mobile,t.length<=2&&ga["mobile-short"],l.className),"aria-label":r||void 0,ref:a}),x.createElement("ol",{className:ga["breadcrumb-group-list"]},s))}function eo(e){var{items:t=[]}=e,r=de(e,["items"]);const o=ut("BreadcrumbGroup");return x.createElement(Oj,Object.assign({items:t},r,o))}at(eo,"BreadcrumbGroup");const LE=x.forwardRef((e,t)=>{var{children:r,iconName:o,iconAlign:n="left",iconUrl:i,iconSvg:a,iconAlt:c,variant:l="normal",loading:d=!1,loadingText:s,disabled:u=!1,wrapText:h=!0,href:f,target:p,rel:g,download:v,formAction:m="submit",ariaLabel:y,ariaDescribedby:C,onClick:_,onFollow:k,ariaExpanded:b,ariaControls:S,fullWidth:T,form:L}=e,I=de(e,["children","iconName","iconAlign","iconUrl","iconSvg","iconAlt","variant","loading","loadingText","disabled","wrapText","href","target","rel","download","formAction","ariaLabel","ariaDescribedby","onClick","onFollow","ariaExpanded","ariaControls","fullWidth","form"]);const A=ut("Button",{props:{formAction:m,fullWidth:T,iconAlign:n,iconName:o,rel:g,target:p,variant:l,wrapText:h}}),P=Ie(I);return x.createElement(pt,Object.assign({},P,A,{ref:t,iconName:o,iconAlign:n,iconUrl:i,iconSvg:a,iconAlt:c,variant:l,loading:d,loadingText:s,disabled:u,wrapText:h,href:f,target:p,rel:g,download:v,formAction:m,ariaLabel:y,ariaDescribedby:C,onClick:_,onFollow:k,ariaExpanded:b,ariaControls:S,fullWidth:T,form:L}),r)});at(LE,"Button");const ge=LE,AE=x.forwardRef((e,t)=>{var{items:r,variant:o="normal",loading:n=!1,loadingText:i,disabled:a=!1,expandableGroups:c=!1,expandToViewport:l=!1,ariaLabel:d,children:s,onItemClick:u,onItemFollow:h,mainAction:f}=e,p=de(e,["items","variant","loading","loadingText","disabled","expandableGroups","expandToViewport","ariaLabel","children","onItemClick","onItemFollow","mainAction"]);const g=ut("ButtonDropdown",{props:{expandToViewport:l,expandableGroups:c,variant:o}}),v=Ie(p);return x.createElement(_f,Object.assign({},v,g,{ref:t,items:r,variant:o,loading:n,loadingText:i,disabled:a,expandableGroups:c,expandToViewport:l,ariaLabel:d,onItemClick:u,onItemFollow:h,mainAction:f}),s)});at(AE,"ButtonDropdown");const Mj=AE,mr={calendar:"awsui_calendar_1ykar_1boof_99","awsui-motion-fade-in-0":"awsui_awsui-motion-fade-in-0_1ykar_1boof_1",root:"awsui_root_1ykar_1boof_130","calendar-inner":"awsui_calendar-inner_1ykar_1boof_171","calendar-header":"awsui_calendar-header_1ykar_1boof_175","calendar-header-title":"awsui_calendar-header-title_1ykar_1boof_180","calendar-next-btn":"awsui_calendar-next-btn_1ykar_1boof_188","calendar-prev-btn":"awsui_calendar-prev-btn_1ykar_1boof_191","calendar-grid":"awsui_calendar-grid_1ykar_1boof_194","calendar-grid-dense":"awsui_calendar-grid-dense_1ykar_1boof_198","calendar-grid-cell":"awsui_calendar-grid-cell_1ykar_1boof_206","calendar-date-header":"awsui_calendar-date-header_1ykar_1boof_211","calendar-date":"awsui_calendar-date_1ykar_1boof_211","calendar-date-enabled":"awsui_calendar-date-enabled_1ykar_1boof_231","calendar-date-current-page":"awsui_calendar-date-current-page_1ykar_1boof_241","calendar-date-selected":"awsui_calendar-date-selected_1ykar_1boof_252","calendar-date-current":"awsui_calendar-date-current_1ykar_1boof_241","calendar-date-dense":"awsui_calendar-date-dense_1ykar_1boof_273","date-inner":"awsui_date-inner_1ykar_1boof_281","calendar-row":"awsui_calendar-row_1ykar_1boof_356"};function Nj({ariaLabel:e,onChange:t}){return x.createElement(pt,{iconName:"angle-left",ariaLabel:e,variant:"icon",onClick:()=>t(-1),formAction:"none",className:mr["calendar-prev-btn"]})}function jj({ariaLabel:e,onChange:t}){return x.createElement(pt,{iconName:"angle-right",ariaLabel:e,variant:"icon",onClick:()=>t(1),formAction:"none",className:mr["calendar-next-btn"]})}const Gj=({formattedDate:e,onChange:t,previousLabel:r,nextLabel:o,headingId:n})=>x.createElement("div",{className:mr["calendar-header"]},x.createElement(Nj,{ariaLabel:r,onChange:t}),x.createElement("h2",{className:mr["calendar-header-title"],id:n},e),x.createElement(jj,{ariaLabel:o,onChange:t})),zj=Gj;function Fj({isDateEnabled:e,focusedDate:t,focusableDate:r,onSelectDate:o,selectedDate:n,ariaLabelledby:i,header:a,rows:c,isCurrentPage:l,renderDate:d,renderDateAnnouncement:s,isSameDate:u,onGridKeyDownHandler:h}){const f=B.useRef(null);Hc(()=>{t&&f.current&&f.current.focus()},[t]);const g=c[0].length>3;return x.createElement("table",{role:"grid",className:W(mr["calendar-grid"],g&&mr["calendar-grid-dense"]),"aria-labelledby":i},a,x.createElement("tbody",{onKeyDown:h},c.map((v,m)=>x.createElement("tr",{key:m,className:mr["calendar-row"]},v.map((y,C)=>{const _=!!r&&u(y,r),k=!!n&&u(y,n),b=!e||e(y),S=u(y,new Date);let T;return _&&b?T=0:b&&(T=-1),x.createElement("td",{key:`${m}:${C}`,ref:T===0?f:void 0,tabIndex:T,"aria-current":S?"date":void 0,"aria-selected":b?k:void 0,"aria-disabled":!b,onClick:b?()=>o(y):void 0,className:W(mr["calendar-grid-cell"],mr["calendar-date"],{[mr["calendar-date-current-page"]]:l(y),[mr["calendar-date-enabled"]]:b,[mr["calendar-date-selected"]]:k,[mr["calendar-date-current"]]:S,[mr["calendar-date-dense"]]:g})},x.createElement("span",{className:mr["date-inner"],"aria-hidden":"true"},d(y)),x.createElement(Ql,null,s(y,S)))})))))}function Sx(e,t){return e.length===2&&t.indexOf(e)===0?t:e}function Hj(e,t){var r;t=Tx(e,t);const o=Vj();if(t)return Sx(t,o);const n=Tx(e,(r=Wj())===null||r===void 0?void 0:r.getAttribute("lang"));return n?Sx(n,o):o}function Tx(e,t){return!t||t===""?"":(t=t&&t.replace(/^([a-z]{2})_/,"$1-"),t&&!t.match(/^[a-z]{2}(-[A-Z]{2})?$/)&&(t=""),t)}function Wj(){return typeof document<"u"?document.querySelector("html"):null}function Vj(){return new Intl.DateTimeFormat().resolvedOptions().locale}function Uj(e,t){var r=t[typeof e=="string"?e.toUpperCase():e];return typeof r=="number"?r:1}function Kj(e,t,r){if(e){var o=e.toLowerCase().split(/[-_]/),n=o[0],i;if(o[1]&&o[1].length===4?(n+="_"+o[1],i=o[2]):i=o[1],i||(i=t[n]),i)return Uj(i.match(/^\d+$/)?Number(i):i,r)}return 1}var qj={en:"US",zh:"CN",zh_hans:"CN",hans:"CN",wuu:"CN",hsn:"CN",hak:"CN",nan:"CN",gan:"CN",hi:"IN",te:"IN",mr:"IN",ta:"IN",gu:"IN",kn:"IN",or:"IN",ml:"IN",pa_guru:"IN",bho:"IN",awa:"IN",as:"IN",mwr:"IN",mai:"IN",mag:"IN",bgc:"IN",hne:"IN",dcc:"IN",dz:"BT",tn:"BW",am:"ET",om:"ET",quc:"GT",id:"ID",jv:"ID",su:"ID",mad:"ID",ms_arab:"ID",ga:"IE",he:"IL",jam:"JM",ja:"JP",km:"KH",ko:"KR",lo:"LA",mh:"MH",my:"MM",mt:"MT",ne:"NP",fil:"PH",ceb:"PH",ilo:"PH",ur:"PK",pa:"PK",pa_arab:"PK",arab:"PK",lah:"PK",ps:"PK",sd:"PK",sd_arab:"PK",skr:"PK",gn:"PY",th:"TH",tts:"TH",aeb:"TN",zh_hant:"TW",hant:"TW",sm:"WS",zu:"ZA",sn:"ZW",arq:"DZ",ar:"EG",arz:"EG",fa:"IR",az_arab:"IR",ary:"MA",bn:"BD",rkt:"BD",dv:"MV"},Yj={AG:0,ATG:0,28:0,AR:0,ARG:0,32:0,AS:0,ASM:0,16:0,AU:0,AUS:0,36:0,BR:0,BRA:0,76:0,BS:0,BHS:0,44:0,BT:0,BTN:0,64:0,BW:0,BWA:0,72:0,BZ:0,BLZ:0,84:0,CA:0,CAN:0,124:0,CN:0,CHN:0,156:0,CO:0,COL:0,170:0,DM:0,DMA:0,212:0,DO:0,DOM:0,214:0,ET:0,ETH:0,231:0,GT:0,GTM:0,320:0,GU:0,GUM:0,316:0,HK:0,HKG:0,344:0,HN:0,HND:0,340:0,ID:0,IDN:0,360:0,IE:0,IRL:0,372:0,IL:0,ISR:0,376:0,IN:0,IND:0,356:0,JM:0,JAM:0,388:0,JP:0,JPN:0,392:0,KE:0,KEN:0,404:0,KH:0,KHM:0,116:0,KR:0,KOR:0,410:0,LA:0,LA0:0,418:0,MH:0,MHL:0,584:0,MM:0,MMR:0,104:0,MO:0,MAC:0,446:0,MT:0,MLT:0,470:0,MX:0,MEX:0,484:0,MZ:0,MOZ:0,508:0,NI:0,NIC:0,558:0,NP:0,NPL:0,524:0,NZ:0,NZL:0,554:0,PA:0,PAN:0,591:0,PE:0,PER:0,604:0,PH:0,PHL:0,608:0,PK:0,PAK:0,586:0,PR:0,PRI:0,630:0,PY:0,PRY:0,600:0,SA:0,SAU:0,682:0,SG:0,SGP:0,702:0,SV:0,SLV:0,222:0,TH:0,THA:0,764:0,TN:0,TUN:0,788:0,TT:0,TTO:0,780:0,TW:0,TWN:0,158:0,UM:0,UMI:0,581:0,US:0,USA:0,840:0,VE:0,VEN:0,862:0,VI:0,VIR:0,850:0,WS:0,WSM:0,882:0,YE:0,YEM:0,887:0,ZA:0,ZAF:0,710:0,ZW:0,ZWE:0,716:0,AE:6,ARE:6,784:6,AF:6,AFG:6,4:6,BH:6,BHR:6,48:6,DJ:6,DJI:6,262:6,DZ:6,DZA:6,12:6,EG:6,EGY:6,818:6,IQ:6,IRQ:6,368:6,IR:6,IRN:6,364:6,JO:6,JOR:6,400:6,KW:6,KWT:6,414:6,LY:6,LBY:6,434:6,MA:6,MAR:6,504:6,OM:6,OMN:6,512:6,QA:6,QAT:6,634:6,SD:6,SDN:6,729:6,SY:6,SYR:6,760:6,BD:5,BGD:5,50:5,MV:5,MDV:5,462:5};function Xj(e){return Kj(e,qj,Yj)}function Qj(e,t){return typeof e=="number"?e%7:Xj(t)}function Zj(e){return e.replace(/-/g,"/")}function BE(e){return e.replace(/\//g,"-")}function Jj(e,t="day"){const r=e.getFullYear(),o=ml(`${e.getMonth()+1}`,2);if(t==="month")return`${r}-${o}`;const n=ml(`${e.getDate()}`,2);return`${r}-${o}-${n}`}function DE(e,t=!1){const[r,o,n]=e.split("-"),i=Number(r),a=Number(o),c=Number(n);return t&&(isNaN(i)||isNaN(a)||isNaN(c))?null:new Date(i,(a||1)-1,c||1)}function e3(e,t){return Zc(e,t,1)}function t3(e,t){return Zc(e,t,-1)}function r3(e,t){return Zc(e,t,7)}function o3(e,t){return Zc(e,t,-7)}function n3(e,t){return Jc(e,t,1)}function i3(e,t){return Jc(e,t,-1)}function a3(e,t){return Jc(e,t,3)}function l3(e,t){return Jc(e,t,-3)}function s3(e,t){return RE({date:e,isDateEnabled:t,granularity:"day"})}function c3(e,t){return RE({date:e,isDateEnabled:t,granularity:"month"})}function RE({date:e,granularity:t,isDateEnabled:r}){const o=t==="month",n=o?JN:ZN,i=o?Jc:Zc,a=o?hy:Xs,c=n(e);if(r(c))return c;const l=i(c,r,1);return a(c,l)?l:c}function Zc(e,t,r){return IE({startDate:e,granularity:"day",isDateEnabled:t,step:r})}function Jc(e,t,r){return IE({startDate:e,granularity:"month",isDateEnabled:t,step:r})}function IE({startDate:e,granularity:t,isDateEnabled:r,step:o}){const n=t==="month",i=n?dy:KN,a=n?1:10;let c=i(e,o);for(;!r(c);){if(Math.abs(QN(e,c))>a)return e;c=i(c,o)}return c}function Ex(){const e=B.useRef(new Map);return t=>{const r=e.current.get(t.getTime());return r||(e.current.set(t.getTime(),t),t)}}function u3(e,t){const r=t-e.getDay();e.setDate(e.getDate()+r)}function Lx(e,t,r){const o=new Date;return u3(o,t),o.toLocaleDateString(e,{weekday:r})}function Ax(e,t){return t.toLocaleDateString(e,{year:"numeric",month:"long"})}const Bx=new Map;function d3(e,t,r="full"){const o=e+t.getTime()+r,n=Bx.get(o);if(n)return n;const i=t.toLocaleDateString(e,{weekday:r==="full"?"long":void 0,month:"long",day:"numeric",year:"numeric"});return Bx.set(o,i),i}function h3({granularity:e,locale:t,i18nStrings:r,previousMonthAriaLabel:o,nextMonthAriaLabel:n,todayAriaLabel:i}){var a,c,l;const d=it("calendar"),s=e==="month",u=s?d("i18nStrings.previousYearAriaLabel",r==null?void 0:r.previousYearAriaLabel):d("previousMonthAriaLabel",(a=r==null?void 0:r.previousMonthAriaLabel)!==null&&a!==void 0?a:o),h=s?d("i18nStrings.nextYearAriaLabel",r==null?void 0:r.nextYearAriaLabel):d("nextMonthAriaLabel",(c=r==null?void 0:r.nextMonthAriaLabel)!==null&&c!==void 0?c:n),f=s?d("i18nStrings.currentMonthAriaLabel",r==null?void 0:r.currentMonthAriaLabel):d("todayAriaLabel",(l=r==null?void 0:r.todayAriaLabel)!==null&&l!==void 0?l:i);return{previousButtonLabel:u,nextButtonLabel:h,renderDate:m=>s?m.toLocaleString(t,{month:"short"}):m.getDate().toString(),renderDateAnnouncement:(m,y)=>{const C=s?Ax(t,m):d3(t,m,"short");return y&&f?C+". "+f:C},renderHeaderText:m=>s?m.getFullYear().toString():Ax(t,m)}}var Dx=function(t,r){var o=new Date(t);return o.setDate(o.getDate()+r),o},f3=function(t,r){var o=new Date(t);return o.setDate(r),o};function Rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function p3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rx(Object(r),!0).forEach(function(o){oj(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rx(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}var Xu=7,g3=function(t,r){for(var o=p3({firstDayOfWeek:1},r),n=o.firstDayOfWeek,i=new Date(t.getFullYear(),t.getMonth(),1),a=new Date(t.getFullYear(),t.getMonth()+1,0),c=i.getDay(),l=a.getDay(),d=a.getDate(),s=(c-n+Xu)%Xu,u=(Xu-1-l+n)%Xu,h=[],f=[],p=1-s;p<=d+u+1;p++)p<=0?f.push(Dx(i,p-1)):p>d?f.push(Dx(a,p-d)):f.push(f3(t,p)),f.length===7&&(h.push(f),f=[]);return h};function m3({baseDate:e,granularity:t,locale:r,startOfWeek:o}){const n=t==="month";return B.useMemo(()=>n?v3(e):g3(e,{firstDayOfWeek:Qj(o,r)}),[e,n,o,r])}function v3(e){const t=e.getFullYear();return new Array(4).fill(0).map((r,o)=>new Array(3).fill(0).map((n,i)=>new Date(t,o*3+i)))}function y3({baseDate:e,focusableDate:t,granularity:r,isDateEnabled:o,onChangePage:n,onFocusDate:i,onSelectDate:a}){const c=r==="month",l=c?a3:r3,d=c?i3:t3,s=c?n3:e3,u=c?l3:o3,h=c?hy:Xs;return p=>{let g;if(t!==null){switch(p.keyCode){case ke.space:case ke.enter:p.preventDefault(),t&&(i(null),a(t));return;case ke.right:p.preventDefault(),g=s(t,o);break;case ke.left:p.preventDefault(),g=d(t,o);break;case ke.up:p.preventDefault(),g=u(t,o);break;case ke.down:p.preventDefault(),g=l(t,o);break;default:return}h(g,e)||n(g),i(g)}}}function b3({locale:e,rows:t}){return x.createElement("thead",null,x.createElement("tr",null,t[0].map(r=>r.getDay()).map(r=>x.createElement("th",{key:r,scope:"col",className:W(mr["calendar-grid-cell"],mr["calendar-date-header"])},x.createElement("span",{"aria-hidden":"true"},Lx(e,r,"short")),x.createElement(Ql,null,Lx(e,r,"long"))))))}function w3(e){var{value:t,locale:r="",startOfWeek:o,isDateEnabled:n=()=>!0,ariaLabel:i,ariaLabelledby:a,ariaDescribedby:c,onChange:l,__internalRootRef:d,i18nStrings:s,granularity:u="day",previousMonthAriaLabel:h,nextMonthAriaLabel:f,todayAriaLabel:p}=e,g=de(e,["value","locale","startOfWeek","isDateEnabled","ariaLabel","ariaLabelledby","ariaDescribedby","onChange","__internalRootRef","i18nStrings","granularity","previousMonthAriaLabel","nextMonthAriaLabel","todayAriaLabel"]);const v=Ie(g),m=Hj("Calendar",r),y=B.useRef(null),[C,_]=B.useState(null),k=Ex(),b=Ex(),S=t&&t.length>=4?DE(t):null,T=S?k(S):null,L=T??new Date,[I,A]=B.useState(L),P=De("calendar-heading"),D=u==="month",E=D?c3(I,n):s3(I,n),R=D?Xs:YN,$=D?hy:Xs,N=ve=>D||Xs(ve,E),{previousButtonLabel:M,nextButtonLabel:O,renderDate:j,renderDateAnnouncement:z,renderHeaderText:F}=h3({granularity:u,i18nStrings:s,locale:m,previousMonthAriaLabel:h,nextMonthAriaLabel:f,todayAriaLabel:p}),K=m3({baseDate:E,granularity:u,startOfWeek:o,locale:m});B.useEffect(()=>{T&&A(ve=>ve.getTime()!==T.getTime()?T:ve)},[T]);const Y=C||((ve,Q)=>{if(ve&&n(ve)&&$(ve,Q))return ve;const oe=new Date;return n(oe)&&$(oe,Q)?oe:n(Q)?Q:null})(T,E),V=ve=>{const oe=(D?qN:dy)(E,ve);q(oe)},q=ve=>{A(ve),_(null)},ee=ve=>{ve&&_(ve?b(ve):null)},X=ve=>{xe(l,{value:Jj(ve,u)}),_(null)},ie=ve=>{var Q;ve.relatedTarget&&((Q=y.current)===null||Q===void 0?void 0:Q.contains(ve.relatedTarget))||_(null)},se=y3({baseDate:E,focusableDate:Y,granularity:u,isDateEnabled:n,onChangePage:q,onFocusDate:ee,onSelectDate:X}),me=F(E);return x.createElement("div",Object.assign({ref:d},v,{role:"group","aria-label":i,"aria-labelledby":a,"aria-describedby":c,className:W(mr.root,mr.calendar,v.className)}),x.createElement("div",{className:mr["calendar-inner"]},x.createElement(zj,{formattedDate:me,onChange:V,previousLabel:M,nextLabel:O,headingId:P}),x.createElement("div",{onBlur:ie,ref:y},x.createElement(Fj,{isDateEnabled:n,focusedDate:C,focusableDate:Y,onSelectDate:X,onFocusDate:ee,onChangePage:q,selectedDate:T,ariaLabelledby:P,header:D?null:x.createElement(b3,{locale:m,rows:K}),rows:K,isCurrentPage:N,renderDate:j,renderDateAnnouncement:z,isSameDate:R,onGridKeyDownHandler:se}))))}function Io(e){var{locale:t="",isDateEnabled:r=()=>!0,granularity:o="day"}=e,n=de(e,["locale","isDateEnabled","granularity"]);const i=ut("Calendar");return x.createElement(w3,Object.assign({},n,i,{locale:t,isDateEnabled:r,granularity:o}))}at(Io,"Calendar");const Ye={root:"awsui_root_wih1l_qzfuf_103",tools:"awsui_tools_wih1l_qzfuf_114","tools-filtering":"awsui_tools-filtering_wih1l_qzfuf_122","tools-align-right":"awsui_tools-align-right_wih1l_qzfuf_136","tools-pagination":"awsui_tools-pagination_wih1l_qzfuf_140","tools-preferences":"awsui_tools-preferences_wih1l_qzfuf_140","tools-small":"awsui_tools-small_wih1l_qzfuf_146",table:"awsui_table_wih1l_qzfuf_152","table-layout-fixed":"awsui_table-layout-fixed_wih1l_qzfuf_158",wrapper:"awsui_wrapper_wih1l_qzfuf_162","variant-stacked":"awsui_variant-stacked_wih1l_qzfuf_169","wrapper-content-measure":"awsui_wrapper-content-measure_wih1l_qzfuf_169","variant-container":"awsui_variant-container_wih1l_qzfuf_169","has-footer":"awsui_has-footer_wih1l_qzfuf_172","has-header":"awsui_has-header_wih1l_qzfuf_175","cell-merged":"awsui_cell-merged_wih1l_qzfuf_192","cell-merged-content":"awsui_cell-merged-content_wih1l_qzfuf_204",empty:"awsui_empty_wih1l_qzfuf_222",loading:"awsui_loading_wih1l_qzfuf_226","selection-control":"awsui_selection-control_wih1l_qzfuf_235","selection-control-header":"awsui_selection-control-header_wih1l_qzfuf_242","dark-header":"awsui_dark-header_wih1l_qzfuf_252","header-secondary":"awsui_header-secondary_wih1l_qzfuf_257","table-has-header":"awsui_table-has-header_wih1l_qzfuf_275","header-controls":"awsui_header-controls_wih1l_qzfuf_279","variant-full-page":"awsui_variant-full-page_wih1l_qzfuf_282","variant-embedded":"awsui_variant-embedded_wih1l_qzfuf_288","variant-borderless":"awsui_variant-borderless_wih1l_qzfuf_288","footer-wrapper":"awsui_footer-wrapper_wih1l_qzfuf_293",footer:"awsui_footer_wih1l_qzfuf_293","footer-with-pagination":"awsui_footer-with-pagination_wih1l_qzfuf_301","footer-pagination":"awsui_footer-pagination_wih1l_qzfuf_309","thead-active":"awsui_thead-active_wih1l_qzfuf_313",row:"awsui_row_wih1l_qzfuf_314","row-selected":"awsui_row-selected_wih1l_qzfuf_315"};function x3({header:e,filter:t,pagination:r,preferences:o}){const[n,i]=zn(["xs"]),a=typeof e=="string",c=B.useContext(Df).assignId,l=De("heading");c!==void 0&&a&&c(l);const d=n==="default",s=t||r||o;return x.createElement(x.Fragment,null,a?x.createElement("span",{id:l},e):e,s&&x.createElement("div",{ref:i,className:W(Ye.tools,d&&Ye["tools-small"])},t&&x.createElement("div",{className:Ye["tools-filtering"]},t),x.createElement("div",{className:Ye["tools-align-right"]},r&&x.createElement("div",{className:Ye["tools-pagination"]},r),o&&x.createElement("div",{className:Ye["tools-preferences"]},o))))}const PE=(e,t)=>typeof e=="function"?e(t):t[e],_3=(e,t,r)=>e?PE(e,t):r,Qs=(e,t)=>e?PE(e,t):t,wd=(e,t)=>e.id||t,k3=e=>!e||e==="container"?"default":e==="borderless"?"embedded":e;function C3({columnDisplay:e,visibleColumns:t,columnDefinitions:r}){return e?S3({columnDisplay:e,columnDefinitions:r}):t?T3({visibleColumns:t,columnDefinitions:r}):r}function S3({columnDisplay:e,columnDefinitions:t}){const r=t.reduce((o,n)=>n.id===void 0?o:Object.assign(Object.assign({},o),{[n.id]:n}),{});return e.filter(o=>o.visible).map(o=>r[o.id]).filter(Boolean)}function T3({visibleColumns:e,columnDefinitions:t}){const r=new Set(e);return t.filter(({id:o})=>o!==void 0&&r.has(o))}function $E(e,t){return{[e["sticky-cell"]]:!!t,[e["sticky-cell-pad-left"]]:!!(t!=null&&t.padLeft),[e["sticky-cell-last-left"]]:!!(t!=null&&t.lastLeft),[e["sticky-cell-last-right"]]:!!(t!=null&&t.lastRight)}}const Co={content:"awsui_content_1wepg_11g7b_99",description:"awsui_description_1wepg_11g7b_100",label:"awsui_label_1wepg_11g7b_101",outline:"awsui_outline_1wepg_11g7b_109","show-outline":"awsui_show-outline_1wepg_11g7b_112","native-input":"awsui_native-input_1wepg_11g7b_116",wrapper:"awsui_wrapper_1wepg_11g7b_120","label-wrapper":"awsui_label-wrapper_1wepg_11g7b_126","empty-content":"awsui_empty-content_1wepg_11g7b_137","description-bottom-padding":"awsui_description-bottom-padding_1wepg_11g7b_147","label-disabled":"awsui_label-disabled_1wepg_11g7b_155","description-disabled":"awsui_description-disabled_1wepg_11g7b_156",control:"awsui_control_1wepg_11g7b_161"};function Ix(e){return e.filter(t=>!!t).join(" ")}function fy(e){var{controlId:t,controlClassName:r,outlineClassName:o,showOutline:n,disabled:i,nativeControl:a,styledControl:c,label:l,description:d,descriptionBottomPadding:s,ariaLabel:u,ariaLabelledby:h,ariaDescribedby:f,ariaControls:p,onClick:g,__internalRootRef:v}=e,m=de(e,["controlId","controlClassName","outlineClassName","showOutline","disabled","nativeControl","styledControl","label","description","descriptionBottomPadding","ariaLabel","ariaLabelledby","ariaDescribedby","ariaControls","onClick","__internalRootRef"]);const y=De(),C=t||y,_=`${C}-label`,k=`${C}-description`,b=[];l&&!u&&b.push(_),h&&b.push(h);const S=[];return f&&S.push(f),d&&S.push(k),x.createElement("span",Object.assign({},m,{className:W(Co.wrapper,m.className),ref:v}),x.createElement("span",{className:Co["label-wrapper"],"aria-disabled":i?"true":void 0,onClick:i?void 0:g},x.createElement("span",{className:W(Co.control,r)},c,a({id:C,disabled:i,className:Co["native-input"],"aria-describedby":S.length?Ix(S):void 0,"aria-labelledby":b.length?Ix(b):void 0,"aria-label":u,"aria-controls":p}),x.createElement("span",{className:W(Co.outline,o,n&&Co["show-outline"])})),x.createElement("span",{className:W(Co.content,!l&&!d&&Co["empty-content"])},l&&x.createElement("span",{id:_,className:W(Co.label,{[Co["label-disabled"]]:i})},l),d&&x.createElement("span",{id:k,className:W(Co.description,{[Co["description-disabled"]]:i,[Co["description-bottom-padding"]]:s})},d))))}const ng={root:"awsui_root_k2y2q_16s24_99","checkbox-control":"awsui_checkbox-control_k2y2q_16s24_135",outline:"awsui_outline_k2y2q_16s24_143"},E3=x.forwardRef((e,t)=>{var{controlId:r,name:o,checked:n,disabled:i,ariaRequired:a,indeterminate:c,children:l,description:d,ariaLabel:s,onFocus:u,onBlur:h,onChange:f,tabIndex:p,showOutline:g,ariaControls:v,__internalRootRef:m}=e,y=de(e,["controlId","name","checked","disabled","ariaRequired","indeterminate","children","description","ariaLabel","onFocus","onBlur","onChange","tabIndex","showOutline","ariaControls","__internalRootRef"]);const{ariaDescribedby:C,ariaLabelledby:_}=Sn(y),k=Ie(y),b=B.useRef(null);Ji(t,b),B.useEffect(()=>{b.current&&(b.current.indeterminate=!!c)});const{tabIndex:S}=Cn(b,{tabIndex:p});return x.createElement(fy,Object.assign({},k,{className:W(ng.root,k.className),controlClassName:ng["checkbox-control"],outlineClassName:ng.outline,controlId:r,disabled:i,label:l,description:d,descriptionBottomPadding:!0,ariaLabel:s,ariaLabelledby:_,ariaDescribedby:C,ariaControls:v,showOutline:g,nativeControl:T=>x.createElement("input",Object.assign({},T,{ref:b,type:"checkbox",checked:n,name:o,"aria-required":a?"true":void 0,tabIndex:S,onFocus:()=>xe(u),onBlur:()=>xe(h),onChange:()=>{}})),onClick:()=>{var T;(T=b.current)===null||T===void 0||T.focus(),xe(f,c?{checked:!0,indeterminate:!1}:{checked:!n,indeterminate:!1})},styledControl:x.createElement(ay,{checked:n,indeterminate:c,disabled:i}),__internalRootRef:m}))}),eu=E3,Bn={root:"awsui_root_1mabk_kpa3a_99",radio:"awsui_radio_1mabk_kpa3a_135","radio--has-description":"awsui_radio--has-description_1mabk_kpa3a_143","radio-control":"awsui_radio-control_1mabk_kpa3a_147",outline:"awsui_outline_1mabk_kpa3a_155","styled-circle-border":"awsui_styled-circle-border_1mabk_kpa3a_177","styled-circle-disabled":"awsui_styled-circle-disabled_1mabk_kpa3a_181","styled-circle-fill":"awsui_styled-circle-fill_1mabk_kpa3a_186","styled-circle-checked":"awsui_styled-circle-checked_1mabk_kpa3a_192"},OE=x.forwardRef(function({name:t,label:r,value:o,checked:n,description:i,disabled:a,controlId:c,onChange:l},d){const s=B.useRef(null),u=Lt(s,d),{tabIndex:h}=Cn(s);return x.createElement(fy,{className:W(Bn.radio,i&&Bn["radio--has-description"]),controlClassName:Bn["radio-control"],outlineClassName:Bn.outline,label:r,description:i,disabled:a,controlId:c,nativeControl:f=>x.createElement("input",Object.assign({},f,{tabIndex:h,type:"radio",ref:u,name:t,value:o,checked:n,onChange:()=>{}})),onClick:()=>{var f;(f=s.current)===null||f===void 0||f.focus(),!n&&xe(l,{value:o})},styledControl:x.createElement("svg",{viewBox:"0 0 100 100",focusable:"false","aria-hidden":"true"},x.createElement("circle",{className:W(Bn["styled-circle-border"],{[Bn["styled-circle-disabled"]]:a}),strokeWidth:12,cx:50,cy:50,r:44}),x.createElement("circle",{className:W(Bn["styled-circle-fill"],{[Bn["styled-circle-disabled"]]:a,[Bn["styled-circle-checked"]]:n}),strokeWidth:30,cx:50,cy:50,r:35}))})}),Zs={root:"awsui_root_1s55x_d36ci_99",label:"awsui_label_1s55x_d36ci_103",stud:"awsui_stud_1s55x_d36ci_117"};function ME(e){var{tableRole:t,selectionType:r,indeterminate:o=!1,onShiftToggle:n,onFocusUp:i,onFocusDown:a,name:c,ariaLabel:l,focusedComponent:d}=e,s=de(e,["tableRole","selectionType","indeterminate","onShiftToggle","onFocusUp","onFocusDown","name","ariaLabel","focusedComponent"]);const u=De(),h=r==="multi",f=y=>{h&&n&&n(y.shiftKey)},p=y=>{f(y),h&&y.preventDefault()},g=y=>{f(y),h&&t!=="grid"&&(y.keyCode===ke.up&&(y.preventDefault(),i&&i(y)),y.keyCode===ke.down&&(y.preventDefault(),a&&a(y)))},v=y=>{const C=y.currentTarget,_=C.tagName==="INPUT"?C:C.querySelector("input");_==null||_.focus()},m=h?x.createElement(eu,Object.assign({},s,{showOutline:d==="selection-control",controlId:u,"data-focus-id":"selection-control",indeterminate:o})):x.createElement(OE,Object.assign({},s,{controlId:u,name:c,value:"",label:""}));return x.createElement(x.Fragment,null,x.createElement("label",{onKeyDown:g,onKeyUp:f,onMouseDown:p,onMouseUp:f,onClick:v,htmlFor:u,className:W(Zs.label,Zs.root),"aria-label":l,title:l},m),x.createElement("span",{className:W(Zs.stud),"aria-hidden":!0}," "))}const mh="selection-item",L3="selection-root";class ig{constructor(t,r){this.map=new Map,this.put=o=>this.map.set.call(this.map,Qs(this.trackBy,o),o),this.has=o=>this.map.has.call(this.map,Qs(this.trackBy,o)),this.forEach=this.map.forEach.bind(this.map),this.trackBy=t,r.forEach(this.put)}}const Hm={item:{["data-"+mh]:"item"},all:{["data-"+mh]:"all"},root:{["data-"+L3]:"true"}};function A3(e,t){if(e!=="multi")return{};function r(i,a,c){let l=a;const d=D3(i);for(;l>=-1&&l<t;){l+=c;const s=B3(d,l);if(s&&!s.disabled){s.focus();break}}}const[o,n]=[1,-1].map(i=>a=>{const c=a.currentTarget,l=tn(c,s=>s.dataset.selectionItem==="item"),d=Array.prototype.indexOf.call(l.parentElement.children,l);r(c,d,i)});return{moveFocusDown:o,moveFocusUp:n,moveFocus:r}}function B3(e,t){return t===-1?e.querySelector(`[data-${mh}="all"] .${Zs.root} input`):e.querySelectorAll(`[data-${mh}="item"] .${Zs.root} input`)[t]}function D3(e){return tn(e,t=>t.dataset.selectionRoot==="true")}function R3({items:e,selectedItems:t=[],selectionType:r,isItemDisabled:o=()=>!1,trackBy:n,onSelectionChange:i,ariaLabels:a,loading:c}){const[l,d]=B.useState(!1),[s,u]=B.useState(null),h=De(),f=r==="single"?t.slice(0,1):t,p=new ig(n,f),g=new Map;e.forEach((I,A)=>g.set(Qs(n,I),A));const v=p.has.bind(p),m=I=>({disabled:o(I),selected:v(I)}),[y,C]=r?e.reduce(([I,A],P)=>{const{disabled:D,selected:E}=m(P);return[I&&D,A&&(E||D)]},[!0,!0]):[!0,!0],_=f.length>0,k=()=>{const I=new ig(n,e),A=C?S(I):T(I);xe(i,{selectedItems:A})},b=I=>{const A=new ig(n,[I]);let P=s?g.get(Qs(n,s)):-1;if(P===void 0&&(P=-1),l&&P!==-1){const D=g.get(Qs(n,I)),E=Math.min(D,P),R=Math.max(D,P);e.slice(E,R+1).forEach($=>A.put($))}return A},S=I=>{const A=[];return t.forEach(P=>{(!I.has(P)||o(P))&&A.push(P)}),A},T=I=>{const A=[...t];return I.forEach(P=>{const{selected:D,disabled:E}=m(P);!D&&!E&&A.push(P)}),A},L=I=>()=>{const{disabled:A,selected:P}=m(I);if(!(A||r==="single"&&P))if(r==="single")xe(i,{selectedItems:[I]});else{const D=b(I),E=P?S(D):T(D);xe(i,{selectedItems:E}),u(I)}};return{isItemSelected:v,getSelectAllProps:()=>{var I;if(!r)throw new Error("Invariant violation: calling selection props with missing selection type.");return{name:h,disabled:y||!!c,selectionType:r,indeterminate:_&&!C,checked:_&&C,onChange:k,ariaLabel:Ro(a==null?void 0:a.selectionGroupLabel,(I=a==null?void 0:a.allItemsSelectionLabel)===null||I===void 0?void 0:I.call(a,{selectedItems:t}))}},getItemSelectionProps:I=>{var A;if(!r)throw new Error("Invariant violation: calling selection props with missing selection type.");return{name:h,selectionType:r,ariaLabel:Ro(a==null?void 0:a.selectionGroupLabel,(A=a==null?void 0:a.itemSelectionLabel)===null||A===void 0?void 0:A.call(a,{selectedItems:t},I)),onChange:L(I),checked:v(I),disabled:o(I)}},updateShiftToggle:I=>{d(I)}}}function I3(e,t){return{scrollToTop:()=>{if(!e.current||!t.current)return;const n=NE(e.current,t.current);n>0&&Wm(n,e.current)},scrollToItem:n=>{if(!n||!e.current||!t.current)return;const a=t.current.getBoundingClientRect().bottom-n.getBoundingClientRect().top;a>0&&Wm(a,e.current)}}}function NE(e,t){const r=t.getBoundingClientRect(),o=e.getBoundingClientRect();return r.top-o.top}function Wm(e,t){const r=es(t);r.length?r[0].scrollTop-=e:window.scrollTo({top:window.pageYOffset-e})}const P3=I0(e=>{function t(o){e(o.target)}function r(){e(null)}return window.addEventListener("mousedown",t),window.addEventListener("keydown",r),()=>{window.removeEventListener("mousedown",t),window.removeEventListener("keydown",r)}});function $3(){const e=B.useRef(null);return P3(t=>{e.current=t}),()=>e.current}const Qu={"resizable-box":"awsui_resizable-box_cufu9_1kvmu_17","resizable-box-handle":"awsui_resizable-box-handle_cufu9_1kvmu_22","resize-active":"awsui_resize-active_cufu9_1kvmu_49"};function jE({children:e,height:t,minHeight:r,onResize:o}){const[n,i]=B.useState(null),a=ao(o),c=B.useRef(null),l=d=>{if(d.button!==0||!c.current)return;const s=c.current.getBoundingClientRect().bottom;i(s-d.clientY)};return B.useEffect(()=>{if(n===null||!c.current)return;const d=c.current,s=h=>{const{top:f}=d.getBoundingClientRect(),p=h.clientY;a(Math.max(p+n-f,r))},u=()=>{i(null)};return document.body.classList.add(Qu["resize-active"]),document.addEventListener("mousemove",s),document.addEventListener("mouseup",u),()=>{document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",u),document.body.classList.remove(Qu["resize-active"])}},[n,r,a]),x.createElement("div",{ref:c,className:Qu["resizable-box"],style:{height:t}},e,x.createElement("span",{className:Qu["resizable-box-handle"],onMouseDown:l}))}const vt={"code-editor-refresh":"awsui_code-editor-refresh_1gl9c_162o6_104","code-editor":"awsui_code-editor_1gl9c_162o6_104",pane:"awsui_pane_1gl9c_162o6_450","pane__close-container":"awsui_pane__close-container_1gl9c_162o6_461",pane__list:"awsui_pane__list_1gl9c_162o6_466",pane__table:"awsui_pane__table_1gl9c_162o6_473",pane__item:"awsui_pane__item_1gl9c_162o6_479",pane__cell:"awsui_pane__cell_1gl9c_162o6_479","pane__item--highlighted":"awsui_pane__item--highlighted_1gl9c_162o6_493",pane__location:"awsui_pane__location_1gl9c_162o6_514",pane__description:"awsui_pane__description_1gl9c_162o6_514","focus-lock":"awsui_focus-lock_1gl9c_162o6_529",editor:"awsui_editor_1gl9c_162o6_580","editor-refresh":"awsui_editor-refresh_1gl9c_162o6_608","status-bar":"awsui_status-bar_1gl9c_162o6_613","status-bar-with-hidden-pane":"awsui_status-bar-with-hidden-pane_1gl9c_162o6_621","status-bar__left":"awsui_status-bar__left_1gl9c_162o6_625","status-bar__left-virtual":"awsui_status-bar__left-virtual_1gl9c_162o6_632","status-bar__right":"awsui_status-bar__right_1gl9c_162o6_636","status-bar__language-mode":"awsui_status-bar__language-mode_1gl9c_162o6_640","status-bar__cursor-position":"awsui_status-bar__cursor-position_1gl9c_162o6_640","status-bar__cog-button":"awsui_status-bar__cog-button_1gl9c_162o6_646","status-bar-virtual":"awsui_status-bar-virtual_1gl9c_162o6_651","tab-button":"awsui_tab-button_1gl9c_162o6_657","tab-button--refresh":"awsui_tab-button--refresh_1gl9c_162o6_689","tab-button--warnings":"awsui_tab-button--warnings_1gl9c_162o6_692","tab-button--active":"awsui_tab-button--active_1gl9c_162o6_701","tab-button--disabled":"awsui_tab-button--disabled_1gl9c_162o6_717","tab-button--divider":"awsui_tab-button--divider_1gl9c_162o6_750","tab-button--errors":"awsui_tab-button--errors_1gl9c_162o6_757","loading-screen":"awsui_loading-screen_1gl9c_162o6_761","error-screen":"awsui_error-screen_1gl9c_162o6_762"},O3=[{value:"abap",label:"ABAP"},{value:"abc",label:"ABC"},{value:"actionscript",label:"ActionScript"},{value:"ada",label:"ADA"},{value:"alda",label:"Alda"},{value:"apache_conf",label:"Apache Conf"},{value:"apex",label:"Apex"},{value:"aql",label:"AQL"},{value:"asciidoc",label:"AsciiDoc"},{value:"asl",label:"ASL"},{value:"assembly_x86",label:"Assembly x86"},{value:"autohotkey",label:"AutoHotkey/AutoIt"},{value:"batchfile",label:"BatchFile"},{value:"c_cpp",label:"C/C++"},{value:"c9search",label:"C9Search"},{value:"cirru",label:"Cirru"},{value:"clojure",label:"Clojure"},{value:"cobol",label:"Cobol"},{value:"coffee",label:"CoffeeScript"},{value:"coldfusion",label:"ColdFusion"},{value:"crystal",label:"Crystal"},{value:"csharp",label:"C#"},{value:"csound_document",label:"Csound Document"},{value:"csound_orchestra",label:"Csound"},{value:"csound_score",label:"Csound Score"},{value:"css",label:"CSS"},{value:"curly",label:"Curly"},{value:"d",label:"D"},{value:"dart",label:"Dart"},{value:"diff",label:"Diff"},{value:"django",label:"Django"},{value:"dockerfile",label:"Dockerfile"},{value:"dot",label:"Dot"},{value:"drools",label:"Drools"},{value:"edifact",label:"Edifact"},{value:"eiffel",label:"Eiffel"},{value:"ejs",label:"EJS"},{value:"elixir",label:"Elixir"},{value:"elm",label:"Elm"},{value:"erlang",label:"Erlang"},{value:"forth",label:"Forth"},{value:"fortran",label:"Fortran"},{value:"fsharp",label:"FSharp"},{value:"fsl",label:"FSL"},{value:"ftl",label:"FreeMarker"},{value:"gcode",label:"Gcode"},{value:"gherkin",label:"Gherkin"},{value:"gitignore",label:"Gitignore"},{value:"glsl",label:"Glsl"},{value:"gobstones",label:"Gobstones"},{value:"golang",label:"Go"},{value:"graphqlschema",label:"GraphQLSchema"},{value:"groovy",label:"Groovy"},{value:"haml",label:"HAML"},{value:"handlebars",label:"Handlebars"},{value:"haskell",label:"Haskell"},{value:"haskell_cabal",label:"Haskell Cabal"},{value:"haxe",label:"haXe"},{value:"hjson",label:"Hjson"},{value:"html",label:"HTML"},{value:"html_elixir",label:"HTML (Elixir)"},{value:"html_ruby",label:"HTML (Ruby)"},{value:"ini",label:"INI"},{value:"io",label:"Io"},{value:"jack",label:"Jack"},{value:"jade",label:"Jade"},{value:"java",label:"Java"},{value:"javascript",label:"JavaScript"},{value:"json",label:"JSON"},{value:"json5",label:"JSON5"},{value:"jsoniq",label:"JSONiq"},{value:"jsp",label:"JSP"},{value:"jssm",label:"JSSM"},{value:"jsx",label:"JSX"},{value:"julia",label:"Julia"},{value:"kotlin",label:"Kotlin"},{value:"latex",label:"LaTeX"},{value:"less",label:"LESS"},{value:"liquid",label:"Liquid"},{value:"lisp",label:"Lisp"},{value:"livescript",label:"LiveScript"},{value:"logiql",label:"LogiQL"},{value:"lsl",label:"LSL"},{value:"lua",label:"Lua"},{value:"luapage",label:"LuaPage"},{value:"lucene",label:"Lucene"},{value:"makefile",label:"Makefile"},{value:"markdown",label:"Markdown"},{value:"mask",label:"Mask"},{value:"matlab",label:"MATLAB"},{value:"maze",label:"Maze"},{value:"mediawiki",label:"MediaWiki"},{value:"mel",label:"MEL"},{value:"mixal",label:"MIXAL"},{value:"mushcode",label:"MUSHCode"},{value:"mysql",label:"MySQL"},{value:"nginx",label:"Nginx"},{value:"nim",label:"Nim"},{value:"nix",label:"Nix"},{value:"nsis",label:"NSIS"},{value:"nunjucks",label:"Nunjucks"},{value:"objectivec",label:"Objective-C"},{value:"ocaml",label:"OCaml"},{value:"pascal",label:"Pascal"},{value:"perl",label:"Perl"},{value:"perl6",label:"Perl 6"},{value:"pgsql",label:"pgSQL"},{value:"php",label:"PHP"},{value:"php_laravel_blade",label:"PHP (Blade Template)"},{value:"pig",label:"Pig"},{value:"powershell",label:"Powershell"},{value:"praat",label:"Praat"},{value:"prisma",label:"Prisma"},{value:"prolog",label:"Prolog"},{value:"properties",label:"Properties"},{value:"protobuf",label:"Protobuf"},{value:"puppet",label:"Puppet"},{value:"python",label:"Python"},{value:"qml",label:"QML"},{value:"r",label:"R"},{value:"razor",label:"Razor"},{value:"rdoc",label:"RDoc"},{value:"red",label:"Red"},{value:"rhtml",label:"RHTML"},{value:"rst",label:"RST"},{value:"ruby",label:"Ruby"},{value:"rust",label:"Rust"},{value:"sass",label:"SASS"},{value:"scad",label:"SCAD"},{value:"scala",label:"Scala"},{value:"scheme",label:"Scheme"},{value:"scss",label:"SCSS"},{value:"sh",label:"SH"},{value:"sjs",label:"SJS"},{value:"slim",label:"Slim"},{value:"smarty",label:"Smarty"},{value:"snippets",label:"snippets"},{value:"soy_template",label:"Soy Template"},{value:"space",label:"Space"},{value:"sql",label:"SQL"},{value:"sqlserver",label:"SQLServer"},{value:"stylus",label:"Stylus"},{value:"svg",label:"SVG"},{value:"swift",label:"Swift"},{value:"tcl",label:"Tcl"},{value:"terraform",label:"Terraform"},{value:"tex",label:"Tex"},{value:"text",label:"Text"},{value:"textile",label:"Textile"},{value:"toml",label:"Toml"},{value:"tsx",label:"TSX"},{value:"twig",label:"Twig"},{value:"typescript",label:"TypeScript"},{value:"vala",label:"Vala"},{value:"vbscript",label:"VBScript"},{value:"velocity",label:"Velocity"},{value:"verilog",label:"Verilog"},{value:"vhdl",label:"VHDL"},{value:"visualforce",label:"Visualforce"},{value:"wollok",label:"Wollok"},{value:"xml",label:"XML"},{value:"xquery",label:"XQuery"},{value:"yaml",label:"YAML"},{value:"zeek",label:"Zeek"}],Vm=[{value:"chrome",label:"Chrome"},{value:"clouds",label:"Clouds"},{value:"crimson_editor",label:"Crimson Editor"},{value:"dawn",label:"Dawn"},{value:"dreamweaver",label:"Dreamweaver"},{value:"eclipse",label:"Eclipse"},{value:"github",label:"GitHub"},{value:"iplastic",label:"IPlastic"},{value:"solarized_light",label:"Solarized Light"},{value:"textmate",label:"TextMate"},{value:"tomorrow",label:"Tomorrow"},{value:"xcode",label:"Xcode"},{value:"kuroir",label:"Kuroir"},{value:"katzenmilch",label:"KatzenMilch"},{value:"sqlserver",label:"SQL Server"},{value:"cloud_editor",label:"CloudEditor"}],Um=[{value:"ambiance",label:"Ambiance"},{value:"chaos",label:"Chaos"},{value:"clouds_midnight",label:"Clouds Midnight"},{value:"dracula",label:"Dracula"},{value:"cobalt",label:"Cobalt"},{value:"gruvbox",label:"Gruvbox"},{value:"gob",label:"Green on Black"},{value:"idle_fingers",label:"idle Fingers"},{value:"kr_theme",label:"krTheme"},{value:"merbivore",label:"Merbivore"},{value:"merbivore_soft",label:"Merbivore Soft"},{value:"mono_industrial",label:"Mono Industrial"},{value:"monokai",label:"Monokai"},{value:"nord_dark",label:"Nord Dark"},{value:"pastel_on_dark",label:"Pastel on dark"},{value:"solarized_dark",label:"Solarized Dark"},{value:"terminal",label:"Terminal"},{value:"tomorrow_night",label:"Tomorrow Night"},{value:"tomorrow_night_blue",label:"Tomorrow Night Blue"},{value:"tomorrow_night_bright",label:"Tomorrow Night Bright"},{value:"tomorrow_night_eighties",label:"Tomorrow Night 80s"},{value:"twilight",label:"Twilight"},{value:"vibrant_ink",label:"Vibrant Ink"},{value:"cloud_editor_dark",label:"CloudEditor Dark"}],Km="cloud_editor",qm="cloud_editor_dark",M3="dawn",N3="tomorrow_night_bright",j3={light:Vm.map(e=>e.value).filter(e=>e!==Km),dark:Um.map(e=>e.value).filter(e=>e!==qm)};function G3(e,t){var r;const o=(r=e==null?void 0:e.version)===null||r===void 0?void 0:r.split(".").map(n=>{const i=parseInt(n);return Number.isNaN(i)?n:i});return!!o&&typeof o[0]=="number"&&o[0]>=t[0]&&typeof o[1]=="number"&&o[1]>=t[1]&&typeof o[2]=="number"&&o[2]>=t[2]}function GE(e){return G3(e,[1,23,0])}function z3(e){return Object.assign({behavioursEnabled:!0},GE(e)?{enableKeyboardAccessibility:!0}:{})}function zE(e,t){return e==="light"?t!=null&&t.light.some(r=>r===Km)?Km:M3:t!=null&&t.dark.some(r=>r===qm)?qm:N3}function FE(e){return`ace/theme/${e}`}function F3(e){var t;return((t=O3.filter(r=>r.value===e)[0])===null||t===void 0?void 0:t.label)||e}function Ym({paneId:e,paneStatus:t}){return e?`${e}-button-${t}`:void 0}const H3=31,W3=12,Px=3*H3+2*W3,V3=({id:e,paneStatus:t,visible:r,annotations:o,highlighted:n,onClose:i,onAnnotationClick:a,onAnnotationClear:c,cursorPositionLabel:l,closeButtonAriaLabel:d})=>{const[s,u]=B.useState(Px),h=B.useRef(null);B.useEffect(()=>{var m;if(!n)return;const{row:y,column:C}=n,_=o.indexOf(o.filter(k=>k.row===y&&k.column===C)[0]);if(_>-1){const k=(m=h.current)===null||m===void 0?void 0:m.children[_];k==null||k.focus()}},[n,o]);const f=m=>{a(m)},p=(m,y)=>{(y.keyCode===ke.enter||y.keyCode===ke.space)&&(y.preventDefault(),a(m))},g=m=>{m.keyCode===ke.escape&&(m.preventDefault(),i())},v=Ym({paneId:e,paneStatus:t});return r?x.createElement("div",{id:e,className:vt.pane,onKeyDown:g,role:"tabpanel","aria-labelledby":v},x.createElement(jE,{height:s,minHeight:Px,onResize:m=>u(m)},x.createElement(ts,{className:vt["focus-lock"],autoFocus:!0,restoreFocus:!0},x.createElement("div",{className:vt.pane__list,tabIndex:-1},x.createElement("table",{className:vt.pane__table,role:"presentation"},x.createElement("colgroup",null,x.createElement("col",{style:{width:1}}),x.createElement("col",{style:{width:"auto"}})),x.createElement("tbody",{ref:h},o.map((m,y)=>{var C;return x.createElement("tr",{key:y,role:"link",className:vt.pane__item,onMouseOver:c,onClick:f.bind(null,m),onKeyDown:p.bind(null,m),tabIndex:0},x.createElement("td",{className:W(vt.pane__location,vt.pane__cell),tabIndex:-1},(C=l==null?void 0:l((m.row||0)+1,(m.column||0)+1))!==null&&C!==void 0?C:""),x.createElement("td",{className:W(vt.pane__description,vt.pane__cell),tabIndex:-1},m.text))})))),x.createElement("div",{className:vt["pane__close-container"]},x.createElement(pt,{formAction:"none",variant:"icon",iconName:"close",onClick:i,ariaLabel:d}))))):null};function U3(e,t,r){const o=Lf(i=>{xe(r,i)},0),n=ao(()=>{const i={value:(e==null?void 0:e.getValue())||""};xe(t,i),o(i)});B.useEffect(()=>{if(e)return e.on("change",n),()=>e.off("change",n)},[e,n])}function K3(e,t,r,o,n,i){q3(e,t),t.session.selection.on("changeCursor",()=>{o(t.getCursorPosition())}),t.session.on("changeAnnotation",()=>{const l=t.session.getAnnotations(),d=l.filter(s=>s.type!=="info");l.length!==d.length&&t.session.setAnnotations(d),r(d)});const a=l=>{typeof l.row=="number"&&t.gotoLine(l.row+1,l.column||0,!1)},c=l=>{const d=t.session.getAnnotations().filter(u=>u.row===l&&u.type!=="info"),s=d.filter(u=>u.type==="error");s.length>0?(n(s[0]),i("error"),a(s[0])):d.length>0?(n(d[0]),i("warning"),a(d[0])):(n(void 0),i("hidden"),t.gotoLine(l+1,0,!1))};t.on("gutterclick",l=>{const{row:d}=l.getDocumentPosition();c(d)}),t.on("gutterkeydown",l=>{if(l.isInAnnotationLane()&&(l.getKey()==="space"||l.getKey()==="return")){const d=l.getRow();c(d)}}),t.on("change",()=>{t.getValue().length===0&&t.session.clearAnnotations()})}function q3(e,t){e.config.loadModule("ace/ext/language_tools",function(){t.setOptions({displayIndentGuides:!1,enableSnippets:!0,enableBasicAutocompletion:!0})}),t.setAutoScrollEditorIntoView(!0),GE(e)||t.commands.addCommand({name:"exitCodeEditor",bindKey:"Esc",exec:()=>{t.container.focus()}}),t.on("focus",()=>{t.textInput.getElement().setAttribute("tabindex",0)}),t.on("blur",()=>{t.textInput.getElement().setAttribute("tabindex",-1)}),t.textInput.getElement().setAttribute("tabindex",-1),t.commands.removeCommand("showSettingsMenu",!1),t.on("guttermousedown",r=>{r.stop()}),t.setHighlightActiveLine(!1),t.$updateHighlightActiveLine=function(){const r=this.getSession();let o;if(this.$highlightActiveLine&&((this.$selectionStyle!=="line"||!this.selection.isMultiLine())&&(o=this.getCursorPosition()),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(o=!1)),r.$highlightLineMarker&&!o)r.removeMarker(r.$highlightLineMarker.id),r.$highlightLineMarker=null;else if(!r.$highlightLineMarker&&o){const n=new e.Range(o.row,0,o.row,1/0);n.id=r.addMarker(n,"ace_active-line","fullLine"),r.$highlightLineMarker=n}else o&&(r.$highlightLineMarker.start.row=o.row,r.$highlightLineMarker.end.row=o.row,r.$highlightLineMarker.start.column=0,r._signal("changeBackMarker"))},t.setHighlightActiveLine(!0),t.on("showGutterTooltip",r=>{r.hide()})}const xr={dialog:"awsui_dialog_1d2i7_exyuv_111","modal-slide-up":"awsui_modal-slide-up_1d2i7_exyuv_1","awsui-motion-fade-in-0":"awsui_awsui-motion-fade-in-0_1d2i7_exyuv_1",refresh:"awsui_refresh_1d2i7_exyuv_134","awsui-motion-scale-popup":"awsui_awsui-motion-scale-popup_1d2i7_exyuv_1",root:"awsui_root_1d2i7_exyuv_167","awsui-motion-fade-in":"awsui_awsui-motion-fade-in_1d2i7_exyuv_1",hidden:"awsui_hidden_1d2i7_exyuv_251","focus-lock":"awsui_focus-lock_1d2i7_exyuv_255",small:"awsui_small_1d2i7_exyuv_275",medium:"awsui_medium_1d2i7_exyuv_278",large:"awsui_large_1d2i7_exyuv_281",max:"awsui_max_1d2i7_exyuv_284","breakpoint-xs":"awsui_breakpoint-xs_1d2i7_exyuv_284",container:"awsui_container_1d2i7_exyuv_290",content:"awsui_content_1d2i7_exyuv_334","no-paddings":"awsui_no-paddings_1d2i7_exyuv_339",header:"awsui_header_1d2i7_exyuv_344","header--text":"awsui_header--text_1d2i7_exyuv_356",footer:"awsui_footer_1d2i7_exyuv_360","footer--stuck":"awsui_footer--stuck_1d2i7_exyuv_369","dismiss-control":"awsui_dismiss-control_1d2i7_exyuv_381","modal-open":"awsui_modal-open_1d2i7_exyuv_385"},py=US(()=>{if(typeof document>"u")return{width:0,height:0};const e=document.createElement("div");e.style.overflow="scroll",e.style.height="100px",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth,r=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),{width:t,height:r}});let xd;function Y3(){X3(),document.body.classList.add(xr["modal-open"])}function $x(){document.body.classList.remove(xr["modal-open"]),Z3()}function X3(){if(J3()){xd=document.body.style.paddingRight;const e=Q3(),t=py().width,r=e+t;document.body.style.paddingRight=r+"px"}}function Q3(){return parseInt(window.getComputedStyle(document.body).paddingRight,10)}function Z3(){xd?document.body.style.setProperty("padding-right",xd):document.body.style.removeProperty("padding-right"),xd=void 0}function J3(){return document.body.clientWidth<window.innerWidth}function e4(){const e=B.useRef(null),[t,r]=B.useState(!1);return{ref:B.useCallback(n=>{typeof IntersectionObserver>"u"||(e.current&&e.current.disconnect(),n&&(e.current=new IntersectionObserver(([i])=>r(i.isIntersecting)),e.current.observe(n)))},[]),isIntersecting:t}}const t4=({children:e})=>x.createElement(Sf.Provider,{value:PT},x.createElement(N0.Provider,{value:{onClick:()=>{}}},x.createElement(Df.Provider,{value:{assignId:()=>{}}},x.createElement(fh.Provider,{value:{}},x.createElement(Tf.Provider,{value:""},x.createElement(Jl.Provider,{value:ZS},x.createElement(G0.Provider,{value:YS},e))))))),HE=t4;function gy(e){var{modalRoot:t}=e,r=de(e,["modalRoot"]);return x.createElement(Wa,{container:t},x.createElement(r4,Object.assign({},r)))}function r4(e){var t,{size:r,visible:o,header:n,children:i,footer:a,disableContentPaddings:c,onDismiss:l,__internalRootRef:d=null}=e,s=de(e,["size","visible","header","children","footer","disableContentPaddings","onDismiss","__internalRootRef"]);const u=De(),h=`${s.id||u}-header`,f=B.useRef(null),[p,g]=zn(["xs"]),m=it("modal")("closeAriaLabel",s.closeAriaLabel),y=B.useRef(null),C=Lt(g,y,d),_=Ie(s);B.useEffect(()=>()=>{$x()},[]),B.useEffect(()=>{o?Y3():$x()},[o]),B.useEffect(()=>{o&&y.current&&(y.current.scrollTop=0)},[o]);const k=R=>xe(l,{reason:R}),b=R=>{f.current=R.target},S=R=>{const $=y.current,N=f.current;R.target===$&&N===$&&k("overlay")},T=()=>k("closeButton"),L=R=>{R.keyCode===ke.escape&&k("keyboard")},{ref:I,isIntersecting:A}=e4(),[P,D]=zr(R=>R.borderBoxHeight),{subStepRef:E}=Fa();return x.createElement(WS.Provider,{value:`.${xr["header--text"]}`},x.createElement(HE,null,x.createElement(dE.Provider,{value:{isInModal:!0}},x.createElement("div",Object.assign({},_,{className:W(xr.root,{[xr.hidden]:!o},_.className,xr.refresh),role:"dialog","aria-modal":!0,"aria-labelledby":h,onMouseDown:b,onClick:S,ref:C,style:P?{scrollPaddingBottom:P}:void 0,"data-awsui-referrer-id":(t=E.current)===null||t===void 0?void 0:t.id}),x.createElement(ts,{disabled:!o,autoFocus:!0,restoreFocus:!0,className:xr["focus-lock"]},x.createElement("div",{className:W(xr.dialog,xr[r],xr[`breakpoint-${p}`],xr.refresh),onKeyDown:L},x.createElement("div",{className:xr.container},x.createElement("div",{className:xr.header},x.createElement(Rf,{variant:"h2",__disableActionsWrapping:!0,actions:x.createElement(pt,{ariaLabel:m,className:xr["dismiss-control"],variant:"modal-dismiss",iconName:"close",formAction:"none",onClick:T})},x.createElement("span",{id:h,className:xr["header--text"]},n))),x.createElement("div",{className:W(xr.content,{[xr["no-paddings"]]:c})},i,x.createElement("div",{ref:I})),a&&x.createElement("div",{ref:D,className:W(xr.footer,A&&xr["footer--stuck"])},a))))))))}const o4={root:"awsui_root_r2vco_wvvus_99"},n4=x.forwardRef((e,t)=>{var r,{options:o,filteringType:n="none",filteringPlaceholder:i,filteringAriaLabel:a,filteringClearAriaLabel:c,filteringResultsText:l,ariaRequired:d,placeholder:s,disabled:u,ariaLabel:h,statusType:f="finished",empty:p,loadingText:g,finishedText:v,errorText:m,noMatch:y,triggerVariant:C="label",renderHighlightedAriaLive:_,selectedOption:k,onBlur:b,onFocus:S,onLoadItems:T,onChange:L,virtualScroll:I,expandToViewport:A,autoFocus:P,__inFilteringToken:D,__internalRootRef:E=null}=e,R=de(e,["options","filteringType","filteringPlaceholder","filteringAriaLabel","filteringClearAriaLabel","filteringResultsText","ariaRequired","placeholder","disabled","ariaLabel","statusType","empty","loadingText","finishedText","errorText","noMatch","triggerVariant","renderHighlightedAriaLive","selectedOption","onBlur","onFocus","onLoadItems","onChange","virtualScroll","expandToViewport","autoFocus","__inFilteringToken","__internalRootRef"]);const $=Ie(R),N=Sn(R),M=it("select"),O=M("errorIconAriaLabel",R.errorIconAriaLabel),j=M("selectedAriaLabel",R.selectedAriaLabel),z=M("recoveryText",R.recoveryText);R.recoveryText;const{handleLoadMore:F,handleRecoveryClick:K,fireLoadItems:U}=rE({onLoadItems:T,options:o,statusType:f}),[Y,V]=B.useState(""),{filteredOptions:q,parentMap:ee,totalCount:X,matchesCount:ie}=ZT(o,n,Y),se=B.useRef(null),me=B.useRef(null),ve=De("trigger"),Q=(r=N.controlId)!==null&&r!==void 0?r:ve,oe=B.useRef(null),{isOpen:Z,highlightType:G,highlightedOption:H,highlightedIndex:te,getTriggerProps:ae,getDropdownProps:le,getFilterProps:we,getMenuProps:ce,getOptionProps:ye,highlightOption:Ae,selectOption:ne,announceSelected:pe}=eE({selectedOptions:k?[k]:[],updateSelectedOption:dt=>xe(L,{selectedOption:dt}),options:q,filteringType:n,onBlur:b,onFocus:S,externalRef:t,fireLoadItems:U,setFilteringValue:V,statusType:f}),ue=tE({isEnabled:n==="none",options:q,highlightOption:Z?Ae:ne,highlightedOption:Z?H==null?void 0:H.option:k}),_e=De("select-arialabel-"),Be=De("footer");B.useEffect(()=>{var dt;(dt=oe.current)===null||dt===void 0||dt.call(oe,te)},[te]);const Re=x.createElement(sE,Object.assign({clearAriaLabel:c,filteringType:n,placeholder:i,ariaLabel:a,ariaRequired:d,value:Y},we())),qe=x.createElement(cE,Object.assign({ref:me,placeholder:s,disabled:u,triggerVariant:C,triggerProps:ae(u,P),selectedOption:k,isOpen:Z,inFilteringToken:D},N,{controlId:Q,ariaLabelledby:Ro(N.ariaLabelledby,_e)})),je=!o||o.length===0,Ve=q&&q.length===0,$e=n!=="none"&&Y.length>0&&q&&q.length>0,Ke=$e?l==null?void 0:l(ie,X):void 0,Ot=Ef({statusType:f,empty:p,loadingText:g,finishedText:v,errorText:m,recoveryText:z,isEmpty:je,isNoMatch:Ve,noMatch:y,isFiltered:$e,filteringResultsText:Ke,errorIconAriaLabel:O,onRecoveryClick:K,hasRecoveryCallback:!!T}),Ft=Object.assign(Object.assign({},ce()),{onLoadMore:F,ariaLabelledby:Ro(_e,Q),ariaDescribedby:Ot.content?Be:void 0}),cr=ny({announceSelected:pe,highlightedOption:H,getParent:dt=>{var st;return(st=ee.get(dt))===null||st===void 0?void 0:st.option},selectedAriaLabel:j,renderHighlightedAriaLive:_}),er=I?lE:nE,bt=dt=>{dt.target!==document.activeElement&&dt.preventDefault()},lt=Lt(se,E),wt=le();return x.createElement("div",Object.assign({},$,{ref:lt,className:W(o4.root,$.className),onKeyPress:ue}),x.createElement(Kc,Object.assign({},wt,{ariaLabelledby:wt.dropdownContentRole?Ro(_e,Q):void 0,ariaDescribedby:wt.dropdownContentRole&&Ot.content?Be:void 0,open:Z,stretchTriggerHeight:D,stretchBeyondTriggerWidth:!0,trigger:qe,header:Re,onMouseDown:bt,footer:Ot.isSticky?x.createElement(qi,{content:Z?Ot.content:null,id:Be}):null,expandToViewport:A}),x.createElement(er,{listBottom:Ot.isSticky?null:x.createElement(qi,{content:Z?Ot.content:null,id:Be}),menuProps:Ft,getOptionProps:ye,filteredOptions:q,filteringValue:Y,ref:oe,hasDropdownStatus:Ot.content!==null,screenReaderContent:cr,highlightType:G})),x.createElement(Ql,{id:_e},h))}),tu=n4;function Ox(e,t){return e.filter(r=>t.indexOf(r.value)>-1)}const i4=e=>{var t,r,o,n;const[i,a]=B.useState((r=(t=e.preferences)===null||t===void 0?void 0:t.wrapLines)!==null&&r!==void 0?r:!0),[c,l]=B.useState((n=(o=e.preferences)===null||o===void 0?void 0:o.theme)!==null&&n!==void 0?n:e.defaultTheme),d=[{label:e.i18nStrings.lightThemes,options:Ox(Vm,e.themes.light)},{label:e.i18nStrings.darkThemes,options:Ox(Um,e.themes.dark)}],[s,u]=B.useState(()=>[...Vm,...Um].filter(f=>f.value===c)[0]),h=f=>{l(f.detail.selectedOption.value),u(f.detail.selectedOption)};return x.createElement(gy,{size:"medium",visible:!0,onDismiss:e.onDismiss,header:e.i18nStrings.header,closeAriaLabel:e.i18nStrings.cancel,footer:x.createElement(xn,{float:"right"},x.createElement(li,{direction:"horizontal",size:"xs"},x.createElement(pt,{onClick:e.onDismiss},e.i18nStrings.cancel),x.createElement(pt,{onClick:()=>e.onConfirm({wrapLines:i,theme:c}),variant:"primary"},e.i18nStrings.confirm)))},x.createElement(If,{columns:2,variant:"text-grid"},x.createElement("div",null,x.createElement(eu,{checked:i,onChange:f=>a(f.detail.checked)},e.i18nStrings.wrapLines)),x.createElement("div",null,x.createElement(Nn,{label:e.i18nStrings.theme},x.createElement(tu,{selectedOption:s,onChange:h,options:d,filteringType:"auto",filteringAriaLabel:e.i18nStrings.themeFilteringAriaLabel,filteringClearAriaLabel:e.i18nStrings.themeFilteringClearAriaLabel,filteringPlaceholder:e.i18nStrings.themeFilteringPlaceholder})))))},a4=e=>x.createElement("div",{className:vt["loading-screen"]},x.createElement(rf,{size:"normal",variant:"normal"})," ",e.children),l4=({children:e,recoveryText:t,onRecoveryClick:r})=>{const o=B.useCallback(()=>xe(r),[r]);return x.createElement("div",{className:vt["error-screen"]},x.createElement(ze,{name:"status-negative",variant:"error"})," ",e," ",x.createElement(qc,{variant:"recovery",onFollow:o},t))},Mx=x.forwardRef(({active:e,disabled:t,iconName:r,onClick:o,onFocus:n,onBlur:i,tabIndex:a,ariaHidden:c,ariaLabel:l,paneId:d,isRefresh:s,text:u,className:h,id:f},p)=>x.createElement("button",{className:W([vt["tab-button"],h],{[vt["tab-button--active"]]:e,[vt["tab-button--disabled"]]:t,[vt["tab-button--refresh"]]:s}),id:f,type:"button",onClick:o,onFocus:n,onBlur:i,disabled:t,ref:p,tabIndex:a,role:"tab","aria-selected":e,"aria-controls":d,"aria-hidden":c,"aria-label":l},x.createElement(ze,{name:r})," ",u));function Nx({languageLabel:e,cursorPosition:t,paneStatus:r,onErrorPaneToggle:o,onWarningPaneToggle:n,onTabFocus:i,onTabBlur:a,errorsTabRef:c,warningsTabRef:l,isTabFocused:d,paneId:s,onPreferencesOpen:u,i18nStrings:h,errorCount:f,warningCount:p,leftBarRef:g,isVirtual:v,minifyCounters:m,isRefresh:y}){const C=it("code-editor"),_=`${C("i18nStrings.errorsTab",h==null?void 0:h.errorsTab)}: ${f}`,k=`${C("i18nStrings.warningsTab",h==null?void 0:h.warningsTab)}: ${p}`,b=v?void 0:Ym({paneId:s,paneStatus:"error"}),S=v?void 0:Ym({paneId:s,paneStatus:"warning"});return x.createElement("div",{className:W(vt["status-bar"],{[vt["status-bar-with-hidden-pane"]]:r==="hidden",[vt["status-bar-virtual"]]:v}),"aria-hidden":v},x.createElement("div",{className:W(vt["status-bar__left"],{[vt["status-bar__left-virtual"]]:v}),ref:g},x.createElement("span",{className:vt["status-bar__language-mode"]},e),x.createElement("span",{className:vt["status-bar__cursor-position"]},t),x.createElement("div",{role:"tablist"},x.createElement(Mx,{id:b,text:m?` ${f}`:_,className:vt["tab-button--errors"],iconName:"status-negative",disabled:f===0||v,active:r==="error",onClick:o,onFocus:i,onBlur:a,ref:c,ariaLabel:_,paneId:s,isRefresh:y}),x.createElement("span",{className:vt["tab-button--divider"]}),x.createElement(Mx,{id:S,text:m?` ${p}`:k,className:vt["tab-button--warnings"],iconName:"status-warning",disabled:p===0||v,active:r==="warning",onClick:n,onFocus:i,onBlur:a,ref:l,tabIndex:r==="error"&&d?-1:void 0,ariaHidden:r==="error"&&d?!0:void 0,ariaLabel:k,paneId:s,isRefresh:y})),x.createElement(lo,{assertive:!0},x.createElement("span",null,_," "),x.createElement("span",null,k))),x.createElement("div",{className:vt["status-bar__right"]},x.createElement("div",{className:vt["status-bar__cog-button"]},x.createElement(pt,{disabled:v,formAction:"none",variant:"icon",iconName:"settings",iconAlt:"Settings",ariaLabel:C("i18nStrings.preferencesButtonAriaLabel",h==null?void 0:h.preferencesButtonAriaLabel),onClick:u,__nativeAttributes:{tabIndex:r!=="hidden"&&d?-1:void 0,"aria-hidden":r!=="hidden"&&d?!0:void 0}}))))}const s4=e=>{var{errorsTabRef:t,warningsTabRef:r}=e,o=de(e,["errorsTabRef","warningsTabRef"]);const[n,i]=zr(d=>d.contentBoxWidth),[a,c]=zr(d=>d.contentBoxWidth),l=a!==null&&n!==null&&a>n;return x.createElement(x.Fragment,null,x.createElement(Nx,Object.assign({},o,{isVirtual:!1,leftBarRef:i,errorsTabRef:t,warningsTabRef:r,minifyCounters:l})),x.createElement(Nx,Object.assign({},o,{isVirtual:!0,leftBarRef:c,minifyCounters:!1})))};function c4(e,t,r){const o=B.useRef(null),[n,i]=B.useState(null),[a]=B.useState(FE(zE(tf(o),t)));return B.useEffect(()=>{const c=o.current;if(!e||!c)return;const l=z3(e);i(e.edit(c,Object.assign(Object.assign({},l),{theme:a})))},[e,r,a]),{editorRef:o,editor:n}}function u4(e,{controlId:t,ariaLabel:r,ariaLabelledby:o,ariaDescribedby:n}){B.useEffect(()=>{if(!e)return;const{textarea:i}=e.renderer;if(!i)return;const a=(c,l)=>l?i.setAttribute(c,l):i.removeAttribute(c);a("id",t),a("aria-label",r),a("aria-labelledby",o),a("aria-describedby",n)},[r,n,o,t,e])}function d4(e,{width:t,height:r}){return B.useEffect(()=>{e==null||e.resize()},[e,t,r]),{onResize:B.useCallback(()=>{e==null||e.resize()},[e])}}function h4(e,t){B.useEffect(()=>{if(!e||t===e.getValue())return;const r=e.session.selection.toJSON();e.setValue(t,-1),e.session.selection.fromJSON(r)},[e,t])}function f4(e,t){B.useEffect(()=>{e==null||e.session.setMode(`ace/mode/${t}`)},[e,t])}function p4(e,t){B.useEffect(()=>{e==null||e.session.setUseWrapMode(t??!0)},[e,t])}function g4(e,t){B.useEffect(()=>{e==null||e.setTheme(FE(t))},[e,t])}const WE=B.forwardRef((e,t)=>{var r,o;const{ace:n,value:i,language:a,i18nStrings:c,editorContentHeight:l,onEditorContentResize:d,ariaLabel:s,languageLabel:u,preferences:h,loading:f,themes:p}=e,g=de(e,["ace","value","language","i18nStrings","editorContentHeight","onEditorContentResize","ariaLabel","languageLabel","preferences","loading","themes"]),{__internalRootRef:v}=ut("CodeEditor",{props:{language:a}}),{controlId:m,ariaLabelledby:y,ariaDescribedby:C}=Sn(e),[_=480,k]=go(l,d,480,{componentName:"code-editor",changeHandler:"onEditorContentResize",controlledProp:"editorContentHeight"}),b=tf(v),S=kn(),T=Ie(g),L=it("code-editor"),I=B.useRef(null),A=B.useRef(null),[P,D]=zr(ue=>ue.contentBoxWidth),E=Lt(D,v),R=De("code-editor-pane"),[$,N]=B.useState("hidden"),[M,O]=B.useState([]),[j,z]=B.useState(),[F,K]=B.useState({row:0,column:0}),[U,Y]=B.useState(!1),{editorRef:V,editor:q}=c4(n,p,f);Ji(t,V),B.useEffect(()=>{if(!(!n||!q))return K3(n,q,O,K,z,N),()=>{q==null||q.destroy()}},[n,q]),u4(q,{controlId:m,ariaLabel:s,ariaLabelledby:y,ariaDescribedby:C});const{onResize:ee}=d4(q,{width:P,height:l});h4(q,i),f4(q,a),p4(q,h==null?void 0:h.wrapLines);const X=zE(b,p);g4(q,(r=h==null?void 0:h.theme)!==null&&r!==void 0?r:X),U3(q,e.onChange,e.onDelayedChange),B.useEffect(()=>{M.length===0&&N("hidden"),e.onValidate&&xe(e.onValidate,{annotations:M})},[M,e.onValidate]);const ie=u??F3(a),se=M.filter(ue=>ue.type==="error").length,me=M.filter(ue=>ue.type==="warning").length,ve=B.useMemo(()=>M.filter(ue=>ue.type===$),[M,$]),Q=B.useCallback(ue=>{q&&ue.target===q.container&&ue.keyCode===ke.enter&&(ue.stopPropagation(),ue.preventDefault(),q.focus())},[q]),oe=B.useCallback(()=>Y(!0),[]),Z=B.useCallback(()=>Y(!1),[]),G=B.useCallback(()=>{N($!=="error"?"error":"hidden")},[$]),H=B.useCallback(()=>{N($!=="warning"?"warning":"hidden")},[$]),te=()=>{N("hidden")},ae=({row:ue=0,column:_e=0})=>{q&&(q.focus(),q.gotoLine(ue+1,_e,!1),z(void 0))},le=B.useCallback(()=>{z(void 0)},[]),[we,ce]=B.useState(!1),ye=()=>ce(!0),Ae=ue=>{xe(e.onPreferencesChange,ue),ce(!1)},ne=()=>ce(!1),pe=$!=="hidden";return x.createElement("div",Object.assign({},T,{className:W(vt["code-editor"],T.className,{[vt["code-editor-refresh"]]:S}),ref:E}),f&&x.createElement(a4,null,x.createElement(lo,{visible:!0},L("i18nStrings.loadingState",c==null?void 0:c.loadingState))),!n&&!f&&x.createElement(l4,{recoveryText:L("i18nStrings.errorStateRecovery",c==null?void 0:c.errorStateRecovery),onRecoveryClick:e.onRecoveryClick},L("i18nStrings.errorState",c==null?void 0:c.errorState)),n&&!f&&x.createElement(x.Fragment,null,x.createElement(jE,{height:Math.max(_,20),minHeight:20,onResize:ue=>{k(ue),ee(),xe(d,{height:ue})}},x.createElement("div",{ref:V,className:W(vt.editor,vt.ace,vt["editor-refresh"]),onKeyDown:Q,tabIndex:0,role:"group","aria-label":L("i18nStrings.editorGroupAriaLabel",c==null?void 0:c.editorGroupAriaLabel)})),x.createElement("div",{role:"group","aria-label":L("i18nStrings.statusBarGroupAriaLabel",c==null?void 0:c.statusBarGroupAriaLabel)},x.createElement(s4,{languageLabel:ie,cursorPosition:L("i18nStrings.cursorPosition",(o=c==null?void 0:c.cursorPosition)===null||o===void 0?void 0:o.call(c,F.row+1,F.column+1),ue=>ue({row:F.row+1,column:F.column+1})),errorCount:se,warningCount:me,paneStatus:$,onErrorPaneToggle:G,onWarningPaneToggle:H,onTabFocus:oe,onTabBlur:Z,errorsTabRef:I,warningsTabRef:A,i18nStrings:c,isTabFocused:U,paneId:pe?R:void 0,onPreferencesOpen:ye,isRefresh:S}),x.createElement(V3,{id:R,paneStatus:$,visible:pe,annotations:ve,highlighted:j,onAnnotationClick:ae,onAnnotationClear:le,onClose:te,cursorPositionLabel:L("i18nStrings.cursorPosition",c==null?void 0:c.cursorPosition,ue=>(_e,Be)=>ue({row:_e,column:Be})),closeButtonAriaLabel:L("i18nStrings.paneCloseButtonAriaLabel",c==null?void 0:c.paneCloseButtonAriaLabel)})),we&&x.createElement(i4,{onConfirm:Ae,onDismiss:ne,themes:p??j3,preferences:h,defaultTheme:X,i18nStrings:{header:L("i18nStrings.preferencesModalHeader",c==null?void 0:c.preferencesModalHeader),cancel:L("i18nStrings.preferencesModalCancel",c==null?void 0:c.preferencesModalCancel),confirm:L("i18nStrings.preferencesModalConfirm",c==null?void 0:c.preferencesModalConfirm),wrapLines:L("i18nStrings.preferencesModalWrapLines",c==null?void 0:c.preferencesModalWrapLines),theme:L("i18nStrings.preferencesModalTheme",c==null?void 0:c.preferencesModalTheme),lightThemes:L("i18nStrings.preferencesModalLightThemes",c==null?void 0:c.preferencesModalLightThemes),darkThemes:L("i18nStrings.preferencesModalDarkThemes",c==null?void 0:c.preferencesModalDarkThemes),themeFilteringAriaLabel:c==null?void 0:c.preferencesModalThemeFilteringAriaLabel,themeFilteringClearAriaLabel:c==null?void 0:c.preferencesModalThemeFilteringClearAriaLabel,themeFilteringPlaceholder:c==null?void 0:c.preferencesModalThemeFilteringPlaceholder}})))});at(WE,"CodeEditor");const VE=WE;function m4(e,t,r){const o=B.useRef(null),n=t&&v4(t,i=>i.value===r);return B.useImperativeHandle(e,()=>({focus(){var i;(i=o.current)===null||i===void 0||i.focus()}})),[o,n!==void 0&&n!==-1?n:0]}function v4(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return-1}const y4=x.forwardRef((e,t)=>{var{name:r,value:o,items:n,ariaLabel:i,ariaRequired:a,ariaControls:c,onChange:l,__internalRootRef:d=null}=e,s=de(e,["name","value","items","ariaLabel","ariaRequired","ariaControls","onChange","__internalRootRef"]);const{ariaDescribedby:u,ariaLabelledby:h}=Sn(s),f=Ie(s),p=De("awsui-radio-"),[g,v]=m4(t,n,o);return x.createElement("div",Object.assign({role:"radiogroup","aria-labelledby":h,"aria-label":i,"aria-describedby":u,"aria-required":a,"aria-controls":c},f,{className:W(f.className,Bn.root),ref:d}),n&&n.map((m,y)=>x.createElement(OE,{key:m.value,ref:y===v?g:void 0,checked:m.value===o,name:r||p,value:m.value,label:m.label,description:m.description,disabled:m.disabled,onChange:l,controlId:m.controlId})))}),UE=y4,Yt={"visible-content":"awsui_visible-content_tc96w_5j4hz_197","visible-content-toggle":"awsui_visible-content-toggle_tc96w_5j4hz_198","visible-content-groups":"awsui_visible-content-groups_tc96w_5j4hz_199","visible-content-group":"awsui_visible-content-group_tc96w_5j4hz_199","visible-content-title":"awsui_visible-content-title_tc96w_5j4hz_204","visible-content-group-label":"awsui_visible-content-group-label_tc96w_5j4hz_214","visible-content-option":"awsui_visible-content-option_tc96w_5j4hz_220","visible-content-option-label":"awsui_visible-content-option-label_tc96w_5j4hz_233","content-display-option-toggle":"awsui_content-display-option-toggle_tc96w_5j4hz_436","content-display-option-content":"awsui_content-display-option-content_tc96w_5j4hz_440","content-display-option":"awsui_content-display-option_tc96w_5j4hz_436",placeholder:"awsui_placeholder_tc96w_5j4hz_490",sorting:"awsui_sorting_tc96w_5j4hz_490","content-display-option-label":"awsui_content-display-option-label_tc96w_5j4hz_517","drag-overlay":"awsui_drag-overlay_tc96w_5j4hz_524","content-display":"awsui_content-display_tc96w_5j4hz_436","content-display-title":"awsui_content-display-title_tc96w_5j4hz_557","content-display-description":"awsui_content-display-description_tc96w_5j4hz_566","content-display-option-list":"awsui_content-display-option-list_tc96w_5j4hz_574",root:"awsui_root_tc96w_5j4hz_581","modal-root":"awsui_modal-root_tc96w_5j4hz_582","trigger-button":"awsui_trigger-button_tc96w_5j4hz_583","cancel-button":"awsui_cancel-button_tc96w_5j4hz_584","confirm-button":"awsui_confirm-button_tc96w_5j4hz_585",custom:"awsui_custom_tc96w_5j4hz_586","second-column-small":"awsui_second-column-small_tc96w_5j4hz_590","wrap-lines":"awsui_wrap-lines_tc96w_5j4hz_594","striped-rows":"awsui_striped-rows_tc96w_5j4hz_595","content-density":"awsui_content-density_tc96w_5j4hz_596","page-size":"awsui_page-size_tc96w_5j4hz_597","page-size-form-field":"awsui_page-size-form-field_tc96w_5j4hz_598","page-size-radio-group":"awsui_page-size-radio-group_tc96w_5j4hz_599","sticky-columns":"awsui_sticky-columns_tc96w_5j4hz_600","sticky-columns-form-field":"awsui_sticky-columns-form-field_tc96w_5j4hz_601","sticky-columns-radio-group":"awsui_sticky-columns-radio-group_tc96w_5j4hz_602","sticky-columns-first":"awsui_sticky-columns-first_tc96w_5j4hz_603","sticky-columns-last":"awsui_sticky-columns-last_tc96w_5j4hz_604"},ag=({pageSize:e,wrapLines:t,stripedRows:r,contentDensity:o,visibleContent:n,contentDisplay:i,stickyColumns:a,custom:c})=>({pageSize:e,wrapLines:t,stripedRows:r,contentDensity:o,visibleContent:n,contentDisplay:i,stickyColumns:a,custom:c}),b4=(e,t)=>{const r=Object.assign({},t),o=["pageSize","wrapLines","stripedRows","contentDensity","visibleContent","custom","contentDisplay","stickyColumns"];for(const n of o)e[n]!==void 0&&(r[n]=e[n]);return r},w4=({left:e,right:t})=>{const[r,o]=zn(["xs"]);if(r==="default")return x.createElement("div",{ref:o},e&&x.createElement("div",null,e),t&&x.createElement("div",{className:W(e&&Yt["second-column-small"])},t));const i=e&&t?2:1;return x.createElement("div",{ref:o},x.createElement(If,{columns:i,variant:"text-grid"},e&&x.createElement("div",null,e),t&&x.createElement("div",null,t)))},x4=({title:e,options:t,value:r,onChange:o})=>{const n=it("collection-preferences");return x.createElement("div",{className:Yt["page-size"]},x.createElement(Nn,{label:n("pageSizePreference.title",e),stretch:!0,className:Yt["page-size-form-field"]},x.createElement(UE,{className:Yt["page-size-radio-group"],value:`${r}`,items:t.map(({label:i,value:a})=>({label:i,value:`${a}`})),onChange:({detail:i})=>o(parseInt(i.value,10))})))},_4=({label:e,description:t,value:r,onChange:o})=>{const n=it("collection-preferences");return x.createElement(eu,{checked:!!r,description:n("wrapLinesPreference.description",t),onChange:({detail:i})=>o(i.checked),className:Yt["wrap-lines"]},n("wrapLinesPreference.label",e))};function k4({label:e,description:t,value:r,onChange:o}){const n=it("collection-preferences");return x.createElement(eu,{checked:!!r,description:n("stripedRowsPreference.description",t),onChange:({detail:i})=>o(i.checked),className:Yt["striped-rows"]},n("stripedRowsPreference.label",e))}const C4=({label:e,description:t,value:r,onChange:o})=>{const n=it("collection-preferences");return x.createElement(eu,{checked:r==="compact",description:n("contentDensityPreference.description",t),onChange:({detail:i})=>o(i.checked?"compact":"comfortable"),className:Yt["content-density"]},n("contentDensityPreference.label",e))},jx=({firstOrLast:e,preference:t,value:r,onChange:o})=>{const{title:n,description:i,options:a}=t;return x.createElement("div",{className:Yt[`sticky-columns-${e}`]},x.createElement(Nn,{className:Yt["sticky-columns-form-field"],label:n,description:i},x.createElement(UE,{className:Yt["sticky-columns-radio-group"],value:typeof r<"u"?`${r}`:null,items:a.map(({label:c,value:l})=>({label:c,value:`${l}`})),onChange:({detail:c})=>o(Number(c.value))})))},S4=({firstColumns:e,lastColumns:t,onChange:r,value:o})=>x.createElement(li,{className:Yt["sticky-columns"],size:"l"},e&&x.createElement(jx,{firstOrLast:"first",preference:e,value:o==null?void 0:o.first,onChange:n=>r(Object.assign(Object.assign({},o),{first:n}))}),t&&x.createElement(jx,{firstOrLast:"last",preference:t,value:o==null?void 0:o.last,onChange:n=>r(Object.assign(Object.assign({},o),{last:n}))})),T4=({value:e,customPreference:t,onChange:r})=>{const[o,n]=B.useState(e);return t?x.createElement("div",{className:Yt.custom},t(o,i=>{n(()=>i),r(i)})):null},gi={root:"awsui_root_4yi2u_vw2b1_99",outline:"awsui_outline_4yi2u_vw2b1_135","toggle-control":"awsui_toggle-control_4yi2u_vw2b1_157","toggle-control-checked":"awsui_toggle-control-checked_4yi2u_vw2b1_170","toggle-control-disabled":"awsui_toggle-control-disabled_4yi2u_vw2b1_173","toggle-handle":"awsui_toggle-handle_4yi2u_vw2b1_180","toggle-handle-checked":"awsui_toggle-handle-checked_4yi2u_vw2b1_195","toggle-handle-disabled":"awsui_toggle-handle-disabled_4yi2u_vw2b1_198"},E4=x.forwardRef((e,t)=>{var{controlId:r,checked:o,name:n,disabled:i,children:a,description:c,ariaLabel:l,ariaControls:d,onFocus:s,onBlur:u,onChange:h,__internalRootRef:f=null}=e,p=de(e,["controlId","checked","name","disabled","children","description","ariaLabel","ariaControls","onFocus","onBlur","onChange","__internalRootRef"]);const{ariaDescribedby:g,ariaLabelledby:v}=Sn(p),m=Ie(p),y=B.useRef(null);return Ji(t,y),x.createElement(fy,Object.assign({},m,{className:W(gi.root,m.className),controlClassName:W(gi["toggle-control"],{[gi["toggle-control-checked"]]:o,[gi["toggle-control-disabled"]]:i}),outlineClassName:gi.outline,controlId:r,disabled:i,label:a,description:c,descriptionBottomPadding:!0,ariaLabel:l,ariaLabelledby:v,ariaDescribedby:g,ariaControls:d,nativeControl:C=>x.createElement("input",Object.assign({},C,{ref:y,type:"checkbox",checked:o,name:n,onFocus:()=>xe(s),onBlur:()=>xe(u),onChange:()=>{}})),onClick:()=>{var C;(C=y.current)===null||C===void 0||C.focus(),xe(h,{checked:!o})},styledControl:x.createElement("span",{className:W(gi["toggle-handle"],{[gi["toggle-handle-checked"]]:o,[gi["toggle-handle-disabled"]]:i})}),__internalRootRef:f}))}),KE=E4,Gx=(e,t)=>t.indexOf(e)!==-1,la=e=>({className:Yt[`visible-content-${e}`]});function L4({title:e,options:t,value:r=[],onChange:o}){const n=De("visible-content"),i=t.reduce((d,s)=>[...d,...s.options.reduce((u,h)=>[...u,h.id],[])],[]),a=d=>{Gx(d,r)?o(r.filter(s=>s!==d)):o([...r,d].sort((s,u)=>i.indexOf(s)-i.indexOf(u)))},c=(d,s,u)=>{const h=`${n}-${s}-${u}`;return x.createElement("div",Object.assign({key:u},la("option")),x.createElement("label",Object.assign({},la("option-label"),{htmlFor:h}),d.label),x.createElement("div",Object.assign({},la("toggle")),x.createElement(KE,{checked:Gx(d.id,r),onChange:()=>a(d.id),disabled:d.editable===!1,controlId:h})))},l=`${n}-outer`;return x.createElement("div",{className:Yt["visible-content"]},x.createElement("h3",Object.assign({},la("title"),{id:l}),e),x.createElement(li,Object.assign({},la("groups"),{size:"xs"}),t.map((d,s)=>{const u=`${n}-${s}`;return x.createElement("div",Object.assign({key:s},la("group"),{role:"group","aria-labelledby":`${l} ${u}`}),x.createElement("div",Object.assign({},la("group-label"),{id:u}),d.label),x.createElement("div",null,d.options.map((h,f)=>c(h,s,f))))})))}function A4({options:e,contentDisplay:t}){const r=e.reduce((o,n)=>Object.assign(Object.assign({},o),{[n.id]:n}),{});return t.map(({id:o,visible:n})=>Object.assign(Object.assign({},r[o]),{visible:n})).filter(Boolean)}function B4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return B.useMemo(()=>o=>{t.forEach(n=>n(o))},t)}const ru=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function os(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function my(e){return"nodeType"in e}function to(e){var t,r;return e?os(e)?e:my(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function vy(e){const{Document:t}=to(e);return e instanceof t}function ou(e){return os(e)?!1:e instanceof to(e).HTMLElement}function qE(e){return e instanceof to(e).SVGElement}function Va(e){return e?os(e)?e.document:my(e)?vy(e)?e:ou(e)||qE(e)?e.ownerDocument:document:document:document}const Jo=ru?B.useLayoutEffect:B.useEffect;function $f(e){const t=B.useRef(e);return Jo(()=>{t.current=e}),B.useCallback(function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return t.current==null?void 0:t.current(...o)},[])}function D4(){const e=B.useRef(null),t=B.useCallback((o,n)=>{e.current=setInterval(o,n)},[]),r=B.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function Ac(e,t){t===void 0&&(t=[e]);const r=B.useRef(e);return Jo(()=>{r.current!==e&&(r.current=e)},t),r}function nu(e,t){const r=B.useRef();return B.useMemo(()=>{const o=e(r.current);return r.current=o,o},[...t])}function vh(e){const t=$f(e),r=B.useRef(null),o=B.useCallback(n=>{n!==r.current&&(t==null||t(n,r.current)),r.current=n},[]);return[r,o]}function yh(e){const t=B.useRef();return B.useEffect(()=>{t.current=e},[e]),t.current}let lg={};function iu(e,t){return B.useMemo(()=>{if(t)return t;const r=lg[e]==null?0:lg[e]+1;return lg[e]=r,e+"-"+r},[e,t])}function YE(e){return function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return o.reduce((i,a)=>{const c=Object.entries(a);for(const[l,d]of c){const s=i[l];s!=null&&(i[l]=s+e*d)}return i},{...t})}}const Ll=YE(1),Gl=YE(-1);function R4(e){return"clientX"in e&&"clientY"in e}function au(e){if(!e)return!1;const{KeyboardEvent:t}=to(e.target);return t&&e instanceof t}function I4(e){if(!e)return!1;const{TouchEvent:t}=to(e.target);return t&&e instanceof t}function bh(e){if(I4(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return R4(e)?{x:e.clientX,y:e.clientY}:null}const Yi=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[Yi.Translate.toString(e),Yi.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:o}=e;return t+" "+r+"ms "+o}}}),zx="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function P4(e){return e.matches(zx)?e:e.querySelector(zx)}const $4={display:"none"};function O4(e){let{id:t,value:r}=e;return x.createElement("div",{id:t,style:$4},r)}function M4(e){let{id:t,announcement:r,ariaLiveType:o="assertive"}=e;const n={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:t,style:n,role:"status","aria-live":o,"aria-atomic":!0},r)}function N4(){const[e,t]=B.useState("");return{announce:B.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const XE=B.createContext(null);function j4(e){const t=B.useContext(XE);B.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function G4(){const[e]=B.useState(()=>new Set),t=B.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[B.useCallback(o=>{let{type:n,event:i}=o;e.forEach(a=>{var c;return(c=a[n])==null?void 0:c.call(a,i)})},[e]),t]}const z4={draggable:`
    89      To pick up a draggable item, press the space bar.
    90      While dragging, use the arrow keys to move the item.
    91      Press space again to drop the item in its new position, or press escape to cancel.
    92    `},F4={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function H4(e){let{announcements:t=F4,container:r,hiddenTextDescribedById:o,screenReaderInstructions:n=z4}=e;const{announce:i,announcement:a}=N4(),c=iu("DndLiveRegion"),[l,d]=B.useState(!1);if(B.useEffect(()=>{d(!0)},[]),j4(B.useMemo(()=>({onDragStart(u){let{active:h}=u;i(t.onDragStart({active:h}))},onDragMove(u){let{active:h,over:f}=u;t.onDragMove&&i(t.onDragMove({active:h,over:f}))},onDragOver(u){let{active:h,over:f}=u;i(t.onDragOver({active:h,over:f}))},onDragEnd(u){let{active:h,over:f}=u;i(t.onDragEnd({active:h,over:f}))},onDragCancel(u){let{active:h,over:f}=u;i(t.onDragCancel({active:h,over:f}))}}),[i,t])),!l)return null;const s=x.createElement(x.Fragment,null,x.createElement(O4,{id:o,value:n.draggable}),x.createElement(M4,{id:c,announcement:a}));return r?Uo.createPortal(s,r):s}var Cr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Cr||(Cr={}));function wh(){}function Fx(e,t){return B.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function W4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return B.useMemo(()=>[...t].filter(o=>o!=null),[...t])}const $o=Object.freeze({x:0,y:0});function V4(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function U4(e,t){const r=bh(e);if(!r)return"0 0";const o={x:(r.x-t.left)/t.width*100,y:(r.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function K4(e,t){let{data:{value:r}}=e,{data:{value:o}}=t;return r-o}function q4(e,t){let{data:{value:r}}=e,{data:{value:o}}=t;return o-r}function Y4(e,t){if(!e||e.length===0)return null;const[r]=e;return t?r[t]:r}function Hx(e,t,r){return t===void 0&&(t=e.left),r===void 0&&(r=e.top),{x:t+e.width*.5,y:r+e.height*.5}}const X4=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:o}=e;const n=Hx(t,t.left,t.top),i=[];for(const a of o){const{id:c}=a,l=r.get(c);if(l){const d=V4(Hx(l),n);i.push({id:c,data:{droppableContainer:a,value:d}})}}return i.sort(K4)};function Q4(e,t){const r=Math.max(t.top,e.top),o=Math.max(t.left,e.left),n=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=n-o,c=i-r;if(o<n&&r<i){const l=t.width*t.height,d=e.width*e.height,s=a*c,u=s/(l+d-s);return Number(u.toFixed(4))}return 0}const Z4=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:o}=e;const n=[];for(const i of o){const{id:a}=i,c=r.get(a);if(c){const l=Q4(c,t);l>0&&n.push({id:a,data:{droppableContainer:i,value:l}})}}return n.sort(q4)};function J4(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function QE(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:$o}function eG(e){return function(r){for(var o=arguments.length,n=new Array(o>1?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];return n.reduce((a,c)=>({...a,top:a.top+e*c.y,bottom:a.bottom+e*c.y,left:a.left+e*c.x,right:a.right+e*c.x}),{...r})}}const tG=eG(1);function ZE(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function rG(e,t,r){const o=ZE(t);if(!o)return e;const{scaleX:n,scaleY:i,x:a,y:c}=o,l=e.left-a-(1-n)*parseFloat(r),d=e.top-c-(1-i)*parseFloat(r.slice(r.indexOf(" ")+1)),s=n?e.width/n:e.width,u=i?e.height/i:e.height;return{width:s,height:u,top:d,right:l+s,bottom:d+u,left:l}}const oG={ignoreTransform:!1};function ns(e,t){t===void 0&&(t=oG);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:s}=to(e).getComputedStyle(e);d&&(r=rG(r,d,s))}const{top:o,left:n,width:i,height:a,bottom:c,right:l}=r;return{top:o,left:n,width:i,height:a,bottom:c,right:l}}function Wx(e){return ns(e,{ignoreTransform:!0})}function nG(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function iG(e,t){return t===void 0&&(t=to(e).getComputedStyle(e)),t.position==="fixed"}function aG(e,t){t===void 0&&(t=to(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(n=>{const i=t[n];return typeof i=="string"?r.test(i):!1})}function yy(e,t){const r=[];function o(n){if(t!=null&&r.length>=t||!n)return r;if(vy(n)&&n.scrollingElement!=null&&!r.includes(n.scrollingElement))return r.push(n.scrollingElement),r;if(!ou(n)||qE(n)||r.includes(n))return r;const i=to(e).getComputedStyle(n);return n!==e&&aG(n,i)&&r.push(n),iG(n,i)?r:o(n.parentNode)}return e?o(e):r}function JE(e){const[t]=yy(e,1);return t??null}function sg(e){return!ru||!e?null:os(e)?e:my(e)?vy(e)||e===Va(e).scrollingElement?window:ou(e)?e:null:null}function eL(e){return os(e)?e.scrollX:e.scrollLeft}function tL(e){return os(e)?e.scrollY:e.scrollTop}function Xm(e){return{x:eL(e),y:tL(e)}}var Dr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Dr||(Dr={}));function rL(e){return!ru||!e?!1:e===document.scrollingElement}function oL(e){const t={x:0,y:0},r=rL(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},n=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=o.y,c=e.scrollLeft>=o.x;return{isTop:n,isLeft:i,isBottom:a,isRight:c,maxScroll:o,minScroll:t}}const lG={x:.2,y:.2};function sG(e,t,r,o,n){let{top:i,left:a,right:c,bottom:l}=r;o===void 0&&(o=10),n===void 0&&(n=lG);const{isTop:d,isBottom:s,isLeft:u,isRight:h}=oL(e),f={x:0,y:0},p={x:0,y:0},g={height:t.height*n.y,width:t.width*n.x};return!d&&i<=t.top+g.height?(f.y=Dr.Backward,p.y=o*Math.abs((t.top+g.height-i)/g.height)):!s&&l>=t.bottom-g.height&&(f.y=Dr.Forward,p.y=o*Math.abs((t.bottom-g.height-l)/g.height)),!h&&c>=t.right-g.width?(f.x=Dr.Forward,p.x=o*Math.abs((t.right-g.width-c)/g.width)):!u&&a<=t.left+g.width&&(f.x=Dr.Backward,p.x=o*Math.abs((t.left+g.width-a)/g.width)),{direction:f,speed:p}}function cG(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:r,right:o,bottom:n}=e.getBoundingClientRect();return{top:t,left:r,right:o,bottom:n,width:e.clientWidth,height:e.clientHeight}}function nL(e){return e.reduce((t,r)=>Ll(t,Xm(r)),$o)}function uG(e){return e.reduce((t,r)=>t+eL(r),0)}function dG(e){return e.reduce((t,r)=>t+tL(r),0)}function iL(e,t){if(t===void 0&&(t=ns),!e)return;const{top:r,left:o,bottom:n,right:i}=t(e);JE(e)&&(n<=0||i<=0||r>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const hG=[["x",["left","right"],uG],["y",["top","bottom"],dG]];class by{constructor(t,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=yy(r),n=nL(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,c]of hG)for(const l of a)Object.defineProperty(this,l,{get:()=>{const d=c(o),s=n[i]-d;return this.rect[l]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}let Js=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...r)})},this.target=t}add(t,r,o){var n;(n=this.target)==null||n.addEventListener(t,r,o),this.listeners.push([t,r,o])}};function fG(e){const{EventTarget:t}=to(e);return e instanceof t?e:Va(e)}function cg(e,t){const r=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+o**2)>t:"x"in t&&"y"in t?r>t.x&&o>t.y:"x"in t?r>t.x:"y"in t?o>t.y:!1}var Ho;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ho||(Ho={}));function Vx(e){e.preventDefault()}function pG(e){e.stopPropagation()}var Je;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Je||(Je={}));const aL={start:[Je.Space,Je.Enter],cancel:[Je.Esc],end:[Je.Space,Je.Enter]},gG=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case Je.Right:return{...r,x:r.x+25};case Je.Left:return{...r,x:r.x-25};case Je.Down:return{...r,y:r.y+25};case Je.Up:return{...r,y:r.y-25}}};let lL=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:r}}=t;this.props=t,this.listeners=new Js(Va(r)),this.windowListeners=new Js(to(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ho.Resize,this.handleCancel),this.windowListeners.add(Ho.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ho.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,o=t.node.current;o&&iL(o),r($o)}handleKeyDown(t){if(au(t)){const{active:r,context:o,options:n}=this.props,{keyboardCodes:i=aL,coordinateGetter:a=gG,scrollBehavior:c="smooth"}=n,{code:l}=t;if(i.end.includes(l)){this.handleEnd(t);return}if(i.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:d}=o.current,s=d?{x:d.left,y:d.top}:$o;this.referenceCoordinates||(this.referenceCoordinates=s);const u=a(t,{active:r,context:o.current,currentCoordinates:s});if(u){const h=Gl(u,s),f={x:0,y:0},{scrollableAncestors:p}=o.current;for(const g of p){const v=t.code,{isTop:m,isRight:y,isLeft:C,isBottom:_,maxScroll:k,minScroll:b}=oL(g),S=cG(g),T={x:Math.min(v===Je.Right?S.right-S.width/2:S.right,Math.max(v===Je.Right?S.left:S.left+S.width/2,u.x)),y:Math.min(v===Je.Down?S.bottom-S.height/2:S.bottom,Math.max(v===Je.Down?S.top:S.top+S.height/2,u.y))},L=v===Je.Right&&!y||v===Je.Left&&!C,I=v===Je.Down&&!_||v===Je.Up&&!m;if(L&&T.x!==u.x){const A=g.scrollLeft+h.x,P=v===Je.Right&&A<=k.x||v===Je.Left&&A>=b.x;if(P&&!h.y){g.scrollTo({left:A,behavior:c});return}P?f.x=g.scrollLeft-A:f.x=v===Je.Right?g.scrollLeft-k.x:g.scrollLeft-b.x,f.x&&g.scrollBy({left:-f.x,behavior:c});break}else if(I&&T.y!==u.y){const A=g.scrollTop+h.y,P=v===Je.Down&&A<=k.y||v===Je.Up&&A>=b.y;if(P&&!h.x){g.scrollTo({top:A,behavior:c});return}P?f.y=g.scrollTop-A:f.y=v===Je.Down?g.scrollTop-k.y:g.scrollTop-b.y,f.y&&g.scrollBy({top:-f.y,behavior:c});break}}this.handleMove(t,Ll(Gl(u,this.referenceCoordinates),f))}}}handleMove(t,r){const{onMove:o}=this.props;t.preventDefault(),o(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};lL.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:o=aL,onActivation:n}=t,{active:i}=r;const{code:a}=e.nativeEvent;if(o.start.includes(a)){const c=i.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),n==null||n({event:e.nativeEvent}),!0)}return!1}}];function Ux(e){return!!(e&&"distance"in e)}function Kx(e){return!!(e&&"delay"in e)}class wy{constructor(t,r,o){var n;o===void 0&&(o=fG(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=r;const{event:i}=t,{target:a}=i;this.props=t,this.events=r,this.document=Va(a),this.documentListeners=new Js(this.document),this.listeners=new Js(o),this.windowListeners=new Js(to(a)),this.initialCoordinates=(n=bh(i))!=null?n:$o,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:r,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Ho.Resize,this.handleCancel),this.windowListeners.add(Ho.DragStart,Vx),this.windowListeners.add(Ho.VisibilityChange,this.handleCancel),this.windowListeners.add(Ho.ContextMenu,Vx),this.documentListeners.add(Ho.Keydown,this.handleKeydown),r){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Kx(r)){this.timeoutId=setTimeout(this.handleStart,r.delay);return}if(Ux(r))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ho.Click,pG,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ho.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:o,initialCoordinates:n,props:i}=this,{onMove:a,options:{activationConstraint:c}}=i;if(!n)return;const l=(r=bh(t))!=null?r:$o,d=Gl(n,l);if(!o&&c){if(Ux(c)){if(c.tolerance!=null&&cg(d,c.tolerance))return this.handleCancel();if(cg(d,c.distance))return this.handleStart()}return Kx(c)&&cg(d,c.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===Je.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const mG={move:{name:"pointermove"},end:{name:"pointerup"}};class xy extends wy{constructor(t){const{event:r}=t,o=Va(r.target);super(t,mG,o)}}xy.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;return!r.isPrimary||r.button!==0?!1:(o==null||o({event:r}),!0)}}];const vG={move:{name:"mousemove"},end:{name:"mouseup"}};var Qm;(function(e){e[e.RightClick=2]="RightClick"})(Qm||(Qm={}));class yG extends wy{constructor(t){super(t,vG,Va(t.event.target))}}yG.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;return r.button===Qm.RightClick?!1:(o==null||o({event:r}),!0)}}];const ug={move:{name:"touchmove"},end:{name:"touchend"}};class bG extends wy{constructor(t){super(t,ug)}static setup(){return window.addEventListener(ug.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(ug.move.name,t)};function t(){}}}bG.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;const{touches:n}=r;return n.length>1?!1:(o==null||o({event:r}),!0)}}];var ec;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ec||(ec={}));var xh;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(xh||(xh={}));function wG(e){let{acceleration:t,activator:r=ec.Pointer,canScroll:o,draggingRect:n,enabled:i,interval:a=5,order:c=xh.TreeOrder,pointerCoordinates:l,scrollableAncestors:d,scrollableAncestorRects:s,delta:u,threshold:h}=e;const f=_G({delta:u,disabled:!i}),[p,g]=D4(),v=B.useRef({x:0,y:0}),m=B.useRef({x:0,y:0}),y=B.useMemo(()=>{switch(r){case ec.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case ec.DraggableRect:return n}},[r,n,l]),C=B.useRef(null),_=B.useCallback(()=>{const b=C.current;if(!b)return;const S=v.current.x*m.current.x,T=v.current.y*m.current.y;b.scrollBy(S,T)},[]),k=B.useMemo(()=>c===xh.TreeOrder?[...d].reverse():d,[c,d]);B.useEffect(()=>{if(!i||!d.length||!y){g();return}for(const b of k){if((o==null?void 0:o(b))===!1)continue;const S=d.indexOf(b),T=s[S];if(!T)continue;const{direction:L,speed:I}=sG(b,T,y,t,h);for(const A of["x","y"])f[A][L[A]]||(I[A]=0,L[A]=0);if(I.x>0||I.y>0){g(),C.current=b,p(_,a),v.current=I,m.current=L;return}}v.current={x:0,y:0},m.current={x:0,y:0},g()},[t,_,o,g,i,a,JSON.stringify(y),JSON.stringify(f),p,d,k,s,JSON.stringify(h)])}const xG={x:{[Dr.Backward]:!1,[Dr.Forward]:!1},y:{[Dr.Backward]:!1,[Dr.Forward]:!1}};function _G(e){let{delta:t,disabled:r}=e;const o=yh(t);return nu(n=>{if(r||!o||!n)return xG;const i={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[Dr.Backward]:n.x[Dr.Backward]||i.x===-1,[Dr.Forward]:n.x[Dr.Forward]||i.x===1},y:{[Dr.Backward]:n.y[Dr.Backward]||i.y===-1,[Dr.Forward]:n.y[Dr.Forward]||i.y===1}}},[r,t,o])}function kG(e,t){const r=t!==null?e.get(t):void 0,o=r?r.node.current:null;return nu(n=>{var i;return t===null?null:(i=o??n)!=null?i:null},[o,t])}function CG(e,t){return B.useMemo(()=>e.reduce((r,o)=>{const{sensor:n}=o,i=n.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,o)}));return[...r,...i]},[]),[e,t])}var Bc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Bc||(Bc={}));var Zm;(function(e){e.Optimized="optimized"})(Zm||(Zm={}));const qx=new Map;function SG(e,t){let{dragging:r,dependencies:o,config:n}=t;const[i,a]=B.useState(null),{frequency:c,measure:l,strategy:d}=n,s=B.useRef(e),u=v(),h=Ac(u),f=B.useCallback(function(m){m===void 0&&(m=[]),!h.current&&a(y=>y===null?m:y.concat(m.filter(C=>!y.includes(C))))},[h]),p=B.useRef(null),g=nu(m=>{if(u&&!r)return qx;if(!m||m===qx||s.current!==e||i!=null){const y=new Map;for(let C of e){if(!C)continue;if(i&&i.length>0&&!i.includes(C.id)&&C.rect.current){y.set(C.id,C.rect.current);continue}const _=C.node.current,k=_?new by(l(_),_):null;C.rect.current=k,k&&y.set(C.id,k)}return y}return m},[e,i,r,u,l]);return B.useEffect(()=>{s.current=e},[e]),B.useEffect(()=>{u||f()},[r,u]),B.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),B.useEffect(()=>{u||typeof c!="number"||p.current!==null||(p.current=setTimeout(()=>{f(),p.current=null},c))},[c,u,f,...o]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:i!=null};function v(){switch(d){case Bc.Always:return!1;case Bc.BeforeDragging:return r;default:return!r}}}function _y(e,t){return nu(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function TG(e,t){return _y(e,t)}function EG(e){let{callback:t,disabled:r}=e;const o=$f(t),n=B.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(o)},[o,r]);return B.useEffect(()=>()=>n==null?void 0:n.disconnect(),[n]),n}function Of(e){let{callback:t,disabled:r}=e;const o=$f(t),n=B.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(o)},[r]);return B.useEffect(()=>()=>n==null?void 0:n.disconnect(),[n]),n}function LG(e){return new by(ns(e),e)}function Yx(e,t,r){t===void 0&&(t=LG);const[o,n]=B.useReducer(c,null),i=EG({callback(l){if(e)for(const d of l){const{type:s,target:u}=d;if(s==="childList"&&u instanceof HTMLElement&&u.contains(e)){n();break}}}}),a=Of({callback:n});return Jo(()=>{n(),e?(a==null||a.observe(e),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),i==null||i.disconnect())},[e]),o;function c(l){if(!e)return null;if(e.isConnected===!1){var d;return(d=l??r)!=null?d:null}const s=t(e);return JSON.stringify(l)===JSON.stringify(s)?l:s}}function AG(e){const t=_y(e);return QE(e,t)}const Xx=[];function BG(e){const t=B.useRef(e),r=nu(o=>e?o&&o!==Xx&&e&&t.current&&e.parentNode===t.current.parentNode?o:yy(e):Xx,[e]);return B.useEffect(()=>{t.current=e},[e]),r}function DG(e){const[t,r]=B.useState(null),o=B.useRef(e),n=B.useCallback(i=>{const a=sg(i.target);a&&r(c=>c?(c.set(a,Xm(a)),new Map(c)):null)},[]);return B.useEffect(()=>{const i=o.current;if(e!==i){a(i);const c=e.map(l=>{const d=sg(l);return d?(d.addEventListener("scroll",n,{passive:!0}),[d,Xm(d)]):null}).filter(l=>l!=null);r(c.length?new Map(c):null),o.current=e}return()=>{a(e),a(i)};function a(c){c.forEach(l=>{const d=sg(l);d==null||d.removeEventListener("scroll",n)})}},[n,e]),B.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>Ll(i,a),$o):nL(e):$o,[e,t])}function Qx(e,t){t===void 0&&(t=[]);const r=B.useRef(null);return B.useEffect(()=>{r.current=null},t),B.useEffect(()=>{const o=e!==$o;o&&!r.current&&(r.current=e),!o&&r.current&&(r.current=null)},[e]),r.current?Gl(e,r.current):$o}function RG(e){B.useEffect(()=>{if(!ru)return;const t=e.map(r=>{let{sensor:o}=r;return o.setup==null?void 0:o.setup()});return()=>{for(const r of t)r==null||r()}},e.map(t=>{let{sensor:r}=t;return r}))}function IG(e,t){return B.useMemo(()=>e.reduce((r,o)=>{let{eventName:n,handler:i}=o;return r[n]=a=>{i(a,t)},r},{}),[e,t])}function sL(e){return B.useMemo(()=>e?nG(e):null,[e])}const dg=[];function PG(e,t){t===void 0&&(t=ns);const[r]=e,o=sL(r?to(r):null),[n,i]=B.useReducer(c,dg),a=Of({callback:i});return e.length>0&&n===dg&&i(),Jo(()=>{e.length?e.forEach(l=>a==null?void 0:a.observe(l)):(a==null||a.disconnect(),i())},[e]),n;function c(){return e.length?e.map(l=>rL(l)?o:new by(t(l),l)):dg}}function cL(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return ou(t)?t:e}function $G(e){let{measure:t}=e;const[r,o]=B.useState(null),n=B.useCallback(d=>{for(const{target:s}of d)if(ou(s)){o(u=>{const h=t(s);return u?{...u,width:h.width,height:h.height}:h});break}},[t]),i=Of({callback:n}),a=B.useCallback(d=>{const s=cL(d);i==null||i.disconnect(),s&&(i==null||i.observe(s)),o(s?t(s):null)},[t,i]),[c,l]=vh(a);return B.useMemo(()=>({nodeRef:c,rect:r,setRef:l}),[r,c,l])}const OG=[{sensor:xy,options:{}},{sensor:lL,options:{}}],MG={current:{}},_d={draggable:{measure:Wx},droppable:{measure:Wx,strategy:Bc.WhileDragging,frequency:Zm.Optimized},dragOverlay:{measure:ns}};class tc extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,o;return(r=(o=this.get(t))==null?void 0:o.node.current)!=null?r:void 0}}const NG={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new tc,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:wh},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:_d,measureDroppableContainers:wh,windowRect:null,measuringScheduled:!1},uL={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:wh,draggableNodes:new Map,over:null,measureDroppableContainers:wh},lu=B.createContext(uL),dL=B.createContext(NG);function jG(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new tc}}}function GG(e,t){switch(t.type){case Cr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Cr.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Cr.DragEnd:case Cr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Cr.RegisterDroppable:{const{element:r}=t,{id:o}=r,n=new tc(e.droppable.containers);return n.set(o,r),{...e,droppable:{...e.droppable,containers:n}}}case Cr.SetDroppableDisabled:{const{id:r,key:o,disabled:n}=t,i=e.droppable.containers.get(r);if(!i||o!==i.key)return e;const a=new tc(e.droppable.containers);return a.set(r,{...i,disabled:n}),{...e,droppable:{...e.droppable,containers:a}}}case Cr.UnregisterDroppable:{const{id:r,key:o}=t,n=e.droppable.containers.get(r);if(!n||o!==n.key)return e;const i=new tc(e.droppable.containers);return i.delete(r),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function zG(e){let{disabled:t}=e;const{active:r,activatorEvent:o,draggableNodes:n}=B.useContext(lu),i=yh(o),a=yh(r==null?void 0:r.id);return B.useEffect(()=>{if(!t&&!o&&i&&a!=null){if(!au(i)||document.activeElement===i.target)return;const c=n.get(a);if(!c)return;const{activatorNode:l,node:d}=c;if(!l.current&&!d.current)return;requestAnimationFrame(()=>{for(const s of[l.current,d.current]){if(!s)continue;const u=P4(s);if(u){u.focus();break}}})}},[o,t,n,a,i]),null}function hL(e,t){let{transform:r,...o}=t;return e!=null&&e.length?e.reduce((n,i)=>i({transform:n,...o}),r):r}function FG(e){return B.useMemo(()=>({draggable:{..._d.draggable,...e==null?void 0:e.draggable},droppable:{..._d.droppable,...e==null?void 0:e.droppable},dragOverlay:{..._d.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function HG(e){let{activeNode:t,measure:r,initialRect:o,config:n=!0}=e;const i=B.useRef(!1),{x:a,y:c}=typeof n=="boolean"?{x:n,y:n}:n;Jo(()=>{if(!a&&!c||!t){i.current=!1;return}if(i.current||!o)return;const d=t==null?void 0:t.node.current;if(!d||d.isConnected===!1)return;const s=r(d),u=QE(s,o);if(a||(u.x=0),c||(u.y=0),i.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){const h=JE(d);h&&h.scrollBy({top:u.y,left:u.x})}},[t,a,c,o,r])}const Mf=B.createContext({...$o,scaleX:1,scaleY:1});var Si;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Si||(Si={}));const WG=B.memo(function(t){var r,o,n,i;let{id:a,accessibility:c,autoScroll:l=!0,children:d,sensors:s=OG,collisionDetection:u=Z4,measuring:h,modifiers:f,...p}=t;const g=B.useReducer(GG,void 0,jG),[v,m]=g,[y,C]=G4(),[_,k]=B.useState(Si.Uninitialized),b=_===Si.Initialized,{draggable:{active:S,nodes:T,translate:L},droppable:{containers:I}}=v,A=S?T.get(S):null,P=B.useRef({initial:null,translated:null}),D=B.useMemo(()=>{var bt;return S!=null?{id:S,data:(bt=A==null?void 0:A.data)!=null?bt:MG,rect:P}:null},[S,A]),E=B.useRef(null),[R,$]=B.useState(null),[N,M]=B.useState(null),O=Ac(p,Object.values(p)),j=iu("DndDescribedBy",a),z=B.useMemo(()=>I.getEnabled(),[I]),F=FG(h),{droppableRects:K,measureDroppableContainers:U,measuringScheduled:Y}=SG(z,{dragging:b,dependencies:[L.x,L.y],config:F.droppable}),V=kG(T,S),q=B.useMemo(()=>N?bh(N):null,[N]),ee=er(),X=TG(V,F.draggable.measure);HG({activeNode:S?T.get(S):null,config:ee.layoutShiftCompensation,initialRect:X,measure:F.draggable.measure});const ie=Yx(V,F.draggable.measure,X),se=Yx(V?V.parentElement:null),me=B.useRef({activatorEvent:null,active:null,activeNode:V,collisionRect:null,collisions:null,droppableRects:K,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ve=I.getNodeFor((r=me.current.over)==null?void 0:r.id),Q=$G({measure:F.dragOverlay.measure}),oe=(o=Q.nodeRef.current)!=null?o:V,Z=b?(n=Q.rect)!=null?n:ie:null,G=!!(Q.nodeRef.current&&Q.rect),H=AG(G?null:ie),te=sL(oe?to(oe):null),ae=BG(b?ve??V:null),le=PG(ae),we=hL(f,{transform:{x:L.x-H.x,y:L.y-H.y,scaleX:1,scaleY:1},activatorEvent:N,active:D,activeNodeRect:ie,containerNodeRect:se,draggingNodeRect:Z,over:me.current.over,overlayNodeRect:Q.rect,scrollableAncestors:ae,scrollableAncestorRects:le,windowRect:te}),ce=q?Ll(q,L):null,ye=DG(ae),Ae=Qx(ye),ne=Qx(ye,[ie]),pe=Ll(we,Ae),ue=Z?tG(Z,we):null,_e=D&&ue?u({active:D,collisionRect:ue,droppableRects:K,droppableContainers:z,pointerCoordinates:ce}):null,Be=Y4(_e,"id"),[Re,qe]=B.useState(null),je=G?we:Ll(we,ne),Ve=J4(je,(i=Re==null?void 0:Re.rect)!=null?i:null,ie),$e=B.useCallback((bt,lt)=>{let{sensor:wt,options:dt}=lt;if(E.current==null)return;const st=T.get(E.current);if(!st)return;const Ht=bt.nativeEvent,mt=new wt({active:E.current,activeNode:st,event:Ht,options:dt,context:me,onStart(Me){const He=E.current;if(He==null)return;const Xe=T.get(He);if(!Xe)return;const{onDragStart:Rt}=O.current,Ee={active:{id:He,data:Xe.data,rect:P}};Uo.unstable_batchedUpdates(()=>{Rt==null||Rt(Ee),k(Si.Initializing),m({type:Cr.DragStart,initialCoordinates:Me,active:He}),y({type:"onDragStart",event:Ee})})},onMove(Me){m({type:Cr.DragMove,coordinates:Me})},onEnd:Lr(Cr.DragEnd),onCancel:Lr(Cr.DragCancel)});Uo.unstable_batchedUpdates(()=>{$(mt),M(bt.nativeEvent)});function Lr(Me){return async function(){const{active:Xe,collisions:Rt,over:Ee,scrollAdjustedTranslate:Oe}=me.current;let Qe=null;if(Xe&&Oe){const{cancelDrop:Qt}=O.current;Qe={activatorEvent:Ht,active:Xe,collisions:Rt,delta:Oe,over:Ee},Me===Cr.DragEnd&&typeof Qt=="function"&&await Promise.resolve(Qt(Qe))&&(Me=Cr.DragCancel)}E.current=null,Uo.unstable_batchedUpdates(()=>{m({type:Me}),k(Si.Uninitialized),qe(null),$(null),M(null);const Qt=Me===Cr.DragEnd?"onDragEnd":"onDragCancel";if(Qe){const wr=O.current[Qt];wr==null||wr(Qe),y({type:Qt,event:Qe})}})}}},[T]),Ke=B.useCallback((bt,lt)=>(wt,dt)=>{const st=wt.nativeEvent,Ht=T.get(dt);if(E.current!==null||!Ht||st.dndKit||st.defaultPrevented)return;const mt={active:Ht};bt(wt,lt.options,mt)===!0&&(st.dndKit={capturedBy:lt.sensor},E.current=dt,$e(wt,lt))},[T,$e]),Ot=CG(s,Ke);RG(s),Jo(()=>{ie&&_===Si.Initializing&&k(Si.Initialized)},[ie,_]),B.useEffect(()=>{const{onDragMove:bt}=O.current,{active:lt,activatorEvent:wt,collisions:dt,over:st}=me.current;if(!lt||!wt)return;const Ht={active:lt,activatorEvent:wt,collisions:dt,delta:{x:pe.x,y:pe.y},over:st};Uo.unstable_batchedUpdates(()=>{bt==null||bt(Ht),y({type:"onDragMove",event:Ht})})},[pe.x,pe.y]),B.useEffect(()=>{const{active:bt,activatorEvent:lt,collisions:wt,droppableContainers:dt,scrollAdjustedTranslate:st}=me.current;if(!bt||E.current==null||!lt||!st)return;const{onDragOver:Ht}=O.current,mt=dt.get(Be),Lr=mt&&mt.rect.current?{id:mt.id,rect:mt.rect.current,data:mt.data,disabled:mt.disabled}:null,Me={active:bt,activatorEvent:lt,collisions:wt,delta:{x:st.x,y:st.y},over:Lr};Uo.unstable_batchedUpdates(()=>{qe(Lr),Ht==null||Ht(Me),y({type:"onDragOver",event:Me})})},[Be]),Jo(()=>{me.current={activatorEvent:N,active:D,activeNode:V,collisionRect:ue,collisions:_e,droppableRects:K,draggableNodes:T,draggingNode:oe,draggingNodeRect:Z,droppableContainers:I,over:Re,scrollableAncestors:ae,scrollAdjustedTranslate:pe},P.current={initial:Z,translated:ue}},[D,V,_e,ue,T,oe,Z,K,I,Re,ae,pe]),wG({...ee,delta:L,draggingRect:ue,pointerCoordinates:ce,scrollableAncestors:ae,scrollableAncestorRects:le});const Ft=B.useMemo(()=>({active:D,activeNode:V,activeNodeRect:ie,activatorEvent:N,collisions:_e,containerNodeRect:se,dragOverlay:Q,draggableNodes:T,droppableContainers:I,droppableRects:K,over:Re,measureDroppableContainers:U,scrollableAncestors:ae,scrollableAncestorRects:le,measuringConfiguration:F,measuringScheduled:Y,windowRect:te}),[D,V,ie,N,_e,se,Q,T,I,K,Re,U,ae,le,F,Y,te]),cr=B.useMemo(()=>({activatorEvent:N,activators:Ot,active:D,activeNodeRect:ie,ariaDescribedById:{draggable:j},dispatch:m,draggableNodes:T,over:Re,measureDroppableContainers:U}),[N,Ot,D,ie,m,j,T,Re,U]);return x.createElement(XE.Provider,{value:C},x.createElement(lu.Provider,{value:cr},x.createElement(dL.Provider,{value:Ft},x.createElement(Mf.Provider,{value:Ve},d)),x.createElement(zG,{disabled:(c==null?void 0:c.restoreFocus)===!1})),x.createElement(H4,{...c,hiddenTextDescribedById:j}));function er(){const bt=(R==null?void 0:R.autoScrollEnabled)===!1,lt=typeof l=="object"?l.enabled===!1:l===!1,wt=b&&!bt&&!lt;return typeof l=="object"?{...l,enabled:wt}:{enabled:wt}}}),VG=B.createContext(null),Zx="button",UG="Droppable";function KG(e){let{id:t,data:r,disabled:o=!1,attributes:n}=e;const i=iu(UG),{activators:a,activatorEvent:c,active:l,activeNodeRect:d,ariaDescribedById:s,draggableNodes:u,over:h}=B.useContext(lu),{role:f=Zx,roleDescription:p="draggable",tabIndex:g=0}=n??{},v=(l==null?void 0:l.id)===t,m=B.useContext(v?Mf:VG),[y,C]=vh(),[_,k]=vh(),b=IG(a,t),S=Ac(r);Jo(()=>(u.set(t,{id:t,key:i,node:y,activatorNode:_,data:S}),()=>{const L=u.get(t);L&&L.key===i&&u.delete(t)}),[u,t]);const T=B.useMemo(()=>({role:f,tabIndex:g,"aria-disabled":o,"aria-pressed":v&&f===Zx?!0:void 0,"aria-roledescription":p,"aria-describedby":s.draggable}),[o,f,g,v,p,s.draggable]);return{active:l,activatorEvent:c,activeNodeRect:d,attributes:T,isDragging:v,listeners:o?void 0:b,node:y,over:h,setNodeRef:C,setActivatorNodeRef:k,transform:m}}function fL(){return B.useContext(dL)}const qG="Droppable",YG={timeout:25};function XG(e){let{data:t,disabled:r=!1,id:o,resizeObserverConfig:n}=e;const i=iu(qG),{active:a,dispatch:c,over:l,measureDroppableContainers:d}=B.useContext(lu),s=B.useRef({disabled:r}),u=B.useRef(!1),h=B.useRef(null),f=B.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:v}={...YG,...n},m=Ac(g??o),y=B.useCallback(()=>{if(!u.current){u.current=!0;return}f.current!=null&&clearTimeout(f.current),f.current=setTimeout(()=>{d(Array.isArray(m.current)?m.current:[m.current]),f.current=null},v)},[v]),C=Of({callback:y,disabled:p||!a}),_=B.useCallback((T,L)=>{C&&(L&&(C.unobserve(L),u.current=!1),T&&C.observe(T))},[C]),[k,b]=vh(_),S=Ac(t);return B.useEffect(()=>{!C||!k.current||(C.disconnect(),u.current=!1,C.observe(k.current))},[k,C]),Jo(()=>(c({type:Cr.RegisterDroppable,element:{id:o,key:i,disabled:r,node:k,rect:h,data:S}}),()=>c({type:Cr.UnregisterDroppable,key:i,id:o})),[o]),B.useEffect(()=>{r!==s.current.disabled&&(c({type:Cr.SetDroppableDisabled,id:o,key:i,disabled:r}),s.current.disabled=r)},[o,i,r,c]),{active:a,rect:h,isOver:(l==null?void 0:l.id)===o,node:k,over:l,setNodeRef:b}}function QG(e){let{animation:t,children:r}=e;const[o,n]=B.useState(null),[i,a]=B.useState(null),c=yh(r);return!r&&!o&&c&&n(c),Jo(()=>{if(!i)return;const l=o==null?void 0:o.key,d=o==null?void 0:o.props.id;if(l==null||d==null){n(null);return}Promise.resolve(t(d,i)).then(()=>{n(null)})},[t,o,i]),x.createElement(x.Fragment,null,r,o?B.cloneElement(o,{ref:a}):null)}const ZG={x:0,y:0,scaleX:1,scaleY:1};function JG(e){let{children:t}=e;return x.createElement(lu.Provider,{value:uL},x.createElement(Mf.Provider,{value:ZG},t))}const e6={position:"fixed",touchAction:"none"},t6=e=>au(e)?"transform 250ms ease":void 0,r6=B.forwardRef((e,t)=>{let{as:r,activatorEvent:o,adjustScale:n,children:i,className:a,rect:c,style:l,transform:d,transition:s=t6}=e;if(!c)return null;const u=n?d:{...d,scaleX:1,scaleY:1},h={...e6,width:c.width,height:c.height,top:c.top,left:c.left,transform:Yi.Transform.toString(u),transformOrigin:n&&o?U4(o,c):void 0,transition:typeof s=="function"?s(o):s,...l};return x.createElement(r,{className:a,style:h,ref:t},i)}),o6=e=>t=>{let{active:r,dragOverlay:o}=t;const n={},{styles:i,className:a}=e;if(i!=null&&i.active)for(const[c,l]of Object.entries(i.active))l!==void 0&&(n[c]=r.node.style.getPropertyValue(c),r.node.style.setProperty(c,l));if(i!=null&&i.dragOverlay)for(const[c,l]of Object.entries(i.dragOverlay))l!==void 0&&o.node.style.setProperty(c,l);return a!=null&&a.active&&r.node.classList.add(a.active),a!=null&&a.dragOverlay&&o.node.classList.add(a.dragOverlay),function(){for(const[l,d]of Object.entries(n))r.node.style.setProperty(l,d);a!=null&&a.active&&r.node.classList.remove(a.active)}},n6=e=>{let{transform:{initial:t,final:r}}=e;return[{transform:Yi.Transform.toString(t)},{transform:Yi.Transform.toString(r)}]},i6={duration:250,easing:"ease",keyframes:n6,sideEffects:o6({styles:{active:{opacity:"0"}}})};function a6(e){let{config:t,draggableNodes:r,droppableContainers:o,measuringConfiguration:n}=e;return $f((i,a)=>{if(t===null)return;const c=r.get(i);if(!c)return;const l=c.node.current;if(!l)return;const d=cL(a);if(!d)return;const{transform:s}=to(a).getComputedStyle(a),u=ZE(s);if(!u)return;const h=typeof t=="function"?t:l6(t);return iL(l,n.draggable.measure),h({active:{id:i,data:c.data,node:l,rect:n.draggable.measure(l)},draggableNodes:r,dragOverlay:{node:a,rect:n.dragOverlay.measure(d)},droppableContainers:o,measuringConfiguration:n,transform:u})})}function l6(e){const{duration:t,easing:r,sideEffects:o,keyframes:n}={...i6,...e};return i=>{let{active:a,dragOverlay:c,transform:l,...d}=i;if(!t)return;const s={x:c.rect.left-a.rect.left,y:c.rect.top-a.rect.top},u={scaleX:l.scaleX!==1?a.rect.width*l.scaleX/c.rect.width:1,scaleY:l.scaleY!==1?a.rect.height*l.scaleY/c.rect.height:1},h={x:l.x-s.x,y:l.y-s.y,...u},f=n({...d,active:a,dragOverlay:c,transform:{initial:l,final:h}}),[p]=f,g=f[f.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const v=o==null?void 0:o({active:a,dragOverlay:c,...d}),m=c.node.animate(f,{duration:t,easing:r,fill:"forwards"});return new Promise(y=>{m.onfinish=()=>{v==null||v(),y()}})}}let Jx=0;function s6(e){return B.useMemo(()=>{if(e!=null)return Jx++,Jx},[e])}const c6=x.memo(e=>{let{adjustScale:t=!1,children:r,dropAnimation:o,style:n,transition:i,modifiers:a,wrapperElement:c="div",className:l,zIndex:d=999}=e;const{activatorEvent:s,active:u,activeNodeRect:h,containerNodeRect:f,draggableNodes:p,droppableContainers:g,dragOverlay:v,over:m,measuringConfiguration:y,scrollableAncestors:C,scrollableAncestorRects:_,windowRect:k}=fL(),b=B.useContext(Mf),S=s6(u==null?void 0:u.id),T=hL(a,{activatorEvent:s,active:u,activeNodeRect:h,containerNodeRect:f,draggingNodeRect:v.rect,over:m,overlayNodeRect:v.rect,scrollableAncestors:C,scrollableAncestorRects:_,transform:b,windowRect:k}),L=_y(h),I=a6({config:o,draggableNodes:p,droppableContainers:g,measuringConfiguration:y}),A=L?v.setRef:void 0;return x.createElement(JG,null,x.createElement(QG,{animation:I},u&&S?x.createElement(r6,{key:S,id:u.id,ref:A,as:c,activatorEvent:s,adjustScale:t,className:l,transition:i,rect:L,style:{zIndex:d,...n},transform:T},r):null))});function ky(e,t,r){const o=e.slice();return o.splice(r<0?o.length+r:r,0,o.splice(t,1)[0]),o}function u6(e,t){return e.reduce((r,o,n)=>{const i=t.get(o);return i&&(r[n]=i),r},Array(e.length))}function Zu(e){return e!==null&&e>=0}function d6(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function h6(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const pL=e=>{let{rects:t,activeIndex:r,overIndex:o,index:n}=e;const i=ky(t,o,r),a=t[n],c=i[n];return!c||!a?null:{x:c.left-a.left,y:c.top-a.top,scaleX:c.width/a.width,scaleY:c.height/a.height}},Ju={scaleX:1,scaleY:1},f6=e=>{var t;let{activeIndex:r,activeNodeRect:o,index:n,rects:i,overIndex:a}=e;const c=(t=i[r])!=null?t:o;if(!c)return null;if(n===r){const d=i[a];return d?{x:0,y:r<a?d.top+d.height-(c.top+c.height):d.top-c.top,...Ju}:null}const l=p6(i,n,r);return n>r&&n<=a?{x:0,y:-c.height-l,...Ju}:n<r&&n>=a?{x:0,y:c.height+l,...Ju}:{x:0,y:0,...Ju}};function p6(e,t,r){const o=e[t],n=e[t-1],i=e[t+1];return o?r<t?n?o.top-(n.top+n.height):i?i.top-(o.top+o.height):0:i?i.top-(o.top+o.height):n?o.top-(n.top+n.height):0:0}const gL="Sortable",mL=x.createContext({activeIndex:-1,containerId:gL,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:pL,disabled:{draggable:!1,droppable:!1}});function g6(e){let{children:t,id:r,items:o,strategy:n=pL,disabled:i=!1}=e;const{active:a,dragOverlay:c,droppableRects:l,over:d,measureDroppableContainers:s}=fL(),u=iu(gL,r),h=c.rect!==null,f=B.useMemo(()=>o.map(b=>typeof b=="object"&&"id"in b?b.id:b),[o]),p=a!=null,g=a?f.indexOf(a.id):-1,v=d?f.indexOf(d.id):-1,m=B.useRef(f),y=!d6(f,m.current),C=v!==-1&&g===-1||y,_=h6(i);Jo(()=>{y&&p&&s(f)},[y,f,p,s]),B.useEffect(()=>{m.current=f},[f]);const k=B.useMemo(()=>({activeIndex:g,containerId:u,disabled:_,disableTransforms:C,items:f,overIndex:v,useDragOverlay:h,sortedRects:u6(f,l),strategy:n}),[g,u,_.draggable,_.droppable,C,f,v,l,h,n]);return x.createElement(mL.Provider,{value:k},t)}const m6=e=>{let{id:t,items:r,activeIndex:o,overIndex:n}=e;return ky(r,o,n).indexOf(t)},v6=e=>{let{containerId:t,isSorting:r,wasDragging:o,index:n,items:i,newIndex:a,previousItems:c,previousContainerId:l,transition:d}=e;return!d||!o||c!==i&&n===a?!1:r?!0:a!==n&&t===l},y6={duration:200,easing:"ease"},vL="transform",b6=Yi.Transition.toString({property:vL,duration:0,easing:"linear"}),w6={roleDescription:"sortable"};function x6(e){let{disabled:t,index:r,node:o,rect:n}=e;const[i,a]=B.useState(null),c=B.useRef(r);return Jo(()=>{if(!t&&r!==c.current&&o.current){const l=n.current;if(l){const d=ns(o.current,{ignoreTransform:!0}),s={x:l.left-d.left,y:l.top-d.top,scaleX:l.width/d.width,scaleY:l.height/d.height};(s.x||s.y)&&a(s)}}r!==c.current&&(c.current=r)},[t,r,o,n]),B.useEffect(()=>{i&&a(null)},[i]),i}function _6(e){let{animateLayoutChanges:t=v6,attributes:r,disabled:o,data:n,getNewIndex:i=m6,id:a,strategy:c,resizeObserverConfig:l,transition:d=y6}=e;const{items:s,containerId:u,activeIndex:h,disabled:f,disableTransforms:p,sortedRects:g,overIndex:v,useDragOverlay:m,strategy:y}=B.useContext(mL),C=k6(o,f),_=s.indexOf(a),k=B.useMemo(()=>({sortable:{containerId:u,index:_,items:s},...n}),[u,n,_,s]),b=B.useMemo(()=>s.slice(s.indexOf(a)),[s,a]),{rect:S,node:T,isOver:L,setNodeRef:I}=XG({id:a,data:k,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:b,...l}}),{active:A,activatorEvent:P,activeNodeRect:D,attributes:E,setNodeRef:R,listeners:$,isDragging:N,over:M,setActivatorNodeRef:O,transform:j}=KG({id:a,data:k,attributes:{...w6,...r},disabled:C.draggable}),z=B4(I,R),F=!!A,K=F&&!p&&Zu(h)&&Zu(v),U=!m&&N,Y=U&&K?j:null,q=K?Y??(c??y)({rects:g,activeNodeRect:D,activeIndex:h,overIndex:v,index:_}):null,ee=Zu(h)&&Zu(v)?i({id:a,items:s,activeIndex:h,overIndex:v}):_,X=A==null?void 0:A.id,ie=B.useRef({activeId:X,items:s,newIndex:ee,containerId:u}),se=s!==ie.current.items,me=t({active:A,containerId:u,isDragging:N,isSorting:F,id:a,index:_,items:s,newIndex:ie.current.newIndex,previousItems:ie.current.items,previousContainerId:ie.current.containerId,transition:d,wasDragging:ie.current.activeId!=null}),ve=x6({disabled:!me,index:_,node:T,rect:S});return B.useEffect(()=>{F&&ie.current.newIndex!==ee&&(ie.current.newIndex=ee),u!==ie.current.containerId&&(ie.current.containerId=u),s!==ie.current.items&&(ie.current.items=s)},[F,ee,u,s]),B.useEffect(()=>{if(X===ie.current.activeId)return;if(X&&!ie.current.activeId){ie.current.activeId=X;return}const oe=setTimeout(()=>{ie.current.activeId=X},50);return()=>clearTimeout(oe)},[X]),{active:A,activeIndex:h,attributes:E,data:k,rect:S,index:_,newIndex:ee,items:s,isOver:L,isSorting:F,isDragging:N,listeners:$,node:T,overIndex:v,over:M,setNodeRef:z,setActivatorNodeRef:O,setDroppableNodeRef:I,setDraggableNodeRef:R,transform:ve??q,transition:Q()};function Q(){if(ve||se&&ie.current.newIndex===_)return b6;if(!(U&&!au(P)||!d)&&(F||me))return Yi.Transition.toString({...d,property:vL})}}function k6(e,t){var r,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(o=e==null?void 0:e.droppable)!=null?o:t.droppable}}function e_(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}Je.Down,Je.Right,Je.Up,Je.Left;const yL={handle:"awsui_handle_iykw5_1lvye_99","hide-focus":"awsui_hide-focus_iykw5_1lvye_113"};function C6(e){return x.createElement("div",Object.assign({role:"button",tabIndex:0},e,{onPointerDown:e.onPointerDown,className:W(yL.handle,e.className)}))}const S6={handle:"awsui_handle_sdha6_1v8zk_5"};function T6({attributes:e,hideFocus:t,listeners:r}){return x.createElement(C6,Object.assign({className:W(S6.handle,t&&yL["hide-focus"])},e,r),x.createElement(ze,{name:"drag-indicator"}))}const bL="content-display-option",kd=e=>Yt[[bL,e].filter(Boolean).join("-")],E6=B.forwardRef(({dragHandleAriaLabel:e,listeners:t,onToggle:r,option:o},n)=>{const a=`${De(bL)}-control-${o.id}`,c={"aria-label":[e,o.label].join(", ")};return x.createElement("div",{ref:n,className:kd("content")},x.createElement(T6,{attributes:c,listeners:t}),x.createElement("label",{className:kd("label"),htmlFor:a},o.label),x.createElement("div",{className:kd("toggle")},x.createElement(KE,{checked:!!o.visible,onChange:()=>r&&r(o),disabled:o.alwaysVisible===!0,controlId:a})))}),wL=E6;function L6({dragHandleAriaLabel:e,onKeyDown:t,onToggle:r,option:o}){const{isDragging:n,isSorting:i,listeners:a,setNodeRef:c,transform:l}=_6({id:o.id}),d={transform:Yi.Translate.toString(l)},s=Object.assign(Object.assign({},a),{onKeyDown:u=>{t&&t(u),a!=null&&a.onKeyDown&&a.onKeyDown(u)}});return x.createElement("li",{className:W(kd(),n&&Yt.placeholder,i&&Yt.sorting),style:d},x.createElement(wL,{ref:c,listeners:s,dragHandleAriaLabel:e,onToggle:r,option:o}))}function A6(e){return!ru||!e?!1:e===document.scrollingElement}function B6(e){const t={x:0,y:0},r=A6(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},n=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=o.y,c=e.scrollLeft>=o.x;return{isTop:n,isLeft:i,isBottom:a,isRight:c,maxScroll:o,minScroll:t}}function D6(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:r,right:o,bottom:n}=e.getBoundingClientRect();return{top:t,left:r,right:o,bottom:n,width:e.clientWidth,height:e.clientHeight}}function R6({currentCoordinates:e,direction:t,newCoordinates:r,scrollableAncestors:o}){for(const n of o){const i=Gl(r,e),{isTop:a,isBottom:c,maxScroll:l,minScroll:d}=B6(n),s=D6(n),u={y:Math.min(t===Je.Down?s.bottom-s.height/2:s.bottom,Math.max(t===Je.Down?s.top:s.top+s.height/2,r.y))};if((t===Je.Down&&!c||t===Je.Up&&!a)&&u.y!==r.y){const f=n.scrollTop+i.y;if(t===Je.Down&&f<=l.y||t===Je.Up&&f>=d.y)return n.scrollTo({top:f,behavior:"smooth"}),!0;break}}return!1}var Ti;(function(e){e.Blur="blur",e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ti||(Ti={}));class t_{constructor(t){this.target=t,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var o;return(o=this.target)===null||o===void 0?void 0:o.removeEventListener(...r)})}}add(t,r,o){var n;(n=this.target)===null||n===void 0||n.addEventListener(t,r,o),this.listeners.push([t,r,o])}}const xL={start:[Je.Space,Je.Enter],cancel:[Je.Esc],end:[Je.Space,Je.Enter]};class _L{constructor(t){this.props=t,this.autoScrollEnabled=!1;const{event:{target:r}}=t;this.props=t,this.listeners=new t_(Va(r)),this.windowListeners=new t_(to(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){var t;this.handleStart(),this.windowListeners.add(Ti.Resize,this.handleCancel),this.windowListeners.add(Ti.VisibilityChange,this.handleCancel),(t=this.props.event.target)===null||t===void 0||t.addEventListener(Ti.Blur,this.handleCancel),setTimeout(()=>this.listeners.add(Ti.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,o=t.node.current;o&&Uc(o),r($o)}handleKeyDown(t){if(au(t)){const{active:r,context:o,options:n}=this.props,{keyboardCodes:i=xL,coordinateGetter:a}=n,{code:c}=t;if(i.end.indexOf(c)!==-1){this.handleEnd(t);return}if(i.cancel.indexOf(c)!==-1){this.handleCancel(t);return}const{collisionRect:l}=o.current,d=l?{x:l.left,y:l.top}:$o;if(this.referenceCoordinates||(this.referenceCoordinates=d),!a)return;const s=a(t,{active:r,context:o.current,currentCoordinates:d});if(s){const{scrollableAncestors:u}=o.current,h=t.code;R6({currentCoordinates:d,direction:h,newCoordinates:s,scrollableAncestors:u})||this.handleMove(t,Gl(s,this.referenceCoordinates))}}}handleMove(t,r){const{onMove:o}=this.props;t.preventDefault(),o(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.type!==Ti.Blur&&t.preventDefault(),this.detach(),r()}detach(){var t;(t=this.props.event.target)===null||t===void 0||t.removeEventListener(Ti.Blur,this.handleCancel),this.listeners.removeAll(),this.windowListeners.removeAll()}}_L.activators=[{eventName:"onKeyDown",handler:(e,{keyboardCodes:t=xL,onActivation:r},{active:o})=>{const{code:n}=e.nativeEvent;if(t.start.indexOf(n)!==-1){const i=o.activatorNode.current;return i&&e.target!==i?!1:(e.preventDefault(),r==null||r({event:e.nativeEvent}),!0)}return!1}}];var _h;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(_h||(_h={}));function I6({sortedOptions:e}){const t=B.useRef(!1),r=B.useRef(0),[o,n]=B.useState(null),i=u=>{n(u),u||(t.current=!1,r.current=0)},a=u=>{if(t.current&&o){const h=e.findIndex(({id:f})=>f===o)+r.current;u.key==="ArrowDown"&&h<e.length-1?r.current+=1:u.key==="ArrowUp"&&h>0&&(r.current-=1)}o&&O6(u.key)&&u.stopPropagation()},c=u=>{if(r.current===0)return u.id;const h=e.findIndex(({id:p})=>p===u.id),f=Math.max(0,Math.min(e.length-1,h+r.current));return e[f].id},l=({active:u,collisionRect:h,droppableContainers:f,droppableRects:p,pointerCoordinates:g})=>{if(t.current){const v=$6({activeId:u.id,closestId:c(u),droppableContainers:f});return v?[v]:[]}else return X4({active:u,collisionRect:h,droppableRects:p,droppableContainers:f,pointerCoordinates:g})},d=(u,{context:{active:h,collisionRect:f,droppableRects:p,droppableContainers:g}})=>{if(u.code===_h.Up||u.code===_h.Down){if(u.preventDefault(),!h||!f)return;const v=c(h);if(v!==null){const m=g.get(h.id),y=g.get(v),C=y?p.get(y.id):null;if((y==null?void 0:y.node.current)&&C&&m&&y){const k=P6(m,y),b={x:k?f.width-C.width:0,y:k?f.height-C.height:0},S={x:C.left,y:C.top};return{x:S.x-b.x,y:S.y-b.y}}}}},s=W4(Fx(xy),Fx(_L,{coordinateGetter:d,onActivation:()=>{t.current=!0}}));return{activeItem:o,collisionDetection:l,coordinateGetter:d,handleKeyDown:a,sensors:s,setActiveItem:i}}function P6(e,t){return e_(e)&&e_(t)&&e.data.current.sortable.index<t.data.current.sortable.index}function $6({activeId:e,closestId:t,droppableContainers:r}){if(t===e)return;const o=r.find(({id:n})=>n===t);if(o)return{id:o.id,data:{droppableContainer:o,value:0}}}const O6=e=>e==="Escape"||e==="Esc";function M6({isDragging:e,liveAnnouncementDndStarted:t,liveAnnouncementDndItemReordered:r,liveAnnouncementDndItemCommitted:o,liveAnnouncementDndDiscarded:n,sortedOptions:i}){const a=B.useRef(!0);return e||(a.current=!0),{onDragStart({active:c}){if(c&&t){const l=i.findIndex(d=>d.id===c.id);return t(l+1,i.length)}},onDragOver({active:c,over:l}){if(r){if(a.current&&(a.current=!1,!l||l.id===c.id))return;const d=i.findIndex(u=>u.id===c.id),s=l?i.findIndex(u=>u.id===l.id):d;return r(d+1,s+1,i.length)}},onDragEnd({active:c,over:l}){if(o){const d=i.findIndex(u=>u.id===c.id),s=l?i.findIndex(u=>u.id===l.id):d;return o(d+1,s+1,i.length)}},onDragCancel(){return n}}}const Jm="content-display",hg=e=>Yt[`${Jm}-${e}`];function N6({title:e,description:t,options:r,value:o=r.map(({id:u})=>({id:u,visible:!0})),onChange:n,liveAnnouncementDndStarted:i,liveAnnouncementDndItemReordered:a,liveAnnouncementDndItemCommitted:c,liveAnnouncementDndDiscarded:l,dragHandleAriaDescription:d,dragHandleAriaLabel:s}){const u=De(Jm),h=it("collection-preferences"),f=L=>{n(o.map(I=>I.id===L.id?Object.assign(Object.assign({},I),{visible:!L.visible}):I))},p=`${u}-title`,g=`${u}-description`,v=A4({options:r,contentDisplay:o}),{activeItem:m,collisionDetection:y,handleKeyDown:C,sensors:_,setActiveItem:k}=I6({sortedOptions:v}),b=m?v.find(({id:L})=>L===m):null,S=M6({isDragging:m!==null,liveAnnouncementDndStarted:h("contentDisplayPreference.liveAnnouncementDndStarted",i,L=>(I,A)=>L({position:I,total:A})),liveAnnouncementDndItemReordered:h("contentDisplayPreference.liveAnnouncementDndItemReordered",a,L=>(I,A,P)=>L({currentPosition:A,total:P,isInitialPosition:`${I===A}`})),liveAnnouncementDndItemCommitted:h("contentDisplayPreference.liveAnnouncementDndItemCommitted",c,L=>(I,A,P)=>L({initialPosition:I,finalPosition:A,total:P,isInitialPosition:`${I===A}`})),liveAnnouncementDndDiscarded:h("contentDisplayPreference.liveAnnouncementDndDiscarded",l),sortedOptions:o}),T=h("contentDisplayPreference.dragHandleAriaDescription",d);return x.createElement("div",{className:Yt[Jm]},x.createElement("h3",{className:hg("title"),id:p},h("contentDisplayPreference.title",e)),x.createElement("p",{className:hg("description"),id:g},h("contentDisplayPreference.description",t)),x.createElement(WG,{sensors:_,collisionDetection:y,accessibility:{announcements:S,restoreFocus:!1,screenReaderInstructions:T?{draggable:T}:void 0},onDragStart:({active:L})=>k(L.id),onDragEnd:L=>{k(null);const{active:I,over:A}=L;if(A&&I.id!==A.id){const P=o.findIndex(({id:E})=>E===I.id),D=o.findIndex(({id:E})=>E===A.id);n(ky([...o],P,D))}},onDragCancel:()=>k(null)},x.createElement("ul",{className:hg("option-list"),"aria-describedby":g,"aria-labelledby":p,role:"list"},x.createElement(g6,{items:v.map(({id:L})=>L),strategy:f6},v.map(L=>x.createElement(L6,{dragHandleAriaLabel:h("contentDisplayPreference.dragHandleAriaLabel",s),key:L.id,onKeyDown:C,onToggle:f,option:L})))),x.createElement(Wa,null,x.createElement(c6,{className:Yt["drag-overlay"],dropAnimation:null,style:{zIndex:5e3}},b&&x.createElement(wL,{listeners:{onKeyDown:C},dragHandleAriaLabel:h("contentDisplayPreference.dragHandleAriaLabel",s),onToggle:f,option:b})))))}const kL="CollectionPreferences";function su(e){var{title:t,confirmLabel:r,cancelLabel:o,disabled:n=!1,onConfirm:i,onCancel:a,visibleContentPreference:c,contentDisplayPreference:l,pageSizePreference:d,wrapLinesPreference:s,stripedRowsPreference:u,contentDensityPreference:h,stickyColumnsPreference:f,preferences:p,customPreference:g}=e,v=de(e,["title","confirmLabel","cancelLabel","disabled","onConfirm","onCancel","visibleContentPreference","contentDisplayPreference","pageSizePreference","wrapLinesPreference","stripedRowsPreference","contentDensityPreference","stickyColumnsPreference","preferences","customPreference"]);const{__internalRootRef:m}=ut("CollectionPreferences"),y=it("collection-preferences"),C=Ie(v),[_,k]=B.useState(!1),[b,S]=B.useState(ag(p||{})),T=B.useRef(null),L=B.useRef(!1);B.useEffect(()=>{_?L.current=!0:L.current&&T.current&&T.current.focus()},[_]);const I=()=>{k(!1),xe(i,b)},A=()=>{xe(a,{}),k(!1),S(ag(p||{}))},P=!!(d||s||u||h||f||g),D=!!(c||l),E=R=>S(b4(R,b));return c&&l&&void 0,x.createElement("div",Object.assign({},C,{className:W(C.className,Yt.root),ref:m}),x.createElement(pt,{ref:T,className:Yt["trigger-button"],disabled:n,ariaLabel:y("title",t),onClick:()=>{S(ag(p||{})),k(!0)},variant:"icon",iconName:"settings",formAction:"none"}),!n&&_&&x.createElement(gy,{className:Yt["modal-root"],visible:!0,header:y("title",t),footer:x.createElement(xn,{float:"right"},x.createElement(li,{direction:"horizontal",size:"xs"},x.createElement(pt,{className:Yt["cancel-button"],variant:"link",formAction:"none",onClick:A},y("cancelLabel",o)),x.createElement(pt,{className:Yt["confirm-button"],variant:"primary",formAction:"none",onClick:I},y("confirmLabel",r)))),closeAriaLabel:o,size:P&&D?"large":"medium",onDismiss:A},x.createElement(w4,{left:P&&x.createElement(li,{size:"l"},d&&x.createElement(x4,Object.assign({value:b.pageSize},d,{onChange:R=>E({pageSize:R})})),s&&x.createElement(_4,Object.assign({value:b.wrapLines},s,{onChange:R=>E({wrapLines:R})})),u&&x.createElement(k4,Object.assign({value:b.stripedRows},u,{onChange:R=>E({stripedRows:R})})),h&&x.createElement(C4,Object.assign({value:b.contentDensity},h,{onChange:R=>E({contentDensity:R})})),f&&x.createElement(S4,Object.assign({value:b.stickyColumns},f,{onChange:R=>E({stickyColumns:R})})),g&&x.createElement(T4,{value:b.custom,customPreference:g,onChange:R=>E({custom:R})})),right:l?x.createElement(N6,Object.assign({},l,{value:b.contentDisplay,onChange:R=>E({contentDisplay:R})})):c&&x.createElement(L4,Object.assign({value:b.visibleContent},c,{onChange:R=>E({visibleContent:R})}))})))}at(su,kL);function Er(e){var{columns:t=1,variant:r="default",borders:o="none",disableGutters:n=!1}=e,i=de(e,["columns","variant","borders","disableGutters"]);const a=ut("ColumnLayout",{props:{borders:o,columns:t,disableGutters:n,minColumnWidth:i.minColumnWidth,variant:r}}),c=Pf(i);return x.createElement(If,Object.assign({columns:t,variant:r,borders:o,disableGutters:n},c,a))}at(Er,"ColumnLayout");function Fe(e){var{variant:t="default",disableHeaderPaddings:r=!1,disableContentPaddings:o=!1,fitHeight:n=!1}=e,i=de(e,["variant","disableHeaderPaddings","disableContentPaddings","fitHeight"]);const a=ut("Container",{props:{disableContentPaddings:o,disableHeaderPaddings:r,fitHeight:n,variant:t}}),c=Pf(i);return x.createElement(sy,null,x.createElement(hE,Object.assign({variant:t,disableContentPaddings:o,disableHeaderPaddings:r,fitHeight:n},i,c,a)))}at(Fe,"Container");const mi={layout:"awsui_layout_5gtk3_t7p7d_105","is-visual-refresh":"awsui_is-visual-refresh_5gtk3_t7p7d_105",background:"awsui_background_5gtk3_t7p7d_108",header:"awsui_header_5gtk3_t7p7d_111","is-overlap-disabled":"awsui_is-overlap-disabled_5gtk3_t7p7d_127",content:"awsui_content_5gtk3_t7p7d_135","has-header":"awsui_has-header_5gtk3_t7p7d_139"};function CL(e){var{children:t,disableOverlap:r,header:o,__internalRootRef:n}=e,i=de(e,["children","disableOverlap","header","__internalRootRef"]);const a=Ie(i),c=kn(),l=Bf(),d=!t||r;return x.createElement("div",Object.assign({},a,{className:W(a.className,mi.layout,{[mi["is-overlap-disabled"]]:d,[mi["is-visual-refresh"]]:c,[mi["has-header"]]:!!o}),ref:n}),x.createElement("div",{className:W(mi.background,{[mi["is-overlap-disabled"]]:d},_n()),ref:l}),o&&x.createElement("div",{className:W(mi.header,_n())},o),x.createElement("div",{className:mi.content},t))}function so(e){const t=ut("ContentLayout",{props:{disableOverlap:e.disableOverlap}});return x.createElement(CL,Object.assign({},e,t))}at(so,"ContentLayout");const SL=x.forwardRef(j6);function j6(e,t){var{position:r="right",size:o="medium",fixedWidth:n=!1,triggerType:i="text",dismissButton:a=!0,children:c,header:l,content:d,triggerAriaLabel:s,renderWithPortal:u=!1,__onOpen:h,__internalRootRef:f=null}=e,p=de(e,["position","size","fixedWidth","triggerType","dismissButton","children","header","content","triggerAriaLabel","renderWithPortal","__onOpen","__internalRootRef"]);const g=Ie(p),v=B.useRef(null),m=B.useRef(null),y=B.useRef(null),_=it("popover")("dismissAriaLabel",p.dismissAriaLabel),[k,b]=B.useState(!1),S=B.useCallback(()=>{var N,M;i==="text"?(N=v.current)===null||N===void 0||N.focus():v.current&&((M=Ma(v.current))===null||M===void 0||M.focus())},[i]),T=B.useCallback(()=>{xe(h),b(!0)},[h]),L=B.useCallback(()=>{b(!1),S()},[S]),I=B.useCallback(N=>{const M=N.keyCode===ke.escape,O=N.keyCode===ke.tab;M&&k&&N.stopPropagation(),(O||M)&&b(!1)},[k]);B.useImperativeHandle(t,()=>({dismissPopover:L})),B.useEffect(()=>{if(!v.current)return;const N=v.current.ownerDocument,M=()=>{y.current===null&&b(!1)};return N.addEventListener("mousedown",M,!1),()=>{N.removeEventListener("mousedown",M,!1)}},[]);const A=yf(v),P={ref:v,onClick:T,onKeyDown:I,className:W(Ct.trigger,Ct[`trigger-type-${i}`])},{tabIndex:D}=Cn(v),E=De(),R=x.createElement("div",{"aria-live":a?void 0:"polite","aria-atomic":a?void 0:!0,className:W(A,Ct["popover-content"]),"data-awsui-referrer-id":E},k&&x.createElement(gf,{size:o,fixedWidth:n,position:r,trackRef:v,arrow:N=>x.createElement(J0,{position:N}),renderWithPortal:u,zIndex:u?7e3:void 0},x.createElement(Jl.Provider,{value:{defaultVariant:"primary"}},x.createElement(mf,{dismissButton:a,dismissAriaLabel:_,header:l,onDismiss:L,overflowVisible:"both"},d)))),$=Lt(m,f);return x.createElement("span",Object.assign({},g,{className:W(Ct.root,g.className),ref:$,onMouseDown:()=>{y.current=requestAnimationFrame(()=>{y.current=null})}}),i==="text"?x.createElement("button",Object.assign({},P,{tabIndex:D,type:"button","aria-haspopup":"dialog",id:E,"aria-label":s}),x.createElement("span",{className:Ct["trigger-inner-text"]},c)):x.createElement("span",Object.assign({},P,{id:E}),c),x.createElement(HE,null,u?x.createElement(Wa,null,R):R))}const fg={root:"awsui_root_5a145_jw759_9","inline-container":"awsui_inline-container_5a145_jw759_13","inline-container-trigger":"awsui_inline-container-trigger_5a145_jw759_16"},r_={root:"awsui_root_ljpwc_1spew_5","text-to-copy":"awsui_text-to-copy_ljpwc_1spew_9"};function pr(e){var{variant:t="button",copyButtonAriaLabel:r,copyButtonText:o,copySuccessText:n,copyErrorText:i,textToCopy:a}=e,c=de(e,["variant","copyButtonAriaLabel","copyButtonText","copySuccessText","copyErrorText","textToCopy"]);const{__internalRootRef:l}=ut("CopyToClipboard",{props:{variant:t}}),d=Ie(c),s=t==="button"?{children:o,ariaLabel:r}:{ariaLabel:r??o},[u,h]=B.useState("pending"),[f,p]=B.useState(""),g=()=>{navigator.clipboard&&(h("pending"),p(""),navigator.clipboard.writeText(a).then(()=>{h("success"),p(n)}).catch(()=>{h("error"),p(i)}))},v={button:"normal",icon:"icon",inline:"inline-icon"}[t],m=x.createElement(SL,{size:"medium",position:"top",triggerType:"custom",dismissButton:!1,renderWithPortal:!0,content:x.createElement(Ec,{type:u},f)},x.createElement(wn,Object.assign({},s,{iconName:"copy",onClick:g,variant:v,wrapText:!1,formAction:"none"})));return x.createElement("span",Object.assign({ref:l},d,{className:W(d.className,fg.root,r_.root)}),t==="inline"?x.createElement("span",{className:fg["inline-container"]},x.createElement("span",{className:fg["inline-container-trigger"]},m),x.createElement("span",{className:r_["text-to-copy"]},a)):m)}at(pr,"CopyToClipboard");const G6=e=>e>7&&e<47&&e!==ke.space,z6=(e,t)=>e||t,F6=(e,t,r)=>G6(e)||z6(t,r),H6=e=>!isNaN(parseInt(e,10)),W6=(e,t,r,o)=>{if(r!==o)return o===e.length?{value:e.slice(0,r),position:r}:t.replaceDigitsWithZeroes(e,r,o);const i=t.isSegmentStart(r);return r===e.length?i?{value:e.slice(0,r-2),position:r-2}:{value:e.slice(0,r-1),position:r-1}:i?t.deleteSeparator(e,r):t.deleteDigit(e,r)},V6=(e,t,r,o,n)=>{let i=e;const a=o;if(o===i.length&&i.length===r.getMaxLength())return{value:i,position:a};if(o!==i.length&&n===i.length){const c=r.isCursorAtSeparator(o)?o+1:o;i=e.slice(0,c)}return r.isCursorAtSeparator(a)?{value:i,position:a+1}:r.processKey(i,t,a)},U6=(e,t)=>{if(!e)return{value:"",position:0};const r=t.autoComplete(e),o=r.length;return{value:r,position:o}},K6=(e,t,r)=>{if(!e)return;const o=r.autoComplete(e);o!==e&&t(o)},o_=(e,t)=>t&&e.preventDefault(),q6=({value:e="",onBlur:t,onChange:r,onKeyDown:o,format:n,inputRef:i,autofix:a=!1,disableAutocompleteOnBlur:c=!1,setPosition:l})=>{n.isValid(e);const d=h=>{const f=a?n.correctMinMaxValues(h):h;f===e||!n.isValid(f)||r(f)},s=a?n.correctMinMaxValues(e):e,u=n.getValidValue(s);return{value:u,onKeyDown:h=>{var f,p;const g=((f=i.current)===null||f===void 0?void 0:f.selectionStart)||0,v=((p=i.current)===null||p===void 0?void 0:p.selectionEnd)||0;let m;const{keyCode:y,key:C,ctrlKey:_,metaKey:k}=h.detail;if(H6(C)||n.isSeparator(C)?(m=V6(u,C,n,g,v),o_(h,m)):y===ke.backspace?(m=W6(u,n,g,v),o_(h,m)):y===ke.enter?m=U6(u,n):F6(y,_,k)||h.preventDefault(),m){const{value:b,position:S}=m;d(b),l(S)}o&&o(h)},onChange:({detail:h})=>d(h.value),onBlur:()=>{c||K6(u,r,n),t&&t()},onPaste:h=>{var f,p;const g=(h.clipboardData||window.clipboardData).getData("text"),v=((f=i.current)===null||f===void 0?void 0:f.selectionStart)||0,m=((p=i.current)===null||p===void 0?void 0:p.selectionEnd)||0,y=n.formatPastedText(g,u,v,m);d(y)}}},Y6=q6,fo=(e,t,r,o=r)=>e.slice(0,r)+t+e.slice(o);class X6{constructor({separator:t,inputSeparators:r=[],segments:o}){this.positionFormats=new Map,this.segments=[],this.separator=t,this.inputSeparators=[...r,t],this.enrichSegmentDefinitions(o)}tryAppendSeparator(t){const r=`${t}${this.separator}`;return this.isValid(r)?r:t}isSeparator(t){return this.inputSeparators.indexOf(t)!==-1}isValid(t){const r=t.split(this.separator);return r.length>this.segments.length?!1:r.every((o,n)=>{const i=this.segments[n];if(o==="")return n===r.length-1;if(!o.match(/^\d+$/)||o.length<i.length&&n!==r.length-1)return!1;const a=parseInt(o,10);return o.length>i.length?!1:a<i.min||a>i.max(t)?n===r.length-1&&o.length<i.length:!0})}getValidValue(t){let r=t;do{if(this.isValid(r))return this.tryAppendSeparator(r);r=r.substring(0,r.length-1)}while(r.length>0);return""}autoComplete(t){const[r,...o]=t.split(this.separator).reverse(),n=this.segments[o.length],i=this.padWithDefaultValue(r,n),a=[...o.reverse(),i];for(;a.length<this.segments.length;){const c=this.segments[a.length],l=this.padWithDefaultValue("",c);a.push(l)}return t=a.join(this.separator),t=this.correctMinMaxValues(t),t}getSegmentValueWithAddition(t,r,o){const n=this.positionFormats.get(t),i=r.substr(n.start,n.length),a=t-n.start,c=fo(i,o,a,a+1);return parseInt(c,10)}replaceDigitsWithZeroes(t,r,o){const n=this.isCursorAtSeparator(r)?r+1:r;if(this.isCursorAtSeparator(r)&&r++,!this.isSegmentStart(r)){const a=this.positionFormats.get(r);t=fo(t,ml("",a.end-r),r,a.end),r=a.end+1}let i;for(;r<o&&(i=this.positionFormats.get(r+1));){const a=Math.min(o,i.end);t=fo(t,ml("",a-i.start),i.start,a),r=a+1}return t=this.correctMinMaxValues(t),{value:t,position:n}}handleSeparatorInput(t,r){if(r===t.length&&!this.isSegmentStart(r)){const o=this.positionFormats.get(r);let n=t.substr(o.start,o.length);return n=this.padWithDefaultValue(n,o),t=fo(t,n,o.start,o.end),t=this.correctMinMaxValues(t),{value:t,position:t.length}}}isCursorAtSeparator(t){return 0<t&&t<this.getMaxLength()&&this.positionFormats.get(t)===void 0}isSegmentStart(t){return t===0||this.isCursorAtSeparator(t-1)}getSegmentMaxValue(t,r){return this.positionFormats.get(r).max(t)}getSegmentMinValue(t,r){return this.positionFormats.get(r).min}getMaxLength(){const t=this.segments[this.segments.length-1];return t.start+t.length}deleteSeparator(t,r){return t=fo(t,"0",r-2,r-1),{value:this.correctMinMaxValues(t),position:r-2}}deleteDigit(t,r){t=fo(t,"0",r-1,r);const o=t.length;return t.slice(o-2)==="0:"&&(t=t.slice(0,o-2)),{value:this.correctMinMaxValues(t),position:r-1}}correctMinMaxValues(t){let r=this.positionFormats.get(0);for(;r&&t.length>=r.end;){const o=parseInt(t.substr(r.start,r.length),10),n=r.max(t);if(o<r.min){let i=r.min.toFixed();i=ml(i,r.length),t=fo(t,i,r.start,r.end)}o>n&&(t=fo(t,n.toFixed(),r.start,r.end)),r=this.positionFormats.get(r.end+1)}return t.substr(0,this.segments[this.segments.length-1].end)}formatPastedText(t,r,o,n){const i=t.trim().split("");let a=o,c=r;n>o&&n===r.length&&(c=r.slice(0,o));for(const l of i){if(a>=this.getMaxLength())break;const d=this.processKey(c,l,a);c=d.value,a=d.position}return this.tryAppendSeparator(c)}processKey(t,r,o){let n=t,i=o;if(this.isSeparator(r)){const a=this.handleSeparatorInput(n,i);a&&(n=a.value,i=a.position)}else{const a=i===n.length,c=this.getSegmentValueWithAddition(i,n,r),l=this.getSegmentMaxValue(n,i),d=this.getSegmentMinValue(n,i),s=parseInt(r,10)>parseInt(l.toFixed()[0],10),u=a||c.toFixed().length===1;this.isSegmentStart(i)&&u&&s?(n=fo(n,`0${r}`,i,i+2),i+=2):c>l&&this.isSegmentStart(i)?(n=fo(n,l.toFixed(),i,i+l.toFixed().length),i+=l.toFixed().length):c>l?(n=fo(n,l.toFixed(),i-1,i+1),i+=1):c<d&&!this.isSegmentStart(i)?(n=fo(n,d.toFixed(),i,i+1),i+=1):(n=fo(n,r,i,i+1),i+=1)}return n=this.tryAppendSeparator(n),this.isCursorAtSeparator(i)&&i++,{value:n,position:i}}padWithDefaultValue(t,r){let o=(r.default||r.min).toFixed();return o=ml(o,r.length),fo(o,t,r.length-t.length,r.length)}enrichSegmentDefinitions(t){this.positionFormats=new Map,this.segments=[];let r=0;for(const o of t){const n=o.max,i=Object.assign(Object.assign({},o),{max:typeof n=="number"?()=>n:n,start:r,end:r+o.length});this.segments.push(i);for(let a=0;a<i.length;a++)this.positionFormats.set(r++,i);r++}}}const Q6=x.forwardRef((e,t)=>{var{value:r,onBlur:o,onChange:n,onKeyDown:i,mask:a,autofix:c=!1,disableAutocompleteOnBlur:l=!1}=e,d=de(e,["value","onBlur","onChange","onKeyDown","mask","autofix","disableAutocompleteOnBlur"]);const s=Ie(d),u=Sn(d),h=x.useRef(null),[f,p]=B.useState(null);B.useLayoutEffect(()=>{var _;f!==null&&((_=h.current)===null||_===void 0||_.setSelectionRange(f,f))},[f,h]);const g=Y6({format:new X6(a),value:r,inputRef:h,autofix:c,disableAutocompleteOnBlur:l,onChange:_=>!d.readOnly&&xe(n,{value:_}),onKeyDown:_=>!d.readOnly&&i&&St(i,_.detail,_),onBlur:()=>xe(o),setPosition:p}),{onPaste:v}=g,m=de(g,["onPaste"]),y=Object.assign(Object.assign(Object.assign(Object.assign({},d),s),u),m),C=Lt(t,h);return x.createElement(Af,Object.assign({},y,{ref:C,__nativeAttributes:{onPaste:v}}))}),Z6=Q6,J6={root:"awsui_root_yodkx_im8v7_5"};function ez(e){const t=BE(e).substring(0,7);return ej(DE(t))}const n_={min:0,max:9999,default:2e3,length:4},i_={min:1,max:12,length:2},tz={min:1,max:ez,length:2},rz=x.forwardRef((e,t)=>{var{value:r,onChange:o,granularity:n,__internalRootRef:i=null}=e,a=de(e,["value","onChange","granularity","__internalRootRef"]);const c={separator:"/",inputSeparators:["-","."," "],segments:n==="month"?[n_,i_]:[n_,i_,tz]};return x.createElement(Z6,Object.assign({ref:t},a,{value:Zj(r||""),onChange:l=>xe(o,{value:BE(l.detail.value)}),className:W(J6.root,a.className),mask:c,autofix:!0,autoComplete:!1,disableAutocompleteOnBlur:!1,disableBrowserAutocorrect:!0,__internalRootRef:i}))}),oz=rz,TL=x.forwardRef((e,t)=>{const r=ut("DateInput",{props:{autoFocus:e.autoFocus,readOnly:e.readOnly}});return x.createElement(oz,Object.assign({},e,r,{ref:t}))});at(TL,"DateInput");const Yo=TL;function Cy(e){var{variant:t="default"}=e,r=de(e,["variant"]);const o=ut("ExpandableSection",{props:{disableContentPaddings:r.disableContentPaddings,headingTagOverride:r.headingTagOverride,variant:t}});return x.createElement(cy,Object.assign({variant:t},r,o))}at(Cy,"ExpandableSection");const Se={"flash-with-motion":"awsui_flash-with-motion_1q84n_1r55n_99",enter:"awsui_enter_1q84n_1r55n_99","flash-body":"awsui_flash-body_1q84n_1r55n_113","flash-message":"awsui_flash-message_1q84n_1r55n_113","flash-header":"awsui_flash-header_1q84n_1r55n_113","flash-content":"awsui_flash-content_1q84n_1r55n_114","action-button-wrapper":"awsui_action-button-wrapper_1q84n_1r55n_115","dismiss-button-wrapper":"awsui_dismiss-button-wrapper_1q84n_1r55n_116","flash-icon":"awsui_flash-icon_1q84n_1r55n_139",entering:"awsui_entering_1q84n_1r55n_152",entered:"awsui_entered_1q84n_1r55n_173",exiting:"awsui_exiting_1q84n_1r55n_278",stack:"awsui_stack_1q84n_1r55n_300","animation-running":"awsui_animation-running_1q84n_1r55n_300",item:"awsui_item_1q84n_1r55n_300","flash-list-item":"awsui_flash-list-item_1q84n_1r55n_301","notification-bar":"awsui_notification-bar_1q84n_1r55n_302",collapsed:"awsui_collapsed_1q84n_1r55n_322","animation-ready":"awsui_animation-ready_1q84n_1r55n_322","expanded-only":"awsui_expanded-only_1q84n_1r55n_322",expanded:"awsui_expanded_1q84n_1r55n_322",flash:"awsui_flash_1q84n_1r55n_99",collapsible:"awsui_collapsible_1q84n_1r55n_386","short-list":"awsui_short-list_1q84n_1r55n_392","visual-refresh":"awsui_visual-refresh_1q84n_1r55n_392",status:"awsui_status_1q84n_1r55n_605",header:"awsui_header_1q84n_1r55n_605","item-count":"awsui_item-count_1q84n_1r55n_606",button:"awsui_button_1q84n_1r55n_607","type-count":"awsui_type-count_1q84n_1r55n_640","count-number":"awsui_count-number_1q84n_1r55n_640",icon:"awsui_icon_1q84n_1r55n_674",floating:"awsui_floating_1q84n_1r55n_715",flashbar:"awsui_flashbar_1q84n_1r55n_723","flash-refresh":"awsui_flash-refresh_1q84n_1r55n_798","flash-list":"awsui_flash-list_1q84n_1r55n_301","flash-focus-container":"awsui_flash-focus-container_1q84n_1r55n_819","flash-text":"awsui_flash-text_1q84n_1r55n_849","dismiss-button":"awsui_dismiss-button_1q84n_1r55n_116","breakpoint-default":"awsui_breakpoint-default_1q84n_1r55n_891","action-button":"awsui_action-button_1q84n_1r55n_115","action-slot":"awsui_action-slot_1q84n_1r55n_901","flash-type-success":"awsui_flash-type-success_1q84n_1r55n_905","flash-type-error":"awsui_flash-type-error_1q84n_1r55n_909","flash-type-info":"awsui_flash-type-info_1q84n_1r55n_913","flash-type-in-progress":"awsui_flash-type-in-progress_1q84n_1r55n_914","flash-type-warning":"awsui_flash-type-warning_1q84n_1r55n_918"},nz=2e3,EL={error:"red",info:"blue","in-progress":"blue",success:"green",warning:"yellow"};function iz(e){const t="blue";return e&&EL[e]||t}function LL(e){return e.loading?"in-progress":e.type||"info"}function AL(e){return iz(LL(e))}function az(e,t){const r=[],o=[],n=new Set,i=Object.keys(EL).length,a=Math.min(e.length,t);for(let s=0;s<e.length;s++){const u=e[s],h=AL(u),f=n.has(h);if(s<a)r.push({item:Object.assign(Object.assign({},u),{expandedIndex:s}),isColorRepeated:f});else{if(n.size===i)break;f||o.push(Object.assign(Object.assign({},u),{expandedIndex:s}))}n.add(h)}const c=[];let l=0;for(let s=r.length-1;s>=0;s--){const u=r[s];u.isColorRepeated&&l<o.length?l+=1:c.push(u.item)}const d=c.reverse();for(let s=0;d.length<t;s++)d.push(o[s]);return d}function BL(e){const t={error:0,info:0,"in-progress":0,success:0,warning:0};for(const r of e){const o=LL(r);t[o]+=1}return t}const lz=[{type:"error",labelName:"errorIconAriaLabel",iconName:"status-negative"},{type:"warning",labelName:"warningIconAriaLabel",iconName:"status-warning"},{type:"success",labelName:"successIconAriaLabel",iconName:"status-positive"},{type:"info",labelName:"infoIconAriaLabel",iconName:"status-info"},{type:"in-progress",labelName:"inProgressIconAriaLabel",iconName:"status-in-progress"}],Sy=new kS(O0,zc),Ty="csa_flashbar",sz=e=>{const t=BL(e);Sy.sendPanoramaMetric({eventContext:Ty,eventType:"render",eventValue:e.length.toString(),eventDetail:t})},cz=(e,t)=>{Sy.sendPanoramaMetric({eventContext:Ty,eventType:t?"expand":"collapse",eventValue:e.toString()})},uz=e=>{Sy.sendPanoramaMetric({eventContext:Ty,eventType:"dismiss",eventValue:e})},dz={success:"status-positive",warning:"status-warning",info:"status-info",error:"status-negative","in-progress":"status-in-progress"},hz=eT(H0.flashbar.onActionRegistered);function fz(e,t){return x.createElement("div",{className:Se["dismiss-button-wrapper"]},x.createElement(pt,{onClick:t,className:Se["dismiss-button"],variant:"flashbar-icon",iconName:"close",formAction:"none",ariaLabel:e}))}const DL=yE((e,t)=>{var r;const o=`[data-itemid="${CSS.escape(t)}"] .${Se["flash-focus-container"]}`;(r=e==null?void 0:e.querySelector(o))===null||r===void 0||r.focus()},nz,{trailing:!1}),RL=x.forwardRef((e,t)=>{var{id:r,header:o,content:n,dismissible:i,dismissLabel:a,loading:c,action:l,buttonText:d,onButtonClick:s,onDismiss:u,className:h,transitionState:f,ariaRole:p,i18nStrings:g,type:v="info"}=e,m=de(e,["id","header","content","dismissible","dismissLabel","loading","action","buttonText","onButtonClick","onDismiss","className","transitionState","ariaRole","i18nStrings","type"]);const{discoveredActions:y,headerRef:C,contentRef:_}=hz(v),k=dz[v],b=c?x.createElement(rf,null):x.createElement(ze,{name:k}),S=c?"info":v,T=A=>{uz(S),u&&u(A)},L={[fP]:S},I=m.statusIconAriaLabel||(g==null?void 0:g[`${c||v==="in-progress"?"inProgress":v}IconAriaLabel`]);return x.createElement("div",Object.assign({ref:t,role:p,"aria-live":p?"off":void 0,"data-itemid":r,className:W(Se.flash,Se[`flash-type-${S}`],h,f&&{[Se.enter]:f==="enter",[Se.entering]:f==="entering",[Se.entered]:f==="entered",[Se.exit]:f==="exit",[Se.exiting]:f==="exiting",[Se.exited]:f==="exited"},Wc(v==="warning"&&!c?"flashbar-warning":"flashbar"))},L),x.createElement("div",{className:Se["flash-body"]},x.createElement("div",{className:Se["flash-focus-container"],tabIndex:-1},x.createElement("div",{className:W(Se["flash-icon"],Se["flash-text"]),role:"img","aria-label":I},b),x.createElement("div",{className:W(Se["flash-message"],Se["flash-text"])},x.createElement("div",{className:Se["flash-header"],ref:C},o),x.createElement("div",{className:Se["flash-content"],ref:_},n))),x.createElement(rT,{className:Se["action-button-wrapper"],testUtilClasses:{actionSlot:Se["action-slot"],actionButton:Se["action-button"]},action:l,discoveredActions:y,buttonText:d,onButtonClick:s})),i&&fz(a,T),p==="status"&&x.createElement(lo,{source:[I,C,_]}))});function pz(e){const t={};for(const r in e){const o=e[r];o&&(t[r]=o.getBoundingClientRect())}return t}function gz({oldState:e,elements:t,onTransitionsEnd:r,newElementInitialState:o}){for(const n in t){const i=t[n],a=e[n];if(i){const c=i.getBoundingClientRect(),l={scale:1,x:0,y:0},d=a?{scale:a.width/c.width,x:(a.left+a.right)/2-(c.left+c.right)/2,y:(a.top+a.bottom)/2-(c.top+c.bottom)/2}:o?o(c):{},s=Object.assign(Object.assign({},l),d);i.style.transitionProperty="none",i.style.transform=`scale(${s.scale}) translate(${s.x}px, ${s.y}px)`,a||(i.style.opacity="0")}}requestAnimationFrame(()=>{const n=new Set;for(const i in t){const a=t[i];if(a){e[i]?(a.style.transitionProperty="transform",a.style.transform=""):(a.style.transitionProperty="transform, opacity",a.style.transform="",a.style.opacity="");const l=s=>{s.target===a&&(n.add(i),a.removeEventListener("transitionstart",l))},d=s=>{s.target===a&&(a.style.transitionProperty="",a.removeEventListener("transitionstart",d),r&&(n.delete(i),n.size===0&&r()))};a.addEventListener("transitionstart",l),a.addEventListener("transitionend",d)}}})}function IL(e){var{items:t,onItemsAdded:r,onItemsChanged:o,onItemsRemoved:n}=e,i=de(e,["items","onItemsAdded","onItemsChanged","onItemsRemoved"]);const{__internalRootRef:a}=ut("Flashbar",{props:{stackItems:i.stackItems}}),c=B.useMemo(()=>t.every(C=>"id"in C),[t]),l=Ie(i),d=B.useRef(null),[s,u]=zn(["xs"]),h=Lt(d,u,a),f=P0(d),p=kn(),[g,v]=B.useState(t),[m,y]=B.useState(null);if(t){const C=t.filter(({id:k})=>k&&!g.some(b=>b.id===k)),_=g.filter(({id:k})=>k&&!t.some(b=>b.id===k));if(C.length>0||_.length>0){v(t),r==null||r(C),n==null||n(_),o==null||o({allItemsHaveId:c,isReducedMotion:f});const k=C.filter(({ariaRole:b})=>b==="alert");k.length>0&&y(k[0].id)}}return B.useEffect(()=>{m&&DL(d.current,m)},[m,d]),{allItemsHaveId:c,baseProps:l,breakpoint:s,isReducedMotion:f,isVisualRefresh:p,mergedRef:h,ref:d}}const a_=1,mz=100;function vz(e){var{items:t}=e,r=de(e,["items"]);const[o,n]=B.useState([]),[i,a]=B.useState([]),[c,l]=B.useState(!1),d=B.useCallback(()=>{const Q=c?y.current:m.current;return Object.assign(Object.assign({},Q),{notificationBar:b.current})},[c]),s=B.useCallback(()=>{const Q=pz(d());_(Q)},[d]),{baseProps:u,breakpoint:h,isReducedMotion:f,isVisualRefresh:p,mergedRef:g,ref:v}=IL(Object.assign(Object.assign({items:t},r),{onItemsAdded:Q=>{n([...o,...Q])},onItemsChanged:Q=>{Q!=null&&Q.allItemsHaveId&&!(Q!=null&&Q.isReducedMotion)&&s()},onItemsRemoved:Q=>{a([...i,...Q])}})),m=B.useRef({}),y=B.useRef({}),[C,_]=B.useState(null),k=B.useRef(null),b=B.useRef(null),[S,T]=B.useState(!1),L=De("flashbar"),I=De("item-count");t.length<=a_&&c&&l(!1);const A=!f;function P(){cz(t.length,!c),f||s(),l(Q=>!Q)}B.useLayoutEffect(()=>{if(c&&(t!=null&&t.length)){const Q=t[0];Q.id!==void 0&&DL(v.current,Q.id)}},[c]),Hc(()=>{!c&&b.current&&Uc(b.current)},[c]);const D=B.useMemo(()=>yE(()=>{const Q=k==null?void 0:k.current,oe=Q==null?void 0:Q.parentElement;if(Q&&oe){oe.classList.remove(Se.floating);const Z=window.innerHeight,G=tn(oe,te=>te.getAttribute("role")==="region")||oe;c&&Math.ceil(G.getBoundingClientRect().bottom)>=Z||oe.classList.add(Se.floating)}},mz),[c]);B.useLayoutEffect(()=>(window.addEventListener("resize",D),()=>{window.removeEventListener("resize",D),D.cancel()}),[D]);const{i18nStrings:E}=r,R=it("flashbar"),$=R("i18nStrings.ariaLabel",E==null?void 0:E.ariaLabel),N=R("i18nStrings.notificationBarText",E==null?void 0:E.notificationBarText),M=R("i18nStrings.notificationBarAriaLabel",E==null?void 0:E.notificationBarAriaLabel),O={errorIconAriaLabel:R("i18nStrings.errorIconAriaLabel",E==null?void 0:E.errorIconAriaLabel),inProgressIconAriaLabel:R("i18nStrings.inProgressIconAriaLabel",E==null?void 0:E.inProgressIconAriaLabel),infoIconAriaLabel:R("i18nStrings.infoIconAriaLabel",E==null?void 0:E.infoIconAriaLabel),successIconAriaLabel:R("i18nStrings.successIconAriaLabel",E==null?void 0:E.successIconAriaLabel),warningIconAriaLabel:R("i18nStrings.warningIconAriaLabel",E==null?void 0:E.warningIconAriaLabel)};B.useLayoutEffect(()=>{C&&(D(),gz({elements:d(),oldState:C,newElementInitialState:({top:Q})=>({scale:.9,y:-.2*Q}),onTransitionsEnd:()=>T(!1)}),T(!0),_(null))},[D,d,C,c]);const j=t.length>a_,z=BL(t),F=new Set(t.map(AL)).size,K=Math.max(F,3),U=Math.min(K,t.length),Y=c?t.map((Q,oe)=>Object.assign(Object.assign({},Q),{expandedIndex:oe})):az(t,U).map((Q,oe)=>Object.assign(Object.assign({},Q),{collapsedIndex:oe})),V=Q=>{var oe,Z;return(Z=(oe=Q.id)!==null&&oe!==void 0?oe:Q.expandedIndex)!==null&&Z!==void 0?Z:0},q=Q=>o.some(oe=>oe.id&&oe.id===Q.id),ee=Q=>!("expandedIndex"in Q),X=Q=>q(Q)||ee(Q),ie=Q=>c||ee(Q)||"expandedIndex"in Q&&Q.expandedIndex===0,se=(Q,oe)=>oe===0&&X(Q),me=Q=>`flash-${V(Q)}`,ve=()=>x.createElement("ul",{ref:k,className:W(Se["flash-list"],c?Se.expanded:Se.collapsed,S&&Se["animation-running"],C&&Se["animation-ready"],p&&Se["visual-refresh"]),id:L,"aria-label":$,"aria-describedby":j?I:void 0,style:!c||S?{[sr.flashbarStackDepth]:U}:void 0},x.createElement(bz,{withMotion:!f},Y.map((Q,oe)=>x.createElement(Ha,{key:V(Q),in:!ee(Q),onStatusChange:Z=>{Z==="entered"?n([]):Z==="exited"&&a([])}},(Z,G)=>{var H,te,ae;return x.createElement("li",{"aria-hidden":!ie(Q),className:ie(Q)?W(Se["flash-list-item"],!c&&Se.item,!m.current[me(Q)]&&Se["expanded-only"]):W(Se.flash,Se[`flash-type-${(H=Q.type)!==null&&H!==void 0?H:"info"}`],Se.item),ref:le=>{c?y.current[me(Q)]=le:m.current[me(Q)]=le},style:!c||S?{[sr.flashbarStackIndex]:(ae=(te=Q.collapsedIndex)!==null&&te!==void 0?te:Q.expandedIndex)!==null&&ae!==void 0?ae:oe}:void 0,key:V(Q)},ie(Q)&&x.createElement(RL,Object.assign({className:W(A&&Se["flash-with-motion"],p&&Se["flash-refresh"]),key:V(Q),ref:se(Q,oe)?G:void 0,transitionState:se(Q,oe)?Z:void 0,i18nStrings:O},Q)))}))));return x.createElement("div",Object.assign({},u,{className:W(u.className,Se.flashbar,Se[`breakpoint-${h}`],Se.stack,j&&Se.collapsible,t.length===2&&Se["short-list"],c&&Se.expanded,p&&Se["visual-refresh"]),ref:g}),c&&ve(),j&&x.createElement("div",{className:W(Se["notification-bar"],p&&Se["visual-refresh"],c?Se.expanded:Se.collapsed,S&&Se["animation-running"],t.length===2&&Se["short-list"],Wc("flashbar")),onClick:P,ref:b},x.createElement("span",{"aria-live":"polite",className:Se.status,role:"status",id:I},N&&x.createElement("h2",{className:Se.header},N),x.createElement("span",{className:Se["item-count"]},lz.map(({type:Q,labelName:oe,iconName:Z})=>x.createElement(yz,{key:Q,iconName:Z,label:O[oe],count:z[Q]})))),x.createElement("button",{"aria-controls":L,"aria-describedby":I,"aria-expanded":c,"aria-label":M,className:W(Se.button,c&&Se.expanded)},x.createElement(ze,{className:Se.icon,size:"normal",name:"angle-down"}))),!c&&ve())}const yz=({iconName:e,label:t,count:r})=>x.createElement("span",{className:Se["type-count"]},x.createElement("span",{"aria-label":t,role:"img"},x.createElement("span",{title:t,"aria-hidden":"true"},x.createElement(ze,{name:e}))),x.createElement("span",{className:Se["count-number"]},r)),bz=({children:e,withMotion:t})=>t?x.createElement(LT,{component:null},e):x.createElement(x.Fragment,null,e),wz=115;function xz(e){var{items:t,i18nStrings:r}=e,o=de(e,["items","i18nStrings"]);const{allItemsHaveId:n,baseProps:i,breakpoint:a,isReducedMotion:c,isVisualRefresh:l,mergedRef:d}=IL(Object.assign({items:t},o)),s=it("flashbar"),u=s("i18nStrings.ariaLabel",r==null?void 0:r.ariaLabel),h={errorIconAriaLabel:s("i18nStrings.errorIconAriaLabel",r==null?void 0:r.errorIconAriaLabel),inProgressIconAriaLabel:s("i18nStrings.inProgressIconAriaLabel",r==null?void 0:r.inProgressIconAriaLabel),infoIconAriaLabel:s("i18nStrings.infoIconAriaLabel",r==null?void 0:r.infoIconAriaLabel),successIconAriaLabel:s("i18nStrings.successIconAriaLabel",r==null?void 0:r.successIconAriaLabel),warningIconAriaLabel:s("i18nStrings.warningIconAriaLabel",r==null?void 0:r.warningIconAriaLabel)},f=c||!l||!n,p=!c&&l;function g(){if(!(f||!t))return x.createElement(LT,{component:"ul",className:Se["flash-list"],"aria-label":u},t.map((y,C)=>{var _;return x.createElement(Ha,{transitionChangeDelay:{entering:wz},key:(_=y.id)!==null&&_!==void 0?_:C,in:!0},(k,b)=>{var S;return x.createElement("li",{className:Se["flash-list-item"]},m(y,(S=y.id)!==null&&S!==void 0?S:C,b,k))})}))}function v(){if(!(!f||!t))return x.createElement("ul",{className:Se["flash-list"],"aria-label":u},t.map((y,C)=>{var _,k;return x.createElement("li",{key:(_=y.id)!==null&&_!==void 0?_:C,className:Se["flash-list-item"]},m(y,(k=y.id)!==null&&k!==void 0?k:C))}))}function m(y,C,_,k){return x.createElement(RL,Object.assign({className:W(p&&Se["flash-with-motion"],l&&Se["flash-refresh"]),key:C,ref:_,transitionState:k,i18nStrings:h},y))}return x.createElement("div",Object.assign({},i,{className:W(i.className,Se.flashbar,Se[`breakpoint-${a}`]),ref:d}),g(),v())}function cu(e){return B.useEffect(()=>{e.items.length>0&&sz(e.items)},[e.items]),e.stackItems?x.createElement(vz,Object.assign({},e)):x.createElement(xz,Object.assign({},e))}at(cu,"Flashbar");const Dn={root:"awsui_root_1i0s3_19kut_99",header:"awsui_header_1i0s3_19kut_134","full-page":"awsui_full-page_1i0s3_19kut_134",content:"awsui_content_1i0s3_19kut_138",error:"awsui_error_1i0s3_19kut_142",footer:"awsui_footer_1i0s3_19kut_146","actions-section":"awsui_actions-section_1i0s3_19kut_150","secondary-actions":"awsui_secondary-actions_1i0s3_19kut_159",actions:"awsui_actions_1i0s3_19kut_150"};function PL(e){var{children:t,header:r,errorText:o,errorIconAriaLabel:n,actions:i,secondaryActions:a,variant:c,__internalRootRef:l}=e,d=de(e,["children","header","errorText","errorIconAriaLabel","actions","secondaryActions","variant","__internalRootRef"]);const s=Ie(d),h=it("form")("errorIconAriaLabel",n),{funnelInteractionId:f,submissionAttempt:p,errorCount:g}=xo();return B.useEffect(()=>{if(f&&o)return g.current++,()=>{g.current--}},[f,o,p,g]),x.createElement("div",Object.assign({},s,{ref:l,className:W(Dn.root,s.className)}),x.createElement(_z,{header:r&&x.createElement("div",{className:W(Dn.header,c==="full-page"&&Dn["full-page"])},r),variant:c},t&&x.createElement("div",{className:Dn.content},t),o&&x.createElement(xn,{margin:{top:"l"}},x.createElement(oT,{type:"error",statusIconAriaLabel:h},x.createElement("div",{className:Dn.error},o))),(i||a)&&x.createElement("div",{className:Dn.footer},x.createElement("div",{className:Dn["actions-section"]},i&&x.createElement("div",{className:Dn.actions},i),a&&x.createElement("div",{className:Dn["secondary-actions"]},a))),o&&x.createElement(lo,{assertive:!0},h,", ",o)))}function _z({children:e,header:t,variant:r}){return r==="full-page"&&t?x.createElement(CL,{header:t},e):x.createElement(x.Fragment,null,t,e)}const kz=e=>{var{variant:t="full-page",actions:r}=e,o=de(e,["variant","actions"]);const{funnelProps:n,funnelSubmit:i,funnelNextOrSubmitAttempt:a}=xo(),{funnelStepProps:c}=ai(),l=({variant:d})=>{d==="primary"&&(a(),i())};return x.createElement(N0.Provider,{value:{onClick:l}},x.createElement(PL,Object.assign({variant:t,actions:r},o,n,c)))};function Fn(e){var{variant:t="full-page"}=e,r=de(e,["variant"]);const o=ut("Form",{props:{variant:t}}),i=mP()||`.${Nt["heading-text"]}`;return x.createElement(pE,{funnelType:"single-page",optionalStepNumbers:[],totalFunnelSteps:1,funnelNameSelectors:[i,`.${Dn.header}`]},x.createElement(gE,{stepNumber:1},x.createElement(kz,Object.assign({variant:t},r,o))))}at(Fn,"Form");function nt(e){var{stretch:t=!1}=e,r=de(e,["stretch"]);const o=ut("FormField",{props:{stretch:t}});return x.createElement(Nn,Object.assign({stretch:t},r,{__hideLabel:!1},o))}at(nt,"FormField");function Ge(e){var{variant:t="h2"}=e,r=de(e,["variant"]);const o=ut("Header",{props:{headingTagOverride:r.headingTagOverride,variant:t}});return x.createElement(Rf,Object.assign({variant:t},r,o))}at(Ge,"Header");const ed={"help-panel":"awsui_help-panel_1d237_xb6zh_100",header:"awsui_header_1d237_xb6zh_269",content:"awsui_content_1d237_xb6zh_300",footer:"awsui_footer_1d237_xb6zh_346"};function Hr(e){var{header:t,footer:r,children:o,loading:n,loadingText:i}=e,a=de(e,["header","footer","children","loading","loadingText"]);const{__internalRootRef:c}=ut("HelpPanel"),l=Ie(a),d=it("help-panel"),s=Object.assign(Object.assign({},l),{className:W(l.className,ed["help-panel"])});return n?x.createElement("div",Object.assign({},s,{ref:c}),x.createElement(Ec,{type:"loading"},x.createElement(lo,{visible:!0},d("loadingText",i)))):x.createElement("div",Object.assign({},s,{ref:c}),t&&x.createElement("div",{className:W(ed.header)},t),x.createElement(Jl.Provider,{value:{defaultVariant:"primary"}},x.createElement("div",{className:W(ed.content)},o)),r&&x.createElement("div",{className:ed.footer},r))}at(Hr,"HelpPanel");function Xr(e){var{size:t="normal",variant:r="normal"}=e,o=de(e,["size","variant"]);const n=ut("Icon",{props:{name:o.name,size:t,variant:r}});return x.createElement(ze,Object.assign({size:t,variant:r},o,n))}at(Xr,"Icon");const $L=x.forwardRef((e,t)=>{var{value:r,type:o="text",step:n,inputMode:i,autoComplete:a=!0,spellcheck:c,disabled:l,readOnly:d,disableBrowserAutocorrect:s,onKeyDown:u,onKeyUp:h,onChange:f,onBlur:p,onFocus:g,ariaRequired:v,name:m,placeholder:y,autoFocus:C,ariaLabel:_,ariaLabelledby:k,ariaDescribedby:b,invalid:S,controlId:T,clearAriaLabel:L}=e,I=de(e,["value","type","step","inputMode","autoComplete","spellcheck","disabled","readOnly","disableBrowserAutocorrect","onKeyDown","onKeyUp","onChange","onBlur","onFocus","ariaRequired","name","placeholder","autoFocus","ariaLabel","ariaLabelledby","ariaDescribedby","invalid","controlId","clearAriaLabel"]);const A=ut("Input",{props:{autoComplete:a,autoFocus:C,disableBrowserAutocorrect:s,inputMode:i,readOnly:d,spellcheck:c,type:o}}),P=Ie(I),D=B.useRef(null);return B.useImperativeHandle(t,()=>({focus(...E){var R;(R=D.current)===null||R===void 0||R.focus(...E)},select(){var E;(E=D.current)===null||E===void 0||E.select()}}),[D]),x.createElement(Af,Object.assign({ref:D},Object.assign(Object.assign(Object.assign({},P),A),{autoComplete:a,ariaLabel:_,ariaRequired:v,autoFocus:C,disabled:l,disableBrowserAutocorrect:s,name:m,onKeyDown:u,onKeyUp:h,onChange:f,onBlur:p,onFocus:g,placeholder:y,readOnly:d,type:o,step:n,inputMode:i,spellcheck:c,value:r,ariaDescribedby:b,ariaLabelledby:k,invalid:S,controlId:T,clearAriaLabel:L}),{className:W(Go.root,P.className),__inheritFormFieldProps:!0}))});at($L,"Input");const jt=$L,OL=x.forwardRef((e,t)=>{var{fontSize:r="body-m",color:o="normal",external:n=!1}=e,i=de(e,["fontSize","color","external"]);const a=ut("Link",{props:{color:o,external:n,fontSize:r,rel:i.rel,target:i.target,variant:i.variant}});return x.createElement(qc,Object.assign({fontSize:r,color:o,external:n},i,a,{ref:t}))});at(OL,"Link");const Bo=OL;function Hn(e){var{size:t="medium"}=e,r=de(e,["size"]);const o=ut("Modal",{props:{size:t,disableContentPaddings:r.disableContentPaddings}});return x.createElement(gy,Object.assign({size:t},r,o))}at(Hn,"Modal");const ML=x.forwardRef((e,t)=>{var{options:r=[],filteringType:o="none",statusType:n="finished",selectedOptions:i=[],keepOpen:a=!0,hideTokens:c=!1}=e,l=de(e,["options","filteringType","statusType","selectedOptions","keepOpen","hideTokens"]);const d=ut("Multiselect",{props:{autoFocus:l.autoFocus,expandToViewport:l.expandToViewport,filteringType:o,hideTokens:c,keepOpen:a,tokenLimit:l.tokenLimit,virtualScroll:l.virtualScroll}}),s=!!l.inlineTokens;return x.createElement(AN,Object.assign({options:r,filteringType:o,statusType:n,selectedOptions:i,keepOpen:a,hideTokens:c,inlineTokens:s},l,d,{ref:t}))});at(ML,"Multiselect");const uu=ML,dn={root:"awsui_root_fvjdu_1lqdy_99",button:"awsui_button_fvjdu_1lqdy_142",dots:"awsui_dots_fvjdu_1lqdy_143","button-disabled":"awsui_button-disabled_fvjdu_1lqdy_171",arrow:"awsui_arrow_fvjdu_1lqdy_176","page-number":"awsui_page-number_fvjdu_1lqdy_186","button-current":"awsui_button-current_fvjdu_1lqdy_192","page-item":"awsui_page-item_fvjdu_1lqdy_209","root-disabled":"awsui_root-disabled_fvjdu_1lqdy_227"};function Cz(e,t){const r=[];for(let o=e;o<=t;o++)r.push(o);return r}function Sz(e,t,r){const n=Math.floor(3.5);let i=n;const a=2;let c=t-1;r&&(i++,c=t+1);let l=e-n,d=e+i;l<a&&(d+=a-l,l=a),d>c&&(l-=d-c,d=c),l=Math.max(l,2),d=Math.min(d,c);const s=l>2,u=r||d<c;return s&&l++,u&&d--,{leftDots:s,rightDots:u,leftIndex:l,rightIndex:d}}const Ts={nextPageLabel:"",paginationLabel:"",previousPageLabel:"",pageLabel:e=>`${e}`};function ev({className:e,ariaLabel:t,disabled:r,pageIndex:o,isCurrent:n=!1,children:i,onClick:a}){function c(l){l.preventDefault(),a(o)}return x.createElement("li",{className:dn["page-item"]},x.createElement("button",{className:W(e,dn.button,r&&dn["button-disabled"],n&&dn["button-current"]),type:"button","aria-label":t,disabled:r,onClick:c,"aria-current":n},i))}function pg(e){var{pageIndex:t}=e,r=de(e,["pageIndex"]);return x.createElement(ev,Object.assign({className:dn["page-number"],pageIndex:t},r),t)}function Tz(e){var t,r,o,{openEnd:n,currentPageIndex:i,ariaLabels:a,pagesCount:c,disabled:l,onChange:d,onNextPageClick:s,onPreviousPageClick:u,__internalRootRef:h=null}=e,f=de(e,["openEnd","currentPageIndex","ariaLabels","pagesCount","disabled","onChange","onNextPageClick","onPreviousPageClick","__internalRootRef"]);const p=Ie(f),{leftDots:g,leftIndex:v,rightIndex:m,rightDots:y}=Sz(i,c,n),C=it("pagination"),_=a==null?void 0:a.paginationLabel,k=(t=C("ariaLabels.nextPageLabel",a==null?void 0:a.nextPageLabel))!==null&&t!==void 0?t:Ts.nextPageLabel,b=(r=C("ariaLabels.previousPageLabel",a==null?void 0:a.previousPageLabel))!==null&&r!==void 0?r:Ts.previousPageLabel,S=(o=C("ariaLabels.pageLabel",a==null?void 0:a.pageLabel,A=>P=>A({pageNumber:P})))!==null&&o!==void 0?o:Ts.pageLabel;function T(A){I(A),xe(u,{requestedPageAvailable:!0,requestedPageIndex:A})}function L(A){I(A),xe(s,{requestedPageAvailable:i<c,requestedPageIndex:A})}function I(A){xe(d,{currentPageIndex:A})}return x.createElement("ul",Object.assign({"aria-label":_},p,{className:W(p.className,dn.root,l&&dn["root-disabled"]),ref:h}),x.createElement(ev,{className:dn.arrow,pageIndex:i-1,ariaLabel:b??Ts.nextPageLabel,disabled:l||i===1,onClick:T},x.createElement(ze,{name:"angle-left",variant:l?"disabled":"normal"})),x.createElement(pg,{pageIndex:1,isCurrent:i===1,disabled:l,ariaLabel:S(1),onClick:I}),g&&x.createElement("li",{className:dn.dots},"..."),Cz(v,m).map(A=>x.createElement(pg,{key:A,isCurrent:i===A,pageIndex:A,disabled:l,ariaLabel:S(A),onClick:I})),y&&x.createElement("li",{className:dn.dots},"..."),!n&&c>1&&x.createElement(pg,{isCurrent:i===c,pageIndex:c,disabled:l,ariaLabel:S(c),onClick:I}),x.createElement(ev,{className:dn.arrow,pageIndex:i+1,ariaLabel:k??Ts.nextPageLabel,disabled:l||!n&&(c===0||i===c),onClick:L},x.createElement(ze,{name:"angle-right",variant:l?"disabled":"normal"})))}function du(e){const t=ut("Pagination",{props:{openEnd:e.openEnd}});return x.createElement(Tz,Object.assign({},e,t))}at(du,"Pagination");const qt={root:"awsui_root_1wzqe_d6xov_99","search-field":"awsui_search-field_1wzqe_d6xov_134","input-wrapper":"awsui_input-wrapper_1wzqe_d6xov_140","add-token":"awsui_add-token_1wzqe_d6xov_144",tokens:"awsui_tokens_1wzqe_d6xov_151","token-operator":"awsui_token-operator_1wzqe_d6xov_156","property-editor":"awsui_property-editor_1wzqe_d6xov_160","token-editor":"awsui_token-editor_1wzqe_d6xov_161","property-editor-form":"awsui_property-editor-form_1wzqe_d6xov_166","token-editor-form":"awsui_token-editor-form_1wzqe_d6xov_167","property-editor-field-property":"awsui_property-editor-field-property_1wzqe_d6xov_170","token-editor-field-property":"awsui_token-editor-field-property_1wzqe_d6xov_171","property-editor-field-operator":"awsui_property-editor-field-operator_1wzqe_d6xov_174","token-editor-field-operator":"awsui_token-editor-field-operator_1wzqe_d6xov_175","property-editor-field-value":"awsui_property-editor-field-value_1wzqe_d6xov_178","token-editor-field-value":"awsui_token-editor-field-value_1wzqe_d6xov_179","property-editor-cancel":"awsui_property-editor-cancel_1wzqe_d6xov_182","token-editor-cancel":"awsui_token-editor-cancel_1wzqe_d6xov_183","property-editor-submit":"awsui_property-editor-submit_1wzqe_d6xov_186","token-editor-submit":"awsui_token-editor-submit_1wzqe_d6xov_187","property-editor-actions":"awsui_property-editor-actions_1wzqe_d6xov_190","token-editor-actions":"awsui_token-editor-actions_1wzqe_d6xov_191","custom-content-wrapper":"awsui_custom-content-wrapper_1wzqe_d6xov_209","custom-control":"awsui_custom-control_1wzqe_d6xov_213",input:"awsui_input_1wzqe_d6xov_140",results:"awsui_results_1wzqe_d6xov_221","token-trigger":"awsui_token-trigger_1wzqe_d6xov_226","remove-all":"awsui_remove-all_1wzqe_d6xov_231","token-label":"awsui_token-label_1wzqe_d6xov_232","join-operation":"awsui_join-operation_1wzqe_d6xov_233","custom-filter-actions":"awsui_custom-filter-actions_1wzqe_d6xov_234"},Ey=(e,t,r,o,n)=>{const i=B.useRef(!1),a=()=>{i.current=!0},c=s=>{var u;xe(e,Object.assign(Object.assign({},s),{filteringText:(u=o??s.filteringText)!==null&&u!==void 0?u:"",filteringProperty:r,filteringOperator:n})),i.current=!1};return{onBlur:a,onFocus:()=>{i.current&&c({firstPage:!0,samePage:!1,filteringText:t})},onLoadItems:({detail:s})=>c(s)}};function Ez(e,t){let r=0,o=null;for(const n of e)(n.propertyLabel.length>=r&&kh(t,n.propertyLabel)||n.propertyLabel.length>r&&kh(t.toLowerCase(),n.propertyLabel.toLowerCase()))&&(r=n.propertyLabel.length,o=n);return o}function Lz(e,t){t=t.toLowerCase();let r=0,o=null;for(const n of e)n.length>r&&kh(t,n.toLowerCase())&&(r=n.length,o=n);return o}function Az(e,t){if(t.trim().length===0)return"";for(const r of e)if(kh(r.toLowerCase(),t.toLowerCase()))return t;return null}function NL({property:e,operator:t,value:r},o){var n,i;const a=o.filter(l=>l.property===e),c={propertyKey:e==null?void 0:e.propertyKey,operator:t,value:r};for(const l of a){if(l.label&&l.label===r||!l.label&&l.value===r)return{propertyKey:e==null?void 0:e.propertyKey,operator:t,value:l.value};typeof r=="string"&&r.toLowerCase()===((i=(n=l.label)!==null&&n!==void 0?n:l.value)!==null&&i!==void 0?i:"").toLowerCase()&&(c.value=l.value)}return c}function Bz(e){var t;const r=(t=e.property)===null||t===void 0?void 0:t.getValueFormatter(e.operator),o=e.property&&e.property.propertyLabel,n=r?r(e.value):e.value,i=`${o??""} ${e.operator} ${n}`;return{property:o??"",operator:e.operator,value:n,label:i}}function l_(e){let t=0;for(let r=0;r<e.length&&e[r]===" ";r++)t++;return e.slice(t)}function Dz(e){return e[0]===" "?e.slice(1):e}function kh(e,t){return e.indexOf(t)===0}const Rz=(e,t,r)=>{const{tokens:o,operation:n}=e,i=(u,h)=>xe(t,{tokens:u,operation:h});return{setToken:(u,h)=>{const f=[...o];f&&u<f.length&&(f[u]=h),i(f,n)},removeToken:u=>{var h;const f=o.filter((p,g)=>g!==u);i(f,n),(h=r.current)===null||h===void 0||h.focus({preventDropdown:!0})},removeAllTokens:()=>{var u;i([],n),(u=r.current)===null||u===void 0||u.focus({preventDropdown:!0})},addToken:u=>{const h=[...o];h.push(u),i(h,n)},setOperation:u=>{i(o,u)}}},is=e=>{const{operators:t=[],defaultOperator:r}=e,o=["=","!=",":","!:","^","!^",">=","<=","<",">"],n=new Set([r,...t]);return o.filter(i=>n.has(i))},gg=(e,t,r)=>{const o=/^(!:|!)(.*)/.exec(e);if(!r&&o)return{step:"free-text",operator:"!:",value:o[2]};const n=Ez(t,e);if(!n)return{step:"free-text",value:e};const i=is(n),a=e.substring(n.propertyLabel.length),c=Lz(i,l_(a));if(c){const d=a.indexOf(c)+c.length,s=a.slice(d),u=Dz(s);return{step:"property",property:n,operator:c,value:u}}const l=Az(i,l_(a));return l!==null?{step:"operator",property:n,operatorPrefix:l}:{step:"free-text",value:e}},Iz=(e,t="=",r,o)=>{var n;const i={label:(n=r.groupValuesText)!==null&&n!==void 0?n:"",options:[]},a={};return e.forEach(c=>{const l=c.property;if(!l||is(l).indexOf(t)===-1)return;if(l.propertyGroup&&!a[l.propertyGroup]){const s=o.reduce((u,h)=>h.group===l.propertyGroup?h.values:u,"");a[l.propertyGroup]={label:s,options:[]}}(l.propertyGroup?a[l.propertyGroup]:i).options.push({value:l.propertyLabel+" "+(t||"=")+" "+c.value,label:c.label,__labelPrefix:l.propertyLabel+" "+(t||"=")})}),[i,...Object.keys(a).map(c=>a[c])]};function Pz(e){const t={};for(const r of e)t[r.propertyKey]=(r.operators||[]).map(o=>({operator:o,form:r.getValueFormRenderer(o)})).sort((o,n)=>o.operator.localeCompare(n.operator));return(r,o)=>{if(t[r].length!==t[o].length)return!1;for(let n=0;n<t[r].length;n++)if(t[r][n].operator!==t[o][n].operator||t[r][n].form!==t[o][n].form)return!1;return!0}}const s_=e=>({value:e.propertyLabel,label:e.propertyLabel,keepOpenOnSelect:!0});function tv(e,t,r,o){var n;const i={label:(n=r.groupPropertiesText)!==null&&n!==void 0?n:"",options:[]},a={};e.forEach(d=>{const{propertyGroup:s}=d;let u=i;if(s){if(!a[s]){const h=t.reduce((f,p)=>p.group===s?p.properties:f,"");a[s]={options:[],label:h}}u=a[s]}u.options.push(o(d))});const c=i.options.length?[i]:[],l=Object.keys(a).map(d=>a[d]);return[...c,...l]}const $z=(e,t,r,o,n)=>{switch(e.step){case"property":{const{propertyLabel:i,groupValuesLabel:a}=e.property,c=r.filter(l=>l.property===e.property);return{filterText:e.value,options:[{options:c.map(({label:l,value:d})=>({value:i+" "+e.operator+" "+d,label:l,__labelPrefix:i+" "+e.operator})),label:a}]}}case"operator":return{filterText:e.property.propertyLabel+" "+e.operatorPrefix,options:[...tv(t,o,n,s_),{options:is(e.property).map(i=>({value:e.property.propertyLabel+" "+i+" ",label:e.property.propertyLabel+" "+i,description:rv(i,n),keepOpenOnSelect:!0})),label:n.operatorsText}]};case"free-text":{const i=!!e.value,a=!(e.step==="free-text"&&e.operator==="!:");return{filterText:e.value,options:[...a?tv(t,o,n,s_):[],...i?Iz(r,e.operator,n,o):[]]}}}},rv=(e,t)=>{switch(e){case"<":return t.operatorLessText;case"<=":return t.operatorLessOrEqualText;case">":return t.operatorGreaterText;case">=":return t.operatorGreaterOrEqualText;case":":return t.operatorContainsText;case"!:":return t.operatorDoesNotContainText;case"=":return t.operatorEqualsText;case"!=":return t.operatorDoesNotEqualText;case"^":return t.operatorStartsWithText;case"!^":return t.operatorDoesNotStartWithText;default:return""}},Oz=[":","!:"];function Mz({property:e,onChangePropertyKey:t,asyncProps:r,filteringProperties:o,onLoadItems:n,customGroupsText:i,i18nStrings:a,disableFreeTextFiltering:c}){var l;const d=Ey(n),s=r?Object.assign(Object.assign({},r),d):{},u=tv(o,i,a,({propertyKey:p,propertyLabel:g})=>({value:p,label:g,dontCloseOnSelect:!0})),h=Pz(o);u.forEach(p=>{"options"in p&&p.options.forEach(g=>{e!=null&&e.propertyKey&&g.value&&(g.disabled=!h(g.value,e.propertyKey))})});const f={label:a.allPropertiesLabel,value:void 0};return c||u.unshift(f),x.createElement(tu,Object.assign({options:u,selectedOption:e?{value:(l=e.propertyKey)!==null&&l!==void 0?l:void 0,label:e.propertyLabel}:f,onChange:p=>t(p.detail.selectedOption.value)},s))}function Nz({property:e,operator:t,onChangeOperator:r,i18nStrings:o}){const i=(e?is(e):[":","!:"]).map(a=>({value:a,label:a,description:rv(a,o)}));return x.createElement(tu,{options:i,triggerVariant:"option",selectedOption:t?{value:t,label:t,description:rv(t,o)}:null,onChange:a=>r(a.detail.selectedOption.value)})}function jz({property:e,operator:t,value:r,onChangeValue:o,asyncProps:n,filteringOptions:i,onLoadItems:a,i18nStrings:c}){var l,d,s;const u=e?i.filter(v=>{var m;return((m=v.property)===null||m===void 0?void 0:m.propertyKey)===e.propertyKey}).map(({label:v,value:m})=>({label:v,value:m})):[],h=Ey(a,"",e==null?void 0:e.externalProperty),f=e!=null&&e.propertyKey?Object.assign(Object.assign({},h),n):{empty:n.empty},[p]=u.filter(v=>v.value===r),g=(e==null?void 0:e.propertyKey)&&t&&(e==null?void 0:e.getValueFormRenderer(t));return g?x.createElement(g,{value:r,onChange:o,operator:t}):x.createElement(Bj,Object.assign({enteredTextLabel:(l=c.enteredTextLabel)!==null&&l!==void 0?l:v=>v,value:(s=(d=p==null?void 0:p.label)!==null&&d!==void 0?d:r)!==null&&s!==void 0?s:"",clearAriaLabel:c.clearAriaLabel,onChange:v=>o(v.detail.value),disabled:!t,options:u},f,{virtualScroll:!0}))}function Gz({asyncProperties:e,asyncProps:t,customGroupsText:r,disableFreeTextFiltering:o,expandToViewport:n,filteringProperties:i,filteringOptions:a,i18nStrings:c,onLoadItems:l,setToken:d,token:s,triggerComponent:u}){const[h,f]=B.useState(s),p=B.useRef(null),g=()=>{p.current&&p.current.dismissPopover()},v=h.property,m=b=>{var S;const T=i.reduce((P,D)=>D.propertyKey===b?D:P,void 0),L=T?is(T):Oz,I=h.operator&&L.indexOf(h.operator)!==-1?h.operator:L[0],A=(S=i.find(P=>P.propertyKey===b))!==null&&S!==void 0?S:null;f(Object.assign(Object.assign({},h),{property:A,operator:I}))},y=h.operator,C=b=>{f(Object.assign(Object.assign({},h),{operator:b}))},_=h.value,k=b=>{f(Object.assign(Object.assign({},h),{value:b}))};return x.createElement(SL,{ref:p,className:qt["token-label"],triggerType:"text",header:c.editTokenHeader,size:"large",position:"right",dismissAriaLabel:c.dismissAriaLabel,__onOpen:()=>f(s),renderWithPortal:n,content:x.createElement("div",{className:qt["token-editor"]},x.createElement("div",{className:qt["token-editor-form"]},x.createElement(Nn,{label:c.propertyText,className:qt["token-editor-field-property"]},x.createElement(Mz,{property:v,onChangePropertyKey:m,asyncProps:e?t:null,filteringProperties:i,onLoadItems:l,customGroupsText:r,i18nStrings:c,disableFreeTextFiltering:o})),x.createElement(Nn,{label:c.operatorText,className:qt["token-editor-field-operator"]},x.createElement(Nz,{property:v,operator:y,onChangeOperator:C,i18nStrings:c})),x.createElement(Nn,{label:c.valueText,className:qt["token-editor-field-value"]},x.createElement(jz,{property:v,operator:y,value:_,onChangeValue:k,asyncProps:t,filteringOptions:a,onLoadItems:l,i18nStrings:c}))),x.createElement("div",{className:qt["token-editor-actions"]},x.createElement(wn,{formAction:"none",variant:"link",className:qt["token-editor-cancel"],onClick:g},c.cancelActionText),x.createElement(wn,{className:qt["token-editor-submit"],formAction:"none",onClick:()=>{d(NL(h,a)),g()}},c.applyActionText)))},u)}const sa={root:"awsui_root_10m3l_ilcbp_103",token:"awsui_token_10m3l_ilcbp_108","show-operation":"awsui_show-operation_10m3l_ilcbp_123",select:"awsui_select_10m3l_ilcbp_129","token-content":"awsui_token-content_10m3l_ilcbp_133","dismiss-button":"awsui_dismiss-button_10m3l_ilcbp_138","token-disabled":"awsui_token-disabled_10m3l_ilcbp_180"};function zz({ariaLabel:e,showOperation:t,operation:r,andText:o,orText:n,dismissAriaLabel:i,operatorAriaLabel:a,disabled:c,children:l,onChange:d,onDismiss:s}){return x.createElement("div",{className:sa.root,role:"group","aria-label":e},t&&x.createElement(tu,{__inFilteringToken:!0,className:sa.select,options:[{value:"and",label:o},{value:"or",label:n}],selectedOption:{value:r,label:r==="and"?o:n},onChange:u=>d(u.detail.selectedOption.value),disabled:c,ariaLabel:a}),x.createElement("div",{className:W(sa.token,t&&sa["show-operation"],c&&sa["token-disabled"]),"aria-disabled":c},x.createElement("div",{className:sa["token-content"]},l),x.createElement("button",{type:"button",className:sa["dismiss-button"],"aria-label":i,onClick:s,disabled:c},x.createElement(ze,{name:"close"}))))}const Fz=({token:e,operation:t="and",first:r,removeToken:o,setToken:n,setOperation:i,filteringProperties:a,filteringOptions:c,asyncProps:l,onLoadItems:d,i18nStrings:s,asyncProperties:u,hideOperations:h,customGroupsText:f,disabled:p,disableFreeTextFiltering:g,expandToViewport:v})=>{var m,y,C,_;const k=Object.assign(Object.assign({},e),{propertyKey:(m=e.property)===null||m===void 0?void 0:m.propertyKey}),b=Bz(e);return x.createElement(zz,{ariaLabel:b.label,showOperation:!r&&!h,operation:t,andText:(y=s.operationAndText)!==null&&y!==void 0?y:"",orText:(C=s.operationOrText)!==null&&C!==void 0?C:"",dismissAriaLabel:(_=s==null?void 0:s.removeTokenButtonAriaLabel)===null||_===void 0?void 0:_.call(s,k),operatorAriaLabel:s.tokenOperatorAriaLabel,onChange:i,onDismiss:o,disabled:p},x.createElement(Gz,{setToken:n,triggerComponent:x.createElement("span",{className:qt["token-trigger"]},x.createElement(Hz,{property:b.property,operator:e.operator,value:b.value})),filteringProperties:a,filteringOptions:c,token:e,asyncProps:l,onLoadItems:d,i18nStrings:s,asyncProperties:u,customGroupsText:f,disableFreeTextFiltering:g,expandToViewport:v}))},Hz=({property:e,operator:t,value:r})=>{e&&(e+=" ");const n=t===":"&&!e?"":t+" ";return x.createElement(x.Fragment,null,e,x.createElement("span",{className:qt["token-operator"]},n),r)};function jL(e,t=""){if(!t)return e;const r=[];for(const o of e)if(Wz(o)){const n=jL(o.options,t);n.length>0&&r.push(Object.assign(Object.assign({},o),{options:n}))}else Vz(o,t)&&r.push(o);return r}function Wz(e){return"options"in e}function Vz(e,t){var r,o;t=t.toLowerCase();const n=((r=e.label)!==null&&r!==void 0?r:"").toLowerCase(),i=(o=e.__labelPrefix)!==null&&o!==void 0?o:"",a=(e.value?e.value.slice(i.length):"").toLowerCase();return n.indexOf(t)!==-1||a.indexOf(t)!==-1}const Uz=300,Kz=200,qz=x.forwardRef((e,t)=>{var r;const{value:o,onChange:n,onFocus:i,onBlur:a,onLoadItems:c,options:l,statusType:d="finished",placeholder:s,disabled:u,ariaLabel:h,enteredTextLabel:f,onKeyDown:p,virtualScroll:g,expandToViewport:v,customForm:m,filterText:y,onOptionClick:C,hideEnteredTextOption:_,searchResultsId:k}=e,b=de(e,["value","onChange","onFocus","onBlur","onLoadItems","options","statusType","placeholder","disabled","ariaLabel","enteredTextLabel","onKeyDown","virtualScroll","expandToViewport","customForm","filterText","onOptionClick","hideEnteredTextOption","searchResultsId"]),S=y===void 0?o:y,T=B.useRef(null),L=B.useRef(null),I=Lt(L,t),A=B.useMemo(()=>jL(l||[],S),[l,S]),[P,D]=xE({options:A,filterValue:o,filterText:S,filteringType:"manual",enteredTextLabel:f,hideEnteredTextLabel:_,onSelectItem:Q=>{var oe;const Z=Q.value||"";xe(n,{value:Z}),St(C,Q)?D.resetHighlightWithKeyboard():(oe=L.current)===null||oe===void 0||oe.close()}}),E=SE({options:l,statusType:d,onLoadItems:Q=>xe(c,Q)}),R=Q=>{D.resetHighlightWithKeyboard(),xe(n,Q.detail)},$=Q=>{E.fireLoadMoreOnInputChange(Q.detail.value)},N=()=>{E.fireLoadMoreOnInputFocus(),St(i,null)},M=()=>{St(a,null)},O=Q=>{St(p,Q.detail)},j=()=>{var Q;D.moveHighlightWithKeyboard(1),T.current&&((Q=Ma(T.current))===null||Q===void 0||Q.focus())},z=()=>{D.moveHighlightWithKeyboard(-1)},F=()=>D.selectHighlightedOptionWithKeyboard(),K=()=>{D.resetHighlightWithKeyboard()},U=()=>{var Q;E.fireLoadMoreOnRecoveryClick(),(Q=L.current)===null||Q===void 0||Q.focus()},Y=De("input"),V=(r=b.controlId)!==null&&r!==void 0?r:Y,q=De("list"),ee=De("footer"),X=De(),ie=P.highlightedOption?X:void 0,se=!o&&!P.items.length,me=Ef(Object.assign(Object.assign({},e),{isEmpty:se,onRecoveryClick:U,hasRecoveryCallback:!!c}));let ve=null;return m?ve=x.createElement("div",{ref:T,className:qt["custom-content-wrapper"]},m):P.items.length>0&&(ve=x.createElement(CE,{statusType:d,autosuggestItemsState:P,autosuggestItemsHandlers:D,highlightedOptionId:ie,highlightText:S,listId:q,controlId:V,handleLoadMore:E.fireLoadMoreOnScroll,hasDropdownStatus:me.content!==null,virtualScroll:g,listBottom:me.isSticky?null:x.createElement(qi,{content:me.content,id:ee}),ariaDescribedby:me.content?ee:void 0})),x.createElement(TE,Object.assign({ref:I},b,{className:W(jl.root,qt.input),value:o,onChange:R,onFocus:N,onBlur:M,onKeyDown:O,controlId:V,placeholder:s,disabled:u,ariaLabel:h,expandToViewport:v,ariaControls:q,ariaActivedescendant:ie,ariaDescribedby:Ro(k,b.ariaDescribedby),dropdownExpanded:P.items.length>1||me.content!==null||!!m,dropdownContentKey:m?"custom":"options",dropdownContent:ve,dropdownFooter:me.isSticky&&me.content?x.createElement(qi,{content:me.content,hasItems:P.items.length>=1,id:ee}):null,dropdownWidth:m?Kz:Uz,dropdownContentFocusable:!!m,onCloseDropdown:K,onDelayedInput:$,onPressArrowDown:j,onPressArrowUp:z,onPressEnter:F}))}),Yz=qz;function Xz({property:e,operator:t,filter:r,operatorForm:o,onCancel:n,onSubmit:i,i18nStrings:a}){const[c,l]=B.useState(null),d=()=>i({propertyKey:e.propertyKey,operator:t,value:c});return x.createElement("div",{className:qt["property-editor"]},x.createElement("div",{className:qt["property-editor-form"]},x.createElement(Nn,{label:e.groupValuesLabel},o({value:c,onChange:l,operator:t,filter:r}))),x.createElement("div",{className:qt["property-editor-actions"]},x.createElement(wn,{variant:"link",className:qt["property-editor-cancel"],onClick:n},a.cancelActionText),x.createElement(wn,{className:qt["property-editor-submit"],onClick:d},a.applyActionText)))}const Qz={root:"awsui_root_1sdq3_ms42k_99",input:"awsui_input_1sdq3_ms42k_137",results:"awsui_results_1sdq3_ms42k_141"},Zz=2e3;function Jz({id:e,children:t}){return x.createElement("span",{className:Qz.results},x.createElement(lo,{delay:Zz,visible:!0},x.createElement("span",{id:e},t)))}function e8(e){switch(e){case"=":return"equals";case"!=":return"not_equals";case">":return"greater_than";case">=":return"greater_than_equal";case"<":return"less_than";case"<=":return"less_than_equal";case":":return"contains";case"!:":return"not_contains";case"^":return"starts_with";case"!^":return"not_starts_with";default:return e}}const GL=x.forwardRef((e,t)=>{var r,o,n,i,a,c,l,d,s,u,h,f,p,g,v,m,y,C,_,k,b,S,T,L,I,A,P,{disabled:D,countText:E,query:R,hideOperations:$,onChange:N,filteringProperties:M,filteringOptions:O=[],customGroupsText:j=[],disableFreeTextFiltering:z=!1,onLoadItems:F,virtualScroll:K,customControl:U,customFilterActions:Y,filteringPlaceholder:V,filteringAriaLabel:q,filteringEmpty:ee,filteringLoadingText:X,filteringFinishedText:ie,filteringErrorText:se,filteringRecoveryText:me,filteringStatusType:ve,asyncProperties:Q,tokenLimit:oe,expandToViewport:Z}=e,G=de(e,["disabled","countText","query","hideOperations","onChange","filteringProperties","filteringOptions","customGroupsText","disableFreeTextFiltering","onLoadItems","virtualScroll","customControl","customFilterActions","filteringPlaceholder","filteringAriaLabel","filteringEmpty","filteringLoadingText","filteringFinishedText","filteringErrorText","filteringRecoveryText","filteringStatusType","asyncProperties","tokenLimit","expandToViewport"]);const{__internalRootRef:H}=ut("PropertyFilter",{props:{asyncProperties:Q,disableFreeTextFiltering:z,expandToViewport:Z,hideOperations:$,tokenLimit:oe,virtualScroll:K}}),[te,ae]=B.useState(null),le=B.useRef(null),we=Ie(G),ce=it("property-filter"),ye=Object.assign(Object.assign({},G.i18nStrings),{allPropertiesLabel:ce("i18nStrings.allPropertiesLabel",(r=G.i18nStrings)===null||r===void 0?void 0:r.allPropertiesLabel),applyActionText:ce("i18nStrings.applyActionText",(o=G.i18nStrings)===null||o===void 0?void 0:o.applyActionText),cancelActionText:ce("i18nStrings.cancelActionText",(n=G.i18nStrings)===null||n===void 0?void 0:n.cancelActionText),clearFiltersText:ce("i18nStrings.clearFiltersText",(i=G.i18nStrings)===null||i===void 0?void 0:i.clearFiltersText),editTokenHeader:ce("i18nStrings.editTokenHeader",(a=G.i18nStrings)===null||a===void 0?void 0:a.editTokenHeader),groupPropertiesText:ce("i18nStrings.groupPropertiesText",(c=G.i18nStrings)===null||c===void 0?void 0:c.groupPropertiesText),groupValuesText:ce("i18nStrings.groupValuesText",(l=G.i18nStrings)===null||l===void 0?void 0:l.groupValuesText),operationAndText:ce("i18nStrings.operationAndText",(d=G.i18nStrings)===null||d===void 0?void 0:d.operationAndText),operationOrText:ce("i18nStrings.operationOrText",(s=G.i18nStrings)===null||s===void 0?void 0:s.operationOrText),operatorContainsText:ce("i18nStrings.operatorContainsText",(u=G.i18nStrings)===null||u===void 0?void 0:u.operatorContainsText),operatorDoesNotContainText:ce("i18nStrings.operatorDoesNotContainText",(h=G.i18nStrings)===null||h===void 0?void 0:h.operatorDoesNotContainText),operatorDoesNotEqualText:ce("i18nStrings.operatorDoesNotEqualText",(f=G.i18nStrings)===null||f===void 0?void 0:f.operatorDoesNotEqualText),operatorEqualsText:ce("i18nStrings.operatorEqualsText",(p=G.i18nStrings)===null||p===void 0?void 0:p.operatorEqualsText),operatorGreaterOrEqualText:ce("i18nStrings.operatorGreaterOrEqualText",(g=G.i18nStrings)===null||g===void 0?void 0:g.operatorGreaterOrEqualText),operatorGreaterText:ce("i18nStrings.operatorGreaterText",(v=G.i18nStrings)===null||v===void 0?void 0:v.operatorGreaterText),operatorLessOrEqualText:ce("i18nStrings.operatorLessOrEqualText",(m=G.i18nStrings)===null||m===void 0?void 0:m.operatorLessOrEqualText),operatorLessText:ce("i18nStrings.operatorLessText",(y=G.i18nStrings)===null||y===void 0?void 0:y.operatorLessText),operatorStartsWithText:ce("i18nStrings.operatorStartsWithText",(C=G.i18nStrings)===null||C===void 0?void 0:C.operatorStartsWithText),operatorDoesNotStartWithText:ce("i18nStrings.operatorDoesNotStartWithText",(_=G.i18nStrings)===null||_===void 0?void 0:_.operatorDoesNotStartWithText),operatorText:ce("i18nStrings.operatorText",(k=G.i18nStrings)===null||k===void 0?void 0:k.operatorText),operatorsText:ce("i18nStrings.operatorsText",(b=G.i18nStrings)===null||b===void 0?void 0:b.operatorsText),propertyText:ce("i18nStrings.propertyText",(S=G.i18nStrings)===null||S===void 0?void 0:S.propertyText),tokenLimitShowFewer:ce("i18nStrings.tokenLimitShowFewer",(T=G.i18nStrings)===null||T===void 0?void 0:T.tokenLimitShowFewer),tokenLimitShowMore:ce("i18nStrings.tokenLimitShowMore",(L=G.i18nStrings)===null||L===void 0?void 0:L.tokenLimitShowMore),valueText:ce("i18nStrings.valueText",(I=G.i18nStrings)===null||I===void 0?void 0:I.valueText),removeTokenButtonAriaLabel:ce("i18nStrings.removeTokenButtonAriaLabel",(A=G.i18nStrings)===null||A===void 0?void 0:A.removeTokenButtonAriaLabel,Me=>He=>{var Xe;return Me({token__operator:e8(He.operator),token__propertyKey:(Xe=He.propertyKey)!==null&&Xe!==void 0?Xe:"",token__value:He.value})})});B.useImperativeHandle(t,()=>({focus:()=>{var Me;return(Me=le.current)===null||Me===void 0?void 0:Me.focus()}}),[]);const Ae=!!(!((P=R.tokens)===null||P===void 0)&&P.length)&&!D&&!!E,{addToken:ne,removeToken:pe,setToken:ue,setOperation:_e,removeAllTokens:Be}=Rz(R,N,le),[Re,qe]=B.useState(""),{internalProperties:je,internalOptions:Ve,internalQuery:$e}=(()=>{const Me=M.reduce((Ee,Oe)=>{var Qe,Qt,wr,Wr,ko;const Or=((Qe=Oe==null?void 0:Oe.operators)!==null&&Qe!==void 0?Qe:[]).reduce((tt,xt)=>typeof xt=="object"?tt.set(xt.operator,xt):tt,new Map);return Ee.set(Oe.key,{propertyKey:Oe.key,propertyLabel:(Qt=Oe==null?void 0:Oe.propertyLabel)!==null&&Qt!==void 0?Qt:"",groupValuesLabel:(wr=Oe==null?void 0:Oe.groupValuesLabel)!==null&&wr!==void 0?wr:"",propertyGroup:Oe==null?void 0:Oe.group,operators:((Wr=Oe==null?void 0:Oe.operators)!==null&&Wr!==void 0?Wr:[]).map(tt=>typeof tt=="string"?tt:tt.operator),defaultOperator:(ko=Oe==null?void 0:Oe.defaultOperator)!==null&&ko!==void 0?ko:"=",getValueFormatter:tt=>{var xt,Mt;return tt&&(Mt=(xt=Or.get(tt))===null||xt===void 0?void 0:xt.format)!==null&&Mt!==void 0?Mt:null},getValueFormRenderer:tt=>{var xt,Mt;return tt&&(Mt=(xt=Or.get(tt))===null||xt===void 0?void 0:xt.form)!==null&&Mt!==void 0?Mt:null},externalProperty:Oe}),Ee},new Map),He=Ee=>{var Oe;return(Oe=Me.get(Ee))!==null&&Oe!==void 0?Oe:null},Xe=O.map(Ee=>{var Oe,Qe;return{property:He(Ee.propertyKey),value:Ee.value,label:(Qe=(Oe=Ee.label)!==null&&Oe!==void 0?Oe:Ee.value)!==null&&Qe!==void 0?Qe:""}}),Rt={operation:R.operation,tokens:R.tokens.map(Ee=>({property:Ee.propertyKey?He(Ee.propertyKey):null,operator:Ee.operator,value:Ee.value}))};return{internalProperties:[...Me.values()],internalOptions:Xe,internalQuery:Rt}})(),Ke=gg(Re,je,z),Ot=$z(Ke,je,Ve,j,ye),Ft=Me=>{const He=gg(Me,je,z);let Xe;switch(He.step){case"property":{Xe=NL({property:He.property,operator:He.operator,value:He.value},Ve);break}case"free-text":{Xe={operator:He.operator||":",value:He.value};break}case"operator":{Xe={operator:":",value:Me};break}}z&&!("propertyKey"in Xe)||(ne(Xe),qe(""))},cr=B.useRef(!1),er=Me=>{Re&&!cr.current&&Me.detail.keyCode===ke.enter&&Ft(Re)},bt=(Me,He)=>{const Xe={filteringProperty:void 0,filteringText:He,filteringOperator:void 0};return Me.step==="property"&&(Xe.filteringProperty=Me.property.externalProperty,Xe.filteringText=Me.value,Xe.filteringOperator=Me.operator),Xe},lt=bt(Ke,Re),wt=Ey(F,lt.filteringText,lt.filteringProperty,lt.filteringText,lt.filteringOperator),dt={empty:ee,loadingText:X,finishedText:ie,errorText:se,recoveryText:me,statusType:ve},st=Re.length||Q?Object.assign(Object.assign({},wt),dt):{},Ht=Me=>{var He;cr.current=!0,setTimeout(()=>{cr.current=!1},0);const{detail:Xe}=Me,Rt=Xe.value||"";if(!("keepOpenOnSelect"in Xe)){Ft(Rt);return}Me.preventDefault();const Ee=gg(Rt,je,z),Oe=bt(Ee,Rt);if(Ee.step==="operator"){const Qe=is(Ee.property);Rt.trim()===Ee.property.propertyLabel&&Qe.length===1&&(Oe.filteringProperty=(He=Ee.property.externalProperty)!==null&&He!==void 0?He:void 0,Oe.filteringOperator=Qe[0],Oe.filteringText="",qe(Ee.property.propertyLabel+" "+Qe[0]+" "))}xe(F,Object.assign(Object.assign({},Oe),{firstPage:!0,samePage:!1}))},mt=Ke.step==="property"&&Ke.property.getValueFormRenderer(Ke.operator),Lr=De("property-filter-search-results");return x.createElement("div",Object.assign({},we,{className:W(we.className,qt.root),ref:H}),x.createElement("div",{className:qt["search-field"]},U&&x.createElement("div",{className:qt["custom-control"]},U),x.createElement(Yz,Object.assign({ref:le,virtualScroll:K,enteredTextLabel:ye.enteredTextLabel,ariaLabel:q??ye.filteringAriaLabel,placeholder:V??ye.filteringPlaceholder,ariaLabelledby:G.ariaLabelledby,ariaDescribedby:G.ariaDescribedby,controlId:G.controlId,value:Re,disabled:D,onKeyDown:er},Ot,{onChange:Me=>qe(Me.detail.value),empty:ee},st,{expandToViewport:Z,onOptionClick:Ht,customForm:mt&&x.createElement(Xz,{property:Ke.property,operator:Ke.operator,filter:Ke.value,operatorForm:mt,i18nStrings:ye,onCancel:()=>{var Me,He;qe(""),(Me=le.current)===null||Me===void 0||Me.close(),(He=le.current)===null||He===void 0||He.focus({preventDropdown:!0})},onSubmit:Me=>{var He,Xe;ne(Me),qe(""),(He=le.current)===null||He===void 0||He.focus({preventDropdown:!0}),(Xe=le.current)===null||Xe===void 0||Xe.close()}}),hideEnteredTextOption:z&&Ke.step!=="property",clearAriaLabel:ye.clearAriaLabel,searchResultsId:Ae?Lr:void 0})),Ae?x.createElement("div",{className:qt.results},x.createElement(Jz,{id:Lr},E)):null),$e.tokens&&$e.tokens.length>0&&x.createElement("div",{className:qt.tokens},x.createElement(li,{size:"xs",direction:"horizontal"},x.createElement(uE,{alignment:"inline",limit:oe,items:$e.tokens,renderItem:(Me,He)=>x.createElement(Fz,{token:Me,first:He===0,operation:$e.operation,removeToken:()=>{pe(He),ae(He)},setToken:Xe=>ue(He,Xe),setOperation:_e,filteringProperties:je,filteringOptions:Ve,asyncProps:dt,onLoadItems:F,i18nStrings:ye,asyncProperties:Q,hideOperations:$,customGroupsText:j,disableFreeTextFiltering:z,disabled:D,expandToViewport:Z}),i18nStrings:{limitShowFewer:ye.tokenLimitShowFewer,limitShowMore:ye.tokenLimitShowMore},after:Y?x.createElement("div",{className:qt["custom-filter-actions"]},Y):x.createElement(pt,{formAction:"none",onClick:Be,className:qt["remove-all"],disabled:D},ye.clearFiltersText),moveFocusNextToIndex:te}))))});at(GL,"PropertyFilter");const Nf=GL;function t8(e,t,r){if(t.length===0)return!0;r=r||Object.keys(e);var o=t.toLowerCase();return r.some(function(n){return String(e[n]).toLowerCase().indexOf(o)>-1})}function r8(e,t){var r;if(t===void 0&&(t=""),!e)return null;var o=(r=e.filteringFunction)!==null&&r!==void 0?r:t8;return function(n){return o(n,t,e.fields)}}function zL(e){return typeof e=="string"?e.includes("T")?new Date(e):new Date(e+"T00:00:00"):new Date(NaN)}function o8(e,t){return e instanceof Date&&typeof t=="string"?c_(e).getTime()-c_(zL(t)).getTime():NaN}function n8(e,t){return e instanceof Date&&typeof t=="string"?e.getTime()-zL(t).getTime():NaN}function c_(e){var t=new Date(e.getTime());return t.setHours(0,0,0,0),t}var FL=function(e,t,r){var o=r.operator,n=r.match;if(n==="date"||n==="datetime"){var i=n==="date"?o8:n8,a=i(e,t);switch(o){case"<":return a<0;case"<=":return a<=0;case">":return a>0;case">=":return a>=0;case"=":return a===0;case"!=":return a!==0;default:return!1}}else{if(typeof n=="function")return n(e,t);if(n)throw new Error("Unsupported `operator.match` type given.")}switch(o){case"<":return e<t;case"<=":return e<=t;case">":return e>t;case">=":return e>=t;case"=":return e==t;case"!=":return e!=t;case":":return(e+"").toLowerCase().indexOf((t+"").toLowerCase())>-1;case"!:":return(e+"").toLowerCase().indexOf((t+"").toLowerCase())===-1;case"^":return(e+"").toLowerCase().startsWith((t+"").toLowerCase());case"!^":return!(e+"").toLowerCase().startsWith((t+"").toLowerCase());default:throw new Error("Unsupported operator given.")}};function i8(e,t,r,o){var n=Object.keys(o).some(function(i){var a=o[i].operators;return!!a[r]&&FL(t[i],e,{operator:":"})});return r===":"?n:!n}function u_(e,t,r){if(e.propertyKey){if(!(e.propertyKey in r)||!(e.operator in r[e.propertyKey].operators))return!1;var o=r[e.propertyKey].operators[e.operator],n=o!=null&&o.match?t[e.propertyKey]:HL(t[e.propertyKey]);return FL(n,e.value,o??{operator:e.operator})}return i8(e.value,t,e.operator,r)}function a8(e){return function(t,r){for(var o=r.tokens,n=r.operation,i=n==="and"?!0:!o.length,a=0,c=o;a<c.length;a++){var l=c[a];i=n==="and"?i&&u_(l,t,e):i||u_(l,t,e)}return i}}function l8(e,t){if(t===void 0&&(t={tokens:[],operation:"and"}),!e)return null;var r=e.filteringProperties.reduce(function(n,i){var a,c=i.key,l=i.operators,d=i.defaultOperator,s=(a={},a[d??"="]={operator:d??"="},a);return l==null||l.forEach(function(u){typeof u=="string"?s[u]={operator:u}:s[u.operator]={operator:u.operator,match:u.match}}),n[c]={operators:s},n},{}),o=e.filteringFunction||a8(r);return function(n){return o(n,t)}}var HL=function(e){return typeof e=="boolean"?e+"":e||e===0?e:""};function s8(e){return e?function(t,r){var o,n,i=(o=t[e])!==null&&o!==void 0?o:"",a=(n=r[e])!==null&&n!==void 0?n:"";return typeof i=="string"&&typeof a=="string"?i.localeCompare(a):i<a?-1:i==a?0:1}:null}function c8(e,t){var r;if(!e||!t)return null;var o=t.isDescending?-1:1,n=(r=t.sortingColumn.sortingComparator)!==null&&r!==void 0?r:s8(t.sortingColumn.sortingField);return n?function(i,a){return n(i,a)*o}:null}var u8=10;function d8(e,t,r){var o;if(!e)return null;var n=(o=e.pageSize)!==null&&o!==void 0?o:u8,i=Math.ceil(r.length/n),a=t??1;return(a<1||a>i||Number.isNaN(a))&&(a=1),{pageSize:n,pagesCount:i,pageIndex:a}}var h8=function(){function e(t,r){var o=this,n;if(this.size=0,this.hasNesting=!1,this.roots=new Array,this.idToChildren=new Map,this.filter=function(u){return o.hasNesting?o.filterTree(u):(o.items=o.items.filter(u),o.size=o.items.length),o},this.sort=function(u){return o.hasNesting?o.sortTree(u):o.items=o.items.slice().sort(u),o},this.getChildren=function(u){var h;return(h=o.treeProps&&o.idToChildren.get(o.treeProps.getId(u)))!==null&&h!==void 0?h:[]},this.getItems=function(){return o.hasNesting?o.roots:o.items},this.getSize=function(){return o.size},this.filterTree=function(u){var h=function(p){var g=o.getChildren(p),v=g.filter(h);return o.size-=g.length-v.length,o.setChildren(p,v),u(p)||v.length>0},f=o.roots;o.roots=o.roots.filter(h),o.size-=f.length-o.roots.length},this.sortTree=function(u){var h=function(f){f.sort(u);for(var p=0,g=f;p<g.length;p++){var v=g[p];h(o.getChildren(v))}};h(o.roots)},this.size=t.length,this.items=t,this.treeProps=r,!!r){for(var i=0,a=t;i<a.length;i++){var c=a[i],l=r.getParentId(c);if(l===null)this.roots.push(c);else{var d=(n=this.idToChildren.get(l))!==null&&n!==void 0?n:[];d.push(c),this.idToChildren.set(l,d),this.hasNesting=!0}}var s=function(u,h){for(var f,p=0,g=(f=o.idToChildren.get(r.getId(u)))!==null&&f!==void 0?f:[];p<g.length;p++){var v=g[p];s(v)}};this.roots.forEach(function(u){return s(u)})}}return e.prototype.setChildren=function(t,r){this.treeProps&&this.idToChildren.set(this.treeProps.getId(t),r)},e}();function f8(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.some(Boolean)?function(r){for(var o=0,n=e;o<n.length;o++){var i=n[o];if(i&&!i(r))return!1}return!0}:null}function p8(e,t,r){var o=t.filteringText,n=t.sortingState,i=t.currentPageIndex,a=t.propertyFilteringQuery,c=r.filtering,l=r.sorting,d=r.pagination,s=r.propertyFiltering,u=r.expandableRows,h=new h8(e,u),f=f8(l8(s,a),r8(c,o));f&&h.filter(f);var p=c8(l,n);p&&h.sort(p);var g=h.getItems(),v=f?h.getSize():void 0,m=d8(d,i,g);return m?{items:g.slice((m.pageIndex-1)*m.pageSize,m.pageIndex*m.pageSize),allPageItems:g,filteredItemsCount:v,pagesCount:m==null?void 0:m.pagesCount,actualPageIndex:m==null?void 0:m.pageIndex,itemsTree:h}:{items:g,allPageItems:g,filteredItemsCount:v,pagesCount:void 0,actualPageIndex:void 0,itemsTree:h}}var Ch=function(e,t){return e?typeof e=="function"?e(t):t[e]:t},g8=function(e,t,r){var o=new Set;return t.forEach(function(n){return o.add(Ch(r,n))}),e.filter(function(n){return o.has(Ch(r,n))})},d_=function(e,t,r){if(e.length!==t.length)return!1;var o=new Set;return e.forEach(function(n){return o.add(Ch(r,n))}),t.every(function(n){return o.has(Ch(r,n))})},Ai=function(){return Ai=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Ai.apply(this,arguments)},h_=function(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};function m8(e,t){var r=Ai({},e);switch(t.type){case"selection":r.selectedItems=t.selectedItems;break;case"expansion":r.expandedItems=t.expandedItems;break;case"filtering":r.currentPageIndex=1,r.filteringText=t.filteringText;break;case"sorting":r.currentPageIndex=1,r.sortingState=t.sortingState;break;case"pagination":r.currentPageIndex=t.pageIndex;break;case"property-filtering":r.currentPageIndex=1,r.propertyFilteringQuery=t.query;break}return r}function v8(e){var t=e.dispatch,r=e.collectionRef;return{setFiltering:function(o){t({type:"filtering",filteringText:o}),r.current&&r.current.scrollToTop()},setSorting:function(o){t({type:"sorting",sortingState:o}),r.current&&r.current.scrollToTop()},setCurrentPage:function(o){t({type:"pagination",pageIndex:o}),r.current&&r.current.scrollToTop()},setSelectedItems:function(o){t({type:"selection",selectedItems:o})},setPropertyFiltering:function(o){t({type:"property-filtering",query:o}),r.current&&r.current.scrollToTop()},setExpandedItems:function(o){t({type:"expansion",expandedItems:o})}}}function y8(e,t,r,o,n){var i,a,c=t.filteringText,l=t.sortingState,d=t.selectedItems,s=t.expandedItems,u=t.currentPageIndex,h=t.propertyFilteringQuery,f=n.pagesCount,p=n.actualPageIndex,g=n.allItems,v=n.allPageItems,m=n.itemsTree,y=e.filtering?g.length?e.filtering.noMatch:e.filtering.empty:null;y=e.propertyFiltering?g.length?e.propertyFiltering.noMatch:e.propertyFiltering.empty:y;var C=e.propertyFiltering?e.propertyFiltering.filteringProperties.reduce(function(_,k){return Object.keys(g.reduce(function(b,S){return b[""+HL(S[k.key])]=!0,b},{})).forEach(function(b){b!==""&&_.push({propertyKey:k.key,value:b})}),_},[]):[];return{collectionProps:Ai(Ai(Ai(Ai(Ai({empty:y},e.sorting?{onSortingChange:function(_){var k=_.detail;r.setSorting(k)},sortingColumn:l==null?void 0:l.sortingColumn,sortingDescending:l==null?void 0:l.isDescending}:{}),e.expandableRows?{expandableRows:{getItemChildren:function(_){return m.getChildren(_)},isItemExpandable:function(_){return m.getChildren(_).length>0},expandedItems:s,onExpandableItemToggle:function(_){var k=_.detail,b=k.item,S=k.expanded,T=e.expandableRows.getId;if(S){for(var L=0,I=s;L<I.length;L++){var A=I[L];if(T(A)===T(b))return}r.setExpandedItems(h_(h_([],s,!0),[b],!1))}else r.setExpandedItems(s.filter(function(P){return T(P)!==T(b)}))}},trackBy:e.expandableRows.getId}:{}),e.selection?{onSelectionChange:function(_){var k=_.detail.selectedItems;r.setSelectedItems(k)},selectedItems:d,trackBy:e.selection.trackBy}:{}),{ref:o}),!((i=e.pagination)===null||i===void 0)&&i.pageSize?{totalItemsCount:v.length,firstIndex:((p??u)-1)*e.pagination.pageSize+1}:{}),filterProps:{filteringText:c,onChange:function(_){var k=_.detail.filteringText;r.setFiltering(k)}},propertyFilterProps:{query:h,onChange:function(_){var k=_.detail;r.setPropertyFiltering(k)},filteringProperties:((a=e.propertyFiltering)===null||a===void 0?void 0:a.filteringProperties)||[],filteringOptions:C},paginationProps:{currentPageIndex:p??u,pagesCount:f,onChange:function(_){var k=_.detail.currentPageIndex;r.setCurrentPage(k)}}}}function b8(e,t){var r,o,n,i,a,c,l,d,s,u,h,f=B.useReducer(m8,{selectedItems:(o=(r=e.selection)===null||r===void 0?void 0:r.defaultSelectedItems)!==null&&o!==void 0?o:[],expandedItems:(i=(n=e.expandableRows)===null||n===void 0?void 0:n.defaultExpandedItems)!==null&&i!==void 0?i:[],sortingState:(a=e.sorting)===null||a===void 0?void 0:a.defaultState,currentPageIndex:(l=(c=e.pagination)===null||c===void 0?void 0:c.defaultPage)!==null&&l!==void 0?l:1,filteringText:(s=(d=e.filtering)===null||d===void 0?void 0:d.defaultFilteringText)!==null&&s!==void 0?s:"",propertyFilteringQuery:(h=(u=e.propertyFiltering)===null||u===void 0?void 0:u.defaultQuery)!==null&&h!==void 0?h:{tokens:[],operation:"and"}}),p=f[0],g=f[1];return[p,v8({dispatch:g,collectionRef:t})]}var ov=function(){return ov=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ov.apply(this,arguments)};function jf(e,t){var r=B.useRef(null),o=b8(t,r),n=o[0],i=o[1],a=p8(e,n,t),c=a.items,l=a.allPageItems,d=a.pagesCount,s=a.filteredItemsCount,u=a.actualPageIndex,h=a.itemsTree,f=new Set;if(t.expandableRows)for(var p=0,g=n.expandedItems;p<g.length;p++){var v=g[p];f.add(t.expandableRows.getId(v))}var m=c;if(t.expandableRows){var y=new Array,C=t.expandableRows.getId,_=function(S){for(var T=0,L=S;T<L.length;T++){var I=L[T];y.push(I),f.has(C(I))&&_(h.getChildren(I))}};_(c),m=y}if(t.selection&&!t.selection.keepSelection){var k=g8(m,n.selectedItems,t.selection.trackBy);d_(k,n.selectedItems,t.selection.trackBy)||i.setSelectedItems(k)}if(t.expandableRows){var b=m.filter(function(S){return f.has(t.expandableRows.getId(S))});d_(b,n.expandedItems,t.expandableRows.getId)||i.setExpandedItems(b)}return ov({items:c,allPageItems:l,filteredItemsCount:s,actions:i},y8(t,n,i,r,{actualPageIndex:u,pagesCount:d,allItems:e,allPageItems:l,itemsTree:h}))}const w8={sortable:"caret-down",ascending:"caret-up-filled",descending:"caret-down-filled"},x8=(e,t,r,o)=>{if(t)return r?"descending":"ascending";if(e&&!o)return"sortable"},_8=e=>w8[e],k8=(e,t)=>e===t||e.sortingField!==void 0&&e.sortingField===t.sortingField||e.sortingComparator!==void 0&&e.sortingComparator===t.sortingComparator,lr={"header-cell":"awsui_header-cell_1spae_1xk01_99","header-cell-fake-focus":"awsui_header-cell-fake-focus_1spae_1xk01_133","header-cell-sticky":"awsui_header-cell-sticky_1spae_1xk01_154","header-cell-stuck":"awsui_header-cell-stuck_1spae_1xk01_157","header-cell-variant-full-page":"awsui_header-cell-variant-full-page_1spae_1xk01_157","header-cell-hidden":"awsui_header-cell-hidden_1spae_1xk01_160","header-cell-sortable":"awsui_header-cell-sortable_1spae_1xk01_163","sticky-cell":"awsui_sticky-cell_1spae_1xk01_166","sticky-cell-pad-left":"awsui_sticky-cell-pad-left_1spae_1xk01_174","has-selection":"awsui_has-selection_1spae_1xk01_174","sticky-cell-last-left":"awsui_sticky-cell-last-left_1spae_1xk01_177","resize-divider":"awsui_resize-divider_1spae_1xk01_181","sticky-cell-last-right":"awsui_sticky-cell-last-right_1spae_1xk01_184","sorting-icon":"awsui_sorting-icon_1spae_1xk01_199","edit-icon":"awsui_edit-icon_1spae_1xk01_207","header-cell-content":"awsui_header-cell-content_1spae_1xk01_213","header-cell-disabled":"awsui_header-cell-disabled_1spae_1xk01_267","header-cell-sorted":"awsui_header-cell-sorted_1spae_1xk01_267","header-cell-text":"awsui_header-cell-text_1spae_1xk01_281","header-cell-text-wrap":"awsui_header-cell-text-wrap_1spae_1xk01_285","header-cell-ascending":"awsui_header-cell-ascending_1spae_1xk01_291","header-cell-descending":"awsui_header-cell-descending_1spae_1xk01_292","is-visual-refresh":"awsui_is-visual-refresh_1spae_1xk01_302","has-striped-rows":"awsui_has-striped-rows_1spae_1xk01_313"},To={"resize-active":"awsui_resize-active_x7peu_sqn6e_99","resize-active-with-focus":"awsui_resize-active-with-focus_x7peu_sqn6e_99",divider:"awsui_divider_x7peu_sqn6e_104","divider-disabled":"awsui_divider-disabled_x7peu_sqn6e_118","divider-active":"awsui_divider-active_x7peu_sqn6e_121",resizer:"awsui_resizer_x7peu_sqn6e_125","has-focus":"awsui_has-focus_x7peu_sqn6e_182",tracker:"awsui_tracker_x7peu_sqn6e_205"};function f_(e,t){function r(o){const n=t[o];let i="";typeof n=="number"&&(i=n+"px"),typeof n=="string"&&(i=n),e.style[o]!==i&&(e.style[o]=i)}r("width"),r("minWidth"),r("maxWidth")}const Na=120;function C8(e,t){var r;const o=new Map;for(let n=0;n<t.length;n++){const i=t[n];let a=i.width||0;const c=i.minWidth||a||Na;if(!a&&n!==t.length-1){const l=e(i.id);a=(r=l==null?void 0:l.getBoundingClientRect().width)!==null&&r!==void 0?r:Na}o.set(i.id,Math.max(a,c))}return o}function S8(e,t,r,o){const n=e.find(c=>c.id===o),i=typeof(n==null?void 0:n.minWidth)=="number"?n.minWidth:Na;if(r=Math.max(r,i),t.get(o)===r)return t;const a=new Map(t);return a.set(o,r),a}const WL=B.createContext({getColumnStyles:()=>({}),columnWidths:new Map,updateColumn:()=>{},setCell:()=>{}});function T8({visibleColumns:e,resizableColumns:t,containerRef:r,children:o}){const n=B.useRef(null),i=B.useRef(0),[a,c]=B.useState(null),l=B.useRef(new Map),d=B.useRef(new Map),s=g=>{var v;return(v=l.current.get(g))!==null&&v!==void 0?v:null},u=(g,v,m)=>{const y=g?d:l;m?y.current.set(v,m):y.current.delete(v)},h=(g,v)=>{var m,y,C;const _=e.find(k=>k.id===v);if(!_)return{};if(g)return{width:((m=l.current.get(_.id))===null||m===void 0?void 0:m.offsetWidth)||((y=a==null?void 0:a.get(_.id))!==null&&y!==void 0?y:_.width)};if(t&&a){const k=_.id===((C=e[e.length-1])===null||C===void 0?void 0:C.id),b=e.reduce((S,{id:T})=>S+(a.get(T)||Na),0);return k&&i.current>b?{width:"auto",minWidth:_==null?void 0:_.minWidth}:{width:a.get(_.id),minWidth:_==null?void 0:_.minWidth}}return{width:_.width,minWidth:_.minWidth,maxWidth:t?void 0:_.maxWidth}},f=ao(()=>{for(const{id:g}of e){const v=l.current.get(g);v&&f_(v,h(!1,g))}for(const{id:g}of e){const v=d.current.get(g);v&&f_(v,h(!0,g))}});yn(r,({contentBoxWidth:g})=>{i.current=g,f()}),B.useEffect(()=>{if(f(),!t)return;let g=!1;const v=new Map(a),m=n.current;if(m){for(let y=0;y<e.length;y++){const C=e[y];!(a!=null&&a.get(C.id))&&m.indexOf(C.id)===-1&&(g=!0,v.set(C.id,C.width||Na))}g&&c(v)}n.current=e.map(y=>y.id)},[a,t,e,f]),B.useEffect(()=>{t&&c(()=>C8(s,e))},[]);function p(g,v){c(m=>S8(e,m??new Map,v,g))}return x.createElement(WL.Provider,{value:{getColumnStyles:h,columnWidths:a??new Map,updateColumn:p,setCell:u}},o)}function E8(){return B.useContext(WL)}function L8(e){if(!e)return null;const t=Oa(e,a=>a.tagName.toLowerCase()==="th");if(!t)return null;const r=Oa(t,a=>a.className.indexOf(Ye.root)>-1);if(!r)return null;const o=r.querySelector("table");if(!o)return null;const n=r.querySelector(`.${To.tracker}`);if(!n)return null;const i=es(t)[0];return i?{header:t,table:o,tracker:n,scrollParent:i}:null}function p_(e){var t;const r=e&&Oa(e,o=>o.tagName.toLowerCase()==="th");return(t=r==null?void 0:r.getBoundingClientRect().width)!==null&&t!==void 0?t:0}const A8=10,B8=10,g_=5;function VL({className:e}){return x.createElement("span",{className:W(To.divider,To["divider-disabled"],e)})}function D8({onWidthUpdate:e,onWidthUpdateCommit:t,ariaLabelledby:r,minWidth:o=Na,tabIndex:n,showFocusRing:i,focusId:a,roleDescription:c}){e=ao(e),t=ao(t);const l=De(),d=B.useRef(null),s=B.useRef(null),[u,h]=B.useState(!1),[f,p]=B.useState(!1),g=B.useRef(),[v,m]=B.useState(!1),[y,C]=B.useState(0);B.useEffect(()=>{C(p_(d.current))},[]),B.useEffect(()=>{const k=L8(d.current);if(!u&&!v||!k)return;const{left:b,right:S}=k.scrollParent.getBoundingClientRect(),T=R=>{const{left:$}=k.table.getBoundingClientRect();k.tracker.style.top=k.header.getBoundingClientRect().height+"px",k.tracker.style.left=R-$-1+"px"},L=R=>{const{right:$,width:N}=k.header.getBoundingClientRect(),M=R<o?o:R;T($+M-N),R>=o&&C(R),e(R)},I=R=>{if(R>b){const $=k.header.getBoundingClientRect().left,N=R-$;L(N)}},A=()=>{const R=k.header.getBoundingClientRect().width;g.current=setTimeout(A,B8),L(R+g_),k.scrollParent.scrollLeft+=g_},P=R=>{clearTimeout(g.current);const $=R.pageX;$>S?g.current=setTimeout(A,A8):I($)},D=R=>{I(R.pageX),h(!1),t(),clearTimeout(g.current)},E=R=>{var $,N;f?(R.keyCode===ke.left&&(R.preventDefault(),L(k.header.getBoundingClientRect().width-10)),R.keyCode===ke.right&&(R.preventDefault(),L(k.header.getBoundingClientRect().width+10)),(R.keyCode===ke.enter||R.keyCode===ke.space||R.keyCode===ke.escape)&&(R.preventDefault(),p(!1),($=d.current)===null||$===void 0||$.focus())):(R.keyCode===ke.enter||R.keyCode===ke.space)&&(R.preventDefault(),p(!0),(N=s.current)===null||N===void 0||N.focus())};return T(k.header.getBoundingClientRect().right),u&&(document.body.classList.add(To["resize-active"]),document.addEventListener("mousemove",P),document.addEventListener("mouseup",D)),v&&(document.body.classList.add(To["resize-active-with-focus"]),k.header.addEventListener("keydown",E)),f&&document.body.classList.add(To["resize-active"]),()=>{clearTimeout(g.current),document.body.classList.remove(To["resize-active"]),document.body.classList.remove(To["resize-active-with-focus"]),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",D),k.header.removeEventListener("keydown",E)}},[o,u,f,v,e,t]);const{tabIndex:_}=Cn(d,{tabIndex:n});return x.createElement(x.Fragment,null,x.createElement("button",{ref:d,className:W(To.resizer,(v||i||f)&&To["has-focus"]),onMouseDown:k=>{k.button===0&&(k.preventDefault(),h(!0))},onClick:()=>{var k;h(!1),m(!0),p(!0),(k=s.current)===null||k===void 0||k.focus()},onFocus:()=>{C(p_(d.current)),m(!0)},onBlur:k=>{k.relatedTarget!==s.current&&m(!1)},"aria-roledescription":c,"aria-labelledby":r,tabIndex:_,"data-focus-id":a}),x.createElement("span",{className:W(To.divider,u&&To["divider-active"]),"data-awsui-table-suppress-navigation":!0,ref:s,id:l,role:"separator",tabIndex:-1,"aria-hidden":!f,"aria-orientation":"vertical","aria-valuenow":y,"aria-valuetext":y.toFixed(0),"aria-valuemin":o,"data-focus-id":a,onBlur:()=>{m(!1),f&&p(!1),t()}}))}function R8(){return x.createElement("span",{className:To.tracker})}function I8(e,t){return e&&t?e.padLeft===t.padLeft&&e.lastLeft===t.lastLeft&&e.lastRight===t.lastRight&&e.offset.left===t.offset.left&&e.offset.right===t.offset.right:e===t}function P8(e,t){return e.scrollPaddingLeft===t.scrollPaddingLeft&&e.scrollPaddingRight===t.scrollPaddingRight}function $8(e,t){var r,o,n,i,a,c;const l=t.visibleColumns.length,d=[];for(let p=0;p<Math.min(l,t.stickyColumnsFirst);p++){const g=e.get(t.visibleColumns[p]),v=(r=g==null?void 0:g.getBoundingClientRect().width)!==null&&r!==void 0?r:0;d[p]=((o=d[p-1])!==null&&o!==void 0?o:0)+v}const s=[];for(let p=0;p<Math.min(l,t.stickyColumnsLast);p++){const g=e.get(t.visibleColumns[l-1-p]),v=(n=g==null?void 0:g.getBoundingClientRect().width)!==null&&n!==void 0?n:0;s[p]=((i=s[p-1])!==null&&i!==void 0?i:0)+v}const u=(a=d[t.stickyColumnsFirst-1])!==null&&a!==void 0?a:0,h=(c=s[t.stickyColumnsLast-1])!==null&&c!==void 0?c:0;return{offsets:t.visibleColumns.reduce((p,g,v)=>{var m,y;return p.set(g,{first:(m=d[v-1])!==null&&m!==void 0?m:0,last:(y=s[l-1-v-1])!==null&&y!==void 0?y:0})},new Map),stickyWidthLeft:u,stickyWidthRight:h}}const O8=148;function M8({visibleColumns:e,stickyColumnsFirst:t,stickyColumnsLast:r}){const o=B.useMemo(()=>new N8,[]),n=B.useRef(null),i=B.useRef(null),a=B.useRef(new Map),c=t+r>0,l=ao(()=>{n.current&&i.current&&o.updateCellStyles({wrapper:n.current,table:i.current,cells:a.current,visibleColumns:e,stickyColumnsFirst:t,stickyColumnsLast:r})});yn(n,l),yn(i,l),B.useEffect(()=>{n.current&&i.current&&o.updateCellStyles({wrapper:n.current,table:i.current,cells:a.current,visibleColumns:e,stickyColumnsFirst:t,stickyColumnsLast:r})},[o,t,r,e]),B.useEffect(()=>{if(!c)return;const h=g=>g.wrapperState,f=(g,v)=>{P8(g,v)||n.current&&(n.current.style.scrollPaddingLeft=g.scrollPaddingLeft+"px",n.current.style.scrollPaddingRight=g.scrollPaddingRight+"px")};return o.subscribe(h,(g,v)=>f(h(g),h(v)))},[o,c]);const d=B.useCallback(h=>{n.current&&n.current.removeEventListener("scroll",l),h&&c&&h.addEventListener("scroll",l),n.current=h},[c,l]),s=B.useCallback(h=>{i.current=h},[]),u=B.useCallback((h,f)=>{f?a.current.set(h,f):a.current.delete(h)},[]);return{store:o,style:{wrapper:c?Object.assign({},o.get().wrapperState):void 0},refs:{wrapper:d,table:s,cell:u}}}function UL({stickyColumns:e,columnId:t,getClassName:r}){var o;const n=e.refs.cell,i=B.useRef(null),a=B.useCallback(l=>{i.current&&i.current(),n(t,l);const d=u=>{var h;return(h=u.cellState.get(t))!==null&&h!==void 0?h:null},s=(u,h)=>{if(I8(u,h))return;const f=r(u);l&&(Object.keys(f).forEach(p=>{f[p]?l.classList.add(p):l.classList.remove(p)}),l.style.left=(u==null?void 0:u.offset.left)!==void 0?`${u.offset.left}px`:"",l.style.right=(u==null?void 0:u.offset.right)!==void 0?`${u.offset.right}px`:"")};l&&(i.current=e.store.subscribe(d,(u,h)=>{s(d(u),d(h))}))},[t,n,e.store]),c=e.store.get().cellState.get(t);return{ref:a,className:c?W(r(c)):void 0,style:(o=c==null?void 0:c.offset)!==null&&o!==void 0?o:void 0}}class N8 extends BN{constructor(){super({cellState:new Map,wrapperState:{scrollPaddingLeft:0,scrollPaddingRight:0}}),this.cellOffsets={offsets:new Map,stickyWidthLeft:0,stickyWidthRight:0},this.isStuckToTheLeft=!1,this.isStuckToTheRight=!1,this.padLeft=!1,this.generateCellStyles=t=>{const r=this.isEnabled(t),o=t.stickyColumnsFirst-1,n=t.visibleColumns.length-t.stickyColumnsLast;return t.visibleColumns.reduce((i,a,c)=>{var l,d,s,u;let h="non-sticky";if(c<t.stickyColumnsFirst?h="left":c>=t.visibleColumns.length-t.stickyColumnsLast&&(h="right"),!r||h==="non-sticky")return i;const f=c===0,p=(d=(l=this.cellOffsets.offsets.get(a))===null||l===void 0?void 0:l.first)!==null&&d!==void 0?d:0,g=(u=(s=this.cellOffsets.offsets.get(a))===null||s===void 0?void 0:s.last)!==null&&u!==void 0?u:0;return i.set(a,{padLeft:f&&this.padLeft,lastLeft:this.isStuckToTheLeft&&o===c,lastRight:this.isStuckToTheRight&&n===c,offset:{left:h==="left"?p:void 0,right:h==="right"?g:void 0}}),i},new Map)},this.updateCellOffsets=t=>{this.cellOffsets=$8(t.cells,t)},this.isEnabled=t=>{if(t.stickyColumnsFirst+t.stickyColumnsLast===0)return!1;const o=t.wrapper.getBoundingClientRect().width;if(!(t.table.getBoundingClientRect().width>o))return!1;const a=this.cellOffsets.stickyWidthLeft+this.cellOffsets.stickyWidthRight,c=parseFloat(getComputedStyle(t.table).paddingLeft)||0,l=parseFloat(getComputedStyle(t.table).paddingRight)||0;return a+O8+c+l<o}}updateCellStyles(t){const r=t.stickyColumnsFirst+t.stickyColumnsLast>0,o=this.cellOffsets.offsets.size>0;(r||o)&&(this.updateScroll(t),this.updateCellOffsets(t),this.set(()=>({cellState:this.generateCellStyles(t),wrapperState:{scrollPaddingLeft:this.cellOffsets.stickyWidthLeft,scrollPaddingRight:this.cellOffsets.stickyWidthRight}})))}updateScroll(t){const r=t.wrapper.scrollLeft,o=t.wrapper.scrollWidth,n=t.wrapper.clientWidth,i=parseFloat(getComputedStyle(t.table).paddingLeft)||0,a=parseFloat(getComputedStyle(t.table).paddingRight)||0;this.isStuckToTheLeft=r>i,this.isStuckToTheRight=Math.ceil(r)<o-n-a,this.padLeft=i!==0&&this.isStuckToTheLeft}}const j8={sortable:"none",ascending:"ascending",descending:"descending"},G8=e=>j8[e];function KL(e){const t={};return t.role=e.tableRole==="grid-default"?"grid":e.tableRole,t["aria-label"]=e.ariaLabel,t["aria-labelledby"]=e.ariaLabelledBy,t["aria-rowcount"]=e.totalItemsCount?e.totalItemsCount+1:-1,e.tableRole==="grid"&&(t["aria-colcount"]=e.totalColumnsCount),e.tableRole==="grid"&&(t.tabIndex=-1),t}function z8(e){const t={};return e.isScrollable&&(t.role="region",t.tabIndex=0,t["aria-label"]=e.ariaLabel),t}function F8(e){const t={};return(e.tableRole==="grid"||e.tableRole==="grid-default")&&(t["aria-rowindex"]=1),t}function H8(e){const t={};return e.tableRole==="grid"?t["aria-rowindex"]=(e.firstIndex||1)+e.rowIndex+1:e.firstIndex!==void 0&&(t["aria-rowindex"]=e.firstIndex+e.rowIndex+1),t}function W8(e){const t={};return t.scope="col",e.tableRole==="grid"&&(t["aria-colindex"]=e.colIndex+1),e.sortingStatus&&(t["aria-sort"]=G8(e.sortingStatus)),t}function V8(e){const t={};return e.tableRole==="grid"&&(t["aria-colindex"]=e.colIndex+1),e.isRowHeader&&(t.scope="row"),t}function mg(e){return e.closest("td,th")}function U8(e){return e instanceof HTMLInputElement||e instanceof HTMLButtonElement?e.disabled:!1}function K8(e){let t=e;for(;t;){if(t instanceof HTMLTableCellElement)return!1;if(t.getAttribute("role")==="dialog"||t.getAttribute("data-awsui-table-suppress-navigation")==="true")return!0;t=t.parentElement}return!1}function q8(e,t,r){var o;let n=null;const i=Array.from(e.querySelectorAll("tr[aria-rowindex]"));r<0&&i.reverse();for(const a of i){const c=parseInt((o=a.getAttribute("aria-rowindex"))!==null&&o!==void 0?o:"");if(n=a,c===t||r>=0&&c>t||r<0&&c<t)break}return n}function Y8(e,t,r){var o;let n=null;const i=Array.from(e.querySelectorAll("td[aria-colindex],th[aria-colindex]"));r<0&&i.reverse();for(const a of i){const c=parseInt((o=a.getAttribute("aria-colindex"))!==null&&o!==void 0?o:"");if(n=a,c===t||r>=0&&c>t||r<0&&c<t)break}return n}function X8({keyboardNavigation:e,pageSize:t,getTable:r,children:o}){const n=B.useMemo(()=>new Q8,[]),i=ao(r);return B.useEffect(()=>{if(e){const a=i();a&&n.init(a)}return()=>n.cleanup()},[e,n,i]),B.useEffect(()=>{n.update({pageSize:t})},[n,t]),B.useEffect(()=>{e&&n.refresh()}),x.createElement(G0.Provider,{value:{navigationActive:e,registerFocusable:n.registerFocusable}},o)}class Q8{constructor(){this._pageSize=0,this._table=null,this.focusedCell=null,this.keepUserIndex=!1,this.focusables=new Set,this.focusHandlers=new Map,this.focusablesState=new WeakMap,this.focusTarget=null,this.registerFocusable=(t,r)=>{var o;this.focusables.add(t),this.focusHandlers.set(t,r);const n=(o=this.focusablesState.get(t))!==null&&o!==void 0?o:!1,i=this.focusTarget===t||this.isSuppressed(t);return i!==n&&(this.focusablesState.set(t,i),r(i)),()=>this.unregisterFocusable(t)},this.unregisterFocusable=t=>{this.focusables.delete(t),this.focusHandlers.delete(t)},this.onFocusin=t=>{if(!(t.target instanceof HTMLElement)||(this.updateFocusedCell(t.target),!this.focusedCell))return;this.updateFocusTarget();const r=mg(this.focusedCell.element),o=this.focusedCell.element===r?this.getFocusablesFrom(r)[0]:null;o?o.focus():this.keepUserIndex=!1},this.onFocusout=()=>{setTimeout(()=>{this.focusedCell&&!fn(this.table,this.focusedCell.element)&&this.moveFocusBy(this.focusedCell,{x:0,y:0})},0)},this.onKeydown=t=>{if(!this.focusedCell)return;const r=t.ctrlKey?1:0,o=t.altKey?1:0,n=t.shiftKey?1:0,i=t.metaKey?1:0,a=r+o+n+i;let c=t.keyCode;if(a===1&&t.ctrlKey)c=-c;else if(a)return;const l=this.focusedCell;if(!(this.isSuppressed(document.activeElement)||!this.isRegistered(document.activeElement)))switch(c){case ke.up:return t.preventDefault(),this.moveFocusBy(l,{y:-1,x:0});case ke.down:return t.preventDefault(),this.moveFocusBy(l,{y:1,x:0});case ke.left:return t.preventDefault(),this.moveFocusBy(l,{y:0,x:-1});case ke.right:return t.preventDefault(),this.moveFocusBy(l,{y:0,x:1});case ke.pageUp:return t.preventDefault(),this.moveFocusBy(l,{y:-this.pageSize,x:0});case ke.pageDown:return t.preventDefault(),this.moveFocusBy(l,{y:this.pageSize,x:0});case ke.home:return t.preventDefault(),this.moveFocusBy(l,{y:0,x:-1/0});case ke.end:return t.preventDefault(),this.moveFocusBy(l,{y:0,x:1/0});case-ke.home:return t.preventDefault(),this.moveFocusBy(l,{y:-1/0,x:-1/0});case-ke.end:return t.preventDefault(),this.moveFocusBy(l,{y:1/0,x:1/0});default:return}}}init(t){this._table=t,this.table.addEventListener("focusin",this.onFocusin),this.table.addEventListener("focusout",this.onFocusout),this.table.addEventListener("keydown",this.onKeydown),this.updateFocusTarget(),this.cleanup=()=>{this.table.removeEventListener("focusin",this.onFocusin),this.table.removeEventListener("focusout",this.onFocusout),this.table.removeEventListener("keydown",this.onKeydown),this.focusables.forEach(this.unregisterFocusable)}}cleanup(){}update({pageSize:t}){this._pageSize=t}refresh(){setTimeout(()=>{var t;this._table&&(this.updateFocusedCell((t=this.focusedCell)===null||t===void 0?void 0:t.element),this.updateFocusTarget())},0)}get pageSize(){return this._pageSize}get table(){if(!this._table)throw new Error("Invariant violation: GridNavigationProcessor is used before initialization.");return this._table}moveFocusBy(t,r){var o;r.y!==0&&r.x===0&&(this.keepUserIndex=!0),(o=this.getNextFocusable(t,r))===null||o===void 0||o.focus()}updateFocusTarget(){var t;this.focusTarget=this.getSingleFocusable();for(const r of this.focusables){const o=(t=this.focusablesState.get(r))!==null&&t!==void 0?t:!1,n=this.focusTarget===r||this.isSuppressed(r);n!==o&&(this.focusablesState.set(r,n),this.focusHandlers.get(r)(n))}}isSuppressed(t){return this.focusedCell?!t||K8(t):!1}isRegistered(t){return!t||this.focusables.has(t)}updateFocusedCell(t){var r,o,n,i,a,c;if(!t)return;const l=mg(t),d=l==null?void 0:l.closest("tr");if(!l||!d)return;const s=parseInt((r=l.getAttribute("aria-colindex"))!==null&&r!==void 0?r:""),u=parseInt((o=d.getAttribute("aria-rowindex"))!==null&&o!==void 0?o:"");if(isNaN(s)||isNaN(u))return;const f=this.getFocusablesFrom(l).indexOf(t),p=(i=(n=this.focusedCell)===null||n===void 0?void 0:n.colIndex)!==null&&i!==void 0?i:-1,g=(c=(a=this.focusedCell)===null||a===void 0?void 0:a.elementIndex)!==null&&c!==void 0?c:-1;this.focusedCell={rowIndex:u,colIndex:this.keepUserIndex&&p!==-1?p:s,elementIndex:this.keepUserIndex&&g!==-1?g:f,element:t}}getNextFocusable(t,r){var o;const n=t.rowIndex+r.y,i=q8(this.table,n,r.y);if(!i)return null;const a=mg(t.element),c=a?this.getFocusablesFrom(a):[],l=t.elementIndex+r.x;if(r.x&&t.elementIndex!==-1&&0<=l&&l<c.length)return c[l];const d=t.colIndex+r.x,s=Y8(i,d,r.x);if(!s||s===a&&r.x!==0)return null;const u=this.getFocusablesFrom(s);let h=t.elementIndex;return(isFinite(r.x)&&r.x>0||r.x===-1/0)&&(h=0),(isFinite(r.x)&&r.x<0||r.x===1/0)&&(h=u.length-1),(o=u[h])!==null&&o!==void 0?o:s}getSingleFocusable(){var t;const r=this.focusedCell,o=this.table.querySelector("td,th");let n=(t=o&&this.getFocusablesFrom(o)[0])!==null&&t!==void 0?t:o;return r&&(n=this.getNextFocusable(r,{x:0,y:0})),n}getFocusablesFrom(t){return pT(t).filter(r=>this.focusables.has(r)&&!U8(r))}}function qL({className:e,style:t,sortingStatus:r,sortingDisabled:o,focusedComponent:n,hidden:i,colIndex:a,columnId:c,stickyState:l,cellRef:d,tableRole:s,children:u}){const h=UL({stickyColumns:l,columnId:c,getClassName:v=>$E(lr,v)}),f=B.useRef(null),p=Lt(h.ref,d,f),{tabIndex:g}=Cn(f);return x.createElement("th",Object.assign({"data-focus-id":`header-${String(c)}`,className:W(e,{[lr["header-cell-fake-focus"]]:n===`header-${String(c)}`,[lr["header-cell-sortable"]]:r,[lr["header-cell-sorted"]]:r==="ascending"||r==="descending",[lr["header-cell-disabled"]]:o,[lr["header-cell-ascending"]]:r==="ascending",[lr["header-cell-descending"]]:r==="descending",[lr["header-cell-hidden"]]:i},h.className),style:Object.assign(Object.assign({},t),h.style),ref:p},W8({tableRole:s,sortingStatus:r,colIndex:a}),{tabIndex:g}),u)}function Z8({className:e,style:t,tabIndex:r,column:o,activeSortingColumn:n,sortingDescending:i,sortingDisabled:a,wrapLines:c,focusedComponent:l,hidden:d,onClick:s,colIndex:u,updateColumn:h,resizableColumns:f,onResizeFinish:p,isEditable:g,columnId:v,stickyState:m,cellRef:y,tableRole:C,resizerRoleDescription:_}){var k;const b=it("table"),S=!!o.sortingComparator||!!o.sortingField,T=!!n&&k8(o,n),L=x8(S,T,!!i,!!a),I=()=>s({sortingColumn:o,isDescending:T?!i:!1}),A=({nativeEvent:R})=>{(R.keyCode===ke.enter||R.keyCode===ke.space)&&(R.preventDefault(),I())},P=De("table-header-"),D=B.useRef(null),{tabIndex:E}=Cn(D,{tabIndex:r});return x.createElement(qL,{className:e,style:t,cellRef:y,sortingStatus:L,sortingDisabled:a,focusedComponent:l,hidden:d,colIndex:u,columnId:v,stickyState:m,tableRole:C},x.createElement("div",Object.assign({ref:D,"data-focus-id":`sorting-control-${String(v)}`,className:W(lr["header-cell-content"],{[lr["header-cell-fake-focus"]]:l===`sorting-control-${String(v)}`}),"aria-label":o.ariaLabel?o.ariaLabel({sorted:T,descending:T&&!!i,disabled:!!a}):void 0},L&&!a?{onKeyPress:A,tabIndex:E,role:"button",onClick:I}:{}),x.createElement("div",{className:W(lr["header-cell-text"],c&&lr["header-cell-text-wrap"]),id:P},o.header,g?x.createElement("span",{className:lr["edit-icon"],role:"img","aria-label":b("columnDefinitions.editConfig.editIconAriaLabel",(k=o.editConfig)===null||k===void 0?void 0:k.editIconAriaLabel)},x.createElement(ze,{name:"edit"})):null),L&&x.createElement("span",{className:lr["sorting-icon"]},x.createElement(ze,{name:_8(L)}))),f?x.createElement(D8,{tabIndex:r,focusId:`resize-control-${String(v)}`,showFocusRing:l===`resize-control-${String(v)}`,onWidthUpdate:R=>h(v,R),onWidthUpdateCommit:p,ariaLabelledby:P,minWidth:typeof o.minWidth=="string"?parseInt(o.minWidth):o.minWidth,roleDescription:b("ariaLabels.resizerRoleDescription",_)}):x.createElement(VL,{className:lr["resize-divider"]}))}const J8=x.forwardRef(({selectionType:e,getSelectAllProps:t,columnDefinitions:r,sortingColumn:o,sortingDisabled:n,sortingDescending:i,resizableColumns:a,variant:c,wrapLines:l,onFocusMove:d,onSortingChange:s,onResizeFinish:u,singleSelectionHeaderAriaLabel:h,stripedRows:f,sticky:p=!1,hidden:g=!1,stuck:v=!1,stickyState:m,selectionColumnId:y,focusedComponent:C,onFocusedComponentChange:_,tableRole:k,resizerRoleDescription:b},S)=>{const T=W(lr["header-cell"],lr[`header-cell-variant-${c}`],p&&lr["header-cell-sticky"],v&&lr["header-cell-stuck"],f&&lr["has-striped-rows"],lr["is-visual-refresh"]),L=W(Ye["selection-control"],Ye["selection-control-header"],Ye["is-visual-refresh"]),{getColumnStyles:I,columnWidths:A,updateColumn:P,setCell:D}=E8();return x.createElement("thead",{className:W(!g&&Ye["thead-active"])},x.createElement("tr",Object.assign({},Hm.all,{ref:S,"aria-rowindex":1},F8({tableRole:k}),{onFocus:E=>{var R;const $=Oa(E.target,M=>!!M.getAttribute("data-focus-id")),N=(R=$==null?void 0:$.getAttribute("data-focus-id"))!==null&&R!==void 0?R:null;_==null||_(N)},onBlur:()=>_==null?void 0:_(null)}),e?x.createElement(qL,{className:W(T,L,g&&lr["header-cell-hidden"]),hidden:g,tableRole:k,colIndex:0,focusedComponent:C,columnId:y,stickyState:m},e==="multi"?x.createElement(ME,Object.assign({tableRole:k,onFocusDown:E=>{d(E.target,-1,1)},focusedComponent:C},t(),p?{tabIndex:-1}:{})):x.createElement(Ql,null,h),x.createElement(VL,{className:Ye["resize-divider"]})):null,r.map((E,R)=>{const $=wd(E,R);return x.createElement(Z8,{key:$,style:I(p,$),className:T,tabIndex:p?-1:0,focusedComponent:C,column:E,activeSortingColumn:o,sortingDescending:i,sortingDisabled:n,wrapLines:l,hidden:g,colIndex:e?R+1:R,columnId:$,updateColumn:P,onResizeFinish:()=>u(A),resizableColumns:a,onClick:N=>xe(s,N),isEditable:!!E.editConfig,stickyState:m,cellRef:N=>D(p,$,N),tableRole:k,resizerRoleDescription:b})})))}),YL=J8,Et={"body-cell":"awsui_body-cell_c6tup_6muoq_99","sticky-cell":"awsui_sticky-cell_c6tup_6muoq_133","body-cell-wrap":"awsui_body-cell-wrap_c6tup_6muoq_136","is-visual-refresh":"awsui_is-visual-refresh_c6tup_6muoq_148","has-striped-rows":"awsui_has-striped-rows_c6tup_6muoq_160","body-cell-edit-active":"awsui_body-cell-edit-active_c6tup_6muoq_163","body-cell-editable":"awsui_body-cell-editable_c6tup_6muoq_163","has-striped-rows-sticky-cell-pad-left":"awsui_has-striped-rows-sticky-cell-pad-left_c6tup_6muoq_169","has-selection":"awsui_has-selection_c6tup_6muoq_172","body-cell-first-row":"awsui_body-cell-first-row_c6tup_6muoq_178","body-cell-last-row":"awsui_body-cell-last-row_c6tup_6muoq_181","body-cell-selected":"awsui_body-cell-selected_c6tup_6muoq_181","has-footer":"awsui_has-footer_c6tup_6muoq_181","body-cell-shaded":"awsui_body-cell-shaded_c6tup_6muoq_191","sticky-cell-pad-left":"awsui_sticky-cell-pad-left_c6tup_6muoq_225","sticky-cell-last-right":"awsui_sticky-cell-last-right_c6tup_6muoq_242","sticky-cell-last-left":"awsui_sticky-cell-last-left_c6tup_6muoq_246","body-cell-next-selected":"awsui_body-cell-next-selected_c6tup_6muoq_269","body-cell-prev-selected":"awsui_body-cell-prev-selected_c6tup_6muoq_273","body-cell-editor-wrapper":"awsui_body-cell-editor-wrapper_c6tup_6muoq_297","body-cell-success":"awsui_body-cell-success_c6tup_6muoq_304","body-cell-editor":"awsui_body-cell-editor_c6tup_6muoq_297","body-cell-editor-disabled":"awsui_body-cell-editor-disabled_c6tup_6muoq_331","body-cell-editor-form":"awsui_body-cell-editor-form_c6tup_6muoq_340","body-cell-editor-row":"awsui_body-cell-editor-row_c6tup_6muoq_350","body-cell-editor-controls":"awsui_body-cell-editor-controls_c6tup_6muoq_360","body-cell-interactive":"awsui_body-cell-interactive_c6tup_6muoq_381","body-cell-edit-disabled-popover":"awsui_body-cell-edit-disabled-popover_c6tup_6muoq_423","body-cell-has-success":"awsui_body-cell-has-success_c6tup_6muoq_427"},Gf=x.forwardRef(({className:e,style:t,children:r,wrapLines:o,isRowHeader:n,isFirstRow:i,isLastRow:a,isSelected:c,isNextSelected:l,isPrevSelected:d,nativeAttributes:s,onClick:u,onMouseEnter:h,onMouseLeave:f,isEvenRow:p,stripedRows:g,isVisualRefresh:v,hasSelection:m,hasFooter:y,columnId:C,colIndex:_,stickyState:k,tableRole:b},S)=>{const T=n?"th":"td";s=Object.assign(Object.assign({},s),V8({tableRole:b,isRowHeader:n,colIndex:_}));const L=UL({stickyColumns:k,columnId:C,getClassName:D=>$E(Et,D)}),I=B.useRef(null),A=Lt(L.ref,S,I),{tabIndex:P}=Cn(I);return x.createElement(T,Object.assign({style:Object.assign(Object.assign({},t),L.style),className:W(e,Et["body-cell"],o&&Et["body-cell-wrap"],i&&Et["body-cell-first-row"],a&&Et["body-cell-last-row"],c&&Et["body-cell-selected"],l&&Et["body-cell-next-selected"],d&&Et["body-cell-prev-selected"],!p&&g&&Et["body-cell-shaded"],g&&Et["has-striped-rows"],v&&Et["is-visual-refresh"],m&&Et["has-selection"],y&&Et["has-footer"],L.className),onClick:u,onMouseEnter:h,onMouseLeave:f,ref:A},s,{tabIndex:P}),r)});function XL(e){const t=B.useRef(null),r=ao(e);return B.useEffect(()=>{function o(n){fn(t.current,n.target)||r()}return document.addEventListener("click",o,{capture:!0}),()=>document.removeEventListener("click",o,{capture:!0})},[r]),t}const eF=()=>{};function tF({ariaLabels:e,item:t,column:r,onEditEnd:o,submitEdit:n,__onRender:i}){var a,c,l,d;const[s,u]=B.useState(!1),[h,f]=B.useState(),p=it("table"),g=B.useRef(null),v={currentValue:h,setValue:f};function m({cancelled:A=!1,refocusCell:P=!0}={}){A||f(void 0),o({cancelled:A,refocusCell:P})}function y(A){var P;return Zh(this,void 0,void 0,function*(){if(A.preventDefault(),h===void 0){m();return}u(!0);try{yield n(t,r,h),u(!1),m()}catch{u(!1),(P=g.current)===null||P===void 0||P.focusFirst()}})}function C({reFocusEditedCell:A=!0}={}){s||m({cancelled:!0,refocusCell:A})}function _(A){A.key==="Escape"&&C()}const k=XL(()=>C({reFocusEditedCell:!1}));B.useEffect(()=>{if(i){const A=setTimeout(i,1);return()=>clearTimeout(A)}},[i]);const{ariaLabel:b=void 0,validation:S=eF,errorIconAriaLabel:T,constraintText:L,editingCell:I}=r.editConfig;return x.createElement(ts,{restoreFocus:!0,ref:g},x.createElement("div",{role:"dialog",ref:k,"aria-label":(a=e==null?void 0:e.activateEditLabel)===null||a===void 0?void 0:a.call(e,r,t),onKeyDown:_},x.createElement("form",{onSubmit:y,className:Et["body-cell-editor-form"]},x.createElement(Nn,{stretch:!0,label:b,constraintText:L,__hideLabel:!0,__disableGutters:!0,i18nStrings:{errorIconAriaLabel:T},errorText:S(t,h)},x.createElement("div",{className:Et["body-cell-editor-row"]},I(t,v),x.createElement("span",{className:Et["body-cell-editor-controls"]},x.createElement(li,{direction:"horizontal",size:"xxs"},s?null:x.createElement(wn,{ariaLabel:(c=e==null?void 0:e.cancelEditLabel)===null||c===void 0?void 0:c.call(e,r),formAction:"none",iconName:"close",variant:"inline-icon",onClick:()=>C()}),x.createElement(wn,{ariaLabel:(l=e==null?void 0:e.submitEditLabel)===null||l===void 0?void 0:l.call(e,r),formAction:"submit",iconName:"check",variant:"inline-icon",loading:s})),x.createElement(lo,null,s?p("ariaLabels.submittingEditText",(d=e==null?void 0:e.submittingEditText)===null||d===void 0?void 0:d.call(e,r)):"")))))))}function rF(e){var t,{className:r,item:o,column:n,ariaLabels:i,isEditing:a,onEditStart:c,onEditEnd:l,editDisabledReason:d,isVisualRefresh:s,interactiveCell:u=!0}=e,h=de(e,["className","item","column","ariaLabels","isEditing","onEditStart","onEditEnd","editDisabledReason","isVisualRefresh","interactiveCell"]);const f=XL(()=>{a&&l(!0)}),[p,g]=B.useState(!1),[v,m]=B.useState(!1),y=p||v||a||!u,C=B.useRef(null),_=B.useRef(null),k=B.useRef(null);function b(P){P.key==="Escape"&&l(!0)}const S=()=>{var P;c(),(P=_.current)===null||P===void 0||P.focus()},{targetProps:T,descriptionEl:L}=wf(d),I=yf(k),{tabIndex:A}=Cn(_);return x.createElement(Gf,Object.assign({},h,{nativeAttributes:{"data-inline-editing-active":a.toString()},className:W(r,Et["body-cell-editable"],u&&Et["body-cell-interactive"],a&&Et["body-cell-edit-disabled-popover"],s&&Et["is-visual-refresh"]),onClick:u&&!a?S:void 0,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),ref:f}),n.cell(o),x.createElement("div",{className:Et["body-cell-editor-wrapper"]},x.createElement("button",Object.assign({ref:_,tabIndex:A,className:W(Et["body-cell-editor"],Et["body-cell-editor-disabled"]),"aria-label":(t=i==null?void 0:i.activateEditLabel)===null||t===void 0?void 0:t.call(i,n,o),"aria-haspopup":"dialog","aria-disabled":"true",onClick:!u&&!a?S:void 0,onFocus:()=>m(!0),onBlur:()=>m(!1),onKeyDown:b},T),y&&x.createElement(ze,{name:"lock-private",variant:"normal",__internalRootRef:C}),L)),a&&x.createElement("span",{ref:k},x.createElement(Wa,null,x.createElement("span",{className:I},x.createElement(gf,{size:"medium",fixedWidth:!1,position:"top",trackRef:C,arrow:P=>x.createElement(J0,{position:P}),renderWithPortal:!0,zIndex:2e3},x.createElement(mf,{dismissButton:!1,dismissAriaLabel:void 0,header:null,onDismiss:()=>{},overflowVisible:"both"},x.createElement("span",{"aria-live":"polite"},d)))))))}const oF=()=>{throw new Error("The function `handleSubmit` is required for editable columns")};function nF(e){var t,r,o,{className:n,item:i,column:a,isEditing:c,onEditStart:l,onEditEnd:d,submitEdit:s,ariaLabels:u,isVisualRefresh:h,successfulEdit:f=!1,interactiveCell:p=!0}=e,g=de(e,["className","item","column","isEditing","onEditStart","onEditEnd","submitEdit","ariaLabels","isVisualRefresh","successfulEdit","interactiveCell"]);const v=it("table"),m=B.useRef(null),y={"data-inline-editing-active":c.toString()},C=B.useRef(!1);B.useEffect(()=>{!c&&m.current&&C.current&&(C.current=!1,m.current.focus())},[c]);const[_,k]=B.useState(!1),[b,S]=B.useState(!1),T=_||b||!p,L=Lc(f),I=Lc(b),[A,P]=B.useState(!1);B.useEffect(()=>{f&&L&&!b&&I&&P(!1),f&&!L&&P(!0)},[b,f,I,L]);const{tabIndex:D}=Cn(m);return x.createElement(Gf,Object.assign({},g,{nativeAttributes:y,className:W(n,Et["body-cell-editable"],p&&Et["body-cell-interactive"],c&&Et["body-cell-edit-active"],A&&T&&Et["body-cell-has-success"],h&&Et["is-visual-refresh"]),onClick:p&&!c?l:void 0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1)}),c?x.createElement(tF,{ariaLabels:u,column:a,item:i,onEditEnd:E=>{P(!1),C.current=E.refocusCell,d(E.cancelled)},submitEdit:s??oF}):x.createElement(x.Fragment,null,a.cell(i),A&&T&&x.createElement(x.Fragment,null,x.createElement("span",{className:Et["body-cell-success"],"aria-label":(t=u==null?void 0:u.successfulEditLabel)===null||t===void 0?void 0:t.call(u,a),role:"img",onMouseDown:E=>{E.preventDefault()}},x.createElement(ze,{name:"status-positive",variant:"success"})),x.createElement(lo,null,v("ariaLabels.successfulEditLabel",(r=u==null?void 0:u.successfulEditLabel)===null||r===void 0?void 0:r.call(u,a)))),x.createElement("div",{className:Et["body-cell-editor-wrapper"]},x.createElement("button",{className:Et["body-cell-editor"],"aria-label":(o=u==null?void 0:u.activateEditLabel)===null||o===void 0?void 0:o.call(u,a,i),ref:m,onClick:!p&&!c?l:void 0,onFocus:()=>S(!0),onBlur:()=>S(!1),tabIndex:D},T&&x.createElement(ze,{name:"edit"})))))}function iF(e){var t,r,{isEditable:o}=e,n=de(e,["isEditable"]);const i=(r=(t=n.column.editConfig)===null||t===void 0?void 0:t.disabledReason)===null||r===void 0?void 0:r.call(t,n.item);if(i)return x.createElement(rF,Object.assign({editDisabledReason:i},n));if(o||n.isEditing)return x.createElement(nF,Object.assign({},n));const{column:a,item:c}=n;return x.createElement(Gf,Object.assign({},n),a.cell(c))}function aF({onRowClick:e,onRowContextMenu:t}){return{onRowClickHandler:e&&((n,i,a)=>{const c=tn(a.target,l=>l.tagName.toLowerCase()==="td");(!c||!c.classList.contains(Ye["selection-control"]))&&xe(e,{rowIndex:n,item:i})}),onRowContextMenuHandler:t&&((n,i,a)=>{const c={rowIndex:n,item:i,clientX:a.clientX,clientY:a.clientY};St(t,c,a)})}}function lF(e,t=!Ea()){const r=B.useRef(null);return t?void 0:n=>{const i=n.currentTarget;i&&(r.current===null||r.current===i)&&requestAnimationFrame(()=>{r.current=i,e.forEach(a=>{const c=a.current;c&&c!==i&&(c.scrollLeft=i.scrollLeft)}),requestAnimationFrame(()=>{r.current=null})})}}const sF=(e,t,r,o,n)=>{const i=rn(),a=B.useCallback(()=>{e.current&&t.current&&r.current&&o.current&&n.current&&(o.current.style.width=`${e.current.offsetWidth}px`,n.current.style.marginTop=`-${t.current.offsetHeight}px`)},[t,r,o,n,e]);B.useLayoutEffect(()=>{a()}),yn(t,a);const c=()=>{if(!i&&t.current&&r.current&&n.current){const s=NE(t.current,r.current);s>0&&Wm(s,n.current)}},{scrollToItem:l}=I3(n,r);return{scrollToRow:s=>{i||l(s)},scrollToTop:c}},cF=B.forwardRef(uF);function uF({variant:e,theadProps:t,wrapperRef:r,theadRef:o,secondaryWrapperRef:n,onScroll:i,tableRef:a,tableHasHeader:c,contentDensity:l,tableRole:d},s){const u=B.useRef(null),h=B.useRef(null),{isStuck:f}=B.useContext(ly),[p,g]=B.useState(null),{scrollToRow:v,scrollToTop:m}=sF(a,o,u,h,r);return B.useImperativeHandle(s,()=>({scrollToTop:m,scrollToRow:v,setFocus:g})),x.createElement("div",{className:W(Ye["header-secondary"],Ye[`variant-${e}`],{[Ye.stuck]:f,[Ye["table-has-header"]]:c}),"aria-hidden":!0,tabIndex:-1,ref:n,onScroll:i},x.createElement("table",Object.assign({className:W(Ye.table,Ye["table-layout-fixed"],l==="compact"&&Wc("compact-table")),ref:h},KL({tableRole:d})),x.createElement(YL,Object.assign({ref:u,sticky:!0,stuck:f,focusedComponent:p},t))))}function dF(e,t){e.querySelectorAll("tr").forEach((r,o)=>{r.querySelectorAll("td").forEach((n,i)=>{t(n,o,i)})})}function hF({tableRole:e,selectionType:t,tableRoot:r,columnDefinitions:o,numRows:n}){const i=B.useMemo(()=>{const u=o.map(h=>!!h.editConfig);return t&&u.unshift(!1),u},[o,t]),a=i.length-1,c=t?1:0,l=B.useCallback((u,h)=>{r!=null&&r.current&&dF(r.current,(f,p,g)=>{var v;if(p===u&&g===h){const m=f.querySelector("button:last-child");m&&((v=m.focus)===null||v===void 0||v.call(m),Uc(m))}})},[r]),d=B.useCallback((u,h)=>{var f;const p=(f=r.current)===null||f===void 0?void 0:f.querySelector("td:focus-within");if(!p)return;const g=p.cellIndex,v=p.parentElement.rowIndex;let m=v,y=g;if(u!==0&&(m=Math.min(n,Math.max(v+u,0))),h!==0)for(;y<=a&&y>=c&&(y+=h,!i[y]););(v!==m||g!==y)&&r.current&&l(m,y)},[l,i,a,c,n,r]),s=B.useCallback(u=>{var h,f;if(!(!((h=r.current)===null||h===void 0)&&h.querySelector('[data-inline-editing-active = "true"]')||!(!((f=document.activeElement)===null||f===void 0)&&f.closest("[data-inline-editing-active]"))))switch(u.key){case"ArrowUp":u.preventDefault(),d(-1,0);break;case"ArrowDown":u.preventDefault(),d(1,0);break;case"ArrowLeft":u.preventDefault(),d(0,-1);break;case"ArrowRight":u.preventDefault(),d(0,1);break;default:return}},[d,r]);B.useEffect(()=>{if(!r.current||e==="grid")return;const u=r.current;return r.current.addEventListener("keydown",s),()=>u&&u.removeEventListener("keydown",s)},[e,i,s,r])}const Oi={"sticky-scrollbar":"awsui_sticky-scrollbar_faqt8_xxk3x_99","sticky-scrollbar-content":"awsui_sticky-scrollbar-content_faqt8_xxk3x_108","sticky-scrollbar-visible":"awsui_sticky-scrollbar-visible_faqt8_xxk3x_111","sticky-scrollbar-native-invisible":"awsui_sticky-scrollbar-native-invisible_faqt8_xxk3x_114","sticky-scrollbar-offset":"awsui_sticky-scrollbar-offset_faqt8_xxk3x_117","is-visual-refresh":"awsui_is-visual-refresh_faqt8_xxk3x_120"},m_=(e,t,r,o,n,i)=>{if(!e||!r||!t)return;const{width:a}=e.getBoundingClientRect(),{width:c}=t.getBoundingClientRect(),l=py().height;if(a>c?(r.classList.contains(Oi["sticky-scrollbar-visible"])||requestAnimationFrame(()=>{r.scrollLeft=t.scrollLeft}),r.classList.add(Oi["sticky-scrollbar-visible"]),l||r.classList.add(Oi["sticky-scrollbar-native-invisible"])):r.classList.remove(Oi["sticky-scrollbar-visible"]),l&&r&&o&&(r.style.height=`${l}px`,o.style.height=`${l}px`),e&&t&&o&&r){const s=t.getBoundingClientRect(),u=e.getBoundingClientRect();r.style.width=`${s.width}px`,o.style.width=`${u.width}px`,r.style.bottom=n?"0px":`${i}px`}};function fF(e,t,r,o,n,i){const[a,c]=B.useState(!1),[l,d]=B.useState(!1),s=a||l?0:n,u=o.current;B.useEffect(()=>{u&&Ea()&&(c(!!KS(u)),d(!!es(u)[0]))},[u]),B.useEffect(()=>{if(Ea()&&o.current&&r.current){const h=new IS(()=>{t.current&&m_(r.current,o.current,e.current,t.current,a,s)});return h.observe(o.current),h.observe(r.current),()=>{h.disconnect()}}},[t,e,r,o,s,a,i]),B.useEffect(()=>{if(Ea()){const h=()=>{m_(r.current,o.current,e.current,t.current,a,s)};return h(),window.addEventListener("resize",h),()=>{window.removeEventListener("resize",h)}}},[r,o,e,t,a,s])}const pF=B.forwardRef(gF);function gF({wrapperRef:e,tableRef:t,onScroll:r,hasStickyColumns:o},n){const i=x.useRef(null),a=x.useRef(null),c=Lt(n,i),l=o||py().height===0,{stickyOffsetBottom:d}=ry();return fF(i,a,t,e,d,l),x.createElement("div",{ref:c,className:W(Oi["sticky-scrollbar"],l&&Oi["sticky-scrollbar-offset"],Oi["is-visual-refresh"]),onScroll:r},x.createElement("div",{ref:a,className:Oi["sticky-scrollbar-content"]}))}function mF({onCancel:e,onSubmit:t}){const[r,o]=B.useState(null),[n,i]=B.useState(null),[a,c]=B.useState(!1),l=p=>{i(null),o(p)},d=B.useCallback(()=>o(null),[]);return{isLoading:a,startEdit:l,cancelEdit:d,checkEditing:({rowIndex:p,colIndex:g})=>p===(r==null?void 0:r.rowIndex)&&g===r.colIndex,checkLastSuccessfulEdit:({rowIndex:p,colIndex:g})=>p===(n==null?void 0:n.rowIndex)&&g===n.colIndex,completeEdit:(p,g)=>{St(e,{})||(o(null),g||i(p))},submitEdit:t?(...p)=>Zh(this,void 0,void 0,function*(){c(!0);try{yield t(...p)}finally{c(!1)}}):void 0}}function vF({totalColumnsCount:e,hasFooter:t,loading:r,loadingText:o,empty:n,tableRef:i,containerRef:a}){const c=B.useRef(null);return yn(a,({contentBoxWidth:l})=>{if(i.current&&c.current&&Ea()){const d=parseFloat(getComputedStyle(i.current).paddingLeft)||0,s=parseFloat(getComputedStyle(i.current).paddingRight)||0,u=l+d+s;c.current.style.width=Math.floor(u)+"px"}}),x.createElement("td",{colSpan:e,className:W(Ye["cell-merged"],t&&Ye["has-footer"])},x.createElement("div",{ref:c,className:Ye["cell-merged-content"],"data-awsui-table-suppress-navigation":!0},r?x.createElement(Ec,{type:"loading",className:Ye.loading,wrapText:!0},x.createElement(lo,{visible:!0},o)):x.createElement("div",{className:Ye.empty},n)))}const yF=10,bF=54,td=Symbol("selection-column-id"),wF=x.forwardRef((e,t)=>{const{funnelSubStepProps:r}=Fa(),o=Object.assign(Object.assign({},e),{__funnelSubStepProps:r});return x.createElement(QL,Object.assign({},o,{ref:t}))}),QL=x.forwardRef((e,t)=>{var r,o,n,i,a,{header:c,footer:l,empty:d,filter:s,pagination:u,preferences:h,items:f,columnDefinitions:p,trackBy:g,loading:v,loadingText:m,selectionType:y,selectedItems:C,isItemDisabled:_,ariaLabels:k,onSelectionChange:b,onSortingChange:S,sortingColumn:T,sortingDescending:L,sortingDisabled:I,visibleColumns:A,stickyHeader:P,stickyHeaderVerticalOffset:D,onRowClick:E,onRowContextMenu:R,wrapLines:$,stripedRows:N,contentDensity:M,submitEdit:O,onEditCancel:j,resizableColumns:z,onColumnWidthsChange:F,variant:K,__internalRootRef:U,totalItemsCount:Y,firstIndex:V,renderAriaLive:q,stickyColumns:ee,columnDisplay:X,enableKeyboardNavigation:ie=!1,__funnelSubStepProps:se}=e,me=de(e,["header","footer","empty","filter","pagination","preferences","items","columnDefinitions","trackBy","loading","loadingText","selectionType","selectedItems","isItemDisabled","ariaLabels","onSelectionChange","onSortingChange","sortingColumn","sortingDescending","sortingDisabled","visibleColumns","stickyHeader","stickyHeaderVerticalOffset","onRowClick","onRowContextMenu","wrapLines","stripedRows","contentDensity","submitEdit","onEditCancel","resizableColumns","onColumnWidthsChange","variant","__internalRootRef","totalItemsCount","firstIndex","renderAriaLive","stickyColumns","columnDisplay","enableKeyboardNavigation","__funnelSubStepProps"]);const ve=Ie(me);P=P&&Ea();const Q=rn(),[oe,Z]=zr(rt=>rt.contentBoxWidth),G=B.useRef(null),H=Lt(Z,G),[te,ae]=zr(rt=>rt.contentBoxWidth),le=B.useRef(null),we=x.useRef(null),ce=B.useRef(null),ye=x.useRef(null),Ae=x.useRef(null),ne=mF({onCancel:j,onSubmit:O}),{cancelEdit:pe}=ne,ue=de(ne,["cancelEdit"]);qS("table",!0,le,()=>{var rt,We,_t,tr;const jo=(_t=(We=(rt=Mt.current)===null||rt===void 0?void 0:rt.querySelector(`.${Nt["heading-text"]}`))===null||We===void 0?void 0:We.innerText)!==null&&_t!==void 0?_t:(tr=Mt.current)===null||tr===void 0?void 0:tr.innerText;return{loading:v??!1,header:jo}},[v]),B.useImperativeHandle(t,()=>{var rt;return{scrollToTop:((rt=ye.current)===null||rt===void 0?void 0:rt.scrollToTop)||(()=>{}),cancelEdit:pe}},[pe]);const _e=B.useRef(null),Be=lF([_e,Ae,we]),{moveFocusDown:Re,moveFocusUp:qe,moveFocus:je}=A3(y,f.length),{onRowClickHandler:Ve,onRowContextMenuHandler:$e}=aF({onRowClick:E,onRowContextMenu:R}),Ke=C3({columnDefinitions:p,columnDisplay:X,visibleColumns:A}),{isItemSelected:Ot,getSelectAllProps:Ft,getItemSelectionProps:cr,updateShiftToggle:er}=R3({items:f,trackBy:g,selectedItems:C,selectionType:y,isItemDisabled:_,onSelectionChange:b,ariaLabels:k,loading:v}),bt=kn(),lt=K,wt=!!(c||s||u||h),dt=!!y,st=Q&&K==="full-page"&&!!u,Ht=!!l||st,mt=B.useRef(void 0),Lr=!(k!=null&&k.tableLabel)&&!!c,Me=B.useCallback(rt=>{mt.current=rt},[]),He=[],Xe=[];dt&&(He.push({id:td,width:bF}),Xe.push(td));for(let rt=0;rt<Ke.length;rt++){const We=wd(Ke[rt],rt);He.push(Object.assign(Object.assign({},Ke[rt]),{id:We})),Xe.push(We)}const Rt=M8({visibleColumns:Xe,stickyColumnsFirst:((r=ee==null?void 0:ee.first)!==null&&r!==void 0?r:0)+(ee!=null&&ee.first&&dt?1:0),stickyColumnsLast:(ee==null?void 0:ee.last)||0}),Ee=((o=ee==null?void 0:ee.first)!==null&&o!==void 0?o:0)+((n=ee==null?void 0:ee.last)!==null&&n!==void 0?n:0)>0,Oe=!!p.find(rt=>rt.editConfig),Qe=ie?"grid":Oe?"grid-default":"table",Qt={selectionType:y,getSelectAllProps:Ft,columnDefinitions:Ke,variant:lt,wrapLines:$,resizableColumns:z,sortingColumn:T,sortingDisabled:I,sortingDescending:L,onSortingChange:S,onFocusMove:je,onResizeFinish(rt){const We=p.map((tr,jo)=>rt.get(wd(tr,jo))||tr.width||Na);We.some((tr,jo)=>p[jo].width!==tr)&&xe(F,{widths:We})},singleSelectionHeaderAriaLabel:k==null?void 0:k.selectionGroupLabel,resizerRoleDescription:k==null?void 0:k.resizerRoleDescription,stripedRows:N,stickyState:Rt,selectionColumnId:td,tableRole:Qe},wr=Lt(_e,Rt.refs.wrapper),Wr=Lt(ae,le,Rt.refs.table),ko=z8({tableRole:Qe,isScrollable:!!(te&&oe&&te>oe),ariaLabel:k==null?void 0:k.tableLabel}),Or=$3(),tt=lt==="full-page",xt=Bf({disabled:!tt});hF({tableRole:Qe,selectionType:y,tableRoot:le,columnDefinitions:Ke,numRows:f==null?void 0:f.length});const Mt=B.useRef(null),Ka=(a=(i=Mt==null?void 0:Mt.current)===null||i===void 0?void 0:i.getBoundingClientRect().height)!==null&&a!==void 0?a:0,qa=y?Ke.length+1:Ke.length;return x.createElement(Jl.Provider,{value:{defaultVariant:"primary"}},x.createElement(T8,{visibleColumns:He,resizableColumns:z,containerRef:G},x.createElement(fE,Object.assign({},ve,{__internalRootRef:U,className:W(ve.className,Ye.root),__funnelSubStepProps:se,header:x.createElement(x.Fragment,null,wt&&x.createElement("div",{ref:xt,className:W(tt&&[Ye["dark-header"],_n()])},x.createElement("div",{ref:Mt,className:W(Ye["header-controls"],Ye[`variant-${lt}`])},x.createElement(Df.Provider,{value:{assignId:Me}},x.createElement(x3,{header:c,filter:s,pagination:u,preferences:h})))),P&&x.createElement(cF,{ref:ye,variant:lt,theadProps:Qt,wrapperRef:_e,theadRef:ce,secondaryWrapperRef:we,tableRef:le,onScroll:Be,tableHasHeader:wt,contentDensity:M,tableRole:Qe})),disableHeaderPaddings:!0,disableContentPaddings:!0,variant:k3(lt),__disableFooterPaddings:!0,__disableFooterDivider:!0,__disableStickyMobile:!1,footer:Ht?x.createElement("div",{className:W(Ye["footer-wrapper"],Ye[`variant-${lt}`])},x.createElement("div",{className:W(Ye.footer,st&&Ye["footer-with-pagination"])},l&&x.createElement("span",null,l),st&&x.createElement("div",{className:Ye["footer-pagination"]},u))):null,__stickyHeader:P,__mobileStickyOffset:Ka,__stickyOffset:D},Hm.root),x.createElement("div",Object.assign({ref:wr,className:W(Ye.wrapper,Ye[`variant-${lt}`],{[Ye["has-footer"]]:Ht,[Ye["has-header"]]:wt}),style:Rt.style.wrapper,onScroll:Be},ko),x.createElement("div",{className:Ye["wrapper-content-measure"],ref:H}),!!q&&!!V&&x.createElement(lo,null,x.createElement("span",null,q({totalItemsCount:Y,firstIndex:V,lastIndex:V+f.length-1}))),x.createElement(X8,{keyboardNavigation:Qe==="grid",pageSize:yF,getTable:()=>le.current},x.createElement("table",Object.assign({ref:Wr,className:W(Ye.table,z&&Ye["table-layout-fixed"],M==="compact"&&Wc("compact-table"))},KL({tableRole:Qe,totalItemsCount:Y,totalColumnsCount:qa,ariaLabel:k==null?void 0:k.tableLabel,ariaLabelledBy:Lr&&mt.current?mt.current:void 0})),x.createElement(YL,Object.assign({ref:ce,hidden:P,onFocusedComponentChange:rt=>{var We;return(We=ye.current)===null||We===void 0?void 0:We.setFocus(rt)}},Qt)),x.createElement("tbody",null,v||f.length===0?x.createElement("tr",null,x.createElement(vF,{totalColumnsCount:qa,hasFooter:Ht,loading:v,loadingText:m,empty:d,tableRef:le,containerRef:G})):f.map((rt,We)=>{const _t=We===0,tr=We===f.length-1,jo=We%2===0,Ya=!!y&&Ot(rt),up=!!y&&!_t&&Ot(f[We-1]),Xa=!!y&&!tr&&Ot(f[We+1]);return x.createElement("tr",Object.assign({key:_3(g,rt,We),className:W(Ye.row,Ya&&Ye["row-selected"]),onFocus:({currentTarget:ho})=>{var ur;ho.contains(Or())||(ur=ye.current)===null||ur===void 0||ur.scrollToRow(ho)}},Hm.item,{onClick:Ve&&Ve.bind(null,We,rt),onContextMenu:$e&&$e.bind(null,We,rt)},H8({tableRole:Qe,firstIndex:V,rowIndex:We})),y!==void 0&&x.createElement(Gf,{className:W(Ye["selection-control"]),isVisualRefresh:bt,isFirstRow:_t,isLastRow:tr,isSelected:Ya,isNextSelected:Xa,isPrevSelected:up,wrapLines:!1,isEvenRow:jo,stripedRows:N,hasSelection:dt,hasFooter:Ht,stickyState:Rt,columnId:td,colIndex:0,tableRole:Qe},x.createElement(ME,Object.assign({tableRole:Qe,onFocusDown:Re,onFocusUp:qe,onShiftToggle:er},cr(rt)))),Ke.map((ho,ur)=>{var Qa;const dp=ue.checkEditing({rowIndex:We,colIndex:ur}),hp=ue.checkLastSuccessfulEdit({rowIndex:We,colIndex:ur}),fp=!!ho.editConfig&&!ue.isLoading;return x.createElement(iF,{key:wd(ho,ur),style:z?{}:{width:ho.width,minWidth:ho.minWidth,maxWidth:ho.maxWidth},ariaLabels:k,column:ho,item:rt,wrapLines:$,isEditable:fp,isEditing:dp,isRowHeader:ho.isRowHeader,isFirstRow:_t,isLastRow:tr,isSelected:Ya,isNextSelected:Xa,isPrevSelected:up,successfulEdit:hp,onEditStart:()=>ue.startEdit({rowIndex:We,colIndex:ur}),onEditEnd:pp=>ue.completeEdit({rowIndex:We,colIndex:ur},pp),submitEdit:ue.submitEdit,hasFooter:Ht,stripedRows:N,isEvenRow:jo,columnId:(Qa=ho.id)!==null&&Qa!==void 0?Qa:ur,colIndex:y!==void 0?ur+1:ur,stickyState:Rt,isVisualRefresh:bt,tableRole:Qe})}))})))),z&&x.createElement(R8,null)),x.createElement(pF,{ref:Ae,wrapperRef:_e,tableRef:le,onScroll:Be,hasStickyColumns:Ee}))))}),xF=QL,ZL=x.forwardRef((e,t)=>{var{options:r=[],filteringType:o="none",statusType:n="finished",triggerVariant:i="label"}=e,a=de(e,["options","filteringType","statusType","triggerVariant"]);const c=ut("Select",{props:{autoFocus:a.autoFocus,expandToViewport:a.expandToViewport,filteringType:o,triggerVariant:i,virtualScroll:a.virtualScroll}}),l=Pf(a);return x.createElement(tu,Object.assign({options:r,filteringType:o,statusType:n,triggerVariant:i},l,c,{ref:t}))});at(ZL,"Select");const v_=ZL,kt={root:"awsui_root_l0dv0_s3klw_99",header:"awsui_header_l0dv0_s3klw_136","header-link":"awsui_header-link_l0dv0_s3klw_149","header-link--has-logo":"awsui_header-link--has-logo_l0dv0_s3klw_159","header-link-text":"awsui_header-link-text_l0dv0_s3klw_159","header-logo":"awsui_header-logo_l0dv0_s3klw_164","header-logo--stretched":"awsui_header-logo--stretched_l0dv0_s3klw_170","list-container":"awsui_list-container_l0dv0_s3klw_175",list:"awsui_list_l0dv0_s3klw_175","list-variant-root":"awsui_list-variant-root_l0dv0_s3klw_187","list-variant-root--last":"awsui_list-variant-root--last_l0dv0_s3klw_194","list-variant-expandable-link-group":"awsui_list-variant-expandable-link-group_l0dv0_s3klw_198","list-item":"awsui_list-item_l0dv0_s3klw_202",section:"awsui_section_l0dv0_s3klw_210","expandable-link-group":"awsui_expandable-link-group_l0dv0_s3klw_211","section--no-ident":"awsui_section--no-ident_l0dv0_s3klw_214","expandable-link-group--no-ident":"awsui_expandable-link-group--no-ident_l0dv0_s3klw_215",refresh:"awsui_refresh_l0dv0_s3klw_223","list-variant-section-group":"awsui_list-variant-section-group_l0dv0_s3klw_231","section-group":"awsui_section-group_l0dv0_s3klw_238","section-group-title":"awsui_section-group-title_l0dv0_s3klw_249",link:"awsui_link_l0dv0_s3klw_253","link-active":"awsui_link-active_l0dv0_s3klw_262",info:"awsui_info_l0dv0_s3klw_299","external-icon":"awsui_external-icon_l0dv0_s3klw_303",divider:"awsui_divider_l0dv0_s3klw_307","divider-default":"awsui_divider-default_l0dv0_s3klw_313","divider-header":"awsui_divider-header_l0dv0_s3klw_318"};function JL(e,t){for(const r of e)if((r.type==="link"||r.type==="link-group"||r.type==="expandable-link-group")&&r.href===t||(r.type==="section"||r.type==="link-group"||r.type==="expandable-link-group")&&JL(r.items,t))return!0;return!1}function eA(e,t=new WeakMap,r=[]){return e.forEach(o=>{const n=r.slice();(o.type==="section"||o.type==="expandable-link-group")&&(t.set(o,r),n.unshift(o)),(o.type==="section"||o.type==="link-group"||o.type==="expandable-link-group")&&eA(o.items,t,n)}),t}function _F({definition:e,activeHref:t,fireFollow:r}){bn("SideNavigation",e.href);const o=B.useCallback(n=>{ci(n)&&r(e,n)},[r,e]);return x.createElement(x.Fragment,null,x.createElement("h2",{className:kt.header},x.createElement("a",{href:e.href,className:W(kt["header-link"],{[kt["header-link--has-logo"]]:!!e.logo}),"aria-current":e.href===t?"page":void 0,onClick:o},e.logo&&x.createElement("img",Object.assign({className:W(kt["header-logo"],{[kt["header-logo--stretched"]]:!e.text})},e.logo)),x.createElement("span",{className:kt["header-link-text"]},e.text))),x.createElement(tA,{isPresentational:!0,variant:"header"}))}function hu({items:e,variant:t,activeHref:r,fireChange:o,fireFollow:n}){const i=[];let a=0;i[a]={listVariant:t,items:[]},e.forEach((l,d)=>{var s,u,h,f,p;const g=d+1;switch(l.type){case"divider":{const v=i.length;i[v]={element:x.createElement("div",{"data-itemid":`item-${g}`},x.createElement(tA,{variant:"default"}))},a=i.length,i[a]={listVariant:t,items:[]};return}case"link":{(s=i[a].items)===null||s===void 0||s.push({element:x.createElement("li",{key:d,"data-itemid":`item-${g}`,className:kt["list-item"]},x.createElement(Ly,{definition:l,activeHref:r,fireChange:o,fireFollow:n}))});return}case"section":{(u=i[a].items)===null||u===void 0||u.push({element:x.createElement("li",{key:d,"data-itemid":`item-${g}`,className:kt["list-item"]},x.createElement(kF,{definition:l,activeHref:r,variant:t,fireChange:o,fireFollow:n}))});return}case"section-group":{(h=i[a].items)===null||h===void 0||h.push({element:x.createElement("li",{key:d,"data-itemid":`item-${g}`,className:kt["list-item"]},x.createElement(CF,{definition:l,activeHref:r,fireChange:o,fireFollow:n}))});return}case"link-group":{(f=i[a].items)===null||f===void 0||f.push({element:x.createElement("li",{key:d,"data-itemid":`item-${g}`,className:kt["list-item"]},x.createElement(SF,{definition:l,activeHref:r,fireChange:o,fireFollow:n}))});return}case"expandable-link-group":{(p=i[a].items)===null||p===void 0||p.push({element:x.createElement("li",{key:d,"data-itemid":`item-${g}`,className:kt["list-item"]},x.createElement(TF,{definition:l,activeHref:r,fireChange:o,fireFollow:n,variant:t}))});return}}});const c=i.length-1;return x.createElement(x.Fragment,null,i.map((l,d)=>!l.items||l.items.length===0?x.createElement("div",{key:`hr-${d}`,className:W(kt.list,kt[`list-variant-${t}`],{[kt["list-variant-root--last"]]:l.listVariant==="root"&&d===c})},l.element):x.createElement("ul",{key:`list-${d}`,className:W(kt.list,kt[`list-variant-${l.listVariant}`],{[kt["list-variant-root--last"]]:l.listVariant==="root"&&d===c})},l.items.map(s=>s.element))))}function tA({variant:e="default",isPresentational:t=!1}){return x.createElement("hr",{className:W(kt.divider,kt[`divider-${e}`]),role:t?"presentation":void 0})}function Ly({definition:e,expanded:t,activeHref:r,fireFollow:o}){bn("SideNavigation",e.href);const n=e.href===r,i=B.useCallback(a=>{ci(a)&&o(e,a)},[o,e]);return x.createElement(x.Fragment,null,x.createElement("a",{href:e.href,className:W(kt.link,{[kt["link-active"]]:n}),target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,"aria-expanded":t,"aria-current":e.href===r?"page":void 0,onClick:i},e.text,e.external&&x.createElement("span",{"aria-label":e.externalIconAriaLabel,role:e.externalIconAriaLabel?"img":void 0},x.createElement(ze,{name:"external",className:kt["external-icon"]}))),e.info&&x.createElement("span",{className:kt.info},e.info))}function kF({definition:e,activeHref:t,fireFollow:r,fireChange:o,variant:n}){var i;const[a,c]=B.useState((i=e.defaultExpanded)!==null&&i!==void 0?i:!0),l=B.useCallback(d=>{o(e,d.detail.expanded),c(d.detail.expanded)},[e,o]);return B.useEffect(()=>{var d;c((d=e.defaultExpanded)!==null&&d!==void 0?d:!0)},[e]),x.createElement(cy,{variant:"footer",expanded:a,onChange:l,className:W(kt.section,n==="section-group"&&kt["section--no-ident"],kt.refresh),headerText:e.text},x.createElement(hu,{variant:"section",items:e.items,fireFollow:r,fireChange:o,activeHref:t}))}function CF({definition:e,activeHref:t,fireFollow:r,fireChange:o}){return x.createElement("div",{className:kt["section-group"]},x.createElement(xn,{className:kt["section-group-title"],variant:"h3"},e.title),x.createElement(hu,{variant:"section-group",items:e.items,fireFollow:r,fireChange:o,activeHref:t}))}function SF({definition:e,activeHref:t,fireFollow:r,fireChange:o}){return bn("SideNavigation",e.href),x.createElement(x.Fragment,null,x.createElement(Ly,{definition:{type:"link",href:e.href,text:e.text,info:e.info},fireFollow:(n,i)=>r(e,i),fireChange:o,activeHref:t}),x.createElement(hu,{variant:"link-group",items:e.items,fireFollow:r,fireChange:o,activeHref:t}))}function TF({definition:e,fireFollow:t,fireChange:r,activeHref:o,variant:n}){const i=B.useMemo(()=>o?JL(e.items,o):!1,[o,e.items]),[a,c]=B.useState(()=>{var h;return(h=e.defaultExpanded)!==null&&h!==void 0?h:e.href===o||i}),[l,d]=B.useState();B.useEffect(()=>d(void 0),[e]),B.useEffect(()=>{c(e.href===o||i)},[e.href,i,o]),B.useEffect(()=>{e.defaultExpanded!==void 0&&c(e.defaultExpanded)},[e]);const s=B.useCallback(h=>{r(e,h.detail.expanded),d(h.detail.expanded)},[e,r]),u=(h,f)=>{t(e,f),d(!0),a||r(e,!0)};return x.createElement(cy,{className:W(kt["expandable-link-group"],n==="section-group"&&kt["expandable-link-group--no-ident"]),variant:"navigation",expanded:l??a,onChange:s,headerText:x.createElement(Ly,{definition:{type:"link",href:e.href,text:e.text},expanded:l??a,fireFollow:u,fireChange:r,activeHref:o})},x.createElement(hu,{variant:"expandable-link-group",items:e.items,fireFollow:t,fireChange:r,activeHref:o}))}function rA(e){var{header:t,activeHref:r,items:o=[],onFollow:n,onChange:i}=e,a=de(e,["header","activeHref","items","onFollow","onChange"]);const{__internalRootRef:c}=ut("SideNavigation"),l=Ie(a),d=B.useMemo(()=>eA(o),[o]),s=B.useCallback((h,f)=>{xe(i,{item:h,expanded:f,expandableParents:d.get(h)})},[i,d]),u=B.useCallback((h,f)=>{St(n,h,f)},[n]);return x.createElement("div",Object.assign({},l,{className:W(kt.root,l.className),ref:c}),t&&x.createElement(_F,{definition:t,activeHref:r,fireChange:s,fireFollow:u}),o&&x.createElement("div",{className:kt["list-container"]},x.createElement(hu,{variant:"root",items:o,fireFollow:u,fireChange:s,activeHref:r})))}at(rA,"SideNavigation");function re(e){var{direction:t="vertical"}=e,r=de(e,["direction"]);const o=ut("SpaceBetween",{props:{alignItems:r.alignItems,direction:t,size:r.size}});return x.createElement(li,Object.assign({direction:t},r,o))}at(re,"SpaceBetween");const oA=x.forwardRef((e,t)=>{var{items:r=[],selectedItems:o=[],variant:n="container",contentDensity:i="comfortable"}=e,a=de(e,["items","selectedItems","variant","contentDensity"]);const c=ut("Table",{props:{contentDensity:i,resizableColumns:a.resizableColumns,selectionType:a.selectionType,stickyHeader:a.stickyHeader,stripedRows:a.stripedRows,variant:n,wrapLines:a.wrapLines,enableKeyboardNavigation:a.enableKeyboardNavigation}}),l=Object.assign(Object.assign(Object.assign({items:r,selectedItems:o,variant:n,contentDensity:i},a),c),{ref:t});return n==="borderless"||n==="embedded"?x.createElement(xF,Object.assign({},l)):x.createElement(sy,null,x.createElement(wF,Object.assign({},l)))});at(oA,"Table");const fu=oA,EF={"text-content":"awsui_text-content_6absk_1rcdq_100"};function Le(e){var{children:t}=e,r=de(e,["children"]);const{__internalRootRef:o}=ut("TextContent"),n=Ie(r),i=W(n.className,EF["text-content"]);return x.createElement("div",Object.assign({},n,{className:i,ref:o}),t)}at(Le,"TextContent");const Ce={icon:"awsui_icon_k5dlb_d6w6r_99","top-navigation":"awsui_top-navigation_k5dlb_d6w6r_117","padding-box":"awsui_padding-box_k5dlb_d6w6r_152",medium:"awsui_medium_k5dlb_d6w6r_162",narrow:"awsui_narrow_k5dlb_d6w6r_162",virtual:"awsui_virtual_k5dlb_d6w6r_173",hidden:"awsui_hidden_k5dlb_d6w6r_177","	":"awsui_	_k5dlb_d6w6r_1",identity:"awsui_identity_k5dlb_d6w6r_189","identity-link":"awsui_identity-link_k5dlb_d6w6r_192","no-logo":"awsui_no-logo_k5dlb_d6w6r_212",logo:"awsui_logo_k5dlb_d6w6r_216",title:"awsui_title_k5dlb_d6w6r_228",inputs:"awsui_inputs_k5dlb_d6w6r_243",search:"awsui_search_k5dlb_d6w6r_251","search-expanded":"awsui_search-expanded_k5dlb_d6w6r_255",utilities:"awsui_utilities_k5dlb_d6w6r_259","utility-wrapper":"awsui_utility-wrapper_k5dlb_d6w6r_270","utility-type-button-link":"awsui_utility-type-button-link_k5dlb_d6w6r_291","utility-type-menu-dropdown":"awsui_utility-type-menu-dropdown_k5dlb_d6w6r_296","utility-type-button-primary-button":"awsui_utility-type-button-primary-button_k5dlb_d6w6r_305","utility-link-icon":"awsui_utility-link-icon_k5dlb_d6w6r_313","utility-button-external-icon":"awsui_utility-button-external-icon_k5dlb_d6w6r_317","offset-right-none":"awsui_offset-right-none_k5dlb_d6w6r_321","offset-right-l":"awsui_offset-right-l_k5dlb_d6w6r_325","offset-right-xxl":"awsui_offset-right-xxl_k5dlb_d6w6r_329","overflow-menu-drawer":"awsui_overflow-menu-drawer_k5dlb_d6w6r_334","overflow-menu":"awsui_overflow-menu_k5dlb_d6w6r_334","overflow-menu-header":"awsui_overflow-menu-header_k5dlb_d6w6r_378","overflow-menu-header-text":"awsui_overflow-menu-header-text_k5dlb_d6w6r_386","overflow-menu-header-text--secondary":"awsui_overflow-menu-header-text--secondary_k5dlb_d6w6r_398","overflow-menu-header-text--title":"awsui_overflow-menu-header-text--title_k5dlb_d6w6r_404","overflow-menu-back-button":"awsui_overflow-menu-back-button_k5dlb_d6w6r_408","overflow-menu-dismiss-button":"awsui_overflow-menu-dismiss-button_k5dlb_d6w6r_412","overflow-menu-control":"awsui_overflow-menu-control_k5dlb_d6w6r_416","overflow-menu-list-item-utility":"awsui_overflow-menu-list-item-utility_k5dlb_d6w6r_457","overflow-menu-control-link":"awsui_overflow-menu-control-link_k5dlb_d6w6r_465","overflow-menu-control-expandable-menu-trigger":"awsui_overflow-menu-control-expandable-menu-trigger_k5dlb_d6w6r_468","overflow-menu-list":"awsui_overflow-menu-list_k5dlb_d6w6r_457","overflow-menu-list-submenu":"awsui_overflow-menu-list-submenu_k5dlb_d6w6r_504","overflow-menu-list-item":"awsui_overflow-menu-list-item_k5dlb_d6w6r_457","overflow-menu-list-item-icon":"awsui_overflow-menu-list-item-icon_k5dlb_d6w6r_513","overflow-menu-list-item-text":"awsui_overflow-menu-list-item-text_k5dlb_d6w6r_516","overflow-menu-list-item-submenu":"awsui_overflow-menu-list-item-submenu_k5dlb_d6w6r_525","overflow-menu-list-item-dropdown-menu":"awsui_overflow-menu-list-item-dropdown-menu_k5dlb_d6w6r_531","overflow-menu-list-item-expandable":"awsui_overflow-menu-list-item-expandable_k5dlb_d6w6r_535",expanded:"awsui_expanded_k5dlb_d6w6r_543"},LF=20;function AF({identity:e,search:t,utilities:r}){const o=B.useRef(null),n=B.useRef(null),[i,a]=zn(["xxs","s"]),c=!!t,l=e&&!!e.logo&&!!e.title,d=B.useMemo(()=>DF(r,c,l),[r,c,l]),[s,u]=B.useState(),h=B.useCallback(()=>{var C,_,k,b;if(!(o!=null&&o.current)||!n.current){u(d[0]);return}const S=BF(o.current.querySelector(`.${Ce["padding-box"]}`));if(S===0){u(d[0]);return}const T={hasSearch:c,availableWidth:S,fullIdentityWidth:n.current.querySelector(`.${Ce.identity}`).getBoundingClientRect().width,titleWidth:(_=(C=n.current.querySelector(`.${Ce.title}`))===null||C===void 0?void 0:C.getBoundingClientRect().width)!==null&&_!==void 0?_:0,searchSlotWidth:(b=(k=n.current.querySelector(`.${Ce.search}`))===null||k===void 0?void 0:k.getBoundingClientRect().width)!==null&&b!==void 0?b:0,searchUtilityWidth:n.current.querySelector('[data-utility-special="search"]').getBoundingClientRect().width,utilitiesLeftPadding:parseFloat(getComputedStyle(n.current.querySelector(`.${Ce.utilities}`)).paddingLeft||"0px"),utilityWithLabelWidths:Array.prototype.slice.call(n.current.querySelectorAll('[data-utility-hide="false"]')).map(L=>L.getBoundingClientRect().width),utilityWithoutLabelWidths:Array.prototype.slice.call(n.current.querySelectorAll('[data-utility-hide="true"]')).map(L=>L.getBoundingClientRect().width),menuTriggerUtilityWidth:n.current.querySelector('[data-utility-special="menu-trigger"]').getBoundingClientRect().width};u(RF(d,T))},[d,c]),[,f]=zr(()=>{h()},[h]),p=B.useCallback(C=>{n.current=C,h()},[h]),[g,v]=B.useState(!0),m=!g&&c&&(s==null?void 0:s.hideSearch);return B.useEffect(()=>{s!=null&&s.hideSearch||v(!0)},[s]),B.useEffect(()=>{var C,_;m&&((_=(C=o==null?void 0:o.current)===null||C===void 0?void 0:C.querySelector(`.${Ce.search} input`))===null||_===void 0||_.focus())},[m,o]),{mainRef:Lt(o,f,a),virtualRef:p,responsiveState:s??d[0],breakpoint:i??"default",isSearchExpanded:!!m,onSearchUtilityClick:()=>v(C=>!C)}}function BF(e){const t=getComputedStyle(e);return parseFloat(t.width||"0px")-parseFloat(t.paddingLeft||"0px")-parseFloat(t.paddingRight||"0px")}function DF(e,t,r){const o=[{}];e.some(i=>i.text)&&o.push({hideUtilityText:!0}),t&&o.push({hideUtilityText:!0,hideSearch:!0});const n=[];for(let i=0;i<e.length;i++)e[i].disableUtilityCollapse||(n.push(i),o.push({hideUtilityText:!0,hideSearch:t||void 0,hideUtilities:n.length>0?n.slice():void 0}));return r&&o.push({hideUtilityText:!0,hideSearch:t||void 0,hideUtilities:n.length>0?n.slice():void 0,hideTitle:!0}),o}function RF(e,t){const{hasSearch:r,availableWidth:o,utilitiesLeftPadding:n,fullIdentityWidth:i,titleWidth:a,searchSlotWidth:c,searchUtilityWidth:l,utilityWithLabelWidths:d,utilityWithoutLabelWidths:s,menuTriggerUtilityWidth:u}=t;for(const h of e){const f=r?h.hideSearch?l:c:0,p=(h.hideUtilityText?s:d).filter((y,C)=>!h.hideUtilities||h.hideUtilities.indexOf(C)===-1).reduce((y,C)=>y+C,0),g=h.hideUtilities?u:0;if((h.hideTitle?i-a:i)+f+n+p+g<=o-LF)return h}return e[e.length-1]}const Es={button:"awsui_button_m5h9f_1s7lt_99",expanded:"awsui_expanded_m5h9f_1s7lt_154","offset-right-none":"awsui_offset-right-none_m5h9f_1s7lt_165","offset-right-l":"awsui_offset-right-l_m5h9f_1s7lt_168","offset-right-xxl":"awsui_offset-right-xxl_m5h9f_1s7lt_171",text:"awsui_text_m5h9f_1s7lt_196",icon:"awsui_icon_m5h9f_1s7lt_200"},nA=x.forwardRef(({testUtilsClass:e,iconName:t,iconUrl:r,iconAlt:o,iconSvg:n,badge:i,ariaLabel:a,offsetRight:c,disabled:l,expanded:d,children:s,onClick:u},h)=>{const f=t||r||n;return x.createElement("button",{ref:h,type:"button",className:W(Es.button,Es[`offset-right-${c}`],e,{[Es.expanded]:d}),"aria-label":a,"aria-expanded":!!d,"aria-haspopup":!0,disabled:l,onClick:p=>{p.preventDefault(),u&&u()}},f&&x.createElement(ze,{className:Es.icon,name:t,url:r,alt:o,svg:n,badge:i}),s&&x.createElement("span",{className:Es.text},s),s&&x.createElement(ze,{name:"caret-down-filled",className:d?dr["rotate-up"]:dr["rotate-down"]}))}),iA=e=>{var{iconName:t,iconUrl:r,iconAlt:o,iconSvg:n,badge:i,offsetRight:a,children:c}=e,l=de(e,["iconName","iconUrl","iconAlt","iconSvg","badge","offsetRight","children"]);const d=Ie(l),s=({triggerRef:u,ariaLabel:h,isOpen:f,testUtilsClass:p,disabled:g,onClick:v})=>x.createElement(nA,{testUtilsClass:p,ref:u,disabled:g,expanded:f,iconName:t,iconUrl:r,iconAlt:o,iconSvg:n,badge:i,ariaLabel:h,offsetRight:a,onClick:v},c);return x.createElement(_f,Object.assign({},d,l,{variant:"navigation",customTriggerBuilder:s,preferCenter:!0}))};at(iA,"MenuDropdown");const IF=iA;function vg({hideText:e,definition:t,offsetRight:r}){var o;const n=!!t.iconName||!!t.iconUrl||!!t.iconAlt||!!t.iconSvg,i=e&&!t.disableTextCollapse&&n;let a=(o=t.ariaLabel)!==null&&o!==void 0?o:t.text;if(t.type==="button")return a=t.ariaLabel?t.ariaLabel:Ro(t.text,t.externalIconAriaLabel),bn("TopNavigation",t.href),t.variant==="primary-button"?x.createElement("span",{className:Ce[`offset-right-${r}`]},x.createElement(pt,{variant:"primary",href:t.href,target:t.external?"_blank":void 0,onClick:t.onClick,onFollow:t.onFollow,ariaLabel:a,iconName:t.iconName,iconUrl:t.iconUrl,iconAlt:t.iconAlt,iconSvg:t.iconSvg},i?null:x.createElement(x.Fragment,null,t.text,t.external&&x.createElement(x.Fragment,null," ",x.createElement("span",{className:W(Ce["utility-button-external-icon"],Ce[`offset-right-${r}`]),"aria-label":t.externalIconAriaLabel,role:t.externalIconAriaLabel?"img":void 0},x.createElement(ze,{name:"external"})))))):x.createElement("span",{className:Ce[`offset-right-${r}`]},x.createElement(qc,{variant:"top-navigation",href:t.href,target:t.target,rel:t.rel,external:t.external,onFollow:c=>{St(t.onFollow,{href:t.href,target:t.target,external:t.external},c),St(t.onClick,{href:t.href,target:t.target,external:t.external},c)},ariaLabel:a},n&&x.createElement(ze,{name:t.iconName,url:t.iconUrl,alt:t.iconAlt,svg:t.iconSvg,badge:t.badge}),!i&&t.text&&x.createElement("span",{className:n?Ce["utility-link-icon"]:void 0},t.text)));if(t.type==="menu-dropdown"){const c=t.title||t.text,l=i||!t.text;return aA(t.items),x.createElement(IF,Object.assign({},t,{title:l?c:"",ariaLabel:a,offsetRight:r}),!i&&t.text)}return null}function aA(e){for(const t of e)bn("TopNavigation",t.href),"items"in t&&aA(t.items)}const PF={state:{view:"utilities",data:null},setState:()=>{}},Ay=B.createContext(PF),lA=()=>{const{setState:e}=B.useContext(Ay);return(r,o)=>{e({view:r,data:o})}},y_=({view:e,element:t})=>{const{state:r}=B.useContext(Ay);return e===r.view?typeof t=="function"?t(r.data):x.createElement(x.Fragment,null,t):null},$F=({children:e})=>{const[t,r]=B.useState({view:"utilities",data:null});return x.createElement(Ay.Provider,{value:{state:t,setState:r}},e)},OF=$F,MF=({children:e,secondaryText:t,backIconAriaLabel:r,dismissIconAriaLabel:o,onBack:n,onClose:i})=>x.createElement("div",{className:Ce["overflow-menu-header"]},n&&x.createElement(wn,{className:Ce["overflow-menu-back-button"],ariaLabel:r,iconName:"angle-left",variant:"icon",onClick:()=>n()}),x.createElement("h2",{className:Ce["overflow-menu-header-text"]},x.createElement("div",{className:Ce["overflow-menu-header-text--title"]},e),t&&x.createElement("div",{className:Ce["overflow-menu-header-text--secondary"]},t)),x.createElement(wn,{className:Ce["overflow-menu-dismiss-button"],ariaLabel:o,iconName:"close",variant:"icon",onClick:()=>i&&i()})),sA=MF,By=({children:e,startIcon:t,endIcon:r})=>x.createElement(x.Fragment,null,t&&x.createElement("span",{className:Ce["overflow-menu-list-item-icon"]},t),x.createElement("span",{className:Ce["overflow-menu-list-item-text"]},e),r&&r),cA=B.forwardRef(({children:e,external:t,href:r,target:o,rel:n,startIcon:i,endIcon:a,onClick:c,context:l,testId:d},s)=>{const u=o??(t?"_blank":void 0),h=n??(u==="_blank"?"noopener noreferrer":void 0);return x.createElement("a",Object.assign({ref:s,onClick:c,className:W(Ce["overflow-menu-control"],Ce["overflow-menu-control-link"],l&&Ce[`overflow-menu-control-${l}`]),href:r,target:u,rel:h},d?{"data-testid":d}:{}),x.createElement(By,{startIcon:i,endIcon:a},e))}),uA=B.forwardRef(({children:e,startIcon:t,endIcon:r,onClick:o,testId:n},i)=>x.createElement("button",Object.assign({ref:i,className:Ce["overflow-menu-control"],onClick:o},typeof n=="string"?{"data-testid":n}:{}),x.createElement(By,{startIcon:t,endIcon:r},e))),NF=B.forwardRef((e,t)=>{var{startIcon:r,children:o,index:n,testId:i}=e,a=de(e,["startIcon","children","index","testId"]);const c=lA();return x.createElement(uA,{ref:t,startIcon:r,endIcon:x.createElement(ze,{name:"angle-right"}),testId:i,onClick:()=>c("dropdown-menu",{definition:a,headerText:a.text||a.title,headerSecondaryText:a.description,utilityIndex:n})},o)}),jF=e=>{var{children:t,onItemClick:r}=e,o=de(e,["children","onItemClick"]);const[n,i]=B.useState(!1),a=De("overflow-menu-item");return x.createElement(x.Fragment,null,x.createElement("button",{className:W(Ce["overflow-menu-control"],Ce["overflow-menu-control-expandable-menu-trigger"]),onClick:()=>i(c=>!c),"aria-expanded":n},x.createElement(By,{endIcon:x.createElement("span",{className:W(Ce.icon,n&&Ce.expanded)},x.createElement(ze,{name:"caret-up-filled"}))},x.createElement("span",{id:a},t))),n&&x.createElement("ul",{className:W(Ce["overflow-menu-list"],Ce["overflow-menu-list-submenu"]),"aria-labelledby":a},o.items.map((c,l)=>{const d=typeof c.items<"u";return x.createElement("li",{key:l,className:W(Ce["overflow-menu-list-item"],Ce["overflow-menu-list-item-dropdown-menu"])},dA(c,d,r))})))};function GF(e,t,r){const o=e.text||e.title,i=(!!e.iconName||!!e.iconUrl||!!e.iconAlt||!!e.iconSvg)&&x.createElement(ze,{name:e.iconName,url:e.iconUrl,alt:e.iconAlt,svg:e.iconSvg});switch(e.type){case"button":{const a=l=>{var d;e.href&&ci(l)&&St(e.onFollow,{href:e.href,target:e.target},l),St(e.onClick,{},l),(d=e.onClose)===null||d===void 0||d.call(e)},c=x.createElement(x.Fragment,null,o,e.external&&x.createElement(x.Fragment,null," ",x.createElement("span",{"aria-label":e.externalIconAriaLabel,role:e.externalIconAriaLabel?"img":void 0},x.createElement(ze,{name:"external",size:"normal"}))));return e.href?x.createElement(cA,{ref:r,startIcon:i,href:e.href,external:e.external,target:e.target,rel:e.rel,testId:`__${t}`,onClick:a},c):x.createElement(uA,{ref:r,startIcon:i,onClick:a,testId:`__${t}`},c)}case"menu-dropdown":return x.createElement(NF,Object.assign({ref:r,startIcon:i,index:t},e,{testId:`__${t}`}),o)}}function dA(e,t,r){const o=e.text,i=(!!e.iconName||!!e.iconUrl||!!e.iconAlt||!!e.iconSvg)&&x.createElement(ze,{name:e.iconName,url:e.iconUrl,alt:e.iconAlt,svg:e.iconSvg});return t?x.createElement(jF,Object.assign({},e,{onItemClick:r}),o):x.createElement(cA,{startIcon:i,href:e.href,external:e.external,context:"dropdown-menu",testId:e.id,onClick:a=>r(a,e)},o,e.external&&x.createElement(x.Fragment,null," ",x.createElement("span",{"aria-label":e.externalIconAriaLabel,role:e.externalIconAriaLabel?"img":void 0},x.createElement(ze,{name:"external",size:"normal"}))))}const zF=B.forwardRef((e,t)=>{var{index:r}=e,o=de(e,["index"]);return x.createElement("li",{className:W(Ce["overflow-menu-list-item"],Ce["overflow-menu-list-item-utility"])},GF(o,r,t))}),FF=e=>{const t=typeof e.items<"u";return x.createElement("li",{className:W(Ce["overflow-menu-list-item"],Ce["overflow-menu-list-item-submenu"],t&&Ce["overflow-menu-list-item-expandable"])},dA(e,t,e.onClick))},HF=({headerText:e,dismissIconAriaLabel:t,onClose:r,items:o=[],focusIndex:n})=>{const i=De("overflow-menu-header"),a=B.useRef(null);return B.useEffect(()=>{var c;typeof n=="number"&&((c=a.current)===null||c===void 0||c.focus())},[n]),x.createElement(ts,{autoFocus:!0},x.createElement(sA,{dismissIconAriaLabel:t,onClose:r},x.createElement("span",{id:i},e)),x.createElement("ul",{className:Ce["overflow-menu-list"],"aria-labelledby":i},o.map((c,l)=>x.createElement(zF,Object.assign({key:l,index:l,ref:l===n?a:void 0,onClose:r},c)))))},WF=HF,VF=({onClose:e,utilityIndex:t,headerText:r,headerSecondaryText:o,dismissIconAriaLabel:n,backIconAriaLabel:i,definition:a})=>{const c=lA(),l=De("overflow-menu-header");return x.createElement(ts,{autoFocus:!0},x.createElement(sA,{secondaryText:o,dismissIconAriaLabel:n,backIconAriaLabel:i,onClose:e,onBack:()=>c("utilities",{utilityIndex:t})},x.createElement("span",{id:l},r)),x.createElement("ul",{className:W(Ce["overflow-menu-list"],Ce["overflow-menu-list-submenu"]),"aria-labelledby":l},a.items.map((d,s)=>x.createElement(FF,Object.assign({key:s},d,{onClick:(u,h)=>{h.href&&ci(u)&&St(a.onItemFollow,{id:h.id,href:h.href,external:h.external},u),St(a.onItemClick,{id:h.id,href:h.href,external:h.external},u),e==null||e()}})))))},UF=VF,KF=({headerText:e,dismissIconAriaLabel:t,backIconAriaLabel:r,items:o=[],onClose:n})=>{const i=it("top-navigation"),a=i("i18nStrings.overflowMenuDismissIconAriaLabel",t),c=i("i18nStrings.overflowMenuBackIconAriaLabel",r);return x.createElement("div",{className:Ce["overflow-menu"],onKeyUp:l=>{l.key==="Escape"&&(n==null||n())}},x.createElement(OF,null,x.createElement(y_,{view:"utilities",element:l=>x.createElement(WF,{headerText:i("i18nStrings.overflowMenuTitleText",e),items:o,focusIndex:l==null?void 0:l.utilityIndex,dismissIconAriaLabel:a,backIconAriaLabel:c,onClose:n})}),x.createElement(y_,{view:"dropdown-menu",element:l=>x.createElement(UF,{headerText:l==null?void 0:l.headerText,headerSecondaryText:l==null?void 0:l.headerSecondaryText,dismissIconAriaLabel:a,backIconAriaLabel:c,definition:l==null?void 0:l.definition,utilityIndex:l==null?void 0:l.utilityIndex,onClose:n})})))},qF=KF;function YF(e){var{__internalRootRef:t,identity:r,i18nStrings:o,utilities:n,search:i}=e,a=de(e,["__internalRootRef","identity","i18nStrings","utilities","search"]);bn("TopNavigation",r.href);const c=Ie(a),{mainRef:l,virtualRef:d,breakpoint:s,responsiveState:u,isSearchExpanded:h,onSearchUtilityClick:f}=AF({identity:r,search:i,utilities:n}),[p,g]=B.useState(!1),v=B.useRef(null),m=s==="default",y=s==="xxs",C=s==="s",_=it("top-navigation"),k=L=>{ci(L)&&St(r.onFollow,{},L)},b=()=>{g(L=>!L)},S=!h&&u.hideUtilities;B.useEffect(()=>{g(!1)},[S]),Hc(()=>{var L;p||(L=v.current)===null||L===void 0||L.focus()},[p]);const T=L=>{var I,A;const P=L?"div":"header",D=L||!h,E=L||!u.hideTitle,R=i&&(L||!u.hideSearch||h),$=L||i&&u.hideSearch,N=L||!h,M=L||S;return x.createElement(P,{ref:L?d:l,"aria-hidden":L?!0:void 0,className:W(Ce["top-navigation"],{[Ce.virtual]:L,[Ce.hidden]:L,[Ce.narrow]:m,[Ce.medium]:y})},x.createElement("div",{className:Ce["padding-box"]},D&&x.createElement("div",{className:W(Ce.identity,!r.logo&&Ce["no-logo"])},x.createElement("a",{className:Ce["identity-link"],href:r.href,onClick:k},r.logo&&x.createElement("img",{role:"img",src:(I=r.logo)===null||I===void 0?void 0:I.src,alt:(A=r.logo)===null||A===void 0?void 0:A.alt,className:W(Ce.logo,{[Ce.narrow]:m})}),E&&x.createElement("span",{className:Ce.title},r.title))),R&&x.createElement("div",{className:Ce.inputs},x.createElement("div",{className:W(Ce.search,!L&&h&&Ce["search-expanded"])},i)),x.createElement("div",{className:Ce.utilities},$&&x.createElement("div",{className:W(Ce["utility-wrapper"],Ce["utility-type-button"],Ce["utility-type-button-link"],{[Ce.narrow]:m,[Ce.medium]:y}),"data-utility-special":"search"},x.createElement(vg,{hideText:!0,definition:{type:"button",iconName:h?"close":"search",ariaLabel:h?_("i18nStrings.searchDismissIconAriaLabel",o==null?void 0:o.searchDismissIconAriaLabel):_("i18nStrings.searchIconAriaLabel",o==null?void 0:o.searchIconAriaLabel),onClick:f}})),N&&n.filter((O,j)=>L||!u.hideUtilities||u.hideUtilities.indexOf(j)===-1).map((O,j)=>{var z;const F=!!u.hideUtilityText,K=(L||!M)&&j===n.length-1,U=K&&C?"xxl":K?"l":void 0;return x.createElement("div",{key:j,className:W(Ce["utility-wrapper"],Ce[`utility-type-${O.type}`],O.type==="button"&&Ce[`utility-type-button-${(z=O.variant)!==null&&z!==void 0?z:"link"}`],{[Ce.narrow]:m,[Ce.medium]:y}),"data-utility-index":j,"data-utility-hide":`${F}`},x.createElement(vg,{hideText:F,definition:O,offsetRight:U}))}),L&&n.map((O,j)=>{var z;const F=!u.hideUtilityText,K=!M&&j===n.length-1,U=K&&C?"xxl":K?"l":void 0;return x.createElement("div",{key:j,className:W(Ce["utility-wrapper"],Ce[`utility-type-${O.type}`],O.type==="button"&&Ce[`utility-type-button-${(z=O.variant)!==null&&z!==void 0?z:"link"}`],{[Ce.narrow]:m,[Ce.medium]:y}),"data-utility-index":j,"data-utility-hide":`${F}`},x.createElement(vg,{hideText:F,definition:O,offsetRight:U}))}),M&&x.createElement("div",{className:W(Ce["utility-wrapper"],Ce["utility-type-menu-dropdown"],{[Ce.narrow]:m,[Ce.medium]:y}),"data-utility-special":"menu-trigger"},x.createElement(nA,{expanded:p,onClick:b,offsetRight:"l",ref:L?void 0:v},_("i18nStrings.overflowMenuTriggerText",o==null?void 0:o.overflowMenuTriggerText))))))};return x.createElement("div",Object.assign({},c,{ref:t}),x.createElement(XS,{contextName:"top-navigation"},T(!1),x.createElement(Wa,null,T(!0)),S&&p&&x.createElement("div",{className:Ce["overflow-menu-drawer"]},x.createElement(qF,{headerText:o==null?void 0:o.overflowMenuTitleText,dismissIconAriaLabel:o==null?void 0:o.overflowMenuDismissIconAriaLabel,backIconAriaLabel:o==null?void 0:o.overflowMenuBackIconAriaLabel,items:n.filter((L,I)=>(!u.hideUtilities||u.hideUtilities.indexOf(I)!==-1)&&!L.disableUtilityCollapse),onClose:b}))))}function hA(e){var{utilities:t=[]}=e,r=de(e,["utilities"]);const o=ut("TopNavigation");return x.createElement(YF,Object.assign({},o,{utilities:t},r))}at(hA,"TopNavigation");const Ue={root:"awsui_root_1xupv_1w73r_100",wizard:"awsui_wizard_1xupv_1w73r_135",refresh:"awsui_refresh_1xupv_1w73r_135","small-container":"awsui_small-container_1xupv_1w73r_142","remove-high-contrast-header":"awsui_remove-high-contrast-header_1xupv_1w73r_146",navigation:"awsui_navigation_1xupv_1w73r_154",number:"awsui_number_1xupv_1w73r_236",circle:"awsui_circle_1xupv_1w73r_252",title:"awsui_title_1xupv_1w73r_263",active:"awsui_active_1xupv_1w73r_294",disabled:"awsui_disabled_1xupv_1w73r_305",enabled:"awsui_enabled_1xupv_1w73r_315",form:"awsui_form_1xupv_1w73r_357","form-header":"awsui_form-header_1xupv_1w73r_362",background:"awsui_background_1xupv_1w73r_372","form-header-content":"awsui_form-header-content_1xupv_1w73r_384","form-component":"awsui_form-component_1xupv_1w73r_392",hidden:"awsui_hidden_1xupv_1w73r_406","collapsed-steps":"awsui_collapsed-steps_1xupv_1w73r_410","collapsed-steps-hidden":"awsui_collapsed-steps-hidden_1xupv_1w73r_415","form-header-component-wrapper":"awsui_form-header-component-wrapper_1xupv_1w73r_419","form-header-component":"awsui_form-header-component_1xupv_1w73r_419","navigation-link":"awsui_navigation-link_1xupv_1w73r_435","navigation-link-item":"awsui_navigation-link-item_1xupv_1w73r_436","navigation-link-label":"awsui_navigation-link-label_1xupv_1w73r_437","navigation-link-active":"awsui_navigation-link-active_1xupv_1w73r_441","navigation-link-disabled":"awsui_navigation-link-disabled_1xupv_1w73r_446","cancel-button":"awsui_cancel-button_1xupv_1w73r_450","previous-button":"awsui_previous-button_1xupv_1w73r_451","primary-button":"awsui_primary-button_1xupv_1w73r_452","skip-to-button":"awsui_skip-to-button_1xupv_1w73r_453","action-buttons":"awsui_action-buttons_1xupv_1w73r_457"};class b_ extends x.Component{componentWillUnmount(){this.props.onUnmount()}render(){return this.props.children}}function XF({cancelButtonText:e,onCancelClick:t,isPrimaryLoading:r,primaryButtonText:o,primaryButtonLoadingText:n,onPrimaryClick:i,showPrevious:a,previousButtonText:c,onPreviousClick:l,showSkipTo:d,skipToButtonText:s,onSkipToClick:u}){const h=B.useRef(null),f=B.useRef(null),p=()=>{var v,m;((v=h.current)===null||v===void 0?void 0:v.querySelector(`.${Ue["previous-button"]}`))===document.activeElement&&((m=f.current)===null||m===void 0||m.focus())},g=()=>{var v,m;((v=h.current)===null||v===void 0?void 0:v.querySelector(`.${Ue["skip-to-button"]}`))===document.activeElement&&((m=f.current)===null||m===void 0||m.focus())};return x.createElement("div",{ref:h},x.createElement(li,{direction:"horizontal",size:"xs",className:Ue["action-buttons"]},x.createElement(pt,{className:Ue["cancel-button"],variant:"link",formAction:"none",onClick:t},e),d&&s&&x.createElement(b_,{onUnmount:g},x.createElement(pt,{className:Ue["skip-to-button"],onClick:u,formAction:"none",disabled:r},s)),a&&x.createElement(b_,{onUnmount:p},x.createElement(pt,{className:Ue["previous-button"],onClick:l,formAction:"none",disabled:r},c)),x.createElement(pt,{ref:f,className:Ue["primary-button"],variant:"primary",formAction:"none",onClick:i,loading:r,loadingText:n},o)))}function QF({children:e,isVisualRefresh:t}){const r=Bf();return x.createElement("div",{className:W(Ue["form-header"],t&&Ue["form-header-refresh"],t&&_n()),ref:r},x.createElement("div",{className:W(Ue["form-header-content"],jn()&&Ue["remove-high-contrast-header"])},e))}const fA=`[${Zl}=${NS}]`;function ZF({steps:e,activeStepIndex:t,isVisualRefresh:r,showCollapsedSteps:o,i18nStrings:n,submitButtonText:i,isPrimaryLoading:a,allowSkipTo:c,secondaryActions:l,onCancelClick:d,onPreviousClick:s,onPrimaryClick:u,onSkipToClick:h}){const{title:f,info:p,description:g,content:v,errorText:m,isOptional:y}=e[t]||{},C=t>=e.length-1,_=JF(e,t),k=rn(),b=B.useRef(null);Hc(()=>{var L;b&&b.current&&((L=b.current)===null||L===void 0||L.focus())},[t]);const S=c&&_!==-1,T=_!==-1&&n.skipToButtonLabel?n.skipToButtonLabel(e[_],_+1):void 0;return x.createElement(x.Fragment,null,x.createElement(gE,{stepNameSelector:fA,stepNumber:t+1},({funnelStepProps:L})=>{var I;return x.createElement(x.Fragment,null,x.createElement(QF,{isMobile:k||o,isVisualRefresh:r},x.createElement("div",{className:W(Ue["collapsed-steps"],!o&&Ue["collapsed-steps-hidden"])},(I=n.collapsedStepsLabel)===null||I===void 0?void 0:I.call(n,t+1,e.length)),x.createElement(Rf,{className:Ue["form-header-component"],variant:"h1",description:g,info:p},x.createElement("span",{className:Ue["form-header-component-wrapper"],tabIndex:-1,ref:b},x.createElement("span",Object.assign({},{[Zl]:NS}),f),y&&x.createElement("i",null,` - ${n.optional}`)))),x.createElement(PL,Object.assign({className:W(Ue["form-component"]),actions:x.createElement(XF,{cancelButtonText:n.cancelButton,primaryButtonText:C?i??n.submitButton:n.nextButton,primaryButtonLoadingText:C?n.submitButtonLoadingAnnouncement:n.nextButtonLoadingAnnouncement,previousButtonText:n.previousButton,onCancelClick:d,onPreviousClick:s,onPrimaryClick:u,onSkipToClick:()=>h(_),showPrevious:t!==0,isPrimaryLoading:a,showSkipTo:S,skipToButtonText:T}),secondaryActions:l,errorText:m,errorIconAriaLabel:n.errorIconAriaLabel},L),v))}))}function JF(e,t){let r=t;do r++;while(r<e.length-1&&e[r].isOptional);return r>t+1?r:-1}var hr;(function(e){e.Active="active",e.Unvisited="unvisited",e.Visited="visited",e.Next="next"})(hr||(hr={}));function eH({activeStepIndex:e,farthestStepIndex:t,allowSkipTo:r,hidden:o,i18nStrings:n,isVisualRefresh:i,isLoadingNextStep:a,onStepClick:c,onSkipToClick:l,steps:d}){return x.createElement("nav",{className:W(Ue.navigation,o&&Ue.hidden,i&&Ue.refresh,jn()&&Ue["remove-high-contrast-header"]),"aria-label":n.navigationAriaLabel},x.createElement("ul",{className:W(i&&Ue.refresh,jn()&&Ue["remove-high-contrast-header"])},d.map((h,f)=>i?x.createElement(tH,{i18nStrings:n,index:f,key:f,onStepClick:c,onSkipToClick:l,status:s(f),step:h}):x.createElement(rH,{i18nStrings:n,index:f,key:f,onStepClick:c,onSkipToClick:l,status:s(f),step:h}))));function s(h){return e===h?hr.Active:a?hr.Unvisited:t>=h?hr.Visited:r&&u(e+1,h)?hr.Next:hr.Unvisited}function u(h,f){let p=h;do{if(!d[p].isOptional)return!1;p++}while(p<f);return!0}}function tH({i18nStrings:e,index:t,onStepClick:r,onSkipToClick:o,status:n,step:i}){function a(){n===hr.Visited&&r(t),n===hr.Next&&o(t)}const c={active:"active",unvisited:"disabled",visited:"enabled",next:"enabled"}[n],l=W(Ue["navigation-link"],{[Ue["navigation-link-active"]]:n===hr.Active,[Ue["navigation-link-disabled"]]:n===hr.Unvisited});return x.createElement("li",{className:W(Ue[`${c}`],Ue["navigation-link-item"])},x.createElement("hr",null),x.createElement("span",{className:W(Ue.number,Ue["navigation-link-label"])},e.stepNumberLabel&&e.stepNumberLabel(t+1),i.isOptional&&x.createElement("i",null,` - ${e.optional}`)),x.createElement("a",{className:l,"aria-current":n===hr.Active?"step":void 0,"aria-disabled":n===hr.Unvisited?"true":void 0,onClick:d=>{d.preventDefault(),a()},onKeyDown:d=>{(d.key===" "||d.key==="Enter")&&d.preventDefault(),d.key==="Enter"&&a()},onKeyUp:d=>{d.key===" "&&a()},role:"button",tabIndex:n===hr.Visited||n===hr.Next?0:void 0},x.createElement("div",{className:W(Ue.circle)}),x.createElement("span",{className:W(Ue.title)},i.title)))}function rH({i18nStrings:e,index:t,onStepClick:r,onSkipToClick:o,status:n,step:i}){const a=W(Ue["navigation-link"],n===hr.Active?Ue["navigation-link-active"]:Ue["navigation-link-disabled"]);return x.createElement("li",{className:Ue["navigation-link-item"]},x.createElement(xn,{variant:"small",className:Ue["navigation-link-label"],display:"block",margin:{bottom:"xxs"}},e.stepNumberLabel&&e.stepNumberLabel(t+1),i.isOptional&&x.createElement("i",null,` - ${e.optional}`)),x.createElement("div",null,n===hr.Visited||n===hr.Next?x.createElement(qc,{className:W(Ue["navigation-link"]),onFollow:c=>{c.preventDefault(),n===hr.Visited?r(t):o(t)},variant:"primary"},i.title):x.createElement("span",{className:a,"aria-current":n===hr.Active?"step":void 0,"aria-disabled":n===hr.Active?void 0:"true"},i.title)))}function oH(e,t){const r=B.useRef(!1);B.useEffect(()=>{const n=setTimeout(()=>r.current=!0,0);return()=>{clearTimeout(n),r.current=!1}},[e]);const o=t.map(n=>n.title).join();B.useEffect(()=>{!e||!r.current||Sl.funnelChange({funnelInteractionId:e,stepConfiguration:pA(t)})},[e,o])}function pA(e){return e.map((t,r)=>{var o;return{name:t.title,number:r+1,isOptional:(o=t.isOptional)!==null&&o!==void 0?o:!1}})}function nH(e){var t,r,o,n,i,a,c,l,{steps:d,activeStepIndex:s,submitButtonText:u,isLoadingNextStep:h=!1,allowSkipTo:f=!1,secondaryActions:p,onCancel:g,onSubmit:v,onNavigate:m,__internalRootRef:y}=e,C=de(e,["steps","activeStepIndex","submitButtonText","isLoadingNextStep","allowSkipTo","secondaryActions","onCancel","onSubmit","onNavigate","__internalRootRef"]);const _=Ie(C),[k,b]=zn(["xs"]),S=Lt(b,y),T=k==="default",[L,I]=go(s,m,0,{componentName:"Wizard",controlledProp:"activeStepIndex",changeHandler:"onNavigate"}),{funnelInteractionId:A,funnelSubmit:P,funnelCancel:D,funnelProps:E,funnelNextOrSubmitAttempt:R}=xo(),$=L?Math.min(L,d.length-1):0,N=B.useRef($);N.current=Math.max(N.current,$);const M=kn(),O=$>=d.length-1,j=(X,ie)=>{A&&qr(fA),I(X),xe(m,{requestedStepIndex:X,reason:ie})},z=X=>j(X,"step"),F=X=>j(X,"skip"),K=()=>{D(),xe(g)},U=()=>j($-1,"previous"),Y=()=>{R(),O?(P(),xe(v)):j($+1,"next")};oH(A,d);const V=it("wizard"),q=V("i18nStrings.skipToButtonLabel",(t=C.i18nStrings)===null||t===void 0?void 0:t.skipToButtonLabel,X=>ie=>X({task__title:ie.title})),ee=Object.assign(Object.assign({},C.i18nStrings),{skipToButtonLabel:q,stepNumberLabel:V("i18nStrings.stepNumberLabel",(r=C.i18nStrings)===null||r===void 0?void 0:r.stepNumberLabel,X=>ie=>X({stepNumber:ie})),collapsedStepsLabel:V("i18nStrings.collapsedStepsLabel",(o=C.i18nStrings)===null||o===void 0?void 0:o.collapsedStepsLabel,X=>(ie,se)=>X({stepNumber:ie,stepsCount:se})),navigationAriaLabel:V("i18nStrings.navigationAriaLabel",(n=C.i18nStrings)===null||n===void 0?void 0:n.navigationAriaLabel),cancelButton:V("i18nStrings.cancelButton",(i=C.i18nStrings)===null||i===void 0?void 0:i.cancelButton),previousButton:V("i18nStrings.previousButton",(a=C.i18nStrings)===null||a===void 0?void 0:a.previousButton),nextButton:V("i18nStrings.nextButton",(c=C.i18nStrings)===null||c===void 0?void 0:c.nextButton),optional:V("i18nStrings.optional",(l=C.i18nStrings)===null||l===void 0?void 0:l.optional)});return L&&L>=d.length&&(`${L}${d.length}`,d.length-1,void 0),x.createElement("div",Object.assign({},_,E,{ref:S,className:W(Ue.root,_.className)}),x.createElement("div",{className:W(Ue.wizard,Ue.refresh,T&&Ue["small-container"],jn()&&Ue["remove-high-contrast-header"])},x.createElement(eH,{activeStepIndex:$,farthestStepIndex:N.current,allowSkipTo:f,hidden:T,i18nStrings:ee,isVisualRefresh:M,isLoadingNextStep:h,onStepClick:z,onSkipToClick:F,steps:d}),x.createElement("div",{className:W(Ue.form,Ue.refresh,T&&Ue["small-container"],jn()&&Ue["remove-high-contrast-header"])},x.createElement("div",{className:W(Ue.background,_n())}),x.createElement(ZF,{steps:d,isVisualRefresh:M,showCollapsedSteps:T,i18nStrings:ee,submitButtonText:u,activeStepIndex:$,isPrimaryLoading:h,allowSkipTo:f,secondaryActions:p,onCancelClick:K,onPreviousClick:U,onSkipToClick:F,onPrimaryClick:Y}))))}function as(e){var{isLoadingNextStep:t=!1,allowSkipTo:r=!1}=e,o=de(e,["isLoadingNextStep","allowSkipTo"]);const n=ut("Wizard",{props:{allowSkipTo:r}}),{wizardCount:i}=xo(),a=Pf(o);return B.useEffect(()=>(i.current++,()=>void i.current--),[i]),x.createElement(pE,{funnelType:"multi-page",optionalStepNumbers:o.steps.map((c,l)=>c.isOptional?l+1:-1).filter(c=>c!==-1),totalFunnelSteps:o.steps.length,stepConfiguration:pA(o.steps)},x.createElement(nH,Object.assign({isLoadingNextStep:t,allowSkipTo:r},a,n)))}at(as,"Wizard");class iH{constructor(){on(this,"name");on(this,"company");on(this,"version");on(this,"slogan");on(this,"base_path");on(this,"mode");on(this,"app_id");on(this,"app_suite_id");var t,r,o,n,i,a,c,l;this.mode=((t=document.querySelector('meta[name="website:environment"]'))==null?void 0:t.getAttribute("content"))??"dev",this.name=((r=document.querySelector('meta[name="project:name"]'))==null?void 0:r.getAttribute("content"))??"My Project",this.company=((o=document.querySelector('meta[name="project:company"]'))==null?void 0:o.getAttribute("content"))??"Any Company",this.version=((n=document.querySelector('meta[name="project:version"]'))==null?void 0:n.getAttribute("content"))??"1.2.3",this.slogan=((i=document.querySelector('meta[name="project:slogan"]'))==null?void 0:i.getAttribute("content"))??"Innovation Simplified",this.base_path=((a=document.querySelector("base"))==null?void 0:a.getAttribute("href"))??"/",this.app_id=((c=document.querySelector('meta[name="project:app_id"]'))==null?void 0:c.getAttribute("content"))??"myapp",this.app_suite_id=((l=document.querySelector('meta[name="project:app_suite_id"]'))==null?void 0:l.getAttribute("content"))??"myappsuite"}routePath(t){return t?this.base_path.endsWith("/")&&t.startsWith("/")?this.base_path.slice(0,-1)+t:this.base_path+t:this.base_path}genAppSuiteStorageKey(t){return this.app_suite_id+"-"+t}genAppStorageKey(t){return this.app_suite_id+"-"+this.app_id+"-"+this.name.replaceAll(" ","-")+"-"+t}getAppId(){return this.app_id}getAppSuiteId(){return this.app_suite_id}getAppPath(){return this.base_path.replace(/profile\/$/,"").replace(/\/$/,"")}}const Ne=new iH;function aH(){this.__data__=[],this.size=0}var lH=aH;function sH(e,t){return e===t||e!==e&&t!==t}var Dy=sH,cH=Dy;function uH(e,t){for(var r=e.length;r--;)if(cH(e[r][0],t))return r;return-1}var zf=uH,dH=zf,hH=Array.prototype,fH=hH.splice;function pH(e){var t=this.__data__,r=dH(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():fH.call(t,r,1),--this.size,!0}var gH=pH,mH=zf;function vH(e){var t=this.__data__,r=mH(t,e);return r<0?void 0:t[r][1]}var yH=vH,bH=zf;function wH(e){return bH(this.__data__,e)>-1}var xH=wH,_H=zf;function kH(e,t){var r=this.__data__,o=_H(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}var CH=kH,SH=lH,TH=gH,EH=yH,LH=xH,AH=CH;function ls(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}ls.prototype.clear=SH;ls.prototype.delete=TH;ls.prototype.get=EH;ls.prototype.has=LH;ls.prototype.set=AH;var Ff=ls,BH=Ff;function DH(){this.__data__=new BH,this.size=0}var RH=DH;function IH(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var PH=IH;function $H(e){return this.__data__.get(e)}var OH=$H;function MH(e){return this.__data__.has(e)}var NH=MH,jH=typeof Bs=="object"&&Bs&&Bs.Object===Object&&Bs,gA=jH,GH=gA,zH=typeof self=="object"&&self&&self.Object===Object&&self,FH=GH||zH||Function("return this")(),di=FH,HH=di,WH=HH.Symbol,Hf=WH,w_=Hf,mA=Object.prototype,VH=mA.hasOwnProperty,UH=mA.toString,Ls=w_?w_.toStringTag:void 0;function KH(e){var t=VH.call(e,Ls),r=e[Ls];try{e[Ls]=void 0;var o=!0}catch{}var n=UH.call(e);return o&&(t?e[Ls]=r:delete e[Ls]),n}var qH=KH,YH=Object.prototype,XH=YH.toString;function QH(e){return XH.call(e)}var ZH=QH,x_=Hf,JH=qH,e9=ZH,t9="[object Null]",r9="[object Undefined]",__=x_?x_.toStringTag:void 0;function o9(e){return e==null?e===void 0?r9:t9:__&&__ in Object(e)?JH(e):e9(e)}var pu=o9;function n9(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ss=n9,i9=pu,a9=ss,l9="[object AsyncFunction]",s9="[object Function]",c9="[object GeneratorFunction]",u9="[object Proxy]";function d9(e){if(!a9(e))return!1;var t=i9(e);return t==s9||t==c9||t==l9||t==u9}var vA=d9,h9=di,f9=h9["__core-js_shared__"],p9=f9,yg=p9,k_=function(){var e=/[^.]+$/.exec(yg&&yg.keys&&yg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function g9(e){return!!k_&&k_ in e}var m9=g9,v9=Function.prototype,y9=v9.toString;function b9(e){if(e!=null){try{return y9.call(e)}catch{}try{return e+""}catch{}}return""}var yA=b9,w9=vA,x9=m9,_9=ss,k9=yA,C9=/[\\^$.*+?()[\]{}|]/g,S9=/^\[object .+?Constructor\]$/,T9=Function.prototype,E9=Object.prototype,L9=T9.toString,A9=E9.hasOwnProperty,B9=RegExp("^"+L9.call(A9).replace(C9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function D9(e){if(!_9(e)||x9(e))return!1;var t=w9(e)?B9:S9;return t.test(k9(e))}var R9=D9;function I9(e,t){return e==null?void 0:e[t]}var P9=I9,$9=R9,O9=P9;function M9(e,t){var r=O9(e,t);return $9(r)?r:void 0}var Ua=M9,N9=Ua,j9=di,G9=N9(j9,"Map"),Ry=G9,z9=Ua,F9=z9(Object,"create"),Wf=F9,C_=Wf;function H9(){this.__data__=C_?C_(null):{},this.size=0}var W9=H9;function V9(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var U9=V9,K9=Wf,q9="__lodash_hash_undefined__",Y9=Object.prototype,X9=Y9.hasOwnProperty;function Q9(e){var t=this.__data__;if(K9){var r=t[e];return r===q9?void 0:r}return X9.call(t,e)?t[e]:void 0}var Z9=Q9,J9=Wf,e7=Object.prototype,t7=e7.hasOwnProperty;function r7(e){var t=this.__data__;return J9?t[e]!==void 0:t7.call(t,e)}var o7=r7,n7=Wf,i7="__lodash_hash_undefined__";function a7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n7&&t===void 0?i7:t,this}var l7=a7,s7=W9,c7=U9,u7=Z9,d7=o7,h7=l7;function cs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}cs.prototype.clear=s7;cs.prototype.delete=c7;cs.prototype.get=u7;cs.prototype.has=d7;cs.prototype.set=h7;var f7=cs,S_=f7,p7=Ff,g7=Ry;function m7(){this.size=0,this.__data__={hash:new S_,map:new(g7||p7),string:new S_}}var v7=m7;function y7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var b7=y7,w7=b7;function x7(e,t){var r=e.__data__;return w7(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Vf=x7,_7=Vf;function k7(e){var t=_7(this,e).delete(e);return this.size-=t?1:0,t}var C7=k7,S7=Vf;function T7(e){return S7(this,e).get(e)}var E7=T7,L7=Vf;function A7(e){return L7(this,e).has(e)}var B7=A7,D7=Vf;function R7(e,t){var r=D7(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}var I7=R7,P7=v7,$7=C7,O7=E7,M7=B7,N7=I7;function us(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}us.prototype.clear=P7;us.prototype.delete=$7;us.prototype.get=O7;us.prototype.has=M7;us.prototype.set=N7;var Iy=us,j7=Ff,G7=Ry,z7=Iy,F7=200;function H7(e,t){var r=this.__data__;if(r instanceof j7){var o=r.__data__;if(!G7||o.length<F7-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new z7(o)}return r.set(e,t),this.size=r.size,this}var W7=H7,V7=Ff,U7=RH,K7=PH,q7=OH,Y7=NH,X7=W7;function ds(e){var t=this.__data__=new V7(e);this.size=t.size}ds.prototype.clear=U7;ds.prototype.delete=K7;ds.prototype.get=q7;ds.prototype.has=Y7;ds.prototype.set=X7;var bA=ds,Q7="__lodash_hash_undefined__";function Z7(e){return this.__data__.set(e,Q7),this}var J7=Z7;function eW(e){return this.__data__.has(e)}var tW=eW,rW=Iy,oW=J7,nW=tW;function Sh(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new rW;++t<r;)this.add(e[t])}Sh.prototype.add=Sh.prototype.push=oW;Sh.prototype.has=nW;var iW=Sh;function aW(e,t){for(var r=-1,o=e==null?0:e.length;++r<o;)if(t(e[r],r,e))return!0;return!1}var lW=aW;function sW(e,t){return e.has(t)}var cW=sW,uW=iW,dW=lW,hW=cW,fW=1,pW=2;function gW(e,t,r,o,n,i){var a=r&fW,c=e.length,l=t.length;if(c!=l&&!(a&&l>c))return!1;var d=i.get(e),s=i.get(t);if(d&&s)return d==t&&s==e;var u=-1,h=!0,f=r&pW?new uW:void 0;for(i.set(e,t),i.set(t,e);++u<c;){var p=e[u],g=t[u];if(o)var v=a?o(g,p,u,t,e,i):o(p,g,u,e,t,i);if(v!==void 0){if(v)continue;h=!1;break}if(f){if(!dW(t,function(m,y){if(!hW(f,y)&&(p===m||n(p,m,r,o,i)))return f.push(y)})){h=!1;break}}else if(!(p===g||n(p,g,r,o,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var wA=gW,mW=di,vW=mW.Uint8Array,yW=vW;function bW(e){var t=-1,r=Array(e.size);return e.forEach(function(o,n){r[++t]=[n,o]}),r}var wW=bW;function xW(e){var t=-1,r=Array(e.size);return e.forEach(function(o){r[++t]=o}),r}var _W=xW,T_=Hf,E_=yW,kW=Dy,CW=wA,SW=wW,TW=_W,EW=1,LW=2,AW="[object Boolean]",BW="[object Date]",DW="[object Error]",RW="[object Map]",IW="[object Number]",PW="[object RegExp]",$W="[object Set]",OW="[object String]",MW="[object Symbol]",NW="[object ArrayBuffer]",jW="[object DataView]",L_=T_?T_.prototype:void 0,bg=L_?L_.valueOf:void 0;function GW(e,t,r,o,n,i,a){switch(r){case jW:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case NW:return!(e.byteLength!=t.byteLength||!i(new E_(e),new E_(t)));case AW:case BW:case IW:return kW(+e,+t);case DW:return e.name==t.name&&e.message==t.message;case PW:case OW:return e==t+"";case RW:var c=SW;case $W:var l=o&EW;if(c||(c=TW),e.size!=t.size&&!l)return!1;var d=a.get(e);if(d)return d==t;o|=LW,a.set(e,t);var s=CW(c(e),c(t),o,n,i,a);return a.delete(e),s;case MW:if(bg)return bg.call(e)==bg.call(t)}return!1}var zW=GW;function FW(e,t){for(var r=-1,o=t.length,n=e.length;++r<o;)e[n+r]=t[r];return e}var xA=FW,HW=Array.isArray,ea=HW,WW=xA,VW=ea;function UW(e,t,r){var o=t(e);return VW(e)?o:WW(o,r(e))}var _A=UW;function KW(e,t){for(var r=-1,o=e==null?0:e.length,n=0,i=[];++r<o;){var a=e[r];t(a,r,e)&&(i[n++]=a)}return i}var qW=KW;function YW(){return[]}var kA=YW,XW=qW,QW=kA,ZW=Object.prototype,JW=ZW.propertyIsEnumerable,A_=Object.getOwnPropertySymbols,eV=A_?function(e){return e==null?[]:(e=Object(e),XW(A_(e),function(t){return JW.call(e,t)}))}:QW,CA=eV;function tV(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var rV=tV;function oV(e){return e!=null&&typeof e=="object"}var gu=oV,nV=pu,iV=gu,aV="[object Arguments]";function lV(e){return iV(e)&&nV(e)==aV}var sV=lV,B_=sV,cV=gu,SA=Object.prototype,uV=SA.hasOwnProperty,dV=SA.propertyIsEnumerable,hV=B_(function(){return arguments}())?B_:function(e){return cV(e)&&uV.call(e,"callee")&&!dV.call(e,"callee")},TA=hV,Th={exports:{}};function fV(){return!1}var pV=fV;Th.exports;(function(e,t){var r=di,o=pV,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,c=a?r.Buffer:void 0,l=c?c.isBuffer:void 0,d=l||o;e.exports=d})(Th,Th.exports);var EA=Th.exports,gV=9007199254740991,mV=/^(?:0|[1-9]\d*)$/;function vV(e,t){var r=typeof e;return t=t??gV,!!t&&(r=="number"||r!="symbol"&&mV.test(e))&&e>-1&&e%1==0&&e<t}var Py=vV,yV=9007199254740991;function bV(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yV}var $y=bV,wV=pu,xV=$y,_V=gu,kV="[object Arguments]",CV="[object Array]",SV="[object Boolean]",TV="[object Date]",EV="[object Error]",LV="[object Function]",AV="[object Map]",BV="[object Number]",DV="[object Object]",RV="[object RegExp]",IV="[object Set]",PV="[object String]",$V="[object WeakMap]",OV="[object ArrayBuffer]",MV="[object DataView]",NV="[object Float32Array]",jV="[object Float64Array]",GV="[object Int8Array]",zV="[object Int16Array]",FV="[object Int32Array]",HV="[object Uint8Array]",WV="[object Uint8ClampedArray]",VV="[object Uint16Array]",UV="[object Uint32Array]",Kt={};Kt[NV]=Kt[jV]=Kt[GV]=Kt[zV]=Kt[FV]=Kt[HV]=Kt[WV]=Kt[VV]=Kt[UV]=!0;Kt[kV]=Kt[CV]=Kt[OV]=Kt[SV]=Kt[MV]=Kt[TV]=Kt[EV]=Kt[LV]=Kt[AV]=Kt[BV]=Kt[DV]=Kt[RV]=Kt[IV]=Kt[PV]=Kt[$V]=!1;function KV(e){return _V(e)&&xV(e.length)&&!!Kt[wV(e)]}var qV=KV;function YV(e){return function(t){return e(t)}}var XV=YV,Eh={exports:{}};Eh.exports;(function(e,t){var r=gA,o=t&&!t.nodeType&&t,n=o&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===o,a=i&&r.process,c=function(){try{var l=n&&n.require&&n.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=c})(Eh,Eh.exports);var QV=Eh.exports,ZV=qV,JV=XV,D_=QV,R_=D_&&D_.isTypedArray,eU=R_?JV(R_):ZV,LA=eU,tU=rV,rU=TA,oU=ea,nU=EA,iU=Py,aU=LA,lU=Object.prototype,sU=lU.hasOwnProperty;function cU(e,t){var r=oU(e),o=!r&&rU(e),n=!r&&!o&&nU(e),i=!r&&!o&&!n&&aU(e),a=r||o||n||i,c=a?tU(e.length,String):[],l=c.length;for(var d in e)(t||sU.call(e,d))&&!(a&&(d=="length"||n&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||iU(d,l)))&&c.push(d);return c}var AA=cU,uU=Object.prototype;function dU(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||uU;return e===r}var BA=dU;function hU(e,t){return function(r){return e(t(r))}}var DA=hU,fU=DA,pU=fU(Object.keys,Object),gU=pU,mU=BA,vU=gU,yU=Object.prototype,bU=yU.hasOwnProperty;function wU(e){if(!mU(e))return vU(e);var t=[];for(var r in Object(e))bU.call(e,r)&&r!="constructor"&&t.push(r);return t}var xU=wU,_U=vA,kU=$y;function CU(e){return e!=null&&kU(e.length)&&!_U(e)}var Oy=CU,SU=AA,TU=xU,EU=Oy;function LU(e){return EU(e)?SU(e):TU(e)}var Uf=LU,AU=_A,BU=CA,DU=Uf;function RU(e){return AU(e,DU,BU)}var IU=RU,I_=IU,PU=1,$U=Object.prototype,OU=$U.hasOwnProperty;function MU(e,t,r,o,n,i){var a=r&PU,c=I_(e),l=c.length,d=I_(t),s=d.length;if(l!=s&&!a)return!1;for(var u=l;u--;){var h=c[u];if(!(a?h in t:OU.call(t,h)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=a;++u<l;){h=c[u];var m=e[h],y=t[h];if(o)var C=a?o(y,m,h,t,e,i):o(m,y,h,e,t,i);if(!(C===void 0?m===y||n(m,y,r,o,i):C)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var _=e.constructor,k=t.constructor;_!=k&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof k=="function"&&k instanceof k)&&(g=!1)}return i.delete(e),i.delete(t),g}var NU=MU,jU=Ua,GU=di,zU=jU(GU,"DataView"),FU=zU,HU=Ua,WU=di,VU=HU(WU,"Promise"),UU=VU,KU=Ua,qU=di,YU=KU(qU,"Set"),XU=YU,QU=Ua,ZU=di,JU=QU(ZU,"WeakMap"),eK=JU,nv=FU,iv=Ry,av=UU,lv=XU,sv=eK,RA=pu,hs=yA,P_="[object Map]",tK="[object Object]",$_="[object Promise]",O_="[object Set]",M_="[object WeakMap]",N_="[object DataView]",rK=hs(nv),oK=hs(iv),nK=hs(av),iK=hs(lv),aK=hs(sv),fa=RA;(nv&&fa(new nv(new ArrayBuffer(1)))!=N_||iv&&fa(new iv)!=P_||av&&fa(av.resolve())!=$_||lv&&fa(new lv)!=O_||sv&&fa(new sv)!=M_)&&(fa=function(e){var t=RA(e),r=t==tK?e.constructor:void 0,o=r?hs(r):"";if(o)switch(o){case rK:return N_;case oK:return P_;case nK:return $_;case iK:return O_;case aK:return M_}return t});var lK=fa,wg=bA,sK=wA,cK=zW,uK=NU,j_=lK,G_=ea,z_=EA,dK=LA,hK=1,F_="[object Arguments]",H_="[object Array]",rd="[object Object]",fK=Object.prototype,W_=fK.hasOwnProperty;function pK(e,t,r,o,n,i){var a=G_(e),c=G_(t),l=a?H_:j_(e),d=c?H_:j_(t);l=l==F_?rd:l,d=d==F_?rd:d;var s=l==rd,u=d==rd,h=l==d;if(h&&z_(e)){if(!z_(t))return!1;a=!0,s=!1}if(h&&!s)return i||(i=new wg),a||dK(e)?sK(e,t,r,o,n,i):cK(e,t,l,r,o,n,i);if(!(r&hK)){var f=s&&W_.call(e,"__wrapped__"),p=u&&W_.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,v=p?t.value():t;return i||(i=new wg),n(g,v,r,o,i)}}return h?(i||(i=new wg),uK(e,t,r,o,n,i)):!1}var gK=pK,mK=gK,V_=gu;function IA(e,t,r,o,n){return e===t?!0:e==null||t==null||!V_(e)&&!V_(t)?e!==e&&t!==t:mK(e,t,r,o,IA,n)}var PA=IA,vK=bA,yK=PA,bK=1,wK=2;function xK(e,t,r,o){var n=r.length,i=n,a=!o;if(e==null)return!i;for(e=Object(e);n--;){var c=r[n];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++n<i;){c=r[n];var l=c[0],d=e[l],s=c[1];if(a&&c[2]){if(d===void 0&&!(l in e))return!1}else{var u=new vK;if(o)var h=o(d,s,l,e,t,u);if(!(h===void 0?yK(s,d,bK|wK,o,u):h))return!1}}return!0}var _K=xK,kK=ss;function CK(e){return e===e&&!kK(e)}var $A=CK,SK=$A,TK=Uf;function EK(e){for(var t=TK(e),r=t.length;r--;){var o=t[r],n=e[o];t[r]=[o,n,SK(n)]}return t}var LK=EK;function AK(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var OA=AK,BK=_K,DK=LK,RK=OA;function IK(e){var t=DK(e);return t.length==1&&t[0][2]?RK(t[0][0],t[0][1]):function(r){return r===e||BK(r,e,t)}}var PK=IK,$K=pu,OK=gu,MK="[object Symbol]";function NK(e){return typeof e=="symbol"||OK(e)&&$K(e)==MK}var Kf=NK,jK=ea,GK=Kf,zK=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,FK=/^\w*$/;function HK(e,t){if(jK(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||GK(e)?!0:FK.test(e)||!zK.test(e)||t!=null&&e in Object(t)}var My=HK,MA=Iy,WK="Expected a function";function Ny(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(WK);var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],i=r.cache;if(i.has(n))return i.get(n);var a=e.apply(this,o);return r.cache=i.set(n,a)||i,a};return r.cache=new(Ny.Cache||MA),r}Ny.Cache=MA;var VK=Ny,UK=VK,KK=500;function qK(e){var t=UK(e,function(o){return r.size===KK&&r.clear(),o}),r=t.cache;return t}var YK=qK,XK=YK,QK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ZK=/\\(\\)?/g,JK=XK(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(QK,function(r,o,n,i){t.push(n?i.replace(ZK,"$1"):o||r)}),t}),eq=JK;function tq(e,t){for(var r=-1,o=e==null?0:e.length,n=Array(o);++r<o;)n[r]=t(e[r],r,e);return n}var jy=tq,U_=Hf,rq=jy,oq=ea,nq=Kf,iq=1/0,K_=U_?U_.prototype:void 0,q_=K_?K_.toString:void 0;function NA(e){if(typeof e=="string")return e;if(oq(e))return rq(e,NA)+"";if(nq(e))return q_?q_.call(e):"";var t=e+"";return t=="0"&&1/e==-iq?"-0":t}var aq=NA,lq=aq;function sq(e){return e==null?"":lq(e)}var cq=sq,uq=ea,dq=My,hq=eq,fq=cq;function pq(e,t){return uq(e)?e:dq(e,t)?[e]:hq(fq(e))}var qf=pq,gq=Kf,mq=1/0;function vq(e){if(typeof e=="string"||gq(e))return e;var t=e+"";return t=="0"&&1/e==-mq?"-0":t}var mu=vq,yq=qf,bq=mu;function wq(e,t){t=yq(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[bq(t[r++])];return r&&r==o?e:void 0}var Gy=wq,xq=Gy;function _q(e,t,r){var o=e==null?void 0:xq(e,t);return o===void 0?r:o}var kq=_q;function Cq(e,t){return e!=null&&t in Object(e)}var Sq=Cq,Tq=qf,Eq=TA,Lq=ea,Aq=Py,Bq=$y,Dq=mu;function Rq(e,t,r){t=Tq(t,e);for(var o=-1,n=t.length,i=!1;++o<n;){var a=Dq(t[o]);if(!(i=e!=null&&r(e,a)))break;e=e[a]}return i||++o!=n?i:(n=e==null?0:e.length,!!n&&Bq(n)&&Aq(a,n)&&(Lq(e)||Eq(e)))}var Iq=Rq,Pq=Sq,$q=Iq;function Oq(e,t){return e!=null&&$q(e,t,Pq)}var Mq=Oq,Nq=PA,jq=kq,Gq=Mq,zq=My,Fq=$A,Hq=OA,Wq=mu,Vq=1,Uq=2;function Kq(e,t){return zq(e)&&Fq(t)?Hq(Wq(e),t):function(r){var o=jq(r,e);return o===void 0&&o===t?Gq(r,e):Nq(t,o,Vq|Uq)}}var qq=Kq;function Yq(e){return e}var Xq=Yq;function Qq(e){return function(t){return t==null?void 0:t[e]}}var Zq=Qq,Jq=Gy;function eY(e){return function(t){return Jq(t,e)}}var tY=eY,rY=Zq,oY=tY,nY=My,iY=mu;function aY(e){return nY(e)?rY(iY(e)):oY(e)}var lY=aY,sY=PK,cY=qq,uY=Xq,dY=ea,hY=lY;function fY(e){return typeof e=="function"?e:e==null?uY:typeof e=="object"?dY(e)?cY(e[0],e[1]):sY(e):hY(e)}var Yf=fY,pY=Yf,gY=Oy,mY=Uf;function vY(e){return function(t,r,o){var n=Object(t);if(!gY(t)){var i=pY(r);t=mY(t),r=function(c){return i(n[c],c,n)}}var a=e(t,r,o);return a>-1?n[i?t[a]:a]:void 0}}var yY=vY;function bY(e,t,r,o){for(var n=e.length,i=r+(o?1:-1);o?i--:++i<n;)if(t(e[i],i,e))return i;return-1}var wY=bY,xY=/\s/;function _Y(e){for(var t=e.length;t--&&xY.test(e.charAt(t)););return t}var kY=_Y,CY=kY,SY=/^\s+/;function TY(e){return e&&e.slice(0,CY(e)+1).replace(SY,"")}var EY=TY,LY=EY,Y_=ss,AY=Kf,X_=NaN,BY=/^[-+]0x[0-9a-f]+$/i,DY=/^0b[01]+$/i,RY=/^0o[0-7]+$/i,IY=parseInt;function PY(e){if(typeof e=="number")return e;if(AY(e))return X_;if(Y_(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Y_(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=LY(e);var r=DY.test(e);return r||RY.test(e)?IY(e.slice(2),r?2:8):BY.test(e)?X_:+e}var $Y=PY,OY=$Y,Q_=1/0,MY=17976931348623157e292;function NY(e){if(!e)return e===0?e:0;if(e=OY(e),e===Q_||e===-Q_){var t=e<0?-1:1;return t*MY}return e===e?e:0}var jY=NY,GY=jY;function zY(e){var t=GY(e),r=t%1;return t===t?r?t-r:t:0}var FY=zY,HY=wY,WY=Yf,VY=FY,UY=Math.max;function KY(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var n=r==null?0:VY(r);return n<0&&(n=UY(o+n,0)),HY(e,WY(t),n)}var qY=KY,YY=yY,XY=qY,QY=YY(XY),ZY=QY;const JY=Gn(ZY);var eX="Expected a function";function tX(e){if(typeof e!="function")throw new TypeError(eX);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var rX=tX,oX=Ua,nX=function(){try{var e=oX(Object,"defineProperty");return e({},"",{}),e}catch{}}(),iX=nX,Z_=iX;function aX(e,t,r){t=="__proto__"&&Z_?Z_(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var lX=aX,sX=lX,cX=Dy,uX=Object.prototype,dX=uX.hasOwnProperty;function hX(e,t,r){var o=e[t];(!(dX.call(e,t)&&cX(o,r))||r===void 0&&!(t in e))&&sX(e,t,r)}var fX=hX,pX=fX,gX=qf,mX=Py,J_=ss,vX=mu;function yX(e,t,r,o){if(!J_(e))return e;t=gX(t,e);for(var n=-1,i=t.length,a=i-1,c=e;c!=null&&++n<i;){var l=vX(t[n]),d=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(n!=a){var s=c[l];d=o?o(s,l,c):void 0,d===void 0&&(d=J_(s)?s:mX(t[n+1])?[]:{})}pX(c,l,d),c=c[l]}return e}var bX=yX,wX=Gy,xX=bX,_X=qf;function kX(e,t,r){for(var o=-1,n=t.length,i={};++o<n;){var a=t[o],c=wX(e,a);r(c,a)&&xX(i,_X(a,e),c)}return i}var CX=kX,SX=DA,TX=SX(Object.getPrototypeOf,Object),EX=TX,LX=xA,AX=EX,BX=CA,DX=kA,RX=Object.getOwnPropertySymbols,IX=RX?function(e){for(var t=[];e;)LX(t,BX(e)),e=AX(e);return t}:DX,PX=IX;function $X(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var OX=$X,MX=ss,NX=BA,jX=OX,GX=Object.prototype,zX=GX.hasOwnProperty;function FX(e){if(!MX(e))return jX(e);var t=NX(e),r=[];for(var o in e)o=="constructor"&&(t||!zX.call(e,o))||r.push(o);return r}var HX=FX,WX=AA,VX=HX,UX=Oy;function KX(e){return UX(e)?WX(e,!0):VX(e)}var qX=KX,YX=_A,XX=PX,QX=qX;function ZX(e){return YX(e,QX,XX)}var JX=ZX,eQ=jy,tQ=Yf,rQ=CX,oQ=JX;function nQ(e,t){if(e==null)return{};var r=eQ(oQ(e),function(o){return[o]});return t=tQ(t),rQ(e,r,function(o,n){return t(o,n[0])})}var iQ=nQ,aQ=Yf,lQ=rX,sQ=iQ;function cQ(e,t){return sQ(e,lQ(aQ(t)))}var uQ=cQ;const dQ=Gn(uQ);var hQ=jy;function fQ(e,t){return hQ(t,function(r){return e[r]})}var pQ=fQ,gQ=pQ,mQ=Uf;function vQ(e){return e==null?[]:gQ(e,mQ(e))}var yQ=vQ;const bQ=Gn(yQ),cv={Dashboard:{type:"link",text:"Dashboard",href:Ne.routePath("/")},"SSH Keys":{type:"link",text:"SSH Keys",href:Ne.routePath("/ssh-keys/")},"GPG Keys":{type:"link",text:"GPG Keys",href:Ne.routePath("/gpg-keys/")},"API Keys":{type:"link",text:"API Keys",href:Ne.routePath("/api-keys/")},"MFA / 2FA":{type:"link",text:"MFA / 2FA",href:Ne.routePath("/multi-factor-authenticators/")}},wQ=()=>{const{pathname:e}=Xh(),t=At(),r=JY(cv,n=>new RegExp(`^${n.href}?$`).test(Ne.routePath(e))),o=n=>{n.preventDefault(),t(n.detail.href.replace(/\/auth\/profile\//gi,"/"))};return r&&r.breadcrumbItems?w.jsx(eo,{items:r.breadcrumbItems.map(n=>cv[n]),onFollow:o}):null},jA=()=>{const{pathname:e}=Xh(),t=bQ(dQ(cv,a=>!!a.omitFromSideNav)),[r,o]=B.useState(Ne.routePath(e)),n=At(),i=a=>{a.detail.external||(a.preventDefault(),o(a.detail.href),n(a.detail.href.replace(/\/auth\/profile\//gi,"/")))};return w.jsx(B.Fragment,{children:w.jsx(rA,{header:{href:"#",text:Ne.name},items:t,activeHref:r,onFollow:i})})},e1="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20width='512'%20height='512'%20viewBox='0%200%20512%20512'%20version='1.1'%20id='svg5'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cg%20id='g1'%3e%3cpath%20id='path3'%20style='color:%23000000;display:inline;fill:%23ffffff;fill-opacity:1;stroke:%23ffffff;stroke-width:1;stroke-linecap:square;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1'%20d='m%20257.90077,63.666085%20c%20-23.72788,-0.784481%20-56.18436,7.120265%20-71.80708,36.640035%20-15.62279,29.51993%20-13.17959,70.25878%20-12.4496,110.42065%20l%2012.35124,-0.35546%2012.20028,0.14722%206.63059,0.0246%20c%20-0.73,-40.16188%200.0862,-80.08385%208.92853,-96.79195%208.84248,-16.708243%2026.77218,-20.922924%2043.07995,-20.383761%2016.30816,0.539172%2026.76475,6.223415%2033.24189,13.116091%206.47763,6.89319%208.90813,11.62946%2010.64865,18.59584%201.74061,6.9667%202.56654,12.74384%202.56654,15.82962%20v%2014.86445%20l%2030.90885,11.14108%200.10788,-26.00553%20c%200.0128,-3.08572%20-0.21207,-8.76866%20-2.3826,-17.4561%20-2.17061,-8.68774%20-6.52953,-23.798366%20-18.8032,-36.859441%20C%20300.8485,73.531943%20281.62825,64.450556%20257.90077,63.666085%20Z%20m%2045.26641,103.201305%2031.03607,0.0518%200.11569,14.65223%20-30.9444,-0.0726%20z'%20/%3e%3cpath%20id='path2'%20style='display:inline;opacity:1;mix-blend-mode:normal;fill:none;stroke:%23ffffff;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20d='m%20347.75541,443.35719%20c%2012.89575,-11.41137%2025.79147,-22.82267%2038.68714,-34.23396%20m%20-267.47129,-4e-5%20c%2016.24133,11.51932%2032.48158,23.03783%2048.72072,34.55556%20m%201e-5,0%20c%2060.02249,-0.10707%20120.04361,-0.21449%20180.06342,-0.32156%20M%20189.15076,210.46841%20c%2043.41874,-0.10721%2086.8365,-0.21446%20130.25331,-0.32166%20m%2067.72872,21.03672%20C%20364.55616,224.1711%20341.9799,217.15885%20319.40407,210.14673%20m%20-130.25331,0.3217%20c%20-23.16348,6.90514%20-46.32658,13.81016%20-69.48925,20.71506%20m%20267.47128,0%20c%20-0.23006,59.3148%20-0.46014,118.62804%20-0.69024,177.93974%20M%20119.66151,231.18347%20c%20-0.2301,59.3148%20-0.46018,118.62804%20-0.69025,177.93972'%20/%3e%3cpath%20id='path1'%20style='display:inline;fill:%23ffffff;fill-opacity:1;stroke:%23ffffff;stroke-width:16;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20d='m%20253.236,346.76498%20c%200.006,4.22278%200.0125,8.44481%200.0187,12.66608%20m%20-4.5169,1.6553%20c%203.00093,-0.0102%206.00181,-0.0203%209.00262,-0.0306%20m%20-4.73949,-29.81678%20c%201.5986,9.83225%203.19715,19.66429%204.79567,29.49607%20m%20-4.79567,-29.49607%20c%20-1.4211,9.9497%20-2.84211,19.89882%20-4.26304,29.84734%20m%2019.32705,-49.52511%20a%2014.840344,12.236585%200%200%201%20-14.84034,12.23659%2014.840344,12.236585%200%200%201%20-14.84034,-12.23659%2014.840344,12.236585%200%200%201%2014.84034,-12.23659%2014.840344,12.236585%200%200%201%2014.84034,12.23659%20z'%20/%3e%3c/g%3e%3c/svg%3e";function GA(e,t){return function(){return e.apply(t,arguments)}}const{toString:xQ}=Object.prototype,{getPrototypeOf:zy}=Object,Xf=(e=>t=>{const r=xQ.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Wn=e=>(e=e.toLowerCase(),t=>Xf(t)===e),Qf=e=>t=>typeof t===e,{isArray:fs}=Array,Dc=Qf("undefined");function _Q(e){return e!==null&&!Dc(e)&&e.constructor!==null&&!Dc(e.constructor)&&Xo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zA=Wn("ArrayBuffer");function kQ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zA(e.buffer),t}const CQ=Qf("string"),Xo=Qf("function"),FA=Qf("number"),Zf=e=>e!==null&&typeof e=="object",SQ=e=>e===!0||e===!1,Cd=e=>{if(Xf(e)!=="object")return!1;const t=zy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TQ=Wn("Date"),EQ=Wn("File"),LQ=Wn("Blob"),AQ=Wn("FileList"),BQ=e=>Zf(e)&&Xo(e.pipe),DQ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xo(e.append)&&((t=Xf(e))==="formdata"||t==="object"&&Xo(e.toString)&&e.toString()==="[object FormData]"))},RQ=Wn("URLSearchParams"),IQ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vu(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,n;if(typeof e!="object"&&(e=[e]),fs(e))for(o=0,n=e.length;o<n;o++)t.call(null,e[o],o,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let c;for(o=0;o<a;o++)c=i[o],t.call(null,e[c],c,e)}}function HA(e,t){t=t.toLowerCase();const r=Object.keys(e);let o=r.length,n;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const WA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,VA=e=>!Dc(e)&&e!==WA;function uv(){const{caseless:e}=VA(this)&&this||{},t={},r=(o,n)=>{const i=e&&HA(t,n)||n;Cd(t[i])&&Cd(o)?t[i]=uv(t[i],o):Cd(o)?t[i]=uv({},o):fs(o)?t[i]=o.slice():t[i]=o};for(let o=0,n=arguments.length;o<n;o++)arguments[o]&&vu(arguments[o],r);return t}const PQ=(e,t,r,{allOwnKeys:o}={})=>(vu(t,(n,i)=>{r&&Xo(n)?e[i]=GA(n,r):e[i]=n},{allOwnKeys:o}),e),$Q=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),OQ=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},MQ=(e,t,r,o)=>{let n,i,a;const c={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)a=n[i],(!o||o(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=r!==!1&&zy(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},NQ=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return o!==-1&&o===r},jQ=e=>{if(!e)return null;if(fs(e))return e;let t=e.length;if(!FA(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},GQ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&zy(Uint8Array)),zQ=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},FQ=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},HQ=Wn("HTMLFormElement"),WQ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,n){return o.toUpperCase()+n}),t1=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),VQ=Wn("RegExp"),UA=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};vu(r,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(o[i]=a||n)}),Object.defineProperties(e,o)},UQ=e=>{UA(e,(t,r)=>{if(Xo(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=e[r];if(Xo(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},KQ=(e,t)=>{const r={},o=n=>{n.forEach(i=>{r[i]=!0})};return fs(e)?o(e):o(String(e).split(t)),r},qQ=()=>{},YQ=(e,t)=>(e=+e,Number.isFinite(e)?e:t),xg="abcdefghijklmnopqrstuvwxyz",r1="0123456789",KA={DIGIT:r1,ALPHA:xg,ALPHA_DIGIT:xg+xg.toUpperCase()+r1},XQ=(e=16,t=KA.ALPHA_DIGIT)=>{let r="";const{length:o}=t;for(;e--;)r+=t[Math.random()*o|0];return r};function QQ(e){return!!(e&&Xo(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ZQ=e=>{const t=new Array(10),r=(o,n)=>{if(Zf(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[n]=o;const i=fs(o)?[]:{};return vu(o,(a,c)=>{const l=r(a,n+1);!Dc(l)&&(i[c]=l)}),t[n]=void 0,i}}return o};return r(e,0)},JQ=Wn("AsyncFunction"),eZ=e=>e&&(Zf(e)||Xo(e))&&Xo(e.then)&&Xo(e.catch),fe={isArray:fs,isArrayBuffer:zA,isBuffer:_Q,isFormData:DQ,isArrayBufferView:kQ,isString:CQ,isNumber:FA,isBoolean:SQ,isObject:Zf,isPlainObject:Cd,isUndefined:Dc,isDate:TQ,isFile:EQ,isBlob:LQ,isRegExp:VQ,isFunction:Xo,isStream:BQ,isURLSearchParams:RQ,isTypedArray:GQ,isFileList:AQ,forEach:vu,merge:uv,extend:PQ,trim:IQ,stripBOM:$Q,inherits:OQ,toFlatObject:MQ,kindOf:Xf,kindOfTest:Wn,endsWith:NQ,toArray:jQ,forEachEntry:zQ,matchAll:FQ,isHTMLForm:HQ,hasOwnProperty:t1,hasOwnProp:t1,reduceDescriptors:UA,freezeMethods:UQ,toObjectSet:KQ,toCamelCase:WQ,noop:qQ,toFiniteNumber:YQ,findKey:HA,global:WA,isContextDefined:VA,ALPHABET:KA,generateString:XQ,isSpecCompliantForm:QQ,toJSONObject:ZQ,isAsyncFn:JQ,isThenable:eZ};function ft(e,t,r,o,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),n&&(this.response=n)}fe.inherits(ft,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qA=ft.prototype,YA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{YA[e]={value:e}});Object.defineProperties(ft,YA);Object.defineProperty(qA,"isAxiosError",{value:!0});ft.from=(e,t,r,o,n,i)=>{const a=Object.create(qA);return fe.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),ft.call(a,e.message,t,r,o,n),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const tZ=null;function dv(e){return fe.isPlainObject(e)||fe.isArray(e)}function XA(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function o1(e,t,r){return e?e.concat(t).map(function(n,i){return n=XA(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function rZ(e){return fe.isArray(e)&&!e.some(dv)}const oZ=fe.toFlatObject(fe,{},null,function(t){return/^is[A-Z]/.test(t)});function Jf(e,t,r){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=fe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!fe.isUndefined(v[g])});const o=r.metaTokens,n=r.visitor||s,i=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&fe.isSpecCompliantForm(t);if(!fe.isFunction(n))throw new TypeError("visitor must be a function");function d(p){if(p===null)return"";if(fe.isDate(p))return p.toISOString();if(!l&&fe.isBlob(p))throw new ft("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(p)||fe.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function s(p,g,v){let m=p;if(p&&!v&&typeof p=="object"){if(fe.endsWith(g,"{}"))g=o?g:g.slice(0,-2),p=JSON.stringify(p);else if(fe.isArray(p)&&rZ(p)||(fe.isFileList(p)||fe.endsWith(g,"[]"))&&(m=fe.toArray(p)))return g=XA(g),m.forEach(function(C,_){!(fe.isUndefined(C)||C===null)&&t.append(a===!0?o1([g],_,i):a===null?g:g+"[]",d(C))}),!1}return dv(p)?!0:(t.append(o1(v,g,i),d(p)),!1)}const u=[],h=Object.assign(oZ,{defaultVisitor:s,convertValue:d,isVisitable:dv});function f(p,g){if(!fe.isUndefined(p)){if(u.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(p),fe.forEach(p,function(m,y){(!(fe.isUndefined(m)||m===null)&&n.call(t,m,fe.isString(y)?y.trim():y,g,h))===!0&&f(m,g?g.concat(y):[y])}),u.pop()}}if(!fe.isObject(e))throw new TypeError("data must be an object");return f(e),t}function n1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Fy(e,t){this._pairs=[],e&&Jf(e,this,t)}const QA=Fy.prototype;QA.append=function(t,r){this._pairs.push([t,r])};QA.toString=function(t){const r=t?function(o){return t.call(this,o,n1)}:n1;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function nZ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ZA(e,t,r){if(!t)return e;const o=r&&r.encode||nZ,n=r&&r.serialize;let i;if(n?i=n(t,r):i=fe.isURLSearchParams(t)?t.toString():new Fy(t,r).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class i1{constructor(){this.handlers=[]}use(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){fe.forEach(this.handlers,function(o){o!==null&&t(o)})}}const JA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},iZ=typeof URLSearchParams<"u"?URLSearchParams:Fy,aZ=typeof FormData<"u"?FormData:null,lZ=typeof Blob<"u"?Blob:null,sZ={isBrowser:!0,classes:{URLSearchParams:iZ,FormData:aZ,Blob:lZ},protocols:["http","https","file","blob","url","data"]},eB=typeof window<"u"&&typeof document<"u",cZ=(e=>eB&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),uZ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dZ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eB,hasStandardBrowserEnv:cZ,hasStandardBrowserWebWorkerEnv:uZ},Symbol.toStringTag,{value:"Module"})),$n={...dZ,...sZ};function hZ(e,t){return Jf(e,new $n.classes.URLSearchParams,Object.assign({visitor:function(r,o,n,i){return $n.isNode&&fe.isBuffer(r)?(this.append(o,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function fZ(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pZ(e){const t={},r=Object.keys(e);let o;const n=r.length;let i;for(o=0;o<n;o++)i=r[o],t[i]=e[i];return t}function tB(e){function t(r,o,n,i){let a=r[i++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=i>=r.length;return a=!a&&fe.isArray(n)?n.length:a,l?(fe.hasOwnProp(n,a)?n[a]=[n[a],o]:n[a]=o,!c):((!n[a]||!fe.isObject(n[a]))&&(n[a]=[]),t(r,o,n[a],i)&&fe.isArray(n[a])&&(n[a]=pZ(n[a])),!c)}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const r={};return fe.forEachEntry(e,(o,n)=>{t(fZ(o),n,r,0)}),r}return null}function gZ(e,t,r){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}const Hy={transitional:JA,adapter:["xhr","http"],transformRequest:[function(t,r){const o=r.getContentType()||"",n=o.indexOf("application/json")>-1,i=fe.isObject(t);if(i&&fe.isHTMLForm(t)&&(t=new FormData(t)),fe.isFormData(t))return n?JSON.stringify(tB(t)):t;if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t))return t;if(fe.isArrayBufferView(t))return t.buffer;if(fe.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return hZ(t,this.formSerializer).toString();if((c=fe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Jf(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||n?(r.setContentType("application/json",!1),gZ(t)):t}],transformResponse:[function(t){const r=this.transitional||Hy.transitional,o=r&&r.forcedJSONParsing,n=this.responseType==="json";if(t&&fe.isString(t)&&(o&&!this.responseType||n)){const a=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?ft.from(c,ft.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$n.classes.FormData,Blob:$n.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],e=>{Hy.headers[e]={}});const Wy=Hy,mZ=fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vZ=e=>{const t={};let r,o,n;return e&&e.split(`
    93  `).forEach(function(a){n=a.indexOf(":"),r=a.substring(0,n).trim().toLowerCase(),o=a.substring(n+1).trim(),!(!r||t[r]&&mZ[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t},a1=Symbol("internals");function As(e){return e&&String(e).trim().toLowerCase()}function Sd(e){return e===!1||e==null?e:fe.isArray(e)?e.map(Sd):String(e)}function yZ(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const bZ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function _g(e,t,r,o,n){if(fe.isFunction(o))return o.call(this,t,r);if(n&&(t=r),!!fe.isString(t)){if(fe.isString(o))return t.indexOf(o)!==-1;if(fe.isRegExp(o))return o.test(t)}}function wZ(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function xZ(e,t){const r=fe.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{value:function(n,i,a){return this[o].call(this,t,n,i,a)},configurable:!0})})}class ep{constructor(t){t&&this.set(t)}set(t,r,o){const n=this;function i(c,l,d){const s=As(l);if(!s)throw new Error("header name must be a non-empty string");const u=fe.findKey(n,s);(!u||n[u]===void 0||d===!0||d===void 0&&n[u]!==!1)&&(n[u||l]=Sd(c))}const a=(c,l)=>fe.forEach(c,(d,s)=>i(d,s,l));return fe.isPlainObject(t)||t instanceof this.constructor?a(t,r):fe.isString(t)&&(t=t.trim())&&!bZ(t)?a(vZ(t),r):t!=null&&i(r,t,o),this}get(t,r){if(t=As(t),t){const o=fe.findKey(this,t);if(o){const n=this[o];if(!r)return n;if(r===!0)return yZ(n);if(fe.isFunction(r))return r.call(this,n,o);if(fe.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=As(t),t){const o=fe.findKey(this,t);return!!(o&&this[o]!==void 0&&(!r||_g(this,this[o],o,r)))}return!1}delete(t,r){const o=this;let n=!1;function i(a){if(a=As(a),a){const c=fe.findKey(o,a);c&&(!r||_g(o,o[c],c,r))&&(delete o[c],n=!0)}}return fe.isArray(t)?t.forEach(i):i(t),n}clear(t){const r=Object.keys(this);let o=r.length,n=!1;for(;o--;){const i=r[o];(!t||_g(this,this[i],i,t,!0))&&(delete this[i],n=!0)}return n}normalize(t){const r=this,o={};return fe.forEach(this,(n,i)=>{const a=fe.findKey(o,i);if(a){r[a]=Sd(n),delete r[i];return}const c=t?wZ(i):String(i).trim();c!==i&&delete r[i],r[c]=Sd(n),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return fe.forEach(this,(o,n)=>{o!=null&&o!==!1&&(r[n]=t&&fe.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
    94  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const o=new this(t);return r.forEach(n=>o.set(n)),o}static accessor(t){const o=(this[a1]=this[a1]={accessors:{}}).accessors,n=this.prototype;function i(a){const c=As(a);o[c]||(xZ(n,a),o[c]=!0)}return fe.isArray(t)?t.forEach(i):i(t),this}}ep.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(ep.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});fe.freezeMethods(ep);const ei=ep;function kg(e,t){const r=this||Wy,o=t||r,n=ei.from(o.headers);let i=o.data;return fe.forEach(e,function(c){i=c.call(r,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function rB(e){return!!(e&&e.__CANCEL__)}function yu(e,t,r){ft.call(this,e??"canceled",ft.ERR_CANCELED,t,r),this.name="CanceledError"}fe.inherits(yu,ft,{__CANCEL__:!0});function _Z(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new ft("Request failed with status code "+r.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const kZ=$n.hasStandardBrowserEnv?{write(e,t,r,o,n,i){const a=[e+"="+encodeURIComponent(t)];fe.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),fe.isString(o)&&a.push("path="+o),fe.isString(n)&&a.push("domain="+n),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function CZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function SZ(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function oB(e,t){return e&&!CZ(t)?SZ(e,t):t}const TZ=$n.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let o;function n(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=n(window.location.href),function(a){const c=fe.isString(a)?n(a):a;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}();function EZ(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LZ(e,t){e=e||10;const r=new Array(e),o=new Array(e);let n=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),s=o[i];a||(a=d),r[n]=l,o[n]=d;let u=i,h=0;for(;u!==n;)h+=r[u++],u=u%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),d-a<t)return;const f=s&&d-s;return f?Math.round(h*1e3/f):void 0}}function l1(e,t){let r=0;const o=LZ(50,250);return n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,c=i-r,l=o(c),d=i<=a;r=i;const s={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&d?(a-i)/l:void 0,event:n};s[t?"download":"upload"]=!0,e(s)}}const AZ=typeof XMLHttpRequest<"u",BZ=AZ&&function(e){return new Promise(function(r,o){let n=e.data;const i=ei.from(e.headers).normalize();let{responseType:a,withXSRFToken:c}=e,l;function d(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let s;if(fe.isFormData(n)){if($n.hasStandardBrowserEnv||$n.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((s=i.getContentType())!==!1){const[g,...v]=s?s.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...v].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+v))}const h=oB(e.baseURL,e.url);u.open(e.method.toUpperCase(),ZA(h,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const g=ei.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:e,request:u};_Z(function(C){r(C),d()},function(C){o(C),d()},m),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(o(new ft("Request aborted",ft.ECONNABORTED,e,u)),u=null)},u.onerror=function(){o(new ft("Network Error",ft.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||JA;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),o(new ft(v,m.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,u)),u=null},$n.hasStandardBrowserEnv&&(c&&fe.isFunction(c)&&(c=c(e)),c||c!==!1&&TZ(h))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&kZ.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}n===void 0&&i.setContentType(null),"setRequestHeader"in u&&fe.forEach(i.toJSON(),function(v,m){u.setRequestHeader(m,v)}),fe.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",l1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",l1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{u&&(o(!g||g.type?new yu(null,e,u):g),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=EZ(h);if(p&&$n.protocols.indexOf(p)===-1){o(new ft("Unsupported protocol "+p+":",ft.ERR_BAD_REQUEST,e));return}u.send(n||null)})},hv={http:tZ,xhr:BZ};fe.forEach(hv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const s1=e=>`- ${e}`,DZ=e=>fe.isFunction(e)||e===null||e===!1,nB={getAdapter:e=>{e=fe.isArray(e)?e:[e];const{length:t}=e;let r,o;const n={};for(let i=0;i<t;i++){r=e[i];let a;if(o=r,!DZ(r)&&(o=hv[(a=String(r)).toLowerCase()],o===void 0))throw new ft(`Unknown adapter '${a}'`);if(o)break;n[a||"#"+i]=o}if(!o){const i=Object.entries(n).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
    95  `+i.map(s1).join(`
    96  `):" "+s1(i[0]):"as no adapter specified";throw new ft("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:hv};function Cg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yu(null,e)}function c1(e){return Cg(e),e.headers=ei.from(e.headers),e.data=kg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nB.getAdapter(e.adapter||Wy.adapter)(e).then(function(o){return Cg(e),o.data=kg.call(e,e.transformResponse,o),o.headers=ei.from(o.headers),o},function(o){return rB(o)||(Cg(e),o&&o.response&&(o.response.data=kg.call(e,e.transformResponse,o.response),o.response.headers=ei.from(o.response.headers))),Promise.reject(o)})}const u1=e=>e instanceof ei?{...e}:e;function zl(e,t){t=t||{};const r={};function o(d,s,u){return fe.isPlainObject(d)&&fe.isPlainObject(s)?fe.merge.call({caseless:u},d,s):fe.isPlainObject(s)?fe.merge({},s):fe.isArray(s)?s.slice():s}function n(d,s,u){if(fe.isUndefined(s)){if(!fe.isUndefined(d))return o(void 0,d,u)}else return o(d,s,u)}function i(d,s){if(!fe.isUndefined(s))return o(void 0,s)}function a(d,s){if(fe.isUndefined(s)){if(!fe.isUndefined(d))return o(void 0,d)}else return o(void 0,s)}function c(d,s,u){if(u in t)return o(d,s);if(u in e)return o(void 0,d)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(d,s)=>n(u1(d),u1(s),!0)};return fe.forEach(Object.keys(Object.assign({},e,t)),function(s){const u=l[s]||n,h=u(e[s],t[s],s);fe.isUndefined(h)&&u!==c||(r[s]=h)}),r}const iB="1.6.8",Vy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vy[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const d1={};Vy.transitional=function(t,r,o){function n(i,a){return"[Axios v"+iB+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,c)=>{if(t===!1)throw new ft(n(a," has been removed"+(r?" in "+r:"")),ft.ERR_DEPRECATED);return r&&!d1[a]&&(d1[a]=!0,console.warn(n(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,c):!0}};function RZ(e,t,r){if(typeof e!="object")throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let n=o.length;for(;n-- >0;){const i=o[n],a=t[i];if(a){const c=e[i],l=c===void 0||a(c,i,e);if(l!==!0)throw new ft("option "+i+" must be "+l,ft.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ft("Unknown option "+i,ft.ERR_BAD_OPTION)}}const fv={assertOptions:RZ,validators:Vy},vi=fv.validators;class Lh{constructor(t){this.defaults=t,this.interceptors={request:new i1,response:new i1}}async request(t,r){try{return await this._request(t,r)}catch(o){if(o instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
    97  `+i):o.stack=i}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=zl(this.defaults,r);const{transitional:o,paramsSerializer:n,headers:i}=r;o!==void 0&&fv.assertOptions(o,{silentJSONParsing:vi.transitional(vi.boolean),forcedJSONParsing:vi.transitional(vi.boolean),clarifyTimeoutError:vi.transitional(vi.boolean)},!1),n!=null&&(fe.isFunction(n)?r.paramsSerializer={serialize:n}:fv.assertOptions(n,{encode:vi.function,serialize:vi.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&fe.merge(i.common,i[r.method]);i&&fe.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=ei.concat(a,i);const c=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,c.unshift(g.fulfilled,g.rejected))});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let s,u=0,h;if(!l){const p=[c1.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,d),h=p.length,s=Promise.resolve(r);u<h;)s=s.then(p[u++],p[u++]);return s}h=c.length;let f=r;for(u=0;u<h;){const p=c[u++],g=c[u++];try{f=p(f)}catch(v){g.call(this,v);break}}try{s=c1.call(this,f)}catch(p){return Promise.reject(p)}for(u=0,h=d.length;u<h;)s=s.then(d[u++],d[u++]);return s}getUri(t){t=zl(this.defaults,t);const r=oB(t.baseURL,t.url);return ZA(r,t.params,t.paramsSerializer)}}fe.forEach(["delete","get","head","options"],function(t){Lh.prototype[t]=function(r,o){return this.request(zl(o||{},{method:t,url:r,data:(o||{}).data}))}});fe.forEach(["post","put","patch"],function(t){function r(o){return function(i,a,c){return this.request(zl(c||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Lh.prototype[t]=r(),Lh.prototype[t+"Form"]=r(!0)});const Td=Lh;class Uy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const o=this;this.promise.then(n=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](n);o._listeners=null}),this.promise.then=n=>{let i;const a=new Promise(c=>{o.subscribe(c),i=c}).then(n);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,c){o.reason||(o.reason=new yu(i,a,c),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Uy(function(n){t=n}),cancel:t}}}const IZ=Uy;function PZ(e){return function(r){return e.apply(null,r)}}function $Z(e){return fe.isObject(e)&&e.isAxiosError===!0}const pv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pv).forEach(([e,t])=>{pv[t]=e});const OZ=pv;function aB(e){const t=new Td(e),r=GA(Td.prototype.request,t);return fe.extend(r,Td.prototype,t,{allOwnKeys:!0}),fe.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return aB(zl(e,n))},r}const br=aB(Wy);br.Axios=Td;br.CanceledError=yu;br.CancelToken=IZ;br.isCancel=rB;br.VERSION=iB;br.toFormData=Jf;br.AxiosError=ft;br.Cancel=br.CanceledError;br.all=function(t){return Promise.all(t)};br.spread=PZ;br.isAxiosError=$Z;br.mergeConfig=zl;br.AxiosHeaders=ei;br.formToJSON=e=>tB(fe.isHTMLForm(e)?new FormData(e):e);br.getAdapter=nB.getAdapter;br.HttpStatusCode=OZ;br.default=br;const gt=br,h1="/auth/portal",lB="/auth/logout",sB="/auth/login",MZ="/auth/whoami?id_token=true&format=json",NZ=e=>gt({method:"GET",url:e}).then(t=>t.data),cB={username:"",name:"",email:"",idToken:"",isLoading:!0},uB=x.createContext(cB),jZ=()=>B.useContext(uB),GZ=({children:e,links:t,environment:r})=>{const[o,n]=B.useState(cB);return B.useEffect(()=>{r==="dev"?n({username:"jsmith",name:"John Smith",email:"jsmith@localhost",idToken:"none",isLoading:!1}):(async()=>{try{const[a]=await Promise.all([NZ(t.whoami)]);let c=a.username;Object.prototype.hasOwnProperty.call(a,"sub")&&(c=a.sub);let l=c;if(Object.prototype.hasOwnProperty.call(a,"name")&&(l=a.name),n({username:c,name:l,email:a.email,idToken:a.id_token,isLoading:!1}),a.email===void 0)return console.log("Email not found. Redirect to logout."),window.location.replace(t.login),null;a.id_token!==void 0&&(gt.defaults.headers.common["X-Api-Token"]=a.id_token)}catch(a){console.error("Failed fetching auth user identity data, redirecting to logout",a),window.location.replace(t.login)}})()},[]),w.jsx(uB.Provider,{value:o,children:e})},Tt=()=>{console.log("redirecting user to login"),window.location.replace(sB)},zZ=()=>w.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M12.8166 9.79921C12.8417 9.75608 12.7942 9.70771 12.7497 9.73041C11.9008 10.164 10.9392 10.4085 9.92054 10.4085C6.48046 10.4085 3.69172 7.61979 3.69172 4.17971C3.69172 3.16099 3.93628 2.19938 4.36989 1.3504C4.39259 1.30596 4.34423 1.25842 4.3011 1.28351C2.44675 2.36242 1.2002 4.37123 1.2002 6.67119C1.2002 10.1113 3.98893 12.9 7.42901 12.9C9.72893 12.9 11.7377 11.6535 12.8166 9.79921Z",fill:"white",stroke:"white",strokeWidth:"2",className:"filled"})}),FZ=()=>w.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("path",{d:"M8 11C9.65685 11 11 9.65685 11 8C11 6.34315 9.65685 5 8 5C6.34315 5 5 6.34315 5 8C5 9.65685 6.34315 11 8 11Z",fill:"#000716",stroke:"#000716",strokeWidth:"2",className:"filled"}),w.jsx("path",{d:"M13 8H15",stroke:"#000716",strokeWidth:"2",strokeMiterlimit:"10"}),w.jsx("path",{d:"M8 13V15",stroke:"#000716",strokeWidth:"2",strokeMiterlimit:"10"}),w.jsx("path",{d:"M3 8H1",stroke:"#000716",strokeWidth:"2",strokeMiterlimit:"10"}),w.jsx("path",{d:"M8 3V1",stroke:"#000716",strokeWidth:"2",strokeMiterlimit:"10"}),w.jsx("path",{d:"M11.54 11.54L12.95 12.95",stroke:"#000716",strokeWidth:"2",strokeMiterlimit:"10"}),w.jsx("path",{d:"M4.4598 11.54L3.0498 12.95",stroke:"#000716",strokeWidth:"2",strokeMiterlimit:"10"}),w.jsx("path",{d:"M4.4598 4.46005L3.0498 3.05005",stroke:"#000716",strokeWidth:"2",strokeMiterlimit:"10"}),w.jsx("path",{d:"M11.54 4.46005L12.95 3.05005",stroke:"#000716",strokeWidth:"2",strokeMiterlimit:"10"})]}),HZ=()=>w.jsxs("svg",{id:"a",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",children:[w.jsx("polyline",{points:"9.01 1.02 1.01 1.02 1.01 15.01 9.01 15.01",fill:"none",stroke:"#231f20",strokeMiterlimit:"10",strokeWidth:"2"}),w.jsx("polygon",{points:"6 11.28 11.82 8.06 6 4.76 6 11.28",fill:"none",stroke:"#231f20",strokeMiterlimit:"10",strokeWidth:"2"})]}),tp=()=>w.jsxs("svg",{id:"a",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",children:[w.jsx("path",{d:"m8,15h5.73c.71,0,1.28-.58,1.28-1.28V2.19c0-.71-.58-1.28-1.28-1.28H2.2c-.71,0-1.28.58-1.28,1.28v5.4",fill:"none",stroke:"#231f20",strokeMiterlimit:"10"}),w.jsx("line",{x1:"1.94",y1:"14",x2:"8",y2:"7.95",fill:"none",stroke:"#231f20",strokeLinecap:"round",strokeMiterlimit:"10"}),w.jsx("line",{x1:"3.97",y1:"7.95",x2:"8",y2:"7.95",fill:"none",stroke:"#231f20",strokeLinecap:"round",strokeLinejoin:"round"}),w.jsx("line",{x1:"7.95",y1:"12.05",x2:"8",y2:"7.95",fill:"none",stroke:"#231f20",strokeLinecap:"round",strokeLinejoin:"round"})]});var rp=(e=>(e[e.DEFAULT=0]="DEFAULT",e[e.MOBILE=1]="MOBILE",e[e.TABLET=2]="TABLET",e[e.SMALL=3]="SMALL",e[e.LARGE=4]="LARGE",e[e.EXTRA_LARGE=5]="EXTRA_LARGE",e))(rp||{});function f1(){const e={orientation:0,size:0};switch(window.innerWidth>window.innerHeight?e.orientation=1:e.orientation=2,!0){case window.innerWidth>=1200:e.size=5;break;case window.innerWidth>1024:e.size=4;break;case window.innerWidth>768:e.size=3;break;case window.innerWidth>480:e.size=2;break;case window.innerWidth>319:e.size=1;break;default:e.size=4;break}return e}function WZ(e,t,r,o,n){const i=[],a=h=>{switch(h.stopPropagation(),h.detail.id){case"debug":t("/debug");break}},l={text:((h,f)=>h.size>rp.SMALL?"":f=="dark"?"Switch to Light Theme":"Switch to Dark Theme")(n,r),type:"button",onClick:()=>o(),iconSvg:r=="dark"?w.jsx(FZ,{}):w.jsx(zZ,{})};i.push(l);const d={type:"button",href:h1,iconName:"menu"};i.push(d);const s=[{id:"user_id",text:`ID: ${e.username}`,external:!1},{id:"user_email",text:`Email: ${e.email}`},{id:"app_version",text:`Version: v${Ne.version}`},{id:"debug",text:"Debug",iconName:"settings"},{id:"portal",text:"Portal",iconName:"menu",href:h1},{id:"signout",text:"Sign out",iconSvg:w.jsx(HZ,{}),href:lB}],u={type:"menu-dropdown",text:`${e.name}`,iconName:"user-profile",items:s,onItemClick:a};return i.push(u),i}function VZ(e){let t="Menu";return e.size<rp.LARGE&&(t=Ne.name),{searchIconAriaLabel:"Search",searchDismissIconAriaLabel:"Close search",overflowMenuTriggerText:"More",overflowMenuTitleText:t,overflowMenuBackIconAriaLabel:"Back",overflowMenuDismissIconAriaLabel:"Close menu"}}function UZ(e){return e.size<rp.SMALL?{href:"#",title:Ne.name,logo:{src:e1,alt:Ne.name+" Logo"}}:{href:"#",title:Ne.name,logo:{src:e1,alt:Ne.name+" Logo"}}}const KZ=({screen:e,themeModeName:t,setThemeMode:r})=>{const o=jZ(),n=At();return w.jsx("div",{id:"top-nav",style:{position:"sticky",top:0,zIndex:1002},children:w.jsx(hA,{i18nStrings:VZ(e),identity:UZ(e),utilities:WZ(o,n,t,r,e)})})},qZ=()=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"fetch_debug"}}).then(e=>(console.log("Fetch Debug Response",e),e.data.entry!==void 0?e.data.entry:null)).catch(e=>{var t;throw((t=e==null?void 0:e.response)==null?void 0:t.status)===401&&Tt(),e});var vo=function(){return vo=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},vo.apply(this,arguments)};function Rc(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var Ut="-ms-",rc="-moz-",Dt="-webkit-",dB="comm",op="rule",Ky="decl",YZ="@import",hB="@keyframes",XZ="@layer",fB=Math.abs,qy=String.fromCharCode,gv=Object.assign;function QZ(e,t){return Rr(e,0)^45?(((t<<2^Rr(e,0))<<2^Rr(e,1))<<2^Rr(e,2))<<2^Rr(e,3):0}function pB(e){return e.trim()}function qn(e,t){return(e=t.exec(e))?e[0]:e}function et(e,t,r){return e.replace(t,r)}function Ed(e,t,r){return e.indexOf(t,r)}function Rr(e,t){return e.charCodeAt(t)|0}function Fl(e,t,r){return e.slice(t,r)}function In(e){return e.length}function gB(e){return e.length}function Os(e,t){return t.push(e),e}function ZZ(e,t){return e.map(t).join("")}function p1(e,t){return e.filter(function(r){return!qn(r,t)})}var np=1,Hl=1,mB=0,en=0,vr=0,ps="";function ip(e,t,r,o,n,i,a,c){return{value:e,root:t,parent:r,type:o,props:n,children:i,line:np,column:Hl,length:a,return:"",siblings:c}}function xi(e,t){return gv(ip("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function el(e){for(;e.root;)e=xi(e.root,{children:[e]});Os(e,e.siblings)}function JZ(){return vr}function eJ(){return vr=en>0?Rr(ps,--en):0,Hl--,vr===10&&(Hl=1,np--),vr}function mn(){return vr=en<mB?Rr(ps,en++):0,Hl++,vr===10&&(Hl=1,np++),vr}function Aa(){return Rr(ps,en)}function Ld(){return en}function ap(e,t){return Fl(ps,e,t)}function mv(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tJ(e){return np=Hl=1,mB=In(ps=e),en=0,[]}function rJ(e){return ps="",e}function Sg(e){return pB(ap(en-1,vv(e===91?e+2:e===40?e+1:e)))}function oJ(e){for(;(vr=Aa())&&vr<33;)mn();return mv(e)>2||mv(vr)>3?"":" "}function nJ(e,t){for(;--t&&mn()&&!(vr<48||vr>102||vr>57&&vr<65||vr>70&&vr<97););return ap(e,Ld()+(t<6&&Aa()==32&&mn()==32))}function vv(e){for(;mn();)switch(vr){case e:return en;case 34:case 39:e!==34&&e!==39&&vv(vr);break;case 40:e===41&&vv(e);break;case 92:mn();break}return en}function iJ(e,t){for(;mn()&&e+vr!==57;)if(e+vr===84&&Aa()===47)break;return"/*"+ap(t,en-1)+"*"+qy(e===47?e:mn())}function aJ(e){for(;!mv(Aa());)mn();return ap(e,en)}function lJ(e){return rJ(Ad("",null,null,null,[""],e=tJ(e),0,[0],e))}function Ad(e,t,r,o,n,i,a,c,l){for(var d=0,s=0,u=a,h=0,f=0,p=0,g=1,v=1,m=1,y=0,C="",_=n,k=i,b=o,S=C;v;)switch(p=y,y=mn()){case 40:if(p!=108&&Rr(S,u-1)==58){Ed(S+=et(Sg(y),"&","&\f"),"&\f",fB(d?c[d-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:S+=Sg(y);break;case 9:case 10:case 13:case 32:S+=oJ(p);break;case 92:S+=nJ(Ld()-1,7);continue;case 47:switch(Aa()){case 42:case 47:Os(sJ(iJ(mn(),Ld()),t,r,l),l);break;default:S+="/"}break;case 123*g:c[d++]=In(S)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+s:m==-1&&(S=et(S,/\f/g,"")),f>0&&In(S)-u&&Os(f>32?m1(S+";",o,r,u-1,l):m1(et(S," ","")+";",o,r,u-2,l),l);break;case 59:S+=";";default:if(Os(b=g1(S,t,r,d,s,n,c,C,_=[],k=[],u,i),i),y===123)if(s===0)Ad(S,t,b,b,_,i,u,c,k);else switch(h===99&&Rr(S,3)===110?100:h){case 100:case 108:case 109:case 115:Ad(e,b,b,o&&Os(g1(e,b,b,0,0,n,c,C,n,_=[],u,k),k),n,k,u,c,o?_:k);break;default:Ad(S,b,b,b,[""],k,0,c,k)}}d=s=f=0,g=m=1,C=S="",u=a;break;case 58:u=1+In(S),f=p;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&eJ()==125)continue}switch(S+=qy(y),y*g){case 38:m=s>0?1:(S+="\f",-1);break;case 44:c[d++]=(In(S)-1)*m,m=1;break;case 64:Aa()===45&&(S+=Sg(mn())),h=Aa(),s=u=In(C=S+=aJ(Ld())),y++;break;case 45:p===45&&In(S)==2&&(g=0)}}return i}function g1(e,t,r,o,n,i,a,c,l,d,s,u){for(var h=n-1,f=n===0?i:[""],p=gB(f),g=0,v=0,m=0;g<o;++g)for(var y=0,C=Fl(e,h+1,h=fB(v=a[g])),_=e;y<p;++y)(_=pB(v>0?f[y]+" "+C:et(C,/&\f/g,f[y])))&&(l[m++]=_);return ip(e,t,r,n===0?op:c,l,d,s,u)}function sJ(e,t,r,o){return ip(e,t,r,dB,qy(JZ()),Fl(e,2,-2),0,o)}function m1(e,t,r,o,n){return ip(e,t,r,Ky,Fl(e,0,o),Fl(e,o+1,-1),o,n)}function vB(e,t,r){switch(QZ(e,t)){case 5103:return Dt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Dt+e+e;case 4789:return rc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Dt+e+rc+e+Ut+e+e;case 5936:switch(Rr(e,t+11)){case 114:return Dt+e+Ut+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Dt+e+Ut+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Dt+e+Ut+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Dt+e+Ut+e+e;case 6165:return Dt+e+Ut+"flex-"+e+e;case 5187:return Dt+e+et(e,/(\w+).+(:[^]+)/,Dt+"box-$1$2"+Ut+"flex-$1$2")+e;case 5443:return Dt+e+Ut+"flex-item-"+et(e,/flex-|-self/g,"")+(qn(e,/flex-|baseline/)?"":Ut+"grid-row-"+et(e,/flex-|-self/g,""))+e;case 4675:return Dt+e+Ut+"flex-line-pack"+et(e,/align-content|flex-|-self/g,"")+e;case 5548:return Dt+e+Ut+et(e,"shrink","negative")+e;case 5292:return Dt+e+Ut+et(e,"basis","preferred-size")+e;case 6060:return Dt+"box-"+et(e,"-grow","")+Dt+e+Ut+et(e,"grow","positive")+e;case 4554:return Dt+et(e,/([^-])(transform)/g,"$1"+Dt+"$2")+e;case 6187:return et(et(et(e,/(zoom-|grab)/,Dt+"$1"),/(image-set)/,Dt+"$1"),e,"")+e;case 5495:case 3959:return et(e,/(image-set\([^]*)/,Dt+"$1$`$1");case 4968:return et(et(e,/(.+:)(flex-)?(.*)/,Dt+"box-pack:$3"+Ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Dt+e+e;case 4200:if(!qn(e,/flex-|baseline/))return Ut+"grid-column-align"+Fl(e,t)+e;break;case 2592:case 3360:return Ut+et(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,n){return t=n,qn(o.props,/grid-\w+-end/)})?~Ed(e+(r=r[t].value),"span",0)?e:Ut+et(e,"-start","")+e+Ut+"grid-row-span:"+(~Ed(r,"span",0)?qn(r,/\d+/):+qn(r,/\d+/)-+qn(e,/\d+/))+";":Ut+et(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return qn(o.props,/grid-\w+-start/)})?e:Ut+et(et(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return et(e,/(.+)-inline(.+)/,Dt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(In(e)-1-t>6)switch(Rr(e,t+1)){case 109:if(Rr(e,t+4)!==45)break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+Dt+"$2-$3$1"+rc+(Rr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ed(e,"stretch",0)?vB(et(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return et(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,n,i,a,c,l,d){return Ut+n+":"+i+d+(a?Ut+n+"-span:"+(c?l:+l-+i)+d:"")+e});case 4949:if(Rr(e,t+6)===121)return et(e,":",":"+Dt)+e;break;case 6444:switch(Rr(e,Rr(e,14)===45?18:11)){case 120:return et(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Dt+(Rr(e,14)===45?"inline-":"")+"box$3$1"+Dt+"$2$3$1"+Ut+"$2box$3")+e;case 100:return et(e,":",":"+Ut)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return et(e,"scroll-","scroll-snap-")+e}return e}function Ah(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function cJ(e,t,r,o){switch(e.type){case XZ:if(e.children.length)break;case YZ:case Ky:return e.return=e.return||e.value;case dB:return"";case hB:return e.return=e.value+"{"+Ah(e.children,o)+"}";case op:if(!In(e.value=e.props.join(",")))return""}return In(r=Ah(e.children,o))?e.return=e.value+"{"+r+"}":""}function uJ(e){var t=gB(e);return function(r,o,n,i){for(var a="",c=0;c<t;c++)a+=e[c](r,o,n,i)||"";return a}}function dJ(e){return function(t){t.root||(t=t.return)&&e(t)}}function hJ(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case Ky:e.return=vB(e.value,e.length,r);return;case hB:return Ah([xi(e,{value:et(e.value,"@","@"+Dt)})],o);case op:if(e.length)return ZZ(r=e.props,function(n){switch(qn(n,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":el(xi(e,{props:[et(n,/:(read-\w+)/,":"+rc+"$1")]})),el(xi(e,{props:[n]})),gv(e,{props:p1(r,o)});break;case"::placeholder":el(xi(e,{props:[et(n,/:(plac\w+)/,":"+Dt+"input-$1")]})),el(xi(e,{props:[et(n,/:(plac\w+)/,":"+rc+"$1")]})),el(xi(e,{props:[et(n,/:(plac\w+)/,Ut+"input-$1")]})),el(xi(e,{props:[n]})),gv(e,{props:p1(r,o)});break}return""})}}var fJ={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},So={},Wl=typeof process<"u"&&So!==void 0&&(So.REACT_APP_SC_ATTR||So.SC_ATTR)||"data-styled",yB="active",bB="data-styled-version",lp="6.1.8",Yy=`/*!sc*/
    98  `,Xy=typeof window<"u"&&"HTMLElement"in window,pJ=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&So!==void 0&&So.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&So.REACT_APP_SC_DISABLE_SPEEDY!==""?So.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&So.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&So!==void 0&&So.SC_DISABLE_SPEEDY!==void 0&&So.SC_DISABLE_SPEEDY!==""&&So.SC_DISABLE_SPEEDY!=="false"&&So.SC_DISABLE_SPEEDY),sp=Object.freeze([]),Vl=Object.freeze({});function gJ(e,t,r){return r===void 0&&(r=Vl),e.theme!==r.theme&&e.theme||t||r.theme}var wB=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),mJ=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,vJ=/(^-|-$)/g;function v1(e){return e.replace(mJ,"-").replace(vJ,"")}var yJ=/(a)(d)/gi,od=52,y1=function(e){return String.fromCharCode(e+(e>25?39:97))};function yv(e){var t,r="";for(t=Math.abs(e);t>od;t=t/od|0)r=y1(t%od)+r;return(y1(t%od)+r).replace(yJ,"$1-$2")}var Tg,xB=5381,vl=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},_B=function(e){return vl(xB,e)};function kB(e){return yv(_B(e)>>>0)}function bJ(e){return e.displayName||e.name||"Component"}function Eg(e){return typeof e=="string"&&!0}var CB=typeof Symbol=="function"&&Symbol.for,SB=CB?Symbol.for("react.memo"):60115,wJ=CB?Symbol.for("react.forward_ref"):60112,xJ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_J={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},TB={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kJ=((Tg={})[wJ]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Tg[SB]=TB,Tg);function b1(e){return("type"in(t=e)&&t.type.$$typeof)===SB?TB:"$$typeof"in e?kJ[e.$$typeof]:xJ;var t}var CJ=Object.defineProperty,SJ=Object.getOwnPropertyNames,w1=Object.getOwnPropertySymbols,TJ=Object.getOwnPropertyDescriptor,EJ=Object.getPrototypeOf,x1=Object.prototype;function EB(e,t,r){if(typeof t!="string"){if(x1){var o=EJ(t);o&&o!==x1&&EB(e,o,r)}var n=SJ(t);w1&&(n=n.concat(w1(t)));for(var i=b1(e),a=b1(t),c=0;c<n.length;++c){var l=n[c];if(!(l in _J||r&&r[l]||a&&l in a||i&&l in i)){var d=TJ(t,l);try{CJ(e,l,d)}catch{}}}}return e}function Ul(e){return typeof e=="function"}function Qy(e){return typeof e=="object"&&"styledComponentId"in e}function wa(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function bv(e,t){if(e.length===0)return"";for(var r=e[0],o=1;o<e.length;o++)r+=t?t+e[o]:e[o];return r}function Ic(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function wv(e,t,r){if(r===void 0&&(r=!1),!r&&!Ic(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=wv(e[o],t[o]);else if(Ic(t))for(var o in t)e[o]=wv(e[o],t[o]);return e}function Zy(e,t){Object.defineProperty(e,"toString",{value:t})}function bu(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var LJ=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,o=0;o<t;o++)r+=this.groupSizes[o];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var o=this.groupSizes,n=o.length,i=n;t>=i;)if((i<<=1)<0)throw bu(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(o),this.length=i;for(var a=n;a<i;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),l=(a=0,r.length);a<l;a++)this.tag.insertRule(c,r[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],o=this.indexOfGroup(t),n=o+r;this.groupSizes[t]=0;for(var i=o;i<n;i++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var o=this.groupSizes[t],n=this.indexOfGroup(t),i=n+o,a=n;a<i;a++)r+="".concat(this.tag.getRule(a)).concat(Yy);return r},e}(),Bd=new Map,Bh=new Map,Dd=1,nd=function(e){if(Bd.has(e))return Bd.get(e);for(;Bh.has(Dd);)Dd++;var t=Dd++;return Bd.set(e,t),Bh.set(t,e),t},AJ=function(e,t){Dd=t+1,Bd.set(e,t),Bh.set(t,e)},BJ="style[".concat(Wl,"][").concat(bB,'="').concat(lp,'"]'),DJ=new RegExp("^".concat(Wl,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),RJ=function(e,t,r){for(var o,n=r.split(","),i=0,a=n.length;i<a;i++)(o=n[i])&&e.registerName(t,o)},IJ=function(e,t){for(var r,o=((r=t.textContent)!==null&&r!==void 0?r:"").split(Yy),n=[],i=0,a=o.length;i<a;i++){var c=o[i].trim();if(c){var l=c.match(DJ);if(l){var d=0|parseInt(l[1],10),s=l[2];d!==0&&(AJ(s,d),RJ(e,s,l[3]),e.getTag().insertRules(d,n)),n.length=0}else n.push(c)}}};function PJ(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var LB=function(e){var t=document.head,r=e||t,o=document.createElement("style"),n=function(c){var l=Array.from(c.querySelectorAll("style[".concat(Wl,"]")));return l[l.length-1]}(r),i=n!==void 0?n.nextSibling:null;o.setAttribute(Wl,yB),o.setAttribute(bB,lp);var a=PJ();return a&&o.setAttribute("nonce",a),r.insertBefore(o,i),o},$J=function(){function e(t){this.element=LB(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,n=0,i=o.length;n<i;n++){var a=o[n];if(a.ownerNode===r)return a}throw bu(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),OJ=function(){function e(t){this.element=LB(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var o=document.createTextNode(r);return this.element.insertBefore(o,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),MJ=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),_1=Xy,NJ={isServer:!Xy,useCSSOMInjection:!pJ},AB=function(){function e(t,r,o){t===void 0&&(t=Vl),r===void 0&&(r={});var n=this;this.options=vo(vo({},NJ),t),this.gs=r,this.names=new Map(o),this.server=!!t.isServer,!this.server&&Xy&&_1&&(_1=!1,function(i){for(var a=document.querySelectorAll(BJ),c=0,l=a.length;c<l;c++){var d=a[c];d&&d.getAttribute(Wl)!==yB&&(IJ(i,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),Zy(this,function(){return function(i){for(var a=i.getTag(),c=a.length,l="",d=function(u){var h=function(m){return Bh.get(m)}(u);if(h===void 0)return"continue";var f=i.names.get(h),p=a.getGroup(u);if(f===void 0||p.length===0)return"continue";var g="".concat(Wl,".g").concat(u,'[id="').concat(h,'"]'),v="";f!==void 0&&f.forEach(function(m){m.length>0&&(v+="".concat(m,","))}),l+="".concat(p).concat(g,'{content:"').concat(v,'"}').concat(Yy)},s=0;s<c;s++)d(s);return l}(n)})}return e.registerId=function(t){return nd(t)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(vo(vo({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var o=r.useCSSOMInjection,n=r.target;return r.isServer?new MJ(n):o?new $J(n):new OJ(n)}(this.options),new LJ(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(nd(t),this.names.has(t))this.names.get(t).add(r);else{var o=new Set;o.add(r),this.names.set(t,o)}},e.prototype.insertRules=function(t,r,o){this.registerName(t,r),this.getTag().insertRules(nd(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(nd(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),jJ=/&/g,GJ=/^\s*\/\/.*$/gm;function BB(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(o){return"".concat(t," ").concat(o)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=BB(r.children,t)),r})}function zJ(e){var t,r,o,n=e===void 0?Vl:e,i=n.options,a=i===void 0?Vl:i,c=n.plugins,l=c===void 0?sp:c,d=function(h,f,p){return p.startsWith(r)&&p.endsWith(r)&&p.replaceAll(r,"").length>0?".".concat(t):h},s=l.slice();s.push(function(h){h.type===op&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(jJ,r).replace(o,d))}),a.prefix&&s.push(hJ),s.push(cJ);var u=function(h,f,p,g){f===void 0&&(f=""),p===void 0&&(p=""),g===void 0&&(g="&"),t=g,r=f,o=new RegExp("\\".concat(r,"\\b"),"g");var v=h.replace(GJ,""),m=lJ(p||f?"".concat(p," ").concat(f," { ").concat(v," }"):v);a.namespace&&(m=BB(m,a.namespace));var y=[];return Ah(m,uJ(s.concat(dJ(function(C){return y.push(C)})))),y};return u.hash=l.length?l.reduce(function(h,f){return f.name||bu(15),vl(h,f.name)},xB).toString():"",u}var FJ=new AB,xv=zJ(),DB=x.createContext({shouldForwardProp:void 0,styleSheet:FJ,stylis:xv});DB.Consumer;x.createContext(void 0);function k1(){return B.useContext(DB)}var RB=function(){function e(t,r){var o=this;this.inject=function(n,i){i===void 0&&(i=xv);var a=o.name+i.hash;n.hasNameForId(o.id,a)||n.insertRules(o.id,a,i(o.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Zy(this,function(){throw bu(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=xv),this.name+t.hash},e}(),HJ=function(e){return e>="A"&&e<="Z"};function C1(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(r===1&&o==="-"&&e[0]==="-")return e;HJ(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var IB=function(e){return e==null||e===!1||e===""},PB=function(e){var t,r,o=[];for(var n in e){var i=e[n];e.hasOwnProperty(n)&&!IB(i)&&(Array.isArray(i)&&i.isCss||Ul(i)?o.push("".concat(C1(n),":"),i,";"):Ic(i)?o.push.apply(o,Rc(Rc(["".concat(n," {")],PB(i),!1),["}"],!1)):o.push("".concat(C1(n),": ").concat((t=n,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in fJ||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function Ba(e,t,r,o){if(IB(e))return[];if(Qy(e))return[".".concat(e.styledComponentId)];if(Ul(e)){if(!Ul(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var n=e(t);return Ba(n,t,r,o)}var i;return e instanceof RB?r?(e.inject(r,o),[e.getName(o)]):[e]:Ic(e)?PB(e):Array.isArray(e)?Array.prototype.concat.apply(sp,e.map(function(a){return Ba(a,t,r,o)})):[e.toString()]}function WJ(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ul(r)&&!Qy(r))return!1}return!0}var VJ=_B(lp),UJ=function(){function e(t,r,o){this.rules=t,this.staticRulesId="",this.isStatic=(o===void 0||o.isStatic)&&WJ(t),this.componentId=r,this.baseHash=vl(VJ,r),this.baseStyle=o,AB.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,o){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))n=wa(n,this.staticRulesId);else{var i=bv(Ba(this.rules,t,r,o)),a=yv(vl(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,a)){var c=o(i,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,c)}n=wa(n,a),this.staticRulesId=a}else{for(var l=vl(this.baseHash,o.hash),d="",s=0;s<this.rules.length;s++){var u=this.rules[s];if(typeof u=="string")d+=u;else if(u){var h=bv(Ba(u,t,r,o));l=vl(l,h+s),d+=h}}if(d){var f=yv(l>>>0);r.hasNameForId(this.componentId,f)||r.insertRules(this.componentId,f,o(d,".".concat(f),void 0,this.componentId)),n=wa(n,f)}}return n},e}(),$B=x.createContext(void 0);$B.Consumer;var Lg={};function KJ(e,t,r){var o=Qy(e),n=e,i=!Eg(e),a=t.attrs,c=a===void 0?sp:a,l=t.componentId,d=l===void 0?function(_,k){var b=typeof _!="string"?"sc":v1(_);Lg[b]=(Lg[b]||0)+1;var S="".concat(b,"-").concat(kB(lp+b+Lg[b]));return k?"".concat(k,"-").concat(S):S}(t.displayName,t.parentComponentId):l,s=t.displayName,u=s===void 0?function(_){return Eg(_)?"styled.".concat(_):"Styled(".concat(bJ(_),")")}(e):s,h=t.displayName&&t.componentId?"".concat(v1(t.displayName),"-").concat(t.componentId):t.componentId||d,f=o&&n.attrs?n.attrs.concat(c).filter(Boolean):c,p=t.shouldForwardProp;if(o&&n.shouldForwardProp){var g=n.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;p=function(_,k){return g(_,k)&&v(_,k)}}else p=g}var m=new UJ(r,h,o?n.componentStyle:void 0);function y(_,k){return function(b,S,T){var L=b.attrs,I=b.componentStyle,A=b.defaultProps,P=b.foldedComponentIds,D=b.styledComponentId,E=b.target,R=x.useContext($B),$=k1(),N=b.shouldForwardProp||$.shouldForwardProp,M=gJ(S,R,A)||Vl,O=function(Y,V,q){for(var ee,X=vo(vo({},V),{className:void 0,theme:q}),ie=0;ie<Y.length;ie+=1){var se=Ul(ee=Y[ie])?ee(X):ee;for(var me in se)X[me]=me==="className"?wa(X[me],se[me]):me==="style"?vo(vo({},X[me]),se[me]):se[me]}return V.className&&(X.className=wa(X.className,V.className)),X}(L,S,M),j=O.as||E,z={};for(var F in O)O[F]===void 0||F[0]==="$"||F==="as"||F==="theme"&&O.theme===M||(F==="forwardedAs"?z.as=O.forwardedAs:N&&!N(F,j)||(z[F]=O[F]));var K=function(Y,V){var q=k1(),ee=Y.generateAndInjectStyles(V,q.styleSheet,q.stylis);return ee}(I,O),U=wa(P,D);return K&&(U+=" "+K),O.className&&(U+=" "+O.className),z[Eg(j)&&!wB.has(j)?"class":"className"]=U,z.ref=T,B.createElement(j,z)}(C,_,k)}y.displayName=u;var C=x.forwardRef(y);return C.attrs=f,C.componentStyle=m,C.displayName=u,C.shouldForwardProp=p,C.foldedComponentIds=o?wa(n.foldedComponentIds,n.styledComponentId):"",C.styledComponentId=h,C.target=o?n.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(_){this._foldedDefaultProps=o?function(k){for(var b=[],S=1;S<arguments.length;S++)b[S-1]=arguments[S];for(var T=0,L=b;T<L.length;T++)wv(k,L[T],!0);return k}({},n.defaultProps,_):_}}),Zy(C,function(){return".".concat(C.styledComponentId)}),i&&EB(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function S1(e,t){for(var r=[e[0]],o=0,n=t.length;o<n;o+=1)r.push(t[o],e[o+1]);return r}var T1=function(e){return Object.assign(e,{isCss:!0})};function OB(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ul(e)||Ic(e))return T1(Ba(S1(sp,Rc([e],t,!0))));var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?Ba(o):T1(Ba(S1(o,t)))}function _v(e,t,r){if(r===void 0&&(r=Vl),!t)throw bu(1,t);var o=function(n){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,r,OB.apply(void 0,Rc([n],i,!1)))};return o.attrs=function(n){return _v(e,t,vo(vo({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},o.withConfig=function(n){return _v(e,t,vo(vo({},r),n))},o}var MB=function(e){return _v(KJ,e)},cp=MB;wB.forEach(function(e){cp[e]=MB(e)});function qJ(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=bv(OB.apply(void 0,Rc([e],t,!1))),n=kB(o);return new RB(n,o)}var YJ="var(--color-background-button-primary-default-jrg2xu, #0972d3)",XJ="var(--color-background-cell-shaded-7v0jy4, #f8f8f8)";const QJ=qJ`
    99      0%{ left: 80%; }
   100      50%{ left: 0; }
   101      100% { left: 80%; }
   102  `,ZJ=cp.div`
   103    background: #fff;
   104    width: 100%;
   105    height: 1.5em;
   106    position: relative;
   107  `,JJ=cp.div`
   108    background: ${YJ};
   109    position: absolute;
   110    left: 0;
   111    z-index: 1;
   112    width: 20%;
   113    height: 1.5em;
   114    animation: ${QJ} 1s infinite;
   115  `,hi=e=>w.jsx(J,{padding:e.padding,children:w.jsx(ZJ,{children:w.jsx(JJ,{})})});function En({title:e,subtitle:t,action:r}){return w.jsxs(J,{textAlign:"center",color:"inherit",children:[w.jsx(J,{variant:"strong",textAlign:"center",color:"inherit",children:e}),w.jsx(J,{variant:"p",padding:{bottom:"s"},color:"inherit",children:t}),r]})}const eee=()=>{const[e,t]=B.useState(null),[r,o]=B.useState(!0),[n,i]=B.useState(0),[a,c]=B.useState(!1),[l,d]=B.useState(""),[s,u]=B.useState("");B.useEffect(()=>{o(!0),(async()=>{try{const p=await qZ();t(p),c(!1),d(""),u("")}catch(p){c(!0),d(`${p.name}`),u(`${p.message}`)}finally{o(!1)}})()},[n]);function h(){i(n+1)}return w.jsx(w.Fragment,{children:r?w.jsx(hi,{}):w.jsx(w.Fragment,{children:a?w.jsx(so,{header:w.jsx(Ge,{variant:"h1",description:"You have encountered an application error related to backend services",children:"Service Unavailable"}),children:w.jsx(re,{size:"l",children:w.jsx(Fe,{children:w.jsx(En,{title:l,subtitle:s,action:w.jsx(ge,{onClick:h,children:"Refresh"})})})})}):w.jsx(so,{header:w.jsx(Ge,{variant:"h1",actions:w.jsx(re,{direction:"horizontal",size:"xs",children:w.jsx(ge,{iconAlign:"left",iconName:"refresh",onClick:()=>i(n+1),children:"Refresh"})}),description:"Review configuration data associated with the system",children:"Debug Metadata"}),children:w.jsxs(re,{direction:"vertical",size:"l",children:[w.jsx(Fe,{header:w.jsx(Ge,{variant:"h2",children:"Server"}),children:w.jsx(J,{children:w.jsxs(Le,{children:["Version: ",(e==null?void 0:e.version)||"unknown"]})})}),w.jsx(Fe,{header:w.jsx(Ge,{variant:"h2",children:"Database"}),children:w.jsx(fu,{variant:"embedded",columnDefinitions:[{id:"key",header:"Parameter",cell:f=>w.jsx(Le,{children:f.key||"-"},`row-key-text-${f.key}`)},{id:"value",header:"Value",cell:f=>w.jsx(pr,{variant:"inline",textToCopy:f.value.toString()||"-",copyButtonAriaLabel:`Copy ${f.key}`,copySuccessText:`${f.key} copied`,copyErrorText:`Failed to copy ${f.key}`},`row-value-button-${f.key}`)}],items:[{key:"Name",value:(e==null?void 0:e.database.name)||"-"},{key:"Host",value:(e==null?void 0:e.database.host)||"-"},{key:"Port",value:(e==null?void 0:e.database.port)||"-"},{key:"Engine",value:(e==null?void 0:e.database.engine)||"-"}]})})]})})})})},tee=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like)."})}),$r={navigationClose:"Close navigation",navigationToggle:"Toggle navigation"},ree={tools:"Tool bar",toolsClose:"Close tool bar",toolsToggle:"Open tool bar"};({...$r,...ree});const oee=()=>{const e=At();return w.jsx(eo,{items:[{text:"Home",href:""},{text:"Debug",href:""}],onFollow:t=>{t.preventDefault(),e("/"+t.detail.href,{replace:!0})}})},nee=({navigation:e})=>{const[t,r]=B.useState(!1),o=c=>r(c.detail.open),[n,i]=B.useState(!1),a=c=>i(c.detail.open);return w.jsx(Fr,{navigation:e,navigationOpen:n,navigationHide:!1,onNavigationChange:a,breadcrumbs:w.jsx(oee,{}),content:w.jsx(eee,{}),toolsHide:!1,tools:w.jsx(tee,{}),toolsWidth:500,toolsOpen:t,onToolsChange:o,ariaLabels:$r,disableContentPaddings:!1,headerSelector:"#top-nav"})},iee=()=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"fetch_user_dashboard_data"}}).then(e=>(console.log("Fetch User Dashboard Data Response",e),e.data.entry!==void 0?e.data.entry:null)).catch(e=>{var t;throw((t=e==null?void 0:e.response)==null?void 0:t.status)===401&&Tt(),e});var aee={exports:{}};(function(e,t){(function(o,n){e.exports=n(ST(),B)})(Bs,function(r,o){return function(n){var i={};function a(c){if(i[c])return i[c].exports;var l=i[c]={i:c,l:!1,exports:{}};return n[c].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=n,a.c=i,a.d=function(c,l,d){a.o(c,l)||Object.defineProperty(c,l,{enumerable:!0,get:d})},a.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},a.t=function(c,l){if(1&l&&(c=a(c)),8&l||4&l&&typeof c=="object"&&c&&c.__esModule)return c;var d=Object.create(null);if(a.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:c}),2&l&&typeof c!="string")for(var s in c)a.d(d,s,(function(u){return c[u]}).bind(null,s));return d},a.n=function(c){var l=c&&c.__esModule?function(){return c.default}:function(){return c};return a.d(l,"a",l),l},a.o=function(c,l){return Object.prototype.hasOwnProperty.call(c,l)},a.p="",a(a.s=5)}([function(n,i,a){function c(u,h){for(var f=0;f<h.length;f++){var p=h[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}a.d(i,"a",function(){return l}),a.d(i,"b",function(){return d}),a.d(i,"c",function(){return s});var l=function(){function u(){(function(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")})(this,u),typeof window<"u"&&(this.image=new Image,this.resolve=null,this.video=document.createElement("video"),this.events())}return function(f,p,g){return p&&c(f.prototype,p),g&&c(f,g),f}(u,[{key:"events",value:function(){var f=this;this.video.addEventListener("loadeddata",function(){return f.resolve&&f.resolve(!0)}),this.video.addEventListener("loadeddata",function(){return f.resolve&&f.resolve(!1)}),this.image.onload=function(){return f.resolve&&f.resolve(!0)},this.image.onerror=function(){return f.resolve&&f.resolve(!1)}}},{key:"load",value:function(f){var p=this;return new Promise(function(g){f||g(!0),p.resolve=g,p.loading=!0,p.ended=!1,f.match(/\.(mp4|webm)/i)&&p.video.setAttribute("src",f),f.match(/\.(png|jp(e)?g|gif|webp)/i)&&(p.image.src=f,(p.image.width>0||p.image.height>0)&&g(!0))})}},{key:"loadImage",value:function(f){var p=this,g=new Image,v=!1;g.onload=function(){v||p.pumpLoaded()},g.onerror=function(){v||p.pumpLoaded()},g.src=f,v===!1&&(g.width>0||g.height>0)&&(v=!0,this.pumpLoaded())}},{key:"loadVideo",value:function(f){var p=this,g=document.createElement("video");g.addEventListener("loadeddata",function(){p.pumpLoaded()}),g.addEventListener("error",function(){p.pumpLoaded()}),g.setAttribute("src",f)}},{key:"pumpLoaded",value:function(){this.loaded+=1,this.loaded===this.toLoad&&this.resolver(!0)}},{key:"startLoad",value:function(f){f.match(/\.(mp4|webm)/i)&&this.loadVideo(f),f.match(/\.(png|jp(e)?g|gif|webp)/i)&&this.loadImage(f)}},{key:"loadMultiple",value:function(f){var p=this;return this.loaded=0,this.toLoad=f.length,new Promise(function(g){p.resolver=g,f.forEach(function(v){p.startLoad(v)})})}}]),u}();function d(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=arguments.length>1?arguments[1]:void 0;if(!h)return u.join(" ").trim();for(var f=[],p=u.length;p--;)h[u[p]]&&f.push(h[u[p]]);return f}function s(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",h=arguments.length>1?arguments[1]:void 0;return h&&h[u]||u}},function(n,i,a){a.d(i,"a",function(){return h}),a.d(i,"b",function(){return f}),a.d(i,"c",function(){return p}),a.d(i,"e",function(){return g}),a.d(i,"d",function(){return v}),a.d(i,"g",function(){return m}),a.d(i,"f",function(){return y});var c=a(0);function l(C){return function(k){if(Array.isArray(k)){for(var b=0,S=new Array(k.length);b<k.length;b++)S[b]=k[b];return S}}(C)||function(k){if(Symbol.iterator in Object(k)||Object.prototype.toString.call(k)==="[object Arguments]")return Array.from(k)}(C)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function d(C,_){var k=Object.keys(C);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(C);_&&(b=b.filter(function(S){return Object.getOwnPropertyDescriptor(C,S).enumerable})),k.push.apply(k,b)}return k}function s(C){for(var _=1;_<arguments.length;_++){var k=arguments[_]!=null?arguments[_]:{};_%2?d(Object(k),!0).forEach(function(b){u(C,b,k[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(k)):d(Object(k)).forEach(function(b){Object.defineProperty(C,b,Object.getOwnPropertyDescriptor(k,b))})}return C}function u(C,_,k){return _ in C?Object.defineProperty(C,_,{value:k,enumerable:!0,configurable:!0,writable:!0}):C[_]=k,C}var h=function(_,k){typeof k=="string"&&_&&k.split(" ").forEach(function(b){_.classList.add(b)})},f=function(_,k){typeof k=="string"&&_&&k.split(" ").forEach(function(b){_.classList.remove(b)})},p=function(_){return typeof _=="string"&&_.split(" ")[0]||""},g=function(_){var k=Array.isArray(_)?_:[_];if(k.length===1)return k[0];for(var b=s({},k[0]),S=1;S<k.length;S+=1){for(var T in b)k[S][T]&&(b[T]=[b[T],k[S][T]].join(" "));for(var L in k[S])b[L]||(b[L]=k[S][L])}return b};function v(C){var _,k=C.rootElement,b=C.cssModule,S=C.disabled,T=C.organicArrows,L=C.className,I=C.total,A=C.current,P=C.infinite,D=C.animation,E=C.fillParent,R=[k];return D&&R.push("".concat(k,"--").concat(D)),T===!0&&R.push("".concat(k,"--organic-arrows")),S===!0&&R.push("".concat(k,"--disabled")),E&&R.push("".concat(k,"--fill-parent")),P===!1&&(A===0&&R.push("".concat(k,"--first")),A===I-1&&R.push("".concat(k,"--last"))),b&&b[k]&&(R=Object(c.b)(R,b)),L&&(_=R).push.apply(_,l(L.split(" "))),R.join(" ").trim().replace(/[\s]+/gi," ")}function m(C){var _=[];return(C.constructor===Array?C:[C]).forEach(function(k){var b=s({},k.props);k.props["data-src"]&&(b.source=k.props["data-src"]),k.props["data-slug"]&&(b.slug=k.props["data-slug"]),_.push(b)}),_}function y(C,_){return{boxA:Object(c.c)("".concat(C,"__boxA"),_),boxB:Object(c.c)("".concat(C,"__boxB"),_),box:Object(c.c)("".concat(C,"__box"),_),container:Object(c.c)("".concat(C,"__container"),_),wrapper:Object(c.c)("".concat(C,"__wrapper"),_),bar:Object(c.c)("".concat(C,"__bar"),_),barActive:Object(c.c)("".concat(C,"__bar--active"),_),barEnd:Object(c.c)("".concat(C,"__bar--end"),_),content:Object(c.c)("".concat(C,"__content"),_),contentStatic:Object(c.c)("".concat(C,"__content--static"),_),contentMoveLeft:Object(c.c)("".concat(C,"__content--moveLeft"),_),contentMoveRight:Object(c.c)("".concat(C,"__content--moveRight"),_),controlsHidden:Object(c.c)("".concat(C,"__controls--hidden"),_),controlsActive:Object(c.c)("".concat(C,"__controls--active"),_),animated:Object(c.c)("".concat(C,"--animated"),_),animatedMobile:Object(c.c)("".concat(C,"--animated-mobile"),_),contentExit:Object(c.c)("".concat(C,"__content--exit"),_),exit:Object(c.c)("".concat(C,"--exit"),_),active:Object(c.c)("".concat(C,"--active"),_),moveLeft:Object(c.c)("".concat(C,"--moveLeft"),_),moveRight:Object(c.c)("".concat(C,"--moveRight"),_),startUp:Object(c.c)("".concat(C,"__startUp"),_),bulletsLoading:Object(c.c)("".concat(C,"__bullets--loading"),_)}}},function(n,i){n.exports=r},function(n,i){n.exports=o},function(n,i,a){n.exports=function(c){var l={};function d(s){if(l[s])return l[s].exports;var u=l[s]={i:s,l:!1,exports:{}};return c[s].call(u.exports,u,u.exports,d),u.l=!0,u.exports}return d.m=c,d.c=l,d.d=function(s,u,h){d.o(s,u)||Object.defineProperty(s,u,{enumerable:!0,get:h})},d.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},d.t=function(s,u){if(1&u&&(s=d(s)),8&u||4&u&&typeof s=="object"&&s&&s.__esModule)return s;var h=Object.create(null);if(d.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:s}),2&u&&typeof s!="string")for(var f in s)d.d(h,f,(function(p){return s[p]}).bind(null,f));return h},d.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return d.d(u,"a",u),u},d.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},d.p="",d(d.s=0)}([function(c,l,d){function s(h,f){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=p.tolerance,v=g===void 0?0:g,m=p.propertyName;return new Promise(function(y){if(h){var C=null,_=f.charAt(0).toUpperCase()+f.slice(1),k=0;h.style["Webkit"+_]!==void 0&&(C="webkit"+_+"End"),h.style.OTransition!==void 0&&(C="o"+f+"End"),h.style[f]!==void 0&&(C=f+"end"),h.clearCssEndEvent&&h.clearCssEndEvent(),h.clearCssEndEvent=function(){h.removeEventListener(C,b)},h.addEventListener(C,b)}else y(!1);function b(S){if((S.srcElement||S.target)===h){if(k>=v){if(m&&m!==S.propertyName)return;h.removeEventListener(C,b),y(S)}k+=1}}})}function u(h){window&&window.requestAnimationFrame(function(){window.requestAnimationFrame(h)})}Object.defineProperty(l,"__esModule",{value:!0}),l.setCssEndEvent=s,l.beforeCssLayout=function(h){window&&window.requestAnimationFrame(h)},l.beforeNextCssLayout=u,l.beforeFutureCssLayout=function(h,f){(function p(g,v){window&&g&&Number.isInteger(g)&&g>0?window.requestAnimationFrame(function(){p(g-1,v)}):v()})(h+1,f)},l.onceNextCssLayout=function(){return new Promise(function(h){u(h)})},l.onceTransitionEnd=function(h){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(p){s(h,"transition",f).then(p)})},l.onceAnimationEnd=function(h){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(p){s(h,"animation",f).then(p)})}}])},function(n,i,a){n.exports=a(13)},,,,,,,,function(n,i,a){a.r(i);var c=a(3),l=a.n(c),d=a(2),s=a.n(d),u=a(4),h=a(0),f=a(1);function p(Q){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z})(Q)}function g(Q,oe){for(var Z=0;Z<oe.length;Z++){var G=oe[Z];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(Q,G.key,G)}}function v(Q){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)})(Q)}function m(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}function y(Q,oe){return(y=Object.setPrototypeOf||function(G,H){return G.__proto__=H,G})(Q,oe)}function C(Q,oe,Z){return oe in Q?Object.defineProperty(Q,oe,{value:Z,enumerable:!0,configurable:!0,writable:!0}):Q[oe]=Z,Q}var _=function(Q){function oe(Z){var G;return function(te,ae){if(!(te instanceof ae))throw new TypeError("Cannot call a class as a function")}(this,oe),G=function(te,ae){return!ae||p(ae)!=="object"&&typeof ae!="function"?m(te):ae}(this,v(oe).call(this,Z)),C(m(G),"bulletClick",function(H){var te=H.currentTarget;te.classList.add(Object(h.c)("".concat(G.rootElement,"__bullets--loading"),G.props.cssModule));var ae=parseInt(te.getAttribute("data-index"),10),le=!(G.props.selected>ae);G.props.onClick({index:ae,direction:le})}),G.rootElement=Z.rootElement,G}return function(G,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(H&&H.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),H&&y(G,H)}(oe,Q),function(G,H,te){return H&&g(G.prototype,H),te&&g(G,te),G}(oe,[{key:"renderBullets",value:function(){var G=this,H=this.props,te=H.cssModule,ae=H.selected,le=H.media;return(le===void 0?[]:le).map(function(we,ce){var ye=ce===ae?Object(h.c)("".concat(G.rootElement,"__bullets--active"),te):null;return l.a.createElement("button",{key:"bullet-".concat(ce),"data-index":ce,onClick:G.bulletClick,className:ye},ce)})}},{key:"render",value:function(){var G=this.props,H=G.cssModule,te=G.rootElement;return l.a.createElement("nav",{className:Object(h.c)("".concat(te,"__bullets"),H)},this.renderBullets())}}]),oe}(l.a.Component);function k(Q){return(k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z})(Q)}function b(Q,oe){for(var Z=0;Z<oe.length;Z++){var G=oe[Z];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(Q,G.key,G)}}function S(Q,oe){return!oe||k(oe)!=="object"&&typeof oe!="function"?function(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}(Q):oe}function T(Q){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)})(Q)}function L(Q,oe){return(L=Object.setPrototypeOf||function(G,H){return G.__proto__=H,G})(Q,oe)}function I(Q,oe,Z){return oe in Q?Object.defineProperty(Q,oe,{value:Z,enumerable:!0,configurable:!0,writable:!0}):Q[oe]=Z,Q}C(_,"propTypes",{cssModule:s.a.object,rootElement:s.a.string.isRequired,media:s.a.array,onClick:s.a.func,selected:s.a.number}),C(_,"defaultProps",{cssModule:null,selected:0,media:[],onClick:function(){}});var A=function(Q){function oe(){return function(G,H){if(!(G instanceof H))throw new TypeError("Cannot call a class as a function")}(this,oe),S(this,T(oe).apply(this,arguments))}return function(G,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(H&&H.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),H&&L(G,H)}(oe,Q),function(G,H,te){return H&&b(G.prototype,H),te&&b(G,te),G}(oe,[{key:"componentDidMount",value:function(){this.props.onMount({element:this.controls,next:this.next,prev:this.prev})}},{key:"render",value:function(){var G=this,H=this.props,te=H.rootElement,ae=H.cssModule,le=H.organicArrows,we=H.buttonContentLeft,ce=H.buttonContentRight,ye=H.onNext,Ae=H.onPrev;return l.a.createElement("div",{ref:function(pe){G.controls=pe,G.props.onMount({element:G.controls,next:G.next||null,prev:G.prev||null})},className:[Object(h.c)("".concat(te,"__controls"),ae),Object(h.c)("".concat(te,"__controls--hidden"),ae)].join(" ")},l.a.createElement("button",{ref:function(pe){G.next=pe},"aria-label":"next",className:Object(h.c)("".concat(te,"__next"),ae),onClick:ye},le?l.a.createElement("span",{className:Object(h.c)("".concat(te,"__controls__arrow-right"),ae)}):ce),l.a.createElement("button",{ref:function(pe){G.prev=pe},"aria-label":"previous",className:Object(h.c)("".concat(te,"__prev"),ae),onClick:Ae},le?l.a.createElement("span",{className:Object(h.c)("".concat(te,"__controls__arrow-left"),ae)}):we))}}]),oe}(l.a.Component);function P(Q){return(P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z})(Q)}function D(){return(D=Object.assign||function(Q){for(var oe=1;oe<arguments.length;oe++){var Z=arguments[oe];for(var G in Z)Object.prototype.hasOwnProperty.call(Z,G)&&(Q[G]=Z[G])}return Q}).apply(this,arguments)}function E(Q,oe){if(Q==null)return{};var Z,G,H=function(le,we){if(le==null)return{};var ce,ye,Ae={},ne=Object.keys(le);for(ye=0;ye<ne.length;ye++)ce=ne[ye],we.indexOf(ce)>=0||(Ae[ce]=le[ce]);return Ae}(Q,oe);if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(Q);for(G=0;G<te.length;G++)Z=te[G],oe.indexOf(Z)>=0||Object.prototype.propertyIsEnumerable.call(Q,Z)&&(H[Z]=Q[Z])}return H}function R(Q,oe){for(var Z=0;Z<oe.length;Z++){var G=oe[Z];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(Q,G.key,G)}}function $(Q){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)})(Q)}function N(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}function M(Q,oe){return(M=Object.setPrototypeOf||function(G,H){return G.__proto__=H,G})(Q,oe)}function O(Q,oe,Z){return oe in Q?Object.defineProperty(Q,oe,{value:Z,enumerable:!0,configurable:!0,writable:!0}):Q[oe]=Z,Q}I(A,"propTypes",{cssModule:s.a.object,rootElement:s.a.string.isRequired,onMount:s.a.func.isRequired,onNext:s.a.func.isRequired,onPrev:s.a.func.isRequired,buttonContentLeft:s.a.node,buttonContentRight:s.a.node,organicArrows:s.a.bool}),I(A,"defaultProps",{cssModule:null,organicArrows:!0,buttonContentLeft:null,buttonContentRight:null});var j=function(Q){function oe(){var Z,G;(function(we,ce){if(!(we instanceof ce))throw new TypeError("Cannot call a class as a function")})(this,oe);for(var H=arguments.length,te=new Array(H),ae=0;ae<H;ae++)te[ae]=arguments[ae];return G=function(we,ce){return!ce||P(ce)!=="object"&&typeof ce!="function"?N(we):ce}(this,(Z=$(oe)).call.apply(Z,[this].concat(te))),O(N(G),"state",{}),G}return function(G,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(H&&H.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),H&&M(G,H)}(oe,Q),function(G,H,te){return H&&R(G.prototype,H),te&&R(G,te),G}(oe,[{key:"render",value:function(){var G=this.props,H=G.media,te=G.className,ae=H.source,le=H.children,we=H.style,ce=(H.loader,H["data-src"],H["data-alt"],H.className),ye=(H.onTransitionEnd,H.onTransitionStartOut,H.onTransitionStartIn,H.onTransitionRequestOut,H.onTransitionRequestIn,E(H,["source","children","style","loader","data-src","data-alt","className","onTransitionEnd","onTransitionStartOut","onTransitionStartIn","onTransitionRequestOut","onTransitionRequestIn"])),Ae=null;return ae&&(Ae=ae.match(/\.(mp4|webm)/)?l.a.createElement("video",{title:H.title||H["data-title"],src:ae,type:"video/mp4",controls:!0}):l.a.createElement("img",{alt:H.alt||H.title||H["data-alt"]||null,src:ae})),l.a.createElement("div",D({className:te,style:we||null},ye),Ae,le&&l.a.createElement("div",{className:ce},H.children))}}]),oe}(l.a.Component);function z(Q){return(z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z})(Q)}function F(){return(F=Object.assign||function(Q){for(var oe=1;oe<arguments.length;oe++){var Z=arguments[oe];for(var G in Z)Object.prototype.hasOwnProperty.call(Z,G)&&(Q[G]=Z[G])}return Q}).apply(this,arguments)}function K(Q){return function(Z){if(Array.isArray(Z)){for(var G=0,H=new Array(Z.length);G<Z.length;G++)H[G]=Z[G];return H}}(Q)||function(Z){if(Symbol.iterator in Object(Z)||Object.prototype.toString.call(Z)==="[object Arguments]")return Array.from(Z)}(Q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function U(Q,oe){var Z=Object.keys(Q);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Q);oe&&(G=G.filter(function(H){return Object.getOwnPropertyDescriptor(Q,H).enumerable})),Z.push.apply(Z,G)}return Z}function Y(Q){for(var oe=1;oe<arguments.length;oe++){var Z=arguments[oe]!=null?arguments[oe]:{};oe%2?U(Object(Z),!0).forEach(function(G){ie(Q,G,Z[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(Z)):U(Object(Z)).forEach(function(G){Object.defineProperty(Q,G,Object.getOwnPropertyDescriptor(Z,G))})}return Q}function V(Q,oe){for(var Z=0;Z<oe.length;Z++){var G=oe[Z];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(Q,G.key,G)}}function q(Q){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)})(Q)}function ee(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}function X(Q,oe){return(X=Object.setPrototypeOf||function(G,H){return G.__proto__=H,G})(Q,oe)}function ie(Q,oe,Z){return oe in Q?Object.defineProperty(Q,oe,{value:Z,enumerable:!0,configurable:!0,writable:!0}):Q[oe]=Z,Q}O(j,"propTypes",{media:s.a.object.isRequired,className:s.a.string.isRequired});var se="awssld",me=new h.a,ve=function(Q){function oe(Z){var G;return function(te,ae){if(!(te instanceof ae))throw new TypeError("Cannot call a class as a function")}(this,oe),G=function(te,ae){return!ae||z(ae)!=="object"&&typeof ae!="function"?ee(te):ae}(this,q(oe).call(this,Z)),ie(ee(G),"clickNext",function(){var H=G.index===null?0:G.index+1;G.onTransitionRequest("next",H),G.goTo({index:H,direction:!0})}),ie(ee(G),"clickPrev",function(){var H=G.index-1;G.onTransitionRequest("prev",H),G.goTo({index:H,direction:!1})}),ie(ee(G),"touchStart",function(H){if(!G.animating&&G.index!==null){var te=H.nativeEvent;G.touchStartPoint=te.touches[0].clientX}}),ie(ee(G),"touchMove",function(H){if(!G.animating&&G.touchStartPoint){var te=H.nativeEvent,ae=te.touches[0].clientX-G.touchStartPoint,le=G[G.active],we=G[G.loader],ce=!(ae>0),ye=Math.abs(ae);G.touchEnabled!==!1?ye>=10&&(G.loading===!1?G.goTo({index:ce?G.index+1:G.index-1,direction:ce,touch:!0}):G.direction===!0?(ae+=10,Math.abs(ae)>le.offsetWidth?ae=-le.offsetWidth:ae>0&&(ae=0),le.style.transform="translate3d(".concat(ae,"px, 0, 0)"),we.style.transform="translate3d(calc(100% + ".concat(ae,"px), 0, 0)")):(ae-=10,Math.abs(ae)>le.offsetWidth?ae=le.offsetWidth:ae<0&&(ae=0),le.style.transform="translate3d(".concat(ae,"px, 0, 0)"),we.style.transform="translate3d(calc(-100% + ".concat(ae,"px), 0, 0)"))):ye>20&&(G.touchEnabled=!0,G.touchStartPoint=te.touches[0].clientX)}}),ie(ee(G),"touchEnd",function(){!G.animating&&G.touchStartPoint&&G.loading&&(G.touchStartPoint=null,G.animating=!0,G.touchEnabled=!1,G.animateMobileEnd(function(){G.index=G.nextIndex,G.setState({index:G.index}),G.onTransitionEnd(),G.animating=!1,G.loading=!1,G.unchargeIndex()}))}),ie(ee(G),"bulletClick",function(H){var te=H.currentTarget,ae=parseInt(te.getAttribute("data-index"),10);G.goTo({index:ae,direction:!(G.index>ae)},function(){Object(u.onceNextCssLayout)().then(function(){Object(f.a)(te,G.classNames.bulletsLoading)})})}),G.rootElement=Z.rootElement||se,G.boxA=null,G.boxB=null,G.loaded=[],G.active="boxA",G.loader="boxB",G.nextIndex=null,G.loading=!1,G.media=null,G.started=!1,G.touchEnabled=!1,G.setupStartup(Z),G}return function(G,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(H&&H.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),H&&X(G,H)}(oe,Q),function(G,H,te){return H&&V(G.prototype,H),te&&V(G,te),G}(oe,[{key:"componentDidMount",value:function(){var G=this;Object(f.a)(this.boxA,this.classNames.active),this.props.startupScreen&&(this.buttons&&(Object(f.a)(this.buttons.element,this.classNames.controlsHidden),Object(f.a)(this.buttons.element,this.classNames.controlsActive)),this.props.startup===!0&&this.media.length>0&&this.startup()),this.props.onFirstMount&&this.props.onFirstMount(Y({},this.getInfo())),this.buttons&&Object(u.onceNextCssLayout)().then(function(){G.buttons&&G.buttons.element&&Object(f.b)(G.buttons.element,G.classNames.controlsHidden)})}},{key:"UNSAFE_componentWillReceiveProps",value:function(G){if(this.checkChildren(G),this.setupClassNames(Object(f.e)(G.cssModule)),G.name===this.props.name)if(G.startup!==!0||this.started!==!1)if(G.selected===this.props.selected)this.refreshSlider();else{var H=this.getIndex(G.selected),te=G.infinite===!0&&H===0&&this.index===this.media.length-1||!(this.index>H);this.goTo({index:H,direction:te})}else this.startup();else this.resetSlider(G.selected)}},{key:"onTransitionStart",value:function(){var G=this.media[this.index],H=this.media[this.nextIndex],te=Y({},this.getInfo(),{nextSlide:this[this.loader],nextIndex:this.nextIndex,nextMedia:H});this.props.onTransitionStart&&this.props.onTransitionStart(te),G&&G.onTransitionStartOut&&G.onTransitionStartOut(te),H&&H.onTransitionStartIn&&H.onTransitionStartIn(te)}},{key:"onTransitionRequest",value:function(G,H){var te=this.media[this.index],ae=this.checkIndex(H),le=this.media[ae],we=Y({eventName:G},this.getInfo(),{nextSlide:null,nextIndex:ae,nextMedia:le});this.props.onTransitionRequest&&this.props.onTransitionRequest(we),te&&te.onTransitionRequestOut&&te.onTransitionRequestOut(we),le&&le.onTransitionRequestIn&&le.onTransitionRequestIn(we)}},{key:"onTransitionEnd",value:function(){var G=this.media[this.index],H=Y({},this.getInfo());this.props.onTransitionEnd&&this.props.onTransitionEnd(H),G&&G.onTransitionEnd&&G.onTransitionEnd(H)}},{key:"getRootClassName",value:function(){var G=this.props,H=G.animation,te=G.className,ae=G.cssModule,le=G.disabled,we=G.fillParent,ce=G.infinite,ye=G.organicArrows;return Object(f.d)({animation:H,className:te,cssModule:Object(f.e)(ae),current:this.state.index,disabled:le,fillParent:we,infinite:ce,organicArrows:ye,rootElement:this.rootElement,total:this.media.length})}},{key:"setupStartup",value:function(G){if(this.checkChildren(G),this.setupClassNames(Object(f.e)(G.cssModule)),G.startupScreen){var H=this.getIndex(this.props.selected);this.index=null,this.state={index:this.index,boxA:{className:this.classNames.startUp,children:G.startupScreen},boxB:this.media[H]||null}}else this.started=!0,this.index=this.getIndex(this.props.selected),this.state={index:this.index,boxA:this.media[this.index]||null,boxB:null}}},{key:"getInfo",value:function(){return{slides:this.media.length,currentIndex:this.index,currentSlide:this[this.active],currentMedia:this.media[this.index],element:this.slider}}},{key:"getProgressBar",value:function(){if(!document)return{};var G=document.createElement("div");return G.className=this.classNames.bar,G}},{key:"setupClassNames",value:function(G){this.classNames=Object(f.f)(this.rootElement,G)}},{key:"getIndex",value:function(G){var H=0;return typeof G=="number"?G:(typeof G=="string"&&this.media.forEach(function(te,ae){te.slug===G&&(H=ae)}),H)}},{key:"refreshSlider",value:function(){var G;if(this.loading!==!0&&this.props.startup!==!1&&this.index!==null){var H=this.index;this.setState((ie(G={index:H},this.active,this.media[this.getIndex(H)]),ie(G,this.loader,null),G))}}},{key:"startup",value:function(){var G=this;this.started=!0,setTimeout(function(){G.goTo({index:G.props.selected,direction:!0,touch:!1})},this.props.startupDelay||75)}},{key:"resetSlider",value:function(){var G,H=this,te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.index=te,this.setState((ie(G={index:te},this.active,this.media[this.getIndex(te)]),ie(G,this.loader,null),G),function(){H.props.onResetSlider&&H.props.onResetSlider(Y({},H.getInfo()))})}},{key:"checkChildren",value:function(G){G.children&&(G.children!==this.props.children||this.props.children&&!this.media)?this.media=Object(f.g)(G.children):G.media&&G.media.length?this.media=G.media:this.media||(this.media=[])}},{key:"startBarAnimation",value:function(G){var H=this,te=G.active;return new Promise(function(ae){H.bar=H.getProgressBar(),te.appendChild(H.bar),Object(u.onceNextCssLayout)().then(function(){Object(u.onceNextCssLayout)().then(function(){Object(f.a)(H.bar,H.classNames.barActive),ae()})})})}},{key:"endBarAnimation",value:function(G){var H=this;this.bar&&Object(u.onceNextCssLayout)().then(function(){Object(u.onceTransitionEnd)(H.bar).then(function(){G()}),Object(f.a)(H.bar,H.classNames.barEnd)})}},{key:"loadContent",value:function(G,H){var te=this;return new Promise(function(ae,le){if(te.props.onLoadStart||H&&H.onLoadStart){var we=te.props.onLoadStart||H&&H.onLoadStart;return te.startBarAnimation({active:G}),void we(Y({next:function(){te.endBarAnimation(function(){ae(te.bar)})},error:le},te.getInfo()))}if(H&&(H.source||H.preload)){var ce=H.preload?H.preload:H.source&&[H.source]||[];return te.checkLoadedUrls(ce)===!0?void ae(null):(te.startBarAnimation({active:G}),void me.loadMultiple(ce).then(function(){te.pushLoaded(ce),te.endBarAnimation(function(){ae(te.bar)})}))}ae(null)})}},{key:"pushLoaded",value:function(G){this.loaded=[].concat(K(this.loaded),K(G))}},{key:"checkLoadedUrls",value:function(G){var H=this,te=!0;return G.forEach(function(ae){H.loaded.includes(ae)||(te=!1)}),te}},{key:"startAnimationMobile",value:function(){var G=this.direction,H=this[this.active],te=this[this.loader],ae=G?this.classNames.contentMoveRight:this.classNames.contentMoveLeft,le=G?this.classNames.contentMoveLeft:this.classNames.contentMoveRight;this.props.onTransitionStart&&this.props.onTransitionStart(Y({},this.getInfo(),{nextSlide:this[this.loader],nextIndex:this.nextIndex,nextMedia:this.media[this.nextIndex]}));var we=H.querySelector(".".concat(Object(f.c)(this.classNames.content)));Object(f.a)(we,le),Object(f.a)(we,this.classNames.contentExit);var ce=te.querySelector(".".concat(Object(f.c)(this.classNames.content)));Object(f.a)(ce,ae),Object(f.a)(ce,this.classNames.contentStatic),Object(f.a)(H,this.classNames.animated),Object(f.a)(te,this.classNames.animated)}},{key:"animateMobileEnd",value:function(G){var H=this,te=this.direction,ae=this[this.active],le=this[this.loader],we=te?this.classNames.moveLeft:this.classNames.moveRight,ce=te?this.classNames.contentMoveRight:this.classNames.contentMoveLeft,ye=te?this.classNames.contentMoveLeft:this.classNames.contentMoveRight,Ae=le.querySelector(".".concat(Object(f.c)(this.classNames.content))),ne=ae.querySelector(".".concat(Object(f.c)(this.classNames.content)));Object(f.b)(Ae,this.classNames.contentStatic),Object(f.a)(le,this.classNames.animatedMobile),Object(f.a)(ae,this.classNames.animatedMobile),Object(u.onceNextCssLayout)().then(function(){le.style.transform="translate3d(0, 0, 0)",ae.style.transform="translate3d(".concat(H.direction?"-":"","100%, 0, 0)"),Object(u.onceTransitionEnd)(ae).then(function(){H.loading&&(Object(f.b)(ae,H.classNames.animated),Object(f.b)(le,H.classNames.animated),Object(f.a)(le,H.classNames.active),Object(f.b)(ae,H.classNames.active),Object(f.b)(ae,we),Object(f.b)(le,H.classNames.animatedMobile),Object(f.b)(ae,H.classNames.animatedMobile),Object(f.b)(ne,ye),Object(f.b)(ne,H.classNames.contentExit),Object(f.b)(Ae,ce),H.buttons&&setTimeout(function(){H.buttons&&Object(f.b)(H.buttons.element,H.classNames.controlsActive)},H.props.controlsReturnDelay),H.activeArrow&&(Object(f.b)(H.activeArrow,H.activeArrowClass),H.activeArrow=null,H.activeArrowClass=null),H.active=H.active==="boxA"?"boxB":"boxA",H.loader=H.active==="boxA"?"boxB":"boxA",G&&G())})})}},{key:"runAnimation",value:function(G){var H=this,te=G.active,ae=G.media,le=G.contentExitMoveClass,we=G.contentEnterMoveClass,ce=G.activeContentElement,ye=G.loaderContentElement,Ae=G.loader,ne=G.loaderPosition,pe=G.exitPosition,ue=G.callback,_e=G.transitionDelay;this.loadContent(te,ae).then(function(Be){Object(f.a)(ce,le),Object(f.a)(ce,H.classNames.contentExit),Object(f.a)(ye,we),Object(f.a)(ye,H.classNames.contentStatic),setTimeout(function(){Object(u.onceNextCssLayout)().then(function(){Object(f.a)(te,H.classNames.animated),Object(f.a)(Ae,H.classNames.animated),Object(f.b)(ye,H.classNames.contentStatic),Object(f.a)(te,H.classNames.exit),Object(f.a)(Ae,ne),Object(f.a)(te,pe),Object(u.onceAnimationEnd)(te).then(function(){Object(f.a)(Ae,H.classNames.active),Object(f.b)(Ae,ne),Object(f.b)(Ae,H.classNames.animated),Object(f.b)(te,H.classNames.animated),Object(f.b)(te,H.classNames.active),Object(f.b)(te,pe),Object(f.b)(te,H.classNames.exit),Object(f.b)(ce,le),Object(f.b)(ce,H.classNames.contentExit),Object(f.b)(ye,we),Be&&te.removeChild(Be),H.buttons&&setTimeout(function(){H.buttons&&Object(f.b)(H.buttons.element,H.classNames.controlsActive)},H.props.controlsReturnDelay),H.active=H.active==="boxA"?"boxB":"boxA",H.loader=H.active==="boxA"?"boxB":"boxA";var Re=!H.activeArrow;H.activeArrow&&(Object(u.onceTransitionEnd)(H.activeArrow,{tolerance:H.index===null?0:2}).then(function(){H.releaseTransition()}),Object(f.b)(H.activeArrow,H.activeArrowClass),H.activeArrow=null,H.activeArrowClass=null),ue({release:Re})})})},_e)})}},{key:"releaseTransition",value:function(){this.loading=!1}},{key:"startAnimation",value:function(G,H,te){var ae=this.props.transitionDelay,le=this[this.active],we=this[this.loader],ce=G?this.classNames.moveRight:this.classNames.moveLeft,ye=G?this.classNames.moveLeft:this.classNames.moveRight,Ae=G?this.classNames.contentMoveRight:this.classNames.contentMoveLeft,ne=G?this.classNames.contentMoveLeft:this.classNames.contentMoveRight,pe=le.querySelector(".".concat(Object(f.c)(this.classNames.content))),ue=we.querySelector(".".concat(Object(f.c)(this.classNames.content)));le.style.removeProperty("transform"),we.style.removeProperty("transform"),this.onTransitionStart();var _e={active:le,media:H,contentExitMoveClass:ne,contentEnterMoveClass:Ae,activeContentElement:pe,loaderContentElement:ue,loader:we,loaderPosition:ce,exitPosition:ye,callback:te,transitionDelay:ae};this.runAnimation(_e)}},{key:"goTo",value:function(G){var H=this,te=G.index,ae=G.direction,le=G.touch,we=le!==void 0&&le,ce=this.getIndex(te);this.loading!==!0&&te!==this.index?(this.loading=!0,this.direction=ae,we!==!0?this.activateArrows(ae,function(){H.chargeIndex(ce,function(ye){H.renderedLoader=!0,H.startAnimation(ae,ye,function(Ae){var ne=Ae.release,pe=ne===void 0||ne;H.index=H.nextIndex,H.setState({index:H.index},function(){H.onTransitionEnd(),pe===!0&&H.releaseTransition()})})})}):this.chargeIndex(ce,function(){H.activateArrows(ae),H.startAnimationMobile()})):this.props.onTransitionReject&&this.props.onTransitionReject(Y({},this.getInfo(),{forceTransition:function(){H.goTo({index:te,direction:ae,touch:we})}}))}},{key:"checkIndex",value:function(G){return G>this.media.length-1?0:G<0?this.media.length-1:G}},{key:"chargeIndex",value:function(G,H){this.nextIndex=this.checkIndex(G);var te={},ae=this.media[this.nextIndex];te[this.loader]=Y({loader:!0},ae),this.setState(te,function(){H(ae)})}},{key:"unchargeIndex",value:function(){var G={};G[this.loader]=null,this.setState(G,function(){})}},{key:"activateArrows",value:function(G,H){var te=G?"right":"left",ae=Object(f.e)(this.props.cssModule),le=Object(f.c)(Object(h.c)("".concat(this.rootElement,"__controls__arrow-").concat(te),ae));if(this.buttons){var we=G?this.buttons.next:this.buttons.prev;this.activeArrow=we.querySelector(".".concat(le))}!this.activeArrow||this.buttons&&this.buttons.element&&this.buttons.element.classList.contains(this.classNames.controlsActive)?H&&H():(this.activeArrowClass=Object(h.c)("".concat(this.rootElement,"__controls__arrow-").concat(te,"--active"),ae),Object(u.onceTransitionEnd)(this.activeArrow,{tolerance:this.index===null?0:2}).then(function(){H&&H()}),this.buttons&&this.buttons.element&&(Object(f.a)(this.buttons.element,this.classNames.controlsActive),Object(f.a)(this.activeArrow,this.activeArrowClass)))}},{key:"renderBox",value:function(G){var H=this,te={};return this.props.mobileTouch&&(te.onTouchStart=this.touchStart,te.onTouchMove=this.touchMove,te.onTouchEnd=this.touchEnd),l.a.createElement("div",F({ref:function(le){H["box".concat(G)]=le},className:this.classNames.box},te),this.state["box".concat(G)]&&l.a.createElement(j,{media:this.state["box".concat(G)],className:this.classNames.content}))}},{key:"render",value:function(){var G=this,H=this.props,te=H.cssModule,ae=H.organicArrows,le=H.bullets,we=H.style,ce=H.customContent,ye=H.buttons,Ae=H.buttonContentLeft,ne=H.buttonContentRight,pe=this.rootElement;return l.a.createElement("div",{ref:function(_e){G.slider=_e},className:this.getRootClassName(),style:we},l.a.createElement("div",{ref:function(_e){G.wrapper=_e},className:this.classNames.wrapper},l.a.createElement("div",{ref:function(_e){G.container=_e},className:this.classNames.container},this.renderBox("A"),this.renderBox("B")),ye&&l.a.createElement(A,{rootElement:pe,cssModule:Object(f.e)(te),onMount:function(_e){G.buttons=_e},onNext:this.clickNext,onPrev:this.clickPrev,organicArrows:ae,buttonContentLeft:Ae,buttonContentRight:ne}),ce),le&&l.a.createElement(_,{cssModule:Object(f.e)(te),rootElement:pe,media:this.media,selected:this.state.index,onClick:function(_e){G.onTransitionRequest("bullet",_e.index),G.goTo(_e)}}))}}]),oe}(l.a.Component);ie(ve,"propTypes",{animation:s.a.string,bullets:s.a.bool,buttonContentLeft:s.a.node,buttonContentRight:s.a.node,buttons:s.a.bool,children:s.a.node,className:s.a.string,controlsReturnDelay:s.a.number,cssModule:s.a.any,customContent:s.a.node,onLoadStart:s.a.func,disabled:s.a.bool,fillParent:s.a.bool,infinite:s.a.bool,media:s.a.array,name:s.a.string,onFirstMount:s.a.func,onResetSlider:s.a.func,onStartupRelease:s.a.func,onTransitionEnd:s.a.func,onTransitionRequest:s.a.func,onTransitionStart:s.a.func,organicArrows:s.a.bool,rootElement:s.a.string,selected:s.a.any,startup:s.a.bool,startupDelay:s.a.number,startupScreen:s.a.object,style:s.a.object,transitionDelay:s.a.number,mobileTouch:s.a.bool}),ie(ve,"defaultProps",{animation:null,bullets:!0,buttonContentLeft:null,buttonContentRight:null,buttons:!0,children:null,className:null,controlsReturnDelay:0,cssModule:null,customContent:null,onLoadStart:null,disabled:!1,fillParent:!1,infinite:!0,media:[],name:"awesome-slider",onFirstMount:null,onResetSlider:null,onStartupRelease:null,onTransitionEnd:null,onTransitionRequest:null,onTransitionStart:null,organicArrows:!0,rootElement:se,selected:0,startup:!0,startupDelay:0,startupScreen:null,style:{},transitionDelay:0,mobileTouch:!0}),i.default=ve}])})})(aee);const lee=({})=>{const e=At();function t(){e("/")}return w.jsx("div",{className:"center-screen",children:w.jsx("div",{className:"flex-center-align",children:w.jsxs(re,{className:"align-items-center",direction:"vertical",size:"m",children:[w.jsx(J,{children:w.jsx(Le,{children:w.jsx("h3",{className:"color-lighten-15",children:"Page Not Found"})})}),w.jsx(ge,{onClick:t,children:"Home"})]})})})},see=()=>w.jsx(Fr,{navigationHide:!0,content:w.jsx(lee,{}),toolsHide:!0,ariaLabels:$r,disableContentPaddings:!0,headerSelector:"#top-nav"});cp.div`
   116    /* border-bottom: 1px solid ${XJ}; */
   117  `;const cee=e=>(e.kind="update_user_password",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Update User Password Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t})),NB=e=>{const[t,r]=B.useState(""),[o,n]=B.useState(""),[i,a]=B.useState(""),[c,l]=B.useState(!1),[d,s]=x.useState(!1),[u,h]=B.useState(!1),[f,p]=B.useState(""),[g,v]=B.useState(""),m=L=>{r(L.value)},y=L=>{n(L.value)},C=L=>{a(L.value)},_=(L,I)=>L&&!(I.length>=8&&I.length<=254)?"The password is non compliant. It should contain 8-254 characters.":null,k=(L,I)=>{if(L){if(!(I.length>=8&&I.length<=254))return"The password is non compliant. It should contain 8-254 characters.";if(I!==i)return"The new password does not match confirm new password."}return null},b=(L,I)=>{if(L){if(!(I.length>=8&&I.length<=254))return"The password is non compliant. It should contain 8-254 characters.";if(I!==o)return"The confirm new password does not match new password."}return null};function S(){return!(_(!0,t)!==null||k(!0,o)!==null||b(!0,i)!==null||o!==i)}const T=async()=>{if(!S()){l(!0);return}try{s(!0),await cee({old_password:t,new_password:o})!==null?(p(""),v(""),h(!1),console.log("Successfully updated user password"),e.close()):(p("Password Change Error"),v("Failed to change user password."),h(!0))}catch(L){p(L.name),v(L.message),h(!0)}finally{s(!1)}};return w.jsxs(Hn,{onDismiss:()=>e.close(),visible:e.visible,closeAriaLabel:"Close modal",footer:w.jsx(J,{float:"right",children:d?w.jsx(re,{direction:"horizontal",size:"xs",children:w.jsx(ge,{variant:"primary",loading:!0,children:"Save"})}):w.jsxs(re,{direction:"horizontal",size:"xs",children:[w.jsx(ge,{variant:"link",onClick:()=>e.close(),children:"Cancel"}),w.jsx(ge,{variant:"primary",onClick:()=>T(),children:"Save"})]})}),header:"Password Change",children:[u&&w.jsx(J,{padding:{bottom:"l"},children:w.jsx(Gt,{dismissAriaLabel:"Close alert",dismissible:!0,statusIconAriaLabel:"Error",type:"error",header:f,onDismiss:()=>h(!1),children:g})}),w.jsx(Fn,{children:w.jsxs(re,{direction:"vertical",size:"m",children:[w.jsx(nt,{label:"Current Password",errorText:_(c,t),constraintText:w.jsx("span",{children:w.jsx("i",{children:"This is the current password you use to login."})}),children:w.jsx(jt,{type:"password",value:t,spellcheck:!1,autoComplete:!1,disableBrowserAutocorrect:!0,onChange:({detail:L})=>m(L)})}),w.jsx(nt,{label:"New Password",errorText:k(c,o),constraintText:w.jsx("span",{children:w.jsx("i",{children:"This is the new password you would like to use."})}),children:w.jsx(jt,{type:"password",value:o,spellcheck:!1,autoComplete:!1,disableBrowserAutocorrect:!0,onChange:({detail:L})=>y(L)})}),w.jsx(nt,{label:"Confirm New Password",errorText:b(c,i),children:w.jsx(jt,{type:"password",value:i,spellcheck:!1,autoComplete:!1,disableBrowserAutocorrect:!0,onChange:({detail:L})=>C(L)})})]})})]})},uee=e=>{const t=At(),[r,o]=B.useState(null),[n,i]=B.useState(!0),[a,c]=B.useState(0),[l,d]=B.useState(!1),[s,u]=B.useState(!1),[h,f]=B.useState(""),[p,g]=B.useState("");function v(){c(a+1)}return B.useEffect(()=>{(async()=>{i(!0);try{const y=await iee();o(y),u(!1),f(""),g(""),console.log("fetched data",y)}catch(y){u(!0),f(`${y.name}`),g(`${y.message}`)}finally{i(!1)}})()},[a]),w.jsx(w.Fragment,{children:n?w.jsx(hi,{}):w.jsxs(w.Fragment,{children:[s&&w.jsx(so,{header:w.jsx(Ge,{variant:"h1",description:"You have encountered an application error related to backend services",children:"Service Unavailable"}),children:w.jsx(re,{size:"l",children:w.jsx(Fe,{children:w.jsx(En,{title:h,subtitle:p,action:w.jsx(ge,{onClick:v,children:"Refresh"})})})})}),!s&&w.jsxs(so,{header:w.jsx(re,{size:"m",children:w.jsx(Ge,{variant:"h1",description:"Your personalized view of key metrics and controls, all in one place.",actions:w.jsx(ge,{onClick:v,children:"Refresh"}),children:"User Dashboard"})}),children:[(r==null?void 0:r.asset_count)&&w.jsx(Fe,{header:w.jsx(Ge,{variant:"h2",description:"Understand your usage of various digital keys.",children:"Key Usage"}),children:w.jsxs(Er,{columns:4,variant:"text-grid",children:[w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"MFA/2FA"}),w.jsx(Bo,{variant:"awsui-value-large",onFollow:()=>t("/multi-factor-authenticators/"),ariaLabel:`MFA/2FA (${r==null?void 0:r.asset_count.mfa_2fa})`,children:(r==null?void 0:r.asset_count.mfa_2fa)||"0"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"API Keys"}),w.jsx(Bo,{variant:"awsui-value-large",color:"normal",onFollow:()=>t("/api-keys/"),ariaLabel:`API Keys (${r==null?void 0:r.asset_count.api_key})`,children:(r==null?void 0:r.asset_count.api_key)||"0"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"SSH keys"}),w.jsx(Bo,{variant:"awsui-value-large",onFollow:()=>t("/ssh-keys/"),ariaLabel:`SSH keys (${r==null?void 0:r.asset_count.ssh_key})`,children:(r==null?void 0:r.asset_count.ssh_key)||"0"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"GPG keys"}),w.jsx(Bo,{variant:"awsui-value-large",onFollow:()=>t("/gpg-keys/"),ariaLabel:`GPG keys (${r==null?void 0:r.asset_count.gpg_key})`,children:(r==null?void 0:r.asset_count.gpg_key)||"0"})]})]})}),w.jsx("br",{}),w.jsx(re,{direction:"vertical",size:"l",children:(r==null?void 0:r.metadata)&&w.jsx(Fe,{header:w.jsx(Ge,{variant:"h2",description:"View your user account information.",actions:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(ge,{variant:"normal",iconName:"user-profile",onClick:()=>t("/info"),children:"View Details"}),w.jsx(ge,{variant:"normal",iconName:"key",onClick:()=>d(!0),children:"Change Password"})]}),children:"User Information"}),children:w.jsxs(re,{size:"l",children:[w.jsxs(Er,{columns:3,variant:"text-grid",children:[w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"User ID"}),w.jsx(pr,{variant:"inline",textToCopy:r.metadata.id,copyButtonAriaLabel:"Copy User ID",copySuccessText:"User ID copied",copyErrorText:"Failed to copy User ID"})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Username"}),w.jsx("div",{children:r.metadata.username})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Email"}),w.jsx("div",{children:r.metadata.email})]})]}),w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Name"}),w.jsx("div",{children:r.metadata.name})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Created At"}),w.jsx("div",{children:r.metadata.created})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Last Modified"}),w.jsx("div",{children:r.metadata.last_modified})]})]}),w.jsx(re,{size:"l",children:w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Revision"}),w.jsx("div",{children:r.metadata.revision})]})})]}),r.roles&&r.roles.length>0&&w.jsx(re,{size:"l",children:w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Roles"}),w.jsx(re,{size:"xs",direction:"horizontal",children:r.roles.map((m,y)=>w.jsx("div",{"aria-setsize":r.roles.length,"aria-posinset":y+1,children:w.jsx(Tn,{children:m})},`dashboard-role-${y}`))})]})})]})})})]}),l&&w.jsx(NB,{visible:l,refresh:()=>v(),close:()=>d(!1)})]})})},dee=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like)."})}),hee=e=>{const[t,r]=B.useState(!1),o=c=>r(c.detail.open),[n,i]=B.useState(!1),a=c=>i(c.detail.open);return w.jsx(Fr,{navigationHide:!1,navigation:e.navigation,navigationOpen:n,onNavigationChange:a,content:w.jsx(uee,{...e}),toolsHide:!1,tools:w.jsx(dee,{}),toolsWidth:500,toolsOpen:t,onToolsChange:o,ariaLabels:$r,headerSelector:"#top-nav"})},fee=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})}),pee=()=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"fetch_user_multi_factor_authenticators"}}).then(e=>(console.log("Fetch Multi Factor Authenticators Response",e),e.data.entries!==void 0?e.data.entries:null)).catch(e=>{var t;throw((t=e==null?void 0:e.response)==null?void 0:t.status)===401&&Tt(),e}),gee=e=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"delete_user_multi_factor_authenticator",id:e}}).then(t=>(console.log("Delete Multi Factor Authenticator Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r;throw((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),t}),mee=e=>(!e.includes("-")&&!e.includes(":")&&([4,7].forEach(t=>{e=e.slice(0,t)+"-"+e.slice(t)}),[13,16].forEach(t=>{e=e.slice(0,t)+":"+e.slice(t)})),e),ta=e=>(e=mee(e),new Date(e));function E1(e){return e===void 0?"No":e===!0?"Yes":"No"}function vee(e){if(e===void 0)return"";switch(e){case"totp":return"App Token";case"u2f":return"Hardware / U2F Token";default:return e}}function yee(e){if(e===void 0)return"";const t=[];for(const r of e)switch(r){case"prod":t.push("Production");break;case"test":t.push("Test");break;case"dev":t.push("Development");break;case"experimental":t.push("Experimental");break;default:t.push(r);break}return t.join(", ")}function bee(e){if(e===void 0)return"";const t=[];for(const r of e)t.push(`${r.key}=${r.value}`);return t.join(", ")}function Ag(e){return e===void 0?new Date(0):ta(e)}function wee(e){const t=[];return e.forEach(r=>{const o=r;o.ui_kind=vee(r.type),o.ui_labels=yee(r.labels),o.ui_tags=bee(r.tags),o.ui_created_at=Ag(r.created_at),o.ui_expired_at=Ag(r.expired_at),o.ui_disabled_at=Ag(r.disabled_at),o.ui_disabled=E1(r.disabled),o.ui_expired=E1(r.expired),t.push(o)}),t}const xee={pageSize:10,visibleContent:["comment","ui_kind","expired","disabled","ui_created_at"]};function _ee(e){return e===1?"1 match":`${e} matches`}const kee={nextPageLabel:"Next page",pageLabel:e=>`Go to page ${e}`,previousPageLabel:"Previous page"};function kv({title:e,subtitle:t,action:r}){return w.jsxs(J,{textAlign:"center",color:"inherit",children:[w.jsx(J,{variant:"strong",textAlign:"center",color:"inherit",children:e}),w.jsx(J,{variant:"p",padding:{bottom:"s"},color:"inherit",children:t}),r]})}const Cee=(e,t,r,o)=>{if(e)return w.jsx(kv,{title:t,subtitle:r,action:w.jsx(ge,{onClick:o,children:"Refresh"})});const n=At();return w.jsx(kv,{title:"No multi factor authenticators",subtitle:"No multi factor authenticators to display.",action:w.jsx("div",{className:"justify-center",children:w.jsxs(re,{direction:"horizontal",size:"l",children:[w.jsx(ge,{variant:"normal",iconName:"video-on",onClick:()=>n("mfa-app/new"),children:"Add MFA App"}),w.jsx(ge,{variant:"normal",iconName:"key",onClick:()=>n("u2f-key/new"),children:"Add U2F Key"})]})})})},See=({preferences:e,setPreferences:t})=>w.jsx(su,{title:"Preferences",confirmLabel:"Confirm",cancelLabel:"Cancel",preferences:e,onConfirm:({detail:r})=>t(r),pageSizePreference:{title:"Page size",options:[{value:10,label:"10 Multi Factor Authenticators"},{value:25,label:"25 Multi Factor Authenticators"},{value:50,label:"50 Multi Factor Authenticators"},{value:100,label:"100 Multi Factor Authenticators"}]},wrapLinesPreference:{label:"Wrap lines",description:"Check to see all the text and wrap the lines"},visibleContentPreference:{title:"Select visible columns",options:[{label:"Multi Factor Authenticator properties",options:[{id:"id",label:"ID"},{id:"comment",label:"Title"},{id:"description",label:"Description"},{id:"ui_kind",label:"Type"},{id:"ui_expired",label:"Expired"},{id:"ui_disabled",label:"Disabled"},{id:"ui_created_at",label:"Created At"},{id:"ui_expired_at",label:"Expired At"},{id:"ui_disabled_at",label:"Disabled At"},{id:"ui_labels",label:"Labels"},{id:"ui_tags",label:"Tags"}]}]}}),Tee=({items:e,isVisible:t,onDiscard:r,onDelete:o})=>{const n=e.length>1,i=e.length,a=e[0];return w.jsx(Hn,{visible:t,onDismiss:r,header:n?"Delete multi factor authenticators":"Delete multi factor authenticator",closeAriaLabel:"Close dialog",footer:w.jsx(J,{float:"right",children:w.jsxs(re,{direction:"horizontal",size:"xs",children:[w.jsx(ge,{variant:"link",onClick:r,children:"Cancel"}),w.jsx(ge,{variant:"primary",onClick:o,children:"Delete"})]})}),children:i>0&&w.jsxs(re,{size:"m",children:[n?w.jsxs(J,{variant:"span",children:["Delete"," ",w.jsxs(J,{variant:"span",fontWeight:"bold",children:[i," multi factor authenticators"]})," ","permanently? This action cannot be undone."]}):w.jsxs(J,{variant:"span",children:["Delete multi factor authenticator"," ",w.jsx(J,{variant:"span",fontWeight:"bold",children:a.id})," ","permanently? This action cannot be undone."]}),w.jsxs(Gt,{type:"warning",children:["Proceeding with this action will delete ",n?"multi factor authenticators":"multi factor authenticator"," with all content and can impact related resources."]})]})})},Eee=({})=>{const[e,t]=B.useState([]),[r,o]=B.useState(!0),[n,i]=Gc(Ne.genAppStorageKey("MultiFactorAuthenticators-Table-Preferences"),xee),[a,c]=B.useState(!1),[l,d]=B.useState(""),[s,u]=B.useState(""),[h,f]=B.useState([]),[p,g]=B.useState(!1),v=At(),m=[{key:"comment",groupValuesLabel:"Title values",propertyLabel:"Title",operators:["=","!=",":","!:"]},{key:"description",groupValuesLabel:"Description values",propertyLabel:"Description",operators:["=","!=",":","!:"]},{key:"ui_kind",groupValuesLabel:"Type values",propertyLabel:"Type",operators:["=","!=",":","!:"]},{key:"ui_expired",groupValuesLabel:"Expired values",propertyLabel:"Expired",operators:["=","!=",":","!:"]},{key:"ui_disabled",groupValuesLabel:"Disabled values",propertyLabel:"Disabled",operators:["=","!=",":","!:"]},{key:"ui_created_at",groupValuesLabel:"Created At values",propertyLabel:"Created At",operators:["=","!=","<","<=",">",">="].map(N=>({operator:N,form:({value:M="",onChange:O})=>w.jsxs("div",{className:"date-form",children:[w.jsx(nt,{children:w.jsx(Yo,{value:M??"",onChange:j=>O(j.detail.value),placeholder:"YYYY/MM/DD"})}),w.jsx(Io,{value:M??"",onChange:j=>{console.log(j),O(j.detail.value)},locale:"en-US",todayAriaLabel:"Today",nextMonthAriaLabel:"Next month",previousMonthAriaLabel:"Previous month"})]}),match:"date"}))},{key:"ui_expired_at",groupValuesLabel:"Expired At values",propertyLabel:"Expired At",operators:["=","!=","<","<=",">",">="].map(N=>({operator:N,form:({value:M="",onChange:O})=>w.jsxs("div",{className:"date-form",children:[w.jsx(nt,{children:w.jsx(Yo,{value:M??"",onChange:j=>O(j.detail.value),placeholder:"YYYY/MM/DD"})}),w.jsx(Io,{value:M??"",onChange:j=>{console.log(j),O(j.detail.value)},locale:"en-US",todayAriaLabel:"Today",nextMonthAriaLabel:"Next month",previousMonthAriaLabel:"Previous month"})]}),match:"date"}))},{key:"ui_disabled_at",groupValuesLabel:"Disabled At values",propertyLabel:"Disabled At",operators:["=","!=","<","<=",">",">="].map(N=>({operator:N,form:({value:M="",onChange:O})=>w.jsxs("div",{className:"date-form",children:[w.jsx(nt,{children:w.jsx(Yo,{value:M??"",onChange:j=>O(j.detail.value),placeholder:"YYYY/MM/DD"})}),w.jsx(Io,{value:M??"",onChange:j=>{console.log(j),O(j.detail.value)},locale:"en-US",todayAriaLabel:"Today",nextMonthAriaLabel:"Next month",previousMonthAriaLabel:"Previous month"})]}),match:"date"}))},{key:"ui_labels",groupValuesLabel:"Labels values",propertyLabel:"Labels",operators:["=","!=",":","!:"]},{key:"ui_tags",groupValuesLabel:"Tags values",propertyLabel:"Tags",operators:["=","!=",":","!:"]}],{items:y,actions:C,filteredItemsCount:_,collectionProps:k,propertyFilterProps:b,paginationProps:S}=jf(e||[],{propertyFiltering:{filteringProperties:m,empty:Cee(a,l,s,A),noMatch:w.jsx(kv,{title:"No matches",subtitle:"Your search didn't return any multi factor authenticators.",action:w.jsx(ge,{onClick:()=>C.setPropertyFiltering({tokens:[],operation:"and"}),children:"Clear filter"})})},pagination:{pageSize:n.pageSize},sorting:{},selection:{}}),T=async()=>{try{const N=await pee();if(N==null)c(!0),d("Unexpected Error"),u("The multi factor authenticators are empty");else{const M=wee(N);t(N?M:[]),c(!1),d(""),u("")}}catch(N){c(!0),d(`${N.name}`),u(`${N.message}`)}finally{o(!1)}};B.useEffect(()=>{T()},[]);const L=[{id:"id",header:"ID",cell:N=>{const M=`../multi-factor-authenticator/${N.id}`;return w.jsx(Bo,{href:"./"+M,onFollow:O=>{O.preventDefault(),v(M)},children:N.id})},sortingField:"id"},{id:"comment",header:"Title",cell:N=>{const M=`../multi-factor-authenticator/${N.id}`;return w.jsx(Bo,{href:"./"+M,onFollow:O=>{O.preventDefault(),v(M)},children:N.comment})},sortingField:"comment"},{id:"description",header:"Description",cell:N=>w.jsx(J,{children:N.description?N.description:"-"}),sortingField:"description"},{id:"ui_kind",header:"Type",cell:N=>w.jsx(J,{children:N.ui_kind?N.ui_kind:"-"}),sortingField:"ui_kind"},{id:"ui_expired",header:"Expired",cell:N=>w.jsx(J,{children:N.ui_expired}),sortingField:"ui_expired"},{id:"ui_disabled",header:"Disabled",cell:N=>w.jsx(J,{children:N.ui_disabled}),sortingField:"ui_disabled"},{id:"ui_created_at",header:"Created At",cell:N=>w.jsx(J,{children:N.ui_created_at?N.ui_created_at.toISOString().replace("T"," "):"-"}),sortingField:"ui_created_at"},{id:"ui_expired_at",header:"Expired At",cell:N=>w.jsx(J,{children:N.ui_expired_at?N.ui_expired_at.toISOString().replace("T"," "):"-"}),sortingField:"ui_expired_at"},{id:"ui_disabled_at",header:"Disabled At",cell:N=>w.jsx(J,{children:N.ui_disabled_at?N.ui_disabled_at.toISOString().replace("T"," "):"-"}),sortingField:"ui_disabled_at"},{id:"ui_labels",header:"Labels",cell:N=>w.jsx(J,{children:N.ui_labels?N.ui_labels:"-"}),sortingField:"ui_labels"},{id:"ui_tags",header:"Tags",cell:N=>w.jsx(J,{children:N.ui_tags?N.ui_tags:"-"}),sortingField:"ui_tags"}],{selectedItems:I}=k;function A(){f([]),T()}function P(){g(!0)}function D(){g(!1)}async function E(){const N=I.map(j=>j.id),M=e.filter(j=>!N.includes(j.id));let O=!1;for(const j of N)try{const z=await gee(j);console.log("Deleting Multi Factor Authenticator",j,z)}catch(z){O=!0,f([...h,{type:"error",dismissible:!0,dismissLabel:"Dismiss message",header:`Failed Deleting Multi Factor Authenticator ${j}`,content:`${z.name}: ${z.message}`,id:j,onDismiss:()=>f(F=>F.filter(K=>K.id!==j))}]),console.log("Error Deleting Multi Factor Authenticator",j,z.name,z.message)}O===!0?console.log("Failed Deleting Multi Factor Authenticator"):(console.log("Successfully Deleted Multi Factor Authenticator"),t(M)),g(!1)}function R(){v(`../multi-factor-authenticator/${I[0].id}`)}const $={filteringAriaLabel:"your choice",dismissAriaLabel:"Dismiss",filteringPlaceholder:"Search",groupValuesText:"Values",groupPropertiesText:"Properties",operatorsText:"Operators",operationAndText:"and",operationOrText:"or",operatorLessText:"Less than",operatorLessOrEqualText:"Less than or equal",operatorGreaterText:"Greater than",operatorGreaterOrEqualText:"Greater than or equal",operatorContainsText:"Contains",operatorDoesNotContainText:"Does not contain",operatorEqualsText:"Equals",operatorDoesNotEqualText:"Does not equal",editTokenHeader:"Edit filter",propertyText:"Property",operatorText:"Operator",valueText:"Value",cancelActionText:"Cancel",applyActionText:"Apply",allPropertiesLabel:"All properties",tokenLimitShowMore:"Show more",tokenLimitShowFewer:"Show fewer",clearFiltersText:"Clear filters",removeTokenButtonAriaLabel:()=>"Remove token",enteredTextLabel:N=>`Use: "${N}"`};return w.jsxs(w.Fragment,{children:[h.length>0&&w.jsx(J,{padding:{top:"xxl"},children:w.jsx(cu,{items:h,i18nStrings:{ariaLabel:"Notifications",notificationBarAriaLabel:"View all notifications",notificationBarText:"Notifications",errorIconAriaLabel:"Error",warningIconAriaLabel:"Warning",successIconAriaLabel:"Success",infoIconAriaLabel:"Info",inProgressIconAriaLabel:"In progress"},stackItems:!0})}),w.jsx(J,{padding:{vertical:"xxl"},children:w.jsx(fu,{...k,stickyHeader:!0,loading:r,loadingText:"Loading multi factor authenticators",items:y,pagination:w.jsx(du,{...S,ariaLabels:kee}),header:w.jsx(Ge,{counter:e&&(I.length?`(${I.length}/${e.length})`:`(${e.length})`),actions:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Mj,{items:[{text:"Add MFA App",id:"add-mfa-app",disabled:!1,iconName:"video-on",href:"multi-factor-authenticators/mfa-app/new"},{text:"Add U2F Key",id:"add-u2f-key",disabled:!1,iconName:"key",href:"multi-factor-authenticators/u2f-key/new"}],variant:"primary",children:"Add"}),w.jsx(ge,{disabled:I.length===0,onClick:R,children:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Xr,{svg:w.jsx(tp,{})},"action-btn-icon"),w.jsx("div",{children:"Open"},"action-btn-text")]})}),w.jsx(ge,{disabled:I.length===0,onClick:P,children:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Xr,{name:"close"},"action-btn-icon"),w.jsx("div",{children:"Delete"},"action-btn-text")]})}),w.jsx(ge,{variant:"primary",onClick:A,children:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Xr,{name:"refresh"},"action-btn-icon"),w.jsx("div",{children:"Refresh"},"action-btn-text")]})})]}),children:"Multi Factor Authenticators"}),columnDefinitions:L,filter:w.jsx(Nf,{...b,i18nStrings:$,countText:_ee(_),expandToViewport:!0}),visibleColumns:n.visibleContent,selectionType:"single",preferences:w.jsx(See,{preferences:n,setPreferences:i})})}),w.jsx(Tee,{isVisible:p,onDiscard:D,onDelete:E,items:I})]})},Lee=()=>{const e=At();return w.jsx(eo,{items:[{text:"Home",href:""},{text:"Multi Factor Authenticators",href:"multi-factor-authenticators/"}],onFollow:t=>{t.preventDefault(),e("/"+t.detail.href)}})},Aee=({navigation:e,navigationOpen:t,onNavigationChange:r,toolsOpen:o,onToolsChange:n})=>w.jsx(Fr,{navigationHide:!1,navigation:e,breadcrumbs:w.jsx(Lee,{}),navigationOpen:t,onNavigationChange:r,content:w.jsx(Eee,{}),toolsHide:!1,tools:w.jsx(fee,{}),toolsWidth:500,toolsOpen:o,onToolsChange:n,ariaLabels:$r,headerSelector:"#top-nav"}),Bee=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})});function jB(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(Math.random()*29)+64;return Array.from({length:t},()=>e[Math.floor(Math.random()*e.length)]).join("")}function Cv(e){const t=/^(\d+)\s*/,r=e.match(t);return r?Number(r[1]):null}const GB=(e,t)=>{if(e){const r=/^[A-Za-z0-9]+$/;if(!(t.length>=3&&t.length<=50)||!r.test(t))return"The title is non compliant. It should contain 3-50 characters and consists of A-Z, a-z, and 0-9 characters only."}return null},Dee=(e,t)=>e&&![15,30,60,90].includes(t)?`The value of token lifetime is invalid: ${t}`:null,Ree=(e,t)=>e&&![4,6,8].includes(t)?`The value of token digits is invalid: ${t}`:null,zB=(e,t)=>{if(e){const r=/^[A-Za-z0-9]+$/;if(!(t.length>=10&&t.length<=200)||!r.test(t))return"The token secret is non compliant. It should contain 10-200 characters and consists of A-Z, a-z, and 0-9 characters only."}return null},FB=(e,t)=>{if(e)for(const r of t)switch(r){case"prod":break;case"test":break;case"dev":break;case"experimental":break;default:return"The labels contains invalid value."}return null};function Sv(e){const t={valid:!0},r=GB(!0,e.title);if(r!==null)return t.valid=!1,t.message=r,t;const o=Dee(!0,e.tokenLifetime);if(o!==null)return t.valid=!1,t.message=o,t;const n=Ree(!0,e.tokenDigits);if(n!==null)return t.valid=!1,t.message=n,t;const i=zB(!0,e.tokenSecret);if(i!==null)return t.valid=!1,t.message=i,t;const a=FB(!0,e.labels);return a!==null&&(t.valid=!1,t.message=a),t}const Iee=e=>{const t=[{label:"15 Seconds",value:"15"},{label:"30 Seconds",value:"30"},{label:"60 Seconds",value:"60"},{label:"90 Seconds",value:"90"}],r=[{label:"4 Digit Code",value:"4"},{label:"6 Digit Code",value:"6"},{label:"8 Digit Code",value:"8"}],o=[{label:"Production",value:"prod",description:""},{label:"Test",value:"test",description:""},{label:"Development",value:"dev",description:""},{label:"Experimental",value:"experimental",description:"Reserved for experimental purposes"}],n=C=>{e.setTitle(C.value)},i=C=>{e.setDescription(C.value)},a=o.filter(function(C){if(e.labels.length<1)return!1;let _=!1;return e.labels.forEach(k=>{if(C.value===k){_=!0;return}}),_}),[c,l]=B.useState(a),d=C=>{l(C.selectedOptions),e.setLabels(C.selectedOptions.map(_=>`${_.value}`))},s=t.filter(function(C){return C.label===void 0?!1:C.label.startsWith(`${e.tokenLifetime} `)})??[t[1]],[u,h]=B.useState(s[0]),f=C=>{h(C.selectedOption);let _=30;if(C.selectedOption.value!==void 0){const k=Cv(C.selectedOption.value);k&&(_=k)}e.setTokenLifetime(_)},p=r.filter(function(C){return C.label===void 0?!1:C.label.startsWith(`${e.tokenDigits} `)})??[r[1]],[g,v]=B.useState(p[0]),m=C=>{v(C.selectedOption);let _=6;if(C.selectedOption.value!==void 0){const k=Cv(C.selectedOption.value);k&&(_=k)}e.setTokenDigits(_)},y=C=>{e.setTokenSecret(C.value)};return w.jsx(Fe,{children:w.jsx(Fn,{children:w.jsxs(re,{direction:"vertical",size:"l",children:[w.jsx(nt,{label:"Application Label",errorText:GB(e.alertVisible,e.title),description:"Amend the label and comment associated with the authenticator application.",constraintText:w.jsx("span",{children:w.jsx("i",{children:"This label is what you would see in your authenticator app."})}),children:w.jsx(jt,{inputMode:"text",value:e.title,onChange:({detail:C})=>n(C)})}),w.jsx(nt,{label:"Description",description:"Add optional description. This help search.",children:w.jsx(jt,{inputMode:"text",placeholder:"My Authentication App",spellcheck:!1,disableBrowserAutocorrect:!0,autoComplete:!1,value:e.description,onChange:({detail:C})=>i(C)})}),w.jsx(nt,{label:w.jsxs("span",{children:["Labels ",w.jsx("i",{children:"- optional"})," "]}),errorText:FB(e.alertVisible,e.labels),children:w.jsx(uu,{selectedOptions:c,filteringType:"auto",onChange:({detail:C})=>d(C),options:o,placeholder:"Open dropdown and choose Labels",selectedAriaLabel:"Selected Labels"})}),w.jsx(Cy,{headerText:w.jsxs("span",{children:["Advanced Configuration Settings ",w.jsx("i",{children:"- optional"})," "]}),children:w.jsxs(re,{direction:"vertical",size:"l",children:[w.jsx(J,{children:"If necessary, customize the default settings for the authentication token."}),w.jsx(nt,{label:w.jsx("span",{children:"Token Lifetime"}),children:w.jsx(v_,{selectedOption:u,onChange:({detail:C})=>f(C),options:t,selectedAriaLabel:"Selected Token Lifetime"})}),w.jsx(nt,{label:w.jsx("span",{children:"Token Digits"}),children:w.jsx(v_,{selectedOption:g,onChange:({detail:C})=>m(C),options:r,selectedAriaLabel:"Selected Token Digits"})}),w.jsx(nt,{label:"Token Secret",errorText:zB(e.alertVisible,e.tokenSecret),secondaryControl:w.jsx(ge,{iconName:"refresh",onClick:()=>e.setTokenSecret(jB())}),description:"This is the secret used to generate authenticator tokens.",constraintText:w.jsx("span",{children:w.jsx("i",{children:"You should not change it, unless you fully understand the implications of your actions."})}),children:w.jsx(jt,{inputMode:"text",value:e.tokenSecret,spellcheck:!1,disableBrowserAutocorrect:!0,autoComplete:!1,onChange:({detail:C})=>y(C)})})]})})]})})})};function Pee(e){let t="You are required to address the error(s) to continue.";if(e.alertVisible){const r=Sv(e);!r.valid&&r.message&&(t=r.message)}return{title:"Configuration",description:"Provide the configuration for the registration of MFA Authenticator application",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Errors Detected",type:"warning",children:t}),w.jsx(Iee,{...e})]})}}function L1(e){const t={valid:!0};for(const r of e.tags)if(r.key===""||r.value==="")return t.valid=!1,t.message="Invalid tag",t;return t}const $ee=e=>{const t=(r,o,n)=>{const i=[...e.tags],a=i[o];n?a.key=r.value:a.value=r.value,e.setTags(i)};return w.jsx(Fe,{children:w.jsx(re,{direction:"vertical",size:"l",children:w.jsx(Qc,{items:e.tags,addButtonText:"Add new tag",removeButtonText:"Remove",empty:"No tags associated with the registration.",onAddButtonClick:()=>{e.setTags([...e.tags,{key:"",value:""}])},onRemoveButtonClick:({detail:{itemIndex:r}})=>{const o=[...e.tags];o.splice(r,1),e.setTags(o)},definition:[{label:"Key",control:(r,o)=>w.jsx(jt,{value:r.key,placeholder:"Enter key",autoComplete:!1,spellcheck:!1,disableBrowserAutocorrect:!1,onChange:({detail:n})=>t(n,o,!0)},`tag-key-${o}`)},{label:"Value",control:(r,o)=>w.jsx(jt,{value:r.value,autoComplete:!1,spellcheck:!1,disableBrowserAutocorrect:!1,placeholder:"Enter value",onChange:({detail:n})=>t(n,o,!1)},`tag-value-${o}`)}]})})})};function Oee(e){return{title:"Add Tags",description:"Tag the registration to improve search quality",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Error(s) Detected",type:"warning",children:"Please review and fix the below validation errors."}),w.jsx($ee,{...e})]}),isOptional:!0}}const Mee=e=>{if(e===void 0)return"Unknown";switch(e){case"prod":return"Production";case"test":return"Test";case"dev":return"Development";case"experimental":return"Experimental";default:return"Unknown"}},Nee=e=>w.jsxs(re,{size:"l",children:[e.submitAlertVisible&&w.jsx(Gt,{dismissAriaLabel:"Close alert",dismissible:!0,statusIconAriaLabel:"Failure",type:"error",header:"Error",onDismiss:()=>e.setSubmitAlertVisible(!1),children:e.submitAlert.toString()}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(0),children:"Edit"}),children:"Step 1: Metadata"}),w.jsx(Fe,{children:w.jsxs(Er,{columns:2,variant:"text-grid",children:[w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Title"}),w.jsx("div",{children:e.title.length>0?e.title:w.jsx(Le,{children:w.jsx("i",{children:"Empty"})})})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Description"}),w.jsx("div",{children:e.description.length>0?e.description:w.jsx(Le,{children:w.jsx("i",{children:"Empty"})})})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Token Lifetime"}),w.jsxs(Le,{children:[e.tokenLifetime," seconds"]})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Token Digits"}),w.jsxs(Le,{children:[e.tokenDigits," digit code"]})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Token Secret"}),w.jsxs(Le,{children:[e.tokenSecret.length," characters long"]})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Labels"}),w.jsx("div",{children:e.labels.length>0?w.jsx(re,{direction:"horizontal",size:"xs",children:e.labels.map(t=>w.jsx(Tn,{children:Mee(t.split(/\./).shift())},"labels-{x}"))}):w.jsx(Le,{children:w.jsx("i",{children:"None"})})})]})]})}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(1),children:"Edit"}),children:"Step 2: Registration"}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(2),children:"Edit"}),children:"Step 3: Tagging"}),w.jsx(Fe,{children:w.jsx(J,{children:e.tags.length>0?w.jsx(Er,{columns:2,children:e.tags.map(t=>w.jsxs(Le,{children:[w.jsx("strong",{children:t.key}),": ",t.value]},t.key))}):w.jsx(Le,{children:w.jsx("i",{children:"None"})})})})]});function jee(e){return{title:"Review and Create",description:"Review the summary of the registeration with MFA Authenticator application and, if necessary, make changes",content:w.jsx(Nee,{...e})}}const Gee=e=>(e.kind="add_user_app_multi_factor_authenticator",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Add App Multi Factor Authenticator Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r;throw((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),t})),zee=e=>(e.kind="fetch_user_app_multi_factor_authenticator_code",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Fetch App Multi Factor Authenticator Code Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r;throw((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),t})),Fee=e=>(e.kind="test_user_app_multi_factor_authenticator",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Test App Multi Factor Authenticator Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r;throw((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),t})),Hee=(e,t)=>{if(e){if(t.length<1)return"The value of passcode is empty";if(![4,6,8].includes(t.length))return`The value of passcode is invalid ${t}`}return null},Wee=(e,t)=>e&&!t?"Application token was not verified.":null;function Tv(e){const t={valid:!0},r=Wee(!0,e.tokenVerified);return r!==null&&(t.valid=!1,t.message=r),t}const Vee=e=>{const[t,r]=B.useState(null),[o,n]=B.useState(""),[i,a]=B.useState(!1),[c,l]=B.useState(!1),[d,s]=B.useState(!0),[u,h]=B.useState(0),[f,p]=B.useState(!1),[g,v]=B.useState(""),[m,y]=B.useState("");function C(){h(u+1)}function _(){n(""),e.setTokenVerified(!1)}async function k(){l(!0);try{const S={passcode:o,secret:e.tokenSecret,period:e.tokenLifetime,digits:e.tokenDigits},T=await Fee(S);if(T===null)throw new Error("Result is empty");if(T.success===!1)throw new Error("Token verification failed.");p(!1),v(""),y(""),e.setTokenVerified(!0)}catch(S){p(!0),v(`${S.name}`),y(`${S.message}`),e.setTokenVerified(!1)}finally{l(!1)}}const b=S=>{if(S.value=="0"){n("0");return}const T=/^0+/,L=S.value.match(T),I=L?L[0]:"",A=S.value.replace(T,"");if(A==="")e.tokenDigits>=I.length&&n(I);else{const P=Cv(A);P?e.tokenDigits>=I.length+P.toString().length&&n(I+P.toString()):e.tokenDigits>=I.length&&n(I)}};return B.useEffect(()=>{o.length===e.tokenDigits?a(!0):a(!1)},[o]),B.useEffect(()=>{(async()=>{s(!0);try{const T={issuer:e.title,secret:e.tokenSecret,period:e.tokenLifetime,digits:e.tokenDigits},L=await zee(T);r(L),p(!1),v(""),y(""),console.log("fetched data",L)}catch(T){p(!0),v(`${T.name}`),y(`${T.message}`)}finally{s(!1)}})()},[u]),w.jsx(w.Fragment,{children:d?w.jsx(hi,{}):w.jsxs(w.Fragment,{children:[f&&w.jsx(Fe,{children:w.jsx(En,{title:g,subtitle:m,action:w.jsx(ge,{onClick:C,children:"Refresh"})})}),!f&&w.jsx(Fe,{children:w.jsxs(re,{size:"l",direction:"vertical",children:[t&&w.jsx(w.Fragment,{children:!e.tokenVerified&&w.jsxs(w.Fragment,{children:[w.jsx(Le,{children:'Open your MFA authenticator application, e.g. Microsoft/Google Authenticator, Authy, etc., add new entry and click the "Get QR" link.'}),w.jsxs(Er,{columns:2,children:[w.jsxs("div",{className:"flex-center-align",children:[w.jsx(J,{children:w.jsx("img",{src:`${Ne.getAppPath()}/barcode/mfa/${t.uri_encoded}.png`,alt:"QR Code"})}),w.jsx(J,{children:w.jsx(Le,{children:"Scan the QR code image."})})]}),w.jsx("div",{className:"flex-center-align",style:{textAlignLast:"center"},children:w.jsxs(re,{direction:"vertical",size:"l",children:[w.jsx(J,{children:w.jsx(Le,{children:"Can't scan? Click or copy the link below."})}),w.jsxs("div",{children:[w.jsx(pr,{variant:"icon",textToCopy:t.uri,copyButtonAriaLabel:"Copy Camera Link",copySuccessText:"Camera Link copied",copyErrorText:"Failed to copy Camera Link"}),w.jsx(Bo,{href:(t==null?void 0:t.uri)??"",target:"_blank",children:"No Camera Link"})]})]})})]})]})}),w.jsxs(J,{children:[w.jsx(Ge,{variant:"h3",children:"Token Verification"}),e.tokenVerified&&w.jsx(w.Fragment,{children:w.jsxs(Le,{children:["The MFA authenticator application has been verified. Proceed to next steps. Click"," ",w.jsx(ge,{variant:"inline-link",onClick:_,children:"here"})," ","to clear the verification and verify again, if necessary."]})}),!e.tokenVerified&&w.jsxs(Le,{children:["Enter the authentication code you see in the app for ",w.jsx("strong",{children:e.title}),' and click "Test".']})]}),!e.tokenVerified&&w.jsx(Fn,{children:w.jsx(nt,{errorText:Hee(i||e.alertVisible,o),secondaryControl:w.jsxs(re,{direction:"horizontal",size:"l",children:[i&&w.jsx(ge,{iconName:"check",variant:"primary",loading:c,onClick:k,children:"Test"}),!c&&w.jsx(ge,{iconName:"close",onClick:_,children:"Clear"})]}),children:w.jsx(jt,{inputMode:"text",placeholder:"Authentication Code",value:o.toString(),autoComplete:!1,disableBrowserAutocorrect:!0,onChange:({detail:S})=>b(S)})})})]})})]})})};function Uee(e){let t="You are required to address the error(s) to continue.";if(e.alertVisible){const r=Tv(e);!r.valid&&r.message&&(t=r.message)}return{title:"Registration",description:"Complete the registration of MFA Authenticator application",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Errors Detected",type:"warning",children:t}),w.jsx(Vee,{...e})]})}}const Kee=()=>{const e=At(),t=!0,[r,o]=B.useState(0),[n,i]=B.useState(!1),[a,c]=B.useState(!1),[l,d]=B.useState("AC"+(Math.random()+1).toString(36).substring(4).toUpperCase()),[s,u]=B.useState(""),[h,f]=B.useState([]),[p,g]=B.useState(30),[v,m]=B.useState(6),[y,C]=B.useState(jB()),[_,k]=B.useState(!1),[b,S]=B.useState(!1),[T,L]=B.useState(""),[I,A]=B.useState([]),P={stepNumberLabel:V=>`Step ${V}`,collapsedStepsLabel:(V,q)=>`Step ${V} of ${q}`,skipToButtonLabel:V=>`Skip to ${V.title}`,navigationAriaLabel:"Steps",cancelButton:"Cancel",previousButton:"Previous",nextButton:"Next",submitButton:"Register",optional:"optional"},D=()=>{e("../multi-factor-authenticators")},E={alertVisible:n,setAlertVisible:i,setActiveStepIndex:o},R={title:l,setTitle:d,description:s,setDescription:u,labels:h,setLabels:f,tokenLifetime:p,setTokenLifetime:g,tokenDigits:v,setTokenDigits:m,tokenSecret:y,setTokenSecret:C},$={tokenVerified:_,setTokenVerified:k},N={tags:I,setTags:A},M={submitAlert:T,submitAlertVisible:b,setSubmitAlert:L,setSubmitAlertVisible:S,setActiveStepIndex:o},O=Pee({...R,...E}),j=Uee({...R,...$,...E}),z=Oee({...N,...E}),F=jee({...R,...$,...N,...M,...E}),K=[O,j,z,F],U=V=>{if(console.log("Wizard Event",V),V.reason==="next"&&V.requestedStepIndex===1){console.log("Wizard Validation Event: validateMetadata");const q=Sv(R);if(console.log("Wizard Validation Result",q),!q.valid){i(!0),o(V.requestedStepIndex-1);return}}if(V.reason==="next"&&V.requestedStepIndex===2){console.log("Wizard Validation Event: validateRegistration");const q=Tv($);if(console.log("Wizard Validation Result",q),!q.valid){i(!0),o(V.requestedStepIndex-1);return}}if(V.reason==="next"&&V.requestedStepIndex===3){console.log("Wizard Validation Event: validateTagging");const q=L1(N);if(console.log("Wizard Validation Result",q),!q.valid){i(!0),o(V.requestedStepIndex-1);return}}if(V.reason==="skip"){const q=Sv(R);if(console.log("Wizard Metadata Step Validation Result",q),!q.valid){console.log("Redirecting to Wizard Metadata Step",0),i(!0),o(0);return}const ee=Tv($);if(console.log("Wizard Registration Step Validation Result",ee),!ee.valid){console.log("Redirecting to Wizard Registration Step",1),i(!0),o(1);return}const X=L1(N);if(console.log("Wizard Tagging Step Validation Result",X),!X.valid){console.log("Redirecting to Wizard Tagging Step",2),i(!0),o(2);return}}i(!1),o(V.requestedStepIndex)},Y=async()=>{c(!0);try{await Gee({title:l,description:s,labels:h,tags:I,secret:y,period:p,digits:v})!==null?(console.log("Successfully completed registration"),e("../multi-factor-authenticators")):(console.log("Failed completing registration"),S(!0),L("Failed registering with MFA Authenticator application"))}catch(V){S(!0),L(`${V.name}: ${V.message}`)}finally{c(!1)}};return w.jsx(as,{i18nStrings:P,activeStepIndex:r,allowSkipTo:t,onNavigate:({detail:V})=>U(V),onCancel:()=>D(),onSubmit:Y,isLoadingNextStep:a,steps:K})},qee=()=>{const e=At();return w.jsx(eo,{items:[{text:"Home",href:""},{text:"Multi Factor Authenticators",href:"multi-factor-authenticators/"},{text:"New Registeration",href:""}],onFollow:t=>{t.preventDefault(),e("/"+t.detail.href)}})},Yee=({navigation:e,navigationOpen:t,onNavigationChange:r,toolsOpen:o,onToolsChange:n})=>w.jsx(Fr,{navigationHide:!1,navigation:e,breadcrumbs:w.jsx(qee,{}),navigationOpen:t,onNavigationChange:r,content:w.jsx(Kee,{}),contentType:"wizard",toolsHide:!1,tools:w.jsx(Bee,{}),toolsWidth:500,toolsOpen:o,onToolsChange:n,ariaLabels:$r,headerSelector:"#top-nav"}),Xee=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})}),Qee=e=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"fetch_user_multi_factor_authenticator",id:e}}).then(t=>(console.log("Fetch Multi Factor Authenticator Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r;throw((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),t}),Zee=e=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"delete_user_multi_factor_authenticator",id:e}}).then(t=>(console.log("Delete Multi Factor Authenticator Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r;throw((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),t}),Jee=e=>(e.kind="test_user_app_token_passcode",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Test App Token Passcode Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t})),ete=e=>{const[t,r]=B.useState(""),[o,n]=B.useState(!1),[i,a]=x.useState(!1),[c,l]=B.useState(!1),[d,s]=B.useState(""),[u,h]=B.useState(""),[f,p]=B.useState(!1),g=_=>{r(_.value)},v=(_,k)=>_&&(!(k.length===e.digits)||!/^[0-9]+$/.test(k))?`The passcode is non compliant. It should contain ${e.digits} numbers.`:null;function m(){return v(!0,t)===null}function y(){r(""),s(""),h(""),l(!1),n(!1)}const C=async()=>{if(!m()){n(!0);return}try{a(!0);const _={id:e.id,passcode:t},k=await Jee(_);k!==null?k.success?(s(""),h(""),l(!1),console.log("Successfully validated the app token passcode"),p(!0)):(s("App Token Passcode Test Error"),h("The app token passcode is not valid"),l(!0)):(s("App Token Passcode Test Error"),h("Failed to validate the app token passcode"),l(!0))}catch(_){s(_.name),h(_.message),l(!0)}finally{a(!1)}};return w.jsxs(Hn,{onDismiss:()=>e.close(),visible:e.visible,closeAriaLabel:"Close modal",footer:w.jsx(J,{float:"right",children:i?w.jsx(re,{direction:"horizontal",size:"xs",children:w.jsx(ge,{variant:"primary",loading:!0,children:"Test"})}):w.jsxs(re,{direction:"horizontal",size:"xs",children:[!f&&w.jsx(ge,{variant:"link",onClick:y,children:"Clear"}),!f&&w.jsx(ge,{variant:"link",onClick:()=>e.close(),children:"Cancel"}),!f&&w.jsx(ge,{variant:"primary",onClick:()=>C(),children:"Test"}),f&&w.jsx(ge,{variant:"link",onClick:()=>e.close(),children:"Close"})]})}),header:"Token Testing",children:[c&&w.jsx(J,{padding:{bottom:"l"},children:w.jsx(Gt,{dismissAriaLabel:"Close alert",dismissible:!0,statusIconAriaLabel:"Error",type:"error",header:d,onDismiss:()=>l(!1),children:u})}),!f&&w.jsx(Fn,{children:w.jsx(re,{direction:"vertical",size:"m",children:w.jsx(nt,{label:"Passcode",errorText:v(o,t),constraintText:w.jsx("span",{children:w.jsx("i",{children:"This is the passcode visible in your authenticator app."})}),children:w.jsx(jt,{type:"text",value:t,spellcheck:!1,autoComplete:!1,disableBrowserAutocorrect:!0,onChange:({detail:_})=>g(_)})})})}),f&&w.jsxs(re,{direction:"horizontal",size:"xs",children:[w.jsx(Xr,{name:"status-positive",size:"normal",variant:"success"}),w.jsx(Le,{children:"The provided app token passcode is valid."})]})]})},tte=e=>(e.kind="test_user_webauthn_token",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Test WebAuthn Token Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t})),rte=5960464477539063e-23,Ev=4294967296,A1=9007199254740992,B1=8192;function ote(e,t){return typeof Object.is=="function"?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}class HB{constructor(t,r){on(this,"value");on(this,"tag");this.value=t,this.tag=r}}function nte(e,t,r){let o=new DataView(e),n=new Uint8Array(e),i=0,a=function(S,T){return new HB(S,T)},c=function(S){};typeof t=="function"&&(a=t),typeof r=="function"&&(c=r);function l(S,T){return i+=S,T}function d(S){return l(S,new Uint8Array(e,i,S))}function s(){let S=new ArrayBuffer(4),T=new DataView(S),L=p(),I=L&32768,A=L&31744,P=L&1023;if(A===31744)A=261120;else if(A!==0)A+=114688;else if(P!==0)return(I?-1:1)*P*rte;return T.setUint32(0,I<<16|A<<13|P<<13),T.getFloat32(0)}function u(){return l(4,o.getFloat32(i))}function h(){return l(8,o.getFloat64(i))}function f(){return l(1,n[i])}function p(){return l(2,o.getUint16(i))}function g(){return l(4,o.getUint32(i))}function v(){return g()*Ev+g()}function m(){return n[i]!==255?!1:(i+=1,!0)}function y(S){if(S<24)return S;if(S===24)return f();if(S===25)return p();if(S===26)return g();if(S===27)return v();if(S===31)return-1;throw new Error("Invalid length encoding")}function C(S){let T=f();if(T===255)return-1;let L=y(T&31);if(L<0||T>>5!==S)throw new Error("Invalid indefinite length element");return L}function _(S,T){for(let L=0;L<T;++L){let I=f();I&128&&(I<224?(I=(I&31)<<6|f()&63,T-=1):I<240?(I=(I&15)<<12|(f()&63)<<6|f()&63,T-=2):(I=(I&15)<<18|(f()&63)<<12|(f()&63)<<6|f()&63,T-=3)),I<65536?S.push(I):(I-=65536,S.push(55296|I>>10),S.push(56320|I&1023))}}function k(){let S=f(),T=S>>5,L=S&31,I,A;if(T===7)switch(L){case 25:return s();case 26:return u();case 27:return h()}if(A=y(L),A<0&&(T<2||6<T))throw new Error("Invalid length");switch(T){case 0:return A;case 1:return-1-A;case 2:if(A<0){let $=[],N=0;for(;(A=C(T))>=0;)N+=A,$.push(d(A));let M=new Uint8Array(N),O=0;for(I=0;I<$.length;++I)M.set($[I],O),O+=$[I].length;return M}return d(A);case 3:let P=[];if(A<0)for(;(A=C(T))>=0;)_(P,A);else _(P,A);let D="";for(I=0;I<P.length;I+=B1)D+=String.fromCharCode.apply(null,P.slice(I,I+B1));return D;case 4:let E;if(A<0)for(E=[];!m();)E.push(k());else for(E=new Array(A),I=0;I<A;++I)E[I]=k();return E;case 5:let R={};for(I=0;I<A||A<0&&!m();++I){let $=k();R[$]=k()}return R;case 6:return a(k(),A);case 7:switch(A){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;default:return c(A)}}}let b=k();if(i!==e.byteLength)throw new Error("Remaining bytes");return b}function ite(e){let t=new ArrayBuffer(256),r=new DataView(t),o=new Uint8Array(t),n,i=0;function a(C){let _=t.byteLength,k=i+C;for(;_<k;)_<<=1;if(_!==t.byteLength){let b=r;t=new ArrayBuffer(_),r=new DataView(t),o=new Uint8Array(t);let S=i+3>>2;for(let T=0;T<S;++T)r.setUint32(T<<2,b.getUint32(T<<2))}return n=C,r}function c(...C){i+=n}function l(C){c(a(8).setFloat64(i,C))}function d(C){c(a(1).setUint8(i,C))}function s(C){a(C.length),o.set(C,i),c()}function u(C){c(a(2).setUint16(i,C))}function h(C){c(a(4).setUint32(i,C))}function f(C){let _=C%Ev,k=(C-_)/Ev,b=a(8);b.setUint32(i,k),b.setUint32(i+4,_),c()}function p(C,_=0){C<=255?C<24?d(C|_):(d(24|_),d(C)):C<=65535?(d(25|_),u(C)):C<=4294967295?(d(26|_),h(C)):(d(27|_),f(C))}function g(C,_){_<24?d(C<<5|_):_<256?(d(C<<5|24),d(_)):_<65536?(d(C<<5|25),u(_)):_<4294967296?(d(C<<5|26),h(_)):(d(C<<5|27),f(_))}function v(C){let _;if(C===!1)return d(244);if(C===!0)return d(245);if(C===null)return d(246);if(C===void 0)return d(247);if(ote(C,-0))return s([249,128,0]);switch(typeof C){case"number":if(Math.floor(C)===C){if(0<=C&&C<=A1)return g(0,C);if(-A1<=C&&C<0)return g(1,-(C+1))}return d(251),l(C);case"string":let k=[];for(_=0;_<C.length;++_){let T=C.charCodeAt(_);T<128?k.push(T):T<2048?(k.push(192|T>>6),k.push(128|T&63)):T<55296||T>=57344?(k.push(224|T>>12),k.push(128|T>>6&63),k.push(128|T&63)):(T=(T&1023)<<10,T|=C.charCodeAt(++_)&1023,T+=65536,k.push(240|T>>18),k.push(128|T>>12&63),k.push(128|T>>6&63),k.push(128|T&63))}return g(3,k.length),s(k);default:let b,S;if(Array.isArray(C))for(b=C.length,g(4,b),_=0;_<b;_+=1)v(C[_]);else if(C instanceof Uint8Array)g(2,C.length),s(C);else if(ArrayBuffer.isView(C))S=new Uint8Array(C.buffer),g(2,S.length),s(S);else if(C instanceof ArrayBuffer||typeof SharedArrayBuffer=="function"&&C instanceof SharedArrayBuffer)S=new Uint8Array(C),g(2,S.length),s(S);else if(C instanceof HB)p(C.tag,192),v(C.value);else{let T=Object.keys(C);for(b=T.length,g(5,b),_=0;_<b;_+=1){let L=T[_];v(L),v(C[L])}}}}if(v(e),"slice"in t)return t.slice(0,i);let m=new ArrayBuffer(i),y=new DataView(m);for(let C=0;C<i;++C)y.setUint8(C,r.getUint8(C));return m}const WB={decode:nte,encode:ite};function ate(e){const t=[];for(let r=0;r<e.length;r+=2){const o=parseInt(e.substring(r,r+2),16);t.push(o)}return Uint8Array.from(t)}function lte(e){return e.buffer.slice(e.byteOffset,e.byteLength+e.byteOffset)}function ste(e){return cte(new Uint8Array(e))}function cte(e){return Array.prototype.map.call(e,function(t){return("00"+t.toString(16)).slice(-2)}).join("")}function oc(e){return xa(new Uint8Array(e))}function xa(e){return window.btoa(String.fromCharCode.apply(null,e))}function ute(e){let t="es256",r=-7;if("alg"in e){switch(r=e.alg,e.alg){case-257:t="rs256";break;case-8:t="eddsa";break;case-7:t="es256";break;default:throw`algo ${e.alg} is unsupported in attestation statement`}console.log("alg found",t)}else console.log("alg not found in attestation statement, assuming es256",e);const o={};if(o.alg=r,!("sig"in e))throw"sig not found in attestation statement";return o.sig=xa(e.sig),"x5c"in e?(o.x5c=[],e.x5c.forEach(n=>o.x5c.push(xa(n)))):"ecdaaKeyId"in e&&console.log("found ecdaaKeyId in attestation statement",e),o}function dte(e,t){const r=new DataView(e,0);let o=0;const n=r.buffer.slice(o,o+32);o+=32;const i=r.getUint8(o);o+=1;const a=r.getUint32(o,!1);o+=4;const c={rpIdHash:ste(n),flags:{UP:!!(i&1),RFU1:!!(i&2),UV:!!(i&4),RFU2a:!!(i&8),RFU2b:!!(i&16),RFU2c:!!(i&32),AT:!!(i&64),ED:!!(i&128)},signatureCounter:a,credentialData:{},extensions:{}},l={};if(c.flags.AT){const d=r.buffer.slice(o,o+16);o+=16,l.aaguid=oc(d);const s=r.getUint16(o);o+=2;const u=r.buffer.slice(o,s);o+=s,l.credentialId=oc(u);const h=r.buffer.slice(o),f=WB.decode(h);switch(o+=f.length,t){case-7:l.publicKey={key_type:f[1],algorithm:f[3],curve_type:f[-1],curve_x:xa(f[-2]),curve_y:xa(f[-3])};break;case-257:l.publicKey={key_type:f[1],algorithm:f[3],modulus:xa(f[-1]),exponent:xa(f[-2])};break;default:throw`algo ${t} is unsupported in attestation statement`}c.credentialData=l}return c.flags.ED,c}function nc(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",r=new Uint8Array(256);for(let l=0;l<t.length;l++)r[t.charCodeAt(l)]=l;let o=0;e.charAt(e.length-2)==="="?o=2:e.charAt(e.length-1)==="="&&(o=1);const n=e.length*3/4-o,i=new ArrayBuffer(n),a=new Uint8Array(i);let c=0;for(let l=0;l<e.length;l+=4){const d=r[e.charCodeAt(l)],s=r[e.charCodeAt(l+1)],u=r[e.charCodeAt(l+2)],h=r[e.charCodeAt(l+3)];a[c++]=d<<2|s>>4,a[c++]=(s&15)<<4|u>>2,a[c++]=(u&3)<<6|h&63}return i}function hte(e){const t=new TextDecoder("utf-8"),r=JSON.parse(t.decode(e.response.clientDataJSON)),o=WB.decode(e.response.attestationObject),n={fmt:o.fmt};console.log("parsedAttestationObject",o);let i=0;switch(o.fmt){case"none":break;case"packed":break;case"android-key":break;case"android-safetynet":break;case"fido-u2f":break;case"apple":break;case"tpm":break;default:throw new Error(`attestationObject with ${o.fmt} format is not supported. Please reach out to support.`)}let a;if(n.attStmt!==void 0){switch(o.fmt){case"none":break;case"packed":a=ute(n.attStmt);break;default:throw new Error(`attestationObject with ${o.fmt} format is not supported. Please reach out to support.`)}n.attStmt.alg!==void 0&&(i=n.attStmt.alg)}i===0&&(i=-7),console.log("attStmt",a);const c=lte(o.authData),l=dte(c,i);return n.authData=l,{id:e.id,type:e.type,transports:["usb","nfc","ble","internal"],success:!0,clientData:r,attestationObject:n,device:{name:"Unknown device",type:"unknown"}}}function VB(e){const t=new TextDecoder("utf-8"),r=JSON.parse(t.decode(e.response.clientDataJSON));return{id:e.id,type:e.type,auth_data_encoded:oc(e.response.authenticatorData),client_data_encoded:oc(e.response.clientDataJSON),signature_encoded:oc(e.response.signature),client_data:r}}const fte=e=>{const[t,r]=x.useState(!1),[o,n]=B.useState(!1),[i,a]=B.useState(""),[c,l]=B.useState(""),[d,s]=B.useState(!1),[u]=B.useState("WAUTH"+(Math.random()+1).toString(36).substring(4).toUpperCase());function h(){a(""),l(""),n(!1)}const f=async()=>{try{if(e.token.parameters===void 0)throw new Error("Token parameters are empty");const p=e.token.parameters.u2f_id;if(p==="")throw new Error("Token id in parameters is empty");r(!0);const g=[],v=[];v.push("ble"),v.push("hybrid"),v.push("internal"),v.push("nfc"),v.push("usb");const y={id:nc(p),type:"public-key",transports:v};g.push(y);const k={publicKey:{challenge:nc(u),userVerification:"discouraged",allowCredentials:g,timeout:6e4}},b=await navigator.credentials.get(k);if(b===null){n(!0),a("Token Verification"),l("Navigator failed to verify authentication credentials"),s(!1);return}const S=b;console.log(S);const T=VB(S),L=btoa(JSON.stringify(T)),I={id:e.token.id,webauthn_request:L,webauthn_challenge:u},A=await tte(I);if(A===null)throw new Error("Result is empty");if(A.success===!1)throw new Error("Token verification failed.");n(!1),a(""),l(""),s(!0)}catch(p){n(!0),a(`${p.name}`),l(`${p.message}`)}finally{r(!1)}};return w.jsxs(Hn,{onDismiss:()=>e.close(),visible:e.visible,closeAriaLabel:"Close modal",footer:w.jsx(J,{float:"right",children:t?w.jsx(re,{direction:"horizontal",size:"xs",children:w.jsx(ge,{variant:"primary",loading:!0,children:"Test"})}):w.jsxs(re,{direction:"horizontal",size:"xs",children:[!d&&w.jsx(ge,{variant:"link",onClick:h,children:"Clear"}),!d&&w.jsx(ge,{variant:"link",onClick:()=>e.close(),children:"Cancel"}),d&&w.jsx(ge,{variant:"link",onClick:()=>e.close(),children:"Close"}),!d&&w.jsx(ge,{variant:"primary",onClick:f,children:"Verify"})]})}),header:"Token Testing",children:[o&&w.jsx(J,{padding:{bottom:"l"},children:w.jsx(Gt,{dismissAriaLabel:"Close alert",dismissible:!0,statusIconAriaLabel:"Error",type:"error",header:i,onDismiss:()=>n(!1),children:c})}),!d&&w.jsx(re,{direction:"vertical",size:"m",children:w.jsx(Le,{children:w.jsx("p",{children:'Please click "Verify" button below to check whether the token works.'})})}),d&&w.jsxs(re,{direction:"horizontal",size:"xs",children:[w.jsx(Xr,{name:"status-positive",size:"normal",variant:"success"}),w.jsx(Le,{children:"The token is valid."})]})]})},pte=({data:e,isVisible:t,onDiscard:r,onDelete:o})=>w.jsx(Hn,{visible:t,onDismiss:r,header:"Delete multi-factor authenticator",closeAriaLabel:"Close dialog",footer:w.jsx(J,{float:"right",children:w.jsxs(re,{direction:"horizontal",size:"xs",children:[w.jsx(ge,{variant:"link",onClick:r,children:"Cancel"}),w.jsx(ge,{variant:"primary",onClick:o,children:"Delete"})]})}),children:w.jsxs(re,{size:"m",children:[w.jsxs(J,{variant:"span",children:["Delete job"," ",w.jsx(J,{variant:"span",fontWeight:"bold",children:e==null?void 0:e.id})," ","permanently? This action cannot be undone."]}),w.jsx(Gt,{type:"warning",children:"Proceeding with this action will delete the job with all content and can impact related resources."})]})}),gte=e=>{if(e===void 0)return"Unknown";switch(e){case"prod":return"Production";case"test":return"Test";case"dev":return"Development";case"experimental":return"Experimental";default:return"Unknown"}},mte=()=>{const[e,t]=B.useState(null),[r,o]=B.useState(!0),[n,i]=B.useState(0),[a,c]=B.useState(!1),[l,d]=B.useState(!1),[s,u]=B.useState(""),[h,f]=B.useState(""),[p,g]=B.useState(!1),[v,m]=B.useState(!1),y=Qh(),C=At(),[_,k]=B.useState("");B.useEffect(()=>{y.item_id!==void 0&&k(y.item_id)},[y]),B.useEffect(()=>{if(console.log(`loading data for item id ${_}`),_==="")return;o(!0),(async()=>{if(_!=="")try{const A=await Qee(_);t(A),d(!1),u(""),f("")}catch(A){d(!0),u(`${A.name}`),f(`${A.message}`)}finally{o(!1)}})()},[_,n]);function b(){c(!0)}function S(){c(!1)}function T(){i(n+1)}function L(){if(_===""){c(!1);return}console.log("Deleting item",_),Zee(_).then(I=>{console.log("Deleted item",_,I),c(!1),C("../multi-factor-authenticators")}).catch(I=>{console.log("Failed deleting item",_,I),c(!1)})}return w.jsxs(w.Fragment,{children:[r?w.jsx(hi,{}):w.jsx(w.Fragment,{children:l?w.jsx(so,{header:w.jsx(Ge,{variant:"h1",description:"You have encountered an application error related to backend services",children:"Service Unavailable"}),children:w.jsx(re,{size:"l",children:w.jsx(Fe,{children:w.jsx(En,{title:s,subtitle:h,action:w.jsx(ge,{onClick:T,children:"Refresh"})})})})}):w.jsx(so,{header:w.jsx(Ge,{variant:"h1",actions:w.jsxs(re,{direction:"horizontal",size:"xs",children:[w.jsx(ge,{iconAlign:"left",iconName:"refresh",onClick:()=>i(n+1),children:"Refresh"}),w.jsx(ge,{iconAlign:"left",iconName:"remove",onClick:()=>b(),children:"Delete"})]}),description:e==null?void 0:e.description,children:e==null?void 0:e.comment}),children:w.jsx(re,{direction:"vertical",size:"l",children:e&&w.jsx(Fe,{header:w.jsxs(w.Fragment,{children:[e.type==="u2f"&&w.jsx(Ge,{variant:"h2",description:"View token information.",actions:w.jsx(re,{size:"xs",direction:"horizontal",children:w.jsx(ge,{variant:"normal",iconName:"key",onClick:()=>m(!0),children:"Test"})}),children:"U2F / WebAuthn / Hardware Token"}),e.type==="totp"&&w.jsx(Ge,{variant:"h2",description:"View Application Authenticator information.",actions:w.jsx(re,{size:"xs",direction:"horizontal",children:w.jsx(ge,{variant:"normal",iconName:"key",onClick:()=>g(!0),children:"Test"})}),children:"Application Authenticator"})]}),children:w.jsxs(re,{size:"l",children:[w.jsxs(Er,{columns:3,variant:"text-grid",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Token ID"}),w.jsx(pr,{variant:"inline",textToCopy:e.id,copyButtonAriaLabel:"Copy Token ID",copySuccessText:"Token ID copied",copyErrorText:"Failed to copy Token ID"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Title"}),w.jsx("div",{children:e.comment?e.comment:w.jsx(Le,{children:w.jsx("i",{children:"Empty"})})})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Description"}),w.jsx("div",{children:e.description?e.description:w.jsx(Le,{children:w.jsx("i",{children:"Empty"})})})]}),e.algorithm&&w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Token Algorithm"}),w.jsx(Le,{children:e.algorithm})]}),e.period&&w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Token Lifetime"}),w.jsxs(Le,{children:[e.period," seconds"]})]}),e.digits&&w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Token Digits"}),w.jsxs(Le,{children:[e.digits," digit code"]})]}),e.secret&&w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Token Secret"}),w.jsxs(Le,{children:[e.secret.length," characters long"]})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Created At"}),w.jsx("div",{children:ta(e.created_at).toISOString().replace("T"," ")})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Disabled"}),w.jsx("div",{children:e.disabled?"Yes":"No"})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Expired"}),w.jsx("div",{children:e.expired?"Yes":"No"})]})]}),e.labels&&w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Labels"}),w.jsx(re,{direction:"horizontal",size:"s",children:e.labels.map((I,A)=>w.jsx("div",{children:w.jsx(Tn,{children:gte(I)})},`gpg-key-label-${A}`))})]}),e.tags&&w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Tags"}),w.jsx(re,{direction:"vertical",size:"m",children:e.tags.map((I,A)=>w.jsx("div",{children:w.jsxs(Le,{children:[I.key," = ",I.value]})},`gpg-key-tag-${A}`))})]})]})})})})}),w.jsx(pte,{data:e,isVisible:a,onDiscard:S,onDelete:L}),p&&e&&e.type==="totp"&&e.digits&&w.jsx(ete,{id:e.id,digits:e.digits,visible:p,refresh:()=>T(),close:()=>g(!1)}),v&&e&&e.type==="u2f"&&w.jsx(fte,{token:e,visible:v,refresh:()=>T(),close:()=>m(!1)})]})},vte=()=>{const e=At(),[t,r]=B.useState("");return B.useEffect(()=>{const o=window.location.pathname.split("/");r(o[o.length-1])},[t]),w.jsx(eo,{items:[{text:"Home",href:""},{text:"Multi Factor Authenticators",href:"multi-factor-authenticators/"},{text:t,href:t}],onFollow:o=>{o.preventDefault(),e("/"+o.detail.href)}})},yte=({})=>w.jsx(Fr,{navigationHide:!1,navigation:w.jsx(jA,{}),breadcrumbs:w.jsx(vte,{}),content:w.jsx(mte,{}),toolsHide:!1,tools:w.jsx(Xee,{}),toolsWidth:500,ariaLabels:$r,headerSelector:"#top-nav"}),bte=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})}),wte=()=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"fetch_user_api_keys"}}).then(e=>(console.log("Fetch API Keys Response",e),e.data.entries!==void 0?e.data.entries:null)).catch(e=>{var t;throw((t=e==null?void 0:e.response)==null?void 0:t.status)===401&&Tt(),console.error("Fetch API Keys Error",e),e}),xte=e=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"delete_user_api_key",id:e}}).then(t=>(console.log("Delete API Key Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r;throw((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),t});function D1(e){return e===void 0?"No":e===!0?"Yes":"No"}function _te(e){if(e===void 0)return"";const t=[];for(const r of e)switch(r){case"prod":t.push("Production");break;case"test":t.push("Test");break;case"dev":t.push("Development");break;case"experimental":t.push("Experimental");break;default:t.push(r);break}return t.join(", ")}function kte(e){if(e===void 0)return"";const t=[];for(const r of e)t.push(`${r.key}=${r.value}`);return t.join(", ")}function Bg(e){return e===void 0?new Date(0):ta(e)}function Cte(e){const t=[];return e.forEach(r=>{const o=r;o.ui_labels=_te(r.labels),o.ui_tags=kte(r.tags),o.ui_created_at=Bg(r.created_at),o.ui_expired_at=Bg(r.expired_at),o.ui_disabled_at=Bg(r.disabled_at),o.ui_disabled=D1(r.disabled),o.ui_expired=D1(r.expired),t.push(o)}),t}const Ste={pageSize:10,visibleContent:["comment","expired","disabled","ui_created_at"]};function Tte(e){return e===1?"1 match":`${e} matches`}const Ete={nextPageLabel:"Next page",pageLabel:e=>`Go to page ${e}`,previousPageLabel:"Previous page"};function Dg({title:e,subtitle:t,action:r}){return w.jsxs(J,{textAlign:"center",color:"inherit",children:[w.jsx(J,{variant:"strong",textAlign:"center",color:"inherit",children:e}),w.jsx(J,{variant:"p",padding:{bottom:"s"},color:"inherit",children:t}),r]})}const Lte=({preferences:e,setPreferences:t})=>w.jsx(su,{title:"Preferences",confirmLabel:"Confirm",cancelLabel:"Cancel",preferences:e,onConfirm:({detail:r})=>t(r),pageSizePreference:{title:"Page size",options:[{value:10,label:"10 API Keys "},{value:25,label:"25 API Keys "},{value:50,label:"50 API Keys "},{value:100,label:"100 API Keys "}]},wrapLinesPreference:{label:"Wrap lines",description:"Check to see all the text and wrap the lines"},visibleContentPreference:{title:"Select visible columns",options:[{label:"API Key properties",options:[{id:"id",label:"ID"},{id:"comment",label:"Title"},{id:"description",label:"Description"},{id:"ui_expired",label:"Expired"},{id:"ui_disabled",label:"Disabled"},{id:"ui_created_at",label:"Created At"},{id:"ui_expired_at",label:"Expired At"},{id:"ui_disabled_at",label:"Disabled At"},{id:"ui_labels",label:"Labels"},{id:"ui_tags",label:"Tags"}]}]}}),Ate=({items:e,isVisible:t,onDiscard:r,onDelete:o})=>{const n=e.length>1,i=e.length,a=e[0];return w.jsx(Hn,{visible:t,onDismiss:r,header:n?"Delete API keys":"Delete API key",closeAriaLabel:"Close dialog",footer:w.jsx(J,{float:"right",children:w.jsxs(re,{direction:"horizontal",size:"xs",children:[w.jsx(ge,{variant:"link",onClick:r,children:"Cancel"}),w.jsx(ge,{variant:"primary",onClick:o,children:"Delete"})]})}),children:i>0&&w.jsxs(re,{size:"m",children:[n?w.jsxs(J,{variant:"span",children:["Delete"," ",w.jsxs(J,{variant:"span",fontWeight:"bold",children:[i," API keys"]})," ","permanently? This action cannot be undone."]}):w.jsxs(J,{variant:"span",children:["Delete API key"," ",w.jsx(J,{variant:"span",fontWeight:"bold",children:a.id})," ","permanently? This action cannot be undone."]}),w.jsxs(Gt,{type:"warning",children:["Proceeding with this action will delete ",n?"API keys":"API key"," with all content and can impact related resources."]})]})})},Bte=({})=>{const[e,t]=B.useState([]),[r,o]=B.useState(!1),[n,i]=Gc(Ne.genAppStorageKey("ApiKeys-Table-Preferences"),Ste),[a,c]=B.useState(0),[l,d]=B.useState(!1),[s,u]=B.useState(""),[h,f]=B.useState(""),[p,g]=B.useState([]),[v,m]=B.useState(!1),y=At(),C=[{key:"comment",groupValuesLabel:"Title values",propertyLabel:"Title",operators:["=","!=",":","!:"]},{key:"description",groupValuesLabel:"Description values",propertyLabel:"Description",operators:["=","!=",":","!:"]},{key:"ui_expired",groupValuesLabel:"Expired values",propertyLabel:"Expired",operators:["=","!=",":","!:"]},{key:"ui_disabled",groupValuesLabel:"Disabled values",propertyLabel:"Disabled",operators:["=","!=",":","!:"]},{key:"ui_created_at",groupValuesLabel:"Created At values",propertyLabel:"Created At",operators:["=","!=","<","<=",">",">="].map(O=>({operator:O,form:({value:j="",onChange:z})=>w.jsxs("div",{className:"date-form",children:[w.jsx(nt,{children:w.jsx(Yo,{value:j??"",onChange:F=>z(F.detail.value),placeholder:"YYYY/MM/DD"})}),w.jsx(Io,{value:j??"",onChange:F=>{console.log(F),z(F.detail.value)},locale:"en-US",todayAriaLabel:"Today",nextMonthAriaLabel:"Next month",previousMonthAriaLabel:"Previous month"})]}),match:"date"}))},{key:"ui_expired_at",groupValuesLabel:"Expired At values",propertyLabel:"Expired At",operators:["=","!=","<","<=",">",">="].map(O=>({operator:O,form:({value:j="",onChange:z})=>w.jsxs("div",{className:"date-form",children:[w.jsx(nt,{children:w.jsx(Yo,{value:j??"",onChange:F=>z(F.detail.value),placeholder:"YYYY/MM/DD"})}),w.jsx(Io,{value:j??"",onChange:F=>{console.log(F),z(F.detail.value)},locale:"en-US",todayAriaLabel:"Today",nextMonthAriaLabel:"Next month",previousMonthAriaLabel:"Previous month"})]}),match:"date"}))},{key:"ui_disabled_at",groupValuesLabel:"Disabled At values",propertyLabel:"Disabled At",operators:["=","!=","<","<=",">",">="].map(O=>({operator:O,form:({value:j="",onChange:z})=>w.jsxs("div",{className:"date-form",children:[w.jsx(nt,{children:w.jsx(Yo,{value:j??"",onChange:F=>z(F.detail.value),placeholder:"YYYY/MM/DD"})}),w.jsx(Io,{value:j??"",onChange:F=>{console.log(F),z(F.detail.value)},locale:"en-US",todayAriaLabel:"Today",nextMonthAriaLabel:"Next month",previousMonthAriaLabel:"Previous month"})]}),match:"date"}))},{key:"ui_labels",groupValuesLabel:"Labels values",propertyLabel:"Labels",operators:["=","!=",":","!:"]},{key:"ui_tags",groupValuesLabel:"Tags values",propertyLabel:"Tags",operators:["=","!=",":","!:"]}],{items:_,actions:k,filteredItemsCount:b,collectionProps:S,propertyFilterProps:T,paginationProps:L}=jf(e||[],{propertyFiltering:{filteringProperties:C,empty:w.jsxs(w.Fragment,{children:[!l&&w.jsx(Dg,{title:"No API keys",subtitle:"No API keys to display.",action:w.jsx(ge,{variant:"primary",iconName:"add-plus",onClick:()=>y("../api-keys/new"),children:"Add"})}),l&&w.jsx(Dg,{title:s,subtitle:h,action:w.jsx(ge,{onClick:P,children:"Refresh"})})]}),noMatch:w.jsx(Dg,{title:"No matches",subtitle:"Your search didn't return any API keys.",action:w.jsx(ge,{onClick:()=>k.setPropertyFiltering({tokens:[],operation:"and"}),children:"Clear filter"})})},pagination:{pageSize:n.pageSize},sorting:{},selection:{}});B.useEffect(()=>{(async()=>{if(!r)try{o(!0);const j=await wte();if(j==null)d(!0),u("Unexpected Error"),f("The API keys are empty");else{const z=Cte(j);t(j?z:[]),d(!1),u(""),f("")}}catch(j){d(!0),u(`${j.name}`),f(`${j.message}`)}finally{o(!1)}})()},[a]);const I=[{id:"id",header:"ID",cell:O=>{const j=`../api-key/${O.id}`;return w.jsx(Bo,{href:"./"+j,onFollow:z=>{z.preventDefault(),y(j)},children:O.id})},sortingField:"id"},{id:"comment",header:"Title",cell:O=>{const j=`../api-key/${O.id}`;return w.jsx(Bo,{href:"./"+j,onFollow:z=>{z.preventDefault(),y(j)},children:O.comment})},sortingField:"comment"},{id:"description",header:"Description",cell:O=>w.jsx(J,{children:O.description?O.description:"-"}),sortingField:"description"},{id:"ui_expired",header:"Expired",cell:O=>w.jsx(J,{children:O.ui_expired}),sortingField:"ui_expired"},{id:"ui_disabled",header:"Disabled",cell:O=>w.jsx(J,{children:O.ui_disabled}),sortingField:"ui_disabled"},{id:"ui_created_at",header:"Created At",cell:O=>w.jsx(J,{children:O.ui_created_at?O.ui_created_at.toISOString().replace("T"," "):"-"}),sortingField:"ui_created_at"},{id:"ui_expired_at",header:"Expired At",cell:O=>w.jsx(J,{children:O.ui_expired_at?O.ui_expired_at.toISOString().replace("T"," "):"-"}),sortingField:"ui_expired_at"},{id:"ui_disabled_at",header:"Disabled At",cell:O=>w.jsx(J,{children:O.ui_disabled_at?O.ui_disabled_at.toISOString().replace("T"," "):"-"}),sortingField:"ui_disabled_at"},{id:"ui_labels",header:"Labels",cell:O=>w.jsx(J,{children:O.ui_labels?O.ui_labels:"-"}),sortingField:"ui_labels"},{id:"ui_tags",header:"Tags",cell:O=>w.jsx(J,{children:O.ui_tags?O.ui_tags:"-"}),sortingField:"ui_tags"}],{selectedItems:A}=S;function P(){g([]),c(a+1)}function D(){m(!0)}function E(){m(!1)}async function R(){const O=A.map(F=>F.id),j=e.filter(F=>!O.includes(F.id));let z=!1;for(const F of O)try{const K=await xte(F);console.log("Deleting API Key",F,K)}catch(K){z=!0,g([...p,{type:"error",dismissible:!0,dismissLabel:"Dismiss message",header:`Failed Deleting API Key ${F}`,content:`${K.name}: ${K.message}`,id:F,onDismiss:()=>g(U=>U.filter(Y=>Y.id!==F))}]),console.log("Error Deleting API Key",F,K.name,K.message)}z===!0?console.log("Failed Deleting API Key"):(console.log("Successfully Deleted API Key"),t(j)),m(!1)}function $(){y(`../api-key/${A[0].id}`)}function N(){y("../api-keys/new")}const M={filteringAriaLabel:"your choice",dismissAriaLabel:"Dismiss",filteringPlaceholder:"Search",groupValuesText:"Values",groupPropertiesText:"Properties",operatorsText:"Operators",operationAndText:"and",operationOrText:"or",operatorLessText:"Less than",operatorLessOrEqualText:"Less than or equal",operatorGreaterText:"Greater than",operatorGreaterOrEqualText:"Greater than or equal",operatorContainsText:"Contains",operatorDoesNotContainText:"Does not contain",operatorEqualsText:"Equals",operatorDoesNotEqualText:"Does not equal",editTokenHeader:"Edit filter",propertyText:"Property",operatorText:"Operator",valueText:"Value",cancelActionText:"Cancel",applyActionText:"Apply",allPropertiesLabel:"All properties",tokenLimitShowMore:"Show more",tokenLimitShowFewer:"Show fewer",clearFiltersText:"Clear filters",removeTokenButtonAriaLabel:()=>"Remove token",enteredTextLabel:O=>`Use: "${O}"`};return w.jsxs(w.Fragment,{children:[p.length>0&&w.jsx(J,{padding:{top:"xxl"},children:w.jsx(cu,{items:p,i18nStrings:{ariaLabel:"Notifications",notificationBarAriaLabel:"View all notifications",notificationBarText:"Notifications",errorIconAriaLabel:"Error",warningIconAriaLabel:"Warning",successIconAriaLabel:"Success",infoIconAriaLabel:"Info",inProgressIconAriaLabel:"In progress"},stackItems:!0})}),w.jsx(J,{padding:{vertical:"xxl"},children:w.jsx(fu,{...S,stickyHeader:!0,loading:r,loadingText:"Loading API keys",items:_,pagination:w.jsx(du,{...L,ariaLabels:Ete}),header:w.jsx(Ge,{counter:e&&(A.length?`(${A.length}/${e.length})`:`(${e.length})`),actions:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(ge,{variant:"primary",iconName:"add-plus",onClick:N,children:"Add"}),w.jsx(ge,{disabled:A.length===0,onClick:$,children:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Xr,{svg:w.jsx(tp,{})},"action-btn-icon"),w.jsx("div",{children:"Open"},"action-btn-text")]})}),w.jsx(ge,{disabled:A.length===0,onClick:D,children:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Xr,{name:"close"},"action-btn-icon"),w.jsx("div",{children:"Delete"},"action-btn-text")]})}),w.jsx(ge,{variant:"primary",onClick:P,children:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Xr,{name:"refresh"},"action-btn-icon"),w.jsx("div",{children:"Refresh"},"action-btn-text")]})})]}),children:"API Keys"}),columnDefinitions:I,filter:w.jsx(Nf,{...T,i18nStrings:M,countText:Tte(b),expandToViewport:!0}),visibleColumns:n.visibleContent,selectionType:"single",preferences:w.jsx(Lte,{preferences:n,setPreferences:i})})}),w.jsx(Ate,{isVisible:v,onDiscard:E,onDelete:R,items:A})]})},Dte=()=>{const e=At();return w.jsx(eo,{items:[{text:"Home",href:""},{text:"API Keys",href:"api-keys/"}],onFollow:t=>{t.preventDefault(),e("/"+t.detail.href)}})},Rte=({navigation:e,navigationOpen:t,onNavigationChange:r,toolsOpen:o,onToolsChange:n})=>w.jsx(Fr,{navigationHide:!1,navigation:e,breadcrumbs:w.jsx(Dte,{}),navigationOpen:t,onNavigationChange:r,content:w.jsx(Bte,{}),toolsHide:!1,tools:w.jsx(bte,{}),toolsWidth:500,toolsOpen:o,onToolsChange:n,ariaLabels:$r,headerSelector:"#top-nav"}),Ite=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})}),Pte=()=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"fetch_user_ssh_keys"}}).then(e=>(console.log("Fetch SSH Keys Response",e),e.data.entries!==void 0?e.data.entries:null)).catch(e=>{var t;throw((t=e==null?void 0:e.response)==null?void 0:t.status)===401&&Tt(),console.error("Fetch SSH Keys Error",e),e}),$te=e=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"delete_user_ssh_key",id:e}}).then(t=>(console.log("Delete SSH Key Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r;throw((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),t});function R1(e){return e===void 0?"No":e===!0?"Yes":"No"}function Ote(e){if(e===void 0)return"";const t=[];for(const r of e)switch(r){case"prod":t.push("Production");break;case"test":t.push("Test");break;case"dev":t.push("Development");break;case"experimental":t.push("Experimental");break;default:t.push(r);break}return t.join(", ")}function Mte(e){if(e===void 0)return"";const t=[];for(const r of e)t.push(`${r.key}=${r.value}`);return t.join(", ")}function Rg(e){return e===void 0?new Date(0):ta(e)}function Nte(e){const t=[];return e.forEach(r=>{const o=r;o.ui_labels=Ote(r.labels),o.ui_tags=Mte(r.tags),o.ui_created_at=Rg(r.created_at),o.ui_expired_at=Rg(r.expired_at),o.ui_disabled_at=Rg(r.disabled_at),o.ui_disabled=R1(r.disabled),o.ui_expired=R1(r.expired),t.push(o)}),t}const jte={pageSize:10,visibleContent:["comment","expired","disabled","ui_created_at"]};function Gte(e){return e===1?"1 match":`${e} matches`}const zte={nextPageLabel:"Next page",pageLabel:e=>`Go to page ${e}`,previousPageLabel:"Previous page"};function Ig({title:e,subtitle:t,action:r}){return w.jsxs(J,{textAlign:"center",color:"inherit",children:[w.jsx(J,{variant:"strong",textAlign:"center",color:"inherit",children:e}),w.jsx(J,{variant:"p",padding:{bottom:"s"},color:"inherit",children:t}),r]})}const Fte=({preferences:e,setPreferences:t})=>w.jsx(su,{title:"Preferences",confirmLabel:"Confirm",cancelLabel:"Cancel",preferences:e,onConfirm:({detail:r})=>t(r),pageSizePreference:{title:"Page size",options:[{value:10,label:"10 SSH Keys "},{value:25,label:"25 SSH Keys "},{value:50,label:"50 SSH Keys "},{value:100,label:"100 SSH Keys "}]},wrapLinesPreference:{label:"Wrap lines",description:"Check to see all the text and wrap the lines"},visibleContentPreference:{title:"Select visible columns",options:[{label:"SSH Key properties",options:[{id:"id",label:"ID"},{id:"comment",label:"Title"},{id:"description",label:"Description"},{id:"fingerprint",label:"Fingerprint"},{id:"fingerprint_md5",label:"MD5 Fingerprint"},{id:"ui_expired",label:"Expired"},{id:"ui_disabled",label:"Disabled"},{id:"ui_created_at",label:"Created At"},{id:"ui_expired_at",label:"Expired At"},{id:"ui_disabled_at",label:"Disabled At"},{id:"ui_labels",label:"Labels"},{id:"ui_tags",label:"Tags"}]}]}}),Hte=({items:e,isVisible:t,onDiscard:r,onDelete:o})=>{const n=e.length>1,i=e.length,a=e[0];return w.jsx(Hn,{visible:t,onDismiss:r,header:n?"Delete SSH keys":"Delete SSH key",closeAriaLabel:"Close dialog",footer:w.jsx(J,{float:"right",children:w.jsxs(re,{direction:"horizontal",size:"xs",children:[w.jsx(ge,{variant:"link",onClick:r,children:"Cancel"}),w.jsx(ge,{variant:"primary",onClick:o,children:"Delete"})]})}),children:i>0&&w.jsxs(re,{size:"m",children:[n?w.jsxs(J,{variant:"span",children:["Delete"," ",w.jsxs(J,{variant:"span",fontWeight:"bold",children:[i," SSH keys"]})," ","permanently? This action cannot be undone."]}):w.jsxs(J,{variant:"span",children:["Delete SSH key"," ",w.jsx(J,{variant:"span",fontWeight:"bold",children:a.id})," ","permanently? This action cannot be undone."]}),w.jsxs(Gt,{type:"warning",children:["Proceeding with this action will delete ",n?"SSH keys":"SSH key"," with all content and can impact related resources."]})]})})},Wte=({})=>{const[e,t]=B.useState([]),[r,o]=B.useState(!1),[n,i]=Gc(Ne.genAppStorageKey("SshKeys-Table-Preferences"),jte),[a,c]=B.useState(0),[l,d]=B.useState(!1),[s,u]=B.useState(""),[h,f]=B.useState(""),[p,g]=B.useState([]),[v,m]=B.useState(!1),y=At(),C=[{key:"comment",groupValuesLabel:"Title values",propertyLabel:"Title",operators:["=","!=",":","!:"]},{key:"description",groupValuesLabel:"Description values",propertyLabel:"Description",operators:["=","!=",":","!:"]},{key:"fingerprint",groupValuesLabel:"Fingerprint values",propertyLabel:"Fingerprint",operators:["=","!=",":","!:"]},{key:"fingerprint_md5",groupValuesLabel:"MD5 Fingerprint values",propertyLabel:"MD5 Fingerprint",operators:["=","!=",":","!:"]},{key:"ui_expired",groupValuesLabel:"Expired values",propertyLabel:"Expired",operators:["=","!=",":","!:"]},{key:"ui_disabled",groupValuesLabel:"Disabled values",propertyLabel:"Disabled",operators:["=","!=",":","!:"]},{key:"ui_created_at",groupValuesLabel:"Created At values",propertyLabel:"Created At",operators:["=","!=","<","<=",">",">="].map(O=>({operator:O,form:({value:j="",onChange:z})=>w.jsxs("div",{className:"date-form",children:[w.jsx(nt,{children:w.jsx(Yo,{value:j??"",onChange:F=>z(F.detail.value),placeholder:"YYYY/MM/DD"})}),w.jsx(Io,{value:j??"",onChange:F=>{console.log(F),z(F.detail.value)},locale:"en-US",todayAriaLabel:"Today",nextMonthAriaLabel:"Next month",previousMonthAriaLabel:"Previous month"})]}),match:"date"}))},{key:"ui_expired_at",groupValuesLabel:"Expired At values",propertyLabel:"Expired At",operators:["=","!=","<","<=",">",">="].map(O=>({operator:O,form:({value:j="",onChange:z})=>w.jsxs("div",{className:"date-form",children:[w.jsx(nt,{children:w.jsx(Yo,{value:j??"",onChange:F=>z(F.detail.value),placeholder:"YYYY/MM/DD"})}),w.jsx(Io,{value:j??"",onChange:F=>{console.log(F),z(F.detail.value)},locale:"en-US",todayAriaLabel:"Today",nextMonthAriaLabel:"Next month",previousMonthAriaLabel:"Previous month"})]}),match:"date"}))},{key:"ui_disabled_at",groupValuesLabel:"Disabled At values",propertyLabel:"Disabled At",operators:["=","!=","<","<=",">",">="].map(O=>({operator:O,form:({value:j="",onChange:z})=>w.jsxs("div",{className:"date-form",children:[w.jsx(nt,{children:w.jsx(Yo,{value:j??"",onChange:F=>z(F.detail.value),placeholder:"YYYY/MM/DD"})}),w.jsx(Io,{value:j??"",onChange:F=>{console.log(F),z(F.detail.value)},locale:"en-US",todayAriaLabel:"Today",nextMonthAriaLabel:"Next month",previousMonthAriaLabel:"Previous month"})]}),match:"date"}))},{key:"ui_labels",groupValuesLabel:"Labels values",propertyLabel:"Labels",operators:["=","!=",":","!:"]},{key:"ui_tags",groupValuesLabel:"Tags values",propertyLabel:"Tags",operators:["=","!=",":","!:"]}],{items:_,actions:k,filteredItemsCount:b,collectionProps:S,propertyFilterProps:T,paginationProps:L}=jf(e||[],{propertyFiltering:{filteringProperties:C,empty:w.jsxs(w.Fragment,{children:[!l&&w.jsx(Ig,{title:"No SSH keys",subtitle:"No SSH keys to display.",action:w.jsx(ge,{variant:"primary",iconName:"add-plus",onClick:()=>y("../ssh-keys/new"),children:"Add"})}),l&&w.jsx(Ig,{title:s,subtitle:h,action:w.jsx(ge,{onClick:P,children:"Refresh"})})]}),noMatch:w.jsx(Ig,{title:"No matches",subtitle:"Your search didn't return any SSH keys.",action:w.jsx(ge,{onClick:()=>k.setPropertyFiltering({tokens:[],operation:"and"}),children:"Clear filter"})})},pagination:{pageSize:n.pageSize},sorting:{},selection:{}});B.useEffect(()=>{(async()=>{if(!r)try{o(!0);const j=await Pte();if(j==null)d(!0),u("Unexpected Error"),f("The SSH keys are empty");else{const z=Nte(j);t(j?z:[]),d(!1),u(""),f("")}}catch(j){d(!0),u(`${j.name}`),f(`${j.message}`)}finally{o(!1)}})()},[a]);const I=[{id:"id",header:"ID",cell:O=>{const j=`../ssh-key/${O.id}`;return w.jsx(Bo,{href:"./"+j,onFollow:z=>{z.preventDefault(),y(j)},children:O.id})},sortingField:"id"},{id:"comment",header:"Title",cell:O=>{const j=`../ssh-key/${O.id}`;return w.jsx(Bo,{href:"./"+j,onFollow:z=>{z.preventDefault(),y(j)},children:O.comment})},sortingField:"comment"},{id:"description",header:"Description",cell:O=>w.jsx(J,{children:O.description?O.description:"-"}),sortingField:"description"},{id:"fingerprint",header:"Fingerprint",cell:O=>w.jsx(J,{children:O.fingerprint?O.fingerprint:"-"}),sortingField:"fingerprint"},{id:"fingerprint_md5",header:"MD5 Fingerprint",cell:O=>w.jsx(J,{children:O.fingerprint_md5?O.fingerprint_md5:"-"}),sortingField:"fingerprint_md5"},{id:"ui_expired",header:"Expired",cell:O=>w.jsx(J,{children:O.ui_expired}),sortingField:"ui_expired"},{id:"ui_disabled",header:"Disabled",cell:O=>w.jsx(J,{children:O.ui_disabled}),sortingField:"ui_disabled"},{id:"ui_created_at",header:"Created At",cell:O=>w.jsx(J,{children:O.ui_created_at?O.ui_created_at.toISOString().replace("T"," "):"-"}),sortingField:"ui_created_at"},{id:"ui_expired_at",header:"Expired At",cell:O=>w.jsx(J,{children:O.ui_expired_at?O.ui_expired_at.toISOString().replace("T"," "):"-"}),sortingField:"ui_expired_at"},{id:"ui_disabled_at",header:"Disabled At",cell:O=>w.jsx(J,{children:O.ui_disabled_at?O.ui_disabled_at.toISOString().replace("T"," "):"-"}),sortingField:"ui_disabled_at"},{id:"ui_labels",header:"Labels",cell:O=>w.jsx(J,{children:O.ui_labels?O.ui_labels:"-"}),sortingField:"ui_labels"},{id:"ui_tags",header:"Tags",cell:O=>w.jsx(J,{children:O.ui_tags?O.ui_tags:"-"}),sortingField:"ui_tags"}],{selectedItems:A}=S;function P(){g([]),c(a+1)}function D(){m(!0)}function E(){m(!1)}async function R(){const O=A.map(F=>F.id),j=e.filter(F=>!O.includes(F.id));let z=!1;for(const F of O)try{const K=await $te(F);console.log("Deleting SSH Key",F,K)}catch(K){z=!0,g([...p,{type:"error",dismissible:!0,dismissLabel:"Dismiss message",header:`Failed Deleting SSH Key ${F}`,content:`${K.name}: ${K.message}`,id:F,onDismiss:()=>g(U=>U.filter(Y=>Y.id!==F))}]),console.log("Error Deleting SSH Key",F,K.name,K.message)}z===!0?console.log("Failed Deleting SSH Key"):(console.log("Successfully Deleted SSH Key"),t(j)),m(!1)}function $(){y(`../ssh-key/${A[0].id}`)}function N(){y("../ssh-keys/new")}const M={filteringAriaLabel:"your choice",dismissAriaLabel:"Dismiss",filteringPlaceholder:"Search",groupValuesText:"Values",groupPropertiesText:"Properties",operatorsText:"Operators",operationAndText:"and",operationOrText:"or",operatorLessText:"Less than",operatorLessOrEqualText:"Less than or equal",operatorGreaterText:"Greater than",operatorGreaterOrEqualText:"Greater than or equal",operatorContainsText:"Contains",operatorDoesNotContainText:"Does not contain",operatorEqualsText:"Equals",operatorDoesNotEqualText:"Does not equal",editTokenHeader:"Edit filter",propertyText:"Property",operatorText:"Operator",valueText:"Value",cancelActionText:"Cancel",applyActionText:"Apply",allPropertiesLabel:"All properties",tokenLimitShowMore:"Show more",tokenLimitShowFewer:"Show fewer",clearFiltersText:"Clear filters",removeTokenButtonAriaLabel:()=>"Remove token",enteredTextLabel:O=>`Use: "${O}"`};return w.jsxs(w.Fragment,{children:[p.length>0&&w.jsx(J,{padding:{top:"xxl"},children:w.jsx(cu,{items:p,i18nStrings:{ariaLabel:"Notifications",notificationBarAriaLabel:"View all notifications",notificationBarText:"Notifications",errorIconAriaLabel:"Error",warningIconAriaLabel:"Warning",successIconAriaLabel:"Success",infoIconAriaLabel:"Info",inProgressIconAriaLabel:"In progress"},stackItems:!0})}),w.jsx(J,{padding:{vertical:"xxl"},children:w.jsx(fu,{...S,stickyHeader:!0,loading:r,loadingText:"Loading SSH keys",items:_,pagination:w.jsx(du,{...L,ariaLabels:zte}),header:w.jsx(Ge,{counter:e&&(A.length?`(${A.length}/${e.length})`:`(${e.length})`),actions:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(ge,{variant:"primary",iconName:"add-plus",onClick:N,children:"Add"}),w.jsx(ge,{disabled:A.length===0,onClick:$,children:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Xr,{svg:w.jsx(tp,{})},"action-btn-icon"),w.jsx("div",{children:"Open"},"action-btn-text")]})}),w.jsx(ge,{disabled:A.length===0,onClick:D,children:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Xr,{name:"close"},"action-btn-icon"),w.jsx("div",{children:"Delete"},"action-btn-text")]})}),w.jsx(ge,{variant:"primary",onClick:P,children:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Xr,{name:"refresh"},"action-btn-icon"),w.jsx("div",{children:"Refresh"},"action-btn-text")]})})]}),children:"SSH Keys"}),columnDefinitions:I,filter:w.jsx(Nf,{...T,i18nStrings:M,countText:Gte(b),expandToViewport:!0}),visibleColumns:n.visibleContent,selectionType:"single",preferences:w.jsx(Fte,{preferences:n,setPreferences:i})})}),w.jsx(Hte,{isVisible:v,onDiscard:E,onDelete:R,items:A})]})},Vte=()=>{const e=At();return w.jsx(eo,{items:[{text:"Home",href:""},{text:"SSH Keys",href:"ssh-keys/"}],onFollow:t=>{t.preventDefault(),e("/"+t.detail.href)}})},Ute=({navigation:e,navigationOpen:t,onNavigationChange:r,toolsOpen:o,onToolsChange:n})=>w.jsx(Fr,{navigationHide:!1,navigation:e,breadcrumbs:w.jsx(Vte,{}),navigationOpen:t,onNavigationChange:r,content:w.jsx(Wte,{}),toolsHide:!1,tools:w.jsx(Ite,{}),toolsWidth:500,toolsOpen:o,onToolsChange:n,ariaLabels:$r,headerSelector:"#top-nav"}),Kte=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})}),qte=()=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"fetch_user_gpg_keys"}}).then(e=>(console.log("Fetch GPG Keys Response",e),e.data.entries!==void 0?e.data.entries:null)).catch(e=>{var t;throw((t=e==null?void 0:e.response)==null?void 0:t.status)===401&&Tt(),console.error("Fetch GPG Keys Error",e),e}),Yte=e=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"delete_user_gpg_key",id:e}}).then(t=>(console.log("Delete GPG Key Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r;throw((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),t});function I1(e){return e===void 0?"No":e===!0?"Yes":"No"}function Xte(e){if(e===void 0)return"";const t=[];for(const r of e)switch(r){case"prod":t.push("Production");break;case"test":t.push("Test");break;case"dev":t.push("Development");break;case"experimental":t.push("Experimental");break;default:t.push(r);break}return t.join(", ")}function Qte(e){if(e===void 0)return"";const t=[];for(const r of e)t.push(`${r.key}=${r.value}`);return t.join(", ")}function Pg(e){return e===void 0?new Date(0):ta(e)}function Zte(e){const t=[];return e.forEach(r=>{const o=r;o.ui_labels=Xte(r.labels),o.ui_tags=Qte(r.tags),o.ui_created_at=Pg(r.created_at),o.ui_expired_at=Pg(r.expired_at),o.ui_disabled_at=Pg(r.disabled_at),o.ui_disabled=I1(r.disabled),o.ui_expired=I1(r.expired),t.push(o)}),t}const Jte={pageSize:10,visibleContent:["comment","expired","disabled","ui_created_at"]};function ere(e){return e===1?"1 match":`${e} matches`}const tre={nextPageLabel:"Next page",pageLabel:e=>`Go to page ${e}`,previousPageLabel:"Previous page"};function $g({title:e,subtitle:t,action:r}){return w.jsxs(J,{textAlign:"center",color:"inherit",children:[w.jsx(J,{variant:"strong",textAlign:"center",color:"inherit",children:e}),w.jsx(J,{variant:"p",padding:{bottom:"s"},color:"inherit",children:t}),r]})}const rre=({preferences:e,setPreferences:t})=>w.jsx(su,{title:"Preferences",confirmLabel:"Confirm",cancelLabel:"Cancel",preferences:e,onConfirm:({detail:r})=>t(r),pageSizePreference:{title:"Page size",options:[{value:10,label:"10 GPG Keys "},{value:25,label:"25 GPG Keys "},{value:50,label:"50 GPG Keys "},{value:100,label:"100 GPG Keys "}]},wrapLinesPreference:{label:"Wrap lines",description:"Check to see all the text and wrap the lines"},visibleContentPreference:{title:"Select visible columns",options:[{label:"GPG Key properties",options:[{id:"id",label:"ID"},{id:"comment",label:"Title"},{id:"description",label:"Description"},{id:"fingerprint",label:"Fingerprint"},{id:"fingerprint_md5",label:"MD5 Fingerprint"},{id:"ui_expired",label:"Expired"},{id:"ui_disabled",label:"Disabled"},{id:"ui_created_at",label:"Created At"},{id:"ui_expired_at",label:"Expired At"},{id:"ui_disabled_at",label:"Disabled At"},{id:"ui_labels",label:"Labels"},{id:"ui_tags",label:"Tags"}]}]}}),ore=({items:e,isVisible:t,onDiscard:r,onDelete:o})=>{const n=e.length>1,i=e.length,a=e[0];return w.jsx(Hn,{visible:t,onDismiss:r,header:n?"Delete GPG keys":"Delete GPG key",closeAriaLabel:"Close dialog",footer:w.jsx(J,{float:"right",children:w.jsxs(re,{direction:"horizontal",size:"xs",children:[w.jsx(ge,{variant:"link",onClick:r,children:"Cancel"}),w.jsx(ge,{variant:"primary",onClick:o,children:"Delete"})]})}),children:i>0&&w.jsxs(re,{size:"m",children:[n?w.jsxs(J,{variant:"span",children:["Delete"," ",w.jsxs(J,{variant:"span",fontWeight:"bold",children:[i," GPG keys"]})," ","permanently? This action cannot be undone."]}):w.jsxs(J,{variant:"span",children:["Delete GPG key"," ",w.jsx(J,{variant:"span",fontWeight:"bold",children:a.id})," ","permanently? This action cannot be undone."]}),w.jsxs(Gt,{type:"warning",children:["Proceeding with this action will delete ",n?"GPG keys":"GPG key"," with all content and can impact related resources."]})]})})},nre=({})=>{const[e,t]=B.useState([]),[r,o]=B.useState(!1),[n,i]=Gc(Ne.genAppStorageKey("GpgKeys-Table-Preferences"),Jte),[a,c]=B.useState(0),[l,d]=B.useState(!1),[s,u]=B.useState(""),[h,f]=B.useState(""),[p,g]=B.useState([]),[v,m]=B.useState(!1),y=At(),C=[{key:"comment",groupValuesLabel:"Title values",propertyLabel:"Title",operators:["=","!=",":","!:"]},{key:"description",groupValuesLabel:"Description values",propertyLabel:"Description",operators:["=","!=",":","!:"]},{key:"fingerprint",groupValuesLabel:"Fingerprint values",propertyLabel:"Fingerprint",operators:["=","!=",":","!:"]},{key:"fingerprint_md5",groupValuesLabel:"MD5 Fingerprint values",propertyLabel:"MD5 Fingerprint",operators:["=","!=",":","!:"]},{key:"ui_expired",groupValuesLabel:"Expired values",propertyLabel:"Expired",operators:["=","!=",":","!:"]},{key:"ui_disabled",groupValuesLabel:"Disabled values",propertyLabel:"Disabled",operators:["=","!=",":","!:"]},{key:"ui_created_at",groupValuesLabel:"Created At values",propertyLabel:"Created At",operators:["=","!=","<","<=",">",">="].map(O=>({operator:O,form:({value:j="",onChange:z})=>w.jsxs("div",{className:"date-form",children:[w.jsx(nt,{children:w.jsx(Yo,{value:j??"",onChange:F=>z(F.detail.value),placeholder:"YYYY/MM/DD"})}),w.jsx(Io,{value:j??"",onChange:F=>{console.log(F),z(F.detail.value)},locale:"en-US",todayAriaLabel:"Today",nextMonthAriaLabel:"Next month",previousMonthAriaLabel:"Previous month"})]}),match:"date"}))},{key:"ui_expired_at",groupValuesLabel:"Expired At values",propertyLabel:"Expired At",operators:["=","!=","<","<=",">",">="].map(O=>({operator:O,form:({value:j="",onChange:z})=>w.jsxs("div",{className:"date-form",children:[w.jsx(nt,{children:w.jsx(Yo,{value:j??"",onChange:F=>z(F.detail.value),placeholder:"YYYY/MM/DD"})}),w.jsx(Io,{value:j??"",onChange:F=>{console.log(F),z(F.detail.value)},locale:"en-US",todayAriaLabel:"Today",nextMonthAriaLabel:"Next month",previousMonthAriaLabel:"Previous month"})]}),match:"date"}))},{key:"ui_disabled_at",groupValuesLabel:"Disabled At values",propertyLabel:"Disabled At",operators:["=","!=","<","<=",">",">="].map(O=>({operator:O,form:({value:j="",onChange:z})=>w.jsxs("div",{className:"date-form",children:[w.jsx(nt,{children:w.jsx(Yo,{value:j??"",onChange:F=>z(F.detail.value),placeholder:"YYYY/MM/DD"})}),w.jsx(Io,{value:j??"",onChange:F=>{console.log(F),z(F.detail.value)},locale:"en-US",todayAriaLabel:"Today",nextMonthAriaLabel:"Next month",previousMonthAriaLabel:"Previous month"})]}),match:"date"}))},{key:"ui_labels",groupValuesLabel:"Labels values",propertyLabel:"Labels",operators:["=","!=",":","!:"]},{key:"ui_tags",groupValuesLabel:"Tags values",propertyLabel:"Tags",operators:["=","!=",":","!:"]}],{items:_,actions:k,filteredItemsCount:b,collectionProps:S,propertyFilterProps:T,paginationProps:L}=jf(e||[],{propertyFiltering:{filteringProperties:C,empty:w.jsxs(w.Fragment,{children:[!l&&w.jsx($g,{title:"No GPG keys",subtitle:"No GPG keys to display.",action:w.jsx(ge,{variant:"primary",iconName:"add-plus",onClick:()=>y("../gpg-keys/new"),children:"Add"})}),l&&w.jsx($g,{title:s,subtitle:h,action:w.jsx(ge,{onClick:P,children:"Refresh"})})]}),noMatch:w.jsx($g,{title:"No matches",subtitle:"Your search didn't return any GPG keys.",action:w.jsx(ge,{onClick:()=>k.setPropertyFiltering({tokens:[],operation:"and"}),children:"Clear filter"})})},pagination:{pageSize:n.pageSize},sorting:{},selection:{}});B.useEffect(()=>{(async()=>{if(!r)try{o(!0);const j=await qte();if(j==null)d(!0),u("Unexpected Error"),f("The GPG keys are empty");else{const z=Zte(j);t(j?z:[]),d(!1),u(""),f("")}}catch(j){d(!0),u(`${j.name}`),f(`${j.message}`)}finally{o(!1)}})()},[a]);const I=[{id:"id",header:"ID",cell:O=>{const j=`../gpg-key/${O.id}`;return w.jsx(Bo,{href:"./"+j,onFollow:z=>{z.preventDefault(),y(j)},children:O.id})},sortingField:"id"},{id:"comment",header:"Title",cell:O=>{const j=`../gpg-key/${O.id}`;return w.jsx(Bo,{href:"./"+j,onFollow:z=>{z.preventDefault(),y(j)},children:O.comment})},sortingField:"comment"},{id:"description",header:"Description",cell:O=>w.jsx(J,{children:O.description?O.description:"-"}),sortingField:"description"},{id:"fingerprint",header:"Fingerprint",cell:O=>w.jsx(J,{children:O.fingerprint?O.fingerprint:"-"}),sortingField:"fingerprint"},{id:"fingerprint_md5",header:"MD5 Fingerprint",cell:O=>w.jsx(J,{children:O.fingerprint_md5?O.fingerprint_md5:"-"}),sortingField:"fingerprint_md5"},{id:"ui_expired",header:"Expired",cell:O=>w.jsx(J,{children:O.ui_expired}),sortingField:"ui_expired"},{id:"ui_disabled",header:"Disabled",cell:O=>w.jsx(J,{children:O.ui_disabled}),sortingField:"ui_disabled"},{id:"ui_created_at",header:"Created At",cell:O=>w.jsx(J,{children:O.ui_created_at?O.ui_created_at.toISOString().replace("T"," "):"-"}),sortingField:"ui_created_at"},{id:"ui_expired_at",header:"Expired At",cell:O=>w.jsx(J,{children:O.ui_expired_at?O.ui_expired_at.toISOString().replace("T"," "):"-"}),sortingField:"ui_expired_at"},{id:"ui_disabled_at",header:"Disabled At",cell:O=>w.jsx(J,{children:O.ui_disabled_at?O.ui_disabled_at.toISOString().replace("T"," "):"-"}),sortingField:"ui_disabled_at"},{id:"ui_labels",header:"Labels",cell:O=>w.jsx(J,{children:O.ui_labels?O.ui_labels:"-"}),sortingField:"ui_labels"},{id:"ui_tags",header:"Tags",cell:O=>w.jsx(J,{children:O.ui_tags?O.ui_tags:"-"}),sortingField:"ui_tags"}],{selectedItems:A}=S;function P(){g([]),c(a+1)}function D(){m(!0)}function E(){m(!1)}async function R(){const O=A.map(F=>F.id),j=e.filter(F=>!O.includes(F.id));let z=!1;for(const F of O)try{const K=await Yte(F);console.log("Deleting GPG Key",F,K)}catch(K){z=!0,g([...p,{type:"error",dismissible:!0,dismissLabel:"Dismiss message",header:`Failed Deleting GPG Key ${F}`,content:`${K.name}: ${K.message}`,id:F,onDismiss:()=>g(U=>U.filter(Y=>Y.id!==F))}]),console.log("Error Deleting GPG Key",F,K.name,K.message)}z===!0?console.log("Failed Deleting GPG Key"):(console.log("Successfully Deleted GPG Key"),t(j)),m(!1)}function $(){y(`../gpg-key/${A[0].id}`)}function N(){y("../gpg-keys/new")}const M={filteringAriaLabel:"your choice",dismissAriaLabel:"Dismiss",filteringPlaceholder:"Search",groupValuesText:"Values",groupPropertiesText:"Properties",operatorsText:"Operators",operationAndText:"and",operationOrText:"or",operatorLessText:"Less than",operatorLessOrEqualText:"Less than or equal",operatorGreaterText:"Greater than",operatorGreaterOrEqualText:"Greater than or equal",operatorContainsText:"Contains",operatorDoesNotContainText:"Does not contain",operatorEqualsText:"Equals",operatorDoesNotEqualText:"Does not equal",editTokenHeader:"Edit filter",propertyText:"Property",operatorText:"Operator",valueText:"Value",cancelActionText:"Cancel",applyActionText:"Apply",allPropertiesLabel:"All properties",tokenLimitShowMore:"Show more",tokenLimitShowFewer:"Show fewer",clearFiltersText:"Clear filters",removeTokenButtonAriaLabel:()=>"Remove token",enteredTextLabel:O=>`Use: "${O}"`};return w.jsxs(w.Fragment,{children:[p.length>0&&w.jsx(J,{padding:{top:"xxl"},children:w.jsx(cu,{items:p,i18nStrings:{ariaLabel:"Notifications",notificationBarAriaLabel:"View all notifications",notificationBarText:"Notifications",errorIconAriaLabel:"Error",warningIconAriaLabel:"Warning",successIconAriaLabel:"Success",infoIconAriaLabel:"Info",inProgressIconAriaLabel:"In progress"},stackItems:!0})}),w.jsx(J,{padding:{vertical:"xxl"},children:w.jsx(fu,{...S,stickyHeader:!0,loading:r,loadingText:"Loading GPG keys",items:_,pagination:w.jsx(du,{...L,ariaLabels:tre}),header:w.jsx(Ge,{counter:e&&(A.length?`(${A.length}/${e.length})`:`(${e.length})`),actions:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(ge,{variant:"primary",iconName:"add-plus",onClick:N,children:"Add"}),w.jsx(ge,{disabled:A.length===0,onClick:$,children:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Xr,{svg:w.jsx(tp,{})},"action-btn-icon"),w.jsx("div",{children:"Open"},"action-btn-text")]})}),w.jsx(ge,{disabled:A.length===0,onClick:D,children:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Xr,{name:"close"},"action-btn-icon"),w.jsx("div",{children:"Delete"},"action-btn-text")]})}),w.jsx(ge,{variant:"primary",onClick:P,children:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(Xr,{name:"refresh"},"action-btn-icon"),w.jsx("div",{children:"Refresh"},"action-btn-text")]})})]}),children:"GPG Keys"}),columnDefinitions:I,filter:w.jsx(Nf,{...T,i18nStrings:M,countText:ere(b),expandToViewport:!0}),visibleColumns:n.visibleContent,selectionType:"single",preferences:w.jsx(rre,{preferences:n,setPreferences:i})})}),w.jsx(ore,{isVisible:v,onDiscard:E,onDelete:R,items:A})]})},ire=()=>{const e=At();return w.jsx(eo,{items:[{text:"Home",href:""},{text:"GPG Keys",href:"gpg-keys/"}],onFollow:t=>{t.preventDefault(),e("/"+t.detail.href)}})},are=({navigation:e,navigationOpen:t,onNavigationChange:r,toolsOpen:o,onToolsChange:n})=>w.jsx(Fr,{navigationHide:!1,navigation:e,breadcrumbs:w.jsx(ire,{}),navigationOpen:t,onNavigationChange:r,content:w.jsx(nre,{}),toolsHide:!1,tools:w.jsx(Kte,{}),toolsWidth:500,toolsOpen:o,onToolsChange:n,ariaLabels:$r,headerSelector:"#top-nav"}),lre=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})}),UB=(e,t)=>{if(e){const r=/^[A-Za-z0-9 ()@.\-_/,]+$/;if(!(t.length>=3&&t.length<=100)||!r.test(t))return"The title is non compliant. It should contain 3-100 characters and consists of A-Z, a-z, 0-9, @ characters only."}return null},KB=(e,t)=>{if(e)for(const r of t)switch(r){case"prod":break;case"test":break;case"dev":break;case"experimental":break;default:return"The labels contains invalid value."}return null};function Lv(e){const t={valid:!0},r=UB(!0,e.title);if(r!==null)return t.valid=!1,t.message=r,t;const o=KB(!0,e.labels);return o!==null&&(t.valid=!1,t.message=o),t}const sre=e=>{const t=[{label:"Production",value:"prod",description:""},{label:"Test",value:"test",description:""},{label:"Development",value:"dev",description:""},{label:"Experimental",value:"experimental",description:"Reserved for experimental purposes"}],r=l=>{e.setTitle(l.value)},o=l=>{e.setDescription(l.value)},n=t.filter(function(l){if(e.labels.length<1)return!1;let d=!1;return e.labels.forEach(s=>{if(l.value===s){d=!0;return}}),d}),[i,a]=B.useState(n),c=l=>{a(l.selectedOptions),e.setLabels(l.selectedOptions.map(d=>`${d.value}`))};return w.jsx(Fe,{children:w.jsx(Fn,{children:w.jsxs(re,{direction:"vertical",size:"l",children:[w.jsx(nt,{label:"Title",errorText:UB(e.alertVisible,e.title),description:"Amend the title associated with the key.",constraintText:w.jsx("span",{children:w.jsx("i",{children:"If the key you upload has a comment, it will be used instead of the value provides in this input box."})}),children:w.jsx(jt,{inputMode:"text",value:e.title,spellcheck:!1,disableBrowserAutocorrect:!0,autoComplete:!1,onChange:({detail:l})=>r(l)})}),w.jsx(nt,{label:"Description",description:"Add optional description. This help search.",children:w.jsx(jt,{inputMode:"text",placeholder:"My SSH Key",spellcheck:!1,disableBrowserAutocorrect:!0,autoComplete:!1,value:e.description,onChange:({detail:l})=>o(l)})}),w.jsx(nt,{label:w.jsxs("span",{children:["Labels ",w.jsx("i",{children:"- optional"})," "]}),errorText:KB(e.alertVisible,e.labels),children:w.jsx(uu,{selectedOptions:i,filteringType:"auto",onChange:({detail:l})=>c(l),options:t,placeholder:"Open dropdown and choose Labels",selectedAriaLabel:"Selected Labels"})})]})})})};function cre(e){let t="You are required to address the error(s) to continue.";if(e.alertVisible){const r=Lv(e);!r.valid&&r.message&&(t=r.message)}return{title:"Configuration",description:"Provide the configuration for the registration of SSH key",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Errors Detected",type:"warning",children:t}),w.jsx(sre,{...e})]})}}function P1(e){const t={valid:!0};for(const r of e.tags)if(r.key===""||r.value==="")return t.valid=!1,t.message="Invalid tag",t;return t}const ure=e=>{const t=(r,o,n)=>{const i=[...e.tags],a=i[o];n?a.key=r.value:a.value=r.value,e.setTags(i)};return w.jsx(Fe,{children:w.jsx(re,{direction:"vertical",size:"l",children:w.jsx(Qc,{items:e.tags,addButtonText:"Add new tag",removeButtonText:"Remove",empty:"No tags associated with the registration.",onAddButtonClick:()=>{e.setTags([...e.tags,{key:"",value:""}])},onRemoveButtonClick:({detail:{itemIndex:r}})=>{const o=[...e.tags];o.splice(r,1),e.setTags(o)},definition:[{label:"Key",control:(r,o)=>w.jsx(jt,{value:r.key,placeholder:"Enter key",autoComplete:!1,spellcheck:!1,disableBrowserAutocorrect:!1,onChange:({detail:n})=>t(n,o,!0)},`tag-key-${o}`)},{label:"Value",control:(r,o)=>w.jsx(jt,{value:r.value,autoComplete:!1,spellcheck:!1,disableBrowserAutocorrect:!1,placeholder:"Enter value",onChange:({detail:n})=>t(n,o,!1)},`tag-value-${o}`)}]})})})};function dre(e){return{title:"Add Tags",description:"Tag the registration to improve search quality",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Error(s) Detected",type:"warning",children:"Please review and fix the below validation errors."}),w.jsx(ure,{...e})]}),isOptional:!0}}const hre=e=>{if(e===void 0)return"Unknown";switch(e){case"prod":return"Production";case"test":return"Test";case"dev":return"Development";case"experimental":return"Experimental";default:return"Unknown"}},fre=e=>w.jsxs(re,{size:"l",children:[e.submitAlertVisible&&w.jsx(Gt,{dismissAriaLabel:"Close alert",dismissible:!0,statusIconAriaLabel:"Failure",type:"error",header:"Error",onDismiss:()=>e.setSubmitAlertVisible(!1),children:e.submitAlert.toString()}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(0),children:"Edit"}),children:"Step 1: Metadata"}),w.jsx(Fe,{children:w.jsxs(Er,{columns:2,variant:"text-grid",children:[w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Title"}),w.jsx("div",{children:e.title.length>0?e.title:w.jsx(Le,{children:w.jsx("i",{children:"Empty"})})})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Description"}),w.jsx("div",{children:e.description.length>0?e.description:w.jsx(Le,{children:w.jsx("i",{children:"Empty"})})})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Fingerprint"}),w.jsx(pr,{variant:"inline",textToCopy:e.sshKeyFingerprint||"-",copyButtonAriaLabel:"Copy Fingerprint",copySuccessText:"Fingerprint copied",copyErrorText:"Failed to copy Fingerprint"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Fingerprint MD5"}),w.jsx(pr,{variant:"inline",textToCopy:e.sshKeyFingerprintMD5||"-",copyButtonAriaLabel:"Copy MD5 Fingerprint",copySuccessText:"MD5 Fingerprint copied",copyErrorText:"Failed to copy MD5 Fingerprint"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Labels"}),w.jsx("div",{children:e.labels.length>0?w.jsx(re,{direction:"horizontal",size:"xs",children:e.labels.map(t=>w.jsx(Tn,{children:hre(t.split(/\./).shift())},"labels-{x}"))}):w.jsx(Le,{children:w.jsx("i",{children:"None"})})})]})]})}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(1),children:"Edit"}),children:"Step 2: Registration"}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(2),children:"Edit"}),children:"Step 3: Tagging"}),w.jsx(Fe,{children:w.jsx(J,{children:e.tags.length>0?w.jsx(Er,{columns:2,children:e.tags.map(t=>w.jsxs(Le,{children:[w.jsx("strong",{children:t.key}),": ",t.value]},t.key))}):w.jsx(Le,{children:w.jsx("i",{children:"None"})})})})]});function pre(e){return{title:"Review and Create",description:"Review the summary of the SSH key and, if necessary, make changes",content:w.jsx(fre,{...e})}}const gre=e=>(e.kind="add_user_ssh_key",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Add SSH key Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t})),mre=e=>(e.kind="test_user_ssh_key",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Test SSH key Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t}));var qB={exports:{}};(function(e,t){(function(){var r="ace",o=function(){return this}();!o&&typeof window<"u"&&(o=window);var n=function(s,u,h){if(typeof s!="string"){n.original?n.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(h=u),n.modules[s]||(n.payloads[s]=h,n.modules[s]=null)};n.modules={},n.payloads={};var i=function(s,u,h){if(typeof u=="string"){var f=l(s,u);if(f!=null)return h&&h(),f}else if(Object.prototype.toString.call(u)==="[object Array]"){for(var p=[],g=0,v=u.length;g<v;++g){var m=l(s,u[g]);if(m==null&&a.original)return;p.push(m)}return h&&h.apply(null,p)||!0}},a=function(s,u){var h=i("",s,u);return h==null&&a.original?a.original.apply(this,arguments):h},c=function(s,u){if(u.indexOf("!")!==-1){var h=u.split("!");return c(s,h[0])+"!"+c(s,h[1])}if(u.charAt(0)=="."){var f=s.split("/").slice(0,-1).join("/");for(u=f+"/"+u;u.indexOf(".")!==-1&&p!=u;){var p=u;u=u.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return u},l=function(s,u){u=c(s,u);var h=n.modules[u];if(!h){if(h=n.payloads[u],typeof h=="function"){var f={},p={id:u,uri:"",exports:f,packaged:!0},g=function(m,y){return i(u,m,y)},v=h(g,f,p);f=v||p.exports,n.modules[u]=f,delete n.payloads[u]}h=n.modules[u]=f||h}return h};function d(s){var u=o;s&&(o[s]||(o[s]={}),u=o[s]),(!u.define||!u.define.packaged)&&(n.original=u.define,u.define=n,u.define.packaged=!0),(!u.require||!u.require.packaged)&&(a.original=u.require,u.require=a,u.require.packaged=!0)}d(r)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(r,o,n){function i(a,c,l){Object.defineProperty(a,c,{value:l,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||i(String.prototype,"startsWith",function(a,c){return c=c||0,this.lastIndexOf(a,c)===c}),String.prototype.endsWith||i(String.prototype,"endsWith",function(a,c){var l=this;(c===void 0||c>l.length)&&(c=l.length),c-=a.length;var d=l.indexOf(a,c);return d!==-1&&d===c}),String.prototype.repeat||i(String.prototype,"repeat",function(a){for(var c="",l=this;a>0;)a&1&&(c+=l),(a>>=1)&&(l+=l);return c}),String.prototype.includes||i(String.prototype,"includes",function(a,c){return this.indexOf(a,c)!=-1}),Object.assign||(Object.assign=function(a){if(a==null)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),l=1;l<arguments.length;l++){var d=arguments[l];d!=null&&Object.keys(d).forEach(function(s){c[s]=d[s]})}return c}),Object.values||(Object.values=function(a){return Object.keys(a).map(function(c){return a[c]})}),Array.prototype.find||i(Array.prototype,"find",function(a){for(var c=this.length,l=arguments[1],d=0;d<c;d++){var s=this[d];if(a.call(l,s,d,this))return s}}),Array.prototype.findIndex||i(Array.prototype,"findIndex",function(a){for(var c=this.length,l=arguments[1],d=0;d<c;d++){var s=this[d];if(a.call(l,s,d,this))return d}}),Array.prototype.includes||i(Array.prototype,"includes",function(a,c){return this.indexOf(a,c)!=-1}),Array.prototype.fill||i(Array.prototype,"fill",function(a){for(var c=this,l=c.length>>>0,d=arguments[1],s=d>>0,u=s<0?Math.max(l+s,0):Math.min(s,l),h=arguments[2],f=h===void 0?l:h>>0,p=f<0?Math.max(l+f,0):Math.min(f,l);u<p;)c[u]=a,u++;return c}),Array.of||i(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(r,o,n){r("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(r,o,n){o.deepCopy=function i(a){if(typeof a!="object"||!a)return a;var c;if(Array.isArray(a)){c=[];for(var l=0;l<a.length;l++)c[l]=i(a[l]);return c}if(Object.prototype.toString.call(a)!=="[object Object]")return a;c={};for(var l in a)c[l]=i(a[l]);return c}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(r,o,n){o.last=function(c){return c[c.length-1]},o.stringReverse=function(c){return c.split("").reverse().join("")},o.stringRepeat=function(c,l){for(var d="";l>0;)l&1&&(d+=c),(l>>=1)&&(c+=c);return d};var i=/^\s\s*/,a=/\s\s*$/;o.stringTrimLeft=function(c){return c.replace(i,"")},o.stringTrimRight=function(c){return c.replace(a,"")},o.copyObject=function(c){var l={};for(var d in c)l[d]=c[d];return l},o.copyArray=function(c){for(var l=[],d=0,s=c.length;d<s;d++)c[d]&&typeof c[d]=="object"?l[d]=this.copyObject(c[d]):l[d]=c[d];return l},o.deepCopy=r("./deep_copy").deepCopy,o.arrayToMap=function(c){for(var l={},d=0;d<c.length;d++)l[c[d]]=1;return l},o.createMap=function(c){var l=Object.create(null);for(var d in c)l[d]=c[d];return l},o.arrayRemove=function(c,l){for(var d=0;d<=c.length;d++)l===c[d]&&c.splice(d,1)},o.escapeRegExp=function(c){return c.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},o.escapeHTML=function(c){return(""+c).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},o.getMatchOffsets=function(c,l){var d=[];return c.replace(l,function(s){d.push({offset:arguments[arguments.length-2],length:s.length})}),d},o.deferredCall=function(c){var l=null,d=function(){l=null,c()},s=function(u){return s.cancel(),l=setTimeout(d,u||0),s};return s.schedule=s,s.call=function(){return this.cancel(),c(),s},s.cancel=function(){return clearTimeout(l),l=null,s},s.isPending=function(){return l},s},o.delayedCall=function(c,l){var d=null,s=function(){d=null,c()},u=function(h){d==null&&(d=setTimeout(s,h||l))};return u.delay=function(h){d&&clearTimeout(d),d=setTimeout(s,h||l)},u.schedule=u,u.call=function(){this.cancel(),c()},u.cancel=function(){d&&clearTimeout(d),d=null},u.isPending=function(){return d},u},o.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},o.skipEmptyMatch=function(c,l,d){return d&&c.codePointAt(l)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(r,o,n){o.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},o.getOS=function(){return o.isMac?o.OS.MAC:o.isLinux?o.OS.LINUX:o.OS.WINDOWS};var i=typeof navigator=="object"?navigator:{},a=(/mac|win|linux/i.exec(i.platform)||["other"])[0].toLowerCase(),c=i.userAgent||"",l=i.appName||"";o.isWin=a=="win",o.isMac=a=="mac",o.isLinux=a=="linux",o.isIE=l=="Microsoft Internet Explorer"||l.indexOf("MSAppHost")>=0?parseFloat((c.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((c.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),o.isOldIE=o.isIE&&o.isIE<9,o.isGecko=o.isMozilla=c.match(/ Gecko\/\d+/),o.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",o.isWebKit=parseFloat(c.split("WebKit/")[1])||void 0,o.isChrome=parseFloat(c.split(" Chrome/")[1])||void 0,o.isSafari=parseFloat(c.split(" Safari/")[1])&&!o.isChrome||void 0,o.isEdge=parseFloat(c.split(" Edge/")[1])||void 0,o.isAIR=c.indexOf("AdobeAIR")>=0,o.isAndroid=c.indexOf("Android")>=0,o.isChromeOS=c.indexOf(" CrOS ")>=0,o.isIOS=/iPad|iPhone|iPod/.test(c)&&!window.MSStream,o.isIOS&&(o.isMac=!0),o.isMobile=o.isIOS||o.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(r,o,n){var i=r("./useragent"),a="http://www.w3.org/1999/xhtml";o.buildDom=function h(f,p,g){if(typeof f=="string"&&f){var v=document.createTextNode(f);return p&&p.appendChild(v),v}if(!Array.isArray(f))return f&&f.appendChild&&p&&p.appendChild(f),f;if(typeof f[0]!="string"||!f[0]){for(var m=[],y=0;y<f.length;y++){var C=h(f[y],p,g);C&&m.push(C)}return m}var _=document.createElement(f[0]),k=f[1],b=1;k&&typeof k=="object"&&!Array.isArray(k)&&(b=2);for(var y=b;y<f.length;y++)h(f[y],_,g);return b==2&&Object.keys(k).forEach(function(S){var T=k[S];S==="class"?_.className=Array.isArray(T)?T.join(" "):T:typeof T=="function"||S=="value"||S[0]=="$"?_[S]=T:S==="ref"?g&&(g[T]=_):S==="style"?typeof T=="string"&&(_.style.cssText=T):T!=null&&_.setAttribute(S,T)}),p&&p.appendChild(_),_},o.getDocumentHead=function(h){return h||(h=document),h.head||h.getElementsByTagName("head")[0]||h.documentElement},o.createElement=function(h,f){return document.createElementNS?document.createElementNS(f||a,h):document.createElement(h)},o.removeChildren=function(h){h.innerHTML=""},o.createTextNode=function(h,f){var p=f?f.ownerDocument:document;return p.createTextNode(h)},o.createFragment=function(h){var f=h?h.ownerDocument:document;return f.createDocumentFragment()},o.hasCssClass=function(h,f){var p=(h.className+"").split(/\s+/g);return p.indexOf(f)!==-1},o.addCssClass=function(h,f){o.hasCssClass(h,f)||(h.className+=" "+f)},o.removeCssClass=function(h,f){for(var p=h.className.split(/\s+/g);;){var g=p.indexOf(f);if(g==-1)break;p.splice(g,1)}h.className=p.join(" ")},o.toggleCssClass=function(h,f){for(var p=h.className.split(/\s+/g),g=!0;;){var v=p.indexOf(f);if(v==-1)break;g=!1,p.splice(v,1)}return g&&p.push(f),h.className=p.join(" "),g},o.setCssClass=function(h,f,p){p?o.addCssClass(h,f):o.removeCssClass(h,f)},o.hasCssString=function(h,f){var p=0,g;if(f=f||document,g=f.querySelectorAll("style")){for(;p<g.length;)if(g[p++].id===h)return!0}},o.removeElementById=function(h,f){f=f||document,f.getElementById(h)&&f.getElementById(h).remove()};var c,l=[];o.useStrictCSP=function(h){c=h,h==!1?d():l||(l=[])};function d(){var h=l;l=null,h&&h.forEach(function(f){s(f[0],f[1])})}function s(h,f,p){if(!(typeof document>"u")){if(l){if(p)d();else if(p===!1)return l.push([h,f])}if(!c){var g=p;!p||!p.getRootNode?g=document:(g=p.getRootNode(),(!g||g==p)&&(g=document));var v=g.ownerDocument||g;if(f&&o.hasCssString(f,g))return null;f&&(h+=`
   118  /*# sourceURL=ace/css/`+f+" */");var m=o.createElement("style");m.appendChild(v.createTextNode(h)),f&&(m.id=f),g==v&&(g=o.getDocumentHead(v)),g.insertBefore(m,g.firstChild)}}}if(o.importCssString=s,o.importCssStylsheet=function(h,f){o.buildDom(["link",{rel:"stylesheet",href:h}],o.getDocumentHead(f))},o.scrollbarWidth=function(h){var f=o.createElement("ace_inner");f.style.width="100%",f.style.minWidth="0px",f.style.height="200px",f.style.display="block";var p=o.createElement("ace_outer"),g=p.style;g.position="absolute",g.left="-10000px",g.overflow="hidden",g.width="200px",g.minWidth="0px",g.height="150px",g.display="block",p.appendChild(f);var v=h&&h.documentElement||document&&document.documentElement;if(!v)return 0;v.appendChild(p);var m=f.offsetWidth;g.overflow="scroll";var y=f.offsetWidth;return m===y&&(y=p.clientWidth),v.removeChild(p),m-y},o.computedStyle=function(h,f){return window.getComputedStyle(h,"")||{}},o.setStyle=function(h,f,p){h[f]!==p&&(h[f]=p)},o.HAS_CSS_ANIMATION=!1,o.HAS_CSS_TRANSFORMS=!1,o.HI_DPI=i.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,i.isChromeOS&&(o.HI_DPI=!1),typeof document<"u"){var u=document.createElement("div");o.HI_DPI&&u.style.transform!==void 0&&(o.HAS_CSS_TRANSFORMS=!0),!i.isEdge&&typeof u.style.animationName<"u"&&(o.HAS_CSS_ANIMATION=!0),u=null}o.HAS_CSS_TRANSFORMS?o.translate=function(h,f,p){h.style.transform="translate("+Math.round(f)+"px, "+Math.round(p)+"px)"}:o.translate=function(h,f,p){h.style.top=Math.round(p)+"px",h.style.left=Math.round(f)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(r,o,n){/*
   119  * based on code from:
   120  *
   121  * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
   122  * Available via the MIT or new BSD license.
   123  * see: http://github.com/jrburke/requirejs for details
   124  */var i=r("./dom");o.get=function(a,c){var l=new XMLHttpRequest;l.open("GET",a,!0),l.onreadystatechange=function(){l.readyState===4&&c(l.responseText)},l.send(null)},o.loadScript=function(a,c){var l=i.getDocumentHead(),d=document.createElement("script");d.src=a,l.appendChild(d),d.onload=d.onreadystatechange=function(s,u){(u||!d.readyState||d.readyState=="loaded"||d.readyState=="complete")&&(d=d.onload=d.onreadystatechange=null,u||c())}},o.qualifyURL=function(a){var c=document.createElement("a");return c.href=a,c.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(r,o,n){o.inherits=function(i,a){i.super_=a,i.prototype=Object.create(a.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}})},o.mixin=function(i,a){for(var c in a)i[c]=a[c];return i},o.implement=function(i,a){o.mixin(i,a)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(r,o,n){var i={},a=function(){this.propagationStopped=!0},c=function(){this.defaultPrevented=!0};i._emit=i._dispatchEvent=function(l,d){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[l]||[],u=this._defaultHandlers[l];if(!(!s.length&&!u)){(typeof d!="object"||!d)&&(d={}),d.type||(d.type=l),d.stopPropagation||(d.stopPropagation=a),d.preventDefault||(d.preventDefault=c),s=s.slice();for(var h=0;h<s.length&&(s[h](d,this),!d.propagationStopped);h++);if(u&&!d.defaultPrevented)return u(d,this)}},i._signal=function(l,d){var s=(this._eventRegistry||{})[l];if(s){s=s.slice();for(var u=0;u<s.length;u++)s[u](d,this)}},i.once=function(l,d){var s=this;if(this.on(l,function u(){s.off(l,u),d.apply(null,arguments)}),!d)return new Promise(function(u){d=u})},i.setDefaultHandler=function(l,d){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[l]){var u=s[l],h=s._disabled_[l];h||(s._disabled_[l]=h=[]),h.push(u);var f=h.indexOf(d);f!=-1&&h.splice(f,1)}s[l]=d},i.removeDefaultHandler=function(l,d){var s=this._defaultHandlers;if(s){var u=s._disabled_[l];if(s[l]==d)u&&this.setDefaultHandler(l,u.pop());else if(u){var h=u.indexOf(d);h!=-1&&u.splice(h,1)}}},i.on=i.addEventListener=function(l,d,s){this._eventRegistry=this._eventRegistry||{};var u=this._eventRegistry[l];return u||(u=this._eventRegistry[l]=[]),u.indexOf(d)==-1&&u[s?"unshift":"push"](d),d},i.off=i.removeListener=i.removeEventListener=function(l,d){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[l];if(s){var u=s.indexOf(d);u!==-1&&s.splice(u,1)}},i.removeAllListeners=function(l){l||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[l]=void 0),this._defaultHandlers&&(this._defaultHandlers[l]=void 0)},o.EventEmitter=i}),ace.define("ace/lib/report_error",["require","exports","module"],function(r,o,n){o.reportError=function(a,c){var l=new Error(a);l.data=c,typeof console=="object"&&console.error&&console.error(l),setTimeout(function(){throw l})}}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error"],function(r,o,n){"no use strict";var i=r("./oop"),a=r("./event_emitter").EventEmitter,c=r("./report_error").reportError,l={setOptions:function(h){Object.keys(h).forEach(function(f){this.setOption(f,h[f])},this)},getOptions:function(h){var f={};if(h)Array.isArray(h)||(f=h,h=Object.keys(f));else{var p=this.$options;h=Object.keys(p).filter(function(g){return!p[g].hidden})}return h.forEach(function(g){f[g]=this.getOption(g)},this),f},setOption:function(h,f){if(this["$"+h]!==f){var p=this.$options[h];if(!p)return d('misspelled option "'+h+'"');if(p.forwardTo)return this[p.forwardTo]&&this[p.forwardTo].setOption(h,f);p.handlesSet||(this["$"+h]=f),p&&p.set&&p.set.call(this,f)}},getOption:function(h){var f=this.$options[h];return f?f.forwardTo?this[f.forwardTo]&&this[f.forwardTo].getOption(h):f&&f.get?f.get.call(this):this["$"+h]:d('misspelled option "'+h+'"')}};function d(h){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var s,u=function(){function h(){this.$defaultOptions={}}return h.prototype.defineOptions=function(f,p,g){return f.$options||(this.$defaultOptions[p]=f.$options={}),Object.keys(g).forEach(function(v){var m=g[v];typeof m=="string"&&(m={forwardTo:m}),m.name||(m.name=v),f.$options[m.name]=m,"initialValue"in m&&(f["$"+m.name]=m.initialValue)}),i.implement(f,l),this},h.prototype.resetOptions=function(f){Object.keys(f.$options).forEach(function(p){var g=f.$options[p];"value"in g&&f.setOption(p,g.value)})},h.prototype.setDefaultValue=function(f,p,g){if(!f){for(f in this.$defaultOptions)if(this.$defaultOptions[f][p])break;if(!this.$defaultOptions[f][p])return!1}var v=this.$defaultOptions[f]||(this.$defaultOptions[f]={});v[p]&&(v.forwardTo?this.setDefaultValue(v.forwardTo,p,g):v[p].value=g)},h.prototype.setDefaultValues=function(f,p){Object.keys(p).forEach(function(g){this.setDefaultValue(f,g,p[g])},this)},h.prototype.setMessages=function(f){s=f},h.prototype.nls=function(f,p){s&&!s[f]&&d("No message found for '"+f+"' in the provided messages, falling back to default English message.");var g=s&&s[f]||f;return p&&(g=g.replace(/\$(\$|[\d]+)/g,function(v,m){return m=="$"?"$":p[m]})),g},h}();u.prototype.warn=d,u.prototype.reportError=c,i.implement(u.prototype,a),o.AppConfig=u}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(r,o,n){n.exports=`.ace-tm .ace_gutter {
   125    background: #f0f0f0;
   126    color: #333;
   127  }
   128  
   129  .ace-tm .ace_print-margin {
   130    width: 1px;
   131    background: #e8e8e8;
   132  }
   133  
   134  .ace-tm .ace_fold {
   135      background-color: #6B72E6;
   136  }
   137  
   138  .ace-tm {
   139    background-color: #FFFFFF;
   140    color: black;
   141  }
   142  
   143  .ace-tm .ace_cursor {
   144    color: black;
   145  }
   146          
   147  .ace-tm .ace_invisible {
   148    color: rgb(191, 191, 191);
   149  }
   150  
   151  .ace-tm .ace_storage,
   152  .ace-tm .ace_keyword {
   153    color: blue;
   154  }
   155  
   156  .ace-tm .ace_constant {
   157    color: rgb(197, 6, 11);
   158  }
   159  
   160  .ace-tm .ace_constant.ace_buildin {
   161    color: rgb(88, 72, 246);
   162  }
   163  
   164  .ace-tm .ace_constant.ace_language {
   165    color: rgb(88, 92, 246);
   166  }
   167  
   168  .ace-tm .ace_constant.ace_library {
   169    color: rgb(6, 150, 14);
   170  }
   171  
   172  .ace-tm .ace_invalid {
   173    background-color: rgba(255, 0, 0, 0.1);
   174    color: red;
   175  }
   176  
   177  .ace-tm .ace_support.ace_function {
   178    color: rgb(60, 76, 114);
   179  }
   180  
   181  .ace-tm .ace_support.ace_constant {
   182    color: rgb(6, 150, 14);
   183  }
   184  
   185  .ace-tm .ace_support.ace_type,
   186  .ace-tm .ace_support.ace_class {
   187    color: rgb(109, 121, 222);
   188  }
   189  
   190  .ace-tm .ace_keyword.ace_operator {
   191    color: rgb(104, 118, 135);
   192  }
   193  
   194  .ace-tm .ace_string {
   195    color: rgb(3, 106, 7);
   196  }
   197  
   198  .ace-tm .ace_comment {
   199    color: rgb(76, 136, 107);
   200  }
   201  
   202  .ace-tm .ace_comment.ace_doc {
   203    color: rgb(0, 102, 255);
   204  }
   205  
   206  .ace-tm .ace_comment.ace_doc.ace_tag {
   207    color: rgb(128, 159, 191);
   208  }
   209  
   210  .ace-tm .ace_constant.ace_numeric {
   211    color: rgb(0, 0, 205);
   212  }
   213  
   214  .ace-tm .ace_variable {
   215    color: rgb(49, 132, 149);
   216  }
   217  
   218  .ace-tm .ace_xml-pe {
   219    color: rgb(104, 104, 91);
   220  }
   221  
   222  .ace-tm .ace_entity.ace_name.ace_function {
   223    color: #0000A2;
   224  }
   225  
   226  
   227  .ace-tm .ace_heading {
   228    color: rgb(12, 7, 255);
   229  }
   230  
   231  .ace-tm .ace_list {
   232    color:rgb(185, 6, 144);
   233  }
   234  
   235  .ace-tm .ace_meta.ace_tag {
   236    color:rgb(0, 22, 142);
   237  }
   238  
   239  .ace-tm .ace_string.ace_regex {
   240    color: rgb(255, 0, 0)
   241  }
   242  
   243  .ace-tm .ace_marker-layer .ace_selection {
   244    background: rgb(181, 213, 255);
   245  }
   246  .ace-tm.ace_multiselect .ace_selection.ace_start {
   247    box-shadow: 0 0 3px 0px white;
   248  }
   249  .ace-tm .ace_marker-layer .ace_step {
   250    background: rgb(252, 255, 0);
   251  }
   252  
   253  .ace-tm .ace_marker-layer .ace_stack {
   254    background: rgb(164, 229, 101);
   255  }
   256  
   257  .ace-tm .ace_marker-layer .ace_bracket {
   258    margin: -1px 0 0 -1px;
   259    border: 1px solid rgb(192, 192, 192);
   260  }
   261  
   262  .ace-tm .ace_marker-layer .ace_active-line {
   263    background: rgba(0, 0, 0, 0.07);
   264  }
   265  
   266  .ace-tm .ace_gutter-active-line {
   267      background-color : #dcdcdc;
   268  }
   269  
   270  .ace-tm .ace_marker-layer .ace_selected-word {
   271    background: rgb(250, 250, 255);
   272    border: 1px solid rgb(200, 200, 250);
   273  }
   274  
   275  .ace-tm .ace_indent-guide {
   276    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
   277  }
   278  
   279  .ace-tm .ace_indent-guide-active {
   280    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
   281  }
   282  `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(r,o,n){o.isDark=!1,o.cssClass="ace-tm",o.cssText=r("./textmate-css"),o.$id="ace/theme/textmate";var i=r("../lib/dom");i.importCssString(o.cssText,o.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(r,o,n){"no use strict";var i=r("./lib/lang"),a=r("./lib/net"),c=r("./lib/dom"),l=r("./lib/app_config").AppConfig;n.exports=o=new l;var d={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};o.get=function(f){if(!d.hasOwnProperty(f))throw new Error("Unknown config key: "+f);return d[f]},o.set=function(f,p){if(d.hasOwnProperty(f))d[f]=p;else if(this.setDefaultValue("",f,p)==!1)throw new Error("Unknown config key: "+f);f=="useStrictCSP"&&c.useStrictCSP(p)},o.all=function(){return i.copyObject(d)},o.$modes={},o.moduleUrl=function(f,p){if(d.$moduleUrls[f])return d.$moduleUrls[f];var g=f.split("/");p=p||g[g.length-2]||"";var v=p=="snippets"?"/":"-",m=g[g.length-1];if(p=="worker"&&v=="-"){var y=new RegExp("^"+p+"[\\-_]|[\\-_]"+p+"$","g");m=m.replace(y,"")}(!m||m==p)&&g.length>1&&(m=g[g.length-2]);var C=d[p+"Path"];return C==null?C=d.basePath:v=="/"&&(p=v=""),C&&C.slice(-1)!="/"&&(C+="/"),C+p+v+m+this.get("suffix")},o.setModuleUrl=function(f,p){return d.$moduleUrls[f]=p};var s=function(f,p){if(f==="ace/theme/textmate"||f==="./theme/textmate")return p(null,r("./theme/textmate"));if(u)return u(f,p);console.error("loader is not configured")},u;o.setLoader=function(f){u=f},o.dynamicModules=Object.create(null),o.$loading={},o.$loaded={},o.loadModule=function(f,p){var g;if(Array.isArray(f))var v=f[0],m=f[1];else if(typeof f=="string")var m=f;var y=function(C){if(C&&!o.$loading[m])return p&&p(C);if(o.$loading[m]||(o.$loading[m]=[]),o.$loading[m].push(p),!(o.$loading[m].length>1)){var _=function(){s(m,function(k,b){b&&(o.$loaded[m]=b),o._emit("load.module",{name:m,module:b});var S=o.$loading[m];o.$loading[m]=null,S.forEach(function(T){T&&T(b)})})};if(!o.get("packaged"))return _();a.loadScript(o.moduleUrl(m,v),_),h()}};if(o.dynamicModules[m])o.dynamicModules[m]().then(function(C){C.default?y(C.default):y(C)});else{try{g=this.$require(m)}catch{}y(g||o.$loaded[m])}},o.$require=function(f){if(typeof n.require=="function"){var p="require";return n[p](f)}},o.setModuleLoader=function(f,p){o.dynamicModules[f]=p};var h=function(){!d.basePath&&!d.workerPath&&!d.modePath&&!d.themePath&&!Object.keys(d.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),h=function(){})};o.version="1.32.7"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(r,o,n){r("./lib/fixoldbrowsers");var i=r("./config");i.setLoader(function(d,s){r([d],function(u){s(null,u)})});var a=function(){return this||typeof window<"u"&&window}();n.exports=function(d){i.init=c,i.$require=r,d.require=r},c(!0);function c(d){if(!(!a||!a.document)){i.set("packaged",d||r.packaged||n.packaged||a.define&&(void 0).packaged);var s={},u="",h=document.currentScript||document._currentScript,f=h&&h.ownerDocument||document;h&&h.src&&(u=h.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var p=f.getElementsByTagName("script"),g=0;g<p.length;g++){var v=p[g],m=v.src||v.getAttribute("src");if(m){for(var y=v.attributes,C=0,_=y.length;C<_;C++){var k=y[C];k.name.indexOf("data-ace-")===0&&(s[l(k.name.replace(/^data-ace-/,""))]=k.value)}var b=m.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(u=b[1])}}u&&(s.base=s.base||u,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var S in s)typeof s[S]<"u"&&i.set(S,s[S])}}function l(d){return d.replace(/-(.)/g,function(s,u){return u.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(r,o,n){var i=function(){function a(c,l,d,s){this.start={row:c,column:l},this.end={row:d,column:s}}return a.prototype.isEqual=function(c){return this.start.row===c.start.row&&this.end.row===c.end.row&&this.start.column===c.start.column&&this.end.column===c.end.column},a.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},a.prototype.contains=function(c,l){return this.compare(c,l)==0},a.prototype.compareRange=function(c){var l,d=c.end,s=c.start;return l=this.compare(d.row,d.column),l==1?(l=this.compare(s.row,s.column),l==1?2:l==0?1:0):l==-1?-2:(l=this.compare(s.row,s.column),l==-1?-1:l==1?42:0)},a.prototype.comparePoint=function(c){return this.compare(c.row,c.column)},a.prototype.containsRange=function(c){return this.comparePoint(c.start)==0&&this.comparePoint(c.end)==0},a.prototype.intersects=function(c){var l=this.compareRange(c);return l==-1||l==0||l==1},a.prototype.isEnd=function(c,l){return this.end.row==c&&this.end.column==l},a.prototype.isStart=function(c,l){return this.start.row==c&&this.start.column==l},a.prototype.setStart=function(c,l){typeof c=="object"?(this.start.column=c.column,this.start.row=c.row):(this.start.row=c,this.start.column=l)},a.prototype.setEnd=function(c,l){typeof c=="object"?(this.end.column=c.column,this.end.row=c.row):(this.end.row=c,this.end.column=l)},a.prototype.inside=function(c,l){return this.compare(c,l)==0?!(this.isEnd(c,l)||this.isStart(c,l)):!1},a.prototype.insideStart=function(c,l){return this.compare(c,l)==0?!this.isEnd(c,l):!1},a.prototype.insideEnd=function(c,l){return this.compare(c,l)==0?!this.isStart(c,l):!1},a.prototype.compare=function(c,l){return!this.isMultiLine()&&c===this.start.row?l<this.start.column?-1:l>this.end.column?1:0:c<this.start.row?-1:c>this.end.row?1:this.start.row===c?l>=this.start.column?0:-1:this.end.row===c?l<=this.end.column?0:1:0},a.prototype.compareStart=function(c,l){return this.start.row==c&&this.start.column==l?-1:this.compare(c,l)},a.prototype.compareEnd=function(c,l){return this.end.row==c&&this.end.column==l?1:this.compare(c,l)},a.prototype.compareInside=function(c,l){return this.end.row==c&&this.end.column==l?1:this.start.row==c&&this.start.column==l?-1:this.compare(c,l)},a.prototype.clipRows=function(c,l){if(this.end.row>l)var d={row:l+1,column:0};else if(this.end.row<c)var d={row:c,column:0};if(this.start.row>l)var s={row:l+1,column:0};else if(this.start.row<c)var s={row:c,column:0};return a.fromPoints(s||this.start,d||this.end)},a.prototype.extend=function(c,l){var d=this.compare(c,l);if(d==0)return this;if(d==-1)var s={row:c,column:l};else var u={row:c,column:l};return a.fromPoints(s||this.start,u||this.end)},a.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},a.prototype.isMultiLine=function(){return this.start.row!==this.end.row},a.prototype.clone=function(){return a.fromPoints(this.start,this.end)},a.prototype.collapseRows=function(){return this.end.column==0?new a(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new a(this.start.row,0,this.end.row,0)},a.prototype.toScreenRange=function(c){var l=c.documentToScreenPosition(this.start),d=c.documentToScreenPosition(this.end);return new a(l.row,l.column,d.row,d.column)},a.prototype.moveBy=function(c,l){this.start.row+=c,this.start.column+=l,this.end.row+=c,this.end.column+=l},a}();i.fromPoints=function(a,c){return new i(a.row,a.column,c.row,c.column)},i.comparePoints=function(a,c){return a.row-c.row||a.column-c.column},o.Range=i}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(r,o,n){/*! @license
   283  	==========================================================================
   284  	SproutCore -- JavaScript Application Framework
   285  	copyright 2006-2009, Sprout Systems Inc., Apple Inc. and contributors.
   286  
   287  	Permission is hereby granted, free of charge, to any person obtaining a
   288  	copy of this software and associated documentation files (the "Software"),
   289  	to deal in the Software without restriction, including without limitation
   290  	the rights to use, copy, modify, merge, publish, distribute, sublicense,
   291  	and/or sell copies of the Software, and to permit persons to whom the
   292  	Software is furnished to do so, subject to the following conditions:
   293  
   294  	The above copyright notice and this permission notice shall be included in
   295  	all copies or substantial portions of the Software.
   296  
   297  	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   298  	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   299  	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   300  	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   301  	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
   302  	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
   303  	DEALINGS IN THE SOFTWARE.
   304  
   305  	SproutCore and the SproutCore logo are trademarks of Sprout Systems, Inc.
   306  
   307  	For more information about SproutCore, visit http://www.sproutcore.com
   308  
   309  
   310  	==========================================================================
   311  	@license */var i=r("./oop"),a=function(){var c={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};c.PRINTABLE_KEYS[173]="-";var l,d;for(d in c.FUNCTION_KEYS)l=c.FUNCTION_KEYS[d].toLowerCase(),c[l]=parseInt(d,10);for(d in c.PRINTABLE_KEYS)l=c.PRINTABLE_KEYS[d].toLowerCase(),c[l]=parseInt(d,10);return i.mixin(c,c.MODIFIER_KEYS),i.mixin(c,c.PRINTABLE_KEYS),i.mixin(c,c.FUNCTION_KEYS),c.enter=c.return,c.escape=c.esc,c.del=c.delete,function(){for(var s=["cmd","ctrl","alt","shift"],u=Math.pow(2,s.length);u--;)c.KEY_MODS[u]=s.filter(function(h){return u&c.KEY_MODS[h]}).join("-")+"-"}(),c.KEY_MODS[0]="",c.KEY_MODS[-1]="input-",c}();i.mixin(o,a),o.default=o,o.keyCodeToString=function(c){var l=a[c];return typeof l!="string"&&(l=String.fromCharCode(c)),l.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(r,o,n){var i=r("./keys"),a=r("./useragent"),c=null,l=0,d;function s(){d=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return d={passive:!1},!0}})}catch{}}function u(){return d==null&&s(),d}function h(C,_,k){this.elem=C,this.type=_,this.callback=k}h.prototype.destroy=function(){p(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var f=o.addListener=function(C,_,k,b){C.addEventListener(_,k,u()),b&&b.$toDestroy.push(new h(C,_,k))},p=o.removeListener=function(C,_,k){C.removeEventListener(_,k,u())};o.stopEvent=function(C){return o.stopPropagation(C),o.preventDefault(C),!1},o.stopPropagation=function(C){C.stopPropagation&&C.stopPropagation()},o.preventDefault=function(C){C.preventDefault&&C.preventDefault()},o.getButton=function(C){return C.type=="dblclick"?0:C.type=="contextmenu"||a.isMac&&C.ctrlKey&&!C.altKey&&!C.shiftKey?2:C.button},o.capture=function(C,_,k){var b=C&&C.ownerDocument||document;function S(T){_&&_(T),k&&k(T),p(b,"mousemove",_),p(b,"mouseup",S),p(b,"dragstart",S)}return f(b,"mousemove",_),f(b,"mouseup",S),f(b,"dragstart",S),S},o.addMouseWheelListener=function(C,_,k){f(C,"wheel",function(b){var S=.15,T=b.deltaX||0,L=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=T*S,b.wheelY=L*S;break;case b.DOM_DELTA_LINE:var I=15;b.wheelX=T*I,b.wheelY=L*I;break;case b.DOM_DELTA_PAGE:var A=150;b.wheelX=T*A,b.wheelY=L*A;break}_(b)},k)},o.addMultiMouseDownListener=function(C,_,k,b,S){var T=0,L,I,A,P={2:"dblclick",3:"tripleclick",4:"quadclick"};function D(E){if(o.getButton(E)!==0?T=0:E.detail>1?(T++,T>4&&(T=1)):T=1,a.isIE){var R=Math.abs(E.clientX-L)>5||Math.abs(E.clientY-I)>5;(!A||R)&&(T=1),A&&clearTimeout(A),A=setTimeout(function(){A=null},_[T-1]||600),T==1&&(L=E.clientX,I=E.clientY)}if(E._clicks=T,k[b]("mousedown",E),T>4)T=0;else if(T>1)return k[b](P[T],E)}Array.isArray(C)||(C=[C]),C.forEach(function(E){f(E,"mousedown",D,S)})};function g(C){return 0|(C.ctrlKey?1:0)|(C.altKey?2:0)|(C.shiftKey?4:0)|(C.metaKey?8:0)}o.getModifierString=function(C){return i.KEY_MODS[g(C)]};function v(C,_,k){var b=g(_);if(!a.isMac&&c){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(b|=8),c.altGr)if((3&b)!=3)c.altGr=0;else return;if(k===18||k===17){var S=_.location;if(k===17&&S===1)c[k]==1&&(l=_.timeStamp);else if(k===18&&b===3&&S===2){var T=_.timeStamp-l;T<50&&(c.altGr=!0)}}}if(k in i.MODIFIER_KEYS&&(k=-1),!(!b&&k===13&&_.location===3&&(C(_,b,-k),_.defaultPrevented))){if(a.isChromeOS&&b&8){if(C(_,b,k),_.defaultPrevented)return;b&=-9}return!b&&!(k in i.FUNCTION_KEYS)&&!(k in i.PRINTABLE_KEYS)?!1:C(_,b,k)}}o.addCommandKeyListener=function(C,_,k){var b=null;f(C,"keydown",function(S){c[S.keyCode]=(c[S.keyCode]||0)+1;var T=v(_,S,S.keyCode);return b=S.defaultPrevented,T},k),f(C,"keypress",function(S){b&&(S.ctrlKey||S.altKey||S.shiftKey||S.metaKey)&&(o.stopEvent(S),b=null)},k),f(C,"keyup",function(S){c[S.keyCode]=null},k),c||(m(),f(window,"focus",m))};function m(){c=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!a.isOldIE){var y=1;o.nextTick=function(C,_){_=_||window;var k="zero-timeout-message-"+y++,b=function(S){S.data==k&&(o.stopPropagation(S),p(_,"message",b),C())};f(_,"message",b),_.postMessage(k,"*")}}o.$idleBlocked=!1,o.onIdle=function(C,_){return setTimeout(function k(){o.$idleBlocked?setTimeout(k,100):C()},_)},o.$idleBlockId=null,o.blockIdle=function(C){o.$idleBlockId&&clearTimeout(o.$idleBlockId),o.$idleBlocked=!0,o.$idleBlockId=setTimeout(function(){o.$idleBlocked=!1},C||100)},o.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),o.nextFrame?o.nextFrame=o.nextFrame.bind(window):o.nextFrame=function(C){setTimeout(C,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(r,o,n){var i;n.exports={lineMode:!1,pasteCancelled:function(){return i&&i>Date.now()-50?!0:i=!1},cancel:function(){i=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(r,o,n){var i=r("../lib/event"),a=r("../config").nls,c=r("../lib/useragent"),l=r("../lib/dom"),d=r("../lib/lang"),s=r("../clipboard"),u=c.isChrome<18,h=c.isIE,f=c.isChrome>63,p=400,g=r("../lib/keys"),v=g.KEY_MODS,m=c.isIOS,y=m?/\s/:/\n/,C=c.isMobile,_;_=function(k,b){var S=l.createElement("textarea");S.className="ace_text-input",S.setAttribute("wrap","off"),S.setAttribute("autocorrect","off"),S.setAttribute("autocapitalize","off"),S.setAttribute("spellcheck","false"),S.style.opacity="0",k.insertBefore(S,k.firstChild);var T=!1,L=!1,I=!1,A=!1,P="";C||(S.style.fontSize="1px");var D=!1,E=!1,R="",$=0,N=0,M=0,O=Number.MAX_SAFE_INTEGER,j=Number.MIN_SAFE_INTEGER,z=0;try{var F=document.activeElement===S}catch{}this.setNumberOfExtraLines=function(ne){if(O=Number.MAX_SAFE_INTEGER,j=Number.MIN_SAFE_INTEGER,ne<0){z=0;return}z=ne},this.setAriaOptions=function(ne){if(ne.activeDescendant?(S.setAttribute("aria-haspopup","true"),S.setAttribute("aria-autocomplete",ne.inline?"both":"list"),S.setAttribute("aria-activedescendant",ne.activeDescendant)):(S.setAttribute("aria-haspopup","false"),S.setAttribute("aria-autocomplete","both"),S.removeAttribute("aria-activedescendant")),ne.role&&S.setAttribute("role",ne.role),ne.setLabel&&(S.setAttribute("aria-roledescription",a("editor")),b.session)){var pe=b.session.selection.cursor.row;S.setAttribute("aria-label",a("Cursor at row $0",[pe+1]))}},this.setAriaOptions({role:"textbox"}),i.addListener(S,"blur",function(ne){E||(b.onBlur(ne),F=!1)},b),i.addListener(S,"focus",function(ne){if(!E){if(F=!0,c.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(ne),c.isEdge?setTimeout(U):U()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),P||f||this.$focusScroll=="browser")return S.focus({preventScroll:!0});var ne=S.style.top;S.style.position="fixed",S.style.top="0px";try{var pe=S.getBoundingClientRect().top!=0}catch{return}var ue=[];if(pe)for(var _e=S.parentElement;_e&&_e.nodeType==1;)ue.push(_e),_e.setAttribute("ace_nocontext","true"),!_e.parentElement&&_e.getRootNode?_e=_e.getRootNode().host:_e=_e.parentElement;S.focus({preventScroll:!0}),pe&&ue.forEach(function(Be){Be.removeAttribute("ace_nocontext")}),setTimeout(function(){S.style.position="",S.style.top=="0px"&&(S.style.top=ne)},0)},this.blur=function(){S.blur()},this.isFocused=function(){return F},b.on("beforeEndOperation",function(){var ne=b.curOp,pe=ne&&ne.command&&ne.command.name;if(pe!="insertstring"){var ue=pe&&(ne.docChanged||ne.selectionChanged);I&&ue&&(R=S.value="",H()),U()}});var K=function(ne,pe){for(var ue=pe,_e=1;_e<=ne-O&&_e<2*z+1;_e++)ue+=b.session.getLine(ne-_e).length+1;return ue},U=m?function(ne){if(!(!F||T&&!ne||A)){ne||(ne="");var pe=`
   312   ab`+ne+`cde fg
   313  `;pe!=S.value&&(S.value=R=pe);var ue=4,_e=4+(ne.length||(b.selection.isEmpty()?0:1));($!=ue||N!=_e)&&S.setSelectionRange(ue,_e),$=ue,N=_e}}:function(){if(!(I||A)&&!(!F&&!ee)){I=!0;var ne=0,pe=0,ue="";if(b.session){var _e=b.selection,Be=_e.getRange(),Re=_e.cursor.row;Re===j+1?(O=j+1,j=O+2*z):Re===O-1?(j=O-1,O=j-2*z):(Re<O-1||Re>j+1)&&(O=Re>z?Re-z:0,j=Re>z?Re+z:2*z);for(var qe=[],je=O;je<=j;je++)qe.push(b.session.getLine(je));if(ue=qe.join(`
   314  `),ne=K(Be.start.row,Be.start.column),pe=K(Be.end.row,Be.end.column),Be.start.row<O){var Ve=b.session.getLine(O-1);ne=Be.start.row<O-1?0:ne,pe+=Ve.length+1,ue=Ve+`
   315  `+ue}else if(Be.end.row>j){var $e=b.session.getLine(j+1);pe=Be.end.row>j+1?$e.length:Be.end.column,pe+=ue.length+1,ue=ue+`
   316  `+$e}else C&&Re>0&&(ue=`
   317  `+ue,pe+=1,ne+=1);ue.length>p&&(ne<p&&pe<p?ue=ue.slice(0,p):(ue=`
   318  `,ne==pe?ne=pe=0:(ne=0,pe=1)));var Ke=ue+`
   319  
   320  `;Ke!=R&&(S.value=R=Ke,$=N=Ke.length)}if(ee&&($=S.selectionStart,N=S.selectionEnd),N!=pe||$!=ne||S.selectionEnd!=N)try{S.setSelectionRange(ne,pe),$=ne,N=pe}catch{}I=!1}};this.resetSelection=U,F&&b.onFocus();var Y=function(ne){return ne.selectionStart===0&&ne.selectionEnd>=R.length&&ne.value===R&&R&&ne.selectionEnd!==N},V=function(ne){I||(T?T=!1:Y(S)?(b.selectAll(),U()):C&&S.selectionStart!=$&&U())},q=null;this.setInputHandler=function(ne){q=ne},this.getInputHandler=function(){return q};var ee=!1,X=function(ne,pe){if(ee&&(ee=!1),L)return U(),ne&&b.onPaste(ne),L=!1,"";for(var ue=S.selectionStart,_e=S.selectionEnd,Be=$,Re=R.length-N,qe=ne,je=ne.length-ue,Ve=ne.length-_e,$e=0;Be>0&&R[$e]==ne[$e];)$e++,Be--;for(qe=qe.slice($e),$e=1;Re>0&&R.length-$e>$-1&&R[R.length-$e]==ne[ne.length-$e];)$e++,Re--;je-=$e-1,Ve-=$e-1;var Ke=qe.length-$e+1;if(Ke<0&&(Be=-Ke,Ke=0),qe=qe.slice(0,Ke),!pe&&!qe&&!je&&!Be&&!Re&&!Ve)return"";A=!0;var Ot=!1;return c.isAndroid&&qe==". "&&(qe="  ",Ot=!0),qe&&!Be&&!Re&&!je&&!Ve||D?b.onTextInput(qe):b.onTextInput(qe,{extendLeft:Be,extendRight:Re,restoreStart:je,restoreEnd:Ve}),A=!1,R=ne,$=ue,N=_e,M=Ve,Ot?`
   321  `:qe},ie=function(ne){if(I)return G();if(ne&&ne.inputType){if(ne.inputType=="historyUndo")return b.execCommand("undo");if(ne.inputType=="historyRedo")return b.execCommand("redo")}var pe=S.value,ue=X(pe,!0);(pe.length>p+100||y.test(ue)||C&&$<1&&$==N)&&U()},se=function(ne,pe,ue){var _e=ne.clipboardData||window.clipboardData;if(!(!_e||u)){var Be=h||ue?"Text":"text/plain";try{return pe?_e.setData(Be,pe)!==!1:_e.getData(Be)}catch(Re){if(!ue)return se(Re,pe,!0)}}},me=function(ne,pe){var ue=b.getCopyText();if(!ue)return i.preventDefault(ne);se(ne,ue)?(m&&(U(ue),T=ue,setTimeout(function(){T=!1},10)),pe?b.onCut():b.onCopy(),i.preventDefault(ne)):(T=!0,S.value=ue,S.select(),setTimeout(function(){T=!1,U(),pe?b.onCut():b.onCopy()}))},ve=function(ne){me(ne,!0)},Q=function(ne){me(ne,!1)},oe=function(ne){var pe=se(ne);s.pasteCancelled()||(typeof pe=="string"?(pe&&b.onPaste(pe,ne),c.isIE&&setTimeout(U),i.preventDefault(ne)):(S.value="",L=!0))};i.addCommandKeyListener(S,function(ne,pe,ue){if(!I)return b.onCommandKey(ne,pe,ue)},b),i.addListener(S,"select",V,b),i.addListener(S,"input",ie,b),i.addListener(S,"cut",ve,b),i.addListener(S,"copy",Q,b),i.addListener(S,"paste",oe,b),(!("oncut"in S)||!("oncopy"in S)||!("onpaste"in S))&&i.addListener(k,"keydown",function(ne){if(!(c.isMac&&!ne.metaKey||!ne.ctrlKey))switch(ne.keyCode){case 67:Q(ne);break;case 86:oe(ne);break;case 88:ve(ne);break}},b);var Z=function(ne){if(!(I||!b.onCompositionStart||b.$readOnly)&&(I={},!D)){ne.data&&(I.useTextareaForIME=!1),setTimeout(G,0),b._signal("compositionStart"),b.on("mousedown",te);var pe=b.getSelectionRange();pe.end.row=pe.start.row,pe.end.column=pe.start.column,I.markerRange=pe,I.selectionStart=$,b.onCompositionStart(I),I.useTextareaForIME?(R=S.value="",$=0,N=0):(S.msGetInputContext&&(I.context=S.msGetInputContext()),S.getInputContext&&(I.context=S.getInputContext()))}},G=function(){if(!(!I||!b.onCompositionUpdate||b.$readOnly)){if(D)return te();if(I.useTextareaForIME)b.onCompositionUpdate(S.value);else{var ne=S.value;X(ne),I.markerRange&&(I.context&&(I.markerRange.start.column=I.selectionStart=I.context.compositionStartOffset),I.markerRange.end.column=I.markerRange.start.column+N-I.selectionStart+M)}}},H=function(ne){!b.onCompositionEnd||b.$readOnly||(I=!1,b.onCompositionEnd(),b.off("mousedown",te),ne&&ie())};function te(){E=!0,S.blur(),S.focus(),E=!1}var ae=d.delayedCall(G,50).schedule.bind(null,null);function le(ne){ne.keyCode==27&&S.value.length<S.selectionStart&&(I||(R=S.value),$=N=-1,U()),ae()}i.addListener(S,"compositionstart",Z,b),i.addListener(S,"compositionupdate",G,b),i.addListener(S,"keyup",le,b),i.addListener(S,"keydown",ae,b),i.addListener(S,"compositionend",H,b),this.getElement=function(){return S},this.setCommandMode=function(ne){D=ne,S.readOnly=!1},this.setReadOnly=function(ne){D||(S.readOnly=ne)},this.setCopyWithEmptySelection=function(ne){},this.onContextMenu=function(ne){ee=!0,U(),b._emit("nativecontextmenu",{target:b,domEvent:ne}),this.moveToMouse(ne,!0)},this.moveToMouse=function(ne,pe){P||(P=S.style.cssText),S.style.cssText=(pe?"z-index:100000;":"")+(c.isIE?"opacity:0.1;":"")+"text-indent: -"+($+N)*b.renderer.characterWidth*.5+"px;";var ue=b.container.getBoundingClientRect(),_e=l.computedStyle(b.container),Be=ue.top+(parseInt(_e.borderTopWidth)||0),Re=ue.left+(parseInt(ue.borderLeftWidth)||0),qe=ue.bottom-Be-S.clientHeight-2,je=function(Ve){l.translate(S,Ve.clientX-Re-2,Math.min(Ve.clientY-Be-2,qe))};je(ne),ne.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(we),c.isWin&&i.capture(b.container,je,ce))},this.onContextMenuClose=ce;var we;function ce(){clearTimeout(we),we=setTimeout(function(){P&&(S.style.cssText=P,P=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var ye=function(ne){b.textInput.onContextMenu(ne),ce()};i.addListener(S,"mouseup",ye,b),i.addListener(S,"mousedown",function(ne){ne.preventDefault(),ce()},b),i.addListener(b.renderer.scroller,"contextmenu",ye,b),i.addListener(S,"contextmenu",ye,b),m&&Ae(k,b,S);function Ae(ne,pe,ue){var _e=null,Be=!1;ue.addEventListener("keydown",function(qe){_e&&clearTimeout(_e),Be=!0},!0),ue.addEventListener("keyup",function(qe){_e=setTimeout(function(){Be=!1},100)},!0);var Re=function(qe){if(document.activeElement===ue&&!(Be||I||pe.$mouseHandler.isMousePressed)&&!T){var je=ue.selectionStart,Ve=ue.selectionEnd,$e=null,Ke=0;if(je==0?$e=g.up:je==1?$e=g.home:Ve>N&&R[Ve]==`
   322  `?$e=g.end:je<$&&R[je-1]==" "?($e=g.left,Ke=v.option):je<$||je==$&&N!=$&&je==Ve?$e=g.left:Ve>N&&R.slice(0,Ve).split(`
   323  `).length>2?$e=g.down:Ve>N&&R[Ve-1]==" "?($e=g.right,Ke=v.option):(Ve>N||Ve==N&&N!=$&&je==Ve)&&($e=g.right),je!==Ve&&(Ke|=v.shift),$e){var Ot=pe.onCommandKey({},Ke,$e);if(!Ot&&pe.commands){$e=g.keyCodeToString($e);var Ft=pe.commands.findKeyCommand(Ke,$e);Ft&&pe.execCommand(Ft)}$=je,N=Ve,U("")}}};document.addEventListener("selectionchange",Re),pe.on("destroy",function(){document.removeEventListener("selectionchange",Re)})}this.destroy=function(){S.parentElement&&S.parentElement.removeChild(S)}},o.TextInput=_,o.$setUserAgentForTests=function(k,b){C=k,m=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(r,o,n){var i=r("../lib/useragent"),a=0,c=550,l=function(){function u(h){h.$clickSelection=null;var f=h.editor;f.setDefaultHandler("mousedown",this.onMouseDown.bind(h)),f.setDefaultHandler("dblclick",this.onDoubleClick.bind(h)),f.setDefaultHandler("tripleclick",this.onTripleClick.bind(h)),f.setDefaultHandler("quadclick",this.onQuadClick.bind(h)),f.setDefaultHandler("mousewheel",this.onMouseWheel.bind(h));var p=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];p.forEach(function(g){h[g]=this[g]},this),h.selectByLines=this.extendSelectionBy.bind(h,"getLineRange"),h.selectByWords=this.extendSelectionBy.bind(h,"getWordRange")}return u.prototype.onMouseDown=function(h){var f=h.inSelection(),p=h.getDocumentPosition();this.mousedownEvent=h;var g=this.editor,v=h.getButton();if(v!==0){var m=g.getSelectionRange(),y=m.isEmpty();(y||v==1)&&g.selection.moveToPosition(p),v==2&&(g.textInput.onContextMenu(h.domEvent),i.isMozilla||h.preventDefault());return}if(this.mousedownEvent.time=Date.now(),f&&!g.isFocused()&&(g.focus(),this.$focusTimeout&&!this.$clickSelection&&!g.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(h);return}return this.captureMouse(h),this.startSelect(p,h.domEvent._clicks>1),h.preventDefault()},u.prototype.startSelect=function(h,f){h=h||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var p=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?p.selection.selectToPosition(h):f||p.selection.moveToPosition(h),f||this.select(),p.setStyle("ace_selecting"),this.setState("select"))},u.prototype.select=function(){var h,f=this.editor,p=f.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var g=this.$clickSelection.comparePoint(p);if(g==-1)h=this.$clickSelection.end;else if(g==1)h=this.$clickSelection.start;else{var v=s(this.$clickSelection,p);p=v.cursor,h=v.anchor}f.selection.setSelectionAnchor(h.row,h.column)}f.selection.selectToPosition(p),f.renderer.scrollCursorIntoView()},u.prototype.extendSelectionBy=function(h){var f,p=this.editor,g=p.renderer.screenToTextCoordinates(this.x,this.y),v=p.selection[h](g.row,g.column);if(this.$clickSelection){var m=this.$clickSelection.comparePoint(v.start),y=this.$clickSelection.comparePoint(v.end);if(m==-1&&y<=0)f=this.$clickSelection.end,(v.end.row!=g.row||v.end.column!=g.column)&&(g=v.start);else if(y==1&&m>=0)f=this.$clickSelection.start,(v.start.row!=g.row||v.start.column!=g.column)&&(g=v.end);else if(m==-1&&y==1)g=v.end,f=v.start;else{var C=s(this.$clickSelection,g);g=C.cursor,f=C.anchor}p.selection.setSelectionAnchor(f.row,f.column)}p.selection.selectToPosition(g),p.renderer.scrollCursorIntoView()},u.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},u.prototype.focusWait=function(){var h=d(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),f=Date.now();(h>a||f-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},u.prototype.onDoubleClick=function(h){var f=h.getDocumentPosition(),p=this.editor,g=p.session,v=g.getBracketRange(f);v?(v.isEmpty()&&(v.start.column--,v.end.column++),this.setState("select")):(v=p.selection.getWordRange(f.row,f.column),this.setState("selectByWords")),this.$clickSelection=v,this.select()},u.prototype.onTripleClick=function(h){var f=h.getDocumentPosition(),p=this.editor;this.setState("selectByLines");var g=p.getSelectionRange();g.isMultiLine()&&g.contains(f.row,f.column)?(this.$clickSelection=p.selection.getLineRange(g.start.row),this.$clickSelection.end=p.selection.getLineRange(g.end.row).end):this.$clickSelection=p.selection.getLineRange(f.row),this.select()},u.prototype.onQuadClick=function(h){var f=this.editor;f.selectAll(),this.$clickSelection=f.getSelectionRange(),this.setState("selectAll")},u.prototype.onMouseWheel=function(h){if(!h.getAccelKey()){h.getShiftKey()&&h.wheelY&&!h.wheelX&&(h.wheelX=h.wheelY,h.wheelY=0);var f=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var p=this.$lastScroll,g=h.domEvent.timeStamp,v=g-p.t,m=v?h.wheelX/v:p.vx,y=v?h.wheelY/v:p.vy;v<c&&(m=(m+p.vx)/2,y=(y+p.vy)/2);var C=Math.abs(m/y),_=!1;if(C>=1&&f.renderer.isScrollableBy(h.wheelX*h.speed,0)&&(_=!0),C<=1&&f.renderer.isScrollableBy(0,h.wheelY*h.speed)&&(_=!0),_)p.allowed=g;else if(g-p.allowed<c){var k=Math.abs(m)<=1.5*Math.abs(p.vx)&&Math.abs(y)<=1.5*Math.abs(p.vy);k?(_=!0,p.allowed=g):p.allowed=0}if(p.t=g,p.vx=m,p.vy=y,_)return f.renderer.scrollBy(h.wheelX*h.speed,h.wheelY*h.speed),h.stop()}},u}();l.prototype.selectEnd=l.prototype.selectByLinesEnd,l.prototype.selectAllEnd=l.prototype.selectByLinesEnd,l.prototype.selectByWordsEnd=l.prototype.selectByLinesEnd,o.DefaultHandlers=l;function d(u,h,f,p){return Math.sqrt(Math.pow(f-u,2)+Math.pow(p-h,2))}function s(u,h){if(u.start.row==u.end.row)var f=2*h.column-u.start.column-u.end.column;else if(u.start.row==u.end.row-1&&!u.start.column&&!u.end.column)var f=h.column-4;else var f=2*h.row-u.start.row-u.end.row;return f<0?{cursor:u.start,anchor:u.end}:{cursor:u.end,anchor:u.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(r,o,n){o.preventParentScroll=function(a){a.stopPropagation();var c=a.currentTarget,l=c.scrollHeight>c.clientHeight;l||a.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(r,o,n){var i=this&&this.__extends||function(){var g=function(v,m){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(y[_]=C[_])},g(v,m)};return function(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");g(v,m);function y(){this.constructor=v}v.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}}(),a=this&&this.__values||function(g){var v=typeof Symbol=="function"&&Symbol.iterator,m=v&&g[v],y=0;if(m)return m.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&y>=g.length&&(g=void 0),{value:g&&g[y++],done:!g}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")},c=r("./lib/dom");r("./lib/event");var l=r("./range").Range,d=r("./lib/scroll").preventParentScroll,s="ace_tooltip",u=function(){function g(v){this.isOpen=!1,this.$element=null,this.$parentNode=v}return g.prototype.$init=function(){return this.$element=c.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},g.prototype.getElement=function(){return this.$element||this.$init()},g.prototype.setText=function(v){this.getElement().textContent=v},g.prototype.setHtml=function(v){this.getElement().innerHTML=v},g.prototype.setPosition=function(v,m){this.getElement().style.left=v+"px",this.getElement().style.top=m+"px"},g.prototype.setClassName=function(v){c.addCssClass(this.getElement(),v)},g.prototype.setTheme=function(v){this.$element.className=s+" "+(v.isDark?"ace_dark ":"")+(v.cssClass||"")},g.prototype.show=function(v,m,y){v!=null&&this.setText(v),m!=null&&y!=null&&this.setPosition(m,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},g.prototype.hide=function(v){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},g.prototype.getHeight=function(){return this.getElement().offsetHeight},g.prototype.getWidth=function(){return this.getElement().offsetWidth},g.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},g}(),h=function(){function g(){this.popups=[]}return g.prototype.addPopup=function(v){this.popups.push(v),this.updatePopups()},g.prototype.removePopup=function(v){var m=this.popups.indexOf(v);m!==-1&&(this.popups.splice(m,1),this.updatePopups())},g.prototype.updatePopups=function(){var v,m,y,C;this.popups.sort(function(P,D){return D.priority-P.priority});var _=[];try{for(var k=a(this.popups),b=k.next();!b.done;b=k.next()){var S=b.value,T=!0;try{for(var L=(y=void 0,a(_)),I=L.next();!I.done;I=L.next()){var A=I.value;if(this.doPopupsOverlap(A,S)){T=!1;break}}}catch(P){y={error:P}}finally{try{I&&!I.done&&(C=L.return)&&C.call(L)}finally{if(y)throw y.error}}T?_.push(S):S.hide()}}catch(P){v={error:P}}finally{try{b&&!b.done&&(m=k.return)&&m.call(k)}finally{if(v)throw v.error}}},g.prototype.doPopupsOverlap=function(v,m){var y=v.getElement().getBoundingClientRect(),C=m.getElement().getBoundingClientRect();return y.left<C.right&&y.right>C.left&&y.top<C.bottom&&y.bottom>C.top},g}(),f=new h;o.popupManager=f,o.Tooltip=u;var p=function(g){i(v,g);function v(m){m===void 0&&(m=document.body);var y=g.call(this,m)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var C=y.getElement();return C.style.whiteSpace="pre-wrap",C.style.pointerEvents="auto",C.addEventListener("mouseout",y.onMouseOut),C.tabIndex=-1,C.addEventListener("blur",(function(){C.contains(document.activeElement)||this.hide()}).bind(y)),C.addEventListener("wheel",d),y}return v.prototype.addToEditor=function(m){m.on("mousemove",this.onMouseMove),m.on("mousedown",this.hide),m.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},v.prototype.removeFromEditor=function(m){m.off("mousemove",this.onMouseMove),m.off("mousedown",this.hide),m.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},v.prototype.onMouseMove=function(m,y){this.lastEvent=m,this.lastT=Date.now();var C=y.$mouseHandler.isMousePressed;if(this.isOpen){var _=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(_.row,_.column)||C||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||C||(this.lastEvent=m,this.timeout=setTimeout(this.waitForHover,this.idleTime))},v.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var m=Date.now()-this.lastT;if(this.idleTime-m>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-m);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},v.prototype.isOutsideOfText=function(m){var y=m.editor,C=m.getDocumentPosition(),_=y.session.getLine(C.row);if(C.column==_.length){var k=y.renderer.pixelToScreenCoordinates(m.clientX,m.clientY),b=y.session.documentToScreenPosition(C.row,C.column);if(b.column!=k.column||b.row!=k.row)return!0}return!1},v.prototype.setDataProvider=function(m){this.$gatherData=m},v.prototype.showForRange=function(m,y,C,_){var k=10;if(!(_&&_!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=m.renderer;this.isOpen||(f.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(y,m.session),this.range=l.fromPoints(y.start,y.end);var S=b.textToScreenCoordinates(y.start.row,y.start.column),T=b.scroller.getBoundingClientRect();S.pageX<T.left&&(S.pageX=T.left);var L=this.getElement();L.innerHTML="",L.appendChild(C),L.style.maxHeight="",L.style.display="block";var I=L.clientHeight,A=L.clientWidth,P=window.innerHeight-S.pageY-b.lineHeight,D=!0;S.pageY-I<0&&S.pageY<P&&(D=!1),L.style.maxHeight=(D?S.pageY:P)-k+"px",L.style.top=D?"":S.pageY+b.lineHeight+"px",L.style.bottom=D?window.innerHeight-S.pageY+"px":"",L.style.left=Math.min(S.pageX,window.innerWidth-A-k)+"px"}},v.prototype.addMarker=function(m,y){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=y,this.marker=y&&y.addMarker(m,"ace_highlight-marker","text")},v.prototype.hide=function(m){!m&&document.activeElement==this.getElement()||m&&m.target&&(m.type!="keydown"||m.ctrlKey||m.metaKey)&&this.$element.contains(m.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,f.removePopup(this)))},v.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},v.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},v.prototype.onMouseOut=function(m){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!m.relatedTarget||this.getElement().contains(m.relatedTarget)||m&&m.currentTarget.contains(m.relatedTarget)||m.relatedTarget.classList.contains("ace_content")||this.hide())},v}(u);o.HoverTooltip=p}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(r,o,n){var i=this&&this.__extends||function(){var f=function(p,g){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(v[y]=m[y])},f(p,g)};return function(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");f(p,g);function v(){this.constructor=p}p.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}}(),a=this&&this.__values||function(f){var p=typeof Symbol=="function"&&Symbol.iterator,g=p&&f[p],v=0;if(g)return g.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&v>=f.length&&(f=void 0),{value:f&&f[v++],done:!f}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},c=r("../lib/dom"),l=r("../lib/event"),d=r("../tooltip").Tooltip,s=r("../config").nls;function u(f){var p=f.editor,g=p.renderer.$gutterLayer,v=new h(p);f.editor.setDefaultHandler("guttermousedown",function(b){if(!(!p.isFocused()||b.getButton()!=0)){var S=g.getRegion(b);if(S!="foldWidgets"){var T=b.getDocumentPosition().row,L=p.session.selection;if(b.getShiftKey())L.selectTo(T,0);else{if(b.domEvent.detail==2)return p.selectAll(),b.preventDefault();f.$clickSelection=p.selection.getLineRange(T)}return f.setState("selectByLines"),f.captureMouse(b),b.preventDefault()}}});var m,y;function C(){var b=y.getDocumentPosition().row,S=p.session.getLength();if(b==S){var T=p.renderer.pixelToScreenCoordinates(0,y.y).row,L=y.$pos;if(T>p.session.documentToScreenRow(L.row,L.column))return _()}if(v.showTooltip(b),!!v.isOpen)if(p.on("mousewheel",_),f.$tooltipFollowsMouse)k(y);else{var I=y.getGutterRow(),A=g.$lines.get(I);if(A){var P=A.element.querySelector(".ace_gutter_annotation"),D=P.getBoundingClientRect(),E=v.getElement().style;E.left=D.right+"px",E.top=D.bottom+"px"}else k(y)}}function _(){m&&(m=clearTimeout(m)),v.isOpen&&(v.hideTooltip(),p.off("mousewheel",_))}function k(b){v.setPosition(b.x,b.y)}f.editor.setDefaultHandler("guttermousemove",function(b){var S=b.domEvent.target||b.domEvent.srcElement;if(c.hasCssClass(S,"ace_fold-widget"))return _();v.isOpen&&f.$tooltipFollowsMouse&&k(b),y=b,!m&&(m=setTimeout(function(){m=null,y&&!f.isMousePressed?C():_()},50))}),l.addListener(p.renderer.$gutter,"mouseout",function(b){y=null,!(!v.isOpen||m)&&(m=setTimeout(function(){m=null,_()},50))},p),p.on("changeSession",_),p.on("input",_)}o.GutterHandler=u;var h=function(f){i(p,f);function p(g){var v=f.call(this,g.container)||this;return v.editor=g,v}return p.prototype.setPosition=function(g,v){var m=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,C=this.getWidth(),_=this.getHeight();g+=15,v+=15,g+C>m&&(g-=g+C-m),v+_>y&&(v-=20+_),d.prototype.setPosition.call(this,g,v)},Object.defineProperty(p,"annotationLabels",{get:function(){return{error:{singular:s("error"),plural:s("errors")},warning:{singular:s("warning"),plural:s("warnings")},info:{singular:s("information message"),plural:s("information messages")}}},enumerable:!1,configurable:!0}),p.prototype.showTooltip=function(g){var v=this.editor.renderer.$gutterLayer,m=v.$annotations[g],y;m?y={text:Array.from(m.text),type:Array.from(m.type)}:y={text:[],type:[]};var C=v.session.getFoldLine(g);if(C&&v.$showFoldedAnnotations){for(var _={error:[],warning:[],info:[]},k,b=g+1;b<=C.end.row;b++)if(v.$annotations[b])for(var S=0;S<v.$annotations[b].text.length;S++){var T=v.$annotations[b].type[S];if(_[T].push(v.$annotations[b].text[S]),T==="error"){k="error_fold";continue}if(T==="warning"){k="warning_fold";continue}}if(k==="error_fold"||k==="warning_fold"){var L="".concat(p.annotationsToSummaryString(_)," in folded code.");y.text.push(L),y.type.push(k)}}if(y.text.length===0)return this.hide();for(var I={error:[],warning:[],info:[]},A=v.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",b=0;b<y.text.length;b++){var P="<span class='ace_".concat(y.type[b]," ").concat(A,"' aria-label='").concat(p.annotationLabels[y.type[b].replace("_fold","")].singular,"' role=img> </span> ").concat(y.text[b]);I[y.type[b].replace("_fold","")].push(P)}var D=[].concat(I.error,I.warning,I.info).join("<br>");this.setHtml(D),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},p.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},p.annotationsToSummaryString=function(g){var v,m,y=[],C=["error","warning","info"];try{for(var _=a(C),k=_.next();!k.done;k=_.next()){var b=k.value;if(g[b].length){var S=g[b].length===1?p.annotationLabels[b].singular:p.annotationLabels[b].plural;y.push("".concat(g[b].length," ").concat(S))}}}catch(T){v={error:T}}finally{try{k&&!k.done&&(m=_.return)&&m.call(_)}finally{if(v)throw v.error}}return y.join(", ")},p}(d);o.GutterTooltip=h}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(r,o,n){var i=r("../lib/event"),a=r("../lib/useragent"),c=function(){function l(d,s){this.speed,this.wheelX,this.wheelY,this.domEvent=d,this.editor=s,this.x=this.clientX=d.clientX,this.y=this.clientY=d.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return l.prototype.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},l.prototype.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},l.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},l.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},l.prototype.getGutterRow=function(){var d=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(d,0),u=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-u},l.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var d=this.editor,s=d.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var u=this.getDocumentPosition();this.$inSelection=s.contains(u.row,u.column)}return this.$inSelection},l.prototype.getButton=function(){return i.getButton(this.domEvent)},l.prototype.getShiftKey=function(){return this.domEvent.shiftKey},l.prototype.getAccelKey=function(){return a.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},l}();o.MouseEvent=c}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(r,o,n){var i=r("../lib/dom"),a=r("../lib/event"),c=r("../lib/useragent"),l=200,d=200,s=5;function u(f){var p=f.editor,g=i.createElement("div");g.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",g.textContent=" ";var v=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];v.forEach(function(K){f[K]=this[K]},this),p.on("mousedown",this.onMouseDown.bind(f));var m=p.container,y,C,_,k,b,S,T=0,L,I,A,P,D;this.onDragStart=function(K){if(this.cancelDrag||!m.draggable){var U=this;return setTimeout(function(){U.startSelect(),U.captureMouse(K)},0),K.preventDefault()}b=p.getSelectionRange();var Y=K.dataTransfer;Y.effectAllowed=p.getReadOnly()?"copy":"copyMove",p.container.appendChild(g),Y.setDragImage&&Y.setDragImage(g,0,0),setTimeout(function(){p.container.removeChild(g)}),Y.clearData(),Y.setData("Text",p.session.getTextRange()),I=!0,this.setState("drag")},this.onDragEnd=function(K){if(m.draggable=!1,I=!1,this.setState(null),!p.getReadOnly()){var U=K.dataTransfer.dropEffect;!L&&U=="move"&&p.session.remove(p.getSelectionRange()),p.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(K){if(!(p.getReadOnly()||!z(K.dataTransfer)))return C=K.clientX,_=K.clientY,y||N(),T++,K.dataTransfer.dropEffect=L=F(K),a.preventDefault(K)},this.onDragOver=function(K){if(!(p.getReadOnly()||!z(K.dataTransfer)))return C=K.clientX,_=K.clientY,y||(N(),T++),O!==null&&(O=null),K.dataTransfer.dropEffect=L=F(K),a.preventDefault(K)},this.onDragLeave=function(K){if(T--,T<=0&&y)return M(),L=null,a.preventDefault(K)},this.onDrop=function(K){if(S){var U=K.dataTransfer;if(I)switch(L){case"move":b.contains(S.row,S.column)?b={start:S,end:S}:b=p.moveText(b,S);break;case"copy":b=p.moveText(b,S,!0);break}else{var Y=U.getData("Text");b={start:S,end:p.session.insert(S,Y)},p.focus(),L=null}return M(),a.preventDefault(K)}},a.addListener(m,"dragstart",this.onDragStart.bind(f),p),a.addListener(m,"dragend",this.onDragEnd.bind(f),p),a.addListener(m,"dragenter",this.onDragEnter.bind(f),p),a.addListener(m,"dragover",this.onDragOver.bind(f),p),a.addListener(m,"dragleave",this.onDragLeave.bind(f),p),a.addListener(m,"drop",this.onDrop.bind(f),p);function E(K,U){var Y=Date.now(),V=!U||K.row!=U.row,q=!U||K.column!=U.column;if(!P||V||q)p.moveCursorToPosition(K),P=Y,D={x:C,y:_};else{var ee=h(D.x,D.y,C,_);ee>s?P=null:Y-P>=d&&(p.renderer.scrollCursorIntoView(),P=null)}}function R(K,U){var Y=Date.now(),V=p.renderer.layerConfig.lineHeight,q=p.renderer.layerConfig.characterWidth,ee=p.renderer.scroller.getBoundingClientRect(),X={x:{left:C-ee.left,right:ee.right-C},y:{top:_-ee.top,bottom:ee.bottom-_}},ie=Math.min(X.x.left,X.x.right),se=Math.min(X.y.top,X.y.bottom),me={row:K.row,column:K.column};ie/q<=2&&(me.column+=X.x.left<X.x.right?-3:2),se/V<=1&&(me.row+=X.y.top<X.y.bottom?-1:1);var ve=K.row!=me.row,Q=K.column!=me.column,oe=!U||K.row!=U.row;ve||Q&&!oe?A?Y-A>=l&&p.renderer.scrollCursorIntoView(me):A=Y:A=null}function $(){var K=S;S=p.renderer.screenToTextCoordinates(C,_),E(S,K),R(S,K)}function N(){b=p.selection.toOrientedRange(),y=p.session.addMarker(b,"ace_selection",p.getSelectionStyle()),p.clearSelection(),p.isFocused()&&p.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),$(),k=setInterval($,20),T=0,a.addListener(document,"mousemove",j)}function M(){clearInterval(k),p.session.removeMarker(y),y=null,p.selection.fromOrientedRange(b),p.isFocused()&&!I&&p.$resetCursorStyle(),b=null,S=null,T=0,A=null,P=null,a.removeListener(document,"mousemove",j)}var O=null;function j(){O==null&&(O=setTimeout(function(){O!=null&&y&&M()},20))}function z(K){var U=K.types;return!U||Array.prototype.some.call(U,function(Y){return Y=="text/plain"||Y=="Text"})}function F(K){var U=["copy","copymove","all","uninitialized"],Y=["move","copymove","linkmove","all","uninitialized"],V=c.isMac?K.altKey:K.ctrlKey,q="uninitialized";try{q=K.dataTransfer.effectAllowed.toLowerCase()}catch{}var ee="none";return V&&U.indexOf(q)>=0?ee="copy":Y.indexOf(q)>=0?ee="move":U.indexOf(q)>=0&&(ee="copy"),ee}}(function(){this.dragWait=function(){var f=Date.now()-this.mousedownEvent.time;f>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var f=this.editor.container;f.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(f){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var f=this.editor,p=f.container;p.draggable=!0,f.renderer.$cursorLayer.setBlinking(!1),f.setStyle("ace_dragging");var g=c.isWin?"default":"move";f.renderer.setCursorStyle(g),this.setState("dragReady")},this.onMouseDrag=function(f){var p=this.editor.container;if(c.isIE&&this.state=="dragReady"){var g=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>3&&p.dragDrop()}if(this.state==="dragWait"){var g=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>0&&(p.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(f){if(this.$dragEnabled){this.mousedownEvent=f;var p=this.editor,g=f.inSelection(),v=f.getButton(),m=f.domEvent.detail||1;if(m===1&&v===0&&g){if(f.editor.inMultiSelectMode&&(f.getAccelKey()||f.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=f.domEvent.target||f.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),p.getDragDelay()){if(c.isWebKit){this.cancelDrag=!0;var C=p.container;C.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(f,this.onMouseDrag.bind(this)),f.defaultPrevented=!0}}}}).call(u.prototype);function h(f,p,g,v){return Math.sqrt(Math.pow(g-f,2)+Math.pow(v-p,2))}o.DragdropHandler=u}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(r,o,n){var i=r("./mouse_event").MouseEvent,a=r("../lib/event"),c=r("../lib/dom");o.addTouchListeners=function(l,d){var s="scroll",u,h,f,p,g,v,m=0,y,C=0,_=0,k=0,b,S;function T(){var E=window.navigator&&window.navigator.clipboard,R=!1,$=function(){var M=d.getCopyText(),O=d.session.getUndoManager().hasUndo();S.replaceChild(c.buildDom(R?["span",!M&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],M&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],M&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],E&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],O&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),S.firstChild)},N=function(M){var O=M.target.getAttribute("action");if(O=="more"||!R)return R=!R,$();O=="paste"?E.readText().then(function(j){d.execCommand(O,j)}):O&&((O=="cut"||O=="copy")&&(E?E.writeText(d.getCopyText()):document.execCommand("copy")),d.execCommand(O)),S.firstChild.style.display="none",R=!1,O!="openCommandPalette"&&d.focus()};S=c.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(M){s="menu",M.stopPropagation(),M.preventDefault(),d.textInput.focus()},ontouchend:function(M){M.stopPropagation(),M.preventDefault(),N(M)},onclick:N},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],d.container)}function L(){S||T();var E=d.selection.cursor,R=d.renderer.textToScreenCoordinates(E.row,E.column),$=d.renderer.textToScreenCoordinates(0,0).pageX,N=d.renderer.scrollLeft,M=d.container.getBoundingClientRect();S.style.top=R.pageY-M.top-3+"px",R.pageX-M.left<M.width-70?(S.style.left="",S.style.right="10px"):(S.style.right="",S.style.left=$+N-M.left+"px"),S.style.display="",S.firstChild.style.display="none",d.on("input",I)}function I(E){S&&(S.style.display="none"),d.off("input",I)}function A(){g=null,clearTimeout(g);var E=d.selection.getRange(),R=E.contains(y.row,y.column);(E.isEmpty()||!R)&&(d.selection.moveToPosition(y),d.selection.selectWord()),s="wait",L()}function P(){g=null,clearTimeout(g),d.selection.moveToPosition(y);var E=C>=2?d.selection.getLineRange(y.row):d.session.getBracketRange(y);E&&!E.isEmpty()?d.selection.setRange(E):d.selection.selectWord(),s="wait"}a.addListener(l,"contextmenu",function(E){if(b){var R=d.textInput.getElement();R.focus()}},d),a.addListener(l,"touchstart",function(E){var R=E.touches;if(g||R.length>1){clearTimeout(g),g=null,f=-1,s="zoom";return}b=d.$mouseHandler.isMousePressed=!0;var $=d.renderer.layerConfig.lineHeight,N=d.renderer.layerConfig.lineHeight,M=E.timeStamp;p=M;var O=R[0],j=O.clientX,z=O.clientY;Math.abs(u-j)+Math.abs(h-z)>$&&(f=-1),u=E.clientX=j,h=E.clientY=z,_=k=0;var F=new i(E,d);if(y=F.getDocumentPosition(),M-f<500&&R.length==1&&!m)C++,E.preventDefault(),E.button=0,P();else{C=0;var K=d.selection.cursor,U=d.selection.isEmpty()?K:d.selection.anchor,Y=d.renderer.$cursorLayer.getPixelPosition(K,!0),V=d.renderer.$cursorLayer.getPixelPosition(U,!0),q=d.renderer.scroller.getBoundingClientRect(),ee=d.renderer.layerConfig.offset,X=d.renderer.scrollLeft,ie=function(ve,Q){return ve=ve/N,Q=Q/$-.75,ve*ve+Q*Q};if(E.clientX<q.left){s="zoom";return}var se=ie(E.clientX-q.left-Y.left+X,E.clientY-q.top-Y.top+ee),me=ie(E.clientX-q.left-V.left+X,E.clientY-q.top-V.top+ee);se<3.5&&me<3.5&&(s=se>me?"cursor":"anchor"),me<3.5?s="anchor":se<3.5?s="cursor":s="scroll",g=setTimeout(A,450)}f=M},d),a.addListener(l,"touchend",function(E){b=d.$mouseHandler.isMousePressed=!1,v&&clearInterval(v),s=="zoom"?(s="",m=0):g?(d.selection.moveToPosition(y),m=0,L()):s=="scroll"?(D(),I()):L(),clearTimeout(g),g=null},d),a.addListener(l,"touchmove",function(E){g&&(clearTimeout(g),g=null);var R=E.touches;if(!(R.length>1||s=="zoom")){var $=R[0],N=u-$.clientX,M=h-$.clientY;if(s=="wait")if(N*N+M*M>4)s="cursor";else return E.preventDefault();u=$.clientX,h=$.clientY,E.clientX=$.clientX,E.clientY=$.clientY;var O=E.timeStamp,j=O-p;if(p=O,s=="scroll"){var z=new i(E,d);z.speed=1,z.wheelX=N,z.wheelY=M,10*Math.abs(N)<Math.abs(M)&&(N=0),10*Math.abs(M)<Math.abs(N)&&(M=0),j!=0&&(_=N/j,k=M/j),d._emit("mousewheel",z),z.propagationStopped||(_=k=0)}else{var F=new i(E,d),K=F.getDocumentPosition();s=="cursor"?d.selection.moveCursorToPosition(K):s=="anchor"&&d.selection.setSelectionAnchor(K.row,K.column),d.renderer.scrollCursorIntoView(K),E.preventDefault()}}},d);function D(){m+=60,v=setInterval(function(){m--<=0&&(clearInterval(v),v=null),Math.abs(_)<.01&&(_=0),Math.abs(k)<.01&&(k=0),m<20&&(_=.9*_),m<20&&(k=.9*k);var E=d.session.getScrollTop();d.renderer.scrollBy(10*_,10*k),E==d.session.getScrollTop()&&(m=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(r,o,n){var i=r("../lib/event"),a=r("../lib/useragent"),c=r("./default_handlers").DefaultHandlers,l=r("./default_gutter_handler").GutterHandler,d=r("./mouse_event").MouseEvent,s=r("./dragdrop_handler").DragdropHandler,u=r("./touch_handler").addTouchListeners,h=r("../config"),f=function(){function p(g){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var v=this;this.editor=g,new c(this),new l(this),new s(this);var m=function(_){var k=!document.hasFocus||!document.hasFocus()||!g.isFocused()&&document.activeElement==(g.textInput&&g.textInput.getElement());k&&window.focus(),g.focus(),setTimeout(function(){g.isFocused()||g.focus()})},y=g.renderer.getMouseEventTarget();i.addListener(y,"click",this.onMouseEvent.bind(this,"click"),g),i.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),g),i.addMultiMouseDownListener([y,g.renderer.scrollBarV&&g.renderer.scrollBarV.inner,g.renderer.scrollBarH&&g.renderer.scrollBarH.inner,g.textInput&&g.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",g),i.addMouseWheelListener(g.container,this.onMouseWheel.bind(this,"mousewheel"),g),u(g.container,g);var C=g.renderer.$gutter;i.addListener(C,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),g),i.addListener(C,"click",this.onMouseEvent.bind(this,"gutterclick"),g),i.addListener(C,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),g),i.addListener(C,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),g),i.addListener(y,"mousedown",m,g),i.addListener(C,"mousedown",m,g),a.isIE&&g.renderer.scrollBarV&&(i.addListener(g.renderer.scrollBarV.element,"mousedown",m,g),i.addListener(g.renderer.scrollBarH.element,"mousedown",m,g)),g.on("mousemove",function(_){if(!(v.state||v.$dragDelay||!v.$dragEnabled)){var k=g.renderer.screenToTextCoordinates(_.x,_.y),b=g.session.selection.getRange(),S=g.renderer;!b.isEmpty()&&b.insideStart(k.row,k.column)?S.setCursorStyle("default"):S.setCursorStyle("")}},g)}return p.prototype.onMouseEvent=function(g,v){this.editor.session&&this.editor._emit(g,new d(v,this.editor))},p.prototype.onMouseMove=function(g,v){var m=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!m||!m.length||this.editor._emit(g,new d(v,this.editor))},p.prototype.onMouseWheel=function(g,v){var m=new d(v,this.editor);m.speed=this.$scrollSpeed*2,m.wheelX=v.wheelX,m.wheelY=v.wheelY,this.editor._emit(g,m)},p.prototype.setState=function(g){this.state=g},p.prototype.captureMouse=function(g,v){this.x=g.x,this.y=g.y,this.isMousePressed=!0;var m=this.editor,y=this.editor.renderer;y.$isMousePressed=!0;var C=this,_=function(L){if(L){if(a.isWebKit&&!L.which&&C.releaseMouse)return C.releaseMouse();C.x=L.clientX,C.y=L.clientY,v&&v(L),C.mouseEvent=new d(L,C.editor),C.$mouseMoved=!0}},k=function(L){m.off("beforeEndOperation",S),clearInterval(T),m.session&&b(),C[C.state+"End"]&&C[C.state+"End"](L),C.state="",C.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),C.$onCaptureMouseMove=C.releaseMouse=null,L&&C.onMouseEvent("mouseup",L),m.endOperation()},b=function(){C[C.state]&&C[C.state](),C.$mouseMoved=!1};if(a.isOldIE&&g.domEvent.type=="dblclick")return setTimeout(function(){k(g)});var S=function(L){C.releaseMouse&&m.curOp.command.name&&m.curOp.selectionChanged&&(C[C.state+"End"]&&C[C.state+"End"](),C.state="",C.releaseMouse())};m.on("beforeEndOperation",S),m.startOperation({command:{name:"mouse"}}),C.$onCaptureMouseMove=_,C.releaseMouse=i.capture(this.editor.container,_,k);var T=setInterval(b,20)},p.prototype.cancelContextMenu=function(){var g=(function(v){v&&v.domEvent&&v.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",g),v&&v.domEvent&&i.stopEvent(v.domEvent))}).bind(this);setTimeout(g,10),this.editor.on("nativecontextmenu",g)},p.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},p}();f.prototype.releaseMouse=null,h.defineOptions(f.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:a.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),o.MouseHandler=f}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(r,o,n){var i=r("../lib/dom"),a=function(){function c(l){l.on("click",function(d){var s=d.getDocumentPosition(),u=l.session,h=u.getFoldAt(s.row,s.column,1);h&&(d.getAccelKey()?u.removeFold(h):u.expandFold(h),d.stop());var f=d.domEvent&&d.domEvent.target;f&&i.hasCssClass(f,"ace_inline_button")&&i.hasCssClass(f,"ace_toggle_wrap")&&(u.setOption("wrap",!u.getUseWrapMode()),l.renderer.scrollCursorIntoView())}),l.on("gutterclick",function(d){var s=l.renderer.$gutterLayer.getRegion(d);if(s=="foldWidgets"){var u=d.getDocumentPosition().row,h=l.session;h.foldWidgets&&h.foldWidgets[u]&&l.session.onFoldWidgetClick(u,d),l.isFocused()||l.focus(),d.stop()}}),l.on("gutterdblclick",function(d){var s=l.renderer.$gutterLayer.getRegion(d);if(s=="foldWidgets"){var u=d.getDocumentPosition().row,h=l.session,f=h.getParentFoldRangeData(u,!0),p=f.range||f.firstRange;if(p){u=p.start.row;var g=h.getFoldAt(u,h.getLine(u).length,1);g?h.removeFold(g):(h.addFold("...",p),l.renderer.scrollCursorIntoView({row:p.start.row,column:0}))}d.stop()}})}return c}();o.FoldHandler=a}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(r,o,n){var i=r("../lib/keys"),a=r("../lib/event"),c=function(){function l(d){this.$editor=d,this.$data={editor:d},this.$handlers=[],this.setDefaultHandler(d.commands)}return l.prototype.setDefaultHandler=function(d){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=d,this.addKeyboardHandler(d,0)},l.prototype.setKeyboardHandler=function(d){var s=this.$handlers;if(s[s.length-1]!=d){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(d,1)}},l.prototype.addKeyboardHandler=function(d,s){if(d){typeof d=="function"&&!d.handleKeyboard&&(d.handleKeyboard=d);var u=this.$handlers.indexOf(d);u!=-1&&this.$handlers.splice(u,1),s==null?this.$handlers.push(d):this.$handlers.splice(s,0,d),u==-1&&d.attach&&d.attach(this.$editor)}},l.prototype.removeKeyboardHandler=function(d){var s=this.$handlers.indexOf(d);return s==-1?!1:(this.$handlers.splice(s,1),d.detach&&d.detach(this.$editor),!0)},l.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},l.prototype.getStatusText=function(){var d=this.$data,s=d.editor;return this.$handlers.map(function(u){return u.getStatusText&&u.getStatusText(s,d)||""}).filter(Boolean).join(" ")},l.prototype.$callKeyboardHandlers=function(d,s,u,h){for(var f,p=!1,g=this.$editor.commands,v=this.$handlers.length;v--&&(f=this.$handlers[v].handleKeyboard(this.$data,d,s,u,h),!(!(!f||!f.command)&&(f.command=="null"?p=!0:p=g.exec(f.command,this.$editor,f.args,h),p&&h&&d!=-1&&f.passEvent!=!0&&f.command.passEvent!=!0&&a.stopEvent(h),p))););return!p&&d==-1&&(f={command:"insertstring"},p=g.exec("insertstring",this.$editor,s)),p&&this.$editor._signal&&this.$editor._signal("keyboardActivity",f),p},l.prototype.onCommandKey=function(d,s,u){var h=i.keyCodeToString(u);return this.$callKeyboardHandlers(s,h,u,d)},l.prototype.onTextInput=function(d){return this.$callKeyboardHandlers(-1,d)},l}();o.KeyBinding=c}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(r,o,n){var i=0,a=0,c=!1,l=!1,d=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],u=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h=0,f=1,p=0,g=1,v=2,m=3,y=4,C=5,_=6,k=7,b=8,S=9,T=10,L=11,I=12,A=13,P=14,D=15,E=16,R=17,$=18,N=[$,$,$,$,$,$,$,$,$,_,C,_,b,C,$,$,$,$,$,$,$,$,$,$,$,$,$,$,C,C,C,_,b,y,y,L,L,L,y,y,y,y,y,T,S,T,S,S,v,v,v,v,v,v,v,v,v,v,S,y,y,y,y,y,y,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,y,y,y,y,y,y,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,y,y,y,y,$,$,$,$,$,$,C,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,S,y,L,L,L,L,y,y,y,y,p,y,y,$,y,y,L,L,v,v,y,p,y,y,y,v,p,y,y,y,y,y],M=[b,b,b,b,b,b,b,b,b,b,b,$,$,$,p,g,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b,C,A,P,D,E,R,S,L,L,L,L,L,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,S,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,b];function O(K,U,Y,V){var q=i?u:s,ee=null,X=null,ie=null,se=0,me=null,ve=null,Q=-1,oe=null,Z=null,G=[];if(!V)for(oe=0,V=[];oe<Y;oe++)V[oe]=F(K[oe]);for(a=i,c=!1,l=!1,d=!1,Z=0;Z<Y;Z++){if(ee=se,G[Z]=X=z(K,V,G,Z),se=q[ee][X],me=se&240,se&=15,U[Z]=ie=q[se][5],me>0)if(me==16){for(oe=Q;oe<Z;oe++)U[oe]=1;Q=-1}else Q=-1;if(ve=q[se][6],ve)Q==-1&&(Q=Z);else if(Q>-1){for(oe=Q;oe<Z;oe++)U[oe]=ie;Q=-1}V[Z]==C&&(U[Z]=0),a|=ie}if(d){for(oe=0;oe<Y;oe++)if(V[oe]==_){U[oe]=i;for(var H=oe-1;H>=0&&V[H]==b;H--)U[H]=i}}}function j(K,U,Y){if(!(a<K)){if(K==1&&i==f&&!l){Y.reverse();return}for(var V=Y.length,q=0,ee,X,ie,se;q<V;){if(U[q]>=K){for(ee=q+1;ee<V&&U[ee]>=K;)ee++;for(X=q,ie=ee-1;X<ie;X++,ie--)se=Y[X],Y[X]=Y[ie],Y[ie]=se;q=ee}q++}}}function z(K,U,Y,V){var q=U[V],ee,X,ie,se;switch(q){case p:case g:c=!1;case y:case m:return q;case v:return c?m:v;case k:return c=!0,g;case b:return y;case S:return V<1||V+1>=U.length||(ee=Y[V-1])!=v&&ee!=m||(X=U[V+1])!=v&&X!=m?y:(c&&(X=m),X==ee?X:y);case T:return ee=V>0?Y[V-1]:C,ee==v&&V+1<U.length&&U[V+1]==v?v:y;case L:if(V>0&&Y[V-1]==v)return v;if(c)return y;for(se=V+1,ie=U.length;se<ie&&U[se]==L;)se++;return se<ie&&U[se]==v?v:y;case I:for(ie=U.length,se=V+1;se<ie&&U[se]==I;)se++;if(se<ie){var me=K[V],ve=me>=1425&&me<=2303||me==64286;if(ee=U[se],ve&&(ee==g||ee==k))return g}return V<1||(ee=U[V-1])==C?y:Y[V-1];case C:return c=!1,l=!0,i;case _:return d=!0,y;case A:case P:case E:case R:case D:c=!1;case $:return y}}function F(K){var U=K.charCodeAt(0),Y=U>>8;return Y==0?U>191?p:N[U]:Y==5?/[\u0591-\u05f4]/.test(K)?g:p:Y==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(K)?I:/[\u0660-\u0669\u066b-\u066c]/.test(K)?m:U==1642?L:/[\u06f0-\u06f9]/.test(K)?v:k:Y==32&&U<=8287?M[U&255]:Y==254&&U>=65136?k:y}o.L=p,o.R=g,o.EN=v,o.ON_R=3,o.AN=4,o.R_H=5,o.B=6,o.RLE=7,o.DOT="·",o.doBidiReorder=function(K,U,Y){if(K.length<2)return{};var V=K.split(""),q=new Array(V.length),ee=new Array(V.length),X=[];i=Y?f:h,O(V,X,V.length,U);for(var ie=0;ie<q.length;q[ie]=ie,ie++);j(2,X,q),j(1,X,q);for(var ie=0;ie<q.length-1;ie++)U[ie]===m?X[ie]=o.AN:X[ie]===g&&(U[ie]>k&&U[ie]<A||U[ie]===y||U[ie]===$)?X[ie]=o.ON_R:ie>0&&V[ie-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(V[ie])&&(X[ie-1]=X[ie]=o.R_H,ie++);V[V.length-1]===o.DOT&&(X[V.length-1]=o.B),V[0]==="‫"&&(X[0]=o.RLE);for(var ie=0;ie<q.length;ie++)ee[ie]=X[q[ie]];return{logicalFromVisual:q,bidiLevels:ee}},o.hasBidiCharacters=function(K,U){for(var Y=!1,V=0;V<K.length;V++)U[V]=F(K.charAt(V)),!Y&&(U[V]==g||U[V]==k||U[V]==m)&&(Y=!0);return Y},o.getVisualFromLogicalIdx=function(K,U){for(var Y=0;Y<U.logicalFromVisual.length;Y++)if(U.logicalFromVisual[Y]==K)return Y;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(r,o,n){var i=r("./lib/bidiutil"),a=r("./lib/lang"),c=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,l=function(){function d(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=i,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=c.test(s.getValue())}return d.prototype.isBidiRow=function(s,u,h){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(u,h),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},d.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&c.test(s.lines.join(`
   324  `))&&(this.seenBidi=!0,this.currentRow=null)},d.prototype.getDocumentRow=function(){var s=0,u=this.session.$screenRowCache;if(u.length){var h=this.session.$getRowCacheIndex(u,this.currentRow);h>=0&&(s=this.session.$docRowCache[h])}return s},d.prototype.getSplitIndex=function(){var s=0,u=this.session.$screenRowCache;if(u.length)for(var h,f=this.session.$getRowCacheIndex(u,this.currentRow);this.currentRow-s>0&&(h=this.session.$getRowCacheIndex(u,this.currentRow-s-1),h===f);)f=h,s++;else s=this.currentRow;return s},d.prototype.updateRowLine=function(s,u){s===void 0&&(s=this.getDocumentRow());var h=s===this.session.getLength()-1,f=h?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var p=this.session.$wrapData[s];p&&(u===void 0&&(u=this.getSplitIndex()),u>0&&p.length?(this.wrapIndent=p.indent,this.wrapOffset=this.wrapIndent*this.charWidths[i.L],this.line=u<p.length?this.line.substring(p[u-1],p[u]):this.line.substring(p[p.length-1])):this.line=this.line.substring(0,p[u]),u==p.length&&(this.line+=this.showInvisibles?f:i.DOT))}else this.line+=this.showInvisibles?f:i.DOT;var g=this.session,v=0,m;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,C){return y==="	"||g.isFullWidth(y.charCodeAt(0))?(m=y==="	"?g.getScreenTabSize(C+v):2,v+=m-1,a.stringRepeat(i.DOT,m)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==i.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},d.prototype.updateBidiMap=function(){var s=[];i.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=i.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},d.prototype.markAsDirty=function(){this.currentRow=null},d.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var u=this.characterWidth=s.$characterSize.width,h=s.$measureCharWidth("×”");this.charWidths[i.L]=this.charWidths[i.EN]=this.charWidths[i.ON_R]=u,this.charWidths[i.R]=this.charWidths[i.AN]=h,this.charWidths[i.R_H]=h*.45,this.charWidths[i.B]=this.charWidths[i.RLE]=0,this.currentRow=null}},d.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},d.prototype.setEolChar=function(s){this.EOL=s},d.prototype.setContentWidth=function(s){this.contentWidth=s},d.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},d.prototype.setRtlDirection=function(s,u){for(var h=s.getCursorPosition(),f=s.selection.getSelectionAnchor().row;f<=h.row;f++)!u&&s.session.getLine(f).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(f,0,1):u&&s.session.getLine(f).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:f},s.session.$bidiHandler.RLE)},d.prototype.getPosLeft=function(s){s-=this.wrapIndent;var u=this.line.charAt(0)===this.RLE?1:0,h=s>u?this.session.getOverwrite()?s:s-1:u,f=i.getVisualFromLogicalIdx(h,this.bidiMap),p=this.bidiMap.bidiLevels,g=0;!this.session.getOverwrite()&&s<=u&&p[f]%2!==0&&f++;for(var v=0;v<f;v++)g+=this.charWidths[p[v]];return!this.session.getOverwrite()&&s>u&&p[f]%2===0&&(g+=this.charWidths[p[f]]),this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(g+=this.rtlLineOffset),g},d.prototype.getSelections=function(s,u){var h=this.bidiMap,f=h.bidiLevels,p,g=[],v=0,m=Math.min(s,u)-this.wrapIndent,y=Math.max(s,u)-this.wrapIndent,C=!1,_=!1,k=0;this.wrapIndent&&(v+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,S=0;S<f.length;S++)b=h.logicalFromVisual[S],p=f[S],C=b>=m&&b<y,C&&!_?k=v:!C&&_&&g.push({left:k,width:v-k}),v+=this.charWidths[p],_=C;if(C&&S===f.length&&g.push({left:k,width:v-k}),this.isRtlDir)for(var T=0;T<g.length;T++)g[T].left+=this.rtlLineOffset;return g},d.prototype.offsetToCol=function(h){this.isRtlDir&&(h-=this.rtlLineOffset);var u=0,h=Math.max(h,0),f=0,p=0,g=this.bidiMap.bidiLevels,v=this.charWidths[g[p]];for(this.wrapIndent&&(h-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);h>f+v/2;){if(f+=v,p===g.length-1){v=0;break}v=this.charWidths[g[++p]]}return p>0&&g[p-1]%2!==0&&g[p]%2===0?(h<f&&p--,u=this.bidiMap.logicalFromVisual[p]):p>0&&g[p-1]%2===0&&g[p]%2!==0?u=1+(h>f?this.bidiMap.logicalFromVisual[p]:this.bidiMap.logicalFromVisual[p-1]):this.isRtlDir&&p===g.length-1&&v===0&&g[p-1]%2===0||!this.isRtlDir&&p===0&&g[p]%2!==0?u=1+this.bidiMap.logicalFromVisual[p]:(p>0&&g[p-1]%2!==0&&v!==0&&p--,u=this.bidiMap.logicalFromVisual[p]),u===0&&this.isRtlDir&&u++,u+this.wrapIndent},d}();o.BidiHandler=l}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(r,o,n){var i=r("./lib/oop"),a=r("./lib/lang"),c=r("./lib/event_emitter").EventEmitter,l=r("./range").Range,d=function(){function s(u){this.session=u,this.doc=u.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var h=this;this.cursor.on("change",function(f){h.$cursorChanged=!0,h.$silent||h._emit("changeCursor"),!h.$isEmpty&&!h.$silent&&h._emit("changeSelection"),!h.$keepDesiredColumnOnChange&&f.old.column!=f.value.column&&(h.$desiredColumn=null)}),this.anchor.on("change",function(){h.$anchorChanged=!0,!h.$isEmpty&&!h.$silent&&h._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(u,h){this.$isEmpty=!1,this.anchor.setPosition(u,h)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var u=this.anchor,h=this.lead;return u.row>h.row||u.row==h.row&&u.column>h.column},s.prototype.getRange=function(){var u=this.anchor,h=this.lead;return this.$isEmpty?l.fromPoints(h,h):this.isBackwards()?l.fromPoints(h,u):l.fromPoints(u,h)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(u,h){var f=h?u.end:u.start,p=h?u.start:u.end;this.$setSelection(f.row,f.column,p.row,p.column)},s.prototype.$setSelection=function(u,h,f,p){if(!this.$silent){var g=this.$isEmpty,v=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(u,h),this.cursor.setPosition(f,p),this.$isEmpty=!l.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||g!=this.$isEmpty||v)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(u){var h=this.lead;this.$isEmpty&&this.setSelectionAnchor(h.row,h.column),u.call(this)},s.prototype.selectTo=function(u,h){this.$moveSelection(function(){this.moveCursorTo(u,h)})},s.prototype.selectToPosition=function(u){this.$moveSelection(function(){this.moveCursorToPosition(u)})},s.prototype.moveTo=function(u,h){this.clearSelection(),this.moveCursorTo(u,h)},s.prototype.moveToPosition=function(u){this.clearSelection(),this.moveCursorToPosition(u)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(u,h){if(typeof h>"u"){var f=u||this.lead;u=f.row,h=f.column}return this.session.getWordRange(u,h)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var u=this.getCursor(),h=this.session.getAWordRange(u.row,u.column);this.setSelectionRange(h)},s.prototype.getLineRange=function(u,h){var f=typeof u=="number"?u:this.lead.row,p,g=this.session.getFoldLine(f);return g?(f=g.start.row,p=g.end.row):p=f,h===!0?new l(f,0,p,this.session.getLine(p).length):new l(f,0,p+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(u,h,f){var p=u.column,g=u.column+h;return f<0&&(p=u.column-h,g=u.column),this.session.isTabStop(u)&&this.doc.getLine(u.row).slice(p,g).split(" ").length-1==h},s.prototype.moveCursorLeft=function(){var u=this.lead.getPosition(),h;if(h=this.session.getFoldAt(u.row,u.column,-1))this.moveCursorTo(h.start.row,h.start.column);else if(u.column===0)u.row>0&&this.moveCursorTo(u.row-1,this.doc.getLine(u.row-1).length);else{var f=this.session.getTabSize();this.wouldMoveIntoSoftTab(u,f,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-f):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var u=this.lead.getPosition(),h;if(h=this.session.getFoldAt(u.row,u.column,1))this.moveCursorTo(h.end.row,h.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var f=this.session.getTabSize(),u=this.lead;this.wouldMoveIntoSoftTab(u,f,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,f):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var u=this.lead.row,h=this.lead.column,f=this.session.documentToScreenRow(u,h),p=this.session.screenToDocumentPosition(f,0),g=this.session.getDisplayLine(u,null,p.row,p.column),v=g.match(/^\s*/);v[0].length!=h&&!this.session.$useEmacsStyleLineStart&&(p.column+=v[0].length),this.moveCursorToPosition(p)},s.prototype.moveCursorLineEnd=function(){var u=this.lead,h=this.session.getDocumentLastRowColumnPosition(u.row,u.column);if(this.lead.column==h.column){var f=this.session.getLine(h.row);if(h.column==f.length){var p=f.search(/\s+$/);p>0&&(h.column=p)}}this.moveCursorTo(h.row,h.column)},s.prototype.moveCursorFileEnd=function(){var u=this.doc.getLength()-1,h=this.doc.getLine(u).length;this.moveCursorTo(u,h)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var u=this.lead.row,h=this.lead.column,f=this.doc.getLine(u),p=f.substring(h);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var g=this.session.getFoldAt(u,h,1);if(g){this.moveCursorTo(g.end.row,g.end.column);return}if(this.session.nonTokenRe.exec(p)&&(h+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,p=f.substring(h)),h>=f.length){this.moveCursorTo(u,f.length),this.moveCursorRight(),u<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(p)&&(h+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(u,h)},s.prototype.moveCursorLongWordLeft=function(){var u=this.lead.row,h=this.lead.column,f;if(f=this.session.getFoldAt(u,h,-1)){this.moveCursorTo(f.start.row,f.start.column);return}var p=this.session.getFoldStringAt(u,h,-1);p==null&&(p=this.doc.getLine(u).substring(0,h));var g=a.stringReverse(p);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(g)&&(h-=this.session.nonTokenRe.lastIndex,g=g.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),h<=0){this.moveCursorTo(u,0),this.moveCursorLeft(),u>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(g)&&(h-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(u,h)},s.prototype.$shortWordEndIndex=function(u){var h=0,f,p=/\s/,g=this.session.tokenRe;if(g.lastIndex=0,this.session.tokenRe.exec(u))h=this.session.tokenRe.lastIndex;else{for(;(f=u[h])&&p.test(f);)h++;if(h<1){for(g.lastIndex=0;(f=u[h])&&!g.test(f);)if(g.lastIndex=0,h++,p.test(f))if(h>2){h--;break}else{for(;(f=u[h])&&p.test(f);)h++;if(h>2)break}}}return g.lastIndex=0,h},s.prototype.moveCursorShortWordRight=function(){var u=this.lead.row,h=this.lead.column,f=this.doc.getLine(u),p=f.substring(h),g=this.session.getFoldAt(u,h,1);if(g)return this.moveCursorTo(g.end.row,g.end.column);if(h==f.length){var v=this.doc.getLength();do u++,p=this.doc.getLine(u);while(u<v&&/^\s*$/.test(p));/^\s+/.test(p)||(p=""),h=0}var m=this.$shortWordEndIndex(p);this.moveCursorTo(u,h+m)},s.prototype.moveCursorShortWordLeft=function(){var u=this.lead.row,h=this.lead.column,f;if(f=this.session.getFoldAt(u,h,-1))return this.moveCursorTo(f.start.row,f.start.column);var p=this.session.getLine(u).substring(0,h);if(h===0){do u--,p=this.doc.getLine(u);while(u>0&&/^\s*$/.test(p));h=p.length,/\s+$/.test(p)||(p="")}var g=a.stringReverse(p),v=this.$shortWordEndIndex(g);return this.moveCursorTo(u,h-v)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(u,h){var f=this.session.documentToScreenPosition(this.lead.row,this.lead.column),p;if(h===0&&(u!==0&&(this.session.$bidiHandler.isBidiRow(f.row,this.lead.row)?(p=this.session.$bidiHandler.getPosLeft(f.column),f.column=Math.round(p/this.session.$bidiHandler.charWidths[0])):p=f.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?f.column=this.$desiredColumn:this.$desiredColumn=f.column),u!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var g=this.session.lineWidgets[this.lead.row];u<0?u-=g.rowsAbove||0:u>0&&(u+=g.rowCount-(g.rowsAbove||0))}var v=this.session.screenToDocumentPosition(f.row+u,f.column,p);u!==0&&h===0&&v.row===this.lead.row&&(v.column,this.lead.column),this.moveCursorTo(v.row,v.column+h,h===0)},s.prototype.moveCursorToPosition=function(u){this.moveCursorTo(u.row,u.column)},s.prototype.moveCursorTo=function(u,h,f){var p=this.session.getFoldAt(u,h,1);p&&(u=p.start.row,h=p.start.column),this.$keepDesiredColumnOnChange=!0;var g=this.session.getLine(u);/[\uDC00-\uDFFF]/.test(g.charAt(h))&&g.charAt(h-1)&&(this.lead.row==u&&this.lead.column==h+1?h=h-1:h=h+1),this.lead.setPosition(u,h),this.$keepDesiredColumnOnChange=!1,f||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(u,h,f){var p=this.session.screenToDocumentPosition(u,h);this.moveCursorTo(p.row,p.column,f)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(u){this.setSelectionRange(u,u.cursor==u.start),this.$desiredColumn=u.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(u){var h=this.getRange();return u?(u.start.column=h.start.column,u.start.row=h.start.row,u.end.column=h.end.column,u.end.row=h.end.row):u=h,u.cursor=this.isBackwards()?u.start:u.end,u.desiredColumn=this.$desiredColumn,u},s.prototype.getRangeOfMovements=function(u){var h=this.getCursor();try{u(this);var f=this.getCursor();return l.fromPoints(h,f)}catch{return l.fromPoints(h,h)}finally{this.moveCursorToPosition(h)}},s.prototype.toJSON=function(){if(this.rangeCount)var u=this.ranges.map(function(h){var f=h.clone();return f.isBackwards=h.cursor==h.start,f});else{var u=this.getRange();u.isBackwards=this.isBackwards()}return u},s.prototype.fromJSON=function(u){if(u.start==null)if(this.rangeList&&u.length>1){this.toSingleRange(u[0]);for(var h=u.length;h--;){var f=l.fromPoints(u[h].start,u[h].end);u[h].isBackwards&&(f.cursor=f.start),this.addRange(f,!0)}return}else u=u[0];this.rangeList&&this.toSingleRange(u),this.setSelectionRange(u,u.isBackwards)},s.prototype.isEqual=function(u){if((u.length||this.rangeCount)&&u.length!=this.rangeCount)return!1;if(!u.length||!this.ranges)return this.getRange().isEqual(u);for(var h=this.ranges.length;h--;)if(!this.ranges[h].isEqual(u[h]))return!1;return!0},s}();d.prototype.setSelectionAnchor=d.prototype.setAnchor,d.prototype.getSelectionAnchor=d.prototype.getAnchor,d.prototype.setSelectionRange=d.prototype.setRange,i.implement(d.prototype,c),o.Selection=d}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(r,o,n){var i=r("./lib/report_error").reportError,a=2e3,c=function(){function l(d){this.splitRegex,this.states=d,this.regExps={},this.matchMappings={};for(var s in this.states){for(var u=this.states[s],h=[],f=0,p=this.matchMappings[s]={defaultToken:"text"},g="g",v=[],m=0;m<u.length;m++){var y=u[m];if(y.defaultToken&&(p.defaultToken=y.defaultToken),y.caseInsensitive&&g.indexOf("i")===-1&&(g+="i"),y.unicode&&g.indexOf("u")===-1&&(g+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var C=y.regex,_=new RegExp("(?:("+C+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||_==1?y.token=y.token[0]:_-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:_-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&(_>1?y.onMatch=this.$applyToken:y.onMatch=y.token),_>1&&(/\\\d/.test(y.regex)?C=y.regex.replace(/\\([0-9]+)/g,function(k,b){return"\\"+(parseInt(b,10)+f+1)}):(_=1,C=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&v.push(y)),p[f]=m,f+=_,h.push(C),y.onMatch||(y.onMatch=null)}}h.length||(p[0]=0,h.push("$")),v.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,g)},this),this.regExps[s]=new RegExp("("+h.join(")|(")+")|($)",g)}}return l.prototype.$setMaxTokenCount=function(d){a=d|0},l.prototype.$applyToken=function(d){var s=this.splitRegex.exec(d).slice(1),u=this.token.apply(this,s);if(typeof u=="string")return[{type:u,value:d}];for(var h=[],f=0,p=u.length;f<p;f++)s[f]&&(h[h.length]={type:u[f],value:s[f]});return h},l.prototype.$arrayTokens=function(d){if(!d)return[];var s=this.splitRegex.exec(d);if(!s)return"text";for(var u=[],h=this.tokenArray,f=0,p=h.length;f<p;f++)s[f+1]&&(u[u.length]={type:h[f],value:s[f+1]});return u},l.prototype.removeCapturingGroups=function(d){var s=d.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(u,h){return h?"(?:":u});return s},l.prototype.createSplitterRegexp=function(d,s){if(d.indexOf("(?=")!=-1){var u=0,h=!1,f={};d.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(p,g,v,m,y,C){return h?h=y!="]":y?h=!0:m?(u==f.stack&&(f.end=C+1,f.stack=-1),u--):v&&(u++,v.length!=1&&(f.stack=u,f.start=C)),p}),f.end!=null&&/^\)*$/.test(d.substr(f.end))&&(d=d.substring(0,f.start)+d.substr(f.end))}return d.charAt(0)!="^"&&(d="^"+d),d.charAt(d.length-1)!="$"&&(d+="$"),new RegExp(d,(s||"").replace("g",""))},l.prototype.getLineTokens=function(d,s){if(s&&typeof s!="string"){var u=s.slice(0);s=u[0],s==="#tmp"&&(u.shift(),s=u.shift())}else var u=[];var h=s||"start",f=this.states[h];f||(h="start",f=this.states[h]);var p=this.matchMappings[h],g=this.regExps[h];g.lastIndex=0;for(var v,m=[],y=0,C=0,_={type:null,value:""};v=g.exec(d);){var k=p.defaultToken,b=null,S=v[0],T=g.lastIndex;if(T-S.length>y){var L=d.substring(y,T-S.length);_.type==k?_.value+=L:(_.type&&m.push(_),_={type:k,value:L})}for(var I=0;I<v.length-2;I++)if(v[I+1]!==void 0){b=f[p[I]],b.onMatch?k=b.onMatch(S,h,u,d):k=b.token,b.next&&(typeof b.next=="string"?h=b.next:h=b.next(h,u),f=this.states[h],f||(this.reportError("state doesn't exist",h),h="start",f=this.states[h]),p=this.matchMappings[h],y=T,g=this.regExps[h],g.lastIndex=T),b.consumeLineEnd&&(y=T);break}if(S){if(typeof k=="string")(!b||b.merge!==!1)&&_.type===k?_.value+=S:(_.type&&m.push(_),_={type:k,value:S});else if(k){_.type&&m.push(_),_={type:null,value:""};for(var I=0;I<k.length;I++)m.push(k[I])}}if(y==d.length)break;if(y=T,C++>a){for(C>2*d.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:d});y<d.length;)_.type&&m.push(_),_={value:d.substring(y,y+=500),type:"overflow"};h="start",u=[];break}}return _.type&&m.push(_),u.length>1&&u[0]!==h&&u.unshift("#tmp",h),{tokens:m,state:u.length?u:h}},l}();c.prototype.reportError=i,o.Tokenizer=c}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(r,o,n){var i=r("../lib/deep_copy").deepCopy,a;a=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(d,s){if(!s){for(var u in d)this.$rules[u]=d[u];return}for(var u in d){for(var h=d[u],f=0;f<h.length;f++){var p=h[f];(p.next||p.onMatch)&&(typeof p.next=="string"&&p.next.indexOf(s)!==0&&(p.next=s+p.next),p.nextState&&p.nextState.indexOf(s)!==0&&(p.nextState=s+p.nextState))}this.$rules[s+u]=h}},this.getRules=function(){return this.$rules},this.embedRules=function(d,s,u,h,f){var p=typeof d=="function"?new d().getRules():d;if(h)for(var g=0;g<h.length;g++)h[g]=s+h[g];else{h=[];for(var v in p)h.push(s+v)}if(this.addRules(p,s),u)for(var m=Array.prototype[f?"push":"unshift"],g=0;g<h.length;g++)m.apply(this.$rules[h[g]],i(u));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var c=function(d,s){return(d!="start"||s.length)&&s.unshift(this.nextState,d),this.nextState},l=function(d,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var d=0,s=this.$rules;function u(h){var f=s[h];f.processed=!0;for(var p=0;p<f.length;p++){var g=f[p],v=null;Array.isArray(g)&&(v=g,g={}),!g.regex&&g.start&&(g.regex=g.start,g.next||(g.next=[]),g.next.push({defaultToken:g.token},{token:g.token+".end",regex:g.end||g.start,next:"pop"}),g.token=g.token+".start",g.push=!0);var m=g.next||g.push;if(m&&Array.isArray(m)){var y=g.stateName;y||(y=g.token,typeof y!="string"&&(y=y[0]||""),s[y]&&(y+=d++)),s[y]=m,g.next=y,u(y)}else m=="pop"&&(g.next=l);if(g.push&&(g.nextState=g.next||g.push,g.next=c,delete g.push),g.rules)for(var C in g.rules)s[C]?s[C].push&&s[C].push.apply(s[C],g.rules[C]):s[C]=g.rules[C];var _=typeof g=="string"?g:g.include;if(_&&(_==="$self"&&(_="start"),Array.isArray(_)?v=_.map(function(b){return s[b]}):v=s[_]),v){var k=[p,1].concat(v);g.noEscape&&(k=k.filter(function(b){return!b.next})),f.splice.apply(f,k),p--}g.keywordMap&&(g.token=this.createKeywordMapper(g.keywordMap,g.defaultToken||"text",g.caseInsensitive),delete g.defaultToken)}}Object.keys(s).forEach(u,this)},this.createKeywordMapper=function(d,s,u,h){var f=Object.create(null);return this.$keywordList=[],Object.keys(d).forEach(function(p){for(var g=d[p],v=g.split(h||"|"),m=v.length;m--;){var y=v[m];this.$keywordList.push(y),u&&(y=y.toLowerCase()),f[y]=p}},this),d=null,u?function(p){return f[p.toLowerCase()]||s}:function(p){return f[p]||s}},this.getKeywords=function(){return this.$keywords}}).call(a.prototype),o.TextHighlightRules=a}),ace.define("ace/mode/behaviour",["require","exports","module"],function(r,o,n){var i;i=function(){this.$behaviours={}},(function(){this.add=function(a,c,l){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[a]:this.$behaviours[a]={}}this.$behaviours[a][c]=l},this.addBehaviours=function(a){for(var c in a)for(var l in a[c])this.add(c,l,a[c][l])},this.remove=function(a){this.$behaviours&&this.$behaviours[a]&&delete this.$behaviours[a]},this.inherit=function(a,c){if(typeof a=="function")var l=new a().getBehaviours(c);else var l=a.getBehaviours(c);this.addBehaviours(l)},this.getBehaviours=function(a){if(a){for(var c={},l=0;l<a.length;l++)this.$behaviours[a[l]]&&(c[a[l]]=this.$behaviours[a[l]]);return c}else return this.$behaviours}}).call(i.prototype),o.Behaviour=i}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(r,o,n){var i=r("./range").Range,a=function(){function c(l,d,s){this.$session=l,this.$row=d,this.$rowTokens=l.getTokens(d);var u=l.getTokenAt(d,s);this.$tokenIndex=u?u.index:-1}return c.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},c.prototype.stepForward=function(){this.$tokenIndex+=1;for(var l;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,l||(l=this.$session.getLength()),this.$row>=l)return this.$row=l-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},c.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},c.prototype.getCurrentTokenRow=function(){return this.$row},c.prototype.getCurrentTokenColumn=function(){var l=this.$rowTokens,d=this.$tokenIndex,s=l[d].start;if(s!==void 0)return s;for(s=0;d>0;)d-=1,s+=l[d].value.length;return s},c.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},c.prototype.getCurrentTokenRange=function(){var l=this.$rowTokens[this.$tokenIndex],d=this.getCurrentTokenColumn();return new i(this.$row,d,this.$row,d+l.value.length)},c}();o.TokenIterator=a}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(r,o,n){var i=r("../../lib/oop"),a=r("../behaviour").Behaviour,c=r("../../token_iterator").TokenIterator,l=r("../../lib/lang"),d=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],u,h={},f={'"':'"',"'":"'"},p=function(m){var y=-1;if(m.multiSelect&&(y=m.selection.index,h.rangeCount!=m.multiSelect.rangeCount&&(h={rangeCount:m.multiSelect.rangeCount})),h[y])return u=h[y];u=h[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(m,y,C,_){var k=m.end.row-m.start.row;return{text:C+y+_,selection:[0,m.start.column+1,k,m.end.column+(k?0:1)]}},v;v=function(m){m=m||{},this.add("braces","insertion",function(y,C,_,k,b){var S=_.getCursorPosition(),T=k.doc.getLine(S.row);if(b=="{"){p(_);var L=_.getSelectionRange(),I=k.doc.getTextRange(L);if(I!==""&&I!=="{"&&_.getWrapBehavioursEnabled())return g(L,I,"{","}");if(v.isSaneInsertion(_,k))return/[\]\}\)]/.test(T[S.column])||_.inMultiSelectMode||m.braces?(v.recordAutoInsert(_,k,"}"),{text:"{}",selection:[1,1]}):(v.recordMaybeInsert(_,k,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){p(_);var A=T.substring(S.column,S.column+1);if(A=="}"){var P=k.$findOpeningBracket("}",{column:S.column+1,row:S.row});if(P!==null&&v.isAutoInsertedClosing(S,T,b))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
   325  `||b==`\r
   326  `){p(_);var D="";v.isMaybeInsertedClosing(S,T)&&(D=l.stringRepeat("}",u.maybeInsertedBrackets),v.clearMaybeInsertedClosing());var A=T.substring(S.column,S.column+1);if(A==="}"){var E=k.findMatchingBracket({row:S.row,column:S.column+1},"}");if(!E)return null;var R=this.$getIndent(k.getLine(E.row))}else if(D)var R=this.$getIndent(T);else{v.clearMaybeInsertedClosing();return}var $=R+k.getTabString();return{text:`
   327  `+$+`
   328  `+R+D,selection:[1,$.length,1,$.length]}}else v.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,C,_,k,b){var S=k.doc.getTextRange(b);if(!b.isMultiLine()&&S=="{"){p(_);var T=k.doc.getLine(b.start.row),L=T.substring(b.end.column,b.end.column+1);if(L=="}")return b.end.column++,b;u.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,C,_,k,b){if(b=="("){p(_);var S=_.getSelectionRange(),T=k.doc.getTextRange(S);if(T!==""&&_.getWrapBehavioursEnabled())return g(S,T,"(",")");if(v.isSaneInsertion(_,k))return v.recordAutoInsert(_,k,")"),{text:"()",selection:[1,1]}}else if(b==")"){p(_);var L=_.getCursorPosition(),I=k.doc.getLine(L.row),A=I.substring(L.column,L.column+1);if(A==")"){var P=k.$findOpeningBracket(")",{column:L.column+1,row:L.row});if(P!==null&&v.isAutoInsertedClosing(L,I,b))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,C,_,k,b){var S=k.doc.getTextRange(b);if(!b.isMultiLine()&&S=="("){p(_);var T=k.doc.getLine(b.start.row),L=T.substring(b.start.column+1,b.start.column+2);if(L==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,C,_,k,b){if(b=="["){p(_);var S=_.getSelectionRange(),T=k.doc.getTextRange(S);if(T!==""&&_.getWrapBehavioursEnabled())return g(S,T,"[","]");if(v.isSaneInsertion(_,k))return v.recordAutoInsert(_,k,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){p(_);var L=_.getCursorPosition(),I=k.doc.getLine(L.row),A=I.substring(L.column,L.column+1);if(A=="]"){var P=k.$findOpeningBracket("]",{column:L.column+1,row:L.row});if(P!==null&&v.isAutoInsertedClosing(L,I,b))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,C,_,k,b){var S=k.doc.getTextRange(b);if(!b.isMultiLine()&&S=="["){p(_);var T=k.doc.getLine(b.start.row),L=T.substring(b.start.column+1,b.start.column+2);if(L=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,C,_,k,b){var S=k.$mode.$quotes||f;if(b.length==1&&S[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;p(_);var T=b,L=_.getSelectionRange(),I=k.doc.getTextRange(L);if(I!==""&&(I.length!=1||!S[I])&&_.getWrapBehavioursEnabled())return g(L,I,T,T);if(!I){var A=_.getCursorPosition(),P=k.doc.getLine(A.row),D=P.substring(A.column-1,A.column),E=P.substring(A.column,A.column+1),R=k.getTokenAt(A.row,A.column),$=k.getTokenAt(A.row,A.column+1);if(D=="\\"&&R&&/escape/.test(R.type))return null;var N=R&&/string|escape/.test(R.type),M=!$||/string|escape/.test($.type),O;if(E==T)O=N!==M,O&&/string\.end/.test($.type)&&(O=!1);else{if(N&&!M||N&&M)return null;var j=k.$mode.tokenRe;j.lastIndex=0;var z=j.test(D);j.lastIndex=0;var F=j.test(E),K=k.$mode.$pairQuotesAfter,U=K&&K[T]&&K[T].test(D);if(!U&&z||F||E&&!/[\s;,.})\]\\]/.test(E))return null;var Y=P[A.column-2];if(D==T&&(Y==T||j.test(Y)))return null;O=!0}return{text:O?T+T:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,C,_,k,b){var S=k.$mode.$quotes||f,T=k.doc.getTextRange(b);if(!b.isMultiLine()&&S.hasOwnProperty(T)){p(_);var L=k.doc.getLine(b.start.row),I=L.substring(b.start.column+1,b.start.column+2);if(I==T)return b.end.column++,b}}),m.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,C,_,k,b){if(y==="doc-start"&&(b===`
   329  `||b===`\r
   330  `)&&_.selection.isEmpty()){var S=_.getCursorPosition(),T=k.doc.getLine(S.row),L=k.doc.getLine(S.row+1),I=this.$getIndent(T);if(/\s*\*/.test(L))return/^\s*\*/.test(T)?{text:b+I+"* ",selection:[1,3+I.length,1,3+I.length]}:{text:b+I+" * ",selection:[1,3+I.length,1,3+I.length]};if(/\/\*\*/.test(T.substring(0,S.column)))return{text:b+I+" * "+b+" "+I+"*/",selection:[1,4+I.length,1,4+I.length]}}})},v.isSaneInsertion=function(m,y){var C=m.getCursorPosition(),_=new c(y,C.row,C.column);if(!this.$matchTokenType(_.getCurrentToken()||"text",d)){if(/[)}\]]/.test(m.session.getLine(C.row)[C.column]))return!0;var k=new c(y,C.row,C.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",d))return!1}return _.stepForward(),_.getCurrentTokenRow()!==C.row||this.$matchTokenType(_.getCurrentToken()||"text",s)},v.$matchTokenType=function(m,y){return y.indexOf(m.type||m)>-1},v.recordAutoInsert=function(m,y,C){var _=m.getCursorPosition(),k=y.doc.getLine(_.row);this.isAutoInsertedClosing(_,k,u.autoInsertedLineEnd[0])||(u.autoInsertedBrackets=0),u.autoInsertedRow=_.row,u.autoInsertedLineEnd=C+k.substr(_.column),u.autoInsertedBrackets++},v.recordMaybeInsert=function(m,y,C){var _=m.getCursorPosition(),k=y.doc.getLine(_.row);this.isMaybeInsertedClosing(_,k)||(u.maybeInsertedBrackets=0),u.maybeInsertedRow=_.row,u.maybeInsertedLineStart=k.substr(0,_.column)+C,u.maybeInsertedLineEnd=k.substr(_.column),u.maybeInsertedBrackets++},v.isAutoInsertedClosing=function(m,y,C){return u.autoInsertedBrackets>0&&m.row===u.autoInsertedRow&&C===u.autoInsertedLineEnd[0]&&y.substr(m.column)===u.autoInsertedLineEnd},v.isMaybeInsertedClosing=function(m,y){return u.maybeInsertedBrackets>0&&m.row===u.maybeInsertedRow&&y.substr(m.column)===u.maybeInsertedLineEnd&&y.substr(0,m.column)==u.maybeInsertedLineStart},v.popAutoInsertedClosing=function(){u.autoInsertedLineEnd=u.autoInsertedLineEnd.substr(1),u.autoInsertedBrackets--},v.clearMaybeInsertedClosing=function(){u&&(u.maybeInsertedBrackets=0,u.maybeInsertedRow=-1)},i.inherits(v,a),o.CstyleBehaviour=v}),ace.define("ace/unicode",["require","exports","module"],function(r,o,n){for(var i=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],a=0,c=[],l=0;l<i.length;l+=2)c.push(a+=i[l]),i[l+1]&&c.push(45,a+=i[l+1]);o.wordChars=String.fromCharCode.apply(null,c)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(r,o,n){var i=r("../config"),a=r("../tokenizer").Tokenizer,c=r("./text_highlight_rules").TextHighlightRules,l=r("./behaviour/cstyle").CstyleBehaviour,d=r("../unicode"),s=r("../lib/lang"),u=r("../token_iterator").TokenIterator,h=r("../range").Range,f;f=function(){this.HighlightRules=c},(function(){this.$defaultBehaviour=new l,this.tokenRe=new RegExp("^["+d.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+d.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new a(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(p,g,v,m){var y=g.doc,C=!0,_=!0,k=1/0,b=g.getTabSize(),S=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var I=this.lineCommentStart.map(s.escapeRegExp).join("|"),T=this.lineCommentStart[0];else var I=s.escapeRegExp(this.lineCommentStart),T=this.lineCommentStart;I=new RegExp("^(\\s*)(?:"+I+") ?"),S=g.getUseSoftTabs();var D=function(F,K){var U=F.match(I);if(U){var Y=U[1].length,V=U[0].length;!$(F,Y,V)&&U[0][V-1]==" "&&V--,y.removeInLine(K,Y,V)}},R=T+" ",P=function(F,K){(!C||/\S/.test(F))&&($(F,k,k)?y.insertInLine({row:K,column:k},R):y.insertInLine({row:K,column:k},T))},E=function(F,K){return I.test(F)},$=function(F,K,U){for(var Y=0;K--&&F.charAt(K)==" ";)Y++;if(Y%b!=0)return!1;for(var Y=0;F.charAt(U++)==" ";)Y++;return b>2?Y%b!=b-1:Y%b==0}}else{if(!this.blockComment)return!1;var T=this.blockComment.start,L=this.blockComment.end,I=new RegExp("^(\\s*)(?:"+s.escapeRegExp(T)+")"),A=new RegExp("(?:"+s.escapeRegExp(L)+")\\s*$"),P=function(O,j){E(O,j)||(!C||/\S/.test(O))&&(y.insertInLine({row:j,column:O.length},L),y.insertInLine({row:j,column:k},T))},D=function(O,j){var z;(z=O.match(A))&&y.removeInLine(j,O.length-z[0].length,O.length),(z=O.match(I))&&y.removeInLine(j,z[1].length,z[0].length)},E=function(O,j){if(I.test(O))return!0;for(var z=g.getTokens(j),F=0;F<z.length;F++)if(z[F].type==="comment")return!0}}function N(O){for(var j=v;j<=m;j++)O(y.getLine(j),j)}var M=1/0;N(function(O,j){var z=O.search(/\S/);z!==-1?(z<k&&(k=z),_&&!E(O,j)&&(_=!1)):M>O.length&&(M=O.length)}),k==1/0&&(k=M,C=!1,_=!1),S&&k%b!=0&&(k=Math.floor(k/b)*b),N(_?D:P)},this.toggleBlockComment=function(p,g,v,m){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var C=new u(g,m.row,m.column),_=C.getCurrentToken();g.selection;var k=g.selection.toOrientedRange(),b,S;if(_&&/comment/.test(_.type)){for(var T,L;_&&/comment/.test(_.type);){var I=_.value.indexOf(y.start);if(I!=-1){var A=C.getCurrentTokenRow(),P=C.getCurrentTokenColumn()+I;T=new h(A,P,A,P+y.start.length);break}_=C.stepBackward()}for(var C=new u(g,m.row,m.column),_=C.getCurrentToken();_&&/comment/.test(_.type);){var I=_.value.indexOf(y.end);if(I!=-1){var A=C.getCurrentTokenRow(),P=C.getCurrentTokenColumn()+I;L=new h(A,P,A,P+y.end.length);break}_=C.stepForward()}L&&g.remove(L),T&&(g.remove(T),b=T.start.row,S=-y.start.length)}else S=y.start.length,b=v.start.row,g.insert(v.end,y.end),g.insert(v.start,y.start);k.start.row==b&&(k.start.column+=S),k.end.row==b&&(k.end.column+=S),g.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(p,g,v){return this.$getIndent(g)},this.checkOutdent=function(p,g,v){return!1},this.autoOutdent=function(p,g,v){},this.$getIndent=function(p){return p.match(/^\s*/)[0]},this.createWorker=function(p){return null},this.createModeDelegates=function(p){this.$embeds=[],this.$modes={};for(var g in p)if(p[g]){var v=p[g],m=v.prototype.$id,y=i.$modes[m];y||(i.$modes[m]=y=new v),i.$modes[g]||(i.$modes[g]=y),this.$embeds.push(g),this.$modes[g]=y}for(var C=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],_=function(b){(function(S){var T=C[b],L=S[T];S[C[b]]=function(){return this.$delegator(T,arguments,L)}})(k)},k=this,g=0;g<C.length;g++)_(g)},this.$delegator=function(p,g,v){var m=g[0]||"start";if(typeof m!="string"){if(Array.isArray(m[2])){var y=m[2][m[2].length-1],C=this.$modes[y];if(C)return C[p].apply(C,[m[1]].concat([].slice.call(g,1)))}m=m[0]||"start"}for(var _=0;_<this.$embeds.length;_++)if(this.$modes[this.$embeds[_]]){var k=m.split(this.$embeds[_]);if(!k[0]&&k[1]){g[0]=k[1];var C=this.$modes[this.$embeds[_]];return C[p].apply(C,g)}}var b=v.apply(this,g);return v?b:void 0},this.transformAction=function(p,g,v,m,y){if(this.$behaviour){var C=this.$behaviour.getBehaviours();for(var _ in C)if(C[_][g]){var k=C[_][g].apply(this,arguments);if(k)return k}}},this.getKeywords=function(p){if(!this.completionKeywords){var g=this.$tokenizer.rules,v=[];for(var m in g)for(var y=g[m],C=0,_=y.length;C<_;C++)if(typeof y[C].token=="string")/keyword|support|storage/.test(y[C].token)&&v.push(y[C].regex);else if(typeof y[C].token=="object"){for(var k=0,b=y[C].token.length;k<b;k++)if(/keyword|support|storage/.test(y[C].token[k])){var m=y[C].regex.match(/\(.+?\)/g)[k];v.push(m.substr(1,m.length-2))}}this.completionKeywords=v}return p?v.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(p,g,v,m){var y=this.$keywordList||this.$createKeywordList();return y.map(function(C){return{name:C,value:C,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(f.prototype),o.Mode=f}),ace.define("ace/apply_delta",["require","exports","module"],function(r,o,n){o.applyDelta=function(i,a,c){var l=a.start.row,d=a.start.column,s=i[l]||"";switch(a.action){case"insert":var u=a.lines;if(u.length===1)i[l]=s.substring(0,d)+a.lines[0]+s.substring(d);else{var h=[l,1].concat(a.lines);i.splice.apply(i,h),i[l]=s.substring(0,d)+i[l],i[l+a.lines.length-1]+=s.substring(d)}break;case"remove":var f=a.end.column,p=a.end.row;l===p?i[l]=s.substring(0,d)+s.substring(f):i.splice(l,p-l+1,s.substring(0,d)+i[p].substring(f));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(r,o,n){var i=r("./lib/oop"),a=r("./lib/event_emitter").EventEmitter,c=function(){function s(u,h,f){this.$onChange=this.onChange.bind(this),this.attach(u),typeof h!="number"?this.setPosition(h.row,h.column):this.setPosition(h,f)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(u){if(!(u.start.row==u.end.row&&u.start.row!=this.row)&&!(u.start.row>this.row)){var h=d(u,{row:this.row,column:this.column},this.$insertRight);this.setPosition(h.row,h.column,!0)}},s.prototype.setPosition=function(u,h,f){var p;if(f?p={row:u,column:h}:p=this.$clipPositionToDocument(u,h),!(this.row==p.row&&this.column==p.column)){var g={row:this.row,column:this.column};this.row=p.row,this.column=p.column,this._signal("change",{old:g,value:p})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(u){this.document=u||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(u,h){var f={};return u>=this.document.getLength()?(f.row=Math.max(0,this.document.getLength()-1),f.column=this.document.getLine(f.row).length):u<0?(f.row=0,f.column=0):(f.row=u,f.column=Math.min(this.document.getLine(f.row).length,Math.max(0,h))),h<0&&(f.column=0),f},s}();c.prototype.$insertRight=!1,i.implement(c.prototype,a);function l(s,u,h){var f=h?s.column<=u.column:s.column<u.column;return s.row<u.row||s.row==u.row&&f}function d(s,u,h){var f=s.action=="insert",p=(f?1:-1)*(s.end.row-s.start.row),g=(f?1:-1)*(s.end.column-s.start.column),v=s.start,m=f?v:s.end;return l(u,v,h)?{row:u.row,column:u.column}:l(m,u,!h)?{row:u.row+p,column:u.column+(u.row==m.row?g:0)}:{row:v.row,column:v.column}}o.Anchor=c}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(r,o,n){var i=r("./lib/oop"),a=r("./apply_delta").applyDelta,c=r("./lib/event_emitter").EventEmitter,l=r("./range").Range,d=r("./anchor").Anchor,s=function(){function u(h){this.$lines=[""],h.length===0?this.$lines=[""]:Array.isArray(h)?this.insertMergedLines({row:0,column:0},h):this.insert({row:0,column:0},h)}return u.prototype.setValue=function(h){var f=this.getLength()-1;this.remove(new l(0,0,f,this.getLine(f).length)),this.insert({row:0,column:0},h||"")},u.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},u.prototype.createAnchor=function(h,f){return new d(this,h,f)},u.prototype.$detectNewLine=function(h){var f=h.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=f?f[1]:`
   331  `,this._signal("changeNewLineMode")},u.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
   332  `;case"unix":return`
   333  `;default:return this.$autoNewLine||`
   334  `}},u.prototype.setNewLineMode=function(h){this.$newLineMode!==h&&(this.$newLineMode=h,this._signal("changeNewLineMode"))},u.prototype.getNewLineMode=function(){return this.$newLineMode},u.prototype.isNewLine=function(h){return h==`\r
   335  `||h=="\r"||h==`
   336  `},u.prototype.getLine=function(h){return this.$lines[h]||""},u.prototype.getLines=function(h,f){return this.$lines.slice(h,f+1)},u.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},u.prototype.getLength=function(){return this.$lines.length},u.prototype.getTextRange=function(h){return this.getLinesForRange(h).join(this.getNewLineCharacter())},u.prototype.getLinesForRange=function(h){var f;if(h.start.row===h.end.row)f=[this.getLine(h.start.row).substring(h.start.column,h.end.column)];else{f=this.getLines(h.start.row,h.end.row),f[0]=(f[0]||"").substring(h.start.column);var p=f.length-1;h.end.row-h.start.row==p&&(f[p]=f[p].substring(0,h.end.column))}return f},u.prototype.insertLines=function(h,f){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(h,f)},u.prototype.removeLines=function(h,f){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(h,f)},u.prototype.insertNewLine=function(h){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(h,["",""])},u.prototype.insert=function(h,f){return this.getLength()<=1&&this.$detectNewLine(f),this.insertMergedLines(h,this.$split(f))},u.prototype.insertInLine=function(h,f){var p=this.clippedPos(h.row,h.column),g=this.pos(h.row,h.column+f.length);return this.applyDelta({start:p,end:g,action:"insert",lines:[f]},!0),this.clonePos(g)},u.prototype.clippedPos=function(h,f){var p=this.getLength();h===void 0?h=p:h<0?h=0:h>=p&&(h=p-1,f=void 0);var g=this.getLine(h);return f==null&&(f=g.length),f=Math.min(Math.max(f,0),g.length),{row:h,column:f}},u.prototype.clonePos=function(h){return{row:h.row,column:h.column}},u.prototype.pos=function(h,f){return{row:h,column:f}},u.prototype.$clipPosition=function(h){var f=this.getLength();return h.row>=f?(h.row=Math.max(0,f-1),h.column=this.getLine(f-1).length):(h.row=Math.max(0,h.row),h.column=Math.min(Math.max(h.column,0),this.getLine(h.row).length)),h},u.prototype.insertFullLines=function(h,f){h=Math.min(Math.max(h,0),this.getLength());var p=0;h<this.getLength()?(f=f.concat([""]),p=0):(f=[""].concat(f),h--,p=this.$lines[h].length),this.insertMergedLines({row:h,column:p},f)},u.prototype.insertMergedLines=function(h,f){var p=this.clippedPos(h.row,h.column),g={row:p.row+f.length-1,column:(f.length==1?p.column:0)+f[f.length-1].length};return this.applyDelta({start:p,end:g,action:"insert",lines:f}),this.clonePos(g)},u.prototype.remove=function(h){var f=this.clippedPos(h.start.row,h.start.column),p=this.clippedPos(h.end.row,h.end.column);return this.applyDelta({start:f,end:p,action:"remove",lines:this.getLinesForRange({start:f,end:p})}),this.clonePos(f)},u.prototype.removeInLine=function(h,f,p){var g=this.clippedPos(h,f),v=this.clippedPos(h,p);return this.applyDelta({start:g,end:v,action:"remove",lines:this.getLinesForRange({start:g,end:v})},!0),this.clonePos(g)},u.prototype.removeFullLines=function(h,f){h=Math.min(Math.max(0,h),this.getLength()-1),f=Math.min(Math.max(0,f),this.getLength()-1);var p=f==this.getLength()-1&&h>0,g=f<this.getLength()-1,v=p?h-1:h,m=p?this.getLine(v).length:0,y=g?f+1:f,C=g?0:this.getLine(y).length,_=new l(v,m,y,C),k=this.$lines.slice(h,f+1);return this.applyDelta({start:_.start,end:_.end,action:"remove",lines:this.getLinesForRange(_)}),k},u.prototype.removeNewLine=function(h){h<this.getLength()-1&&h>=0&&this.applyDelta({start:this.pos(h,this.getLine(h).length),end:this.pos(h+1,0),action:"remove",lines:["",""]})},u.prototype.replace=function(h,f){if(h instanceof l||(h=l.fromPoints(h.start,h.end)),f.length===0&&h.isEmpty())return h.start;if(f==this.getTextRange(h))return h.end;this.remove(h);var p;return f?p=this.insert(h.start,f):p=h.start,p},u.prototype.applyDeltas=function(h){for(var f=0;f<h.length;f++)this.applyDelta(h[f])},u.prototype.revertDeltas=function(h){for(var f=h.length-1;f>=0;f--)this.revertDelta(h[f])},u.prototype.applyDelta=function(h,f){var p=h.action=="insert";(p?h.lines.length<=1&&!h.lines[0]:!l.comparePoints(h.start,h.end))||(p&&h.lines.length>2e4?this.$splitAndapplyLargeDelta(h,2e4):(a(this.$lines,h,f),this._signal("change",h)))},u.prototype.$safeApplyDelta=function(h){var f=this.$lines.length;(h.action=="remove"&&h.start.row<f&&h.end.row<f||h.action=="insert"&&h.start.row<=f)&&this.applyDelta(h)},u.prototype.$splitAndapplyLargeDelta=function(h,f){for(var p=h.lines,g=p.length-f+1,v=h.start.row,m=h.start.column,y=0,C=0;y<g;y=C){C+=f-1;var _=p.slice(y,C);_.push(""),this.applyDelta({start:this.pos(v+y,m),end:this.pos(v+C,m=0),action:h.action,lines:_},!0)}h.lines=p.slice(y),h.start.row=v+y,h.start.column=m,this.applyDelta(h,!0)},u.prototype.revertDelta=function(h){this.$safeApplyDelta({start:this.clonePos(h.start),end:this.clonePos(h.end),action:h.action=="insert"?"remove":"insert",lines:h.lines.slice()})},u.prototype.indexToPosition=function(h,f){for(var p=this.$lines||this.getAllLines(),g=this.getNewLineCharacter().length,v=f||0,m=p.length;v<m;v++)if(h-=p[v].length+g,h<0)return{row:v,column:h+p[v].length+g};return{row:m-1,column:h+p[m-1].length+g}},u.prototype.positionToIndex=function(h,f){for(var p=this.$lines||this.getAllLines(),g=this.getNewLineCharacter().length,v=0,m=Math.min(h.row,p.length),y=f||0;y<m;++y)v+=p[y].length+g;return v+h.column},u.prototype.$split=function(h){return h.split(/\r\n|\r|\n/)},u}();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",i.implement(s.prototype,c),o.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(r,o,n){var i=r("./lib/oop"),a=r("./lib/event_emitter").EventEmitter,c=function(){function l(d,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=d;var u=this;this.$worker=function(){if(u.running){for(var h=new Date,f=u.currentLine,p=-1,g=u.doc,v=f;u.lines[f];)f++;var m=g.getLength(),y=0;for(u.running=!1;f<m;){u.$tokenizeRow(f),p=f;do f++;while(u.lines[f]);if(y++,y%5===0&&new Date-h>20){u.running=setTimeout(u.$worker,20);break}}u.currentLine=f,p==-1&&(p=f),v<=p&&u.fireUpdateEvent(v,p)}}}return l.prototype.setTokenizer=function(d){this.tokenizer=d,this.lines=[],this.states=[],this.start(0)},l.prototype.setDocument=function(d){this.doc=d,this.lines=[],this.states=[],this.stop()},l.prototype.fireUpdateEvent=function(d,s){var u={first:d,last:s};this._signal("update",{data:u})},l.prototype.start=function(d){this.currentLine=Math.min(d||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},l.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},l.prototype.$updateOnChange=function(d){var s=d.start.row,u=d.end.row-s;if(u===0)this.lines[s]=null;else if(d.action=="remove")this.lines.splice(s,u+1,null),this.states.splice(s,u+1,null);else{var h=Array(u+1);h.unshift(s,1),this.lines.splice.apply(this.lines,h),this.states.splice.apply(this.states,h)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},l.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},l.prototype.getTokens=function(d){return this.lines[d]||this.$tokenizeRow(d)},l.prototype.getState=function(d){return this.currentLine==d&&this.$tokenizeRow(d),this.states[d]||"start"},l.prototype.$tokenizeRow=function(d){var s=this.doc.getLine(d),u=this.states[d-1],h=this.tokenizer.getLineTokens(s,u,d);return this.states[d]+""!=h.state+""?(this.states[d]=h.state,this.lines[d+1]=null,this.currentLine>d+1&&(this.currentLine=d+1)):this.currentLine==d&&(this.currentLine=d+1),this.lines[d]=h.tokens},l.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},l}();i.implement(c.prototype,a),o.BackgroundTokenizer=c}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(r,o,n){var i=r("./lib/lang"),a=r("./range").Range,c=function(){function l(d,s,u){u===void 0&&(u="text"),this.setRegexp(d),this.clazz=s,this.type=u}return l.prototype.setRegexp=function(d){this.regExp+""!=d+""&&(this.regExp=d,this.cache=[])},l.prototype.update=function(d,s,u,h){if(this.regExp)for(var f=h.firstRow,p=h.lastRow,g={},v=f;v<=p;v++){var m=this.cache[v];m==null&&(m=i.getMatchOffsets(u.getLine(v),this.regExp),m.length>this.MAX_RANGES&&(m=m.slice(0,this.MAX_RANGES)),m=m.map(function(k){return new a(v,k.offset,v,k.offset+k.length)}),this.cache[v]=m.length?m:"");for(var y=m.length;y--;){var C=m[y].toScreenRange(u),_=C.toString();g[_]||(g[_]=!0,s.drawSingleLineMarker(d,C,this.clazz,h))}}},l}();c.prototype.MAX_RANGES=500,o.SearchHighlight=c}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(r,o,n){var i=function(){function k(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return k.prototype.addSession=function(b){this.$session=b},k.prototype.add=function(b,S,T){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),S===!1||!this.lastDeltas){this.lastDeltas=[];var L=this.$undoStack.length;L>this.$undoDepth-1&&this.$undoStack.splice(0,L-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},k.prototype.addSelection=function(b,S){this.selections.push({value:b,rev:S||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(b,S){S==null&&(S=this.$rev+1);for(var T=this.$undoStack,L=T.length;L--;){var I=T[L][0];if(I.id<=b)break;I.id<S&&(I.ignore=!0)}this.lastDeltas=null},k.prototype.getSelection=function(b,S){for(var T=this.selections,L=T.length;L--;){var I=T[L];if(I.rev<b)return S&&(I=T[L+1]),I}},k.prototype.getRevision=function(){return this.$rev},k.prototype.getDeltas=function(b,S){S==null&&(S=this.$rev+1);for(var T=this.$undoStack,L=null,I=0,A=T.length;A--;){var P=T[A][0];if(P.id<S&&!L&&(L=A+1),P.id<=b){I=A+1;break}}return T.slice(I,L)},k.prototype.getChangedRanges=function(b,S){S==null&&(S=this.$rev+1)},k.prototype.getChangedLines=function(b,S){S==null&&(S=this.$rev+1)},k.prototype.undo=function(b,S){this.lastDeltas=null;var T=this.$undoStack;if(a(T,T.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var L=T.pop(),I=null;return L&&(I=b.undoChanges(L,S),this.$redoStack.push(L),this.$syncRev()),this.$fromUndo=!1,I}},k.prototype.redo=function(b,S){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var T=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);_(this.$redoStack,T),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(A){A[0].id=++this.$maxRev},this)}var L=this.$redoStack.pop(),I=null;return L&&(I=b.redoChanges(L,S),this.$undoStack.push(L),this.$syncRev()),this.$fromUndo=!1,I},k.prototype.$syncRev=function(){var b=this.$undoStack,S=b[b.length-1],T=S&&S[0].id||0;this.$redoStackBaseRev=T,this.$rev=T},k.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},k.prototype.canUndo=function(){return this.$undoStack.length>0},k.prototype.canRedo=function(){return this.$redoStack.length>0},k.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},k.prototype.isAtBookmark=function(){return this.$rev===this.mark},k.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},k.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},k.prototype.$prettyPrint=function(b){return b?u(b):u(this.$undoStack)+`
   337  ---
   338  `+u(this.$redoStack)},k}();i.prototype.hasUndo=i.prototype.canUndo,i.prototype.hasRedo=i.prototype.canRedo,i.prototype.isClean=i.prototype.isAtBookmark,i.prototype.markClean=i.prototype.bookmark;function a(k,b){for(var S=b;S--;){var T=k[S];if(T&&!T[0].ignore){for(;S<b-1;){var L=p(k[S],k[S+1]);k[S]=L[0],k[S+1]=L[1],S++}return!0}}}var c=r("./range").Range,l=c.comparePoints;c.comparePoints;function d(k){return{row:k.row,column:k.column}}function s(k){return{start:d(k.start),end:d(k.end),action:k.action,lines:k.lines.slice()}}function u(k){if(k=k||this,Array.isArray(k))return k.map(u).join(`
   339  `);var b="";return k.action?(b=k.action=="insert"?"+":"-",b+="["+k.lines+"]"):k.value&&(Array.isArray(k.value)?b=k.value.map(h).join(`
   340  `):b=h(k.value)),k.start&&(b+=h(k)),(k.id||k.rev)&&(b+="	("+(k.id||k.rev)+")"),b}function h(k){return k.start.row+":"+k.start.column+"=>"+k.end.row+":"+k.end.column}function f(k,b){var S=k.action=="insert",T=b.action=="insert";if(S&&T)if(l(b.start,k.end)>=0)v(b,k,-1);else if(l(b.start,k.start)<=0)v(k,b,1);else return null;else if(S&&!T)if(l(b.start,k.end)>=0)v(b,k,-1);else if(l(b.end,k.start)<=0)v(k,b,-1);else return null;else if(!S&&T)if(l(b.start,k.start)>=0)v(b,k,1);else if(l(b.start,k.start)<=0)v(k,b,1);else return null;else if(!S&&!T)if(l(b.start,k.start)>=0)v(b,k,1);else if(l(b.end,k.start)<=0)v(k,b,-1);else return null;return[b,k]}function p(k,b){for(var S=k.length;S--;)for(var T=0;T<b.length;T++)if(!f(k[S],b[T])){for(;S<k.length;){for(;T--;)f(b[T],k[S]);T=b.length,S++}return[k,b]}return k.selectionBefore=b.selectionBefore=k.selectionAfter=b.selectionAfter=null,[b,k]}function g(k,b){var S=k.action=="insert",T=b.action=="insert";if(S&&T)l(k.start,b.start)<0?v(b,k,1):v(k,b,1);else if(S&&!T)l(k.start,b.end)>=0?v(k,b,-1):(l(k.start,b.start)<=0||v(k,c.fromPoints(b.start,k.start),-1),v(b,k,1));else if(!S&&T)l(b.start,k.end)>=0?v(b,k,-1):(l(b.start,k.start)<=0||v(b,c.fromPoints(k.start,b.start),-1),v(k,b,1));else if(!S&&!T)if(l(b.start,k.end)>=0)v(b,k,-1);else if(l(b.end,k.start)<=0)v(k,b,-1);else{var L,I;return l(k.start,b.start)<0&&(L=k,k=y(k,b.start)),l(k.end,b.end)>0&&(I=y(k,b.end)),m(b.end,k.start,k.end,-1),I&&!L&&(k.lines=I.lines,k.start=I.start,k.end=I.end,I=k),[b,L,I].filter(Boolean)}return[b,k]}function v(k,b,S){m(k.start,b.start,b.end,S),m(k.end,b.start,b.end,S)}function m(k,b,S,T){k.row==(T==1?b:S).row&&(k.column+=T*(S.column-b.column)),k.row+=T*(S.row-b.row)}function y(k,b){var S=k.lines,T=k.end;k.end=d(b);var L=k.end.row-k.start.row,I=S.splice(L,S.length),A=L?b.column:b.column-k.start.column;S.push(I[0].substring(0,A)),I[0]=I[0].substr(A);var P={start:d(b),end:T,lines:I,action:k.action};return P}function C(k,b){b=s(b);for(var S=k.length;S--;){for(var T=k[S],L=0;L<T.length;L++){var I=T[L],A=g(I,b);b=A[0],A.length!=2&&(A[2]?(T.splice(L+1,1,A[1],A[2]),L++):A[1]||(T.splice(L,1),L--))}T.length||k.splice(S,1)}return k}function _(k,b){for(var S=0;S<b.length;S++)for(var T=b[S],L=0;L<T.length;L++)C(k,T[L])}o.UndoManager=i}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(r,o,n){var i=r("../range").Range,a=function(){function c(l,d){this.foldData=l,Array.isArray(d)?this.folds=d:d=this.folds=[d];var s=d[d.length-1];this.range=new i(d[0].start.row,d[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(u){u.setFoldLine(this)},this)}return c.prototype.shiftRow=function(l){this.start.row+=l,this.end.row+=l,this.folds.forEach(function(d){d.start.row+=l,d.end.row+=l})},c.prototype.addFold=function(l){if(l.sameRow){if(l.start.row<this.startRow||l.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(l),this.folds.sort(function(d,s){return-d.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(l.start.row,l.start.column)>0?(this.end.row=l.end.row,this.end.column=l.end.column):this.range.compareStart(l.end.row,l.end.column)<0&&(this.start.row=l.start.row,this.start.column=l.start.column)}else if(l.start.row==this.end.row)this.folds.push(l),this.end.row=l.end.row,this.end.column=l.end.column;else if(l.end.row==this.start.row)this.folds.unshift(l),this.start.row=l.start.row,this.start.column=l.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");l.foldLine=this},c.prototype.containsRow=function(l){return l>=this.start.row&&l<=this.end.row},c.prototype.walk=function(l,d,s){var u=0,h=this.folds,f,p,g,v=!0;d==null&&(d=this.end.row,s=this.end.column);for(var m=0;m<h.length;m++){if(f=h[m],p=f.range.compareStart(d,s),p==-1){l(null,d,s,u,v);return}if(g=l(null,f.start.row,f.start.column,u,v),g=!g&&l(f.placeholder,f.start.row,f.start.column,u),g||p===0)return;v=!f.sameRow,u=f.end.column}l(null,d,s,u,v)},c.prototype.getNextFoldTo=function(l,d){for(var s,u,h=0;h<this.folds.length;h++){if(s=this.folds[h],u=s.range.compareEnd(l,d),u==-1)return{fold:s,kind:"after"};if(u===0)return{fold:s,kind:"inside"}}return null},c.prototype.addRemoveChars=function(l,d,s){var u=this.getNextFoldTo(l,d),h,f;if(u){if(h=u.fold,u.kind=="inside"&&h.start.column!=d&&h.start.row!=l)window.console&&window.console.log(l,d,h);else if(h.start.row==l){f=this.folds;var p=f.indexOf(h);for(p===0&&(this.start.column+=s),p;p<f.length;p++){if(h=f[p],h.start.column+=s,!h.sameRow)return;h.end.column+=s}this.end.column+=s}}},c.prototype.split=function(l,d){var s=this.getNextFoldTo(l,d);if(!s||s.kind=="inside")return null;var u=s.fold,h=this.folds,f=this.foldData,p=h.indexOf(u),g=h[p-1];this.end.row=g.end.row,this.end.column=g.end.column,h=h.splice(p,h.length-p);var v=new c(f,h);return f.splice(f.indexOf(this)+1,0,v),v},c.prototype.merge=function(l){for(var d=l.folds,s=0;s<d.length;s++)this.addFold(d[s]);var u=this.foldData;u.splice(u.indexOf(l),1)},c.prototype.toString=function(){var l=[this.range.toString()+": ["];return this.folds.forEach(function(d){l.push("  "+d.toString())}),l.push("]"),l.join(`
   341  `)},c.prototype.idxToPosition=function(l){for(var d=0,s=0;s<this.folds.length;s++){var u=this.folds[s];if(l-=u.start.column-d,l<0)return{row:u.start.row,column:u.start.column+l};if(l-=u.placeholder.length,l<0)return u.start;d=u.end.column}return{row:this.end.row,column:this.end.column+l}},c}();o.FoldLine=a}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(r,o,n){var i=r("./range").Range,a=i.comparePoints,c=function(){function l(){this.ranges=[],this.$bias=1}return l.prototype.pointIndex=function(d,s,u){for(var h=this.ranges,f=u||0;f<h.length;f++){var p=h[f],g=a(d,p.end);if(!(g>0)){var v=a(d,p.start);return g===0?s&&v!==0?-f-2:f:v>0||v===0&&!s?f:-f-1}}return-f-1},l.prototype.add=function(d){var s=!d.isEmpty(),u=this.pointIndex(d.start,s);u<0&&(u=-u-1);var h=this.pointIndex(d.end,s,u);return h<0?h=-h-1:h++,this.ranges.splice(u,h-u,d)},l.prototype.addList=function(d){for(var s=[],u=d.length;u--;)s.push.apply(s,this.add(d[u]));return s},l.prototype.substractPoint=function(d){var s=this.pointIndex(d);if(s>=0)return this.ranges.splice(s,1)},l.prototype.merge=function(){var d=[],s=this.ranges;s=s.sort(function(g,v){return a(g.start,v.start)});for(var u=s[0],h,f=1;f<s.length;f++){h=u,u=s[f];var p=a(h.end,u.start);p<0||p==0&&!h.isEmpty()&&!u.isEmpty()||(a(h.end,u.end)<0&&(h.end.row=u.end.row,h.end.column=u.end.column),s.splice(f,1),d.push(u),u=h,f--)}return this.ranges=s,d},l.prototype.contains=function(d,s){return this.pointIndex({row:d,column:s})>=0},l.prototype.containsPoint=function(d){return this.pointIndex(d)>=0},l.prototype.rangeAtPoint=function(d){var s=this.pointIndex(d);if(s>=0)return this.ranges[s]},l.prototype.clipRows=function(d,s){var u=this.ranges;if(u[0].start.row>s||u[u.length-1].start.row<d)return[];var h=this.pointIndex({row:d,column:0});h<0&&(h=-h-1);var f=this.pointIndex({row:s,column:0},h);f<0&&(f=-f-1);for(var p=[],g=h;g<f;g++)p.push(u[g]);return p},l.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},l.prototype.attach=function(d){this.session&&this.detach(),this.session=d,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},l.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},l.prototype.$onChange=function(d){for(var s=d.start,u=d.end,h=s.row,f=u.row,p=this.ranges,g=0,v=p.length;g<v;g++){var m=p[g];if(m.end.row>=h)break}if(d.action=="insert")for(var y=f-h,C=-s.column+u.column;g<v;g++){var m=p[g];if(m.start.row>h)break;if(m.start.row==h&&m.start.column>=s.column&&(m.start.column==s.column&&this.$bias<=0||(m.start.column+=C,m.start.row+=y)),m.end.row==h&&m.end.column>=s.column){if(m.end.column==s.column&&this.$bias<0)continue;m.end.column==s.column&&C>0&&g<v-1&&m.end.column>m.start.column&&m.end.column==p[g+1].start.column&&(m.end.column-=C),m.end.column+=C,m.end.row+=y}}else for(var y=h-f,C=s.column-u.column;g<v;g++){var m=p[g];if(m.start.row>f)break;m.end.row<f&&(h<m.end.row||h==m.end.row&&s.column<m.end.column)?(m.end.row=h,m.end.column=s.column):m.end.row==f?m.end.column<=u.column?(y||m.end.column>s.column)&&(m.end.column=s.column,m.end.row=s.row):(m.end.column+=C,m.end.row+=y):m.end.row>f&&(m.end.row+=y),m.start.row<f&&(h<m.start.row||h==m.start.row&&s.column<m.start.column)?(m.start.row=h,m.start.column=s.column):m.start.row==f?m.start.column<=u.column?(y||m.start.column>s.column)&&(m.start.column=s.column,m.start.row=s.row):(m.start.column+=C,m.start.row+=y):m.start.row>f&&(m.start.row+=y)}if(y!=0&&g<v)for(;g<v;g++){var m=p[g];m.start.row+=y,m.end.row+=y}},l}();c.prototype.comparePoints=a,o.RangeList=c}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(r,o,n){var i=this&&this.__extends||function(){var h=function(f,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var m in v)Object.prototype.hasOwnProperty.call(v,m)&&(g[m]=v[m])},h(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");h(f,p);function g(){this.constructor=f}f.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),a=r("../range_list").RangeList,c=function(h){i(f,h);function f(p,g){var v=h.call(this)||this;return v.foldLine=null,v.placeholder=g,v.range=p,v.start=p.start,v.end=p.end,v.sameRow=p.start.row==p.end.row,v.subFolds=v.ranges=[],v}return f.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},f.prototype.setFoldLine=function(p){this.foldLine=p,this.subFolds.forEach(function(g){g.setFoldLine(p)})},f.prototype.clone=function(){var p=this.range.clone(),g=new f(p,this.placeholder);return this.subFolds.forEach(function(v){g.subFolds.push(v.clone())}),g.collapseChildren=this.collapseChildren,g},f.prototype.addSubFold=function(p){if(!this.range.isEqual(p)){d(p,this.start);for(var C=p.start.row,_=p.start.column,g=0,v=-1;g<this.subFolds.length&&(v=this.subFolds[g].range.compare(C,_),v==1);g++);var m=this.subFolds[g],y=0;if(v==0){if(m.range.containsRange(p))return m.addSubFold(p);y=1}for(var C=p.range.end.row,_=p.range.end.column,k=g,v=-1;k<this.subFolds.length&&(v=this.subFolds[k].range.compare(C,_),v==1);k++);v==0&&k++;for(var b=this.subFolds.splice(g,k-g,p),S=v==0?b.length-1:b.length,T=y;T<S;T++)p.addSubFold(b[T]);return p.setFoldLine(this.foldLine),p}},f.prototype.restoreRange=function(p){return u(p,this.start)},f}(a);function l(h,f){h.row-=f.row,h.row==0&&(h.column-=f.column)}function d(h,f){l(h.start,f),l(h.end,f)}function s(h,f){h.row==0&&(h.column+=f.column),h.row+=f.row}function u(h,f){s(h.start,f),s(h.end,f)}o.Fold=c}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(r,o,n){var i=r("../range").Range,a=r("./fold_line").FoldLine,c=r("./fold").Fold,l=r("../token_iterator").TokenIterator,d=r("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(u,h,f){var p=this.getFoldLine(u);if(!p)return null;for(var g=p.folds,v=0;v<g.length;v++){var m=g[v].range;if(m.contains(u,h)){if(f==1&&m.isEnd(u,h)&&!m.isEmpty())continue;if(f==-1&&m.isStart(u,h)&&!m.isEmpty())continue;return g[v]}}},this.getFoldsInRange=function(u){var h=u.start,f=u.end,p=this.$foldData,g=[];h.column+=1,f.column-=1;for(var v=0;v<p.length;v++){var m=p[v].range.compareRange(u);if(m!=2){if(m==-2)break;for(var y=p[v].folds,C=0;C<y.length;C++){var _=y[C];if(m=_.range.compareRange(u),m==-2)break;if(m==2)continue;if(m==42)break;g.push(_)}}}return h.column-=1,f.column+=1,g},this.getFoldsInRangeList=function(u){if(Array.isArray(u)){var h=[];u.forEach(function(f){h=h.concat(this.getFoldsInRange(f))},this)}else var h=this.getFoldsInRange(u);return h},this.getAllFolds=function(){for(var u=[],h=this.$foldData,f=0;f<h.length;f++)for(var p=0;p<h[f].folds.length;p++)u.push(h[f].folds[p]);return u},this.getFoldStringAt=function(u,h,f,p){if(p=p||this.getFoldLine(u),!p)return null;for(var g={end:{column:0}},v,m,y=0;y<p.folds.length;y++){m=p.folds[y];var C=m.range.compareEnd(u,h);if(C==-1){v=this.getLine(m.start.row).substring(g.end.column,m.start.column);break}else if(C===0)return null;g=m}return v||(v=this.getLine(m.start.row).substring(g.end.column)),f==-1?v.substring(0,h-g.end.column):f==1?v.substring(h-g.end.column):v},this.getFoldLine=function(u,h){var f=this.$foldData,p=0;for(h&&(p=f.indexOf(h)),p==-1&&(p=0),p;p<f.length;p++){var g=f[p];if(g.start.row<=u&&g.end.row>=u)return g;if(g.end.row>u)return null}return null},this.getNextFoldLine=function(u,h){var f=this.$foldData,p=0;for(h&&(p=f.indexOf(h)),p==-1&&(p=0),p;p<f.length;p++){var g=f[p];if(g.end.row>=u)return g}return null},this.getFoldedRowCount=function(u,h){for(var f=this.$foldData,p=h-u+1,g=0;g<f.length;g++){var v=f[g],m=v.end.row,y=v.start.row;if(m>=h){y<h&&(y>=u?p-=h-y:p=0);break}else m>=u&&(y>=u?p-=m-y:p-=m-u+1)}return p},this.$addFoldLine=function(u){return this.$foldData.push(u),this.$foldData.sort(function(h,f){return h.start.row-f.start.row}),u},this.addFold=function(u,h){var f=this.$foldData,p=!1,g;u instanceof c?g=u:(g=new c(h,u),g.collapseChildren=h.collapseChildren),this.$clipRangeToDocument(g.range);var v=g.start.row,m=g.start.column,y=g.end.row,C=g.end.column,_=this.getFoldAt(v,m,1),k=this.getFoldAt(y,C,-1);if(_&&k==_)return _.addSubFold(g);_&&!_.range.isStart(v,m)&&this.removeFold(_),k&&!k.range.isEnd(y,C)&&this.removeFold(k);var b=this.getFoldsInRange(g.range);b.length>0&&(this.removeFolds(b),g.collapseChildren||b.forEach(function(I){g.addSubFold(I)}));for(var S=0;S<f.length;S++){var T=f[S];if(y==T.start.row){T.addFold(g),p=!0;break}else if(v==T.end.row){if(T.addFold(g),p=!0,!g.sameRow){var L=f[S+1];if(L&&L.start.row==y){T.merge(L);break}}break}else if(y<=T.start.row)break}return p||(T=this.$addFoldLine(new a(this.$foldData,g))),this.$useWrapMode?this.$updateWrapData(T.start.row,T.start.row):this.$updateRowLengthCache(T.start.row,T.start.row),this.$modified=!0,this._signal("changeFold",{data:g,action:"add"}),g},this.addFolds=function(u){u.forEach(function(h){this.addFold(h)},this)},this.removeFold=function(u){var h=u.foldLine,f=h.start.row,p=h.end.row,g=this.$foldData,v=h.folds;if(v.length==1)g.splice(g.indexOf(h),1);else if(h.range.isEnd(u.end.row,u.end.column))v.pop(),h.end.row=v[v.length-1].end.row,h.end.column=v[v.length-1].end.column;else if(h.range.isStart(u.start.row,u.start.column))v.shift(),h.start.row=v[0].start.row,h.start.column=v[0].start.column;else if(u.sameRow)v.splice(v.indexOf(u),1);else{var m=h.split(u.start.row,u.start.column);v=m.folds,v.shift(),m.start.row=v[0].start.row,m.start.column=v[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(f,p):this.$updateRowLengthCache(f,p)),this.$modified=!0,this._signal("changeFold",{data:u,action:"remove"})},this.removeFolds=function(u){for(var h=[],f=0;f<u.length;f++)h.push(u[f]);h.forEach(function(p){this.removeFold(p)},this),this.$modified=!0},this.expandFold=function(u){this.removeFold(u),u.subFolds.forEach(function(h){u.restoreRange(h),this.addFold(h)},this),u.collapseChildren>0&&this.foldAll(u.start.row+1,u.end.row,u.collapseChildren-1),u.subFolds=[]},this.expandFolds=function(u){u.forEach(function(h){this.expandFold(h)},this)},this.unfold=function(u,h){var f,p;if(u==null)f=new i(0,0,this.getLength(),0),h==null&&(h=!0);else if(typeof u=="number")f=new i(u,0,u,this.getLine(u).length);else if("row"in u)f=i.fromPoints(u,u);else{if(Array.isArray(u))return p=[],u.forEach(function(v){p=p.concat(this.unfold(v))},this),p;f=u}p=this.getFoldsInRangeList(f);for(var g=p;p.length==1&&i.comparePoints(p[0].start,f.start)<0&&i.comparePoints(p[0].end,f.end)>0;)this.expandFolds(p),p=this.getFoldsInRangeList(f);if(h!=!1?this.removeFolds(p):this.expandFolds(p),g.length)return g},this.isRowFolded=function(u,h){return!!this.getFoldLine(u,h)},this.getRowFoldEnd=function(u,h){var f=this.getFoldLine(u,h);return f?f.end.row:u},this.getRowFoldStart=function(u,h){var f=this.getFoldLine(u,h);return f?f.start.row:u},this.getFoldDisplayLine=function(u,h,f,p,g){p==null&&(p=u.start.row),g==null&&(g=0),h==null&&(h=u.end.row),f==null&&(f=this.getLine(h).length);var v=this.doc,m="";return u.walk(function(y,C,_,k){if(!(C<p)){if(C==p){if(_<g)return;k=Math.max(g,k)}y!=null?m+=y:m+=v.getLine(C).substring(k,_)}},h,f),m},this.getDisplayLine=function(u,h,f,p){var g=this.getFoldLine(u);if(g)return this.getFoldDisplayLine(g,u,h,f,p);var v;return v=this.doc.getLine(u),v.substring(p||0,h||v.length)},this.$cloneFoldData=function(){var u=[];return u=this.$foldData.map(function(h){var f=h.folds.map(function(p){return p.clone()});return new a(u,f)}),u},this.toggleFold=function(u){var h=this.selection,f=h.getRange(),p,g;if(f.isEmpty()){var v=f.start;if(p=this.getFoldAt(v.row,v.column),p){this.expandFold(p);return}else(g=this.findMatchingBracket(v))?f.comparePoint(g)==1?f.end=g:(f.start=g,f.start.column++,f.end.column--):(g=this.findMatchingBracket({row:v.row,column:v.column+1}))?(f.comparePoint(g)==1?f.end=g:f.start=g,f.start.column++):f=this.getCommentFoldRange(v.row,v.column)||f}else{var m=this.getFoldsInRange(f);if(u&&m.length){this.expandFolds(m);return}else m.length==1&&(p=m[0])}if(p||(p=this.getFoldAt(f.start.row,f.start.column)),p&&p.range.toString()==f.toString()){this.expandFold(p);return}var y="...";if(!f.isMultiLine()){if(y=this.getTextRange(f),y.length<4)return;y=y.trim().substring(0,2)+".."}this.addFold(y,f)},this.getCommentFoldRange=function(u,h,f){var p=new l(this,u,h),g=p.getCurrentToken(),v=g&&g.type;if(g&&/^comment|string/.test(v)){v=v.match(/comment|string/)[0],v=="comment"&&(v+="|doc-start|\\.doc");var m=new RegExp(v),y=new i;if(f!=1){do g=p.stepBackward();while(g&&m.test(g.type)&&!/^comment.end/.test(g.type));g=p.stepForward()}if(y.start.row=p.getCurrentTokenRow(),y.start.column=p.getCurrentTokenColumn()+(/^comment.start/.test(g.type)?g.value.length:2),p=new l(this,u,h),f!=-1){var C=-1;do if(g=p.stepForward(),C==-1){var _=this.getState(p.$row);m.test(_)||(C=p.$row)}else if(p.$row>C)break;while(g&&m.test(g.type)&&!/^comment.start/.test(g.type));g=p.stepBackward()}else g=p.getCurrentToken();return y.end.row=p.getCurrentTokenRow(),y.end.column=p.getCurrentTokenColumn(),/^comment.end/.test(g.type)||(y.end.column+=g.value.length-2),y}},this.foldAll=function(u,h,f,p){f==null&&(f=1e5);var g=this.foldWidgets;if(g){h=h||this.getLength(),u=u||0;for(var v=u;v<h;v++)if(g[v]==null&&(g[v]=this.getFoldWidget(v)),g[v]=="start"&&!(p&&!p(v))){var m=this.getFoldWidgetRange(v);m&&m.isMultiLine()&&m.end.row<=h&&m.start.row>=u&&(v=m.end.row,m.collapseChildren=f,this.addFold("...",m))}}},this.foldToLevel=function(u){for(this.foldAll();u-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var u=this;this.foldAll(null,null,null,function(h){for(var f=u.getTokens(h),p=0;p<f.length;p++){var g=f[p];if(!(g.type=="text"&&/^\s+$/.test(g.value)))return!!/comment/.test(g.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(u){if(!this.$foldStyles[u])throw new Error("invalid fold style: "+u+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=u){this.$foldStyle=u,u=="manual"&&this.unfold();var h=this.$foldMode;this.$setFolding(null),this.$setFolding(h)}},this.$setFolding=function(u){if(this.$foldMode!=u){if(this.$foldMode=u,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!u||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=u.getFoldWidget.bind(u,this,this.$foldStyle),this.getFoldWidgetRange=u.getFoldWidgetRange.bind(u,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(u,h){var f=this.foldWidgets;if(!f||h&&f[u])return{};for(var p=u-1,g;p>=0;){var v=f[p];if(v==null&&(v=f[p]=this.getFoldWidget(p)),v=="start"){var m=this.getFoldWidgetRange(p);if(g||(g=m),m&&m.end.row>=u)break}p--}return{range:p!==-1&&m,firstRange:g}},this.onFoldWidgetClick=function(u,h){h instanceof d&&(h=h.domEvent);var f={children:h.shiftKey,all:h.ctrlKey||h.metaKey,siblings:h.altKey},p=this.$toggleFoldWidget(u,f);if(!p){var g=h.target||h.srcElement;g&&/ace_fold-widget/.test(g.className)&&(g.className+=" ace_invalid")}},this.$toggleFoldWidget=function(u,h){if(this.getFoldWidget){var f=this.getFoldWidget(u),p=this.getLine(u),g=f==="end"?-1:1,v=this.getFoldAt(u,g===-1?0:p.length,g);if(v)return h.children||h.all?this.removeFold(v):this.expandFold(v),v;var m=this.getFoldWidgetRange(u,!0);if(m&&!m.isMultiLine()&&(v=this.getFoldAt(m.start.row,m.start.column,1),v&&m.isEqual(v.range)))return this.removeFold(v),v;if(h.siblings){var y=this.getParentFoldRangeData(u);if(y.range)var C=y.range.start.row+1,_=y.range.end.row;this.foldAll(C,_,h.all?1e4:0)}else h.children?(_=m?m.end.row:this.getLength(),this.foldAll(u+1,_,h.all?1e4:0)):m&&(h.all&&(m.collapseChildren=1e4),this.addFold("...",m));return m}},this.toggleFoldWidget=function(u){var h=this.selection.getCursor().row;h=this.getRowFoldStart(h);var f=this.$toggleFoldWidget(h,{});if(!f){var p=this.getParentFoldRangeData(h,!0);if(f=p.range||p.firstRange,f){h=f.start.row;var g=this.getFoldAt(h,this.getLine(h).length,1);g?this.removeFold(g):this.addFold("...",f)}}},this.updateFoldWidgets=function(u){var h=u.start.row,f=u.end.row-h;if(f===0)this.foldWidgets[h]=null;else if(u.action=="remove")this.foldWidgets.splice(h,f+1,null);else{var p=Array(f+1);p.unshift(h,1),this.foldWidgets.splice.apply(this.foldWidgets,p)}},this.tokenizerUpdateFoldWidgets=function(u){var h=u.data;h.first!=h.last&&this.foldWidgets.length>h.first&&this.foldWidgets.splice(h.first,this.foldWidgets.length)}}o.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(r,o,n){var i=r("../token_iterator").TokenIterator,a=r("../range").Range;function c(){this.findMatchingBracket=function(l,d){if(l.column==0)return null;var s=d||this.getLine(l.row).charAt(l.column-1);if(s=="")return null;var u=s.match(/([\(\[\{])|([\)\]\}])/);return u?u[1]?this.$findClosingBracket(u[1],l):this.$findOpeningBracket(u[2],l):null},this.getBracketRange=function(l){var d=this.getLine(l.row),s=!0,u,h=d.charAt(l.column-1),f=h&&h.match(/([\(\[\{])|([\)\]\}])/);if(f||(h=d.charAt(l.column),l={row:l.row,column:l.column+1},f=h&&h.match(/([\(\[\{])|([\)\]\}])/),s=!1),!f)return null;if(f[1]){var p=this.$findClosingBracket(f[1],l);if(!p)return null;u=a.fromPoints(l,p),s||(u.end.column++,u.start.column--),u.cursor=u.end}else{var p=this.$findOpeningBracket(f[2],l);if(!p)return null;u=a.fromPoints(p,l),s||(u.start.column++,u.end.column--),u.cursor=u.start}return u},this.getMatchingBracketRanges=function(l,d){var s=this.getLine(l.row),u=/([\(\[\{])|([\)\]\}])/,h=!d&&s.charAt(l.column-1),f=h&&h.match(u);if(f||(h=(d===void 0||d)&&s.charAt(l.column),l={row:l.row,column:l.column+1},f=h&&h.match(u)),!f)return null;var p=new a(l.row,l.column-1,l.row,l.column),g=f[1]?this.$findClosingBracket(f[1],l):this.$findOpeningBracket(f[2],l);if(!g)return[p];var v=new a(g.row,g.column,g.row,g.column+1);return[p,v]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(l,d,s){var u=this.$brackets[l],h=1,f=new i(this,d.row,d.column),p=f.getCurrentToken();if(p||(p=f.stepForward()),!!p){s||(s=new RegExp("(\\.?"+p.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var g=d.column-f.getCurrentTokenColumn()-2,v=p.value;;){for(;g>=0;){var m=v.charAt(g);if(m==u){if(h-=1,h==0)return{row:f.getCurrentTokenRow(),column:g+f.getCurrentTokenColumn()}}else m==l&&(h+=1);g-=1}do p=f.stepBackward();while(p&&!s.test(p.type));if(p==null)break;v=p.value,g=v.length-1}return null}},this.$findClosingBracket=function(l,d,s){var u=this.$brackets[l],h=1,f=new i(this,d.row,d.column),p=f.getCurrentToken();if(p||(p=f.stepForward()),!!p){s||(s=new RegExp("(\\.?"+p.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var g=d.column-f.getCurrentTokenColumn();;){for(var v=p.value,m=v.length;g<m;){var y=v.charAt(g);if(y==u){if(h-=1,h==0)return{row:f.getCurrentTokenRow(),column:g+f.getCurrentTokenColumn()}}else y==l&&(h+=1);g+=1}do p=f.stepForward();while(p&&!s.test(p.type));if(p==null)break;g=0}return null}},this.getMatchingTags=function(l){var d=new i(this,l.row,l.column),s=this.$findTagName(d);if(s){var u=d.stepBackward();return u.value==="<"?this.$findClosingTag(d,s):this.$findOpeningTag(d,s)}},this.$findTagName=function(l){var d=l.getCurrentToken(),s=!1,u=!1;if(d&&d.type.indexOf("tag-name")===-1)do u?d=l.stepBackward():d=l.stepForward(),d&&(d.value==="/>"?u=!0:d.type.indexOf("tag-name")!==-1&&(s=!0));while(d&&!s);return d},this.$findClosingTag=function(l,d){var s,u=d.value,h=d.value,f=0,p=new a(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);d=l.stepForward();var g=new a(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+d.value.length),v=!1;do if(s=d,d=l.stepForward(),d){if(d.value===">"&&!v){var m=new a(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);v=!0}if(d.type.indexOf("tag-name")!==-1){if(u=d.value,h===u){if(s.value==="<")f++;else if(s.value==="</"&&(f--,f<0)){l.stepBackward();var y=new a(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2);d=l.stepForward();var C=new a(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+d.value.length);if(d=l.stepForward(),d&&d.value===">")var _=new a(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);else return}}}else if(h===u&&d.value==="/>"&&(f--,f<0))var y=new a(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2),C=y,_=C,m=new a(g.end.row,g.end.column,g.end.row,g.end.column+1)}while(d&&f>=0);if(p&&m&&y&&_&&g&&C)return{openTag:new a(p.start.row,p.start.column,m.end.row,m.end.column),closeTag:new a(y.start.row,y.start.column,_.end.row,_.end.column),openTagName:g,closeTagName:C}},this.$findOpeningTag=function(l,d){var s=l.getCurrentToken(),u=d.value,h=0,f=l.getCurrentTokenRow(),p=l.getCurrentTokenColumn(),g=p+2,v=new a(f,p,f,g);l.stepForward();var m=new a(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+d.value.length);if(d=l.stepForward(),!(!d||d.value!==">")){var y=new a(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);l.stepBackward(),l.stepBackward();do if(d=s,f=l.getCurrentTokenRow(),p=l.getCurrentTokenColumn(),g=p+d.value.length,s=l.stepBackward(),d){if(d.type.indexOf("tag-name")!==-1){if(u===d.value)if(s.value==="<"){if(h++,h>0){var C=new a(f,p,f,g),_=new a(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);do d=l.stepForward();while(d&&d.value!==">");var k=new a(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1)}}else s.value==="</"&&h--}else if(d.value==="/>"){for(var b=0,S=s;S;){if(S.type.indexOf("tag-name")!==-1&&S.value===u){h--;break}else if(S.value==="<")break;S=l.stepBackward(),b++}for(var T=0;T<b;T++)l.stepForward()}}while(s&&h<=0);if(_&&k&&v&&y&&C&&m)return{openTag:new a(_.start.row,_.start.column,k.end.row,k.end.column),closeTag:new a(v.start.row,v.start.column,y.end.row,y.end.column),openTagName:C,closeTagName:m}}}}o.BracketMatch=c}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(r,o,n){var i=r("./lib/oop"),a=r("./lib/lang"),c=r("./bidihandler").BidiHandler,l=r("./config"),d=r("./lib/event_emitter").EventEmitter,s=r("./selection").Selection,u=r("./mode/text").Mode,h=r("./range").Range,f=r("./document").Document,p=r("./background_tokenizer").BackgroundTokenizer,g=r("./search_highlight").SearchHighlight,v=r("./undomanager").UndoManager,m=function(){function A(P,D){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++A.$uid,this.$foldData.toString=function(){return this.join(`
   342  `)},this.bgTokenizer=new p(new u().getTokenizer(),this);var E=this;this.bgTokenizer.on("update",function(R){E._signal("tokenizerUpdate",R)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof P!="object"||!P.getLine)&&(P=new f(P)),this.setDocument(P),this.selection=new s(this),this.$bidiHandler=new c(this),l.resetOptions(this),this.setMode(D),l._signal("session",this),this.destroyed=!1}return A.prototype.setDocument=function(P){this.doc&&this.doc.off("change",this.$onChange),this.doc=P,P.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},A.prototype.getDocument=function(){return this.doc},A.prototype.$resetRowCache=function(P){if(!P){this.$docRowCache=[],this.$screenRowCache=[];return}var D=this.$docRowCache.length,E=this.$getRowCacheIndex(this.$docRowCache,P)+1;D>E&&(this.$docRowCache.splice(E,D),this.$screenRowCache.splice(E,D))},A.prototype.$getRowCacheIndex=function(P,D){for(var E=0,R=P.length-1;E<=R;){var $=E+R>>1,N=P[$];if(D>N)E=$+1;else if(D<N)R=$-1;else return $}return E-1},A.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},A.prototype.onChangeFold=function(P){var D=P.data;this.$resetRowCache(D.start.row)},A.prototype.onChange=function(P){this.$modified=!0,this.$bidiHandler.onChange(P),this.$resetRowCache(P.start.row);var D=this.$updateInternalDataOnChange(P);!this.$fromUndo&&this.$undoManager&&(D&&D.length&&(this.$undoManager.add({action:"removeFolds",folds:D},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(P,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(P),this._signal("change",P)},A.prototype.setValue=function(P){this.doc.setValue(P),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},A.fromJSON=function(P){typeof P=="string"&&(P=JSON.parse(P));var D=new v;D.$undoStack=P.history.undo,D.$redoStack=P.history.redo,D.mark=P.history.mark,D.$rev=P.history.rev;var E=new A(P.value);return P.folds.forEach(function(R){E.addFold("...",h.fromPoints(R.start,R.end))}),E.setAnnotations(P.annotations),E.setBreakpoints(P.breakpoints),E.setMode(P.mode),E.setScrollLeft(P.scrollLeft),E.setScrollTop(P.scrollTop),E.setUndoManager(D),E.selection.fromJSON(P.selection),E},A.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(P){return P.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},A.prototype.toString=function(){return this.doc.getValue()},A.prototype.getSelection=function(){return this.selection},A.prototype.getState=function(P){return this.bgTokenizer.getState(P)},A.prototype.getTokens=function(P){return this.bgTokenizer.getTokens(P)},A.prototype.getTokenAt=function(P,D){var E=this.bgTokenizer.getTokens(P),R,$=0;if(D==null){var N=E.length-1;$=this.getLine(P).length}else for(var N=0;N<E.length&&($+=E[N].value.length,!($>=D));N++);return R=E[N],R?(R.index=N,R.start=$-R.value.length,R):null},A.prototype.setUndoManager=function(P){if(this.$undoManager=P,this.$informUndoManager&&this.$informUndoManager.cancel(),P){var D=this;P.addSession(this),this.$syncInformUndoManager=function(){D.$informUndoManager.cancel(),D.mergeUndoDeltas=!1},this.$informUndoManager=a.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},A.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},A.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},A.prototype.getTabString=function(){return this.getUseSoftTabs()?a.stringRepeat(" ",this.getTabSize()):"	"},A.prototype.setUseSoftTabs=function(P){this.setOption("useSoftTabs",P)},A.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},A.prototype.setTabSize=function(P){this.setOption("tabSize",P)},A.prototype.getTabSize=function(){return this.$tabSize},A.prototype.isTabStop=function(P){return this.$useSoftTabs&&P.column%this.$tabSize===0},A.prototype.setNavigateWithinSoftTabs=function(P){this.setOption("navigateWithinSoftTabs",P)},A.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},A.prototype.setOverwrite=function(P){this.setOption("overwrite",P)},A.prototype.getOverwrite=function(){return this.$overwrite},A.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},A.prototype.addGutterDecoration=function(P,D){this.$decorations[P]||(this.$decorations[P]=""),this.$decorations[P]+=" "+D,this._signal("changeBreakpoint",{})},A.prototype.removeGutterDecoration=function(P,D){this.$decorations[P]=(this.$decorations[P]||"").replace(" "+D,""),this._signal("changeBreakpoint",{})},A.prototype.getBreakpoints=function(){return this.$breakpoints},A.prototype.setBreakpoints=function(P){this.$breakpoints=[];for(var D=0;D<P.length;D++)this.$breakpoints[P[D]]="ace_breakpoint";this._signal("changeBreakpoint",{})},A.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},A.prototype.setBreakpoint=function(P,D){D===void 0&&(D="ace_breakpoint"),D?this.$breakpoints[P]=D:delete this.$breakpoints[P],this._signal("changeBreakpoint",{})},A.prototype.clearBreakpoint=function(P){delete this.$breakpoints[P],this._signal("changeBreakpoint",{})},A.prototype.addMarker=function(P,D,E,R){var $=this.$markerId++,N={range:P,type:E||"line",renderer:typeof E=="function"?E:null,clazz:D,inFront:!!R,id:$};return R?(this.$frontMarkers[$]=N,this._signal("changeFrontMarker")):(this.$backMarkers[$]=N,this._signal("changeBackMarker")),$},A.prototype.addDynamicMarker=function(P,D){if(P.update){var E=this.$markerId++;return P.id=E,P.inFront=!!D,D?(this.$frontMarkers[E]=P,this._signal("changeFrontMarker")):(this.$backMarkers[E]=P,this._signal("changeBackMarker")),P}},A.prototype.removeMarker=function(P){var D=this.$frontMarkers[P]||this.$backMarkers[P];if(D){var E=D.inFront?this.$frontMarkers:this.$backMarkers;delete E[P],this._signal(D.inFront?"changeFrontMarker":"changeBackMarker")}},A.prototype.getMarkers=function(P){return P?this.$frontMarkers:this.$backMarkers},A.prototype.highlight=function(P){if(!this.$searchHighlight){var D=new g(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(D)}this.$searchHighlight.setRegexp(P)},A.prototype.highlightLines=function(P,D,E,R){typeof D!="number"&&(E=D,D=P),E||(E="ace_step");var $=new h(P,0,D,1/0);return $.id=this.addMarker($,E,"fullLine",R),$},A.prototype.setAnnotations=function(P){this.$annotations=P,this._signal("changeAnnotation",{})},A.prototype.getAnnotations=function(){return this.$annotations||[]},A.prototype.clearAnnotations=function(){this.setAnnotations([])},A.prototype.$detectNewLine=function(P){var D=P.match(/^.*?(\r?\n)/m);D?this.$autoNewLine=D[1]:this.$autoNewLine=`
   343  `},A.prototype.getWordRange=function(P,D){var E=this.getLine(P),R=!1;if(D>0&&(R=!!E.charAt(D-1).match(this.tokenRe)),R||(R=!!E.charAt(D).match(this.tokenRe)),R)var $=this.tokenRe;else if(/^\s+$/.test(E.slice(D-1,D+1)))var $=/\s/;else var $=this.nonTokenRe;var N=D;if(N>0){do N--;while(N>=0&&E.charAt(N).match($));N++}for(var M=D;M<E.length&&E.charAt(M).match($);)M++;return new h(P,N,P,M)},A.prototype.getAWordRange=function(P,D){for(var E=this.getWordRange(P,D),R=this.getLine(E.end.row);R.charAt(E.end.column).match(/[ \t]/);)E.end.column+=1;return E},A.prototype.setNewLineMode=function(P){this.doc.setNewLineMode(P)},A.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},A.prototype.setUseWorker=function(P){this.setOption("useWorker",P)},A.prototype.getUseWorker=function(){return this.$useWorker},A.prototype.onReloadTokenizer=function(P){var D=P.data;this.bgTokenizer.start(D.first),this._signal("tokenizerUpdate",P)},A.prototype.setMode=function(P,D){if(P&&typeof P=="object"){if(P.getTokenizer)return this.$onChangeMode(P);var E=P,R=E.path}else R=P||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new u),this.$modes[R]&&!E){this.$onChangeMode(this.$modes[R]),D&&D();return}this.$modeId=R,l.loadModule(["mode",R],(function($){if(this.$modeId!==R)return D&&D();this.$modes[R]&&!E?this.$onChangeMode(this.$modes[R]):$&&$.Mode&&($=new $.Mode(E),E||(this.$modes[R]=$,$.$id=R),this.$onChangeMode($)),D&&D()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},A.prototype.$onChangeMode=function(P,D){if(D||(this.$modeId=P.$id),this.$mode!==P){var E=this.$mode;this.$mode=P,this.$stopWorker(),this.$useWorker&&this.$startWorker();var R=P.getTokenizer();if(R.on!==void 0){var $=this.onReloadTokenizer.bind(this);R.on("update",$)}this.bgTokenizer.setTokenizer(R),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=P.tokenRe,this.nonTokenRe=P.nonTokenRe,D||(P.attachToSession&&P.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(P.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:E,mode:P}))}},A.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},A.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(P){l.warn("Could not load worker",P),this.$worker=null}},A.prototype.getMode=function(){return this.$mode},A.prototype.setScrollTop=function(P){this.$scrollTop===P||isNaN(P)||(this.$scrollTop=P,this._signal("changeScrollTop",P))},A.prototype.getScrollTop=function(){return this.$scrollTop},A.prototype.setScrollLeft=function(P){this.$scrollLeft===P||isNaN(P)||(this.$scrollLeft=P,this._signal("changeScrollLeft",P))},A.prototype.getScrollLeft=function(){return this.$scrollLeft},A.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},A.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var P=0;return this.lineWidgets.forEach(function(D){D&&D.screenWidth>P&&(P=D.screenWidth)}),this.lineWidgetWidth=P},A.prototype.$computeWidth=function(P){if(this.$modified||P){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var D=this.doc.getAllLines(),E=this.$rowLengthCache,R=0,$=0,N=this.$foldData[$],M=N?N.start.row:1/0,O=D.length,j=0;j<O;j++){if(j>M){if(j=N.end.row+1,j>=O)break;N=this.$foldData[$++],M=N?N.start.row:1/0}E[j]==null&&(E[j]=this.$getStringScreenWidth(D[j])[0]),E[j]>R&&(R=E[j])}this.screenWidth=R}},A.prototype.getLine=function(P){return this.doc.getLine(P)},A.prototype.getLines=function(P,D){return this.doc.getLines(P,D)},A.prototype.getLength=function(){return this.doc.getLength()},A.prototype.getTextRange=function(P){return this.doc.getTextRange(P||this.selection.getRange())},A.prototype.insert=function(P,D){return this.doc.insert(P,D)},A.prototype.remove=function(P){return this.doc.remove(P)},A.prototype.removeFullLines=function(P,D){return this.doc.removeFullLines(P,D)},A.prototype.undoChanges=function(P,D){if(P.length){this.$fromUndo=!0;for(var E=P.length-1;E!=-1;E--){var R=P[E];R.action=="insert"||R.action=="remove"?this.doc.revertDelta(R):R.folds&&this.addFolds(R.folds)}!D&&this.$undoSelect&&(P.selectionBefore?this.selection.fromJSON(P.selectionBefore):this.selection.setRange(this.$getUndoSelection(P,!0))),this.$fromUndo=!1}},A.prototype.redoChanges=function(P,D){if(P.length){this.$fromUndo=!0;for(var E=0;E<P.length;E++){var R=P[E];(R.action=="insert"||R.action=="remove")&&this.doc.$safeApplyDelta(R)}!D&&this.$undoSelect&&(P.selectionAfter?this.selection.fromJSON(P.selectionAfter):this.selection.setRange(this.$getUndoSelection(P,!1))),this.$fromUndo=!1}},A.prototype.setUndoSelect=function(P){this.$undoSelect=P},A.prototype.$getUndoSelection=function(P,D){function E(O){return D?O.action!=="insert":O.action==="insert"}for(var R,$,N=0;N<P.length;N++){var M=P[N];if(M.start){if(!R){E(M)?R=h.fromPoints(M.start,M.end):R=h.fromPoints(M.start,M.start);continue}E(M)?($=M.start,R.compare($.row,$.column)==-1&&R.setStart($),$=M.end,R.compare($.row,$.column)==1&&R.setEnd($)):($=M.start,R.compare($.row,$.column)==-1&&(R=h.fromPoints(M.start,M.start)))}}return R},A.prototype.replace=function(P,D){return this.doc.replace(P,D)},A.prototype.moveText=function(P,D,E){var R=this.getTextRange(P),$=this.getFoldsInRange(P),N=h.fromPoints(D,D);if(!E){this.remove(P);var M=P.start.row-P.end.row,O=M?-P.end.column:P.start.column-P.end.column;O&&(N.start.row==P.end.row&&N.start.column>P.end.column&&(N.start.column+=O),N.end.row==P.end.row&&N.end.column>P.end.column&&(N.end.column+=O)),M&&N.start.row>=P.end.row&&(N.start.row+=M,N.end.row+=M)}if(N.end=this.insert(N.start,R),$.length){var j=P.start,z=N.start,M=z.row-j.row,O=z.column-j.column;this.addFolds($.map(function(U){return U=U.clone(),U.start.row==j.row&&(U.start.column+=O),U.end.row==j.row&&(U.end.column+=O),U.start.row+=M,U.end.row+=M,U}))}return N},A.prototype.indentRows=function(P,D,E){E=E.replace(/\t/g,this.getTabString());for(var R=P;R<=D;R++)this.doc.insertInLine({row:R,column:0},E)},A.prototype.outdentRows=function(P){for(var D=P.collapseRows(),E=new h(0,0,0,0),R=this.getTabSize(),$=D.start.row;$<=D.end.row;++$){var N=this.getLine($);E.start.row=$,E.end.row=$;for(var M=0;M<R&&N.charAt(M)==" ";++M);M<R&&N.charAt(M)=="	"?(E.start.column=M,E.end.column=M+1):(E.start.column=0,E.end.column=M),this.remove(E)}},A.prototype.$moveLines=function(P,D,E){if(P=this.getRowFoldStart(P),D=this.getRowFoldEnd(D),E<0){var R=this.getRowFoldStart(P+E);if(R<0)return 0;var $=R-P}else if(E>0){var R=this.getRowFoldEnd(D+E);if(R>this.doc.getLength()-1)return 0;var $=R-D}else{P=this.$clipRowToDocument(P),D=this.$clipRowToDocument(D);var $=D-P+1}var N=new h(P,0,D,Number.MAX_VALUE),M=this.getFoldsInRange(N).map(function(j){return j=j.clone(),j.start.row+=$,j.end.row+=$,j}),O=E==0?this.doc.getLines(P,D):this.doc.removeFullLines(P,D);return this.doc.insertFullLines(P+$,O),M.length&&this.addFolds(M),$},A.prototype.moveLinesUp=function(P,D){return this.$moveLines(P,D,-1)},A.prototype.moveLinesDown=function(P,D){return this.$moveLines(P,D,1)},A.prototype.duplicateLines=function(P,D){return this.$moveLines(P,D,0)},A.prototype.$clipRowToDocument=function(P){return Math.max(0,Math.min(P,this.doc.getLength()-1))},A.prototype.$clipColumnToRow=function(P,D){return D<0?0:Math.min(this.doc.getLine(P).length,D)},A.prototype.$clipPositionToDocument=function(P,D){if(D=Math.max(0,D),P<0)P=0,D=0;else{var E=this.doc.getLength();P>=E?(P=E-1,D=this.doc.getLine(E-1).length):D=Math.min(this.doc.getLine(P).length,D)}return{row:P,column:D}},A.prototype.$clipRangeToDocument=function(P){P.start.row<0?(P.start.row=0,P.start.column=0):P.start.column=this.$clipColumnToRow(P.start.row,P.start.column);var D=this.doc.getLength()-1;return P.end.row>D?(P.end.row=D,P.end.column=this.doc.getLine(D).length):P.end.column=this.$clipColumnToRow(P.end.row,P.end.column),P},A.prototype.setUseWrapMode=function(P){if(P!=this.$useWrapMode){if(this.$useWrapMode=P,this.$modified=!0,this.$resetRowCache(0),P){var D=this.getLength();this.$wrapData=Array(D),this.$updateWrapData(0,D-1)}this._signal("changeWrapMode")}},A.prototype.getUseWrapMode=function(){return this.$useWrapMode},A.prototype.setWrapLimitRange=function(P,D){(this.$wrapLimitRange.min!==P||this.$wrapLimitRange.max!==D)&&(this.$wrapLimitRange={min:P,max:D},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},A.prototype.adjustWrapLimit=function(P,D){var E=this.$wrapLimitRange;E.max<0&&(E={min:D,max:D});var R=this.$constrainWrapLimit(P,E.min,E.max);return R!=this.$wrapLimit&&R>1?(this.$wrapLimit=R,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},A.prototype.$constrainWrapLimit=function(P,D,E){return D&&(P=Math.max(D,P)),E&&(P=Math.min(E,P)),P},A.prototype.getWrapLimit=function(){return this.$wrapLimit},A.prototype.setWrapLimit=function(P){this.setWrapLimitRange(P,P)},A.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},A.prototype.$updateInternalDataOnChange=function(P){var D=this.$useWrapMode,E=P.action,R=P.start,$=P.end,N=R.row,M=$.row,O=M-N,j=null;if(this.$updating=!0,O!=0)if(E==="remove"){this[D?"$wrapData":"$rowLengthCache"].splice(N,O);var z=this.$foldData;j=this.getFoldsInRange(P),this.removeFolds(j);var F=this.getFoldLine($.row),K=0;if(F){F.addRemoveChars($.row,$.column,R.column-$.column),F.shiftRow(-O);var U=this.getFoldLine(N);U&&U!==F&&(U.merge(F),F=U),K=z.indexOf(F)+1}for(K;K<z.length;K++){var F=z[K];F.start.row>=$.row&&F.shiftRow(-O)}M=N}else{var Y=Array(O);Y.unshift(N,0);var V=D?this.$wrapData:this.$rowLengthCache;V.splice.apply(V,Y);var z=this.$foldData,F=this.getFoldLine(N),K=0;if(F){var q=F.range.compareInside(R.row,R.column);q==0?(F=F.split(R.row,R.column),F&&(F.shiftRow(O),F.addRemoveChars(M,0,$.column-R.column))):q==-1&&(F.addRemoveChars(N,0,$.column-R.column),F.shiftRow(O)),K=z.indexOf(F)+1}for(K;K<z.length;K++){var F=z[K];F.start.row>=N&&F.shiftRow(O)}}else{O=Math.abs(P.start.column-P.end.column),E==="remove"&&(j=this.getFoldsInRange(P),this.removeFolds(j),O=-O);var F=this.getFoldLine(N);F&&F.addRemoveChars(N,R.column,O)}return D&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,D?this.$updateWrapData(N,M):this.$updateRowLengthCache(N,M),j},A.prototype.$updateRowLengthCache=function(P,D){this.$rowLengthCache[P]=null,this.$rowLengthCache[D]=null},A.prototype.$updateWrapData=function(P,D){var E=this.doc.getAllLines(),R=this.getTabSize(),$=this.$wrapData,N=this.$wrapLimit,M,O,j=P;for(D=Math.min(D,E.length-1);j<=D;)O=this.getFoldLine(j,O),O?(M=[],O.walk((function(z,F,K,U){var Y;if(z!=null){Y=this.$getDisplayTokens(z,M.length),Y[0]=_;for(var V=1;V<Y.length;V++)Y[V]=k}else Y=this.$getDisplayTokens(E[F].substring(U,K),M.length);M=M.concat(Y)}).bind(this),O.end.row,E[O.end.row].length+1),$[O.start.row]=this.$computeWrapSplits(M,N,R),j=O.end.row+1):(M=this.$getDisplayTokens(E[j]),$[j]=this.$computeWrapSplits(M,N,R),j++)},A.prototype.$computeWrapSplits=function(P,D,E){if(P.length==0)return[];var R=[],$=P.length,N=0,M=0,O=this.$wrapAsCode,j=this.$indentedSoftWrap,z=D<=Math.max(2*E,8)||j===!1?0:Math.floor(D/2);function F(){var q=0;if(z===0)return q;if(j)for(var ee=0;ee<P.length;ee++){var X=P[ee];if(X==S)q+=1;else if(X==T)q+=E;else{if(X==L)continue;break}}return O&&j!==!1&&(q+=E),Math.min(q,z)}function K(q){for(var ee=q-N,X=N;X<q;X++){var ie=P[X];(ie===12||ie===2)&&(ee-=1)}R.length||(U=F(),R.indent=U),M+=ee,R.push(M),N=q}for(var U=0;$-N>D-U;){var Y=N+D-U;if(P[Y-1]>=S&&P[Y]>=S){K(Y);continue}if(P[Y]==_||P[Y]==k){for(Y;Y!=N-1&&P[Y]!=_;Y--);if(Y>N){K(Y);continue}for(Y=N+D,Y;Y<P.length&&P[Y]==k;Y++);if(Y==P.length)break;K(Y);continue}for(var V=Math.max(Y-(D-(D>>2)),N-1);Y>V&&P[Y]<_;)Y--;if(O){for(;Y>V&&P[Y]<_;)Y--;for(;Y>V&&P[Y]==b;)Y--}else for(;Y>V&&P[Y]<S;)Y--;if(Y>V){K(++Y);continue}Y=N+D,P[Y]==C&&Y--,K(Y-U)}return R},A.prototype.$getDisplayTokens=function(P,D){var E=[],R;D=D||0;for(var $=0;$<P.length;$++){var N=P.charCodeAt($);if(N==9){R=this.getScreenTabSize(E.length+D),E.push(T);for(var M=1;M<R;M++)E.push(L)}else N==32?E.push(S):N>39&&N<48||N>57&&N<64?E.push(b):N>=4352&&I(N)?E.push(y,C):E.push(y)}return E},A.prototype.$getStringScreenWidth=function(P,D,E){if(D==0)return[0,0];D==null&&(D=1/0),E=E||0;var R,$;for($=0;$<P.length&&(R=P.charCodeAt($),R==9?E+=this.getScreenTabSize(E):R>=4352&&I(R)?E+=2:E+=1,!(E>D));$++);return[E,$]},A.prototype.getRowLength=function(P){var D=1;return this.lineWidgets&&(D+=this.lineWidgets[P]&&this.lineWidgets[P].rowCount||0),!this.$useWrapMode||!this.$wrapData[P]?D:this.$wrapData[P].length+D},A.prototype.getRowLineCount=function(P){return!this.$useWrapMode||!this.$wrapData[P]?1:this.$wrapData[P].length+1},A.prototype.getRowWrapIndent=function(P){if(this.$useWrapMode){var D=this.screenToDocumentPosition(P,Number.MAX_VALUE),E=this.$wrapData[D.row];return E.length&&E[0]<D.column?E.indent:0}else return 0},A.prototype.getScreenLastRowColumn=function(P){var D=this.screenToDocumentPosition(P,Number.MAX_VALUE);return this.documentToScreenColumn(D.row,D.column)},A.prototype.getDocumentLastRowColumn=function(P,D){var E=this.documentToScreenRow(P,D);return this.getScreenLastRowColumn(E)},A.prototype.getDocumentLastRowColumnPosition=function(P,D){var E=this.documentToScreenRow(P,D);return this.screenToDocumentPosition(E,Number.MAX_VALUE/10)},A.prototype.getRowSplitData=function(P){if(this.$useWrapMode)return this.$wrapData[P]},A.prototype.getScreenTabSize=function(P){return this.$tabSize-(P%this.$tabSize|0)},A.prototype.screenToDocumentRow=function(P,D){return this.screenToDocumentPosition(P,D).row},A.prototype.screenToDocumentColumn=function(P,D){return this.screenToDocumentPosition(P,D).column},A.prototype.screenToDocumentPosition=function(P,D,E){if(P<0)return{row:0,column:0};var R,$=0,N=0,M,O=0,j=0,z=this.$screenRowCache,F=this.$getRowCacheIndex(z,P),K=z.length;if(K&&F>=0)var O=z[F],$=this.$docRowCache[F],U=P>z[K-1];else var U=!K;for(var Y=this.getLength()-1,V=this.getNextFoldLine($),q=V?V.start.row:1/0;O<=P&&(j=this.getRowLength($),!(O+j>P||$>=Y));)O+=j,$++,$>q&&($=V.end.row+1,V=this.getNextFoldLine($,V),q=V?V.start.row:1/0),U&&(this.$docRowCache.push($),this.$screenRowCache.push(O));if(V&&V.start.row<=$)R=this.getFoldDisplayLine(V),$=V.start.row;else{if(O+j<=P||$>Y)return{row:Y,column:this.getLine(Y).length};R=this.getLine($),V=null}var ee=0,X=Math.floor(P-O);if(this.$useWrapMode){var ie=this.$wrapData[$];ie&&(M=ie[X],X>0&&ie.length&&(ee=ie.indent,N=ie[X-1]||ie[ie.length-1],R=R.substring(N)))}return E!==void 0&&this.$bidiHandler.isBidiRow(O+X,$,X)&&(D=this.$bidiHandler.offsetToCol(E)),N+=this.$getStringScreenWidth(R,D-ee)[1],this.$useWrapMode&&N>=M&&(N=M-1),V?V.idxToPosition(N):{row:$,column:N}},A.prototype.documentToScreenPosition=function(P,D){if(typeof D>"u")var E=this.$clipPositionToDocument(P.row,P.column);else E=this.$clipPositionToDocument(P,D);P=E.row,D=E.column;var R=0,$=null,N=null;N=this.getFoldAt(P,D,1),N&&(P=N.start.row,D=N.start.column);var M,O=0,j=this.$docRowCache,z=this.$getRowCacheIndex(j,P),F=j.length;if(F&&z>=0)var O=j[z],R=this.$screenRowCache[z],K=P>j[F-1];else var K=!F;for(var U=this.getNextFoldLine(O),Y=U?U.start.row:1/0;O<P;){if(O>=Y){if(M=U.end.row+1,M>P)break;U=this.getNextFoldLine(M,U),Y=U?U.start.row:1/0}else M=O+1;R+=this.getRowLength(O),O=M,K&&(this.$docRowCache.push(O),this.$screenRowCache.push(R))}var V="";U&&O>=Y?(V=this.getFoldDisplayLine(U,P,D),$=U.start.row):(V=this.getLine(P).substring(0,D),$=P);var q=0;if(this.$useWrapMode){var ee=this.$wrapData[$];if(ee){for(var X=0;V.length>=ee[X];)R++,X++;V=V.substring(ee[X-1]||0,V.length),q=X>0?ee.indent:0}}return this.lineWidgets&&this.lineWidgets[O]&&this.lineWidgets[O].rowsAbove&&(R+=this.lineWidgets[O].rowsAbove),{row:R,column:q+this.$getStringScreenWidth(V)[0]}},A.prototype.documentToScreenColumn=function(P,D){return this.documentToScreenPosition(P,D).column},A.prototype.documentToScreenRow=function(P,D){return this.documentToScreenPosition(P,D).row},A.prototype.getScreenLength=function(){var P=0,D=null;if(this.$useWrapMode)for(var $=this.$wrapData.length,N=0,R=0,D=this.$foldData[R++],M=D?D.start.row:1/0;N<$;){var O=this.$wrapData[N];P+=O?O.length+1:1,N++,N>M&&(N=D.end.row+1,D=this.$foldData[R++],M=D?D.start.row:1/0)}else{P=this.getLength();for(var E=this.$foldData,R=0;R<E.length;R++)D=E[R],P-=D.end.row-D.start.row}return this.lineWidgets&&(P+=this.$getWidgetScreenLength()),P},A.prototype.$setFontMetrics=function(P){this.$enableVarChar&&(this.$getStringScreenWidth=function(D,E,R){if(E===0)return[0,0];E||(E=1/0),R=R||0;var $,N;for(N=0;N<D.length&&($=D.charAt(N),$==="	"?R+=this.getScreenTabSize(R):R+=P.getCharacterWidth($),!(R>E));N++);return[R,N]})},A.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},A}();m.$uid=0,m.prototype.$modes=l.$modes,m.prototype.getValue=m.prototype.toString,m.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},m.prototype.$overwrite=!1,m.prototype.$mode=null,m.prototype.$modeId=null,m.prototype.$scrollTop=0,m.prototype.$scrollLeft=0,m.prototype.$wrapLimit=80,m.prototype.$useWrapMode=!1,m.prototype.$wrapLimitRange={min:null,max:null},m.prototype.lineWidgets=null,m.prototype.isFullWidth=I,i.implement(m.prototype,d);var y=1,C=2,_=3,k=4,b=9,S=10,T=11,L=12;function I(A){return A<4352?!1:A>=4352&&A<=4447||A>=4515&&A<=4519||A>=4602&&A<=4607||A>=9001&&A<=9002||A>=11904&&A<=11929||A>=11931&&A<=12019||A>=12032&&A<=12245||A>=12272&&A<=12283||A>=12288&&A<=12350||A>=12353&&A<=12438||A>=12441&&A<=12543||A>=12549&&A<=12589||A>=12593&&A<=12686||A>=12688&&A<=12730||A>=12736&&A<=12771||A>=12784&&A<=12830||A>=12832&&A<=12871||A>=12880&&A<=13054||A>=13056&&A<=19903||A>=19968&&A<=42124||A>=42128&&A<=42182||A>=43360&&A<=43388||A>=44032&&A<=55203||A>=55216&&A<=55238||A>=55243&&A<=55291||A>=63744&&A<=64255||A>=65040&&A<=65049||A>=65072&&A<=65106||A>=65108&&A<=65126||A>=65128&&A<=65131||A>=65281&&A<=65376||A>=65504&&A<=65510}r("./edit_session/folding").Folding.call(m.prototype),r("./edit_session/bracket_match").BracketMatch.call(m.prototype),l.defineOptions(m.prototype,"session",{wrap:{set:function(A){if(!A||A=="off"?A=!1:A=="free"?A=!0:A=="printMargin"?A=-1:typeof A=="string"&&(A=parseInt(A,10)||!1),this.$wrap!=A)if(this.$wrap=A,!A)this.setUseWrapMode(!1);else{var P=typeof A=="number"?A:null;this.setWrapLimitRange(P,P),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(A){A=A=="auto"?this.$mode.type!="text":A!="text",A!=this.$wrapAsCode&&(this.$wrapAsCode=A,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(A){this.$useWorker=A,this.$stopWorker(),A&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(A){A=parseInt(A),A>0&&this.$tabSize!==A&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=A,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(A){this.setFoldStyle(A)},handlesSet:!0},overwrite:{set:function(A){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(A){this.doc.setNewLineMode(A)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(A){this.setMode(A)},get:function(){return this.$modeId},handlesSet:!0}}),o.EditSession=m}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(r,o,n){var i=r("./lib/lang"),a=r("./lib/oop"),c=r("./range").Range,l=function(){function s(){this.$options={}}return s.prototype.set=function(u){return a.mixin(this.$options,u),this},s.prototype.getOptions=function(){return i.copyObject(this.$options)},s.prototype.setOptions=function(u){this.$options=u},s.prototype.find=function(u){var h=this.$options,f=this.$matchIterator(u,h);if(!f)return!1;var p=null;return f.forEach(function(g,v,m,y){return p=new c(g,v,m,y),v==y&&h.start&&h.start.start&&h.skipCurrent!=!1&&p.isEqual(h.start)?(p=null,!1):!0}),p},s.prototype.findAll=function(u){var h=this.$options;if(!h.needle)return[];this.$assembleRegExp(h);var f=h.range,p=f?u.getLines(f.start.row,f.end.row):u.doc.getAllLines(),g=[],v=h.re;if(h.$isMultiLine){var m=v.length,y=p.length-m,C;e:for(var _=v.offset||0;_<=y;_++){for(var k=0;k<m;k++)if(p[_+k].search(v[k])==-1)continue e;var b=p[_],S=p[_+m-1],T=b.length-b.match(v[0])[0].length,L=S.match(v[m-1])[0].length;C&&C.end.row===_&&C.end.column>T||(g.push(C=new c(_,T,_+m-1,L)),m>2&&(_=_+m-2))}}else for(var I=0;I<p.length;I++)for(var A=i.getMatchOffsets(p[I],v),k=0;k<A.length;k++){var P=A[k];g.push(new c(I,P.offset,I,P.offset+P.length))}if(f){for(var D=f.start.column,E=f.end.column,I=0,k=g.length-1;I<k&&g[I].start.column<D&&g[I].start.row==0;)I++;for(var R=f.end.row-f.start.row;I<k&&g[k].end.column>E&&g[k].end.row==R;)k--;for(g=g.slice(I,k+1),I=0,k=g.length;I<k;I++)g[I].start.row+=f.start.row,g[I].end.row+=f.start.row}return g},s.prototype.replace=function(u,h){var f=this.$options,p=this.$assembleRegExp(f);if(f.$isMultiLine)return h;if(p){var g=p.exec(u);if(!g||g[0].length!=u.length)return null;if(f.regExp||(h=h.replace(/\$/g,"$$$$")),h=u.replace(p,h),f.preserveCase){h=h.split("");for(var v=Math.min(u.length,u.length);v--;){var m=u[v];m&&m.toLowerCase()!=m?h[v]=h[v].toUpperCase():h[v]=h[v].toLowerCase()}h=h.join("")}return h}},s.prototype.$assembleRegExp=function(u,h){if(u.needle instanceof RegExp)return u.re=u.needle;var f=u.needle;if(!u.needle)return u.re=!1;u.regExp||(f=i.escapeRegExp(f));var p=u.caseSensitive?"gm":"gmi";try{new RegExp(f,"u"),u.$supportsUnicodeFlag=!0,p+="u"}catch{u.$supportsUnicodeFlag=!1}if(u.wholeWord&&(f=d(f,u)),u.$isMultiLine=!h&&/[\n\r]/.test(f),u.$isMultiLine)return u.re=this.$assembleMultilineRegExp(f,p);try{var g=new RegExp(f,p)}catch{g=!1}return u.re=g},s.prototype.$assembleMultilineRegExp=function(u,h){for(var f=u.replace(/\r\n|\r|\n/g,`$
   344  ^`).split(`
   345  `),p=[],g=0;g<f.length;g++)try{p.push(new RegExp(f[g],h))}catch{return!1}return p},s.prototype.$matchIterator=function(u,h){var f=this.$assembleRegExp(h);if(!f)return!1;var p=h.backwards==!0,g=h.skipCurrent!=!1,v=f.unicode,m=h.range,y=h.start;y||(y=m?m[p?"end":"start"]:u.selection.getRange()),y.start&&(y=y[g!=p?"end":"start"]);var C=m?m.start.row:0,_=m?m.end.row:u.getLength()-1;if(p)var k=function(T){var L=y.row;if(!S(L,y.column,T)){for(L--;L>=C;L--)if(S(L,Number.MAX_VALUE,T))return;if(h.wrap!=!1){for(L=_,C=y.row;L>=C;L--)if(S(L,Number.MAX_VALUE,T))return}}};else var k=function(L){var I=y.row;if(!S(I,y.column,L)){for(I=I+1;I<=_;I++)if(S(I,0,L))return;if(h.wrap!=!1){for(I=C,_=y.row;I<=_;I++)if(S(I,0,L))return}}};if(h.$isMultiLine)var b=f.length,S=function(T,L,I){var A=p?T-b+1:T;if(!(A<0||A+b>u.getLength())){var P=u.getLine(A),D=P.search(f[0]);if(!(!p&&D<L||D===-1)){for(var E=1;E<b;E++)if(P=u.getLine(A+E),P.search(f[E])==-1)return;var R=P.match(f[b-1])[0].length;if(!(p&&R>L)&&I(A,D,A+b-1,R))return!0}}};else if(p)var S=function(L,I,A){var P=u.getLine(L),D=[],E,R=0;for(f.lastIndex=0;E=f.exec(P);){var $=E[0].length;if(R=E.index,!$){if(R>=P.length)break;f.lastIndex=R+=i.skipEmptyMatch(P,R,v)}if(E.index+$>I)break;D.push(E.index,$)}for(var N=D.length-1;N>=0;N-=2){var M=D[N-1],$=D[N];if(A(L,M,L,M+$))return!0}};else var S=function(L,I,A){var P=u.getLine(L),D,E;for(f.lastIndex=I;E=f.exec(P);){var R=E[0].length;if(D=E.index,A(L,D,L,D+R))return!0;if(!R&&(f.lastIndex=D+=i.skipEmptyMatch(P,D,v),D>=P.length))return!1}};return{forEach:k}},s}();function d(s,u){var h=i.supportsLookbehind();function f(m,y){y===void 0&&(y=!0);var C=h&&u.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return C.test(m)||u.regExp?h&&u.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var p=Array.from(s),g=p[0],v=p[p.length-1];return f(g)+s+f(v,!1)}o.Search=l}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(r,o,n){var i=this&&this.__extends||function(){var h=function(f,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var m in v)Object.prototype.hasOwnProperty.call(v,m)&&(g[m]=v[m])},h(f,p)};return function(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");h(f,p);function g(){this.constructor=f}f.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),a=r("../lib/keys"),c=r("../lib/useragent"),l=a.KEY_MODS,d=function(){function h(f,p){this.$init(f,p,!1)}return h.prototype.$init=function(f,p,g){this.platform=p||(c.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(f),this.$singleCommand=g},h.prototype.addCommand=function(f){this.commands[f.name]&&this.removeCommand(f),this.commands[f.name]=f,f.bindKey&&this._buildKeyHash(f)},h.prototype.removeCommand=function(f,p){var g=f&&(typeof f=="string"?f:f.name);f=this.commands[g],p||delete this.commands[g];var v=this.commandKeyBinding;for(var m in v){var y=v[m];if(y==f)delete v[m];else if(Array.isArray(y)){var C=y.indexOf(f);C!=-1&&(y.splice(C,1),y.length==1&&(v[m]=y[0]))}}},h.prototype.bindKey=function(f,p,g){if(typeof f=="object"&&f&&(g==null&&(g=f.position),f=f[this.platform]),!!f){if(typeof p=="function")return this.addCommand({exec:p,bindKey:f,name:p.name||f});f.split("|").forEach(function(v){var m="";if(v.indexOf(" ")!=-1){var y=v.split(/\s+/);v=y.pop(),y.forEach(function(k){var b=this.parseKeys(k),S=l[b.hashId]+b.key;m+=(m?" ":"")+S,this._addCommandToBinding(m,"chainKeys")},this),m+=" "}var C=this.parseKeys(v),_=l[C.hashId]+C.key;this._addCommandToBinding(m+_,p,g)},this)}},h.prototype._addCommandToBinding=function(f,p,g){var v=this.commandKeyBinding,m;if(!p)delete v[f];else if(!v[f]||this.$singleCommand)v[f]=p;else{Array.isArray(v[f])?(m=v[f].indexOf(p))!=-1&&v[f].splice(m,1):v[f]=[v[f]],typeof g!="number"&&(g=s(p));var y=v[f];for(m=0;m<y.length;m++){var C=y[m],_=s(C);if(_>g)break}y.splice(m,0,p)}},h.prototype.addCommands=function(f){f&&Object.keys(f).forEach(function(p){var g=f[p];if(g){if(typeof g=="string")return this.bindKey(g,p);typeof g=="function"&&(g={exec:g}),typeof g=="object"&&(g.name||(g.name=p),this.addCommand(g))}},this)},h.prototype.removeCommands=function(f){Object.keys(f).forEach(function(p){this.removeCommand(f[p])},this)},h.prototype.bindKeys=function(f){Object.keys(f).forEach(function(p){this.bindKey(p,f[p])},this)},h.prototype._buildKeyHash=function(f){this.bindKey(f.bindKey,f)},h.prototype.parseKeys=function(f){var p=f.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(_){return _}),g=p.pop(),v=a[g];if(a.FUNCTION_KEYS[v])g=a.FUNCTION_KEYS[v].toLowerCase();else if(p.length){if(p.length==1&&p[0]=="shift")return{key:g.toUpperCase(),hashId:-1}}else return{key:g,hashId:-1};for(var m=0,y=p.length;y--;){var C=a.KEY_MODS[p[y]];if(C==null)return typeof console<"u"&&console.error("invalid modifier "+p[y]+" in "+f),!1;m|=C}return{key:g,hashId:m}},h.prototype.findKeyCommand=function(f,p){var g=l[f]+p;return this.commandKeyBinding[g]},h.prototype.handleKeyboard=function(f,p,g,v){if(!(v<0)){var m=l[p]+g,y=this.commandKeyBinding[m];return f.$keyChain&&(f.$keyChain+=" "+m,y=this.commandKeyBinding[f.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(f.$keyChain=f.$keyChain||m,{command:"null"}):(f.$keyChain&&((!p||p==4)&&g.length==1?f.$keyChain=f.$keyChain.slice(0,-m.length-1):(p==-1||v>0)&&(f.$keyChain="")),{command:y})}},h.prototype.getStatusText=function(f,p){return p.$keyChain||""},h}();function s(h){return typeof h=="object"&&h.bindKey&&h.bindKey.position||(h.isDefault?-100:0)}var u=function(h){i(f,h);function f(p,g){var v=h.call(this,p,g)||this;return v.$singleCommand=!0,v}return f}(d);u.call=function(h,f,p){d.prototype.$init.call(h,f,p,!0)},d.call=function(h,f,p){d.prototype.$init.call(h,f,p,!1)},o.HashHandler=u,o.MultiHashHandler=d}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(r,o,n){var i=this&&this.__extends||function(){var s=function(u,h){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(f[g]=p[g])},s(u,h)};return function(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");s(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),a=r("../lib/oop"),c=r("../keyboard/hash_handler").MultiHashHandler,l=r("../lib/event_emitter").EventEmitter,d=function(s){i(u,s);function u(h,f){var p=s.call(this,f,h)||this;return p.byName=p.commands,p.setDefaultHandler("exec",function(g){return g.args?g.command.exec(g.editor,g.args,g.event,!1):g.command.exec(g.editor,{},g.event,!0)}),p}return u.prototype.exec=function(h,f,p){if(Array.isArray(h)){for(var g=h.length;g--;)if(this.exec(h[g],f,p))return!0;return!1}if(typeof h=="string"&&(h=this.commands[h]),!h||f&&f.$readOnly&&!h.readOnly||this.$checkCommandState!=!1&&h.isAvailable&&!h.isAvailable(f))return!1;var v={editor:f,command:h,args:p};return v.returnValue=this._emit("exec",v),this._signal("afterExec",v),v.returnValue!==!1},u.prototype.toggleRecording=function(h){if(!this.$inReplay)return h&&h._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(f){this.macro.push([f.command,f.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},u.prototype.replay=function(h){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(h);try{this.$inReplay=!0,this.macro.forEach(function(f){typeof f=="string"?this.exec(f,h):this.exec(f[0],h,f[1])},this)}finally{this.$inReplay=!1}}},u.prototype.trimMacro=function(h){return h.map(function(f){return typeof f[0]!="string"&&(f[0]=f[0].name),f[1]||(f=f[0]),f})},u}(c);a.implement(d.prototype,l),o.CommandManager=d}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(r,o,n){var i=r("../lib/lang"),a=r("../config"),c=r("../range").Range;function l(s,u){return{win:s,mac:u}}o.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:l("Ctrl-,","Command-,"),exec:function(s){a.loadModule("ace/ext/settings_menu",function(u){u.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:l("Alt-E","F4"),exec:function(s){a.loadModule("ace/ext/error_marker",function(u){u.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:l("Alt-Shift-E","Shift-F4"),exec:function(s){a.loadModule("ace/ext/error_marker",function(u){u.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:l("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:l(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:l("Ctrl-L","Command-L"),exec:function(s,u){typeof u=="number"&&!isNaN(u)&&s.gotoLine(u),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:l("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(s){s.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:l("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(s){s.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:l("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:l("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:l("Alt-0","Command-Option-0"),exec:function(s){s.session.foldAll(),s.session.unfold(s.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:l("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:l("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:l("Ctrl-Shift-K","Command-Shift-G"),exec:function(s){s.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:l("Alt-K","Ctrl-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:l("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:l("Ctrl-F","Command-F"),exec:function(s){a.loadModule("ace/ext/searchbox",function(u){u.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:l("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(s){s.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:l("Ctrl-Home","Command-Home|Command-Up"),exec:function(s){s.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:l("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(s){s.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:l("Up","Up|Ctrl-P"),exec:function(s,u){s.navigateUp(u.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:l("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(s){s.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:l("Ctrl-End","Command-End|Command-Down"),exec:function(s){s.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:l("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(s){s.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:l("Down","Down|Ctrl-N"),exec:function(s,u){s.navigateDown(u.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:l("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(s){s.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:l("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:l("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:l("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:l("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(s){s.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:l("Left","Left|Ctrl-B"),exec:function(s,u){s.navigateLeft(u.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:l("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(s){s.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:l("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:l("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:l("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:l("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:l("Right","Right|Ctrl-F"),exec:function(s,u){s.navigateRight(u.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(s){s.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:l(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:l("PageDown","PageDown|Ctrl-V"),exec:function(s){s.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(s){s.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:l(null,"Option-PageUp"),exec:function(s){s.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(s){s.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:l("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:l("Ctrl-Down",null),exec:function(s){s.renderer.scrollBy(0,2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:l("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:l("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:l("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:l("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(s){s.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:l("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(s){s.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:l(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(s){},readOnly:!0},{name:"cut",description:"Cut",exec:function(s){var u=s.$copyWithEmptySelection&&s.selection.isEmpty(),h=u?s.selection.getLineRange():s.selection.getRange();s._emit("cut",h),h.isEmpty()||s.session.remove(h),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,u){s.$handlePaste(u)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:l("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:l("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:l("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:l("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:l("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:l("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:l("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:l("Ctrl-H","Command-Option-F"),exec:function(s){a.loadModule("ace/ext/searchbox",function(u){u.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:l("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:l("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:l("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:l("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:l("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:l("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:l("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:l("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(s){s.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:l("Shift-Delete",null),exec:function(s){if(s.selection.isEmpty())s.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:l("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:l("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:l("Ctrl-Shift-Backspace",null),exec:function(s){var u=s.selection.getRange();u.start.column=0,s.session.remove(u)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:l("Ctrl-Shift-Delete",null),exec:function(s){var u=s.selection.getRange();u.end.column=Number.MAX_VALUE,s.session.remove(u)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:l("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:l("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:l("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:l("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:l("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:l("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,u){s.insert(u)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,u){s.insert(i.stringRepeat(u.text||"",u.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:l(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:l("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:l("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:l("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:l(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:l("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var u=s.selection.getRange();u.start.column=u.end.column=0,u.end.row++,s.selection.setRange(u,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:l("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:l(null,null),exec:function(s){for(var u=s.selection.isBackwards(),h=u?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),f=u?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),p=s.session.doc.getLine(h.row).length,g=s.session.doc.getTextRange(s.selection.getRange()),v=g.replace(/\n\s*/," ").length,m=s.session.doc.getLine(h.row),y=h.row+1;y<=f.row+1;y++){var C=i.stringTrimLeft(i.stringTrimRight(s.session.doc.getLine(y)));C.length!==0&&(C=" "+C),m+=C}f.row+1<s.session.doc.getLength()-1&&(m+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new c(h.row,0,f.row+2,0),m),v>0?(s.selection.moveCursorTo(h.row,h.column),s.selection.selectTo(h.row,h.column+v)):(p=s.session.doc.getLine(h.row).length>p?p+1:p,s.selection.moveCursorTo(h.row,p))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:l(null,null),exec:function(s){var u=s.session.doc.getLength()-1,h=s.session.doc.getLine(u).length,f=s.selection.rangeList.ranges,p=[];f.length<1&&(f=[s.selection.getRange()]);for(var g=0;g<f.length;g++)g==f.length-1&&(f[g].end.row===u&&f[g].end.column===h||p.push(new c(f[g].end.row,f[g].end.column,u,h))),g===0?f[g].start.row===0&&f[g].start.column===0||p.push(new c(0,0,f[g].start.row,f[g].start.column)):p.push(new c(f[g-1].end.row,f[g-1].end.column,f[g].start.row,f[g].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var g=0;g<p.length;g++)s.selection.addRange(p[g],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(s){s.selection.clearSelection(),s.navigateLineEnd(),s.insert(`
   346  `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var u=s.getCursorPosition();s.selection.moveTo(u.row-1,Number.MAX_VALUE),s.insert(`
   347  `),u.row===0&&s.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(s){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),s.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:l("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:l(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var d=1;d<9;d++)o.commands.push({name:"foldToLevel"+d,description:"Fold To Level "+d,level:d,exec:function(s){s.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(r,o,n){var i=r("./lib/dom"),a=function(){function c(l){this.session=l,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return c.prototype.getRowLength=function(l){var d;return this.lineWidgets?d=this.lineWidgets[l]&&this.lineWidgets[l].rowCount||0:d=0,!this.$useWrapMode||!this.$wrapData[l]?1+d:this.$wrapData[l].length+1+d},c.prototype.$getWidgetScreenLength=function(){var l=0;return this.lineWidgets.forEach(function(d){d&&d.rowCount&&!d.hidden&&(l+=d.rowCount)}),l},c.prototype.$onChangeEditor=function(l){this.attach(l.editor)},c.prototype.attach=function(l){l&&l.widgetManager&&l.widgetManager!=this&&l.widgetManager.detach(),this.editor!=l&&(this.detach(),this.editor=l,l&&(l.widgetManager=this,l.renderer.on("beforeRender",this.measureWidgets),l.renderer.on("afterRender",this.renderWidgets)))},c.prototype.detach=function(l){var d=this.editor;if(d){this.editor=null,d.widgetManager=null,d.renderer.off("beforeRender",this.measureWidgets),d.renderer.off("afterRender",this.renderWidgets);var s=this.session.lineWidgets;s&&s.forEach(function(u){u&&u.el&&u.el.parentNode&&(u._inDocument=!1,u.el.parentNode.removeChild(u.el))})}},c.prototype.updateOnFold=function(l,d){var s=d.lineWidgets;if(!(!s||!l.action)){for(var u=l.data,h=u.start.row,f=u.end.row,p=l.action=="add",g=h+1;g<f;g++)s[g]&&(s[g].hidden=p);s[f]&&(p?s[h]?s[f].hidden=p:s[h]=s[f]:(s[h]==s[f]&&(s[h]=void 0),s[f].hidden=p))}},c.prototype.updateOnChange=function(l){var d=this.session.lineWidgets;if(d){var s=l.start.row,u=l.end.row-s;if(u!==0)if(l.action=="remove"){var h=d.splice(s+1,u);!d[s]&&h[h.length-1]&&(d[s]=h.pop()),h.forEach(function(p){p&&this.removeLineWidget(p)},this),this.$updateRows()}else{var f=new Array(u);d[s]&&d[s].column!=null&&l.start.column>d[s].column&&s++,f.unshift(s,0),d.splice.apply(d,f),this.$updateRows()}}},c.prototype.$updateRows=function(){var l=this.session.lineWidgets;if(l){var d=!0;l.forEach(function(s,u){if(s)for(d=!1,s.row=u;s.$oldWidget;)s.$oldWidget.row=u,s=s.$oldWidget}),d&&(this.session.lineWidgets=null)}},c.prototype.$registerLineWidget=function(l){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var d=this.session.lineWidgets[l.row];return d&&(l.$oldWidget=d,d.el&&d.el.parentNode&&(d.el.parentNode.removeChild(d.el),d._inDocument=!1)),this.session.lineWidgets[l.row]=l,l},c.prototype.addLineWidget=function(l){if(this.$registerLineWidget(l),l.session=this.session,!this.editor)return l;var d=this.editor.renderer;l.html&&!l.el&&(l.el=i.createElement("div"),l.el.innerHTML=l.html),l.text&&!l.el&&(l.el=i.createElement("div"),l.el.textContent=l.text),l.el&&(i.addCssClass(l.el,"ace_lineWidgetContainer"),l.className&&i.addCssClass(l.el,l.className),l.el.style.position="absolute",l.el.style.zIndex="5",d.container.appendChild(l.el),l._inDocument=!0,l.coverGutter||(l.el.style.zIndex="3"),l.pixelHeight==null&&(l.pixelHeight=l.el.offsetHeight)),l.rowCount==null&&(l.rowCount=l.pixelHeight/d.layerConfig.lineHeight);var s=this.session.getFoldAt(l.row,0);if(l.$fold=s,s){var u=this.session.lineWidgets;l.row==s.end.row&&!u[s.start.row]?u[s.start.row]=l:l.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:l.row}}}),this.$updateRows(),this.renderWidgets(null,d),this.onWidgetChanged(l),l},c.prototype.removeLineWidget=function(l){if(l._inDocument=!1,l.session=null,l.el&&l.el.parentNode&&l.el.parentNode.removeChild(l.el),l.editor&&l.editor.destroy)try{l.editor.destroy()}catch{}if(this.session.lineWidgets){var d=this.session.lineWidgets[l.row];if(d==l)this.session.lineWidgets[l.row]=l.$oldWidget,l.$oldWidget&&this.onWidgetChanged(l.$oldWidget);else for(;d;){if(d.$oldWidget==l){d.$oldWidget=l.$oldWidget;break}d=d.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:l.row}}}),this.$updateRows()},c.prototype.getWidgetsAtRow=function(l){for(var d=this.session.lineWidgets,s=d&&d[l],u=[];s;)u.push(s),s=s.$oldWidget;return u},c.prototype.onWidgetChanged=function(l){this.session._changedWidgets.push(l),this.editor&&this.editor.renderer.updateFull()},c.prototype.measureWidgets=function(l,d){var s=this.session._changedWidgets,u=d.layerConfig;if(!(!s||!s.length)){for(var h=1/0,f=0;f<s.length;f++){var p=s[f];if(!(!p||!p.el)&&p.session==this.session){if(!p._inDocument){if(this.session.lineWidgets[p.row]!=p)continue;p._inDocument=!0,d.container.appendChild(p.el)}p.h=p.el.offsetHeight,p.fixedWidth||(p.w=p.el.offsetWidth,p.screenWidth=Math.ceil(p.w/u.characterWidth));var g=p.h/u.lineHeight;p.coverLine&&(g-=this.session.getRowLineCount(p.row),g<0&&(g=0)),p.rowCount!=g&&(p.rowCount=g,p.row<h&&(h=p.row))}}h!=1/0&&(this.session._emit("changeFold",{data:{start:{row:h}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},c.prototype.renderWidgets=function(l,d){var s=d.layerConfig,u=this.session.lineWidgets;if(u){for(var h=Math.min(this.firstRow,s.firstRow),f=Math.max(this.lastRow,s.lastRow,u.length);h>0&&!u[h];)h--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,d.$cursorLayer.config=s;for(var p=h;p<=f;p++){var g=u[p];if(!(!g||!g.el)){if(g.hidden){g.el.style.top=-100-(g.pixelHeight||0)+"px";continue}g._inDocument||(g._inDocument=!0,d.container.appendChild(g.el));var v=d.$cursorLayer.getPixelPosition({row:p,column:0},!0).top;g.coverLine||(v+=s.lineHeight*this.session.getRowLineCount(g.row)),g.el.style.top=v-s.offset+"px";var m=g.coverGutter?0:d.gutterWidth;g.fixedWidth||(m-=d.scrollLeft),g.el.style.left=m+"px",g.fullWidth&&g.screenWidth&&(g.el.style.minWidth=s.width+2*s.padding+"px"),g.fixedWidth?g.el.style.right=d.scrollBar.getWidth()+"px":g.el.style.right=""}}}},c}();o.LineWidgets=a}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(r,o,n){var i=r("../lib/keys"),a=r("../mouse/default_gutter_handler").GutterTooltip,c=function(){function d(s){this.editor=s,this.gutterLayer=s.renderer.$gutterLayer,this.element=s.renderer.$gutter,this.lines=s.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new a(this.editor)}return d.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},d.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},d.prototype.$onGutterKeyDown=function(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===i.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=i.enter)return;s.preventDefault();var u=this.editor.getCursorPosition().row;this.editor.isRowVisible(u)||this.editor.scrollToLine(u,!0,!0),setTimeout((function(){var h=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),f=this.$findNearestFoldWidget(h),p=this.$findNearestAnnotation(h);if(!(f===null&&p===null)){if(f===null&&p!==null){this.activeRowIndex=p,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(f!==null&&p===null){this.activeRowIndex=f,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(p-h)<Math.abs(f-h)){this.activeRowIndex=p,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=f,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(s),setTimeout((function(){this.editor._signal("gutterkeydown",new l(s,this))}).bind(this),10)},d.prototype.$handleGutterKeyboardInteraction=function(s){if(s.keyCode===i.tab){s.preventDefault();return}if(s.keyCode===i.escape){s.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(s.keyCode===i.up){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(s.keyCode===i.down){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(s.keyCode===i.left){s.preventDefault(),this.$switchLane("annotation");return}if(s.keyCode===i.right){s.preventDefault(),this.$switchLane("fold");return}if(s.keyCode===i.enter||s.keyCode===i.space){switch(s.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var u=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),s),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==u&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(u),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var h=this.lines.cells[this.activeRowIndex].element.childNodes[2],f=h.getBoundingClientRect(),p=this.annotationTooltip.getElement().style;p.left=f.right+"px",p.top=f.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},d.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},d.prototype.$isFoldWidgetVisible=function(s){var u=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),h=this.$getFoldWidget(s).style.display!=="none";return u&&h},d.prototype.$isAnnotationVisible=function(s){var u=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),h=this.$getAnnotation(s).style.display!=="none";return u&&h},d.prototype.$getFoldWidget=function(s){var u=this.lines.get(s),h=u.element;return h.childNodes[1]},d.prototype.$getAnnotation=function(s){var u=this.lines.get(s),h=u.element;return h.childNodes[2]},d.prototype.$findNearestFoldWidget=function(s){if(this.$isFoldWidgetVisible(s))return s;for(var u=0;s-u>0||s+u<this.lines.getLength()-1;){if(u++,s-u>=0&&this.$isFoldWidgetVisible(s-u))return s-u;if(s+u<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+u))return s+u}return null},d.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var u=0;s-u>0||s+u<this.lines.getLength()-1;){if(u++,s-u>=0&&this.$isAnnotationVisible(s-u))return s-u;if(s+u<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+u))return s+u}return null},d.prototype.$focusFoldWidget=function(s){if(s!=null){var u=this.$getFoldWidget(s);u.classList.add(this.editor.renderer.keyboardFocusClassName),u.focus()}},d.prototype.$focusAnnotation=function(s){if(s!=null){var u=this.$getAnnotation(s);u.classList.add(this.editor.renderer.keyboardFocusClassName),u.focus()}},d.prototype.$blurFoldWidget=function(s){var u=this.$getFoldWidget(s);u.classList.remove(this.editor.renderer.keyboardFocusClassName),u.blur()},d.prototype.$blurAnnotation=function(s){var u=this.$getAnnotation(s);u.classList.remove(this.editor.renderer.keyboardFocusClassName),u.blur()},d.prototype.$moveFoldWidgetUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},d.prototype.$moveFoldWidgetDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},d.prototype.$moveAnnotationUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},d.prototype.$moveAnnotationDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},d.prototype.$switchLane=function(s){switch(s){case"annotation":if(this.activeLane==="annotation")break;var u=this.$findNearestAnnotation(this.activeRowIndex);if(u==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=u,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var h=this.$findNearestFoldWidget(this.activeRowIndex);if(h==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=h,this.$focusFoldWidget(this.activeRowIndex);break}},d.prototype.$rowIndexToRow=function(s){var u=this.lines.get(s);return u?u.row:null},d.prototype.$rowToRowIndex=function(s){for(var u=0;u<this.lines.getLength();u++){var h=this.lines.get(u);if(h.row==s)return u}return null},d}();o.GutterKeyboardHandler=c;var l=function(){function d(s,u){this.gutterKeyboardHandler=u,this.domEvent=s}return d.prototype.getKey=function(){return i.keyCodeToString(this.domEvent.keyCode)},d.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},d.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},d.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},d}();o.GutterKeyboardEvent=l}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(r,o,n){var i=this&&this.__values||function(D){var E=typeof Symbol=="function"&&Symbol.iterator,R=E&&D[E],$=0;if(R)return R.call(D);if(D&&typeof D.length=="number")return{next:function(){return D&&$>=D.length&&(D=void 0),{value:D&&D[$++],done:!D}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")},a=r("./lib/oop"),c=r("./lib/dom"),l=r("./lib/lang"),d=r("./lib/useragent"),s=r("./keyboard/textinput").TextInput,u=r("./mouse/mouse_handler").MouseHandler,h=r("./mouse/fold_handler").FoldHandler,f=r("./keyboard/keybinding").KeyBinding,p=r("./edit_session").EditSession,g=r("./search").Search,v=r("./range").Range,m=r("./lib/event_emitter").EventEmitter,y=r("./commands/command_manager").CommandManager,C=r("./commands/default_commands").commands,_=r("./config"),k=r("./token_iterator").TokenIterator,b=r("./line_widgets").LineWidgets,S=r("./keyboard/gutter_handler").GutterKeyboardHandler,T=r("./config").nls,L=r("./clipboard"),I=r("./lib/keys"),A=function(){function D(E,R,$){this.session,this.$toDestroy=[];var N=E.getContainerElement();this.container=N,this.renderer=E,this.id="editor"+ ++D.$uid,this.commands=new y(d.isMac?"mac":"win",C),typeof document=="object"&&(this.textInput=new s(E.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new u(this),new h(this)),this.keyBinding=new f(this),this.$search=new g().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=l.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(M,O){O._$emitInputEvent.schedule(31)}),this.setSession(R||$&&$.session||new p("")),_.resetOptions(this),$&&this.setOptions($),_._signal("editor",this)}return D.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=l.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},D.prototype.startOperation=function(E){if(this.curOp){if(!E||this.curOp.command)return;this.prevOp=this.curOp}E||(this.previousCommand=null,E={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:E.command||{},args:E.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},D.prototype.endOperation=function(E){if(this.curOp&&this.session){if(E&&E.returnValue===!1||!this.session)return this.curOp=null;if(E==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var R=this.curOp.command,$=R&&R.scrollIntoView;if($){switch($){case"center-animate":$="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var N=this.selection.getRange(),M=this.renderer.layerConfig;(N.start.row>=M.lastRow||N.end.row<=M.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}$=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var O=this.selection.toJSON();this.curOp.selectionAfter=O,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(O),this.prevOp=this.curOp,this.curOp=null}},D.prototype.$historyTracker=function(E){if(this.$mergeUndoDeltas){var R=this.prevOp,$=this.$mergeableCommands,N=R.command&&E.command.name==R.command.name;if(E.command.name=="insertstring"){var M=E.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),N=N&&this.mergeNextCommand&&(!/\s/.test(M)||/\s/.test(R.args)),this.mergeNextCommand=!0}else N=N&&$.indexOf(E.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(N=!1),N?this.session.mergeUndoDeltas=!0:$.indexOf(E.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},D.prototype.setKeyboardHandler=function(E,R){if(E&&typeof E=="string"&&E!="ace"){this.$keybindingId=E;var $=this;_.loadModule(["keybinding",E],function(N){$.$keybindingId==E&&$.keyBinding.setKeyboardHandler(N&&N.handler),R&&R()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(E),R&&R()},D.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},D.prototype.setSession=function(E){if(this.session!=E){this.curOp&&this.endOperation(),this.curOp={};var R=this.session;if(R){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var $=this.session.getSelection();$.off("changeCursor",this.$onCursorChange),$.off("changeSelection",this.$onSelectionChange)}this.session=E,E?(this.$onDocumentChange=this.onDocumentChange.bind(this),E.on("change",this.$onDocumentChange),this.renderer.setSession(E),this.$onChangeMode=this.onChangeMode.bind(this),E.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),E.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),E.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),E.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),E.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),E.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=E.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(E)),this._signal("changeSession",{session:E,oldSession:R}),this.curOp=null,R&&R._signal("changeEditor",{oldEditor:this}),E&&E._signal("changeEditor",{editor:this}),E&&!E.destroyed&&E.bgTokenizer.scheduleStart()}},D.prototype.getSession=function(){return this.session},D.prototype.setValue=function(E,R){return this.session.doc.setValue(E),R?R==1?this.navigateFileEnd():R==-1&&this.navigateFileStart():this.selectAll(),E},D.prototype.getValue=function(){return this.session.getValue()},D.prototype.getSelection=function(){return this.selection},D.prototype.resize=function(E){this.renderer.onResize(E)},D.prototype.setTheme=function(E,R){this.renderer.setTheme(E,R)},D.prototype.getTheme=function(){return this.renderer.getTheme()},D.prototype.setStyle=function(E){this.renderer.setStyle(E)},D.prototype.unsetStyle=function(E){this.renderer.unsetStyle(E)},D.prototype.getFontSize=function(){return this.getOption("fontSize")||c.computedStyle(this.container).fontSize},D.prototype.setFontSize=function(E){this.setOption("fontSize",E)},D.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var E=this;this.$highlightPending=!0,setTimeout(function(){E.$highlightPending=!1;var R=E.session;if(!(!R||R.destroyed)){R.$bracketHighlight&&(R.$bracketHighlight.markerIds.forEach(function(U){R.removeMarker(U)}),R.$bracketHighlight=null);var $=E.getCursorPosition(),N=E.getKeyboardHandler(),M=N&&N.$getDirectionForHighlight&&N.$getDirectionForHighlight(E),O=R.getMatchingBracketRanges($,M);if(!O){var j=new k(R,$.row,$.column),z=j.getCurrentToken();if(z&&/\b(?:tag-open|tag-name)/.test(z.type)){var F=R.getMatchingTags($);F&&(O=[F.openTagName,F.closeTagName])}}if(!O&&R.$mode.getMatching&&(O=R.$mode.getMatching(E.session)),!O){E.getHighlightIndentGuides()&&E.renderer.$textLayer.$highlightIndentGuide();return}var K="ace_bracket";Array.isArray(O)?O.length==1&&(K="ace_error_bracket"):O=[O],O.length==2&&(v.comparePoints(O[0].end,O[1].start)==0?O=[v.fromPoints(O[0].start,O[1].end)]:v.comparePoints(O[0].start,O[1].end)==0&&(O=[v.fromPoints(O[1].start,O[0].end)])),R.$bracketHighlight={ranges:O,markerIds:O.map(function(U){return R.addMarker(U,K,"text")})},E.getHighlightIndentGuides()&&E.renderer.$textLayer.$highlightIndentGuide()}},50)}},D.prototype.focus=function(){this.textInput.focus()},D.prototype.isFocused=function(){return this.textInput.isFocused()},D.prototype.blur=function(){this.textInput.blur()},D.prototype.onFocus=function(E){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",E))},D.prototype.onBlur=function(E){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",E))},D.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},D.prototype.onDocumentChange=function(E){var R=this.session.$useWrapMode,$=E.start.row==E.end.row?E.end.row:1/0;this.renderer.updateLines(E.start.row,$,R),this._signal("change",E),this.$cursorChange()},D.prototype.onTokenizerUpdate=function(E){var R=E.data;this.renderer.updateLines(R.first,R.last)},D.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},D.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},D.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},D.prototype.$updateHighlightActiveLine=function(){var E=this.getSession(),R;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(R=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(R=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(R=!1)),E.$highlightLineMarker&&!R)E.removeMarker(E.$highlightLineMarker.id),E.$highlightLineMarker=null;else if(!E.$highlightLineMarker&&R){var $=new v(R.row,R.column,R.row,1/0);$.id=E.addMarker($,"ace_active-line","screenLine"),E.$highlightLineMarker=$}else R&&(E.$highlightLineMarker.start.row=R.row,E.$highlightLineMarker.end.row=R.row,E.$highlightLineMarker.start.column=R.column,E._signal("changeBackMarker"))},D.prototype.onSelectionChange=function(E){var R=this.session;if(R.$selectionMarker&&R.removeMarker(R.$selectionMarker),R.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var $=this.selection.getRange(),N=this.getSelectionStyle();R.$selectionMarker=R.addMarker($,"ace_selection",N)}var M=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(M),this._signal("changeSelection")},D.prototype.$getSelectionHighLightRegexp=function(){var E=this.session,R=this.getSelectionRange();if(!(R.isEmpty()||R.isMultiLine())){var $=R.start.column,N=R.end.column,M=E.getLine(R.start.row),O=M.substring($,N);if(!(O.length>5e3||!/[\w\d]/.test(O))){var j=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:O}),z=M.substring($-1,N+1);if(j.test(z))return j}}},D.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},D.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},D.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},D.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},D.prototype.onChangeMode=function(E){this.renderer.updateText(),this._emit("changeMode",E)},D.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},D.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},D.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},D.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},D.prototype.getCopyText=function(){var E=this.getSelectedText(),R=this.session.doc.getNewLineCharacter(),$=!1;if(!E&&this.$copyWithEmptySelection){$=!0;for(var N=this.selection.getAllRanges(),M=0;M<N.length;M++){var O=N[M];M&&N[M-1].start.row==O.start.row||(E+=this.session.getLine(O.start.row)+R)}}var j={text:E};return this._signal("copy",j),L.lineMode=$?j.text:!1,j.text},D.prototype.onCopy=function(){this.commands.exec("copy",this)},D.prototype.onCut=function(){this.commands.exec("cut",this)},D.prototype.onPaste=function(E,R){var $={text:E,event:R};this.commands.exec("paste",this,$)},D.prototype.$handlePaste=function(E){typeof E=="string"&&(E={text:E}),this._signal("paste",E);var R=E.text,$=R===L.lineMode,N=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)$?N.insert({row:this.selection.lead.row,column:0},R):this.insert(R);else if($)this.selection.rangeList.ranges.forEach(function(K){N.insert({row:K.start.row,column:0},R)});else{var M=R.split(/\r\n|\r|\n/),O=this.selection.rangeList.ranges,j=M.length==2&&(!M[0]||!M[1]);if(M.length!=O.length||j)return this.commands.exec("insertstring",this,R);for(var z=O.length;z--;){var F=O[z];F.isEmpty()||N.remove(F),N.insert(F.start,M[z])}}},D.prototype.execCommand=function(E,R){return this.commands.exec(E,this,R)},D.prototype.insert=function(E,R){var $=this.session,N=$.getMode(),M=this.getCursorPosition();if(this.getBehavioursEnabled()&&!R){var O=N.transformAction($.getState(M.row),"insertion",this,$,E);O&&(E!==O.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),E=O.text)}if(E=="	"&&(E=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&E.indexOf(`
   348  `)==-1){var j=v.fromPoints(M,M);j.end.column+=E.length,this.session.remove(j)}}else{var j=this.getSelectionRange();M=this.session.remove(j),this.clearSelection()}if(E==`
   349  `||E==`\r
   350  `){var U=$.getLine(M.row);if(M.column>U.search(/\S|$/)){var z=U.substr(M.column).search(/\S|$/);$.doc.removeInLine(M.row,M.column,M.column+z)}}this.clearSelection();var F=M.column,K=$.getState(M.row),U=$.getLine(M.row),Y=N.checkOutdent(K,U,E);if($.insert(M,E),O&&O.selection&&(O.selection.length==2?this.selection.setSelectionRange(new v(M.row,F+O.selection[0],M.row,F+O.selection[1])):this.selection.setSelectionRange(new v(M.row+O.selection[0],O.selection[1],M.row+O.selection[2],O.selection[3]))),this.$enableAutoIndent){if($.getDocument().isNewLine(E)){var V=N.getNextLineIndent(K,U.slice(0,M.column),$.getTabString());$.insert({row:M.row+1,column:0},V)}Y&&N.autoOutdent(K,$,M.row)}},D.prototype.autoIndent=function(){for(var E=this.session,R=E.getMode(),$=this.selection.isEmpty()?[new v(0,0,E.doc.getLength()-1,0)]:this.selection.getAllRanges(),N="",M="",O="",j=E.getTabString(),z=0;z<$.length;z++)for(var F=$[z].start.row,K=$[z].end.row,U=F;U<=K;U++){U>0&&(N=E.getState(U-1),M=E.getLine(U-1),O=R.getNextLineIndent(N,M,j));var Y=E.getLine(U),V=R.$getIndent(Y);if(O!==V){if(V.length>0){var q=new v(U,0,U,V.length);E.remove(q)}O.length>0&&E.insert({row:U,column:0},O)}R.autoOutdent(N,E,U)}},D.prototype.onTextInput=function(E,R){if(!R)return this.keyBinding.onTextInput(E);this.startOperation({command:{name:"insertstring"}});var $=this.applyComposition.bind(this,E,R);this.selection.rangeCount?this.forEachSelection($):$(),this.endOperation()},D.prototype.applyComposition=function(E,R){if(R.extendLeft||R.extendRight){var $=this.selection.getRange();$.start.column-=R.extendLeft,$.end.column+=R.extendRight,$.start.column<0&&($.start.row--,$.start.column+=this.session.getLine($.start.row).length+1),this.selection.setRange($),!E&&!$.isEmpty()&&this.remove()}if((E||!this.selection.isEmpty())&&this.insert(E,!0),R.restoreStart||R.restoreEnd){var $=this.selection.getRange();$.start.column-=R.restoreStart,$.end.column-=R.restoreEnd,this.selection.setRange($)}},D.prototype.onCommandKey=function(E,R,$){return this.keyBinding.onCommandKey(E,R,$)},D.prototype.setOverwrite=function(E){this.session.setOverwrite(E)},D.prototype.getOverwrite=function(){return this.session.getOverwrite()},D.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},D.prototype.setScrollSpeed=function(E){this.setOption("scrollSpeed",E)},D.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},D.prototype.setDragDelay=function(E){this.setOption("dragDelay",E)},D.prototype.getDragDelay=function(){return this.getOption("dragDelay")},D.prototype.setSelectionStyle=function(E){this.setOption("selectionStyle",E)},D.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},D.prototype.setHighlightActiveLine=function(E){this.setOption("highlightActiveLine",E)},D.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},D.prototype.setHighlightGutterLine=function(E){this.setOption("highlightGutterLine",E)},D.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},D.prototype.setHighlightSelectedWord=function(E){this.setOption("highlightSelectedWord",E)},D.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},D.prototype.setAnimatedScroll=function(E){this.renderer.setAnimatedScroll(E)},D.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},D.prototype.setShowInvisibles=function(E){this.renderer.setShowInvisibles(E)},D.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},D.prototype.setDisplayIndentGuides=function(E){this.renderer.setDisplayIndentGuides(E)},D.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},D.prototype.setHighlightIndentGuides=function(E){this.renderer.setHighlightIndentGuides(E)},D.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},D.prototype.setShowPrintMargin=function(E){this.renderer.setShowPrintMargin(E)},D.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},D.prototype.setPrintMarginColumn=function(E){this.renderer.setPrintMarginColumn(E)},D.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},D.prototype.setReadOnly=function(E){this.setOption("readOnly",E)},D.prototype.getReadOnly=function(){return this.getOption("readOnly")},D.prototype.setBehavioursEnabled=function(E){this.setOption("behavioursEnabled",E)},D.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},D.prototype.setWrapBehavioursEnabled=function(E){this.setOption("wrapBehavioursEnabled",E)},D.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},D.prototype.setShowFoldWidgets=function(E){this.setOption("showFoldWidgets",E)},D.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},D.prototype.setFadeFoldWidgets=function(E){this.setOption("fadeFoldWidgets",E)},D.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},D.prototype.remove=function(E){this.selection.isEmpty()&&(E=="left"?this.selection.selectLeft():this.selection.selectRight());var R=this.getSelectionRange();if(this.getBehavioursEnabled()){var $=this.session,N=$.getState(R.start.row),M=$.getMode().transformAction(N,"deletion",this,$,R);if(R.end.column===0){var O=$.getTextRange(R);if(O[O.length-1]==`
   351  `){var j=$.getLine(R.end.row);/^\s+$/.test(j)&&(R.end.column=j.length)}}M&&(R=M)}this.session.remove(R),this.clearSelection()},D.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},D.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},D.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},D.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var E=this.getSelectionRange();E.start.column==E.end.column&&E.start.row==E.end.row&&(E.end.column=0,E.end.row++),this.session.remove(E),this.clearSelection()},D.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var E=this.getCursorPosition();this.insert(`
   352  `),this.moveCursorToPosition(E)},D.prototype.setGhostText=function(E,R){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(E,R)},D.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},D.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var E=this.getCursorPosition(),R=E.column;if(R!==0){var $=this.session.getLine(E.row),N,M;R<$.length?(N=$.charAt(R)+$.charAt(R-1),M=new v(E.row,R-1,E.row,R+1)):(N=$.charAt(R-1)+$.charAt(R-2),M=new v(E.row,R-2,E.row,R)),this.session.replace(M,N),this.session.selection.moveToPosition(M.end)}}},D.prototype.toLowerCase=function(){var E=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var R=this.getSelectionRange(),$=this.session.getTextRange(R);this.session.replace(R,$.toLowerCase()),this.selection.setSelectionRange(E)},D.prototype.toUpperCase=function(){var E=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var R=this.getSelectionRange(),$=this.session.getTextRange(R);this.session.replace(R,$.toUpperCase()),this.selection.setSelectionRange(E)},D.prototype.indent=function(){var E=this.session,R=this.getSelectionRange();if(R.start.row<R.end.row){var $=this.$getSelectedRows();E.indentRows($.first,$.last,"	");return}else if(R.start.column<R.end.column){var N=E.getTextRange(R);if(!/^\s+$/.test(N)){var $=this.$getSelectedRows();E.indentRows($.first,$.last,"	");return}}var M=E.getLine(R.start.row),O=R.start,j=E.getTabSize(),z=E.documentToScreenColumn(O.row,O.column);if(this.session.getUseSoftTabs())var F=j-z%j,K=l.stringRepeat(" ",F);else{for(var F=z%j;M[R.start.column-1]==" "&&F;)R.start.column--,F--;this.selection.setSelectionRange(R),K="	"}return this.insert(K)},D.prototype.blockIndent=function(){var E=this.$getSelectedRows();this.session.indentRows(E.first,E.last,"	")},D.prototype.blockOutdent=function(){var E=this.session.getSelection();this.session.outdentRows(E.getRange())},D.prototype.sortLines=function(){for(var E=this.$getSelectedRows(),R=this.session,$=[],N=E.first;N<=E.last;N++)$.push(R.getLine(N));$.sort(function(j,z){return j.toLowerCase()<z.toLowerCase()?-1:j.toLowerCase()>z.toLowerCase()?1:0});for(var M=new v(0,0,0,0),N=E.first;N<=E.last;N++){var O=R.getLine(N);M.start.row=N,M.end.row=N,M.end.column=O.length,R.replace(M,$[N-E.first])}},D.prototype.toggleCommentLines=function(){var E=this.session.getState(this.getCursorPosition().row),R=this.$getSelectedRows();this.session.getMode().toggleCommentLines(E,this.session,R.first,R.last)},D.prototype.toggleBlockComment=function(){var E=this.getCursorPosition(),R=this.session.getState(E.row),$=this.getSelectionRange();this.session.getMode().toggleBlockComment(R,this.session,$,E)},D.prototype.getNumberAt=function(E,R){var $=/[\-]?[0-9]+(?:\.[0-9]+)?/g;$.lastIndex=0;for(var N=this.session.getLine(E);$.lastIndex<R;){var M=$.exec(N);if(M.index<=R&&M.index+M[0].length>=R){var O={value:M[0],start:M.index,end:M.index+M[0].length};return O}}return null},D.prototype.modifyNumber=function(E){var R=this.selection.getCursor().row,$=this.selection.getCursor().column,N=new v(R,$-1,R,$),M=this.session.getTextRange(N);if(!isNaN(parseFloat(M))&&isFinite(M)){var O=this.getNumberAt(R,$);if(O){var j=O.value.indexOf(".")>=0?O.start+O.value.indexOf(".")+1:O.end,z=O.start+O.value.length-j,F=parseFloat(O.value);F*=Math.pow(10,z),j!==O.end&&$<j?E*=Math.pow(10,O.end-$-1):E*=Math.pow(10,O.end-$),F+=E,F/=Math.pow(10,z);var K=F.toFixed(z),U=new v(R,O.start,R,O.end);this.session.replace(U,K),this.moveCursorTo(R,Math.max(O.start+1,$+K.length-O.value.length))}}else this.toggleWord()},D.prototype.toggleWord=function(){var E=this.selection.getCursor().row,R=this.selection.getCursor().column;this.selection.selectWord();var $=this.getSelectedText(),N=this.selection.getWordRange().start.column,M=$.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),O=R-N-1;O<0&&(O=0);var j=0,z=0,F=this;$.match(/[A-Za-z0-9_]+/)&&M.forEach(function(se,me){z=j+se.length,O>=j&&O<=z&&($=se,F.selection.clearSelection(),F.moveCursorTo(E,j+N),F.selection.selectTo(E,z+N)),j=z});for(var K=this.$toggleWordPairs,U,Y=0;Y<K.length;Y++)for(var V=K[Y],q=0;q<=1;q++){var ee=+!q,X=$.match(new RegExp("^\\s?_?("+l.escapeRegExp(V[q])+")\\s?$","i"));if(X){var ie=$.match(new RegExp("([_]|^|\\s)("+l.escapeRegExp(X[1])+")($|\\s)","g"));ie&&(U=$.replace(new RegExp(l.escapeRegExp(V[q]),"i"),function(se){var me=V[ee];return se.toUpperCase()==se?me=me.toUpperCase():se.charAt(0).toUpperCase()==se.charAt(0)&&(me=me.substr(0,0)+V[ee].charAt(0).toUpperCase()+me.substr(1)),me}),this.insert(U),U="")}}},D.prototype.findLinkAt=function(E,R){var $,N,M=this.session.getLine(E),O=M.split(/((?:https?|ftp):\/\/[\S]+)/),j=R;j<0&&(j=0);var z=0,F=0,K;try{for(var U=i(O),Y=U.next();!Y.done;Y=U.next()){var V=Y.value;if(F=z+V.length,j>=z&&j<=F&&V.match(/((?:https?|ftp):\/\/[\S]+)/)){K=V.replace(/[\s:.,'";}\]]+$/,"");break}z=F}}catch(q){$={error:q}}finally{try{Y&&!Y.done&&(N=U.return)&&N.call(U)}finally{if($)throw $.error}}return K},D.prototype.openLink=function(){var E=this.selection.getCursor(),R=this.findLinkAt(E.row,E.column);return R&&window.open(R,"_blank"),R!=null},D.prototype.removeLines=function(){var E=this.$getSelectedRows();this.session.removeFullLines(E.first,E.last),this.clearSelection()},D.prototype.duplicateSelection=function(){var E=this.selection,R=this.session,$=E.getRange(),N=E.isBackwards();if($.isEmpty()){var M=$.start.row;R.duplicateLines(M,M)}else{var O=N?$.start:$.end,j=R.insert(O,R.getTextRange($));$.start=O,$.end=j,E.setSelectionRange($,N)}},D.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},D.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},D.prototype.moveText=function(E,R,$){return this.session.moveText(E,R,$)},D.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},D.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},D.prototype.$moveLines=function(E,R){var $,N,M=this.selection;if(!M.inMultiSelectMode||this.inVirtualSelectionMode){var O=M.toOrientedRange();$=this.$getSelectedRows(O),N=this.session.$moveLines($.first,$.last,R?0:E),R&&E==-1&&(N=0),O.moveBy(N,0),M.fromOrientedRange(O)}else{var j=M.rangeList.ranges;M.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var z=0,F=0,K=j.length,U=0;U<K;U++){var Y=U;j[U].moveBy(z,0),$=this.$getSelectedRows(j[U]);for(var V=$.first,q=$.last;++U<K;){F&&j[U].moveBy(F,0);var ee=this.$getSelectedRows(j[U]);if(R&&ee.first!=q)break;if(!R&&ee.first>q+1)break;q=ee.last}for(U--,z=this.session.$moveLines(V,q,R?0:E),R&&E==-1&&(Y=U+1);Y<=U;)j[Y].moveBy(z,0),Y++;R||(z=0),F+=z}M.fromOrientedRange(M.ranges[0]),M.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},D.prototype.$getSelectedRows=function(E){return E=(E||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(E.start.row),last:this.session.getRowFoldEnd(E.end.row)}},D.prototype.onCompositionStart=function(E){this.renderer.showComposition(E)},D.prototype.onCompositionUpdate=function(E){this.renderer.setCompositionText(E)},D.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},D.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},D.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},D.prototype.isRowVisible=function(E){return E>=this.getFirstVisibleRow()&&E<=this.getLastVisibleRow()},D.prototype.isRowFullyVisible=function(E){return E>=this.renderer.getFirstFullyVisibleRow()&&E<=this.renderer.getLastFullyVisibleRow()},D.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},D.prototype.$moveByPage=function(E,R){var $=this.renderer,N=this.renderer.layerConfig,M=E*Math.floor(N.height/N.lineHeight);R===!0?this.selection.$moveSelection(function(){this.moveCursorBy(M,0)}):R===!1&&(this.selection.moveCursorBy(M,0),this.selection.clearSelection());var O=$.scrollTop;$.scrollBy(0,M*N.lineHeight),R!=null&&$.scrollCursorIntoView(null,.5),$.animateScrolling(O)},D.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},D.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},D.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},D.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},D.prototype.scrollPageDown=function(){this.$moveByPage(1)},D.prototype.scrollPageUp=function(){this.$moveByPage(-1)},D.prototype.scrollToRow=function(E){this.renderer.scrollToRow(E)},D.prototype.scrollToLine=function(E,R,$,N){this.renderer.scrollToLine(E,R,$,N)},D.prototype.centerSelection=function(){var E=this.getSelectionRange(),R={row:Math.floor(E.start.row+(E.end.row-E.start.row)/2),column:Math.floor(E.start.column+(E.end.column-E.start.column)/2)};this.renderer.alignCursor(R,.5)},D.prototype.getCursorPosition=function(){return this.selection.getCursor()},D.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},D.prototype.getSelectionRange=function(){return this.selection.getRange()},D.prototype.selectAll=function(){this.selection.selectAll()},D.prototype.clearSelection=function(){this.selection.clearSelection()},D.prototype.moveCursorTo=function(E,R){this.selection.moveCursorTo(E,R)},D.prototype.moveCursorToPosition=function(E){this.selection.moveCursorToPosition(E)},D.prototype.jumpToMatching=function(E,R){var $=this.getCursorPosition(),N=new k(this.session,$.row,$.column),M=N.getCurrentToken(),O=0;M&&M.type.indexOf("tag-name")!==-1&&(M=N.stepBackward());var j=M||N.stepForward();if(j){var z,F=!1,K={},U=$.column-j.start,Y,V={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(j.value.match(/[{}()\[\]]/g)){for(;U<j.value.length&&!F;U++)if(V[j.value[U]])switch(Y=V[j.value[U]]+"."+j.type.replace("rparen","lparen"),isNaN(K[Y])&&(K[Y]=0),j.value[U]){case"(":case"[":case"{":K[Y]++;break;case")":case"]":case"}":K[Y]--,K[Y]===-1&&(z="bracket",F=!0);break}}else j.type.indexOf("tag-name")!==-1&&(isNaN(K[j.value])&&(K[j.value]=0),M.value==="<"&&O>1?K[j.value]++:M.value==="</"&&K[j.value]--,K[j.value]===-1&&(z="tag",F=!0));F||(M=j,O++,j=N.stepForward(),U=0)}while(j&&!F);if(z){var q,ee;if(z==="bracket")q=this.session.getBracketRange($),q||(q=new v(N.getCurrentTokenRow(),N.getCurrentTokenColumn()+U-1,N.getCurrentTokenRow(),N.getCurrentTokenColumn()+U-1),ee=q.start,(R||ee.row===$.row&&Math.abs(ee.column-$.column)<2)&&(q=this.session.getBracketRange(ee)));else if(z==="tag"){if(!j||j.type.indexOf("tag-name")===-1)return;if(q=new v(N.getCurrentTokenRow(),N.getCurrentTokenColumn()-2,N.getCurrentTokenRow(),N.getCurrentTokenColumn()-2),q.compare($.row,$.column)===0){var X=this.session.getMatchingTags($);X&&(X.openTag.contains($.row,$.column)?(q=X.closeTag,ee=q.start):(q=X.openTag,X.closeTag.start.row===$.row&&X.closeTag.start.column===$.column?ee=q.end:ee=q.start))}ee=ee||q.start}ee=q&&q.cursor||ee,ee&&(E?q&&R?this.selection.setRange(q):q&&q.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ee.row,ee.column):this.selection.moveTo(ee.row,ee.column))}}},D.prototype.gotoLine=function(E,R,$){this.selection.clearSelection(),this.session.unfold({row:E-1,column:R||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(E-1,R||0),this.isRowFullyVisible(E-1)||this.scrollToLine(E-1,!0,$)},D.prototype.navigateTo=function(E,R){this.selection.moveTo(E,R)},D.prototype.navigateUp=function(E){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var R=this.selection.anchor.getPosition();return this.moveCursorToPosition(R)}this.selection.clearSelection(),this.selection.moveCursorBy(-E||-1,0)},D.prototype.navigateDown=function(E){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var R=this.selection.anchor.getPosition();return this.moveCursorToPosition(R)}this.selection.clearSelection(),this.selection.moveCursorBy(E||1,0)},D.prototype.navigateLeft=function(E){if(this.selection.isEmpty())for(E=E||1;E--;)this.selection.moveCursorLeft();else{var R=this.getSelectionRange().start;this.moveCursorToPosition(R)}this.clearSelection()},D.prototype.navigateRight=function(E){if(this.selection.isEmpty())for(E=E||1;E--;)this.selection.moveCursorRight();else{var R=this.getSelectionRange().end;this.moveCursorToPosition(R)}this.clearSelection()},D.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},D.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},D.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},D.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},D.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},D.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},D.prototype.replace=function(E,R){R&&this.$search.set(R);var $=this.$search.find(this.session),N=0;return $&&(this.$tryReplace($,E)&&(N=1),this.selection.setSelectionRange($),this.renderer.scrollSelectionIntoView($.start,$.end)),N},D.prototype.replaceAll=function(E,R){R&&this.$search.set(R);var $=this.$search.findAll(this.session),N=0;if(!$.length)return N;var M=this.getSelectionRange();this.selection.moveTo(0,0);for(var O=$.length-1;O>=0;--O)this.$tryReplace($[O],E)&&N++;return this.selection.setSelectionRange(M),N},D.prototype.$tryReplace=function(E,R){var $=this.session.getTextRange(E);return R=this.$search.replace($,R),R!==null?(E.end=this.session.replace(E,R),E):null},D.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},D.prototype.find=function(E,R,$){R||(R={}),typeof E=="string"||E instanceof RegExp?R.needle=E:typeof E=="object"&&a.mixin(R,E);var N=this.selection.getRange();R.needle==null&&(E=this.session.getTextRange(N)||this.$search.$options.needle,E||(N=this.session.getWordRange(N.start.row,N.start.column),E=this.session.getTextRange(N)),this.$search.set({needle:E})),this.$search.set(R),R.start||this.$search.set({start:N});var M=this.$search.find(this.session);if(R.preventScroll)return M;if(M)return this.revealRange(M,$),M;R.backwards?N.start=N.end:N.end=N.start,this.selection.setRange(N)},D.prototype.findNext=function(E,R){this.find({skipCurrent:!0,backwards:!1},E,R)},D.prototype.findPrevious=function(E,R){this.find(E,{skipCurrent:!0,backwards:!0},R)},D.prototype.revealRange=function(E,R){this.session.unfold(E),this.selection.setSelectionRange(E);var $=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(E.start,E.end,.5),R!==!1&&this.renderer.animateScrolling($)},D.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},D.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},D.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(E){E.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},D.prototype.setAutoScrollEditorIntoView=function(E){if(E){var R,$=this,N=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var M=this.$scrollAnchor;M.style.cssText="position:absolute",this.container.insertBefore(M,this.container.firstChild);var O=this.on("changeSelection",function(){N=!0}),j=this.renderer.on("beforeRender",function(){N&&(R=$.renderer.container.getBoundingClientRect())}),z=this.renderer.on("afterRender",function(){if(N&&R&&($.isFocused()||$.searchBox&&$.searchBox.isFocused())){var F=$.renderer,K=F.$cursorLayer.$pixelPos,U=F.layerConfig,Y=K.top-U.offset;K.top>=0&&Y+R.top<0?N=!0:K.top<U.height&&K.top+R.top+U.lineHeight>window.innerHeight?N=!1:N=null,N!=null&&(M.style.top=Y+"px",M.style.left=K.left+"px",M.style.height=U.lineHeight+"px",M.scrollIntoView(N)),N=R=null}});this.setAutoScrollEditorIntoView=function(F){F||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",O),this.renderer.off("afterRender",z),this.renderer.off("beforeRender",j))}}},D.prototype.$resetCursorStyle=function(){var E=this.$cursorStyle||"ace",R=this.renderer.$cursorLayer;R&&(R.setSmoothBlinking(/smooth/.test(E)),R.isBlinking=!this.$readOnly&&E!="wide",c.setCssClass(R.element,"ace_slim-cursors",/slim/.test(E)))},D.prototype.prompt=function(E,R,$){var N=this;_.loadModule("ace/ext/prompt",function(M){M.prompt(N,E,R,$)})},D}();A.$uid=0,A.prototype.curOp=null,A.prototype.prevOp={},A.prototype.$mergeableCommands=["backspace","del","insertstring"],A.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],a.implement(A.prototype,m),_.defineOptions(A.prototype,"editor",{selectionStyle:{set:function(D){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:D})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(D){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(D){this.textInput.setReadOnly(D),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(D){this.textInput.setCopyWithEmptySelection(D)},initialValue:!1},cursorStyle:{set:function(D){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(D){this.setAutoScrollEditorIntoView(D)}},keyboardHandler:{set:function(D){this.setKeyboardHandler(D)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(D){this.session.setValue(D)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(D){this.setSession(D)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(D){this.renderer.$gutterLayer.setShowLineNumbers(D),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),D&&this.$relativeLineNumbers?P.attach(this):P.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(D){this.$showLineNumbers&&D?P.attach(this):P.detach(this)}},placeholder:{set:function(D){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var E=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(E&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),c.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!E&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),c.addCssClass(this.container,"ace_hasPlaceholder");var R=c.createElement("div");R.className="ace_placeholder",R.textContent=this.$placeholder||"",this.renderer.placeholderNode=R,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!E&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(D){var E={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(N){N.blur(),N.renderer.scroller.focus()},readOnly:!0},R=function(N){if(N.target==this.renderer.scroller&&N.keyCode===I.enter){N.preventDefault();var M=this.getCursorPosition().row;this.isRowVisible(M)||this.scrollToLine(M,!0,!0),this.focus()}},$;D?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(d.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",T("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",T("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",R.bind(this)),this.commands.addCommand(E),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",T("editor")),this.renderer.$gutter.setAttribute("aria-label",T("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),$||($=new S(this)),$.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",R.bind(this)),this.commands.removeCommand(E),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),$&&$.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var P={getText:function(D,E){return(Math.abs(D.selection.lead.row-E)||E+1+(E<9?"·":""))+""},getWidth:function(D,E,R){return Math.max(E.toString().length,(R.lastRow+1).toString().length,2)*R.characterWidth},update:function(D,E){E.renderer.$loop.schedule(E.renderer.CHANGE_GUTTER)},attach:function(D){D.renderer.$gutterLayer.$renderer=this,D.on("changeSelection",this.update),this.update(null,D)},detach:function(D){D.renderer.$gutterLayer.$renderer==this&&(D.renderer.$gutterLayer.$renderer=null),D.off("changeSelection",this.update),this.update(null,D)}};o.Editor=A}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(r,o,n){var i=r("../lib/dom"),a=function(){function c(l,d){this.element=l,this.canvasHeight=d||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return c.prototype.moveContainer=function(l){i.translate(this.element,0,-(l.firstRowScreen*l.lineHeight%this.canvasHeight)-l.offset*this.$offsetCoefficient)},c.prototype.pageChanged=function(l,d){return Math.floor(l.firstRowScreen*l.lineHeight/this.canvasHeight)!==Math.floor(d.firstRowScreen*d.lineHeight/this.canvasHeight)},c.prototype.computeLineTop=function(l,d,s){var u=d.firstRowScreen*d.lineHeight,h=Math.floor(u/this.canvasHeight),f=s.documentToScreenRow(l,0)*d.lineHeight;return f-h*this.canvasHeight},c.prototype.computeLineHeight=function(l,d,s){return d.lineHeight*s.getRowLineCount(l)},c.prototype.getLength=function(){return this.cells.length},c.prototype.get=function(l){return this.cells[l]},c.prototype.shift=function(){this.$cacheCell(this.cells.shift())},c.prototype.pop=function(){this.$cacheCell(this.cells.pop())},c.prototype.push=function(l){if(Array.isArray(l)){this.cells.push.apply(this.cells,l);for(var d=i.createFragment(this.element),s=0;s<l.length;s++)d.appendChild(l[s].element);this.element.appendChild(d)}else this.cells.push(l),this.element.appendChild(l.element)},c.prototype.unshift=function(l){if(Array.isArray(l)){this.cells.unshift.apply(this.cells,l);for(var d=i.createFragment(this.element),s=0;s<l.length;s++)d.appendChild(l[s].element);this.element.firstChild?this.element.insertBefore(d,this.element.firstChild):this.element.appendChild(d)}else this.cells.unshift(l),this.element.insertAdjacentElement("afterbegin",l.element)},c.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},c.prototype.$cacheCell=function(l){l&&(l.element.remove(),this.cellCache.push(l))},c.prototype.createCell=function(l,d,s,u){var h=this.cellCache.pop();if(!h){var f=i.createElement("div");u&&u(f),this.element.appendChild(f),h={element:f,text:"",row:l}}return h.row=l,h},c}();o.Lines=a}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(r,o,n){var i=r("../lib/dom"),a=r("../lib/oop"),c=r("../lib/lang"),l=r("../lib/event_emitter").EventEmitter,d=r("./lines").Lines,s=r("../config").nls,u=function(){function f(p){this.element=i.createElement("div"),this.element.className="ace_layer ace_gutter-layer",p.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new d(this.element),this.$lines.$offsetCoefficient=1}return f.prototype.setSession=function(p){this.session&&this.session.off("change",this.$updateAnnotations),this.session=p,p&&p.on("change",this.$updateAnnotations)},f.prototype.addGutterDecoration=function(p,g){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(p,g)},f.prototype.removeGutterDecoration=function(p,g){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(p,g)},f.prototype.setAnnotations=function(p){this.$annotations=[];for(var g=0;g<p.length;g++){var v=p[g],m=v.row,y=this.$annotations[m];y||(y=this.$annotations[m]={text:[],type:[]});var C=v.text,_=v.type;C=C?c.escapeHTML(C):v.html||"",y.text.indexOf(C)===-1&&(y.text.push(C),y.type.push(_));var k=v.className;k?y.className=k:_=="error"?y.className=" ace_error":_=="warning"&&y.className!=" ace_error"?y.className=" ace_warning":_=="info"&&!y.className&&(y.className=" ace_info")}},f.prototype.$updateAnnotations=function(p){if(this.$annotations.length){var g=p.start.row,v=p.end.row-g;if(v!==0)if(p.action=="remove")this.$annotations.splice(g,v+1,null);else{var m=new Array(v+1);m.unshift(g,1),this.$annotations.splice.apply(this.$annotations,m)}}},f.prototype.update=function(p){this.config=p;var g=this.session,v=p.firstRow,m=Math.min(p.lastRow+p.gutterOffset,g.getLength()-1);this.oldLastRow=m,this.config=p,this.$lines.moveContainer(p),this.$updateCursorRow();for(var y=g.getNextFoldLine(v),C=y?y.start.row:1/0,_=null,k=-1,b=v;;){if(b>C&&(b=y.end.row+1,y=g.getNextFoldLine(b,y),C=y?y.start.row:1/0),b>m){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}_=this.$lines.get(++k),_?_.row=b:(_=this.$lines.createCell(b,p,this.session,h),this.$lines.push(_)),this.$renderCell(_,p,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(p)},f.prototype.$updateGutterWidth=function(p){var g=this.session,v=g.gutterRenderer||this.$renderer,m=g.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||g.$useWrapMode)&&(y=g.getLength()+m-1);var C=v?v.getWidth(g,y,p):y.toString().length*p.characterWidth,_=this.$padding||this.$computePadding();C+=_.left+_.right,C!==this.gutterWidth&&!isNaN(C)&&(this.gutterWidth=C,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",C))},f.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var p=this.session.selection.getCursor();this.$cursorRow!==p.row&&(this.$cursorRow=p.row)}},f.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var p=this.session.selection.cursor.row;if(this.$cursorRow=p,!(this.$cursorCell&&this.$cursorCell.row==p)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var g=this.$lines.cells;this.$cursorCell=null;for(var v=0;v<g.length;v++){var m=g[v];if(m.row>=this.$cursorRow){if(m.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(v>0&&y&&y.start.row==g[v-1].row)m=g[v-1];else break}m.element.className="ace_gutter-active-line "+m.element.className,this.$cursorCell=m;break}}}}},f.prototype.scrollLines=function(p){var g=this.config;if(this.config=p,this.$updateCursorRow(),this.$lines.pageChanged(g,p))return this.update(p);this.$lines.moveContainer(p);var v=Math.min(p.lastRow+p.gutterOffset,this.session.getLength()-1),m=this.oldLastRow;if(this.oldLastRow=v,!g||m<p.firstRow)return this.update(p);if(v<g.firstRow)return this.update(p);if(g.firstRow<p.firstRow)for(var y=this.session.getFoldedRowCount(g.firstRow,p.firstRow-1);y>0;y--)this.$lines.shift();if(m>v)for(var y=this.session.getFoldedRowCount(v+1,m);y>0;y--)this.$lines.pop();p.firstRow<g.firstRow&&this.$lines.unshift(this.$renderLines(p,p.firstRow,g.firstRow-1)),v>m&&this.$lines.push(this.$renderLines(p,m+1,v)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(p)},f.prototype.$renderLines=function(p,g,v){for(var m=[],y=g,C=this.session.getNextFoldLine(y),_=C?C.start.row:1/0;y>_&&(y=C.end.row+1,C=this.session.getNextFoldLine(y,C),_=C?C.start.row:1/0),!(y>v);){var k=this.$lines.createCell(y,p,this.session,h);this.$renderCell(k,p,C,y),m.push(k),y++}return m},f.prototype.$renderCell=function(p,g,v,m){var y=p.element,C=this.session,_=y.childNodes[0],k=y.childNodes[1],b=y.childNodes[2],S=b.firstChild,T=C.$firstLineNumber,L=C.$breakpoints,I=C.$decorations,A=C.gutterRenderer||this.$renderer,P=this.$showFoldWidgets&&C.foldWidgets,D=v?v.start.row:Number.MAX_VALUE,E=g.lineHeight+"px",R=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",$=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",N=(A?A.getText(C,m):m+T).toString();if(this.$highlightGutterLine&&(m==this.$cursorRow||v&&m<this.$cursorRow&&m>=D&&this.$cursorRow<=v.end.row)&&(R+="ace_gutter-active-line ",this.$cursorCell!=p&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=p)),L[m]&&(R+=L[m]),I[m]&&(R+=I[m]),this.$annotations[m]&&m!==D&&(R+=this.$annotations[m].className),P){var M=P[m];M==null&&(M=P[m]=C.getFoldWidget(m))}if(M){var O="ace_fold-widget ace_"+M,j=M=="start"&&m==D&&m<v.end.row;if(j){O+=" ace_closed";for(var z="",F=!1,K=m+1;K<=v.end.row;K++)if(this.$annotations[K]){if(this.$annotations[K].className===" ace_error"){F=!0,z=" ace_error_fold";break}if(this.$annotations[K].className===" ace_warning"){F=!0,z=" ace_warning_fold";continue}}R+=z}else O+=" ace_open";k.className!=O&&(k.className=O),i.setStyle(k.style,"height",E),i.setStyle(k.style,"display","inline-block"),k.setAttribute("role","button"),k.setAttribute("tabindex","-1");var U=C.getFoldWidgetRange(m);U?k.setAttribute("aria-label",s("Toggle code folding, rows $0 through $1",[U.start.row+1,U.end.row+1])):v?k.setAttribute("aria-label",s("Toggle code folding, rows $0 through $1",[v.start.row+1,v.end.row+1])):k.setAttribute("aria-label",s("Toggle code folding, row $0",[m+1])),j?(k.setAttribute("aria-expanded","false"),k.setAttribute("title",s("Unfold code"))):(k.setAttribute("aria-expanded","true"),k.setAttribute("title",s("Fold code")))}else k&&(i.setStyle(k.style,"display","none"),k.setAttribute("tabindex","0"),k.removeAttribute("role"),k.removeAttribute("aria-label"));return F&&this.$showFoldedAnnotations?(b.className="ace_gutter_annotation",S.className=$,S.className+=z,i.setStyle(S.style,"height",E),i.setStyle(b.style,"display","block"),i.setStyle(b.style,"height",E),b.setAttribute("aria-label",s("Read annotations row $0",[N])),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")):this.$annotations[m]?(b.className="ace_gutter_annotation",S.className=$,this.$useSvgGutterIcons?S.className+=this.$annotations[m].className:y.classList.add(this.$annotations[m].className.replace(" ","")),i.setStyle(S.style,"height",E),i.setStyle(b.style,"display","block"),i.setStyle(b.style,"height",E),b.setAttribute("aria-label",s("Read annotations row $0",[N])),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")):(i.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0")),N!==_.data&&(_.data=N),y.className!=R&&(y.className=R),i.setStyle(p.element.style,"height",this.$lines.computeLineHeight(m,g,C)+"px"),i.setStyle(p.element.style,"top",this.$lines.computeLineTop(m,g,C)+"px"),p.text=N,b.style.display==="none"&&k.style.display==="none"?p.element.setAttribute("aria-hidden",!0):p.element.setAttribute("aria-hidden",!1),p},f.prototype.setHighlightGutterLine=function(p){this.$highlightGutterLine=p},f.prototype.setShowLineNumbers=function(p){this.$renderer=!p&&{getWidth:function(){return 0},getText:function(){return""}}},f.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},f.prototype.setShowFoldWidgets=function(p){p?i.addCssClass(this.element,"ace_folding-enabled"):i.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=p,this.$padding=null},f.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},f.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var p=i.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(p.borderLeftWidth)||0)+(parseInt(p.paddingLeft)||0)+1,this.$padding.right=(parseInt(p.borderRightWidth)||0)+(parseInt(p.paddingRight)||0),this.$padding},f.prototype.getRegion=function(p){var g=this.$padding||this.$computePadding(),v=this.element.getBoundingClientRect();if(p.x<g.left+v.left)return"markers";if(this.$showFoldWidgets&&p.x>v.right-g.right)return"foldWidgets"},f}();u.prototype.$fixedWidth=!1,u.prototype.$highlightGutterLine=!0,u.prototype.$renderer="",u.prototype.$showLineNumbers=!0,u.prototype.$showFoldWidgets=!0,a.implement(u.prototype,l);function h(f){var p=document.createTextNode("");f.appendChild(p);var g=i.createElement("span");f.appendChild(g);var v=i.createElement("span");f.appendChild(v);var m=i.createElement("span");return v.appendChild(m),f}o.Gutter=u}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(r,o,n){var i=r("../range").Range,a=r("../lib/dom"),c=function(){function d(s){this.element=a.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return d.prototype.setPadding=function(s){this.$padding=s},d.prototype.setSession=function(s){this.session=s},d.prototype.setMarkers=function(s){this.markers=s},d.prototype.elt=function(s,u){var h=this.i!=-1&&this.element.childNodes[this.i];h?this.i++:(h=document.createElement("div"),this.element.appendChild(h),this.i=-1),h.style.cssText=u,h.className=s},d.prototype.update=function(s){if(s){this.config=s,this.i=0;var u;for(var h in this.markers){var f=this.markers[h];if(!f.range){f.update(u,this,this.session,s);continue}var p=f.range.clipRows(s.firstRow,s.lastRow);if(!p.isEmpty())if(p=p.toScreenRange(this.session),f.renderer){var g=this.$getTop(p.start.row,s),v=this.$padding+p.start.column*s.characterWidth;f.renderer(u,p,v,g,s)}else f.type=="fullLine"?this.drawFullLineMarker(u,p,f.clazz,s):f.type=="screenLine"?this.drawScreenLineMarker(u,p,f.clazz,s):p.isMultiLine()?f.type=="text"?this.drawTextMarker(u,p,f.clazz,s):this.drawMultiLineMarker(u,p,f.clazz,s):this.drawSingleLineMarker(u,p,f.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},d.prototype.$getTop=function(s,u){return(s-u.firstRowScreen)*u.lineHeight},d.prototype.drawTextMarker=function(s,u,h,f,p){for(var g=this.session,v=u.start.row,m=u.end.row,y=v,C=0,_=0,k=g.getScreenLastRowColumn(y),b=new i(y,u.start.column,y,_);y<=m;y++)b.start.row=b.end.row=y,b.start.column=y==v?u.start.column:g.getRowWrapIndent(y),b.end.column=k,C=_,_=k,k=y+1<m?g.getScreenLastRowColumn(y+1):y==m?0:u.end.column,this.drawSingleLineMarker(s,b,h+(y==v?" ace_start":"")+" ace_br"+l(y==v||y==v+1&&u.start.column,C<_,_>k,y==m),f,y==m?0:1,p)},d.prototype.drawMultiLineMarker=function(s,u,h,f,p){var g=this.$padding,v=f.lineHeight,m=this.$getTop(u.start.row,f),y=g+u.start.column*f.characterWidth;if(p=p||"",this.session.$bidiHandler.isBidiRow(u.start.row)){var C=u.clone();C.end.row=C.start.row,C.end.column=this.session.getLine(C.start.row).length,this.drawBidiSingleLineMarker(s,C,h+" ace_br1 ace_start",f,null,p)}else this.elt(h+" ace_br1 ace_start","height:"+v+"px;right:0;top:"+m+"px;left:"+y+"px;"+(p||""));if(this.session.$bidiHandler.isBidiRow(u.end.row)){var C=u.clone();C.start.row=C.end.row,C.start.column=0,this.drawBidiSingleLineMarker(s,C,h+" ace_br12",f,null,p)}else{m=this.$getTop(u.end.row,f);var _=u.end.column*f.characterWidth;this.elt(h+" ace_br12","height:"+v+"px;width:"+_+"px;top:"+m+"px;left:"+g+"px;"+(p||""))}if(v=(u.end.row-u.start.row-1)*f.lineHeight,!(v<=0)){m=this.$getTop(u.start.row+1,f);var k=(u.start.column?1:0)|(u.end.column?0:8);this.elt(h+(k?" ace_br"+k:""),"height:"+v+"px;right:0;top:"+m+"px;left:"+g+"px;"+(p||""))}},d.prototype.drawSingleLineMarker=function(s,u,h,f,p,g){if(this.session.$bidiHandler.isBidiRow(u.start.row))return this.drawBidiSingleLineMarker(s,u,h,f,p,g);var v=f.lineHeight,m=(u.end.column+(p||0)-u.start.column)*f.characterWidth,y=this.$getTop(u.start.row,f),C=this.$padding+u.start.column*f.characterWidth;this.elt(h,"height:"+v+"px;width:"+m+"px;top:"+y+"px;left:"+C+"px;"+(g||""))},d.prototype.drawBidiSingleLineMarker=function(s,u,h,f,p,g){var v=f.lineHeight,m=this.$getTop(u.start.row,f),y=this.$padding,C=this.session.$bidiHandler.getSelections(u.start.column,u.end.column);C.forEach(function(_){this.elt(h,"height:"+v+"px;width:"+(_.width+(p||0))+"px;top:"+m+"px;left:"+(y+_.left)+"px;"+(g||""))},this)},d.prototype.drawFullLineMarker=function(s,u,h,f,p){var g=this.$getTop(u.start.row,f),v=f.lineHeight;u.start.row!=u.end.row&&(v+=this.$getTop(u.end.row,f)-g),this.elt(h,"height:"+v+"px;top:"+g+"px;left:0;right:0;"+(p||""))},d.prototype.drawScreenLineMarker=function(s,u,h,f,p){var g=this.$getTop(u.start.row,f),v=f.lineHeight;this.elt(h,"height:"+v+"px;top:"+g+"px;left:0;right:0;"+(p||""))},d}();c.prototype.$padding=0;function l(d,s,u,h){return(d?1:0)|(s?2:0)|(u?4:0)|(h?8:0)}o.Marker=c}),ace.define("ace/layer/text_util",["require","exports","module"],function(r,o,n){var i=new Set(["text","rparen","lparen"]);o.isTextToken=function(a){return i.has(a)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(r,o,n){var i=r("../lib/oop"),a=r("../lib/dom"),c=r("../lib/lang"),l=r("./lines").Lines,d=r("../lib/event_emitter").EventEmitter,s=r("../config").nls,u=r("./text_util").isTextToken,h=function(){function f(p){this.dom=a,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",p.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new l(this.element)}return f.prototype.$updateEolChar=function(){var p=this.session.doc,g=p.getNewLineCharacter()==`
   353  `&&p.getNewLineMode()!="windows",v=g?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=v)return this.EOL_CHAR=v,!0},f.prototype.setPadding=function(p){this.$padding=p,this.element.style.margin="0 "+p+"px"},f.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},f.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},f.prototype.$setFontMetrics=function(p){this.$fontMetrics=p,this.$fontMetrics.on("changeCharacterSize",(function(g){this._signal("changeCharacterSize",g)}).bind(this)),this.$pollSizeChanges()},f.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},f.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},f.prototype.setSession=function(p){this.session=p,p&&this.$computeTabString()},f.prototype.setShowInvisibles=function(p){return this.showInvisibles==p?!1:(this.showInvisibles=p,typeof p=="string"?(this.showSpaces=/tab/i.test(p),this.showTabs=/space/i.test(p),this.showEOL=/eol/i.test(p)):this.showSpaces=this.showTabs=this.showEOL=p,this.$computeTabString(),!0)},f.prototype.setDisplayIndentGuides=function(p){return this.displayIndentGuides==p?!1:(this.displayIndentGuides=p,this.$computeTabString(),!0)},f.prototype.setHighlightIndentGuides=function(p){return this.$highlightIndentGuides===p?!1:(this.$highlightIndentGuides=p,p)},f.prototype.$computeTabString=function(){var p=this.session.getTabSize();this.tabSize=p;for(var g=this.$tabStrings=[0],v=1;v<p+1;v++)if(this.showTabs){var m=this.dom.createElement("span");m.className="ace_invisible ace_invisible_tab",m.textContent=c.stringRepeat(this.TAB_CHAR,v),g.push(m)}else g.push(this.dom.createTextNode(c.stringRepeat(" ",v),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",C=this.showSpaces?" ace_invisible ace_invisible_space":"",_=this.showSpaces?c.stringRepeat(this.SPACE_CHAR,this.tabSize):c.stringRepeat(" ",this.tabSize),k=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?c.stringRepeat(this.TAB_CHAR,this.tabSize):_,m=this.dom.createElement("span");m.className=y+C,m.textContent=_,this.$tabStrings[" "]=m;var m=this.dom.createElement("span");m.className=y+k,m.textContent=b,this.$tabStrings["	"]=m}},f.prototype.updateLines=function(p,g,v){if(this.config.lastRow!=p.lastRow||this.config.firstRow!=p.firstRow)return this.update(p);this.config=p;for(var m=Math.max(g,p.firstRow),y=Math.min(v,p.lastRow),C=this.element.childNodes,_=0,b=p.firstRow;b<m;b++){var S=this.session.getFoldLine(b);if(S)if(S.containsRow(m)){m=S.start.row;break}else b=S.end.row;_++}for(var k=!1,b=m,S=this.session.getNextFoldLine(b),T=S?S.start.row:1/0;b>T&&(b=S.end.row+1,S=this.session.getNextFoldLine(b,S),T=S?S.start.row:1/0),!(b>y);){var L=C[_++];if(L){this.dom.removeChildren(L),this.$renderLine(L,b,b==T?S:!1),k&&(L.style.top=this.$lines.computeLineTop(b,p,this.session)+"px");var I=p.lineHeight*this.session.getRowLength(b)+"px";L.style.height!=I&&(k=!0,L.style.height=I)}b++}if(k)for(;_<this.$lines.cells.length;){var A=this.$lines.cells[_++];A.element.style.top=this.$lines.computeLineTop(A.row,p,this.session)+"px"}},f.prototype.scrollLines=function(p){var g=this.config;if(this.config=p,this.$lines.pageChanged(g,p))return this.update(p);this.$lines.moveContainer(p);var v=p.lastRow,m=g?g.lastRow:-1;if(!g||m<p.firstRow)return this.update(p);if(v<g.firstRow)return this.update(p);if(!g||g.lastRow<p.firstRow)return this.update(p);if(p.lastRow<g.firstRow)return this.update(p);if(g.firstRow<p.firstRow)for(var y=this.session.getFoldedRowCount(g.firstRow,p.firstRow-1);y>0;y--)this.$lines.shift();if(g.lastRow>p.lastRow)for(var y=this.session.getFoldedRowCount(p.lastRow+1,g.lastRow);y>0;y--)this.$lines.pop();p.firstRow<g.firstRow&&this.$lines.unshift(this.$renderLinesFragment(p,p.firstRow,g.firstRow-1)),p.lastRow>g.lastRow&&this.$lines.push(this.$renderLinesFragment(p,g.lastRow+1,p.lastRow)),this.$highlightIndentGuide()},f.prototype.$renderLinesFragment=function(p,g,v){for(var m=[],y=g,C=this.session.getNextFoldLine(y),_=C?C.start.row:1/0;y>_&&(y=C.end.row+1,C=this.session.getNextFoldLine(y,C),_=C?C.start.row:1/0),!(y>v);){var k=this.$lines.createCell(y,p,this.session),b=k.element;this.dom.removeChildren(b),a.setStyle(b.style,"height",this.$lines.computeLineHeight(y,p,this.session)+"px"),a.setStyle(b.style,"top",this.$lines.computeLineTop(y,p,this.session)+"px"),this.$renderLine(b,y,y==_?C:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",m.push(k),y++}return m},f.prototype.update=function(p){this.$lines.moveContainer(p),this.config=p;for(var g=p.firstRow,v=p.lastRow,m=this.$lines;m.getLength();)m.pop();m.push(this.$renderLinesFragment(p,g,v))},f.prototype.$renderToken=function(p,g,v,m){for(var y=this,C=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,_=this.dom.createFragment(this.element),k,b=0;k=C.exec(m);){var S=k[1],T=k[2],L=k[3],I=k[4],A=k[5];if(!(!y.showSpaces&&T)){var P=b!=k.index?m.slice(b,k.index):"";if(b=k.index+k[0].length,P&&_.appendChild(this.dom.createTextNode(P,this.element)),S){var D=y.session.getScreenTabSize(g+k.index);_.appendChild(y.$tabStrings[D].cloneNode(!0)),g+=D-1}else if(T)if(y.showSpaces){var E=this.dom.createElement("span");E.className="ace_invisible ace_invisible_space",E.textContent=c.stringRepeat(y.SPACE_CHAR,T.length),_.appendChild(E)}else _.appendChild(this.dom.createTextNode(T,this.element));else if(L){var E=this.dom.createElement("span");E.className="ace_invisible ace_invisible_space ace_invalid",E.textContent=c.stringRepeat(y.SPACE_CHAR,L.length),_.appendChild(E)}else if(I){g+=1;var E=this.dom.createElement("span");E.style.width=y.config.characterWidth*2+"px",E.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",E.textContent=y.showSpaces?y.SPACE_CHAR:I,_.appendChild(E)}else if(A){g+=1;var E=this.dom.createElement("span");E.style.width=y.config.characterWidth*2+"px",E.className="ace_cjk",E.textContent=A,_.appendChild(E)}}}if(_.appendChild(this.dom.createTextNode(b?m.slice(b):m,this.element)),u(v.type))p.appendChild(_);else{var R="ace_"+v.type.replace(/\./g," ace_"),E=this.dom.createElement("span");v.type=="fold"&&(E.style.width=v.value.length*this.config.characterWidth+"px",E.setAttribute("title",s("Unfold code"))),E.className=R,E.appendChild(_),p.appendChild(E)}return g+m.length},f.prototype.renderIndentGuide=function(p,g,v){var m=g.search(this.$indentGuideRe);if(m<=0||m>=v)return g;if(g[0]==" "){m-=m%this.tabSize;for(var y=m/this.tabSize,C=0;C<y;C++)p.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),g.substr(m)}else if(g[0]=="	"){for(var C=0;C<m;C++)p.appendChild(this.$tabStrings["	"].cloneNode(!0));return this.$highlightIndentGuide(),g.substr(m)}return this.$highlightIndentGuide(),g},f.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var p=this.session.doc.$lines;if(p){var g=this.session.selection.getCursor(),v=/^\s*/.exec(this.session.doc.getLine(g.row))[0].length,m=Math.floor(v/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:m,start:g.row};var y=this.session.$bracketHighlight;if(y){for(var C=this.session.$bracketHighlight.ranges,_=0;_<C.length;_++)if(g.row!==C[_].start.row){this.$highlightIndentGuideMarker.end=C[_].start.row,g.row>C[_].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&p[g.row]!==""&&g.column===p[g.row].length){this.$highlightIndentGuideMarker.dir=1;for(var _=g.row+1;_<p.length;_++){var k=p[_],b=/^\s*/.exec(k)[0].length;if(k!==""&&(this.$highlightIndentGuideMarker.end=_,b<=v))break}}this.$renderHighlightIndentGuide()}}},f.prototype.$clearActiveIndentGuide=function(){for(var p=this.$lines.cells,g=0;g<p.length;g++){var v=p[g],m=v.element.childNodes;if(m.length>0){for(var y=0;y<m.length;y++)if(m[y].classList&&m[y].classList.contains("ace_indent-guide-active")){m[y].classList.remove("ace_indent-guide-active");break}}}},f.prototype.$setIndentGuideActive=function(p,g){var v=this.session.doc.getLine(p.row);if(v!==""){var m=p.element.childNodes;if(m){var y=m[g-1];y&&y.classList&&y.classList.contains("ace_indent-guide")&&y.classList.add("ace_indent-guide-active")}}},f.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var p=this.$lines.cells;this.$clearActiveIndentGuide();var g=this.$highlightIndentGuideMarker.indentLevel;if(g!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var v=0;v<p.length;v++){var m=p[v];if(this.$highlightIndentGuideMarker.end&&m.row>=this.$highlightIndentGuideMarker.start+1){if(m.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(m,g)}}else for(var v=p.length-1;v>=0;v--){var m=p[v];if(this.$highlightIndentGuideMarker.end&&m.row<this.$highlightIndentGuideMarker.start){if(m.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(m,g)}}}},f.prototype.$createLineElement=function(p){var g=this.dom.createElement("div");return g.className="ace_line",g.style.height=this.config.lineHeight+"px",g},f.prototype.$renderWrappedLine=function(p,g,v){var m=0,y=0,C=v[0],_=0,k=this.$createLineElement();p.appendChild(k);for(var b=0;b<g.length;b++){var S=g[b],T=S.value;if(b==0&&this.displayIndentGuides){if(m=T.length,T=this.renderIndentGuide(k,T,C),!T)continue;m-=T.length}if(m+T.length<C)_=this.$renderToken(k,_,S,T),m+=T.length;else{for(;m+T.length>=C;)_=this.$renderToken(k,_,S,T.substring(0,C-m)),T=T.substring(C-m),m=C,k=this.$createLineElement(),p.appendChild(k),k.appendChild(this.dom.createTextNode(c.stringRepeat(" ",v.indent),this.element)),y++,_=0,C=v[y]||Number.MAX_VALUE;T.length!=0&&(m+=T.length,_=this.$renderToken(k,_,S,T))}}v[v.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,_,null,"",!0)},f.prototype.$renderSimpleLine=function(p,g){for(var v=0,m=0;m<g.length;m++){var y=g[m],C=y.value;if(!(m==0&&this.displayIndentGuides&&(C=this.renderIndentGuide(p,C),!C))){if(v+C.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(p,v,y,C);v=this.$renderToken(p,v,y,C)}}},f.prototype.$renderOverflowMessage=function(p,g,v,m,y){v&&this.$renderToken(p,g,v,m.slice(0,this.MAX_LINE_LENGTH-g));var C=this.dom.createElement("span");C.className="ace_inline_button ace_keyword ace_toggle_wrap",C.textContent=y?"<hide>":"<click to see more...>",p.appendChild(C)},f.prototype.$renderLine=function(p,g,v){if(!v&&v!=!1&&(v=this.session.getFoldLine(g)),v)var m=this.$getFoldLineTokens(g,v);else var m=this.session.getTokens(g);var y=p;if(m.length){var C=this.session.getRowSplitData(g);if(C&&C.length){this.$renderWrappedLine(p,m,C);var y=p.lastChild}else{var y=p;this.$useLineGroups()&&(y=this.$createLineElement(),p.appendChild(y)),this.$renderSimpleLine(y,m)}}else this.$useLineGroups()&&(y=this.$createLineElement(),p.appendChild(y));if(this.showEOL&&y){v&&(g=v.end.row);var _=this.dom.createElement("span");_.className="ace_invisible ace_invisible_eol",_.textContent=g==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(_)}},f.prototype.$getFoldLineTokens=function(p,g){var v=this.session,m=[];function y(_,k,b){for(var S=0,T=0;T+_[S].value.length<k;)if(T+=_[S].value.length,S++,S==_.length)return;if(T!=k){var L=_[S].value.substring(k-T);L.length>b-k&&(L=L.substring(0,b-k)),m.push({type:_[S].type,value:L}),T=k+L.length,S+=1}for(;T<b&&S<_.length;){var L=_[S].value;L.length+T>b?m.push({type:_[S].type,value:L.substring(0,b-T)}):m.push(_[S]),T+=L.length,S+=1}}var C=v.getTokens(p);return g.walk(function(_,k,b,S,T){_!=null?m.push({type:"fold",value:_}):(T&&(C=v.getTokens(k)),C.length&&y(C,S,b))},g.end.row,this.session.getLine(g.end.row).length),m},f.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},f}();h.prototype.EOF_CHAR="¶",h.prototype.EOL_CHAR_LF="¬",h.prototype.EOL_CHAR_CRLF="¤",h.prototype.EOL_CHAR=h.prototype.EOL_CHAR_LF,h.prototype.TAB_CHAR="—",h.prototype.SPACE_CHAR="·",h.prototype.$padding=0,h.prototype.MAX_LINE_LENGTH=1e4,h.prototype.showInvisibles=!1,h.prototype.showSpaces=!1,h.prototype.showTabs=!1,h.prototype.showEOL=!1,h.prototype.displayIndentGuides=!0,h.prototype.$highlightIndentGuides=!0,h.prototype.$tabStrings=[],h.prototype.destroy={},h.prototype.onChangeTabSize=h.prototype.$computeTabString,i.implement(h.prototype,d),o.Text=h}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(r,o,n){var i=r("../lib/dom"),a=function(){function c(l){this.element=i.createElement("div"),this.element.className="ace_layer ace_cursor-layer",l.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),i.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return c.prototype.$updateOpacity=function(l){for(var d=this.cursors,s=d.length;s--;)i.setStyle(d[s].style,"opacity",l?"":"0")},c.prototype.$startCssAnimation=function(){for(var l=this.cursors,d=l.length;d--;)l[d].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&i.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},c.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,i.removeCssClass(this.element,"ace_animate-blinking")},c.prototype.setPadding=function(l){this.$padding=l},c.prototype.setSession=function(l){this.session=l},c.prototype.setBlinking=function(l){l!=this.isBlinking&&(this.isBlinking=l,this.restartTimer())},c.prototype.setBlinkInterval=function(l){l!=this.blinkInterval&&(this.blinkInterval=l,this.restartTimer())},c.prototype.setSmoothBlinking=function(l){l!=this.smoothBlinking&&(this.smoothBlinking=l,i.setCssClass(this.element,"ace_smooth-blinking",l),this.$updateCursors(!0),this.restartTimer())},c.prototype.addCursor=function(){var l=i.createElement("div");return l.className="ace_cursor",this.element.appendChild(l),this.cursors.push(l),l},c.prototype.removeCursor=function(){if(this.cursors.length>1){var l=this.cursors.pop();return l.parentNode.removeChild(l),l}},c.prototype.hideCursor=function(){this.isVisible=!1,i.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},c.prototype.showCursor=function(){this.isVisible=!0,i.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},c.prototype.restartTimer=function(){var l=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,i.removeCssClass(this.element,"ace_smooth-blinking")),l(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&i.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),i.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var d=(function(){this.timeoutId=setTimeout(function(){l(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){l(!0),d()},this.blinkInterval),d()}},c.prototype.getPixelPosition=function(l,d){if(!this.config||!this.session)return{left:0,top:0};l||(l=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(l),u=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,l.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),h=(s.row-(d?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:u,top:h}},c.prototype.isCursorInView=function(l,d){return l.top>=0&&l.top<d.maxHeight},c.prototype.update=function(l){this.config=l;var d=this.session.$selectionMarkers,s=0,u=0;(d===void 0||d.length===0)&&(d=[{cursor:null}]);for(var s=0,h=d.length;s<h;s++){var f=this.getPixelPosition(d[s].cursor,!0);if(!((f.top>l.height+l.offset||f.top<0)&&s>1)){var p=this.cursors[u++]||this.addCursor(),g=p.style;this.drawCursor?this.drawCursor(p,f,l,d[s],this.session):this.isCursorInView(f,l)?(i.setStyle(g,"display","block"),i.translate(p,f.left,f.top),i.setStyle(g,"width",Math.round(l.characterWidth)+"px"),i.setStyle(g,"height",l.lineHeight+"px")):i.setStyle(g,"display","none")}}for(;this.cursors.length>u;)this.removeCursor();var v=this.session.getOverwrite();this.$setOverwrite(v),this.$pixelPos=f,this.restartTimer()},c.prototype.$setOverwrite=function(l){l!=this.overwrite&&(this.overwrite=l,l?i.addCssClass(this.element,"ace_overwrite-cursors"):i.removeCssClass(this.element,"ace_overwrite-cursors"))},c.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},c}();a.prototype.$padding=0,a.prototype.drawCursor=null,o.Cursor=a}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(r,o,n){var i=this&&this.__extends||function(){var p=function(g,v){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(m[C]=y[C])},p(g,v)};return function(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");p(g,v);function m(){this.constructor=g}g.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}(),a=r("./lib/oop"),c=r("./lib/dom"),l=r("./lib/event"),d=r("./lib/event_emitter").EventEmitter,s=32768,u=function(){function p(g,v){this.element=c.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+v,this.inner=c.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),g.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addListener(this.element,"scroll",this.onScroll.bind(this)),l.addListener(this.element,"mousedown",l.preventDefault)}return p.prototype.setVisible=function(g){this.element.style.display=g?"":"none",this.isVisible=g,this.coeff=1},p}();a.implement(u.prototype,d);var h=function(p){i(g,p);function g(v,m){var y=p.call(this,v,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,m.$scrollbarWidth=y.width=c.scrollbarWidth(v.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return g.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var v=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-v)/(this.coeff-v)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},g.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},g.prototype.setHeight=function(v){this.element.style.height=v+"px"},g.prototype.setScrollHeight=function(v){this.scrollHeight=v,v>s?(this.coeff=s/v,v=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=v+"px"},g.prototype.setScrollTop=function(v){this.scrollTop!=v&&(this.skipEvent=!0,this.scrollTop=v,this.element.scrollTop=v*this.coeff)},g}(u);h.prototype.setInnerHeight=h.prototype.setScrollHeight;var f=function(p){i(g,p);function g(v,m){var y=p.call(this,v,"-h")||this;return y.scrollLeft=0,y.height=m.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return g.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},g.prototype.getHeight=function(){return this.isVisible?this.height:0},g.prototype.setWidth=function(v){this.element.style.width=v+"px"},g.prototype.setInnerWidth=function(v){this.inner.style.width=v+"px"},g.prototype.setScrollWidth=function(v){this.inner.style.width=v+"px"},g.prototype.setScrollLeft=function(v){this.scrollLeft!=v&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=v)},g}(u);o.ScrollBar=h,o.ScrollBarV=h,o.ScrollBarH=f,o.VScrollBar=h,o.HScrollBar=f}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(r,o,n){var i=this&&this.__extends||function(){var f=function(p,g){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(v[y]=m[y])},f(p,g)};return function(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");f(p,g);function v(){this.constructor=p}p.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}}(),a=r("./lib/oop"),c=r("./lib/dom"),l=r("./lib/event"),d=r("./lib/event_emitter").EventEmitter;c.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
   354    position: absolute;
   355    background: rgba(128, 128, 128, 0.6);
   356    -moz-box-sizing: border-box;
   357    box-sizing: border-box;
   358    border: 1px solid #bbb;
   359    border-radius: 2px;
   360    z-index: 8;
   361  }
   362  .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
   363    position: absolute;
   364    z-index: 6;
   365    background: none;
   366    overflow: hidden!important;
   367  }
   368  .ace_editor>.ace_sb-v {
   369    z-index: 6;
   370    right: 0;
   371    top: 0;
   372    width: 12px;
   373  }
   374  .ace_editor>.ace_sb-v div {
   375    z-index: 8;
   376    right: 0;
   377    width: 100%;
   378  }
   379  .ace_editor>.ace_sb-h {
   380    bottom: 0;
   381    left: 0;
   382    height: 12px;
   383  }
   384  .ace_editor>.ace_sb-h div {
   385    bottom: 0;
   386    height: 100%;
   387  }
   388  .ace_editor>.ace_sb_grabbed {
   389    z-index: 8;
   390    background: #000;
   391  }`,"ace_scrollbar.css",!1);var s=function(){function f(p,g){this.element=c.createElement("div"),this.element.className="ace_sb"+g,this.inner=c.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,p.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return f.prototype.setVisible=function(p){this.element.style.display=p?"":"none",this.isVisible=p,this.coeff=1},f}();a.implement(s.prototype,d);var u=function(f){i(p,f);function p(g,v){var m=f.call(this,g,"-v")||this;return m.scrollTop=0,m.scrollHeight=0,m.parent=g,m.width=m.VScrollWidth,m.renderer=v,m.inner.style.width=m.element.style.width=(m.width||15)+"px",m.$minWidth=0,m}return p.prototype.onMouseDown=function(g,v){if(g==="mousedown"&&!(l.getButton(v)!==0||v.detail===2)){if(v.target===this.inner){var m=this,y=v.clientY,C=function(I){y=I.clientY},_=function(){clearInterval(T)},k=v.clientY,b=this.thumbTop,S=function(){if(y!==void 0){var I=m.scrollTopFromThumbTop(b+y-k);I!==m.scrollTop&&m._emit("scroll",{data:I})}};l.capture(this.inner,C,_);var T=setInterval(S,20);return l.preventDefault(v)}var L=v.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(L)}),l.preventDefault(v)}},p.prototype.getHeight=function(){return this.height},p.prototype.scrollTopFromThumbTop=function(g){var v=g*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return v=v>>0,v<0?v=0:v>this.pageHeight-this.viewHeight&&(v=this.pageHeight-this.viewHeight),v},p.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},p.prototype.setHeight=function(g){this.height=Math.max(0,g),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},p.prototype.setScrollHeight=function(g,v){this.pageHeight===g&&!v||(this.pageHeight=g,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},p.prototype.setScrollTop=function(g){this.scrollTop=g,g<0&&(g=0),this.thumbTop=g*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},p}(s);u.prototype.setInnerHeight=u.prototype.setScrollHeight;var h=function(f){i(p,f);function p(g,v){var m=f.call(this,g,"-h")||this;return m.scrollLeft=0,m.scrollWidth=0,m.height=m.HScrollHeight,m.inner.style.height=m.element.style.height=(m.height||12)+"px",m.renderer=v,m}return p.prototype.onMouseDown=function(g,v){if(g==="mousedown"&&!(l.getButton(v)!==0||v.detail===2)){if(v.target===this.inner){var m=this,y=v.clientX,C=function(I){y=I.clientX},_=function(){clearInterval(T)},k=v.clientX,b=this.thumbLeft,S=function(){if(y!==void 0){var I=m.scrollLeftFromThumbLeft(b+y-k);I!==m.scrollLeft&&m._emit("scroll",{data:I})}};l.capture(this.inner,C,_);var T=setInterval(S,20);return l.preventDefault(v)}var L=v.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(L)}),l.preventDefault(v)}},p.prototype.getHeight=function(){return this.isVisible?this.height:0},p.prototype.scrollLeftFromThumbLeft=function(g){var v=g*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return v=v>>0,v<0?v=0:v>this.pageWidth-this.viewWidth&&(v=this.pageWidth-this.viewWidth),v},p.prototype.setWidth=function(g){this.width=Math.max(0,g),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},p.prototype.setScrollWidth=function(g,v){this.pageWidth===g&&!v||(this.pageWidth=g,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},p.prototype.setScrollLeft=function(g){this.scrollLeft=g,g<0&&(g=0),this.thumbLeft=g*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},p}(s);h.prototype.setInnerWidth=h.prototype.setScrollWidth,o.ScrollBar=u,o.ScrollBarV=u,o.ScrollBarH=h,o.VScrollBar=u,o.HScrollBar=h}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(r,o,n){var i=r("./lib/event"),a=function(){function c(l,d){this.onRender=l,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=d||window;var s=this;this._flush=function(u){s.pending=!1;var h=s.changes;if(h&&(i.blockIdle(100),s.changes=0,s.onRender(h)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return c.prototype.schedule=function(l){this.changes=this.changes|l,this.changes&&!this.pending&&(i.nextFrame(this._flush),this.pending=!0)},c.prototype.clear=function(l){var d=this.changes;return this.changes=0,d},c}();o.RenderLoop=a}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(r,o,n){var i=r("../lib/oop"),a=r("../lib/dom"),c=r("../lib/lang"),l=r("../lib/event"),d=r("../lib/useragent"),s=r("../lib/event_emitter").EventEmitter,u=512,h=typeof ResizeObserver=="function",f=200,p=function(){function g(v){this.el=a.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=a.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=a.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),v.appendChild(this.el),this.$measureNode.textContent=c.stringRepeat("X",u),this.$characterSize={width:0,height:0},h?this.$addObserver():this.checkForSizeChanges()}return g.prototype.$setMeasureNodeStyles=function(v,m){v.width=v.height="auto",v.left=v.top="0px",v.visibility="hidden",v.position="absolute",v.whiteSpace="pre",d.isIE<8?v["font-family"]="inherit":v.font="inherit",v.overflow=m?"hidden":"visible"},g.prototype.checkForSizeChanges=function(v){if(v===void 0&&(v=this.$measureSizes()),v&&(this.$characterSize.width!==v.width||this.$characterSize.height!==v.height)){this.$measureNode.style.fontWeight="bold";var m=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=v,this.charSizes=Object.create(null),this.allowBoldFonts=m&&m.width===v.width&&m.height===v.height,this._emit("changeCharacterSize",{data:v})}},g.prototype.$addObserver=function(){var v=this;this.$observer=new window.ResizeObserver(function(m){v.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},g.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var v=this;return this.$pollSizeChangesTimer=l.onIdle(function m(){v.checkForSizeChanges(),l.onIdle(m,500)},500)},g.prototype.setPolling=function(v){v?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},g.prototype.$measureSizes=function(v){var m={height:(v||this.$measureNode).clientHeight,width:(v||this.$measureNode).clientWidth/u};return m.width===0||m.height===0?null:m},g.prototype.$measureCharWidth=function(v){this.$main.textContent=c.stringRepeat(v,u);var m=this.$main.getBoundingClientRect();return m.width/u},g.prototype.getCharacterWidth=function(v){var m=this.charSizes[v];return m===void 0&&(m=this.charSizes[v]=this.$measureCharWidth(v)/this.$characterSize.width),m},g.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},g.prototype.$getZoom=function(v){return!v||!v.parentElement?1:(window.getComputedStyle(v).zoom||1)*this.$getZoom(v.parentElement)},g.prototype.$initTransformMeasureNodes=function(){var v=function(m,y){return["div",{style:"position: absolute;top:"+m+"px;left:"+y+"px;"}]};this.els=a.buildDom([v(0,0),v(f,0),v(0,f),v(f,f)],this.el)},g.prototype.transformCoordinates=function(v,m){if(v){var y=this.$getZoom(this.el);v=b(1/y,v)}function C(j,z,F){var K=j[1]*z[0]-j[0]*z[1];return[(-z[1]*F[0]+z[0]*F[1])/K,(+j[1]*F[0]-j[0]*F[1])/K]}function _(j,z){return[j[0]-z[0],j[1]-z[1]]}function k(j,z){return[j[0]+z[0],j[1]+z[1]]}function b(j,z){return[j*z[0],j*z[1]]}this.els||this.$initTransformMeasureNodes();function S(j){var z=j.getBoundingClientRect();return[z.left,z.top]}var T=S(this.els[0]),L=S(this.els[1]),I=S(this.els[2]),A=S(this.els[3]),P=C(_(A,L),_(A,I),_(k(L,I),k(A,T))),D=b(1+P[0],_(L,T)),E=b(1+P[1],_(I,T));if(m){var R=m,$=P[0]*R[0]/f+P[1]*R[1]/f+1,N=k(b(R[0],D),b(R[1],E));return k(b(1/$/f,N),T)}var M=_(v,T),O=C(_(D,b(P[0],M)),_(E,b(P[1],M)),M);return b(f,O)},g}();p.prototype.$characterSize={width:0,height:0},i.implement(p.prototype,s),o.FontMetrics=p}),ace.define("ace/css/editor-css",["require","exports","module"],function(r,o,n){n.exports=`
   392  .ace_br1 {border-top-left-radius    : 3px;}
   393  .ace_br2 {border-top-right-radius   : 3px;}
   394  .ace_br3 {border-top-left-radius    : 3px; border-top-right-radius:    3px;}
   395  .ace_br4 {border-bottom-right-radius: 3px;}
   396  .ace_br5 {border-top-left-radius    : 3px; border-bottom-right-radius: 3px;}
   397  .ace_br6 {border-top-right-radius   : 3px; border-bottom-right-radius: 3px;}
   398  .ace_br7 {border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px;}
   399  .ace_br8 {border-bottom-left-radius : 3px;}
   400  .ace_br9 {border-top-left-radius    : 3px; border-bottom-left-radius:  3px;}
   401  .ace_br10{border-top-right-radius   : 3px; border-bottom-left-radius:  3px;}
   402  .ace_br11{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-left-radius:  3px;}
   403  .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}
   404  .ace_br13{border-top-left-radius    : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}
   405  .ace_br14{border-top-right-radius   : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}
   406  .ace_br15{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
   407  
   408  
   409  .ace_editor {
   410      position: relative;
   411      overflow: hidden;
   412      padding: 0;
   413      font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
   414      direction: ltr;
   415      text-align: left;
   416      -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
   417  }
   418  
   419  .ace_scroller {
   420      position: absolute;
   421      overflow: hidden;
   422      top: 0;
   423      bottom: 0;
   424      background-color: inherit;
   425      -ms-user-select: none;
   426      -moz-user-select: none;
   427      -webkit-user-select: none;
   428      user-select: none;
   429      cursor: text;
   430  }
   431  
   432  .ace_content {
   433      position: absolute;
   434      box-sizing: border-box;
   435      min-width: 100%;
   436      contain: style size layout;
   437      font-variant-ligatures: no-common-ligatures;
   438  }
   439  
   440  .ace_keyboard-focus:focus {
   441      box-shadow: inset 0 0 0 2px #5E9ED6;
   442      outline: none;
   443  }
   444  
   445  .ace_dragging .ace_scroller:before{
   446      position: absolute;
   447      top: 0;
   448      left: 0;
   449      right: 0;
   450      bottom: 0;
   451      content: '';
   452      background: rgba(250, 250, 250, 0.01);
   453      z-index: 1000;
   454  }
   455  .ace_dragging.ace_dark .ace_scroller:before{
   456      background: rgba(0, 0, 0, 0.01);
   457  }
   458  
   459  .ace_gutter {
   460      position: absolute;
   461      overflow : hidden;
   462      width: auto;
   463      top: 0;
   464      bottom: 0;
   465      left: 0;
   466      cursor: default;
   467      z-index: 4;
   468      -ms-user-select: none;
   469      -moz-user-select: none;
   470      -webkit-user-select: none;
   471      user-select: none;
   472      contain: style size layout;
   473  }
   474  
   475  .ace_gutter-active-line {
   476      position: absolute;
   477      left: 0;
   478      right: 0;
   479  }
   480  
   481  .ace_scroller.ace_scroll-left:after {
   482      content: "";
   483      position: absolute;
   484      top: 0;
   485      right: 0;
   486      bottom: 0;
   487      left: 0;
   488      box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
   489      pointer-events: none;
   490  }
   491  
   492  .ace_gutter-cell, .ace_gutter-cell_svg-icons {
   493      position: absolute;
   494      top: 0;
   495      left: 0;
   496      right: 0;
   497      padding-left: 19px;
   498      padding-right: 6px;
   499      background-repeat: no-repeat;
   500  }
   501  
   502  .ace_gutter-cell_svg-icons .ace_gutter_annotation {
   503      margin-left: -14px;
   504      float: left;
   505  }
   506  
   507  .ace_gutter-cell .ace_gutter_annotation {
   508      margin-left: -19px;
   509      float: left;
   510  }
   511  
   512  .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {
   513      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
   514      background-repeat: no-repeat;
   515      background-position: 2px center;
   516  }
   517  
   518  .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
   519      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
   520      background-repeat: no-repeat;
   521      background-position: 2px center;
   522  }
   523  
   524  .ace_gutter-cell.ace_info, .ace_icon.ace_info {
   525      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
   526      background-repeat: no-repeat;
   527      background-position: 2px center;
   528  }
   529  .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {
   530      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
   531  }
   532  
   533  .ace_icon_svg.ace_error {
   534      -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
   535      background-color: crimson;
   536  }
   537  .ace_icon_svg.ace_warning {
   538      -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
   539      background-color: darkorange;
   540  }
   541  .ace_icon_svg.ace_info {
   542      -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
   543      background-color: royalblue;
   544  }
   545  
   546  .ace_icon_svg.ace_error_fold {
   547      -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
   548      background-color: crimson;
   549  }
   550  .ace_icon_svg.ace_warning_fold {
   551      -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
   552      background-color: darkorange;
   553  }
   554  
   555  .ace_scrollbar {
   556      contain: strict;
   557      position: absolute;
   558      right: 0;
   559      bottom: 0;
   560      z-index: 6;
   561  }
   562  
   563  .ace_scrollbar-inner {
   564      position: absolute;
   565      cursor: text;
   566      left: 0;
   567      top: 0;
   568  }
   569  
   570  .ace_scrollbar-v{
   571      overflow-x: hidden;
   572      overflow-y: scroll;
   573      top: 0;
   574  }
   575  
   576  .ace_scrollbar-h {
   577      overflow-x: scroll;
   578      overflow-y: hidden;
   579      left: 0;
   580  }
   581  
   582  .ace_print-margin {
   583      position: absolute;
   584      height: 100%;
   585  }
   586  
   587  .ace_text-input {
   588      position: absolute;
   589      z-index: 0;
   590      width: 0.5em;
   591      height: 1em;
   592      opacity: 0;
   593      background: transparent;
   594      -moz-appearance: none;
   595      appearance: none;
   596      border: none;
   597      resize: none;
   598      outline: none;
   599      overflow: hidden;
   600      font: inherit;
   601      padding: 0 1px;
   602      margin: 0 -1px;
   603      contain: strict;
   604      -ms-user-select: text;
   605      -moz-user-select: text;
   606      -webkit-user-select: text;
   607      user-select: text;
   608      /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
   609      white-space: pre!important;
   610  }
   611  .ace_text-input.ace_composition {
   612      background: transparent;
   613      color: inherit;
   614      z-index: 1000;
   615      opacity: 1;
   616  }
   617  .ace_composition_placeholder { color: transparent }
   618  .ace_composition_marker { 
   619      border-bottom: 1px solid;
   620      position: absolute;
   621      border-radius: 0;
   622      margin-top: 1px;
   623  }
   624  
   625  [ace_nocontext=true] {
   626      transform: none!important;
   627      filter: none!important;
   628      clip-path: none!important;
   629      mask : none!important;
   630      contain: none!important;
   631      perspective: none!important;
   632      mix-blend-mode: initial!important;
   633      z-index: auto;
   634  }
   635  
   636  .ace_layer {
   637      z-index: 1;
   638      position: absolute;
   639      overflow: hidden;
   640      /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
   641      word-wrap: normal;
   642      white-space: pre;
   643      height: 100%;
   644      width: 100%;
   645      box-sizing: border-box;
   646      /* setting pointer-events: auto; on node under the mouse, which changes
   647          during scroll, will break mouse wheel scrolling in Safari */
   648      pointer-events: none;
   649  }
   650  
   651  .ace_gutter-layer {
   652      position: relative;
   653      width: auto;
   654      text-align: right;
   655      pointer-events: auto;
   656      height: 1000000px;
   657      contain: style size layout;
   658  }
   659  
   660  .ace_text-layer {
   661      font: inherit !important;
   662      position: absolute;
   663      height: 1000000px;
   664      width: 1000000px;
   665      contain: style size layout;
   666  }
   667  
   668  .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
   669      contain: style size layout;
   670      position: absolute;
   671      top: 0;
   672      left: 0;
   673      right: 0;
   674  }
   675  
   676  .ace_hidpi .ace_text-layer,
   677  .ace_hidpi .ace_gutter-layer,
   678  .ace_hidpi .ace_content,
   679  .ace_hidpi .ace_gutter {
   680      contain: strict;
   681  }
   682  .ace_hidpi .ace_text-layer > .ace_line, 
   683  .ace_hidpi .ace_text-layer > .ace_line_group {
   684      contain: strict;
   685  }
   686  
   687  .ace_cjk {
   688      display: inline-block;
   689      text-align: center;
   690  }
   691  
   692  .ace_cursor-layer {
   693      z-index: 4;
   694  }
   695  
   696  .ace_cursor {
   697      z-index: 4;
   698      position: absolute;
   699      box-sizing: border-box;
   700      border-left: 2px solid;
   701      /* workaround for smooth cursor repaintng whole screen in chrome */
   702      transform: translatez(0);
   703  }
   704  
   705  .ace_multiselect .ace_cursor {
   706      border-left-width: 1px;
   707  }
   708  
   709  .ace_slim-cursors .ace_cursor {
   710      border-left-width: 1px;
   711  }
   712  
   713  .ace_overwrite-cursors .ace_cursor {
   714      border-left-width: 0;
   715      border-bottom: 1px solid;
   716  }
   717  
   718  .ace_hidden-cursors .ace_cursor {
   719      opacity: 0.2;
   720  }
   721  
   722  .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
   723      opacity: 0;
   724  }
   725  
   726  .ace_smooth-blinking .ace_cursor {
   727      transition: opacity 0.18s;
   728  }
   729  
   730  .ace_animate-blinking .ace_cursor {
   731      animation-duration: 1000ms;
   732      animation-timing-function: step-end;
   733      animation-name: blink-ace-animate;
   734      animation-iteration-count: infinite;
   735  }
   736  
   737  .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
   738      animation-duration: 1000ms;
   739      animation-timing-function: ease-in-out;
   740      animation-name: blink-ace-animate-smooth;
   741  }
   742      
   743  @keyframes blink-ace-animate {
   744      from, to { opacity: 1; }
   745      60% { opacity: 0; }
   746  }
   747  
   748  @keyframes blink-ace-animate-smooth {
   749      from, to { opacity: 1; }
   750      45% { opacity: 1; }
   751      60% { opacity: 0; }
   752      85% { opacity: 0; }
   753  }
   754  
   755  .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
   756      position: absolute;
   757      z-index: 3;
   758  }
   759  
   760  .ace_marker-layer .ace_selection {
   761      position: absolute;
   762      z-index: 5;
   763  }
   764  
   765  .ace_marker-layer .ace_bracket {
   766      position: absolute;
   767      z-index: 6;
   768  }
   769  
   770  .ace_marker-layer .ace_error_bracket {
   771      position: absolute;
   772      border-bottom: 1px solid #DE5555;
   773      border-radius: 0;
   774  }
   775  
   776  .ace_marker-layer .ace_active-line {
   777      position: absolute;
   778      z-index: 2;
   779  }
   780  
   781  .ace_marker-layer .ace_selected-word {
   782      position: absolute;
   783      z-index: 4;
   784      box-sizing: border-box;
   785  }
   786  
   787  .ace_line .ace_fold {
   788      box-sizing: border-box;
   789  
   790      display: inline-block;
   791      height: 11px;
   792      margin-top: -2px;
   793      vertical-align: middle;
   794  
   795      background-image:
   796          url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
   797          url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
   798      background-repeat: no-repeat, repeat-x;
   799      background-position: center center, top left;
   800      color: transparent;
   801  
   802      border: 1px solid black;
   803      border-radius: 2px;
   804  
   805      cursor: pointer;
   806      pointer-events: auto;
   807  }
   808  
   809  .ace_dark .ace_fold {
   810  }
   811  
   812  .ace_fold:hover{
   813      background-image:
   814          url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
   815          url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
   816  }
   817  
   818  .ace_tooltip {
   819      background-color: #f5f5f5;
   820      border: 1px solid gray;
   821      border-radius: 1px;
   822      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
   823      color: black;
   824      max-width: 100%;
   825      padding: 3px 4px;
   826      position: fixed;
   827      z-index: 999999;
   828      box-sizing: border-box;
   829      cursor: default;
   830      white-space: pre-wrap;
   831      word-wrap: break-word;
   832      line-height: normal;
   833      font-style: normal;
   834      font-weight: normal;
   835      letter-spacing: normal;
   836      pointer-events: none;
   837      overflow: auto;
   838      max-width: min(60em, 66vw);
   839      overscroll-behavior: contain;
   840  }
   841  .ace_tooltip pre {
   842      white-space: pre-wrap;
   843  }
   844  
   845  .ace_tooltip.ace_dark {
   846      background-color: #636363;
   847      color: #fff;
   848  }
   849  
   850  .ace_tooltip:focus {
   851      outline: 1px solid #5E9ED6;
   852  }
   853  
   854  .ace_icon {
   855      display: inline-block;
   856      width: 18px;
   857      vertical-align: top;
   858  }
   859  
   860  .ace_icon_svg {
   861      display: inline-block;
   862      width: 12px;
   863      vertical-align: top;
   864      -webkit-mask-repeat: no-repeat;
   865      -webkit-mask-size: 12px;
   866      -webkit-mask-position: center;
   867  }
   868  
   869  .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
   870      padding-right: 13px;
   871  }
   872  
   873  .ace_fold-widget {
   874      box-sizing: border-box;
   875  
   876      margin: 0 -12px 0 1px;
   877      display: none;
   878      width: 11px;
   879      vertical-align: top;
   880  
   881      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
   882      background-repeat: no-repeat;
   883      background-position: center;
   884  
   885      border-radius: 3px;
   886      
   887      border: 1px solid transparent;
   888      cursor: pointer;
   889  }
   890  
   891  .ace_folding-enabled .ace_fold-widget {
   892      display: inline-block;   
   893  }
   894  
   895  .ace_fold-widget.ace_end {
   896      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
   897  }
   898  
   899  .ace_fold-widget.ace_closed {
   900      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
   901  }
   902  
   903  .ace_fold-widget:hover {
   904      border: 1px solid rgba(0, 0, 0, 0.3);
   905      background-color: rgba(255, 255, 255, 0.2);
   906      box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
   907  }
   908  
   909  .ace_fold-widget:active {
   910      border: 1px solid rgba(0, 0, 0, 0.4);
   911      background-color: rgba(0, 0, 0, 0.05);
   912      box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
   913  }
   914  /**
   915   * Dark version for fold widgets
   916   */
   917  .ace_dark .ace_fold-widget {
   918      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
   919  }
   920  .ace_dark .ace_fold-widget.ace_end {
   921      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
   922  }
   923  .ace_dark .ace_fold-widget.ace_closed {
   924      background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
   925  }
   926  .ace_dark .ace_fold-widget:hover {
   927      box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
   928      background-color: rgba(255, 255, 255, 0.1);
   929  }
   930  .ace_dark .ace_fold-widget:active {
   931      box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
   932  }
   933  
   934  .ace_inline_button {
   935      border: 1px solid lightgray;
   936      display: inline-block;
   937      margin: -1px 8px;
   938      padding: 0 5px;
   939      pointer-events: auto;
   940      cursor: pointer;
   941  }
   942  .ace_inline_button:hover {
   943      border-color: gray;
   944      background: rgba(200,200,200,0.2);
   945      display: inline-block;
   946      pointer-events: auto;
   947  }
   948  
   949  .ace_fold-widget.ace_invalid {
   950      background-color: #FFB4B4;
   951      border-color: #DE5555;
   952  }
   953  
   954  .ace_fade-fold-widgets .ace_fold-widget {
   955      transition: opacity 0.4s ease 0.05s;
   956      opacity: 0;
   957  }
   958  
   959  .ace_fade-fold-widgets:hover .ace_fold-widget {
   960      transition: opacity 0.05s ease 0.05s;
   961      opacity:1;
   962  }
   963  
   964  .ace_underline {
   965      text-decoration: underline;
   966  }
   967  
   968  .ace_bold {
   969      font-weight: bold;
   970  }
   971  
   972  .ace_nobold .ace_bold {
   973      font-weight: normal;
   974  }
   975  
   976  .ace_italic {
   977      font-style: italic;
   978  }
   979  
   980  
   981  .ace_error-marker {
   982      background-color: rgba(255, 0, 0,0.2);
   983      position: absolute;
   984      z-index: 9;
   985  }
   986  
   987  .ace_highlight-marker {
   988      background-color: rgba(255, 255, 0,0.2);
   989      position: absolute;
   990      z-index: 8;
   991  }
   992  
   993  .ace_mobile-menu {
   994      position: absolute;
   995      line-height: 1.5;
   996      border-radius: 4px;
   997      -ms-user-select: none;
   998      -moz-user-select: none;
   999      -webkit-user-select: none;
  1000      user-select: none;
  1001      background: white;
  1002      box-shadow: 1px 3px 2px grey;
  1003      border: 1px solid #dcdcdc;
  1004      color: black;
  1005  }
  1006  .ace_dark > .ace_mobile-menu {
  1007      background: #333;
  1008      color: #ccc;
  1009      box-shadow: 1px 3px 2px grey;
  1010      border: 1px solid #444;
  1011  
  1012  }
  1013  .ace_mobile-button {
  1014      padding: 2px;
  1015      cursor: pointer;
  1016      overflow: hidden;
  1017  }
  1018  .ace_mobile-button:hover {
  1019      background-color: #eee;
  1020      opacity:1;
  1021  }
  1022  .ace_mobile-button:active {
  1023      background-color: #ddd;
  1024  }
  1025  
  1026  .ace_placeholder {
  1027      font-family: arial;
  1028      transform: scale(0.9);
  1029      transform-origin: left;
  1030      white-space: pre;
  1031      opacity: 0.7;
  1032      margin: 0 10px;
  1033  }
  1034  
  1035  .ace_ghost_text {
  1036      opacity: 0.5;
  1037      font-style: italic;
  1038      white-space: pre;
  1039  }
  1040  
  1041  .ace_screenreader-only {
  1042      position:absolute;
  1043      left:-10000px;
  1044      top:auto;
  1045      width:1px;
  1046      height:1px;
  1047      overflow:hidden;
  1048  }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(r,o,n){var i=r("../lib/dom"),a=r("../lib/oop"),c=r("../lib/event_emitter").EventEmitter,l=function(){function d(s,u){this.canvas=i.createElement("canvas"),this.renderer=u,this.pixelRatio=1,this.maxHeight=u.layerConfig.maxHeight,this.lineHeight=u.layerConfig.lineHeight,this.canvasHeight=s.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=s.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},s.element.appendChild(this.canvas)}return d.prototype.$updateDecorators=function(s){var u=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(s){this.maxHeight=s.maxHeight,this.lineHeight=s.lineHeight,this.canvasHeight=s.height;var h=(s.lastRow+1)*this.lineHeight;h<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var f=this.canvas.getContext("2d");function p(A,P){return A.priority<P.priority?-1:A.priority>P.priority?1:0}var g=this.renderer.session.$annotations;if(f.clearRect(0,0,this.canvas.width,this.canvas.height),g){var v={info:1,warning:2,error:3};g.forEach(function(A){A.priority=v[A.type]||null}),g=g.sort(p);for(var m=this.renderer.session.$foldData,y=0;y<g.length;y++){var C=g[y].row,_=this.compensateFoldRows(C,m),k=Math.round((C-_)*this.lineHeight*this.heightRatio),b=Math.round((C-_)*this.lineHeight*this.heightRatio),S=Math.round(((C-_)*this.lineHeight+this.lineHeight)*this.heightRatio),T=S-b;if(T<this.minDecorationHeight){var L=(b+S)/2|0;L<this.halfMinDecorationHeight?L=this.halfMinDecorationHeight:L+this.halfMinDecorationHeight>this.canvasHeight&&(L=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(L-this.halfMinDecorationHeight),S=Math.round(L+this.halfMinDecorationHeight)}f.fillStyle=u[g[y].type]||null,f.fillRect(0,k,this.canvasWidth,S-b)}}var I=this.renderer.session.selection.getCursor();if(I){var _=this.compensateFoldRows(I.row,m),k=Math.round((I.row-_)*this.lineHeight*this.heightRatio);f.fillStyle="rgba(0, 0, 0, 0.5)",f.fillRect(0,k,this.canvasWidth,2)}},d.prototype.compensateFoldRows=function(s,u){var h=0;if(u&&u.length>0)for(var f=0;f<u.length;f++)s>u[f].start.row&&s<u[f].end.row?h+=s-u[f].start.row:s>=u[f].end.row&&(h+=u[f].end.row-u[f].start.row);return h},d}();a.implement(l.prototype,c),o.Decorator=l}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(r,o,n){var i=r("./lib/oop"),a=r("./lib/dom"),c=r("./lib/lang"),l=r("./config"),d=r("./layer/gutter").Gutter,s=r("./layer/marker").Marker,u=r("./layer/text").Text,h=r("./layer/cursor").Cursor,f=r("./scrollbar").HScrollBar,p=r("./scrollbar").VScrollBar,g=r("./scrollbar_custom").HScrollBar,v=r("./scrollbar_custom").VScrollBar,m=r("./renderloop").RenderLoop,y=r("./layer/font_metrics").FontMetrics,C=r("./lib/event_emitter").EventEmitter,_=r("./css/editor-css"),k=r("./layer/decorators").Decorator,b=r("./lib/useragent");a.importCssString(_,"ace_editor.css",!1);var S=function(){function T(L,I){var A=this;this.container=L||a.createElement("div"),a.addCssClass(this.container,"ace_editor"),a.HI_DPI&&a.addCssClass(this.container,"ace_hidpi"),this.setTheme(I),l.get("useStrictCSP")==null&&l.set("useStrictCSP",!1),this.$gutter=a.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=a.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=a.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new d(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var P=this.$textLayer=new u(this.content);this.canvas=P.element,this.$markerFront=new s(this.content),this.$cursorLayer=new h(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new p(this.container,this),this.scrollBarH=new f(this.container,this),this.scrollBarV.on("scroll",function(D){A.$scrollAnimation||A.session.setScrollTop(D.data-A.scrollMargin.top)}),this.scrollBarH.on("scroll",function(D){A.$scrollAnimation||A.session.setScrollLeft(D.data-A.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(D){A.updateCharacterSize(),A.onResize(!0,A.gutterWidth,A.$size.width,A.$size.height),A._signal("changeCharacterSize",D)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new m(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),l.resetOptions(this),l._signal("renderer",this)}return T.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),a.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},T.prototype.setSession=function(L){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=L,L&&this.scrollMargin.top&&L.getScrollTop()<=0&&L.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(L),this.$markerBack.setSession(L),this.$markerFront.setSession(L),this.$gutterLayer.setSession(L),this.$textLayer.setSession(L),L&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},T.prototype.updateLines=function(L,I,A){if(I===void 0&&(I=1/0),this.$changedLines?(this.$changedLines.firstRow>L&&(this.$changedLines.firstRow=L),this.$changedLines.lastRow<I&&(this.$changedLines.lastRow=I)):this.$changedLines={firstRow:L,lastRow:I},this.$changedLines.lastRow<this.layerConfig.firstRow)if(A)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},T.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},T.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},T.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},T.prototype.updateFull=function(L){L?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},T.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},T.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},T.prototype.onResize=function(L,I,A,P){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=L?1:0;var D=this.container;P||(P=D.clientHeight||D.scrollHeight),A||(A=D.clientWidth||D.scrollWidth);var E=this.$updateCachedSize(L,I,A,P);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!A&&!P)return this.resizing=0;L&&(this.$gutterLayer.$padding=null),L?this.$renderChanges(E|this.$changes,!0):this.$loop.schedule(E|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},T.prototype.$updateCachedSize=function(L,I,A,P){P-=this.$extraHeight||0;var D=0,E=this.$size,R={width:E.width,height:E.height,scrollerHeight:E.scrollerHeight,scrollerWidth:E.scrollerWidth};if(P&&(L||E.height!=P)&&(E.height=P,D|=this.CHANGE_SIZE,E.scrollerHeight=E.height,this.$horizScroll&&(E.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(E.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",D=D|this.CHANGE_SCROLL),A&&(L||E.width!=A)){D|=this.CHANGE_SIZE,E.width=A,I==null&&(I=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=I,a.setStyle(this.scrollBarH.element.style,"left",I+"px"),a.setStyle(this.scroller.style,"left",I+this.margin.left+"px"),E.scrollerWidth=Math.max(0,A-I-this.scrollBarV.getWidth()-this.margin.h),a.setStyle(this.$gutter.style,"left",this.margin.left+"px");var $=this.scrollBarV.getWidth()+"px";a.setStyle(this.scrollBarH.element.style,"right",$),a.setStyle(this.scroller.style,"right",$),a.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(E.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||L)&&(D|=this.CHANGE_FULL)}return E.$dirty=!A||!P,D&&this._signal("resize",R),D},T.prototype.onGutterResize=function(L){var I=this.$showGutter?L:0;I!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,I,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},T.prototype.adjustWrapLimit=function(){var L=this.$size.scrollerWidth-this.$padding*2,I=Math.floor(L/this.characterWidth);return this.session.adjustWrapLimit(I,this.$showPrintMargin&&this.$printMarginColumn)},T.prototype.setAnimatedScroll=function(L){this.setOption("animatedScroll",L)},T.prototype.getAnimatedScroll=function(){return this.$animatedScroll},T.prototype.setShowInvisibles=function(L){this.setOption("showInvisibles",L),this.session.$bidiHandler.setShowInvisibles(L)},T.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},T.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},T.prototype.setDisplayIndentGuides=function(L){this.setOption("displayIndentGuides",L)},T.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},T.prototype.setHighlightIndentGuides=function(L){this.setOption("highlightIndentGuides",L)},T.prototype.setShowPrintMargin=function(L){this.setOption("showPrintMargin",L)},T.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},T.prototype.setPrintMarginColumn=function(L){this.setOption("printMarginColumn",L)},T.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},T.prototype.getShowGutter=function(){return this.getOption("showGutter")},T.prototype.setShowGutter=function(L){return this.setOption("showGutter",L)},T.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},T.prototype.setFadeFoldWidgets=function(L){this.setOption("fadeFoldWidgets",L)},T.prototype.setHighlightGutterLine=function(L){this.setOption("highlightGutterLine",L)},T.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},T.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var L=a.createElement("div");L.className="ace_layer ace_print-margin-layer",this.$printMarginEl=a.createElement("div"),this.$printMarginEl.className="ace_print-margin",L.appendChild(this.$printMarginEl),this.content.insertBefore(L,this.content.firstChild)}var I=this.$printMarginEl.style;I.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",I.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},T.prototype.getContainerElement=function(){return this.container},T.prototype.getMouseEventTarget=function(){return this.scroller},T.prototype.getTextAreaContainer=function(){return this.container},T.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var L=this.textarea.style,I=this.$composition;if(!this.$keepTextAreaAtCursor&&!I){a.translate(this.textarea,-100,0);return}var A=this.$cursorLayer.$pixelPos;if(A){I&&I.markerRange&&(A=this.$cursorLayer.getPixelPosition(I.markerRange.start,!0));var P=this.layerConfig,D=A.top,E=A.left;D-=P.offset;var R=I&&I.useTextareaForIME||b.isMobile?this.lineHeight:1;if(D<0||D>P.height-R){a.translate(this.textarea,0,0);return}var $=1,N=this.$size.height-R;if(!I)D+=this.lineHeight;else if(I.useTextareaForIME){var M=this.textarea.value;$=this.characterWidth*this.session.$getStringScreenWidth(M)[0]}else D+=this.lineHeight+2;E-=this.scrollLeft,E>this.$size.scrollerWidth-$&&(E=this.$size.scrollerWidth-$),E+=this.gutterWidth+this.margin.left,a.setStyle(L,"height",R+"px"),a.setStyle(L,"width",$+"px"),a.translate(this.textarea,Math.min(E,this.$size.scrollerWidth-$),Math.min(D,N))}}},T.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},T.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},T.prototype.getLastFullyVisibleRow=function(){var L=this.layerConfig,I=L.lastRow,A=this.session.documentToScreenRow(I,0)*L.lineHeight;return A-this.session.getScrollTop()>L.height-L.lineHeight?I-1:I},T.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},T.prototype.setPadding=function(L){this.$padding=L,this.$textLayer.setPadding(L),this.$cursorLayer.setPadding(L),this.$markerFront.setPadding(L),this.$markerBack.setPadding(L),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},T.prototype.setScrollMargin=function(L,I,A,P){var D=this.scrollMargin;D.top=L|0,D.bottom=I|0,D.right=P|0,D.left=A|0,D.v=D.top+D.bottom,D.h=D.left+D.right,D.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-D.top),this.updateFull()},T.prototype.setMargin=function(L,I,A,P){var D=this.margin;D.top=L|0,D.bottom=I|0,D.right=P|0,D.left=A|0,D.v=D.top+D.bottom,D.h=D.left+D.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},T.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},T.prototype.setHScrollBarAlwaysVisible=function(L){this.setOption("hScrollBarAlwaysVisible",L)},T.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},T.prototype.setVScrollBarAlwaysVisible=function(L){this.setOption("vScrollBarAlwaysVisible",L)},T.prototype.$updateScrollBarV=function(){var L=this.layerConfig.maxHeight,I=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(L-=(I-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>L-I&&(L=this.scrollTop+I,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(L+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},T.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},T.prototype.freeze=function(){this.$frozen=!0},T.prototype.unfreeze=function(){this.$frozen=!1},T.prototype.$renderChanges=function(L,I){if(this.$changes&&(L|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!L&&!I){this.$changes|=L;return}if(this.$size.$dirty)return this.$changes|=L,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",L),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var A=this.layerConfig;if(L&this.CHANGE_FULL||L&this.CHANGE_SIZE||L&this.CHANGE_TEXT||L&this.CHANGE_LINES||L&this.CHANGE_SCROLL||L&this.CHANGE_H_SCROLL){if(L|=this.$computeLayerConfig()|this.$loop.clear(),A.firstRow!=this.layerConfig.firstRow&&A.firstRowScreen==this.layerConfig.firstRowScreen){var P=this.scrollTop+(A.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;P>0&&(this.scrollTop=P,L=L|this.CHANGE_SCROLL,L|=this.$computeLayerConfig()|this.$loop.clear())}A=this.layerConfig,this.$updateScrollBarV(),L&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),a.translate(this.content,-this.scrollLeft,-A.offset);var D=A.width+2*this.$padding+"px",E=A.minHeight+"px";a.setStyle(this.content.style,"width",D),a.setStyle(this.content.style,"height",E)}if(L&this.CHANGE_H_SCROLL&&(a.translate(this.content,-this.scrollLeft,-A.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),L&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(A),this.$showGutter&&this.$gutterLayer.update(A),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(A),this.$markerBack.update(A),this.$markerFront.update(A),this.$cursorLayer.update(A),this.$moveTextAreaToCursor(),this._signal("afterRender",L);return}if(L&this.CHANGE_SCROLL){this.$changedLines=null,L&this.CHANGE_TEXT||L&this.CHANGE_LINES?this.$textLayer.update(A):this.$textLayer.scrollLines(A),this.$showGutter&&(L&this.CHANGE_GUTTER||L&this.CHANGE_LINES?this.$gutterLayer.update(A):this.$gutterLayer.scrollLines(A)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(A),this.$markerBack.update(A),this.$markerFront.update(A),this.$cursorLayer.update(A),this.$moveTextAreaToCursor(),this._signal("afterRender",L);return}L&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(A),this.$showGutter&&this.$gutterLayer.update(A),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(A)):L&this.CHANGE_LINES?((this.$updateLines()||L&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(A),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(A)):L&this.CHANGE_TEXT||L&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(A),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(A)):L&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(A),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(A)),L&this.CHANGE_CURSOR&&(this.$cursorLayer.update(A),this.$moveTextAreaToCursor()),L&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(A),L&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(A),this._signal("afterRender",L)},T.prototype.$autosize=function(){var L=this.session.getScreenLength()*this.lineHeight,I=this.$maxLines*this.lineHeight,A=Math.min(I,Math.max((this.$minLines||1)*this.lineHeight,L))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(A+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&A>this.$maxPixelHeight&&(A=this.$maxPixelHeight);var P=A<=2*this.lineHeight,D=!P&&L>I;if(A!=this.desiredHeight||this.$size.height!=this.desiredHeight||D!=this.$vScroll){D!=this.$vScroll&&(this.$vScroll=D,this.scrollBarV.setVisible(D));var E=this.container.clientWidth;this.container.style.height=A+"px",this.$updateCachedSize(!0,this.$gutterWidth,E,A),this.desiredHeight=A,this._signal("autosize")}},T.prototype.$computeLayerConfig=function(){var L=this.session,I=this.$size,A=I.height<=2*this.lineHeight,P=this.session.getScreenLength(),D=P*this.lineHeight,E=this.$getLongestLine(),R=!A&&(this.$hScrollBarAlwaysVisible||I.scrollerWidth-E-2*this.$padding<0),$=this.$horizScroll!==R;$&&(this.$horizScroll=R,this.scrollBarH.setVisible(R));var N=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var M=I.scrollerHeight+this.lineHeight,O=!this.$maxLines&&this.$scrollPastEnd?(I.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;D+=O;var j=this.scrollMargin;this.session.setScrollTop(Math.max(-j.top,Math.min(this.scrollTop,D-I.scrollerHeight+j.bottom))),this.session.setScrollLeft(Math.max(-j.left,Math.min(this.scrollLeft,E+2*this.$padding-I.scrollerWidth+j.right)));var z=!A&&(this.$vScrollBarAlwaysVisible||I.scrollerHeight-D+O<0||this.scrollTop>j.top),F=N!==z;F&&(this.$vScroll=z,this.scrollBarV.setVisible(z));var K=this.scrollTop%this.lineHeight,U=Math.ceil(M/this.lineHeight)-1,Y=Math.max(0,Math.round((this.scrollTop-K)/this.lineHeight)),V=Y+U,q,ee,X=this.lineHeight;Y=L.screenToDocumentRow(Y,0);var ie=L.getFoldLine(Y);ie&&(Y=ie.start.row),q=L.documentToScreenRow(Y,0),ee=L.getRowLength(Y)*X,V=Math.min(L.screenToDocumentRow(V,0),L.getLength()-1),M=I.scrollerHeight+L.getRowLength(V)*X+ee,K=this.scrollTop-q*X;var se=0;return(this.layerConfig.width!=E||$)&&(se=this.CHANGE_H_SCROLL),($||F)&&(se|=this.$updateCachedSize(!0,this.gutterWidth,I.width,I.height),this._signal("scrollbarVisibilityChanged"),F&&(E=this.$getLongestLine())),this.layerConfig={width:E,padding:this.$padding,firstRow:Y,firstRowScreen:q,lastRow:V,lineHeight:X,characterWidth:this.characterWidth,minHeight:M,maxHeight:D,offset:K,gutterOffset:X?Math.max(0,Math.ceil((K+I.height-I.scrollerHeight)/X)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(E-this.$padding),se},T.prototype.$updateLines=function(){if(this.$changedLines){var L=this.$changedLines.firstRow,I=this.$changedLines.lastRow;this.$changedLines=null;var A=this.layerConfig;if(!(L>A.lastRow+1)&&!(I<A.firstRow)){if(I===1/0){this.$showGutter&&this.$gutterLayer.update(A),this.$textLayer.update(A);return}return this.$textLayer.updateLines(A,L,I),!0}}},T.prototype.$getLongestLine=function(){var L=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(L+=1),this.$textLayer&&L>this.$textLayer.MAX_LINE_LENGTH&&(L=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(L*this.characterWidth))},T.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},T.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},T.prototype.addGutterDecoration=function(L,I){this.$gutterLayer.addGutterDecoration(L,I)},T.prototype.removeGutterDecoration=function(L,I){this.$gutterLayer.removeGutterDecoration(L,I)},T.prototype.updateBreakpoints=function(L){this._rows=L,this.$loop.schedule(this.CHANGE_GUTTER)},T.prototype.setAnnotations=function(L){this.$gutterLayer.setAnnotations(L),this.$loop.schedule(this.CHANGE_GUTTER)},T.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},T.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},T.prototype.showCursor=function(){this.$cursorLayer.showCursor()},T.prototype.scrollSelectionIntoView=function(L,I,A){this.scrollCursorIntoView(L,A),this.scrollCursorIntoView(I,A)},T.prototype.scrollCursorIntoView=function(L,I,A){if(this.$size.scrollerHeight!==0){var P=this.$cursorLayer.getPixelPosition(L),D=P.left,E=P.top,R=A&&A.top||0,$=A&&A.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var N=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;N+R>E?(I&&N+R>E+this.lineHeight&&(E-=I*this.$size.scrollerHeight),E===0&&(E=-this.scrollMargin.top),this.session.setScrollTop(E)):N+this.$size.scrollerHeight-$<E+this.lineHeight&&(I&&N+this.$size.scrollerHeight-$<E-this.lineHeight&&(E+=I*this.$size.scrollerHeight),this.session.setScrollTop(E+this.lineHeight+$-this.$size.scrollerHeight));var M=this.scrollLeft,O=2*this.layerConfig.characterWidth;D-O<M?(D-=O,D<this.$padding+O&&(D=-this.scrollMargin.left),this.session.setScrollLeft(D)):(D+=O,M+this.$size.scrollerWidth<D+this.characterWidth?this.session.setScrollLeft(Math.round(D+this.characterWidth-this.$size.scrollerWidth)):M<=this.$padding&&D-M<this.characterWidth&&this.session.setScrollLeft(0))}},T.prototype.getScrollTop=function(){return this.session.getScrollTop()},T.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},T.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},T.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},T.prototype.scrollToRow=function(L){this.session.setScrollTop(L*this.lineHeight)},T.prototype.alignCursor=function(L,I){typeof L=="number"&&(L={row:L,column:0});var A=this.$cursorLayer.getPixelPosition(L),P=this.$size.scrollerHeight-this.lineHeight,D=A.top-P*(I||0);return this.session.setScrollTop(D),D},T.prototype.$calcSteps=function(L,I){var A=0,P=this.STEPS,D=[],E=function(R,$,N){return N*(Math.pow(R-1,3)+1)+$};for(A=0;A<P;++A)D.push(E(A/this.STEPS,L,I-L));return D},T.prototype.scrollToLine=function(L,I,A,P){var D=this.$cursorLayer.getPixelPosition({row:L,column:0}),E=D.top;I&&(E-=this.$size.scrollerHeight/2);var R=this.scrollTop;this.session.setScrollTop(E),A!==!1&&this.animateScrolling(R,P)},T.prototype.animateScrolling=function(L,I){var A=this.scrollTop;if(!this.$animatedScroll)return;var P=this;if(L==A)return;if(this.$scrollAnimation){var D=this.$scrollAnimation.steps;if(D.length&&(L=D[0],L==A))return}var E=P.$calcSteps(L,A);this.$scrollAnimation={from:L,to:A,steps:E},clearInterval(this.$timer),P.session.setScrollTop(E.shift()),P.session.$scrollTop=A;function R(){P.$timer=clearInterval(P.$timer),P.$scrollAnimation=null,P.$stopAnimation=!1,I&&I()}this.$timer=setInterval(function(){if(P.$stopAnimation){R();return}if(!P.session)return clearInterval(P.$timer);E.length?(P.session.setScrollTop(E.shift()),P.session.$scrollTop=A):A!=null?(P.session.$scrollTop=-1,P.session.setScrollTop(A),A=null):R()},10)},T.prototype.scrollToY=function(L){this.scrollTop!==L&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=L)},T.prototype.scrollToX=function(L){this.scrollLeft!==L&&(this.scrollLeft=L),this.$loop.schedule(this.CHANGE_H_SCROLL)},T.prototype.scrollTo=function(L,I){this.session.setScrollTop(I),this.session.setScrollLeft(L)},T.prototype.scrollBy=function(L,I){I&&this.session.setScrollTop(this.session.getScrollTop()+I),L&&this.session.setScrollLeft(this.session.getScrollLeft()+L)},T.prototype.isScrollableBy=function(L,I){if(I<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||I>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||L<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||L>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},T.prototype.pixelToScreenCoordinates=function(L,I){var A;if(this.$hasCssTransforms){A={top:0,left:0};var P=this.$fontMetrics.transformCoordinates([L,I]);L=P[1]-this.gutterWidth-this.margin.left,I=P[0]}else A=this.scroller.getBoundingClientRect();var D=L+this.scrollLeft-A.left-this.$padding,E=D/this.characterWidth,R=Math.floor((I+this.scrollTop-A.top)/this.lineHeight),$=this.$blockCursor?Math.floor(E):Math.round(E);return{row:R,column:$,side:E-$>0?1:-1,offsetX:D}},T.prototype.screenToTextCoordinates=function(L,I){var A;if(this.$hasCssTransforms){A={top:0,left:0};var P=this.$fontMetrics.transformCoordinates([L,I]);L=P[1]-this.gutterWidth-this.margin.left,I=P[0]}else A=this.scroller.getBoundingClientRect();var D=L+this.scrollLeft-A.left-this.$padding,E=D/this.characterWidth,R=this.$blockCursor?Math.floor(E):Math.round(E),$=Math.floor((I+this.scrollTop-A.top)/this.lineHeight);return this.session.screenToDocumentPosition($,Math.max(R,0),D)},T.prototype.textToScreenCoordinates=function(L,I){var A=this.scroller.getBoundingClientRect(),P=this.session.documentToScreenPosition(L,I),D=this.$padding+(this.session.$bidiHandler.isBidiRow(P.row,L)?this.session.$bidiHandler.getPosLeft(P.column):Math.round(P.column*this.characterWidth)),E=P.row*this.lineHeight;return{pageX:A.left+D-this.scrollLeft,pageY:A.top+E-this.scrollTop}},T.prototype.visualizeFocus=function(){a.addCssClass(this.container,"ace_focus")},T.prototype.visualizeBlur=function(){a.removeCssClass(this.container,"ace_focus")},T.prototype.showComposition=function(L){this.$composition=L,L.cssText||(L.cssText=this.textarea.style.cssText),L.useTextareaForIME==null&&(L.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(a.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):L.markerId=this.session.addMarker(L.markerRange,"ace_composition_marker","text")},T.prototype.setCompositionText=function(L){var I=this.session.selection.cursor;this.addToken(L,"composition_placeholder",I.row,I.column),this.$moveTextAreaToCursor()},T.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),a.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var L=this.session.selection.cursor;this.removeExtraToken(L.row,L.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},T.prototype.setGhostText=function(L,I){var A=this.session.selection.cursor,P=I||{row:A.row,column:A.column};this.removeGhostText();var D=L.split(`
  1049  `);if(this.addToken(D[0],"ghost_text",P.row,P.column),this.$ghostText={text:L,position:{row:P.row,column:P.column}},D.length>1){this.$ghostTextWidget={text:D.slice(1).join(`
  1050  `),row:P.row,column:P.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var E=this.$cursorLayer.getPixelPosition(P,!0),R=this.container,$=R.getBoundingClientRect().height,N=D.length*this.lineHeight,M=N<$-E.top;if(M)return;N<$?this.scrollBy(0,(D.length-1)*this.lineHeight):this.scrollBy(0,E.top)}},T.prototype.removeGhostText=function(){if(this.$ghostText){var L=this.$ghostText.position;this.removeExtraToken(L.row,L.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},T.prototype.addToken=function(L,I,A,P){var D=this.session;D.bgTokenizer.lines[A]=null;var E={type:I,value:L},R=D.getTokens(A);if(P==null||!R.length)R.push(E);else for(var $=0,N=0;N<R.length;N++){var M=R[N];if($+=M.value.length,P<=$){var O=M.value.length-($-P),j=M.value.slice(0,O),z=M.value.slice(O);R.splice(N,1,{type:M.type,value:j},E,{type:M.type,value:z});break}}this.updateLines(A,A)},T.prototype.removeExtraToken=function(L,I){this.session.bgTokenizer.lines[L]=null,this.updateLines(L,L)},T.prototype.setTheme=function(L,I){var A=this;if(this.$themeId=L,A._dispatchEvent("themeChange",{theme:L}),!L||typeof L=="string"){var P=L||this.$options.theme.initialValue;l.loadModule(["theme",P],D)}else D(L);function D(E){if(A.$themeId!=L)return I&&I();if(!E||!E.cssClass)throw new Error("couldn't load module "+L+" or it didn't call define");E.$id&&(A.$themeId=E.$id),a.importCssString(E.cssText,E.cssClass,A.container),A.theme&&a.removeCssClass(A.container,A.theme.cssClass);var R="padding"in E?E.padding:"padding"in(A.theme||{})?4:A.$padding;A.$padding&&R!=A.$padding&&A.setPadding(R),A.$theme=E.cssClass,A.theme=E,a.addCssClass(A.container,E.cssClass),a.setCssClass(A.container,"ace_dark",E.isDark),A.$size&&(A.$size.width=0,A.$updateSizeAsync()),A._dispatchEvent("themeLoaded",{theme:E}),I&&I()}},T.prototype.getTheme=function(){return this.$themeId},T.prototype.setStyle=function(L,I){a.setCssClass(this.container,L,I!==!1)},T.prototype.unsetStyle=function(L){a.removeCssClass(this.container,L)},T.prototype.setCursorStyle=function(L){a.setStyle(this.scroller.style,"cursor",L)},T.prototype.setMouseCursor=function(L){a.setStyle(this.scroller.style,"cursor",L)},T.prototype.attachToShadowRoot=function(){a.importCssString(_,"ace_editor.css",this.container)},T.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},T.prototype.$updateCustomScrollbar=function(L){var I=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,L===!0?(this.scrollBarV=new v(this.container,this),this.scrollBarH=new g(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(A){I.$scrollAnimation||I.session.setScrollTop(A.data-I.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(A){I.$scrollAnimation||I.session.setScrollLeft(A.data-I.scrollMargin.left)}),this.$scrollDecorator=new k(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new p(this.container,this),this.scrollBarH=new f(this.container,this),this.scrollBarV.addEventListener("scroll",function(A){I.$scrollAnimation||I.session.setScrollTop(A.data-I.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(A){I.$scrollAnimation||I.session.setScrollLeft(A.data-I.scrollMargin.left)}))},T.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var L=this;this.$resizeTimer=c.delayedCall(function(){L.destroyed||L.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(I){var A=I[0].contentRect.width,P=I[0].contentRect.height;Math.abs(L.$size.width-A)>1||Math.abs(L.$size.height-P)>1?L.$resizeTimer.delay():L.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},T}();S.prototype.CHANGE_CURSOR=1,S.prototype.CHANGE_MARKER=2,S.prototype.CHANGE_GUTTER=4,S.prototype.CHANGE_SCROLL=8,S.prototype.CHANGE_LINES=16,S.prototype.CHANGE_TEXT=32,S.prototype.CHANGE_SIZE=64,S.prototype.CHANGE_MARKER_BACK=128,S.prototype.CHANGE_MARKER_FRONT=256,S.prototype.CHANGE_FULL=512,S.prototype.CHANGE_H_SCROLL=1024,S.prototype.$changes=0,S.prototype.$padding=null,S.prototype.$frozen=!1,S.prototype.STEPS=8,i.implement(S.prototype,C),l.defineOptions(S.prototype,"renderer",{useResizeObserver:{set:function(T){!T&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):T&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(T){this.$textLayer.setShowInvisibles(T)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(T){typeof T=="number"&&(this.$printMarginColumn=T),this.$showPrintMargin=!!T,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(T){this.$gutter.style.display=T?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(T){this.$gutterLayer.$useSvgGutterIcons=T},initialValue:!1},showFoldedAnnotations:{set:function(T){this.$gutterLayer.$showFoldedAnnotations=T},initialValue:!1},fadeFoldWidgets:{set:function(T){a.setCssClass(this.$gutter,"ace_fade-fold-widgets",T)},initialValue:!1},showFoldWidgets:{set:function(T){this.$gutterLayer.setShowFoldWidgets(T),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(T){this.$textLayer.setDisplayIndentGuides(T)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(T){this.$textLayer.setHighlightIndentGuides(T)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(T){this.$gutterLayer.setHighlightGutterLine(T),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(T){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(T){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(T){typeof T=="number"&&(T=T+"px"),this.container.style.fontSize=T,this.updateFontSize()},initialValue:12},fontFamily:{set:function(T){this.container.style.fontFamily=T,this.updateFontSize()}},maxLines:{set:function(T){this.updateFull()}},minLines:{set:function(T){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(T){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(T){T=+T||0,this.$scrollPastEnd!=T&&(this.$scrollPastEnd=T,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(T){this.$gutterLayer.$fixedWidth=!!T,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(T){this.$updateCustomScrollbar(T)},initialValue:!1},theme:{set:function(T){this.setTheme(T)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),o.VirtualRenderer=S}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(r,o,n){var i=r("../lib/oop"),a=r("../lib/net"),c=r("../lib/event_emitter").EventEmitter,l=r("../config");function d(f){var p="importScripts('"+a.qualifyURL(f)+"');";try{return new Blob([p],{type:"application/javascript"})}catch{var g=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,v=new g;return v.append(p),v.getBlob("application/javascript")}}function s(f){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(l.get("loadWorkerFromBlob")){var p=d(f),g=window.URL||window.webkitURL,v=g.createObjectURL(p);return new Worker(v)}return new Worker(f)}var u=function(f){f.postMessage||(f=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=f,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){i.implement(this,c),this.$createWorkerFromOldConfig=function(f,p,g,v,m){if(r.nameToUrl&&!r.toUrl&&(r.toUrl=r.nameToUrl),l.get("packaged")||!r.toUrl)v=v||l.moduleUrl(p,"worker");else{var y=this.$normalizePath;v=v||y(r.toUrl("ace/worker/worker.js",null,"_"));var C={};f.forEach(function(_){C[_]=y(r.toUrl(_,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(v),m&&this.send("importScripts",m),this.$worker.postMessage({init:!0,tlns:C,module:p,classname:g}),this.$worker},this.onMessage=function(f){var p=f.data;switch(p.type){case"event":this._signal(p.name,{data:p.data});break;case"call":var g=this.callbacks[p.id];g&&(g(p.data),delete this.callbacks[p.id]);break;case"error":this.reportError(p.data);break;case"log":window.console&&console.log&&console.log.apply(console,p.data);break}},this.reportError=function(f){window.console&&console.error&&console.error(f)},this.$normalizePath=function(f){return a.qualifyURL(f)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(f){f.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(f,p){this.$worker.postMessage({command:f,args:p})},this.call=function(f,p,g){if(g){var v=this.callbackId++;this.callbacks[v]=g,p.push(v)}this.send(f,p)},this.emit=function(f,p){try{p.data&&p.data.err&&(p.data.err={message:p.data.err.message,stack:p.data.err.stack,code:p.data.err.code}),this.$worker&&this.$worker.postMessage({event:f,data:{data:p.data}})}catch(g){console.error(g.stack)}},this.attachToDocument=function(f){this.$doc&&this.terminate(),this.$doc=f,this.call("setValue",[f.getValue()]),f.on("change",this.changeListener,!0)},this.changeListener=function(f){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),f.action=="insert"?this.deltaQueue.push(f.start,f.lines):this.deltaQueue.push(f.start,f.end)},this.$sendDeltaQueue=function(){var f=this.deltaQueue;f&&(this.deltaQueue=null,f.length>50&&f.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:f}))}}).call(u.prototype);var h=function(f,p,g){var v=null,m=!1,y=Object.create(c),C=[],_=new u({messageBuffer:C,terminate:function(){},postMessage:function(b){C.push(b),v&&(m?setTimeout(k):k())}});_.setEmitSync=function(b){m=b};var k=function(){var b=C.shift();b.command?v[b.command].apply(v,b.args):b.event&&y._signal(b.event,b.data)};return y.postMessage=function(b){_.onMessage({data:b})},y.callback=function(b,S){this.postMessage({type:"call",id:S,data:b})},y.emit=function(b,S){this.postMessage({type:"event",name:b,data:S})},l.loadModule(["worker",p],function(b){for(v=new b[g](y);C.length;)k()}),_};o.UIWorkerClient=h,o.WorkerClient=u,o.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(r,o,n){var i=r("./range").Range,a=r("./lib/event_emitter").EventEmitter,c=r("./lib/oop"),l=function(){function d(s,u,h,f,p,g){var v=this;this.length=u,this.session=s,this.doc=s.getDocument(),this.mainClass=p,this.othersClass=g,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=f,this.$onCursorChange=function(){setTimeout(function(){v.onCursorChange()})},this.$pos=h;var m=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=m.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return d.prototype.setup=function(){var s=this,u=this.doc,h=this.session;this.selectionBefore=h.selection.toJSON(),h.selection.inMultiSelectMode&&h.selection.toSingleRange(),this.pos=u.createAnchor(this.$pos.row,this.$pos.column);var f=this.pos;f.$insertRight=!0,f.detach(),f.markerId=h.addMarker(new i(f.row,f.column,f.row,f.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(p){var g=u.createAnchor(p.row,p.column);g.$insertRight=!0,g.detach(),s.others.push(g)}),h.setUndoSelect(!1)},d.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,u=this;this.othersActive=!0,this.others.forEach(function(h){h.markerId=s.addMarker(new i(h.row,h.column,h.row,h.column+u.length),u.othersClass,null,!1)})}},d.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var s=0;s<this.others.length;s++)this.session.removeMarker(this.others[s].markerId)}},d.prototype.onUpdate=function(s){if(this.$updating)return this.updateAnchors(s);var u=s;if(u.start.row===u.end.row&&u.start.row===this.pos.row){this.$updating=!0;var h=s.action==="insert"?u.end.column-u.start.column:u.start.column-u.end.column,f=u.start.column>=this.pos.column&&u.start.column<=this.pos.column+this.length+1,p=u.start.column-this.pos.column;if(this.updateAnchors(s),f&&(this.length+=h),f&&!this.session.$fromUndo){if(s.action==="insert")for(var g=this.others.length-1;g>=0;g--){var v=this.others[g],m={row:v.row,column:v.column+p};this.doc.insertMergedLines(m,s.lines)}else if(s.action==="remove")for(var g=this.others.length-1;g>=0;g--){var v=this.others[g],m={row:v.row,column:v.column+p};this.doc.remove(new i(m.row,m.column,m.row,m.column-h))}}this.$updating=!1,this.updateMarkers()}},d.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var u=this.others.length;u--;)this.others[u].onChange(s);this.updateMarkers()},d.prototype.updateMarkers=function(){if(!this.$updating){var s=this,u=this.session,h=function(p,g){u.removeMarker(p.markerId),p.markerId=u.addMarker(new i(p.row,p.column,p.row,p.column+s.length),g,null,!1)};h(this.pos,this.mainClass);for(var f=this.others.length;f--;)h(this.others[f],this.othersClass)}},d.prototype.onCursorChange=function(s){if(!(this.$updating||!this.session)){var u=this.session.selection.getCursor();u.row===this.pos.row&&u.column>=this.pos.column&&u.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},d.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},d.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var s=this.session.getUndoManager(),u=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,h=0;h<u;h++)s.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},d}();c.implement(l.prototype,a),o.PlaceHolder=l}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(r,o,n){var i=r("../lib/event"),a=r("../lib/useragent");function c(d,s){return d.row==s.row&&d.column==s.column}function l(d){var s=d.domEvent,u=s.altKey,h=s.shiftKey,f=s.ctrlKey,p=d.getAccelKey(),g=d.getButton();if(f&&a.isMac&&(g=s.button),d.editor.inMultiSelectMode&&g==2){d.editor.textInput.onContextMenu(d.domEvent);return}if(!f&&!u&&!p){g===0&&d.editor.inMultiSelectMode&&d.editor.exitMultiSelectMode();return}if(g===0){var v=d.editor,m=v.selection,y=v.inMultiSelectMode,C=d.getDocumentPosition(),_=m.getCursor(),k=d.inSelection()||m.isEmpty()&&c(C,_),b=d.x,S=d.y,T=function(z){b=z.clientX,S=z.clientY},L=v.session,I=v.renderer.pixelToScreenCoordinates(b,S),A=I,P;if(v.$mouseHandler.$enableJumpToDef)f&&u||p&&u?P=h?"block":"add":u&&v.$blockSelectEnabled&&(P="block");else if(p&&!u){if(P="add",!y&&h)return}else u&&v.$blockSelectEnabled&&(P="block");if(P&&a.isMac&&s.ctrlKey&&v.$mouseHandler.cancelContextMenu(),P=="add"){if(!y&&k)return;if(!y){var D=m.toOrientedRange();v.addSelectionMarker(D)}var E=m.rangeList.rangeAtPoint(C);v.inVirtualSelectionMode=!0,h&&(E=null,D=m.ranges[0]||D,v.removeSelectionMarker(D)),v.once("mouseup",function(){var z=m.toOrientedRange();E&&z.isEmpty()&&c(E.cursor,z.cursor)?m.substractPoint(z.cursor):(h?m.substractPoint(D.cursor):D&&(v.removeSelectionMarker(D),m.addRange(D)),m.addRange(z)),v.inVirtualSelectionMode=!1})}else if(P=="block"){d.stop(),v.inVirtualSelectionMode=!0;var R,$=[],N=function(){var z=v.renderer.pixelToScreenCoordinates(b,S),F=L.screenToDocumentPosition(z.row,z.column,z.offsetX);c(A,z)&&c(F,m.lead)||(A=z,v.selection.moveToPosition(F),v.renderer.scrollCursorIntoView(),v.removeSelectionMarkers($),$=m.rectangularRangeBlock(A,I),v.$mouseHandler.$clickSelection&&$.length==1&&$[0].isEmpty()&&($[0]=v.$mouseHandler.$clickSelection.clone()),$.forEach(v.addSelectionMarker,v),v.updateSelectionMarkers())};y&&!p?m.toSingleRange():!y&&p&&(R=m.toOrientedRange(),v.addSelectionMarker(R)),h?I=L.documentToScreenPosition(m.lead):m.moveToPosition(C),A={row:-1,column:-1};var M=function(z){N(),clearInterval(j),v.removeSelectionMarkers($),$.length||($=[m.toOrientedRange()]),R&&(v.removeSelectionMarker(R),m.toSingleRange(R));for(var F=0;F<$.length;F++)m.addRange($[F]);v.inVirtualSelectionMode=!1,v.$mouseHandler.$clickSelection=null},O=N;i.capture(v.container,T,M);var j=setInterval(function(){O()},20);return d.preventDefault()}}}o.onMouseDown=l}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(r,o,n){o.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(a){a.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(a){a.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(a){a.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(a){a.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(a){a.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(a){a.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(a){a.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(a){a.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(a){a.multiSelect.rangeCount>1?a.multiSelect.joinSelections():a.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(a){a.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(a){a.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(a){a.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],o.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(a){a.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(a){return a&&a.inMultiSelectMode}}];var i=r("../keyboard/hash_handler").HashHandler;o.keyboardHandler=new i(o.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(r,o,n){var i=r("./range_list").RangeList,a=r("./range").Range,c=r("./selection").Selection,l=r("./mouse/multi_select_handler").onMouseDown,d=r("./lib/event"),s=r("./lib/lang"),u=r("./commands/multi_select_commands");o.commands=u.defaultCommands.concat(u.multiSelectCommands);var h=r("./search").Search,f=new h;function p(_,k,b){return f.$options.wrap=!0,f.$options.needle=k,f.$options.backwards=b==-1,f.find(_)}var g=r("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(g.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(_,k){if(_){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add(_),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(_);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}_.cursor||(_.cursor=_.end);var S=this.rangeList.add(_);return this.$onAddRange(_),S.length&&this.$onRemoveRange(S),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(_)}},this.toSingleRange=function(_){_=_||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),_&&this.fromOrientedRange(_)},this.substractPoint=function(_){var k=this.rangeList.substractPoint(_);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var _=this.rangeList.merge();_.length&&this.$onRemoveRange(_)},this.$onAddRange=function(_){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(_),this._signal("addRange",{range:_})},this.$onRemoveRange=function(_){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();_.push(k),this.rangeCount=0}for(var b=_.length;b--;){var S=this.ranges.indexOf(_[b]);this.ranges.splice(S,1)}this._signal("removeRange",{ranges:_}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var _=this.ranges.length?this.ranges:[this.getRange()],k=[],b=0;b<_.length;b++){var S=_[b],T=S.start.row,L=S.end.row;if(T===L)k.push(S.clone());else{for(k.push(new a(T,S.start.column,T,this.session.getLine(T).length));++T<L;)k.push(this.getLineRange(T,!0));k.push(new a(L,0,L,S.end.column))}b==0&&!this.isBackwards()&&(k=k.reverse())}this.toSingleRange();for(var b=k.length;b--;)this.addRange(k[b])},this.joinSelections=function(){var _=this.rangeList.ranges,k=_[_.length-1],b=a.fromPoints(_[0].start,k.end);this.toSingleRange(),this.setSelectionRange(b,k.cursor==k.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var _=this.rangeList.ranges,k=_[_.length-1],b=a.fromPoints(_[0].start,k.end);this.toSingleRange(),this.setSelectionRange(b,k.cursor==k.start)}else{var S=this.session.documentToScreenPosition(this.cursor),T=this.session.documentToScreenPosition(this.anchor),L=this.rectangularRangeBlock(S,T);L.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(_,k,b){var S=[],T=_.column<k.column;if(T)var L=_.column,I=k.column,A=_.offsetX,P=k.offsetX;else var L=k.column,I=_.column,A=k.offsetX,P=_.offsetX;var D=_.row<k.row;if(D)var E=_.row,R=k.row;else var E=k.row,R=_.row;L<0&&(L=0),E<0&&(E=0),E==R&&(b=!0);for(var $,N=E;N<=R;N++){var M=a.fromPoints(this.session.screenToDocumentPosition(N,L,A),this.session.screenToDocumentPosition(N,I,P));if(M.isEmpty()){if($&&m(M.end,$))break;$=M.end}M.cursor=T?M.start:M.end,S.push(M)}if(D&&S.reverse(),!b){for(var O=S.length-1;S[O].isEmpty()&&O>0;)O--;if(O>0)for(var j=0;S[j].isEmpty();)j++;for(var z=O;z>=j;z--)S[z].isEmpty()&&S.splice(z,1)}return S}}).call(c.prototype);var v=r("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(_){_.cursor||(_.cursor=_.end);var k=this.getSelectionStyle();return _.marker=this.session.addMarker(_,"ace_selection",k),this.session.$selectionMarkers.push(_),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,_},this.removeSelectionMarker=function(_){if(_.marker){this.session.removeMarker(_.marker);var k=this.session.$selectionMarkers.indexOf(_);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(_){for(var k=this.session.$selectionMarkers,b=_.length;b--;){var S=_[b];if(S.marker){this.session.removeMarker(S.marker);var T=k.indexOf(S);T!=-1&&k.splice(T,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(_){this.addSelectionMarker(_.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(_){this.removeSelectionMarkers(_.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(_){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(u.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(_){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(u.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(_){var k=_.command,b=_.editor;if(b.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?S=b.forEachSelection(k,_.args):k.multiSelectAction=="forEachLine"?S=b.forEachSelection(k,_.args,!0):k.multiSelectAction=="single"?(b.exitMultiSelectMode(),S=k.exec(b,_.args||{})):S=k.multiSelectAction(b,_.args||{});else{var S=k.exec(b,_.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return S}},this.forEachSelection=function(_,k,b){if(!this.inVirtualSelectionMode){var S=b&&b.keepOrder,T=b==!0||b&&b.$byLines,L=this.session,I=this.selection,A=I.rangeList,P=(S?I:A).ranges,D;if(!P.length)return _.exec?_.exec(this,k||{}):_(this,k||{});var E=I._eventRegistry;I._eventRegistry={};var R=new c(L);this.inVirtualSelectionMode=!0;for(var $=P.length;$--;){if(T)for(;$>0&&P[$].start.row==P[$-1].end.row;)$--;R.fromOrientedRange(P[$]),R.index=$,this.selection=L.selection=R;var N=_.exec?_.exec(this,k||{}):_(this,k||{});!D&&N!==void 0&&(D=N),R.toOrientedRange(P[$])}R.detach(),this.selection=L.selection=I,this.inVirtualSelectionMode=!1,I._eventRegistry=E,I.mergeOverlappingRanges(),I.ranges[0]&&I.fromOrientedRange(I.ranges[0]);var M=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),M&&M.from==M.to&&this.renderer.animateScrolling(M.from),D}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var _="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,b=[],S=0;S<k.length;S++)b.push(this.session.getTextRange(k[S]));var T=this.session.getDocument().getNewLineCharacter();_=b.join(T),_.length==(b.length-1)*T.length&&(_="")}else this.selection.isEmpty()||(_=this.session.getTextRange(this.getSelectionRange()));return _},this.$checkMultiselectChange=function(_,k){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&k==this.multiSelect.anchor)return;var S=k==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;S.row!=k.row||this.session.$clipPositionToDocument(S.row,S.column).column!=k.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(_,k,b){if(k=k||{},k.needle=_||k.needle,k.needle==null){var S=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();k.needle=this.session.getTextRange(S)}this.$search.set(k);var T=this.$search.findAll(this.session);if(!T.length)return 0;var L=this.multiSelect;b||L.toSingleRange(T[0]);for(var I=T.length;I--;)L.addRange(T[I],!0);return S&&L.rangeList.rangeAtPoint(S.start)&&L.addRange(S,!0),T.length},this.selectMoreLines=function(_,k){var b=this.selection.toOrientedRange(),S=b.cursor==b.end,T=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(T.column=this.selection.$desiredColumn);var L=this.session.screenToDocumentPosition(T.row+_,T.column);if(b.isEmpty())var A=L;else var I=this.session.documentToScreenPosition(S?b.end:b.start),A=this.session.screenToDocumentPosition(I.row+_,I.column);if(S){var P=a.fromPoints(L,A);P.cursor=P.start}else{var P=a.fromPoints(A,L);P.cursor=P.end}if(P.desiredColumn=T.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(k)var D=b.cursor;this.selection.addRange(P),D&&this.selection.substractPoint(D)},this.transposeSelections=function(_){for(var k=this.session,b=k.multiSelect,S=b.ranges,T=S.length;T--;){var L=S[T];if(L.isEmpty()){var I=k.getWordRange(L.start.row,L.start.column);L.start.row=I.start.row,L.start.column=I.start.column,L.end.row=I.end.row,L.end.column=I.end.column}}b.mergeOverlappingRanges();for(var A=[],T=S.length;T--;){var L=S[T];A.unshift(k.getTextRange(L))}_<0?A.unshift(A.pop()):A.push(A.shift());for(var T=S.length;T--;){var L=S[T],P=L.clone();k.replace(L,A[T]),L.start.row=P.start.row,L.start.column=P.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function(_,k,b){var S=this.session,T=S.multiSelect,L=T.toOrientedRange();if(!(L.isEmpty()&&(L=S.getWordRange(L.start.row,L.start.column),L.cursor=_==-1?L.start:L.end,this.multiSelect.addRange(L),b))){var I=S.getTextRange(L),A=p(S,I,_);A&&(A.cursor=_==-1?A.start:A.end,this.session.unfold(A),this.multiSelect.addRange(A),this.renderer.scrollCursorIntoView(null,.5)),k&&this.multiSelect.substractPoint(L.cursor)}},this.alignCursors=function(){var _=this.session,k=_.multiSelect,b=k.ranges,S=-1,T=b.filter(function(O){if(O.cursor.row==S)return!0;S=O.cursor.row});if(!b.length||T.length==b.length-1){var L=this.selection.getRange(),I=L.start.row,A=L.end.row,P=I==A;if(P){var D=this.session.getLength(),E;do E=this.session.getLine(A);while(/[=:]/.test(E)&&++A<D);do E=this.session.getLine(I);while(/[=:]/.test(E)&&--I>0);I<0&&(I=0),A>=D&&(A=D-1)}var R=this.session.removeFullLines(I,A);R=this.$reAlignText(R,P),this.session.insert({row:I,column:0},R.join(`
  1051  `)+`
  1052  `),P||(L.start.column=0,L.end.column=R[R.length-1].length),this.selection.setRange(L)}else{T.forEach(function(O){k.substractPoint(O.cursor)});var $=0,N=1/0,M=b.map(function(O){var j=O.cursor,z=_.getLine(j.row),F=z.substr(j.column).search(/\S/g);return F==-1&&(F=0),j.column>$&&($=j.column),F<N&&(N=F),F});b.forEach(function(O,j){var z=O.cursor,F=$-z.column,K=M[j]-N;F>K?_.insert(z,s.stringRepeat(" ",F-K)):_.remove(new a(z.row,z.column,z.row,z.column-F+K)),O.start.column=O.end.column=$,O.start.row=O.end.row=z.row,O.cursor=O.end}),k.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(_,k){var b=!0,S=!0,T,L,I;return _.map(function(R){var $=R.match(/(\s*)(.*?)(\s*)([=:].*)/);return $?T==null?(T=$[1].length,L=$[2].length,I=$[3].length,$):(T+L+I!=$[1].length+$[2].length+$[3].length&&(S=!1),T!=$[1].length&&(b=!1),T>$[1].length&&(T=$[1].length),L<$[2].length&&(L=$[2].length),I>$[3].length&&(I=$[3].length),$):[R]}).map(k?P:b?S?D:P:E);function A(R){return s.stringRepeat(" ",R)}function P(R){return R[2]?A(T)+R[2]+A(L-R[2].length+I)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function D(R){return R[2]?A(T+L-R[2].length)+R[2]+A(I)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function E(R){return R[2]?A(T)+R[2]+A(I)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}}}).call(v.prototype);function m(_,k){return _.row==k.row&&_.column==k.column}o.onSessionChange=function(_){var k=_.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var b=_.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(_){_.$multiselectOnSessionChange||(_.$onAddRange=_.$onAddRange.bind(_),_.$onRemoveRange=_.$onRemoveRange.bind(_),_.$onMultiSelect=_.$onMultiSelect.bind(_),_.$onSingleSelect=_.$onSingleSelect.bind(_),_.$multiselectOnSessionChange=o.onSessionChange.bind(_),_.$checkMultiselectChange=_.$checkMultiselectChange.bind(_),_.$multiselectOnSessionChange(_),_.on("changeSession",_.$multiselectOnSessionChange),_.on("mousedown",l),_.commands.addCommands(u.defaultCommands),C(_))}function C(_){if(!_.textInput)return;var k=_.textInput.getElement(),b=!1;d.addListener(k,"keydown",function(T){var L=T.keyCode==18&&!(T.ctrlKey||T.shiftKey||T.metaKey);_.$blockSelectEnabled&&L?b||(_.renderer.setMouseCursor("crosshair"),b=!0):b&&S()},_),d.addListener(k,"keyup",S,_),d.addListener(k,"blur",S,_);function S(T){b&&(_.renderer.setMouseCursor(""),b=!1)}}o.MultiSelect=y,r("./config").defineOptions(v.prototype,"editor",{enableMultiselect:{set:function(_){y(this),_?this.on("mousedown",l):this.off("mousedown",l)},value:!0},enableBlockSelect:{set:function(_){this.$blockSelectEnabled=_},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(r,o,n){var i=r("../../range").Range,a=o.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(c,l,d){var s=c.getLine(d);return this.foldingStartMarker.test(s)?"start":l=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(c,l,d){return null},this.indentationBlock=function(c,l,d){var s=/\S/,u=c.getLine(l),h=u.search(s);if(h!=-1){for(var f=d||u.length,p=c.getLength(),g=l,v=l;++l<p;){var m=c.getLine(l).search(s);if(m!=-1){if(m<=h){var y=c.getTokenAt(l,0);if(!y||y.type!=="string")break}v=l}}if(v>g){var C=c.getLine(v).length;return new i(g,f,v,C)}}},this.openingBracketBlock=function(c,l,d,s,u){var h={row:d,column:s+1},f=c.$findClosingBracket(l,h,u);if(f){var p=c.foldWidgets[f.row];return p==null&&(p=c.getFoldWidget(f.row)),p=="start"&&f.row>h.row&&(f.row--,f.column=c.getLine(f.row).length),i.fromPoints(h,f)}},this.closingBracketBlock=function(c,l,d,s,u){var h={row:d,column:s},f=c.$findOpeningBracket(l,h);if(f)return f.column++,h.column--,i.fromPoints(f,h)}}).call(a.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(r,o,n){var i=r("../line_widgets").LineWidgets,a=r("../lib/dom"),c=r("../range").Range,l=r("../config").nls;function d(u,h,f){for(var p=0,g=u.length-1;p<=g;){var v=p+g>>1,m=f(h,u[v]);if(m>0)p=v+1;else if(m<0)g=v-1;else return v}return-(p+1)}function s(u,h,f){var p=u.getAnnotations().sort(c.comparePoints);if(p.length){var g=d(p,{row:h,column:-1},c.comparePoints);g<0&&(g=-g-1),g>=p.length?g=f>0?0:p.length-1:g===0&&f<0&&(g=p.length-1);var v=p[g];if(!(!v||!f)){if(v.row===h){do v=p[g+=f];while(v&&v.row===h);if(!v)return p.slice()}var m=[];h=v.row;do m[f<0?"unshift":"push"](v),v=p[g+=f];while(v&&v.row==h);return m.length&&m}}}o.showErrorMarker=function(u,h){var f=u.session;f.widgetManager||(f.widgetManager=new i(f),f.widgetManager.attach(u));var p=u.getCursorPosition(),g=p.row,v=f.widgetManager.getWidgetsAtRow(g).filter(function(L){return L.type=="errorMarker"})[0];v?v.destroy():g-=h;var m=s(f,g,h),y;if(m){var C=m[0];p.column=(C.pos&&typeof C.column!="number"?C.pos.sc:C.column)||0,p.row=C.row,y=u.renderer.$gutterLayer.$annotations[p.row]}else{if(v)return;y={text:[l("Looks good!")],className:"ace_ok"}}u.session.unfold(p.row),u.selection.moveToPosition(p);var _={row:p.row,fixedWidth:!0,coverGutter:!0,el:a.createElement("div"),type:"errorMarker"},k=_.el.appendChild(a.createElement("div")),b=_.el.appendChild(a.createElement("div"));b.className="error_widget_arrow "+y.className;var S=u.renderer.$cursorLayer.getPixelPosition(p).left;b.style.left=S+u.renderer.gutterWidth-5+"px",_.el.className="error_widget_wrapper",k.className="error_widget "+y.className,k.innerHTML=y.text.join("<br>"),k.appendChild(a.createElement("div"));var T=function(L,I,A){if(I===0&&(A==="esc"||A==="return"))return _.destroy(),{command:"null"}};_.destroy=function(){u.$mouseHandler.isMousePressed||(u.keyBinding.removeKeyboardHandler(T),f.widgetManager.removeLineWidget(_),u.off("changeSelection",_.destroy),u.off("changeSession",_.destroy),u.off("mouseup",_.destroy),u.off("change",_.destroy))},u.keyBinding.addKeyboardHandler(T),u.on("changeSelection",_.destroy),u.on("changeSession",_.destroy),u.on("mouseup",_.destroy),u.on("change",_.destroy),u.session.widgetManager.addLineWidget(_),_.el.onmousedown=u.focus.bind(u),u.renderer.scrollCursorIntoView(null,.5,{bottom:_.el.offsetHeight})},a.importCssString(`
  1053      .error_widget_wrapper {
  1054          background: inherit;
  1055          color: inherit;
  1056          border:none
  1057      }
  1058      .error_widget {
  1059          border-top: solid 2px;
  1060          border-bottom: solid 2px;
  1061          margin: 5px 0;
  1062          padding: 10px 40px;
  1063          white-space: pre-wrap;
  1064      }
  1065      .error_widget.ace_error, .error_widget_arrow.ace_error{
  1066          border-color: #ff5a5a
  1067      }
  1068      .error_widget.ace_warning, .error_widget_arrow.ace_warning{
  1069          border-color: #F1D817
  1070      }
  1071      .error_widget.ace_info, .error_widget_arrow.ace_info{
  1072          border-color: #5a5a5a
  1073      }
  1074      .error_widget.ace_ok, .error_widget_arrow.ace_ok{
  1075          border-color: #5aaa5a
  1076      }
  1077      .error_widget_arrow {
  1078          position: absolute;
  1079          border: solid 5px;
  1080          border-top-color: transparent!important;
  1081          border-right-color: transparent!important;
  1082          border-left-color: transparent!important;
  1083          top: -5px;
  1084      }
  1085  `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(r,o,n){r("./loader_build")(o);var i=r("./lib/dom"),a=r("./range").Range,c=r("./editor").Editor,l=r("./edit_session").EditSession,d=r("./undomanager").UndoManager,s=r("./virtual_renderer").VirtualRenderer;r("./worker/worker_client"),r("./keyboard/hash_handler"),r("./placeholder"),r("./multi_select"),r("./mode/folding/fold_mode"),r("./theme/textmate"),r("./ext/error_marker"),o.config=r("./config"),o.edit=function(u,h){if(typeof u=="string"){var f=u;if(u=document.getElementById(f),!u)throw new Error("ace.edit can't find div #"+f)}if(u&&u.env&&u.env.editor instanceof c)return u.env.editor;var p="";if(u&&/input|textarea/i.test(u.tagName)){var g=u;p=g.value,u=i.createElement("pre"),g.parentNode.replaceChild(u,g)}else u&&(p=u.textContent,u.innerHTML="");var v=o.createEditSession(p),m=new c(new s(u),v,h),y={document:v,editor:m,onResize:m.resize.bind(m,null)};return g&&(y.textarea=g),m.on("destroy",function(){y.editor.container.env=null}),m.container.env=m.env=y,m},o.createEditSession=function(u,h){var f=new l(u,h);return f.setUndoManager(new d),f},o.Range=a,o.Editor=c,o.EditSession=l,o.UndoManager=d,o.VirtualRenderer=s,o.version=o.config.version}),function(){ace.require(["ace/ace"],function(r){r&&(r.config.init(!0),r.define=ace.define);var o=function(){return this}();!o&&typeof window<"u"&&(o=window),!o&&typeof self<"u"&&(o=self),o.ace||(o.ace=r);for(var n in r)r.hasOwnProperty(n)&&(o.ace[n]=r[n]);o.ace.default=o.ace,e&&(e.exports=o.ace)})}()})(qB);var YB=qB.exports;const vre=Gn(YB),yre=G1({__proto__:null,default:vre},[YB]);var XB={exports:{}};(function(e,t){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(r,o,n){var i=r("./lib/dom"),a=r("./lib/oop"),c=r("./lib/event_emitter").EventEmitter,l=r("./lib/lang"),d=r("./range").Range,s=r("./range_list").RangeList,u=r("./keyboard/hash_handler").HashHandler,h=r("./tokenizer").Tokenizer,f=r("./clipboard"),p={CURRENT_WORD:function(b){return b.session.getTextRange(b.session.getWordRange())},SELECTION:function(b,S,T){var L=b.session.getTextRange();return T?L.replace(/\n\r?([ \t]*\S)/g,`
  1086  `+T+"$1"):L},CURRENT_LINE:function(b){return b.session.getLine(b.getCursorPosition().row)},PREV_LINE:function(b){return b.session.getLine(b.getCursorPosition().row-1)},LINE_INDEX:function(b){return b.getCursorPosition().row},LINE_NUMBER:function(b){return b.getCursorPosition().row+1},SOFT_TABS:function(b){return b.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(b){return b.session.getTabSize()},CLIPBOARD:function(b){return f.getText&&f.getText()},FILENAME:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0]},FILENAME_BASE:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(b){return this.FILEPATH(b).replace(/[^/\\]*$/,"")},FILEPATH:function(b){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(b){var S=b.session.$mode||{};return S.blockComment&&S.blockComment.start||""},BLOCK_COMMENT_END:function(b){var S=b.session.$mode||{};return S.blockComment&&S.blockComment.end||""},LINE_COMMENT:function(b){var S=b.session.$mode||{};return S.lineCommentStart||""},CURRENT_YEAR:g.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:g.bind(null,{year:"2-digit"}),CURRENT_MONTH:g.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:g.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:g.bind(null,{month:"short"}),CURRENT_DATE:g.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:g.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:g.bind(null,{weekday:"short"}),CURRENT_HOUR:g.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:g.bind(null,{minute:"2-digit"}),CURRENT_SECOND:g.bind(null,{second:"2-digit"})};p.SELECTED_TEXT=p.SELECTION;function g(b){var S=new Date().toLocaleString("en-us",b);return S.length==1?"0"+S:S}var v=function(){function b(){this.snippetMap={},this.snippetNameMap={},this.variables=p}return b.prototype.getTokenizer=function(){return b.$tokenizer||this.createTokenizer()},b.prototype.createTokenizer=function(){function S(I){return I=I.substr(1),/^\d+$/.test(I)?[{tabstopId:parseInt(I,10)}]:[{text:I}]}function T(I){return"(?:[^\\\\"+I+"]|\\\\.)"}var L={regex:"/("+T("/")+"+)/",onMatch:function(I,A,P){var D=P[0];return D.fmtString=!0,D.guard=I.slice(1,-1),D.flag="",""},next:"formatString"};return b.$tokenizer=new h({start:[{regex:/\\./,onMatch:function(I,A,P){var D=I[1];return(D=="}"&&P.length||"`$\\".indexOf(D)!=-1)&&(I=D),[I]}},{regex:/}/,onMatch:function(I,A,P){return[P.length?P.shift():I]}},{regex:/\$(?:\d+|\w+)/,onMatch:S},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(I,A,P){var D=S(I.substr(1));return P.unshift(D[0]),D},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+T("\\|")+"*\\|",onMatch:function(I,A,P){var D=I.slice(1,-1).replace(/\\[,|\\]|,/g,function(E){return E.length==2?E[1]:"\0"}).split("\0").map(function(E){return{value:E}});return P[0].choices=D,[D[0]]},next:"start"},L,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(I,A,P){return P.length&&P[0].expectElse?(P[0].expectElse=!1,P[0].ifEnd={elseEnd:P[0]},[P[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(I,A,P){var D=I[1];return D=="}"&&P.length||"`$\\".indexOf(D)!=-1?I=D:D=="n"?I=`
  1087  `:D=="t"?I="	":"ulULE".indexOf(D)!=-1&&(I={changeCase:D,local:D>"a"}),[I]}},{regex:"/\\w*}",onMatch:function(I,A,P){var D=P.shift();return D&&(D.flag=I.slice(1,-1)),this.next=D&&D.tabstopId?"start":"",[D||I]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(I,A,P){return[{text:I.slice(1)}]}},{regex:/\${\w+/,onMatch:function(I,A,P){var D={text:I.slice(2)};return P.unshift(D),[D]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(I,A,P){var D=P.shift();return this.next=D&&D.tabstopId?"start":"",[D||I]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(I,A,P){var D=P[0];return D.formatFunction=I.slice(2,-1),[P.shift()]},next:"formatString"},L,{regex:/:[\?\-+]?/,onMatch:function(I,A,P){I[1]=="+"&&(P[0].ifEnd=P[0]),I[1]=="?"&&(P[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),b.$tokenizer},b.prototype.tokenizeTmSnippet=function(S,T){return this.getTokenizer().getLineTokens(S,T).tokens.map(function(L){return L.value||L})},b.prototype.getVariableValue=function(S,T,L){if(/^\d+$/.test(T))return(this.variables.__||{})[T]||"";if(/^[A-Z]\d+$/.test(T))return(this.variables[T[0]+"__"]||{})[T.substr(1)]||"";if(T=T.replace(/^TM_/,""),!this.variables.hasOwnProperty(T))return"";var I=this.variables[T];return typeof I=="function"&&(I=this.variables[T](S,T,L)),I??""},b.prototype.tmStrFormat=function(S,T,L){if(!T.fmt)return S;var I=T.flag||"",A=T.guard;A=new RegExp(A,I.replace(/[^gim]/g,""));var P=typeof T.fmt=="string"?this.tokenizeTmSnippet(T.fmt,"formatString"):T.fmt,D=this,E=S.replace(A,function(){var R=D.variables.__;D.variables.__=[].slice.call(arguments);for(var $=D.resolveVariables(P,L),N="E",M=0;M<$.length;M++){var O=$[M];if(typeof O=="object")if($[M]="",O.changeCase&&O.local){var j=$[M+1];j&&typeof j=="string"&&(O.changeCase=="u"?$[M]=j[0].toUpperCase():$[M]=j[0].toLowerCase(),$[M+1]=j.substr(1))}else O.changeCase&&(N=O.changeCase);else N=="U"?$[M]=O.toUpperCase():N=="L"&&($[M]=O.toLowerCase())}return D.variables.__=R,$.join("")});return E},b.prototype.tmFormatFunction=function(S,T,L){return T.formatFunction=="upcase"?S.toUpperCase():T.formatFunction=="downcase"?S.toLowerCase():S},b.prototype.resolveVariables=function(S,T){for(var L=[],I="",A=!0,P=0;P<S.length;P++){var D=S[P];if(typeof D=="string"){L.push(D),D==`
  1088  `?(A=!0,I=""):A&&(I=/^\t*/.exec(D)[0],A=/\S/.test(D));continue}if(D){if(A=!1,D.fmtString){var E=S.indexOf(D,P+1);E==-1&&(E=S.length),D.fmt=S.slice(P+1,E),P=E}if(D.text){var R=this.getVariableValue(T,D.text,I)+"";D.fmtString&&(R=this.tmStrFormat(R,D,T)),D.formatFunction&&(R=this.tmFormatFunction(R,D,T)),R&&!D.ifEnd?(L.push(R),$(D)):!R&&D.ifEnd&&$(D.ifEnd)}else D.elseEnd?$(D.elseEnd):(D.tabstopId!=null||D.changeCase!=null)&&L.push(D)}}function $(N){var M=S.indexOf(N,P+1);M!=-1&&(P=M)}return L},b.prototype.getDisplayTextForSnippet=function(S,T){var L=m.call(this,S,T);return L.text},b.prototype.insertSnippetForSelection=function(S,T,L){L===void 0&&(L={});var I=m.call(this,S,T,L),A=S.getSelectionRange(),P=S.session.replace(A,I.text),D=new y(S),E=S.inVirtualSelectionMode&&S.selection.index;D.addTabstops(I.tabstops,A.start,P,E)},b.prototype.insertSnippet=function(S,T,L){L===void 0&&(L={});var I=this;if(S.inVirtualSelectionMode)return I.insertSnippetForSelection(S,T,L);S.forEachSelection(function(){I.insertSnippetForSelection(S,T,L)},null,{keepOrder:!0}),S.tabstopManager&&S.tabstopManager.tabNext()},b.prototype.$getScope=function(S){var T=S.session.$mode.$id||"";if(T=T.split("/").pop(),T==="html"||T==="php"){T==="php"&&!S.session.$mode.inlinePhp&&(T="html");var L=S.getCursorPosition(),I=S.session.getState(L.row);typeof I=="object"&&(I=I[0]),I.substring&&(I.substring(0,3)=="js-"?T="javascript":I.substring(0,4)=="css-"?T="css":I.substring(0,4)=="php-"&&(T="php"))}return T},b.prototype.getActiveScopes=function(S){var T=this.$getScope(S),L=[T],I=this.snippetMap;return I[T]&&I[T].includeScopes&&L.push.apply(L,I[T].includeScopes),L.push("_"),L},b.prototype.expandWithTab=function(S,T){var L=this,I=S.forEachSelection(function(){return L.expandSnippetForSelection(S,T)},null,{keepOrder:!0});return I&&S.tabstopManager&&S.tabstopManager.tabNext(),I},b.prototype.expandSnippetForSelection=function(S,T){var L=S.getCursorPosition(),I=S.session.getLine(L.row),A=I.substring(0,L.column),P=I.substr(L.column),D=this.snippetMap,E;return this.getActiveScopes(S).some(function(R){var $=D[R];return $&&(E=this.findMatchingSnippet($,A,P)),!!E},this),E?(T&&T.dryRun||(S.session.doc.removeInLine(L.row,L.column-E.replaceBefore.length,L.column+E.replaceAfter.length),this.variables.M__=E.matchBefore,this.variables.T__=E.matchAfter,this.insertSnippetForSelection(S,E.content),this.variables.M__=this.variables.T__=null),!0):!1},b.prototype.findMatchingSnippet=function(S,T,L){for(var I=S.length;I--;){var A=S[I];if(!(A.startRe&&!A.startRe.test(T))&&!(A.endRe&&!A.endRe.test(L))&&!(!A.startRe&&!A.endRe))return A.matchBefore=A.startRe?A.startRe.exec(T):[""],A.matchAfter=A.endRe?A.endRe.exec(L):[""],A.replaceBefore=A.triggerRe?A.triggerRe.exec(T)[0]:"",A.replaceAfter=A.endTriggerRe?A.endTriggerRe.exec(L)[0]:"",A}},b.prototype.register=function(S,T){var L=this.snippetMap,I=this.snippetNameMap,A=this;S||(S=[]);function P(R){return R&&!/^\^?\(.*\)\$?$|^\\b$/.test(R)&&(R="(?:"+R+")"),R||""}function D(R,$,N){return R=P(R),$=P($),N?(R=$+R,R&&R[R.length-1]!="$"&&(R=R+"$")):(R=R+$,R&&R[0]!="^"&&(R="^"+R)),new RegExp(R)}function E(R){R.scope||(R.scope=T||"_"),T=R.scope,L[T]||(L[T]=[],I[T]={});var $=I[T];if(R.name){var N=$[R.name];N&&A.unregister(N),$[R.name]=R}L[T].push(R),R.prefix&&(R.tabTrigger=R.prefix),!R.content&&R.body&&(R.content=Array.isArray(R.body)?R.body.join(`
  1089  `):R.body),R.tabTrigger&&!R.trigger&&(!R.guard&&/^\w/.test(R.tabTrigger)&&(R.guard="\\b"),R.trigger=l.escapeRegExp(R.tabTrigger)),!(!R.trigger&&!R.guard&&!R.endTrigger&&!R.endGuard)&&(R.startRe=D(R.trigger,R.guard,!0),R.triggerRe=new RegExp(R.trigger),R.endRe=D(R.endTrigger,R.endGuard,!0),R.endTriggerRe=new RegExp(R.endTrigger))}Array.isArray(S)?S.forEach(E):Object.keys(S).forEach(function(R){E(S[R])}),this._signal("registerSnippets",{scope:T})},b.prototype.unregister=function(S,T){var L=this.snippetMap,I=this.snippetNameMap;function A(P){var D=I[P.scope||T];if(D&&D[P.name]){delete D[P.name];var E=L[P.scope||T],R=E&&E.indexOf(P);R>=0&&E.splice(R,1)}}S.content?A(S):Array.isArray(S)&&S.forEach(A)},b.prototype.parseSnippetFile=function(S){S=S.replace(/\r/g,"");for(var T=[],L={},I=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,A;A=I.exec(S);){if(A[1])try{L=JSON.parse(A[1]),T.push(L)}catch{}if(A[4])L.content=A[4].replace(/^\t/gm,""),T.push(L),L={};else{var P=A[2],D=A[3];if(P=="regex"){var E=/\/((?:[^\/\\]|\\.)*)|$/g;L.guard=E.exec(D)[1],L.trigger=E.exec(D)[1],L.endTrigger=E.exec(D)[1],L.endGuard=E.exec(D)[1]}else P=="snippet"?(L.tabTrigger=D.match(/^\S*/)[0],L.name||(L.name=D)):P&&(L[P]=D)}}return T},b.prototype.getSnippetByName=function(S,T){var L=this.snippetNameMap,I;return this.getActiveScopes(T).some(function(A){var P=L[A];return P&&(I=P[S]),!!I},this),I},b}();a.implement(v.prototype,c);var m=function(b,S,T){T===void 0&&(T={});var L=b.getCursorPosition(),I=b.session.getLine(L.row),A=b.session.getTabString(),P=I.match(/^\s*/)[0];L.column<P.length&&(P=P.slice(0,L.column)),S=S.replace(/\r/g,"");var D=this.tokenizeTmSnippet(S);D=this.resolveVariables(D,b),D=D.map(function(V){return V==`
  1090  `&&!T.excludeExtraIndent?V+P:typeof V=="string"?V.replace(/\t/g,A):V});var E=[];D.forEach(function(V,q){if(typeof V=="object"){var ee=V.tabstopId,X=E[ee];if(X||(X=E[ee]=[],X.index=ee,X.value="",X.parents={}),X.indexOf(V)===-1){V.choices&&!X.choices&&(X.choices=V.choices),X.push(V);var ie=D.indexOf(V,q+1);if(ie!==-1){var se=D.slice(q+1,ie),me=se.some(function(ve){return typeof ve=="object"});me&&!X.value?X.value=se:se.length&&(!X.value||typeof X.value!="string")&&(X.value=se.join(""))}}}}),E.forEach(function(V){V.length=0});var R={};function $(V){for(var q=[],ee=0;ee<V.length;ee++){var X=V[ee];if(typeof X=="object"){if(R[X.tabstopId])continue;var ie=V.lastIndexOf(X,ee-1);X=q[ie]||{tabstopId:X.tabstopId}}q[ee]=X}return q}for(var N=0;N<D.length;N++){var M=D[N];if(typeof M=="object"){var O=M.tabstopId,j=E[O],z=D.indexOf(M,N+1);if(R[O]){R[O]===M&&(delete R[O],Object.keys(R).forEach(function(V){j.parents[V]=!0}));continue}R[O]=M;var F=j.value;typeof F!="string"?F=$(F):M.fmt&&(F=this.tmStrFormat(F,M,b)),D.splice.apply(D,[N+1,Math.max(0,z-N)].concat(F,M)),j.indexOf(M)===-1&&j.push(M)}}var K=0,U=0,Y="";return D.forEach(function(V){if(typeof V=="string"){var q=V.split(`
  1091  `);q.length>1?(U=q[q.length-1].length,K+=q.length-1):U+=V.length,Y+=V}else V&&(V.start?V.end={row:K,column:U}:V.start={row:K,column:U})}),{text:Y,tabstops:E,tokens:D}},y=function(){function b(S){if(this.index=0,this.ranges=[],this.tabstops=[],S.tabstopManager)return S.tabstopManager;S.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=l.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(S)}return b.prototype.attach=function(S){this.$openTabstops=null,this.selectedTabstop=null,this.editor=S,this.session=S.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},b.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},b.prototype.onChange=function(S){for(var T=S.action[0]=="r",L=this.selectedTabstop||{},I=L.parents||{},A=this.tabstops.slice(),P=0;P<A.length;P++){var D=A[P],E=D==L||I[D.index];if(D.rangeList.$bias=E?0:1,S.action=="remove"&&D!==L){var R=D.parents&&D.parents[L.index],$=D.rangeList.pointIndex(S.start,R);$=$<0?-$-1:$+1;var N=D.rangeList.pointIndex(S.end,R);N=N<0?-N-1:N-1;for(var M=D.rangeList.ranges.slice($,N),O=0;O<M.length;O++)this.removeRange(M[O])}D.rangeList.$onChange(S)}var j=this.session;!this.$inChange&&T&&j.getLength()==1&&!j.getValue()&&this.detach()},b.prototype.updateLinkedFields=function(){var S=this.selectedTabstop;if(!(!S||!S.hasLinkedRanges||!S.firstNonLinked)){this.$inChange=!0;for(var T=this.session,L=T.getTextRange(S.firstNonLinked),I=0;I<S.length;I++){var A=S[I];if(A.linked){var P=A.original,D=o.snippetManager.tmStrFormat(L,P,this.editor);T.replace(A,D)}}this.$inChange=!1}},b.prototype.onAfterExec=function(S){S.command&&!S.command.readOnly&&this.updateLinkedFields()},b.prototype.onChangeSelection=function(){if(this.editor){for(var S=this.editor.selection.lead,T=this.editor.selection.anchor,L=this.editor.selection.isEmpty(),I=0;I<this.ranges.length;I++)if(!this.ranges[I].linked){var A=this.ranges[I].contains(S.row,S.column),P=L||this.ranges[I].contains(T.row,T.column);if(A&&P)return}this.detach()}},b.prototype.onChangeSession=function(){this.detach()},b.prototype.tabNext=function(S){var T=this.tabstops.length,L=this.index+(S||1);L=Math.min(Math.max(L,1),T),L==T&&(L=0),this.selectTabstop(L),this.updateTabstopMarkers(),L===0&&this.detach()},b.prototype.selectTabstop=function(S){this.$openTabstops=null;var T=this.tabstops[this.index];if(T&&this.addTabstopMarkers(T),this.index=S,T=this.tabstops[this.index],!(!T||!T.length)){this.selectedTabstop=T;var L=T.firstNonLinked||T;if(T.choices&&(L.cursor=L.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(L);else{var I=this.editor.multiSelect;I.toSingleRange(L);for(var A=0;A<T.length;A++)T.hasLinkedRanges&&T[A].linked||I.addRange(T[A].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},b.prototype.addTabstops=function(S,T,L){var I=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!S[0]){var A=d.fromPoints(L,L);_(A.start,T),_(A.end,T),S[0]=[A],S[0].index=0}var P=this.index,D=[P+1,0],E=this.ranges,R=this.snippetId=(this.snippetId||0)+1;S.forEach(function($,N){var M=this.$openTabstops[N]||$;M.snippetId=R;for(var O=0;O<$.length;O++){var j=$[O],z=d.fromPoints(j.start,j.end||j.start);C(z.start,T),C(z.end,T),z.original=j,z.tabstop=M,E.push(z),M!=$?M.unshift(z):M[O]=z,j.fmtString||M.firstNonLinked&&I?(z.linked=!0,M.hasLinkedRanges=!0):M.firstNonLinked||(M.firstNonLinked=z)}M.firstNonLinked||(M.hasLinkedRanges=!1),M===$&&(D.push(M),this.$openTabstops[N]=M),this.addTabstopMarkers(M),M.rangeList=M.rangeList||new s,M.rangeList.$bias=0,M.rangeList.addList(M)},this),D.length>2&&(this.tabstops.length&&D.push(D.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,D))},b.prototype.addTabstopMarkers=function(S){var T=this.session;S.forEach(function(L){L.markerId||(L.markerId=T.addMarker(L,"ace_snippet-marker","text"))})},b.prototype.removeTabstopMarkers=function(S){var T=this.session;S.forEach(function(L){T.removeMarker(L.markerId),L.markerId=null})},b.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var S=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&S--,this.tabstops.forEach(function(T){T.snippetId===S?this.addTabstopMarkers(T):this.removeTabstopMarkers(T)},this)}},b.prototype.removeRange=function(S){var T=S.tabstop.indexOf(S);T!=-1&&S.tabstop.splice(T,1),T=this.ranges.indexOf(S),T!=-1&&this.ranges.splice(T,1),T=S.tabstop.rangeList.ranges.indexOf(S),T!=-1&&S.tabstop.splice(T,1),this.session.removeMarker(S.markerId),S.tabstop.length||(T=this.tabstops.indexOf(S.tabstop),T!=-1&&this.tabstops.splice(T,1),this.tabstops.length||this.detach())},b}();y.prototype.keyboardHandler=new u,y.prototype.keyboardHandler.bindKeys({Tab:function(b){o.snippetManager&&o.snippetManager.expandWithTab(b)||(b.tabstopManager.tabNext(1),b.renderer.scrollCursorIntoView())},"Shift-Tab":function(b){b.tabstopManager.tabNext(-1),b.renderer.scrollCursorIntoView()},Esc:function(b){b.tabstopManager.detach()}});var C=function(b,S){b.row==0&&(b.column+=S.column),b.row+=S.row},_=function(b,S){b.row==S.row&&(b.column-=S.column),b.row-=S.row};i.importCssString(`
  1092  .ace_snippet-marker {
  1093      -moz-box-sizing: border-box;
  1094      box-sizing: border-box;
  1095      background: rgba(194, 193, 208, 0.09);
  1096      border: 1px dotted rgba(211, 208, 235, 0.62);
  1097      position: absolute;
  1098  }`,"snippets.css",!1),o.snippetManager=new v;var k=r("./editor").Editor;(function(){this.insertSnippet=function(b,S){return o.snippetManager.insertSnippet(this,b,S)},this.expandSnippet=function(b){return o.snippetManager.expandWithTab(this,b)}}).call(k.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(r,o,n){var i=r("../virtual_renderer").VirtualRenderer,a=r("../editor").Editor,c=r("../range").Range,l=r("../lib/event"),d=r("../lib/lang"),s=r("../lib/dom"),u=r("../config").nls,h=r("./../lib/useragent"),f=function(C){return"suggest-aria-id:".concat(C)},p=h.isSafari?"menu":"listbox",g=h.isSafari?"menuitem":"option",v=h.isSafari?"aria-current":"aria-selected",m=function(C){var _=new i(C);_.$maxLines=4;var k=new a(_);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},y=function(){function C(_){var k=s.createElement("div"),b=m(k);_&&_.appendChild(k),k.style.display="none",b.renderer.content.style.cursor="default",b.renderer.setStyle("ace_autocomplete"),b.renderer.$textLayer.element.setAttribute("role",p),b.renderer.$textLayer.element.setAttribute("aria-roledescription",u("Autocomplete suggestions")),b.renderer.$textLayer.element.setAttribute("aria-label",u("Autocomplete suggestions")),b.renderer.textarea.setAttribute("aria-hidden","true"),b.setOption("displayIndentGuides",!1),b.setOption("dragDelay",150);var S=function(){};b.focus=S,b.$isFocused=!0,b.renderer.$cursorLayer.restartTimer=S,b.renderer.$cursorLayer.element.style.opacity="0",b.renderer.$maxLines=8,b.renderer.$keepTextAreaAtCursor=!1,b.setHighlightActiveLine(!1),b.session.highlight(""),b.session.$searchHighlight.clazz="ace_highlight-marker",b.on("mousedown",function(E){var R=E.getDocumentPosition();b.selection.moveToPosition(R),I.start.row=I.end.row=R.row,E.stop()});var T,L=new c(-1,0,-1,1/0),I=new c(-1,0,-1,1/0);I.id=b.session.addMarker(I,"ace_active-line","fullLine"),b.setSelectOnHover=function(E){E?L.id&&(b.session.removeMarker(L.id),L.id=null):L.id=b.session.addMarker(L,"ace_line-hover","fullLine")},b.setSelectOnHover(!1),b.on("mousemove",function(E){if(!T){T=E;return}if(!(T.x==E.x&&T.y==E.y)){T=E,T.scrollTop=b.renderer.scrollTop,b.isMouseOver=!0;var R=T.getDocumentPosition().row;L.start.row!=R&&(L.id||b.setRow(R),P(R))}}),b.renderer.on("beforeRender",function(){if(T&&L.start.row!=-1){T.$pos=null;var E=T.getDocumentPosition().row;L.id||b.setRow(E),P(E,!0)}}),b.renderer.on("afterRender",function(){var E=b.getRow(),R=b.renderer.$textLayer,$=R.element.childNodes[E-R.config.firstRow],N=document.activeElement;if($!==b.selectedNode&&b.selectedNode&&(s.removeCssClass(b.selectedNode,"ace_selected"),N.removeAttribute("aria-activedescendant"),b.selectedNode.removeAttribute(v),b.selectedNode.removeAttribute("id")),b.selectedNode=$,$){s.addCssClass($,"ace_selected");var M=f(E);$.id=M,R.element.setAttribute("aria-activedescendant",M),N.setAttribute("aria-activedescendant",M),$.setAttribute("role",g),$.setAttribute("aria-roledescription",u("item")),$.setAttribute("aria-label",b.getData(E).caption||b.getData(E).value),$.setAttribute("aria-setsize",b.data.length),$.setAttribute("aria-posinset",E+1),$.setAttribute("aria-describedby","doc-tooltip"),$.setAttribute(v,"true")}});var A=function(){P(-1)},P=function(E,R){E!==L.start.row&&(L.start.row=L.end.row=E,R||b.session._emit("changeBackMarker"),b._emit("changeHoverMarker"))};b.getHoveredRow=function(){return L.start.row},l.addListener(b.container,"mouseout",function(){b.isMouseOver=!1,A()}),b.on("hide",A),b.on("changeSelection",A),b.session.doc.getLength=function(){return b.data.length},b.session.doc.getLine=function(E){var R=b.data[E];return typeof R=="string"?R:R&&R.value||""};var D=b.session.bgTokenizer;return D.$tokenizeRow=function(E){var R=b.data[E],$=[];if(!R)return $;typeof R=="string"&&(R={value:R});var N=R.caption||R.value||R.name;function M(V,q){V&&$.push({type:(R.className||"")+(q||""),value:V})}for(var O=N.toLowerCase(),j=(b.filterText||"").toLowerCase(),z=0,F=0,K=0;K<=j.length;K++)if(K!=F&&(R.matchMask&1<<K||K==j.length)){var U=j.slice(F,K);F=K;var Y=O.indexOf(U,z);if(Y==-1)continue;M(N.slice(z,Y),""),z=Y+U.length,M(N.slice(Y,z),"completion-highlight")}return M(N.slice(z,N.length),""),$.push({type:"completion-spacer",value:" "}),R.meta&&$.push({type:"completion-meta",value:R.meta}),R.message&&$.push({type:"completion-message",value:R.message}),$},D.$updateOnChange=S,D.start=S,b.session.$computeWidth=function(){return this.screenWidth=0},b.isOpen=!1,b.isTopdown=!1,b.autoSelect=!0,b.filterText="",b.isMouseOver=!1,b.data=[],b.setData=function(E,R){b.filterText=R||"",b.setValue(d.stringRepeat(`
  1099  `,E.length),-1),b.data=E||[],b.setRow(0)},b.getData=function(E){return b.data[E]},b.getRow=function(){return I.start.row},b.setRow=function(E){E=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,E)),I.start.row!=E&&(b.selection.clearSelection(),I.start.row=I.end.row=E||0,b.session._emit("changeBackMarker"),b.moveCursorTo(E||0,0),b.isOpen&&b._signal("select"))},b.on("changeSelection",function(){b.isOpen&&b.setRow(b.selection.lead.row),b.renderer.scrollCursorIntoView()}),b.hide=function(){this.container.style.display="none",b.anchorPos=null,b.anchor=null,b.isOpen&&(b.isOpen=!1,this._signal("hide"))},b.tryShow=function(E,R,$,N){if(!N&&b.isOpen&&b.anchorPos&&b.anchor&&b.anchorPos.top===E.top&&b.anchorPos.left===E.left&&b.anchor===$)return!0;var M=this.container,O=window.innerHeight,j=window.innerWidth,z=this.renderer,F=z.$maxLines*R*1.4,K={top:0,bottom:0,left:0},U=O-E.top-3*this.$borderSize-R,Y=E.top-3*this.$borderSize;$||(Y<=U||U>=F?$="bottom":$="top"),$==="top"?(K.bottom=E.top-this.$borderSize,K.top=K.bottom-F):$==="bottom"&&(K.top=E.top+R+this.$borderSize,K.bottom=K.top+F);var V=K.top>=0&&K.bottom<=O;if(!N&&!V)return!1;V?z.$maxPixelHeight=null:$==="top"?z.$maxPixelHeight=Y:z.$maxPixelHeight=U,$==="top"?(M.style.top="",M.style.bottom=O-K.bottom+"px",b.isTopdown=!1):(M.style.top=K.top+"px",M.style.bottom="",b.isTopdown=!0),M.style.display="";var q=E.left;return q+M.offsetWidth>j&&(q=j-M.offsetWidth),M.style.left=q+"px",M.style.right="",b.isOpen||(b.isOpen=!0,this._signal("show"),T=null),b.anchorPos=E,b.anchor=$,!0},b.show=function(E,R,$){this.tryShow(E,R,$?"bottom":void 0,!0)},b.goTo=function(E){var R=this.getRow(),$=this.session.getLength()-1;switch(E){case"up":R=R<=0?$:R-1;break;case"down":R=R>=$?-1:R+1;break;case"start":R=0;break;case"end":R=$;break}this.setRow(R)},b.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},b.$imageSize=0,b.$borderSize=1,b}return C}();s.importCssString(`
  1100  .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
  1101      background-color: #CAD6FA;
  1102      z-index: 1;
  1103  }
  1104  .ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
  1105      background-color: #3a674e;
  1106  }
  1107  .ace_editor.ace_autocomplete .ace_line-hover {
  1108      border: 1px solid #abbffe;
  1109      margin-top: -1px;
  1110      background: rgba(233,233,253,0.4);
  1111      position: absolute;
  1112      z-index: 2;
  1113  }
  1114  .ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
  1115      border: 1px solid rgba(109, 150, 13, 0.8);
  1116      background: rgba(58, 103, 78, 0.62);
  1117  }
  1118  .ace_completion-meta {
  1119      opacity: 0.5;
  1120      margin-left: 0.9em;
  1121  }
  1122  .ace_completion-message {
  1123      margin-left: 0.9em;
  1124      color: blue;
  1125  }
  1126  .ace_editor.ace_autocomplete .ace_completion-highlight{
  1127      color: #2d69c7;
  1128  }
  1129  .ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
  1130      color: #93ca12;
  1131  }
  1132  .ace_editor.ace_autocomplete {
  1133      width: 300px;
  1134      z-index: 200000;
  1135      border: 1px lightgray solid;
  1136      position: fixed;
  1137      box-shadow: 2px 3px 5px rgba(0,0,0,.2);
  1138      line-height: 1.4;
  1139      background: #fefefe;
  1140      color: #111;
  1141  }
  1142  .ace_dark.ace_editor.ace_autocomplete {
  1143      border: 1px #484747 solid;
  1144      box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
  1145      line-height: 1.4;
  1146      background: #25282c;
  1147      color: #c1c1c1;
  1148  }
  1149  .ace_autocomplete .ace_text-layer  {
  1150      width: calc(100% - 8px);
  1151  }
  1152  .ace_autocomplete .ace_line {
  1153      display: flex;
  1154      align-items: center;
  1155  }
  1156  .ace_autocomplete .ace_line > * {
  1157      min-width: 0;
  1158      flex: 0 0 auto;
  1159  }
  1160  .ace_autocomplete .ace_line .ace_ {
  1161      flex: 0 1 auto;
  1162      overflow: hidden;
  1163      white-space: nowrap;
  1164      text-overflow: ellipsis;
  1165  }
  1166  .ace_autocomplete .ace_completion-spacer {
  1167      flex: 1;
  1168  }
  1169  .ace_autocomplete.ace_loading:after  {
  1170      content: "";
  1171      position: absolute;
  1172      top: 0px;
  1173      height: 2px;
  1174      width: 8%;
  1175      background: blue;
  1176      z-index: 100;
  1177      animation: ace_progress 3s infinite linear;
  1178      animation-delay: 300ms;
  1179      transform: translateX(-100%) scaleX(1);
  1180  }
  1181  @keyframes ace_progress {
  1182      0% { transform: translateX(-100%) scaleX(1) }
  1183      50% { transform: translateX(625%) scaleX(2) } 
  1184      100% { transform: translateX(1500%) scaleX(3) } 
  1185  }
  1186  @media (prefers-reduced-motion) {
  1187      .ace_autocomplete.ace_loading:after {
  1188          transform: translateX(625%) scaleX(2);
  1189          animation: none;
  1190       }
  1191  }
  1192  `,"autocompletion.css",!1),o.AcePopup=y,o.$singleLineEditor=m,o.getAriaId=f}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(r,o,n){var i=function(){function a(c){this.editor=c,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return a.prototype.setScreenReaderContent=function(c){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var d=this.popup.getRow(),s=this.popup.renderer.$textLayer,u=s.element.childNodes[d-s.config.firstRow];if(u){for(var h="doc-tooltip ",f=0;f<this._lines.length;f++)h+="ace-inline-screenreader-line-".concat(f," ");u.setAttribute("aria-describedby",h)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=c.split(/\r\n|\r|\n/);var l=this.createCodeBlock();this.screenReaderDiv.appendChild(l)},a.prototype.destroy=function(){this.screenReaderDiv.remove()},a.prototype.createCodeBlock=function(){var c=document.createElement("pre");c.setAttribute("id","ace-inline-screenreader");for(var l=0;l<this._lines.length;l++){var d=document.createElement("code");d.setAttribute("id","ace-inline-screenreader-line-".concat(l));var s=document.createTextNode(this._lines[l]);d.appendChild(s),c.appendChild(d)}return c},a}();o.AceInlineScreenReader=i}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(r,o,n){var i=r("../snippets").snippetManager,a=r("./inline_screenreader").AceInlineScreenReader,c=function(){function l(){this.editor=null}return l.prototype.show=function(d,s,u){if(u=u||"",d&&this.editor&&this.editor!==d&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!d||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new a(d));var h=s.snippet?i.getDisplayTextForSnippet(d,s.snippet):s.value;return s.hideInlinePreview||!h||!h.startsWith(u)?!1:(this.editor=d,this.inlineScreenReader.setScreenReaderContent(h),h=h.slice(u.length),h===""?d.removeGhostText():d.setGhostText(h),!0)},l.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},l.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},l.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},l}();o.AceInline=c}),ace.define("ace/autocomplete/util",["require","exports","module"],function(r,o,n){o.parForEach=function(a,c,l){var d=0,s=a.length;s===0&&l();for(var u=0;u<s;u++)c(a[u],function(h,f){d++,d===s&&l(h,f)})};var i=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;o.retrievePrecedingIdentifier=function(a,c,l){l=l||i;for(var d=[],s=c-1;s>=0&&l.test(a[s]);s--)d.push(a[s]);return d.reverse().join("")},o.retrieveFollowingIdentifier=function(a,c,l){l=l||i;for(var d=[],s=c;s<a.length&&l.test(a[s]);s++)d.push(a[s]);return d},o.getCompletionPrefix=function(a){var c=a.getCursorPosition(),l=a.session.getLine(c.row),d;return a.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(u){!d&&u&&(d=this.retrievePrecedingIdentifier(l,c.column,u))}).bind(this))}).bind(this)),d||this.retrievePrecedingIdentifier(l,c.column)},o.triggerAutocomplete=function(a){var c=a.getCursorPosition(),l=a.session.getLine(c.row),d=c.column===0?0:c.column-1,s=l[d];return a.completers.some(function(u){if(u.triggerCharacters&&Array.isArray(u.triggerCharacters))return u.triggerCharacters.includes(s)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(r,o,n){var i=r("./keyboard/hash_handler").HashHandler,a=r("./autocomplete/popup").AcePopup,c=r("./autocomplete/inline").AceInline,l=r("./autocomplete/popup").getAriaId,d=r("./autocomplete/util"),s=r("./lib/lang"),u=r("./lib/dom"),h=r("./snippets").snippetManager,f=r("./config"),p=r("./lib/event"),g=r("./lib/scroll").preventParentScroll,v=function(_,k){k.completer&&k.completer.destroy()},m=function(){function _(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new i,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new C(_.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(_,"completionsForLoading",{get:function(){return[{caption:f.nls("Loading..."),value:""}]},enumerable:!1,configurable:!0}),_.prototype.$init=function(){return this.popup=new a(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),p.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},_.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new c,this.inlineRenderer},_.prototype.getPopup=function(){return this.popup||this.$init()},_.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},_.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},_.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var b=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(b),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},_.prototype.$updateGhostText=function(k){var b=this.base.row,S=this.base.column,T=this.editor.getCursorPosition().column,L=this.editor.session.getLine(b).slice(S,T);this.inlineRenderer.show(this.editor,k,L)?this.$seen(k):this.inlineRenderer.hide()},_.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var b=this.popup.getFirstVisibleRow();b<=this.popup.getLastVisibleRow();b++){var S=this.popup.getData(b);S&&(!k||S.hideInlinePreview)&&this.$seen(S)}},_.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},_.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,b=[];k;)b.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=b}},_.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(b){b.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},_.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},_.prototype.$updatePopupPosition=function(){var k=this.editor,b=k.renderer,S=b.layerConfig.lineHeight,T=b.$cursorLayer.getPixelPosition(this.base,!0);T.left-=this.popup.getTextLeftOffset();var L=k.container.getBoundingClientRect();T.top+=L.top-b.layerConfig.offset,T.left+=L.left-k.renderer.scrollLeft,T.left+=b.gutterWidth;var I={top:T.top,left:T.left};b.$ghostText&&b.$ghostTextWidget&&this.base.row===b.$ghostText.position.row&&(I.top+=b.$ghostTextWidget.el.offsetHeight);var A=k.container.getBoundingClientRect().bottom-S,P=A<I.top?{top:A,left:I.left}:I;this.popup.tryShow(P,S,"bottom")||this.popup.tryShow(T,S,"top")||this.popup.show(T,S)},_.prototype.openPopup=function(k,b,S){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var T=this.popup.getRow(),L=this.popup.data[T];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:l(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var I;this.stickySelection&&(I=this.popup.data.indexOf(L)),(!I||I===-1)&&(I=0),this.popup.setRow(this.autoSelect?I:-1),I===T&&L!==this.completions.filtered[I]&&this.$onPopupChange();var A=this.inlineRenderer&&this.inlineEnabled;if(I===T&&A){var P=this.popup.getData(this.popup.getRow());this.$updateGhostText(P)}S?S&&!b&&this.detach():(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},_.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},_.prototype.changeListener=function(k){var b=this.editor.selection.lead;(b.row!=this.base.row||b.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},_.prototype.blurListener=function(k){var b=document.activeElement,S=this.editor.textInput.getElement(),T=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),L=this.popup&&this.popup.container;b!=S&&b.parentNode!=L&&!T&&b!=this.tooltipNode&&k.relatedTarget!=S&&this.detach()},_.prototype.mousedownListener=function(k){this.detach()},_.prototype.mousewheelListener=function(k){this.popup.isMouseOver||this.detach()},_.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},_.prototype.goTo=function(k){this.popup.goTo(k)},_.prototype.insertMatch=function(k,b){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var S=this.completions,T=this.getCompletionProvider().insertMatch(this.editor,k,S.filterText,b);return this.completions==S&&this.detach(),T},_.prototype.showPopup=function(k,b){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,b)},_.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new y(k)),this.completionProvider},_.prototype.gatherCompletions=function(k,b){return this.getCompletionProvider().gatherCompletions(k,b)},_.prototype.updateCompletions=function(k,b){if(k&&this.base&&this.completions){var T=this.editor.getCursorPosition(),L=this.editor.session.getTextRange({start:this.base,end:T});if(L==this.completions.filterText)return;if(this.completions.setFilter(L),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==L&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,L,k);return}if(b&&b.matches){var T=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(T.row,T.column),this.base.$insertRight=!0,this.completions=new C(b.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var S=this.editor.getSession(),T=this.editor.getCursorPosition(),L=d.getCompletionPrefix(this.editor);this.base=S.doc.createAnchor(T.row,T.column-L.length),this.base.$insertRight=!0;var I={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:L,pos:T}).provideCompletions(this.editor,I,(function(A,P,D){var E=P.filtered,R=d.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),D){if(!E.length){var $=!this.autoShown&&this.emptyMessage;if(typeof $=="function"&&($=this.emptyMessage(R)),$){var N=[{caption:$,value:""}];this.completions=new C(N),this.openPopup(this.editor,R,k),this.popup.renderer.setStyle("ace_loading",!1);return}return this.detach()}if(E.length==1&&E[0].value==R&&!E[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&E.length==1)return this.insertMatch(E[0])}this.completions=!D&&this.showLoadingState?new C(_.completionsForLoading.concat(E),P.filterText):P,this.openPopup(this.editor,R,k),this.popup.renderer.setStyle("ace_loading",!D)}).bind(this)),this.showLoadingState&&!this.autoShown&&!(this.popup&&this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},_.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},_.prototype.updateDocTooltip=function(){var k=this.popup,b=this.completions.filtered,S=b&&(b[k.getHoveredRow()]||b[k.getRow()]),T=null;if(!S||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var L=this.editor.completers.length,I=0;I<L;I++){var A=this.editor.completers[I];if(A.getDocTooltip&&S.completerId===A.id){T=A.getDocTooltip(S);break}}if(!T&&typeof S!="string"&&(T=S),typeof T=="string"&&(T={docText:T}),!T||!(T.docHTML||T.docText))return this.hideDocTooltip();this.showDocTooltip(T)},_.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=u.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",g));var b=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(b.isDark?"ace_dark ":"")+(b.cssClass||"");var S=this.tooltipNode;k.docHTML?S.innerHTML=k.docHTML:k.docText&&(S.textContent=k.docText),S.parentNode||this.popup.container.appendChild(this.tooltipNode);var T=this.popup,L=T.container.getBoundingClientRect();S.style.top=T.container.style.top,S.style.bottom=T.container.style.bottom,S.style.display="block",window.innerWidth-L.right<320?L.left<320?T.isTopdown?(S.style.top=L.bottom+"px",S.style.left=L.left+"px",S.style.right="",S.style.bottom=""):(S.style.top=T.container.offsetTop-S.offsetHeight+"px",S.style.left=L.left+"px",S.style.right="",S.style.bottom=""):(S.style.right=window.innerWidth-L.left+"px",S.style.left=""):(S.style.left=L.right+1+"px",S.style.right="")},_.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},_.prototype.onTooltipClick=function(k){for(var b=k.target;b&&b!=this.tooltipNode;){if(b.nodeName=="A"&&b.href){b.rel="noreferrer",b.target="_blank";break}b=b.parentNode}},_.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",v),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},_}();m.prototype.commands={Up:function(_){_.completer.goTo("up")},Down:function(_){_.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(_){_.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(_){_.completer.goTo("end")},Esc:function(_){_.completer.detach()},Return:function(_){return _.completer.insertMatch()},"Shift-Return":function(_){_.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(_){var k=_.completer.insertMatch();if(!k&&!_.tabstopManager)_.completer.goTo("down");else return k},PageUp:function(_){_.completer.popup.gotoPageUp()},PageDown:function(_){_.completer.popup.gotoPageDown()}},m.for=function(_){return _.completer instanceof m||(_.completer&&(_.completer.destroy(),_.completer=null),f.get("sharedPopups")?(m.$sharedInstance||(m.$sharedInstance=new m),_.completer=m.$sharedInstance):(_.completer=new m,_.once("destroy",v))),_.completer},m.startCommand={name:"startAutocomplete",exec:function(_,k){var b=m.for(_);b.autoInsert=!1,b.autoSelect=!0,b.autoShown=!1,b.showPopup(_,k),b.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var y=function(){function _(k){this.initialPosition=k,this.active=!0}return _.prototype.insertByIndex=function(k,b,S){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[b],S)},_.prototype.insertMatch=function(k,b,S){if(!b)return!1;if(k.startOperation({command:{name:"insertMatch"}}),b.completer&&b.completer.insertMatch)b.completer.insertMatch(k,b);else{if(!this.completions)return!1;var T=this.completions.filterText.length,L=0;if(b.range&&b.range.start.row===b.range.end.row&&(T-=this.initialPosition.prefix.length,T+=this.initialPosition.pos.column-b.range.start.column,L+=b.range.end.column-this.initialPosition.pos.column),T||L){var I;k.selection.getAllRanges?I=k.selection.getAllRanges():I=[k.getSelectionRange()];for(var A=0,P;P=I[A];A++)P.start.column-=T,P.end.column+=L,k.session.remove(P)}b.snippet?h.insertSnippet(k,b.snippet):this.$insertString(k,b),b.completer&&b.completer.onInsert&&typeof b.completer.onInsert=="function"&&b.completer.onInsert(k,b),b.command&&b.command==="startAutocomplete"&&k.execCommand(b.command)}return k.endOperation(),!0},_.prototype.$insertString=function(k,b){var S=b.value||b;k.execCommand("insertstring",S)},_.prototype.gatherCompletions=function(k,b){var S=k.getSession(),T=k.getCursorPosition(),L=d.getCompletionPrefix(k),I=[];this.completers=k.completers;var A=k.completers.length;return k.completers.forEach(function(P,D){P.getCompletions(k,S,T,L,function(E,R){P.hideInlinePreview&&(R=R.map(function($){return Object.assign($,{hideInlinePreview:P.hideInlinePreview})})),!E&&R&&(I=I.concat(R)),b(null,{prefix:d.getCompletionPrefix(k),matches:I,finished:--A===0})})}),!0},_.prototype.provideCompletions=function(k,b,S){var T=(function(P){var D=P.prefix,E=P.matches;this.completions=new C(E),b.exactMatch&&(this.completions.exactMatch=!0),b.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(D),(P.finished||this.completions.filtered.length)&&S(null,this.completions,P.finished)}).bind(this),L=!0,I=null;if(this.gatherCompletions(k,(function(P,D){if(this.active){P&&(S(P,[],!0),this.detach());var E=D.prefix;if(E.indexOf(D.prefix)===0){if(L){I=D;return}T(D)}}}).bind(this)),L=!1,I){var A=I;I=null,T(A)}},_.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},_}(),C=function(){function _(k,b){this.all=k,this.filtered=k,this.filterText=b||"",this.exactMatch=!1,this.ignoreCaption=!1}return _.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var b=this.filtered;else var b=this.all;this.filterText=k,b=this.filterCompletions(b,this.filterText),b=b.sort(function(T,L){return L.exactMatch-T.exactMatch||L.$score-T.$score||(T.caption||T.value).localeCompare(L.caption||L.value)});var S=null;b=b.filter(function(T){var L=T.snippet||T.caption||T.value;return L===S?!1:(S=L,!0)}),this.filtered=b},_.prototype.filterCompletions=function(k,b){var S=[],T=b.toUpperCase(),L=b.toLowerCase();e:for(var I=0,A;A=k[I];I++){var P=!this.ignoreCaption&&A.caption||A.value||A.snippet;if(P){var D=-1,E=0,R=0,$,N;if(this.exactMatch){if(b!==P.substr(0,b.length))continue e}else{var M=P.toLowerCase().indexOf(L);if(M>-1)R=M;else for(var O=0;O<b.length;O++){var j=P.indexOf(L[O],D+1),z=P.indexOf(T[O],D+1);if($=j>=0&&(z<0||j<z)?j:z,$<0)continue e;N=$-D-1,N>0&&(D===-1&&(R+=10),R+=N,E=E|1<<O),D=$}}A.matchMask=E,A.exactMatch=R?0:1,A.$score=(A.score||0)-R,S.push(A)}}return S},_}();o.Autocomplete=m,o.CompletionProvider=y,o.FilteredList=C}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(r,o,n){var i=r("../range").Range,a=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function c(d,s){var u=d.getTextRange(i.fromPoints({row:0,column:0},s));return u.split(a).length-1}function l(d,s){var u=c(d,s),h=d.getValue().split(a),f=Object.create(null),p=h[u];return h.forEach(function(g,v){if(!(!g||g===p)){var m=Math.abs(u-v),y=h.length-m;f[g]?f[g]=Math.max(y,f[g]):f[g]=y}}),f}o.getCompletions=function(d,s,u,h,f){var p=l(s,u),g=Object.keys(p);f(null,g.map(function(v){return{caption:v,value:v,score:p[v],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(r,o,n){var i=r("../snippets").snippetManager,a=r("../autocomplete").Autocomplete,c=r("../config"),l=r("../lib/lang"),d=r("../autocomplete/util"),s=r("../autocomplete/text_completer"),u={getCompletions:function(T,L,I,A,P){if(L.$mode.completer)return L.$mode.completer.getCompletions(T,L,I,A,P);var D=T.session.getState(I.row),E=L.$mode.getCompletions(D,L,I,A);E=E.map(function(R){return R.completerId=u.id,R}),P(null,E)},id:"keywordCompleter"},h=function(T){var L={};return T.replace(/\${(\d+)(:(.*?))?}/g,function(I,A,P,D){return L[A]=D||""}).replace(/\$(\d+?)/g,function(I,A){return L[A]})},f={getCompletions:function(T,L,I,A,P){var D=[],E=L.getTokenAt(I.row,I.column);E&&E.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?D.push("html-tag"):D=i.getActiveScopes(T);var R=i.snippetMap,$=[];D.forEach(function(N){for(var M=R[N]||[],O=M.length;O--;){var j=M[O],z=j.name||j.tabTrigger;z&&$.push({caption:z,snippet:j.content,meta:j.tabTrigger&&!j.name?j.tabTrigger+"⇥ ":"snippet",completerId:f.id})}},this),P(null,$)},getDocTooltip:function(T){T.snippet&&!T.docHTML&&(T.docHTML=["<b>",l.escapeHTML(T.caption),"</b>","<hr></hr>",l.escapeHTML(h(T.snippet))].join(""))},id:"snippetCompleter"},p=[f,s,u];o.setCompleters=function(T){p.length=0,T&&p.push.apply(p,T)},o.addCompleter=function(T){p.push(T)},o.textCompleter=s,o.keyWordCompleter=u,o.snippetCompleter=f;var g={name:"expandSnippet",exec:function(T){return i.expandWithTab(T)},bindKey:"Tab"},v=function(T,L){m(L.session.$mode)},m=function(T){typeof T=="string"&&(T=c.$modes[T]),T&&(i.files||(i.files={}),y(T.$id,T.snippetFileId),T.modes&&T.modes.forEach(m))},y=function(T,L){!L||!T||i.files[T]||(i.files[T]={},c.loadModule(L,function(I){I&&(i.files[T]=I,!I.snippets&&I.snippetText&&(I.snippets=i.parseSnippetFile(I.snippetText)),i.register(I.snippets||[],I.scope),I.includeScopes&&(i.snippetMap[I.scope].includeScopes=I.includeScopes,I.includeScopes.forEach(function(A){m("ace/mode/"+A)})))}))},C=function(T){var L=T.editor,I=L.completer&&L.completer.activated;if(T.command.name==="backspace")I&&!d.getCompletionPrefix(L)&&L.completer.detach();else if(T.command.name==="insertstring"&&!I){_=T;var A=T.editor.$liveAutocompletionDelay;A?k.delay(A):b(T)}},_,k=l.delayedCall(function(){b(_)},0),b=function(T){var L=T.editor,I=d.getCompletionPrefix(L),A=d.triggerAutocomplete(L);if(I&&I.length>=L.$liveAutocompletionThreshold||A){var P=a.for(L);P.autoShown=!0,P.showPopup(L)}},S=r("../editor").Editor;r("../config").defineOptions(S.prototype,"editor",{enableBasicAutocompletion:{set:function(T){T?(this.completers||(this.completers=Array.isArray(T)?T:p),this.commands.addCommand(a.startCommand)):this.commands.removeCommand(a.startCommand)},value:!1},enableLiveAutocompletion:{set:function(T){T?(this.completers||(this.completers=Array.isArray(T)?T:p),this.commands.on("afterExec",C)):this.commands.off("afterExec",C)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(T){T?(this.commands.addCommand(g),this.on("changeMode",v),v(null,this)):(this.commands.removeCommand(g),this.off("changeMode",v))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(r){e&&(e.exports=r)})}()})(XB);var bre=XB.exports;const wre=Gn(bre);var QB={exports:{}};(function(e,t){(function(){ace.require(["ace/mode/text"],function(r){e&&(e.exports=r)})})()})(QB);var xre=QB.exports;const _re=Gn(xre);var ZB={exports:{}};(function(e,t){ace.define("ace/theme/dawn-css",["require","exports","module"],function(r,o,n){n.exports=`.ace-dawn .ace_gutter {
  1193    background: #ebebeb;
  1194    color: #333
  1195  }
  1196  
  1197  .ace-dawn .ace_print-margin {
  1198    width: 1px;
  1199    background: #e8e8e8
  1200  }
  1201  
  1202  .ace-dawn {
  1203    background-color: #F9F9F9;
  1204    color: #080808
  1205  }
  1206  
  1207  .ace-dawn .ace_cursor {
  1208    color: #000000
  1209  }
  1210  
  1211  .ace-dawn .ace_marker-layer .ace_selection {
  1212    background: rgba(39, 95, 255, 0.30)
  1213  }
  1214  
  1215  .ace-dawn.ace_multiselect .ace_selection.ace_start {
  1216    box-shadow: 0 0 3px 0px #F9F9F9;
  1217  }
  1218  
  1219  .ace-dawn .ace_marker-layer .ace_step {
  1220    background: rgb(255, 255, 0)
  1221  }
  1222  
  1223  .ace-dawn .ace_marker-layer .ace_bracket {
  1224    margin: -1px 0 0 -1px;
  1225    border: 1px solid rgba(75, 75, 126, 0.50)
  1226  }
  1227  
  1228  .ace-dawn .ace_marker-layer .ace_active-line {
  1229    background: rgba(36, 99, 180, 0.12)
  1230  }
  1231  
  1232  .ace-dawn .ace_gutter-active-line {
  1233    background-color : #dcdcdc
  1234  }
  1235  
  1236  .ace-dawn .ace_marker-layer .ace_selected-word {
  1237    border: 1px solid rgba(39, 95, 255, 0.30)
  1238  }
  1239  
  1240  .ace-dawn .ace_invisible {
  1241    color: rgba(75, 75, 126, 0.50)
  1242  }
  1243  
  1244  .ace-dawn .ace_keyword,
  1245  .ace-dawn .ace_meta {
  1246    color: #794938
  1247  }
  1248  
  1249  .ace-dawn .ace_constant,
  1250  .ace-dawn .ace_constant.ace_character,
  1251  .ace-dawn .ace_constant.ace_character.ace_escape,
  1252  .ace-dawn .ace_constant.ace_other {
  1253    color: #811F24
  1254  }
  1255  
  1256  .ace-dawn .ace_invalid.ace_illegal {
  1257    text-decoration: underline;
  1258    font-style: italic;
  1259    color: #F8F8F8;
  1260    background-color: #B52A1D
  1261  }
  1262  
  1263  .ace-dawn .ace_invalid.ace_deprecated {
  1264    text-decoration: underline;
  1265    font-style: italic;
  1266    color: #B52A1D
  1267  }
  1268  
  1269  .ace-dawn .ace_support {
  1270    color: #691C97
  1271  }
  1272  
  1273  .ace-dawn .ace_support.ace_constant {
  1274    color: #B4371F
  1275  }
  1276  
  1277  .ace-dawn .ace_fold {
  1278    background-color: #794938;
  1279    border-color: #080808
  1280  }
  1281  
  1282  .ace-dawn .ace_list,
  1283  .ace-dawn .ace_markup.ace_list,
  1284  .ace-dawn .ace_support.ace_function {
  1285    color: #693A17
  1286  }
  1287  
  1288  .ace-dawn .ace_storage {
  1289    font-style: italic;
  1290    color: #A71D5D
  1291  }
  1292  
  1293  .ace-dawn .ace_string {
  1294    color: #0B6125
  1295  }
  1296  
  1297  .ace-dawn .ace_string.ace_regexp {
  1298    color: #CF5628
  1299  }
  1300  
  1301  .ace-dawn .ace_comment {
  1302    font-style: italic;
  1303    color: #5A525F
  1304  }
  1305  
  1306  .ace-dawn .ace_heading,
  1307  .ace-dawn .ace_markup.ace_heading {
  1308    color: #19356D
  1309  }
  1310  
  1311  .ace-dawn .ace_variable {
  1312    color: #234A97
  1313  }
  1314  
  1315  .ace-dawn .ace_indent-guide {
  1316    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLh/5+x/AAizA4hxNNsZAAAAAElFTkSuQmCC) right repeat-y
  1317  }
  1318  
  1319  .ace-dawn .ace_indent-guide-active {
  1320    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
  1321  } 
  1322  `}),ace.define("ace/theme/dawn",["require","exports","module","ace/theme/dawn-css","ace/lib/dom"],function(r,o,n){o.isDark=!1,o.cssClass="ace-dawn",o.cssText=r("./dawn-css");var i=r("../lib/dom");i.importCssString(o.cssText,o.cssClass,!1)}),function(){ace.require(["ace/theme/dawn"],function(r){e&&(e.exports=r)})}()})(ZB);var kre=ZB.exports;const Cre=Gn(kre);var JB={exports:{}};(function(e,t){ace.define("ace/theme/tomorrow_night_bright-css",["require","exports","module"],function(r,o,n){n.exports=`.ace-tomorrow-night-bright .ace_gutter {
  1323    background: #1a1a1a;
  1324    color: #DEDEDE
  1325  }
  1326  
  1327  .ace-tomorrow-night-bright .ace_print-margin {
  1328    width: 1px;
  1329    background: #1a1a1a
  1330  }
  1331  
  1332  .ace-tomorrow-night-bright {
  1333    background-color: #000000;
  1334    color: #DEDEDE
  1335  }
  1336  
  1337  .ace-tomorrow-night-bright .ace_cursor {
  1338    color: #9F9F9F
  1339  }
  1340  
  1341  .ace-tomorrow-night-bright .ace_marker-layer .ace_selection {
  1342    background: #424242
  1343  }
  1344  
  1345  .ace-tomorrow-night-bright.ace_multiselect .ace_selection.ace_start {
  1346    box-shadow: 0 0 3px 0px #000000;
  1347  }
  1348  
  1349  .ace-tomorrow-night-bright .ace_marker-layer .ace_step {
  1350    background: rgb(102, 82, 0)
  1351  }
  1352  
  1353  .ace-tomorrow-night-bright .ace_marker-layer .ace_bracket {
  1354    margin: -1px 0 0 -1px;
  1355    border: 1px solid #888888
  1356  }
  1357  
  1358  .ace-tomorrow-night-bright .ace_marker-layer .ace_highlight {
  1359    border: 1px solid rgb(110, 119, 0);
  1360    border-bottom: 0;
  1361    box-shadow: inset 0 -1px rgb(110, 119, 0);
  1362    margin: -1px 0 0 -1px;
  1363    background: rgba(255, 235, 0, 0.1)
  1364  }
  1365  
  1366  .ace-tomorrow-night-bright .ace_marker-layer .ace_active-line {
  1367    background: #2A2A2A
  1368  }
  1369  
  1370  .ace-tomorrow-night-bright .ace_gutter-active-line {
  1371    background-color: #2A2A2A
  1372  }
  1373  
  1374  .ace-tomorrow-night-bright .ace_stack {
  1375    background-color: rgb(66, 90, 44)
  1376  }
  1377  
  1378  .ace-tomorrow-night-bright .ace_marker-layer .ace_selected-word {
  1379    border: 1px solid #888888
  1380  }
  1381  
  1382  .ace-tomorrow-night-bright .ace_invisible {
  1383    color: #343434
  1384  }
  1385  
  1386  .ace-tomorrow-night-bright .ace_keyword,
  1387  .ace-tomorrow-night-bright .ace_meta,
  1388  .ace-tomorrow-night-bright .ace_storage,
  1389  .ace-tomorrow-night-bright .ace_storage.ace_type,
  1390  .ace-tomorrow-night-bright .ace_support.ace_type {
  1391    color: #C397D8
  1392  }
  1393  
  1394  .ace-tomorrow-night-bright .ace_keyword.ace_operator {
  1395    color: #70C0B1
  1396  }
  1397  
  1398  .ace-tomorrow-night-bright .ace_constant.ace_character,
  1399  .ace-tomorrow-night-bright .ace_constant.ace_language,
  1400  .ace-tomorrow-night-bright .ace_constant.ace_numeric,
  1401  .ace-tomorrow-night-bright .ace_keyword.ace_other.ace_unit,
  1402  .ace-tomorrow-night-bright .ace_support.ace_constant,
  1403  .ace-tomorrow-night-bright .ace_variable.ace_parameter {
  1404    color: #E78C45
  1405  }
  1406  
  1407  .ace-tomorrow-night-bright .ace_constant.ace_other {
  1408    color: #EEEEEE
  1409  }
  1410  
  1411  .ace-tomorrow-night-bright .ace_invalid {
  1412    color: #CED2CF;
  1413    background-color: #DF5F5F
  1414  }
  1415  
  1416  .ace-tomorrow-night-bright .ace_invalid.ace_deprecated {
  1417    color: #CED2CF;
  1418    background-color: #B798BF
  1419  }
  1420  
  1421  .ace-tomorrow-night-bright .ace_fold {
  1422    background-color: #7AA6DA;
  1423    border-color: #DEDEDE
  1424  }
  1425  
  1426  .ace-tomorrow-night-bright .ace_entity.ace_name.ace_function,
  1427  .ace-tomorrow-night-bright .ace_support.ace_function,
  1428  .ace-tomorrow-night-bright .ace_variable {
  1429    color: #7AA6DA
  1430  }
  1431  
  1432  .ace-tomorrow-night-bright .ace_support.ace_class,
  1433  .ace-tomorrow-night-bright .ace_support.ace_type {
  1434    color: #E7C547
  1435  }
  1436  
  1437  .ace-tomorrow-night-bright .ace_heading,
  1438  .ace-tomorrow-night-bright .ace_markup.ace_heading,
  1439  .ace-tomorrow-night-bright .ace_string {
  1440    color: #B9CA4A
  1441  }
  1442  
  1443  .ace-tomorrow-night-bright .ace_entity.ace_name.ace_tag,
  1444  .ace-tomorrow-night-bright .ace_entity.ace_other.ace_attribute-name,
  1445  .ace-tomorrow-night-bright .ace_meta.ace_tag,
  1446  .ace-tomorrow-night-bright .ace_string.ace_regexp,
  1447  .ace-tomorrow-night-bright .ace_variable {
  1448    color: #D54E53
  1449  }
  1450  
  1451  .ace-tomorrow-night-bright .ace_comment {
  1452    color: #969896
  1453  }
  1454  
  1455  .ace-tomorrow-night-bright .ace_c9searchresults.ace_keyword {
  1456    color: #C2C280
  1457  }
  1458  
  1459  .ace-tomorrow-night-bright .ace_indent-guide {
  1460    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYFBXV/8PAAJoAXX4kT2EAAAAAElFTkSuQmCC) right repeat-y
  1461  }
  1462  
  1463  .ace-tomorrow-night-bright .ace_indent-guide-active {
  1464    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
  1465  }
  1466  `}),ace.define("ace/theme/tomorrow_night_bright",["require","exports","module","ace/theme/tomorrow_night_bright-css","ace/lib/dom"],function(r,o,n){o.isDark=!0,o.cssClass="ace-tomorrow-night-bright",o.cssText=r("./tomorrow_night_bright-css");var i=r("../lib/dom");i.importCssString(o.cssText,o.cssClass,!1)}),function(){ace.require(["ace/theme/tomorrow_night_bright"],function(r){e&&(e.exports=r)})}()})(JB);var Sre=JB.exports;const Tre=Gn(Sre);function eD(){const e=yre;return e.config.set("useStrictCSP",!0),e.config.set("loadWorkerFromBlob",!1),e.config.set("tabSize",2),[["ext/language_tools",wre],["mode/text",_re],["theme/dawn",Cre],["theme/tomorrow_night_bright",Tre]].forEach(([r,o])=>{e.config.setModuleUrl(`ace/${r}`,o)}),e}const Ere=(e,t)=>e&&!t?"SSH key was not verified.":null;function Av(e){const t={valid:!0},r=Ere(!0,e.sshKeyVerified);return r!==null&&(t.valid=!1,t.message=r),t}const Lre=e=>{const[t,r]=B.useState(0),[o,n]=B.useState(!1),[i,a]=B.useState(""),[c,l]=B.useState(""),[d,s]=B.useState(""),[u,h]=B.useState(!1),[f,p]=B.useState(!1),[g,v]=B.useState(void 0),[m,y]=B.useState(!0),[C,_]=B.useState(300),[k,b]=B.useState({wrapLines:!0,theme:"dawn"}),S=D=>{b(D)};B.useEffect(()=>{v(eD()),y(!1)},[]);function T(){n(!1),a(""),l(""),r(t+1)}const L=B.useCallback(({detail:D})=>{_(D.height)},[_]),I=B.useCallback(({detail:D})=>{D.value.length>80?h(!0):h(!1),s(D.value)},[]);function A(){s(""),e.setSshKeyContent(""),e.setSshKeyVerified(!1)}async function P(){p(!0);try{const E=await mre({content:d});if(E===null)throw new Error("Result is empty");if(E.success===!1)throw new Error("SSH key verification failed.");E.comment!==void 0&&e.setTitle(E.comment),E.fingerprint!==void 0&&e.setSshKeyFingerprint(E.fingerprint),E.fingerprint_md5!==void 0&&e.setSshKeyFingerprintMD5(E.fingerprint_md5),e.setSshKeyContent(d),n(!1),a(""),l(""),e.setSshKeyVerified(!0)}catch(D){n(!0),a(`${D.name}`),l(`${D.message}`),e.setSshKeyVerified(!1)}finally{p(!1)}}return w.jsxs(w.Fragment,{children:[o&&w.jsx(Fe,{children:w.jsx(En,{title:i,subtitle:c,action:w.jsx(ge,{onClick:T,children:"Refresh"})})}),!o&&w.jsx(Fe,{children:w.jsxs(re,{size:"l",direction:"vertical",children:[w.jsxs(J,{children:[w.jsx(Ge,{variant:"h3",actions:!e.sshKeyVerified&&w.jsxs(re,{direction:"horizontal",size:"l",children:[u&&w.jsx(ge,{iconName:"check",variant:"primary",loading:f,onClick:P,children:"Test"}),!f&&w.jsx(ge,{iconName:"close",onClick:A,children:"Clear"})]}),children:"SSH Key Verification"}),e.sshKeyVerified&&w.jsx(J,{children:w.jsxs(Le,{children:["The SSH key has been verified. Proceed to next steps. Click"," ",w.jsx(ge,{variant:"inline-link",onClick:A,children:"here"})," ","to clear the verification and verify again, if necessary."]})}),!e.sshKeyVerified&&w.jsx(Le,{children:'Paste your SSH key here. Once the editor detects enough content, the "Test" button appears. Click "Test".'})]}),!e.sshKeyVerified&&w.jsx(J,{children:w.jsx(re,{direction:"vertical",size:"s",children:w.jsx(VE,{ace:g,themes:{dark:["dawn"],light:["tomorrow_night_bright"]},language:"text",value:d,onEditorContentResize:L,onChange:I,preferences:k,loading:m,editorContentHeight:C,onPreferencesChange:({detail:D})=>S(D),i18nStrings:{loadingState:"Loading code editor",errorState:"There was an error loading the code editor.",errorStateRecovery:"Retry",editorGroupAriaLabel:"Code editor",statusBarGroupAriaLabel:"Status bar",cursorPosition:(D,E)=>`Ln ${D}, Col ${E}`,errorsTab:"Errors",warningsTab:"Warnings",preferencesButtonAriaLabel:"Preferences",paneCloseButtonAriaLabel:"Close",preferencesModalHeader:"Preferences",preferencesModalCancel:"Cancel",preferencesModalConfirm:"Confirm",preferencesModalWrapLines:"Wrap lines",preferencesModalTheme:"Theme",preferencesModalLightThemes:"Light themes",preferencesModalDarkThemes:"Dark themes"}})})})]})})]})};function Are(e){let t="You are required to address the error(s) to continue.";if(e.alertVisible){const r=Av(e);!r.valid&&r.message&&(t=r.message)}return{title:"Registration",description:"Complete the registration of SSH key",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Errors Detected",type:"warning",children:t}),w.jsx(Lre,{...e})]})}}const Bre=()=>{const e=At(),t=!0,[r,o]=B.useState(0),[n,i]=B.useState(!1),[a,c]=B.useState(!1),[l,d]=B.useState("SSH"+(Math.random()+1).toString(36).substring(4).toUpperCase()),[s,u]=B.useState(""),[h,f]=B.useState([]),[p,g]=B.useState(""),[v,m]=B.useState(!1),[y,C]=B.useState(""),[_,k]=B.useState(""),[b,S]=B.useState(!1),[T,L]=B.useState(""),[I,A]=B.useState([]),P={stepNumberLabel:V=>`Step ${V}`,collapsedStepsLabel:(V,q)=>`Step ${V} of ${q}`,skipToButtonLabel:V=>`Skip to ${V.title}`,navigationAriaLabel:"Steps",cancelButton:"Cancel",previousButton:"Previous",nextButton:"Next",submitButton:"Register",optional:"optional"},D=()=>{e("../ssh-keys")},E={alertVisible:n,setAlertVisible:i,setActiveStepIndex:o},R={title:l,setTitle:d,description:s,setDescription:u,sshKeyFingerprint:y,setSshKeyFingerprint:C,sshKeyFingerprintMD5:_,setSshKeyFingerprintMD5:k,labels:h,setLabels:f},$={sshKeyContent:p,setSshKeyContent:g,sshKeyVerified:v,setSshKeyVerified:m},N={tags:I,setTags:A},M={submitAlert:T,submitAlertVisible:b,setSubmitAlert:L,setSubmitAlertVisible:S,setActiveStepIndex:o},O=cre({...R,...E}),j=Are({...R,...$,...E}),z=dre({...N,...E}),F=pre({...R,...$,...N,...M,...E}),K=[O,j,z,F],U=V=>{if(console.log("Wizard Event",V),V.reason==="next"&&V.requestedStepIndex===1){console.log("Wizard Validation Event: validateMetadata");const q=Lv(R);if(console.log("Wizard Validation Result",q),!q.valid){i(!0),o(V.requestedStepIndex-1);return}}if(V.reason==="next"&&V.requestedStepIndex===2){console.log("Wizard Validation Event: validateRegistration");const q=Av($);if(console.log("Wizard Validation Result",q),!q.valid){i(!0),o(V.requestedStepIndex-1);return}}if(V.reason==="next"&&V.requestedStepIndex===3){console.log("Wizard Validation Event: validateTagging");const q=P1(N);if(console.log("Wizard Validation Result",q),!q.valid){i(!0),o(V.requestedStepIndex-1);return}}if(V.reason==="skip"){const q=Lv(R);if(console.log("Wizard Metadata Step Validation Result",q),!q.valid){console.log("Redirecting to Wizard Metadata Step",0),i(!0),o(0);return}const ee=Av($);if(console.log("Wizard Registration Step Validation Result",ee),!ee.valid){console.log("Redirecting to Wizard Registration Step",1),i(!0),o(1);return}const X=P1(N);if(console.log("Wizard Tagging Step Validation Result",X),!X.valid){console.log("Redirecting to Wizard Tagging Step",2),i(!0),o(2);return}}i(!1),o(V.requestedStepIndex)},Y=async()=>{c(!0);try{await gre({title:l,description:s,labels:h,tags:I,content:p})!==null?(console.log("Successfully completed registration"),e("../ssh-keys")):(console.log("Failed completing registration"),S(!0),L("Failed adding SSH key"))}catch(V){S(!0),L(`${V.name}: ${V.message}`)}finally{c(!1)}};return w.jsx(as,{i18nStrings:P,activeStepIndex:r,allowSkipTo:t,onNavigate:({detail:V})=>U(V),onCancel:()=>D(),onSubmit:Y,isLoadingNextStep:a,steps:K})},Dre=()=>{const e=At();return w.jsx(eo,{items:[{text:"Home",href:""},{text:"SSH keys",href:"ssh-keys/"},{text:"New Registeration",href:""}],onFollow:t=>{t.preventDefault(),e("/"+t.detail.href)}})},Rre=({navigation:e,navigationOpen:t,onNavigationChange:r,toolsOpen:o,onToolsChange:n})=>w.jsx(Fr,{navigationHide:!1,navigation:e,breadcrumbs:w.jsx(Dre,{}),navigationOpen:t,onNavigationChange:r,content:w.jsx(Bre,{}),contentType:"wizard",toolsHide:!1,tools:w.jsx(lre,{}),toolsWidth:500,toolsOpen:o,onToolsChange:n,ariaLabels:$r,headerSelector:"#top-nav"}),Ire=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})}),tD=(e,t)=>{if(e){const r=/^[A-Za-z0-9 ()@.\-_/,]+$/;if(!(t.length>=3&&t.length<=100)||!r.test(t))return"The title is non compliant. It should contain 3-100 characters and consists of A-Z, a-z, 0-9, @ characters only."}return null},rD=(e,t)=>{if(e)for(const r of t)switch(r){case"prod":break;case"test":break;case"dev":break;case"experimental":break;default:return"The labels contains invalid value."}return null};function Bv(e){const t={valid:!0},r=tD(!0,e.title);if(r!==null)return t.valid=!1,t.message=r,t;const o=rD(!0,e.labels);return o!==null&&(t.valid=!1,t.message=o),t}const Pre=e=>{const t=[{label:"Production",value:"prod",description:""},{label:"Test",value:"test",description:""},{label:"Development",value:"dev",description:""},{label:"Experimental",value:"experimental",description:"Reserved for experimental purposes"}],r=l=>{e.setTitle(l.value)},o=l=>{e.setDescription(l.value)},n=t.filter(function(l){if(e.labels.length<1)return!1;let d=!1;return e.labels.forEach(s=>{if(l.value===s){d=!0;return}}),d}),[i,a]=B.useState(n),c=l=>{a(l.selectedOptions),e.setLabels(l.selectedOptions.map(d=>`${d.value}`))};return w.jsx(Fe,{children:w.jsx(Fn,{children:w.jsxs(re,{direction:"vertical",size:"l",children:[w.jsx(nt,{label:"Title",errorText:tD(e.alertVisible,e.title),description:"Amend the title associated with the key.",constraintText:w.jsx("span",{children:w.jsx("i",{children:"If the key you upload has a comment, it will be used instead of the value provides in this input box."})}),children:w.jsx(jt,{inputMode:"text",value:e.title,spellcheck:!1,disableBrowserAutocorrect:!0,autoComplete:!1,onChange:({detail:l})=>r(l)})}),w.jsx(nt,{label:"Description",description:"Add optional description. This help search.",children:w.jsx(jt,{inputMode:"text",placeholder:"My GPG Key",value:e.description,spellcheck:!1,disableBrowserAutocorrect:!0,autoComplete:!1,onChange:({detail:l})=>o(l)})}),w.jsx(nt,{label:w.jsxs("span",{children:["Labels ",w.jsx("i",{children:"- optional"})," "]}),errorText:rD(e.alertVisible,e.labels),children:w.jsx(uu,{selectedOptions:i,filteringType:"auto",onChange:({detail:l})=>c(l),options:t,placeholder:"Open dropdown and choose Labels",selectedAriaLabel:"Selected Labels"})})]})})})};function $re(e){let t="You are required to address the error(s) to continue.";if(e.alertVisible){const r=Bv(e);!r.valid&&r.message&&(t=r.message)}return{title:"Configuration",description:"Provide the configuration for the registration of GPG key",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Errors Detected",type:"warning",children:t}),w.jsx(Pre,{...e})]})}}function $1(e){const t={valid:!0};for(const r of e.tags)if(r.key===""||r.value==="")return t.valid=!1,t.message="Invalid tag",t;return t}const Ore=e=>{const t=(r,o,n)=>{const i=[...e.tags],a=i[o];n?a.key=r.value:a.value=r.value,e.setTags(i)};return w.jsx(Fe,{children:w.jsx(re,{direction:"vertical",size:"l",children:w.jsx(Qc,{items:e.tags,addButtonText:"Add new tag",removeButtonText:"Remove",empty:"No tags associated with the registration.",onAddButtonClick:()=>{e.setTags([...e.tags,{key:"",value:""}])},onRemoveButtonClick:({detail:{itemIndex:r}})=>{const o=[...e.tags];o.splice(r,1),e.setTags(o)},definition:[{label:"Key",control:(r,o)=>w.jsx(jt,{value:r.key,placeholder:"Enter key",autoComplete:!1,spellcheck:!1,disableBrowserAutocorrect:!1,onChange:({detail:n})=>t(n,o,!0)},`tag-key-${o}`)},{label:"Value",control:(r,o)=>w.jsx(jt,{value:r.value,autoComplete:!1,spellcheck:!1,disableBrowserAutocorrect:!1,placeholder:"Enter value",onChange:({detail:n})=>t(n,o,!1)},`tag-value-${o}`)}]})})})};function Mre(e){return{title:"Add Tags",description:"Tag the registration to improve search quality",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Error(s) Detected",type:"warning",children:"Please review and fix the below validation errors."}),w.jsx(Ore,{...e})]}),isOptional:!0}}const Nre=e=>{if(e===void 0)return"Unknown";switch(e){case"prod":return"Production";case"test":return"Test";case"dev":return"Development";case"experimental":return"Experimental";default:return"Unknown"}},jre=e=>w.jsxs(re,{size:"l",children:[e.submitAlertVisible&&w.jsx(Gt,{dismissAriaLabel:"Close alert",dismissible:!0,statusIconAriaLabel:"Failure",type:"error",header:"Error",onDismiss:()=>e.setSubmitAlertVisible(!1),children:e.submitAlert.toString()}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(0),children:"Edit"}),children:"Step 1: Metadata"}),w.jsx(Fe,{children:w.jsxs(Er,{columns:2,variant:"text-grid",children:[w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Title"}),w.jsx("div",{children:e.title.length>0?e.title:w.jsx(Le,{children:w.jsx("i",{children:"Empty"})})})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Description"}),w.jsx("div",{children:e.description.length>0?e.description:w.jsx(Le,{children:w.jsx("i",{children:"Empty"})})})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Fingerprint"}),w.jsx(pr,{variant:"inline",textToCopy:e.gpgKeyFingerprint||"-",copyButtonAriaLabel:"Copy Fingerprint",copySuccessText:"Fingerprint copied",copyErrorText:"Failed to copy Fingerprint"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Fingerprint MD5"}),w.jsx(pr,{variant:"inline",textToCopy:e.gpgKeyFingerprintMD5||"-",copyButtonAriaLabel:"Copy MD5 Fingerprint",copySuccessText:"MD5 Fingerprint copied",copyErrorText:"Failed to copy MD5 Fingerprint"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Labels"}),w.jsx("div",{children:e.labels.length>0?w.jsx(re,{direction:"horizontal",size:"xs",children:e.labels.map(t=>w.jsx(Tn,{children:Nre(t.split(/\./).shift())},"labels-{x}"))}):w.jsx(Le,{children:w.jsx("i",{children:"None"})})})]})]})}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(1),children:"Edit"}),children:"Step 2: Registration"}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(2),children:"Edit"}),children:"Step 3: Tagging"}),w.jsx(Fe,{children:w.jsx(J,{children:e.tags.length>0?w.jsx(Er,{columns:2,children:e.tags.map(t=>w.jsxs(Le,{children:[w.jsx("strong",{children:t.key}),": ",t.value]},t.key))}):w.jsx(Le,{children:w.jsx("i",{children:"None"})})})})]});function Gre(e){return{title:"Review and Create",description:"Review the summary of the GPG key and, if necessary, make changes",content:w.jsx(jre,{...e})}}const zre=e=>(e.kind="add_user_gpg_key",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Add GPG key Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t})),Fre=e=>(e.kind="test_user_gpg_key",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Test GPG key Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t})),Hre=(e,t)=>e&&!t?"GPG key was not verified.":null;function Dv(e){const t={valid:!0},r=Hre(!0,e.gpgKeyVerified);return r!==null&&(t.valid=!1,t.message=r),t}const Wre=e=>{const[t,r]=B.useState(0),[o,n]=B.useState(!1),[i,a]=B.useState(""),[c,l]=B.useState(""),[d,s]=B.useState(""),[u,h]=B.useState(!1),[f,p]=B.useState(!1),[g,v]=B.useState(void 0),[m,y]=B.useState(!0),[C,_]=B.useState(300),[k,b]=B.useState({wrapLines:!0,theme:"dawn"}),S=D=>{b(D)};B.useEffect(()=>{v(eD()),y(!1)},[]);function T(){n(!1),a(""),l(""),r(t+1)}const L=B.useCallback(({detail:D})=>{_(D.height)},[_]),I=B.useCallback(({detail:D})=>{D.value.length>80?h(!0):h(!1),s(D.value)},[]);function A(){s(""),e.setGpgKeyContent(""),e.setGpgKeyVerified(!1)}async function P(){p(!0);try{const E=await Fre({content:d});if(E===null)throw new Error("Result is empty");if(E.success===!1)throw new Error("GPG key verification failed.");E.comment!==void 0&&e.setTitle(E.comment),E.fingerprint!==void 0&&e.setGpgKeyFingerprint(E.fingerprint),E.fingerprint_md5!==void 0&&e.setGpgKeyFingerprintMD5(E.fingerprint_md5),e.setGpgKeyContent(d),n(!1),a(""),l(""),e.setGpgKeyVerified(!0)}catch(D){n(!0),a(`${D.name}`),l(`${D.message}`),e.setGpgKeyVerified(!1)}finally{p(!1)}}return w.jsxs(w.Fragment,{children:[o&&w.jsx(Fe,{children:w.jsx(En,{title:i,subtitle:c,action:w.jsx(ge,{onClick:T,children:"Refresh"})})}),!o&&w.jsx(Fe,{children:w.jsxs(re,{size:"l",direction:"vertical",children:[w.jsxs(J,{children:[w.jsx(Ge,{variant:"h3",actions:!e.gpgKeyVerified&&w.jsxs(re,{direction:"horizontal",size:"l",children:[u&&w.jsx(ge,{iconName:"check",variant:"primary",loading:f,onClick:P,children:"Test"}),!f&&w.jsx(ge,{iconName:"close",onClick:A,children:"Clear"})]}),children:"GPG Key Verification"}),e.gpgKeyVerified&&w.jsx(J,{children:w.jsxs(Le,{children:["The GPG key has been verified. Proceed to next steps. Click"," ",w.jsx(ge,{variant:"inline-link",onClick:A,children:"here"})," ","to clear the verification and verify again, if necessary."]})}),!e.gpgKeyVerified&&w.jsx(Le,{children:'Paste your GPG key here. Once the editor detects enough content, the "Test" button appears. Click "Test".'})]}),!e.gpgKeyVerified&&w.jsx(J,{children:w.jsx(re,{direction:"vertical",size:"s",children:w.jsx(VE,{ace:g,themes:{dark:["dawn"],light:["tomorrow_night_bright"]},language:"text",value:d,onEditorContentResize:L,onChange:I,preferences:k,loading:m,editorContentHeight:C,onPreferencesChange:({detail:D})=>S(D),i18nStrings:{loadingState:"Loading code editor",errorState:"There was an error loading the code editor.",errorStateRecovery:"Retry",editorGroupAriaLabel:"Code editor",statusBarGroupAriaLabel:"Status bar",cursorPosition:(D,E)=>`Ln ${D}, Col ${E}`,errorsTab:"Errors",warningsTab:"Warnings",preferencesButtonAriaLabel:"Preferences",paneCloseButtonAriaLabel:"Close",preferencesModalHeader:"Preferences",preferencesModalCancel:"Cancel",preferencesModalConfirm:"Confirm",preferencesModalWrapLines:"Wrap lines",preferencesModalTheme:"Theme",preferencesModalLightThemes:"Light themes",preferencesModalDarkThemes:"Dark themes"}})})})]})})]})};function Vre(e){let t="You are required to address the error(s) to continue.";if(e.alertVisible){const r=Dv(e);!r.valid&&r.message&&(t=r.message)}return{title:"Registration",description:"Complete the registration of GPG key",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Errors Detected",type:"warning",children:t}),w.jsx(Wre,{...e})]})}}const Ure=()=>{const e=At(),t=!0,[r,o]=B.useState(0),[n,i]=B.useState(!1),[a,c]=B.useState(!1),[l,d]=B.useState("GPG"+(Math.random()+1).toString(36).substring(4).toUpperCase()),[s,u]=B.useState(""),[h,f]=B.useState([]),[p,g]=B.useState(""),[v,m]=B.useState(!1),[y,C]=B.useState(""),[_,k]=B.useState(""),[b,S]=B.useState(!1),[T,L]=B.useState(""),[I,A]=B.useState([]),P={stepNumberLabel:V=>`Step ${V}`,collapsedStepsLabel:(V,q)=>`Step ${V} of ${q}`,skipToButtonLabel:V=>`Skip to ${V.title}`,navigationAriaLabel:"Steps",cancelButton:"Cancel",previousButton:"Previous",nextButton:"Next",submitButton:"Register",optional:"optional"},D=()=>{e("../gpg-keys")},E={alertVisible:n,setAlertVisible:i,setActiveStepIndex:o},R={title:l,setTitle:d,description:s,setDescription:u,gpgKeyFingerprint:y,setGpgKeyFingerprint:C,gpgKeyFingerprintMD5:_,setGpgKeyFingerprintMD5:k,labels:h,setLabels:f},$={gpgKeyContent:p,setGpgKeyContent:g,gpgKeyVerified:v,setGpgKeyVerified:m},N={tags:I,setTags:A},M={submitAlert:T,submitAlertVisible:b,setSubmitAlert:L,setSubmitAlertVisible:S,setActiveStepIndex:o},O=$re({...R,...E}),j=Vre({...R,...$,...E}),z=Mre({...N,...E}),F=Gre({...R,...$,...N,...M,...E}),K=[O,j,z,F],U=V=>{if(console.log("Wizard Event",V),V.reason==="next"&&V.requestedStepIndex===1){console.log("Wizard Validation Event: validateMetadata");const q=Bv(R);if(console.log("Wizard Validation Result",q),!q.valid){i(!0),o(V.requestedStepIndex-1);return}}if(V.reason==="next"&&V.requestedStepIndex===2){console.log("Wizard Validation Event: validateRegistration");const q=Dv($);if(console.log("Wizard Validation Result",q),!q.valid){i(!0),o(V.requestedStepIndex-1);return}}if(V.reason==="next"&&V.requestedStepIndex===3){console.log("Wizard Validation Event: validateTagging");const q=$1(N);if(console.log("Wizard Validation Result",q),!q.valid){i(!0),o(V.requestedStepIndex-1);return}}if(V.reason==="skip"){const q=Bv(R);if(console.log("Wizard Metadata Step Validation Result",q),!q.valid){console.log("Redirecting to Wizard Metadata Step",0),i(!0),o(0);return}const ee=Dv($);if(console.log("Wizard Registration Step Validation Result",ee),!ee.valid){console.log("Redirecting to Wizard Registration Step",1),i(!0),o(1);return}const X=$1(N);if(console.log("Wizard Tagging Step Validation Result",X),!X.valid){console.log("Redirecting to Wizard Tagging Step",2),i(!0),o(2);return}}i(!1),o(V.requestedStepIndex)},Y=async()=>{c(!0);try{await zre({title:l,description:s,labels:h,tags:I,content:p})!==null?(console.log("Successfully completed registration"),e("../gpg-keys")):(console.log("Failed completing registration"),S(!0),L("Failed adding GPG key"))}catch(V){S(!0),L(`${V.name}: ${V.message}`)}finally{c(!1)}};return w.jsx(as,{i18nStrings:P,activeStepIndex:r,allowSkipTo:t,onNavigate:({detail:V})=>U(V),onCancel:()=>D(),onSubmit:Y,isLoadingNextStep:a,steps:K})},Kre=()=>{const e=At();return w.jsx(eo,{items:[{text:"Home",href:""},{text:"GPG keys",href:"gpg-keys/"},{text:"New Registeration",href:""}],onFollow:t=>{t.preventDefault(),e("/"+t.detail.href)}})},qre=({navigation:e,navigationOpen:t,onNavigationChange:r,toolsOpen:o,onToolsChange:n})=>w.jsx(Fr,{navigationHide:!1,navigation:e,breadcrumbs:w.jsx(Kre,{}),navigationOpen:t,onNavigationChange:r,content:w.jsx(Ure,{}),contentType:"wizard",toolsHide:!1,tools:w.jsx(Ire,{}),toolsWidth:500,toolsOpen:o,onToolsChange:n,ariaLabels:$r,headerSelector:"#top-nav"}),Yre=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})}),oD=(e,t)=>{if(e){const r=/^[A-Za-z0-9]+$/;if(!(t.length>=3&&t.length<=50)||!r.test(t))return"The title is non compliant. It should contain 3-50 characters and consists of A-Z, a-z, and 0-9 characters only."}return null},nD=(e,t)=>{if(e)for(const r of t)switch(r){case"prod":break;case"test":break;case"dev":break;case"experimental":break;default:return"The labels contains invalid value."}return null};function Rv(e){const t={valid:!0},r=oD(!0,e.title);if(r!==null)return t.valid=!1,t.message=r,t;const o=nD(!0,e.labels);return o!==null&&(t.valid=!1,t.message=o),t}const Xre=e=>{const t=[{label:"Production",value:"prod",description:""},{label:"Test",value:"test",description:""},{label:"Development",value:"dev",description:""},{label:"Experimental",value:"experimental",description:"Reserved for experimental purposes"}],r=l=>{e.setTitle(l.value)},o=l=>{e.setDescription(l.value)},n=t.filter(function(l){if(e.labels.length<1)return!1;let d=!1;return e.labels.forEach(s=>{if(l.value===s){d=!0;return}}),d}),[i,a]=B.useState(n),c=l=>{a(l.selectedOptions),e.setLabels(l.selectedOptions.map(d=>`${d.value}`))};return w.jsx(Fe,{children:w.jsx(Fn,{children:w.jsxs(re,{direction:"vertical",size:"l",children:[w.jsx(nt,{label:"Title",errorText:oD(e.alertVisible,e.title),description:"Amend the label and comment associated with the U2F token.",children:w.jsx(jt,{inputMode:"text",spellcheck:!1,disableBrowserAutocorrect:!0,autoComplete:!1,value:e.title,onChange:({detail:l})=>r(l)})}),w.jsx(nt,{label:"Description",description:"Add optional description. This help search.",children:w.jsx(jt,{inputMode:"text",spellcheck:!1,disableBrowserAutocorrect:!0,autoComplete:!1,placeholder:"My Hardware Token",value:e.description,onChange:({detail:l})=>o(l)})}),w.jsx(nt,{label:w.jsxs("span",{children:["Labels ",w.jsx("i",{children:"- optional"})," "]}),errorText:nD(e.alertVisible,e.labels),children:w.jsx(uu,{selectedOptions:i,filteringType:"auto",onChange:({detail:l})=>c(l),options:t,placeholder:"Open dropdown and choose Labels",selectedAriaLabel:"Selected Labels"})})]})})})};function Qre(e){let t="You are required to address the error(s) to continue.";if(e.alertVisible){const r=Rv(e);!r.valid&&r.message&&(t=r.message)}return{title:"Configuration",description:"Provide the configuration for the registration of U2F token",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Errors Detected",type:"warning",children:t}),w.jsx(Xre,{...e})]})}}function O1(e){const t={valid:!0};for(const r of e.tags)if(r.key===""||r.value==="")return t.valid=!1,t.message="Invalid tag",t;return t}const Zre=e=>{const t=(r,o,n)=>{const i=[...e.tags],a=i[o];n?a.key=r.value:a.value=r.value,e.setTags(i)};return w.jsx(Fe,{children:w.jsx(re,{direction:"vertical",size:"l",children:w.jsx(Qc,{items:e.tags,addButtonText:"Add new tag",removeButtonText:"Remove",empty:"No tags associated with the registration.",onAddButtonClick:()=>{e.setTags([...e.tags,{key:"",value:""}])},onRemoveButtonClick:({detail:{itemIndex:r}})=>{const o=[...e.tags];o.splice(r,1),e.setTags(o)},definition:[{label:"Key",control:(r,o)=>w.jsx(jt,{value:r.key,placeholder:"Enter key",autoComplete:!1,spellcheck:!1,disableBrowserAutocorrect:!1,onChange:({detail:n})=>t(n,o,!0)},`tag-key-${o}`)},{label:"Value",control:(r,o)=>w.jsx(jt,{value:r.value,autoComplete:!1,spellcheck:!1,disableBrowserAutocorrect:!1,placeholder:"Enter value",onChange:({detail:n})=>t(n,o,!1)},`tag-value-${o}`)}]})})})};function Jre(e){return{title:"Add Tags",description:"Tag the registration to improve search quality",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Error(s) Detected",type:"warning",children:"Please review and fix the below validation errors."}),w.jsx(Zre,{...e})]}),isOptional:!0}}const eoe=e=>{if(e===void 0)return"Unknown";switch(e){case"prod":return"Production";case"test":return"Test";case"dev":return"Development";case"experimental":return"Experimental";default:return"Unknown"}},toe=e=>{var t,r,o,n;return w.jsxs(re,{size:"l",children:[e.submitAlertVisible&&w.jsx(Gt,{dismissAriaLabel:"Close alert",dismissible:!0,statusIconAriaLabel:"Failure",type:"error",header:"Error",onDismiss:()=>e.setSubmitAlertVisible(!1),children:e.submitAlert.toString()}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(0),children:"Edit"}),children:"Step 1: Metadata"}),w.jsx(Fe,{children:w.jsxs(Er,{columns:2,variant:"text-grid",children:[w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Title"}),w.jsx("div",{children:e.title.length>0?e.title:w.jsx(Le,{children:w.jsx("i",{children:"Empty"})})})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Description"}),w.jsx("div",{children:e.description.length>0?e.description:w.jsx(Le,{children:w.jsx("i",{children:"Empty"})})})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"RP Name"}),w.jsx(Le,{children:((t=e.tokenRegistrationParameters)==null?void 0:t.rp_name)||"Empty"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"User Display Name"}),w.jsx(Le,{children:((r=e.tokenRegistrationParameters)==null?void 0:r.user_display_name)||"Empty"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"User ID"}),w.jsx(Le,{children:((o=e.tokenRegistrationParameters)==null?void 0:o.user_id)||"Empty"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"User Name"}),w.jsx(Le,{children:((n=e.tokenRegistrationParameters)==null?void 0:n.user_name)||"Empty"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Labels"}),w.jsx("div",{children:e.labels.length>0?w.jsx(re,{direction:"horizontal",size:"xs",children:e.labels.map(i=>w.jsx(Tn,{children:eoe(i.split(/\./).shift())},"labels-{x}"))}):w.jsx(Le,{children:w.jsx("i",{children:"None"})})})]})]})}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(1),children:"Edit"}),children:"Step 2: Registration"}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(2),children:"Edit"}),children:"Step 3: Tagging"}),w.jsx(Fe,{children:w.jsx(J,{children:e.tags.length>0?w.jsx(Er,{columns:2,children:e.tags.map(i=>w.jsxs(Le,{children:[w.jsx("strong",{children:i.key}),": ",i.value]},i.key))}):w.jsx(Le,{children:w.jsx("i",{children:"None"})})})})]})};function roe(e){return{title:"Review and Create",description:"Review the summary of the registeration with MFA Authenticator application and, if necessary, make changes",content:w.jsx(toe,{...e})}}const ooe=e=>(e.kind="add_user_u2f_token",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Add U2F Authenticator Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t})),noe=()=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"fetch_user_u2f_reg_params"}}).then(e=>(console.log("Fetch U2F Registration Parameters Response",e),e.data.entry!==void 0?e.data.entry:null)).catch(e=>{var t,r,o;if(((t=e==null?void 0:e.response)==null?void 0:t.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((r=e==null?void 0:e.response)==null?void 0:r.data,"message")){const n=(o=e==null?void 0:e.response)==null?void 0:o.data;throw new Error(n.message)}throw e}),ioe=e=>(e.kind="fetch_user_u2f_ver_params",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Fetch U2F Verification Parameters Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t})),aoe=e=>(e.kind="test_user_u2f_reg",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Test U2F Authenticator Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t})),loe=(e,t)=>e&&!t?"Token was not verified.":null,soe=(e,t)=>e&&t===""?"Token registration is empty.":null;function Iv(e){const t={valid:!0},r=loe(!0,e.tokenVerified);if(r!==null)return t.valid=!1,t.message=r,t;const o=soe(!0,e.tokenRegistration);return o!==null&&(t.valid=!1,t.message=o),t}const coe=e=>{const[t,r]=B.useState(null),[o,n]=B.useState(!1),[i,a]=B.useState(!1),[c,l]=B.useState(""),[d,s]=B.useState(!1),[u,h]=B.useState(!0),[f,p]=B.useState(0),[g,v]=B.useState(!1),[m,y]=B.useState(""),[C,_]=B.useState("");function k(){p(f+1)}function b(){r(null),l(""),n(!1),s(!1),a(!1),e.setTokenVerified(!1),k()}async function S(){if(console.log("register token",t),t===null){v(!0),y("Token Registration"),_("Token registration parameters are empty"),n(!1),e.setTokenVerified(!1);return}a(!0);try{let L;switch(t.attestation){case"direct":L="direct";break;case"enterprise":L="enterprise";break;case"indirect":L="indirect";break;case"none":L="none";break;default:throw`AttestationConveyancePreference ${t.attestation} is unsupported`}let I;switch(t.user_verification){case"discouraged":I="discouraged";break;case"preferred":I="preferred";break;case"required":I="required";break;default:throw`UserVerificationRequirement ${t.attestation} is unsupported`}const A={challenge:nc(t.challenge),rp:{name:t.rp_name},user:{id:ate(t.user_id),name:t.user_name,displayName:t.user_display_name},authenticatorSelection:{userVerification:I},attestation:L,pubKeyCredParams:[{type:"public-key",alg:-7},{type:"public-key",alg:-8},{type:"public-key",alg:-257}]};if(!("credentials"in navigator)){v(!0),y("Token Registration"),_("Navigator credentials not found"),n(!1),e.setTokenVerified(!1);return}const P=await navigator.credentials.create({publicKey:A});if(P===null){v(!0),y("Token Registration"),_("Resulting navigator credentials not found"),n(!1),e.setTokenVerified(!1);return}const D=P;console.log("result",D);const E=hte(D);if(console.log("createResponse",E),E.clientData.challenge!==t.challenge){v(!0),y("Token Registration"),_(`Challenge mismatch ${E.clientData.challenge} (client) and ${t.challenge} (server)`),n(!1),e.setTokenVerified(!1);return}console.log(E.clientData.challenge,"/",t.challenge),console.log("webauthn_register",btoa(JSON.stringify(E))),l(btoa(JSON.stringify(E))),s(!0)}catch(L){v(!0),y("Token Registration"),_(`Navigator Credentials Error: ${L}`),n(!1),e.setTokenVerified(!1);return}finally{a(!1)}}async function T(){try{if(c==="")throw new Error("Token validation payload is empty");if(t===null)throw new Error("Token registration parameters are empty");const L={webauthn_register:c,webauthn_challenge:t==null?void 0:t.challenge},I=await ioe(L);if(I===null)throw new Error("Token verification parameters are empty");if(I.credentials.length<1)throw new Error("Token verification credentials are empty");const A=[];for(const z of I.credentials){const F=[];for(let Y of z.transports)switch(Y=Y.replaceAll('"',""),Y){case"ble":F.push("ble");break;case"hybrid":F.push("hybrid");break;case"internal":F.push("internal");break;case"nfc":F.push("nfc");break;case"usb":F.push("usb");break;default:throw`AuthenticatorTransport ${Y} is unsupported`}let K;switch(z.type){case"public-key":K="public-key";break;default:throw`PublicKeyCredentialType ${z.type} is unsupported`}const U={id:nc(z.id),type:K,transports:F};A.push(U)}if(A.length<1)throw new Error("Token verification credentials are empty");let P;switch(I.user_verification){case"discouraged":P="discouraged";break;case"preferred":P="preferred";break;case"required":P="required";break;default:throw`UserVerificationRequirement ${I.user_verification} is unsupported`}const E={publicKey:{challenge:nc(I.challenge),userVerification:P,allowCredentials:A,timeout:6e4}},R=await navigator.credentials.get(E);if(R===null){v(!0),y("Token Verification"),_("Navigator failed to verify authentication credentials"),e.setTokenVerified(!1);return}const $=R;console.log($);const N=VB($),O={webauthn_request:btoa(JSON.stringify(N)),webauthn_register:c,webauthn_challenge:t==null?void 0:t.challenge},j=await aoe(O);if(j===null)throw new Error("Result is empty");if(j.success===!1)throw new Error("Token verification failed.");v(!1),y(""),_(""),n(!0),e.setTokenRegistration(c),e.setTokenRegistrationParameters(t),e.setTokenVerified(!0)}catch(L){v(!0),y(`${L.name}`),_(`${L.message}`),e.setTokenVerified(!1)}}return B.useEffect(()=>{(async()=>{console.log("loading registration parameters"),h(!0);try{const I=await noe();r(I),v(!1),y(""),_(""),console.log("fetched data",I)}catch(I){v(!0),y(`${I.name}`),_(`${I.message}`)}finally{h(!1)}})()},[f]),w.jsx(w.Fragment,{children:u?w.jsx(hi,{}):w.jsxs(w.Fragment,{children:[g&&w.jsx(Fe,{children:w.jsx(En,{title:m,subtitle:C,action:w.jsx(ge,{onClick:k,children:"Clear"})})}),!g&&w.jsx(Fe,{children:w.jsxs(re,{size:"l",direction:"vertical",children:[t&&t&&!o&&!o&&!e.tokenVerified&&w.jsxs(re,{direction:"vertical",size:"xxs",children:[w.jsxs(J,{children:[!i&&!d&&!e.tokenVerified&&w.jsxs(Le,{children:[w.jsx("h3",{children:"Token Registration"}),w.jsx("p",{children:'Please insert your U2F (USB, NFC, or Bluetooth) Security Key, e.g. Yubikey. Then, please click "Register" button below.'})]}),i&&!d&&!e.tokenVerified&&w.jsxs(Le,{children:[w.jsx("h3",{children:"Token Registration"}),w.jsx("p",{children:"Registration in progress."})]}),d&&!e.tokenVerified&&w.jsxs(Le,{children:[w.jsx("h3",{children:"Token Verification"}),w.jsx("p",{children:'Now, please click "Verify" button below to check whether the token works.'})]})]}),!i&&!d&&!e.tokenVerified&&w.jsx(J,{padding:{top:"s"},children:w.jsx(ge,{variant:"primary",onClick:S,children:"Register"})}),d&&!e.tokenVerified&&w.jsx(J,{padding:{top:"s"},children:w.jsx(ge,{variant:"primary",onClick:T,children:"Verify"})})]}),e.tokenVerified&&w.jsxs(J,{children:[w.jsx(Ge,{variant:"h3",children:"Token Verification"}),w.jsxs(Le,{children:["The U2F token has been verified. Proceed to next steps. Click"," ",w.jsx(ge,{variant:"inline-link",onClick:b,children:"here"})," ","to clear the verification and verify again, if necessary."]})]}),o&&!e.tokenVerified&&w.jsxs(J,{children:[w.jsx(Ge,{variant:"h3",children:"Token Verification"}),w.jsxs(Le,{children:["Enter the authentication code you see in the app for ",w.jsx("strong",{children:e.title}),' and click "Test".']})]})]})})]})})};function uoe(e){let t="You are required to address the error(s) to continue.";if(e.alertVisible){const r=Iv(e);!r.valid&&r.message&&(t=r.message)}return{title:"Registration",description:"Complete the registration of U2F token",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Errors Detected",type:"warning",children:t}),w.jsx(coe,{...e})]})}}const doe=()=>{const e=At(),t=!0,[r,o]=B.useState(0),[n,i]=B.useState(!1),[a,c]=B.useState(!1),[l,d]=B.useState("AC"+(Math.random()+1).toString(36).substring(4).toUpperCase()),[s,u]=B.useState(""),[h,f]=B.useState([]),[p,g]=B.useState(!1),[v,m]=B.useState(""),[y,C]=B.useState(null),[_,k]=B.useState(!1),[b,S]=B.useState(""),[T,L]=B.useState([]),I={stepNumberLabel:U=>`Step ${U}`,collapsedStepsLabel:(U,Y)=>`Step ${U} of ${Y}`,skipToButtonLabel:U=>`Skip to ${U.title}`,navigationAriaLabel:"Steps",cancelButton:"Cancel",previousButton:"Previous",nextButton:"Next",submitButton:"Register",optional:"optional"},A=()=>{e("../multi-factor-authenticators")},P={alertVisible:n,setAlertVisible:i,setActiveStepIndex:o},D={title:l,setTitle:d,description:s,setDescription:u,labels:h,setLabels:f},E={tokenRegistration:v,setTokenRegistration:m,tokenRegistrationParameters:y,setTokenRegistrationParameters:C,tokenVerified:p,setTokenVerified:g},R={tags:T,setTags:L},$={submitAlert:b,submitAlertVisible:_,setSubmitAlert:S,setSubmitAlertVisible:k,setActiveStepIndex:o},N=Qre({...D,...P}),M=uoe({...D,...E,...P}),O=Jre({...R,...P}),j=roe({...D,...E,...R,...$,...P}),z=[N,M,O,j],F=U=>{if(console.log("Wizard Event",U),U.reason==="next"&&U.requestedStepIndex===1){console.log("Wizard Validation Event: validateMetadata");const Y=Rv(D);if(console.log("Wizard Validation Result",Y),!Y.valid){i(!0),o(U.requestedStepIndex-1);return}}if(U.reason==="next"&&U.requestedStepIndex===2){console.log("Wizard Validation Event: validateRegistration");const Y=Iv(E);if(console.log("Wizard Validation Result",Y),!Y.valid){i(!0),o(U.requestedStepIndex-1);return}}if(U.reason==="next"&&U.requestedStepIndex===3){console.log("Wizard Validation Event: validateTagging");const Y=O1(R);if(console.log("Wizard Validation Result",Y),!Y.valid){i(!0),o(U.requestedStepIndex-1);return}}if(U.reason==="skip"){const Y=Rv(D);if(console.log("Wizard Metadata Step Validation Result",Y),!Y.valid){console.log("Redirecting to Wizard Metadata Step",0),i(!0),o(0);return}const V=Iv(E);if(console.log("Wizard Registration Step Validation Result",V),!V.valid){console.log("Redirecting to Wizard Registration Step",1),i(!0),o(1);return}const q=O1(R);if(console.log("Wizard Tagging Step Validation Result",q),!q.valid){console.log("Redirecting to Wizard Tagging Step",2),i(!0),o(2);return}}i(!1),o(U.requestedStepIndex)},K=async()=>{c(!0);try{const U={title:l,description:s,webauthn_register:v,webauthn_challenge:(y==null?void 0:y.challenge)||"",labels:h,tags:T};await ooe(U)!==null?(console.log("Successfully completed registration"),e("../multi-factor-authenticators")):(console.log("Failed completing registration"),k(!0),S("Failed registering with MFA Authenticator application"))}catch(U){k(!0),S(`${U.name}: ${U.message}`)}finally{c(!1)}};return w.jsx(as,{i18nStrings:I,activeStepIndex:r,allowSkipTo:t,onNavigate:({detail:U})=>F(U),onCancel:()=>A(),onSubmit:K,isLoadingNextStep:a,steps:z})},hoe=()=>{const e=At();return w.jsx(eo,{items:[{text:"Home",href:""},{text:"Multi Factor Authenticators",href:"multi-factor-authenticators/"},{text:"New Registeration",href:""}],onFollow:t=>{t.preventDefault(),e("/"+t.detail.href)}})},foe=({navigation:e,navigationOpen:t,onNavigationChange:r,toolsOpen:o,onToolsChange:n})=>w.jsx(Fr,{navigationHide:!1,navigation:e,breadcrumbs:w.jsx(hoe,{}),navigationOpen:t,onNavigationChange:r,content:w.jsx(doe,{}),contentType:"wizard",toolsHide:!1,tools:w.jsx(Yre,{}),toolsWidth:500,toolsOpen:o,onToolsChange:n,ariaLabels:$r,headerSelector:"#top-nav"}),poe=()=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"fetch_user_info"}}).then(e=>(console.log("Fetch User Info Response",e),e.data.entry!==void 0?e.data.entry:null)).catch(e=>{var t,r,o;if(((t=e==null?void 0:e.response)==null?void 0:t.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((r=e==null?void 0:e.response)==null?void 0:r.data,"message")){const n=(o=e==null?void 0:e.response)==null?void 0:o.data;throw new Error(n.message)}throw e});function goe(e,t){e.displayName=t}const iD="code-view",Jy="3.0.0 (448fb6c8)";function moe(e,t){CS(e,{packageSource:iD,packageVersion:Jy,theme:"vr"},t)}SS(iD,Jy);function voe(e,t){return moe(e,t),{__internalRootRef:xS(e,Jy)}}function yoe(e){const t={};return Object.keys(e).forEach(r=>{r.startsWith("data-")&&(t[r]=e[r])}),t}const yi={root:"awsui_root_1pkji_128fv_1","root-with-numbers":"awsui_root-with-numbers_1pkji_128fv_4",code:"awsui_code_1pkji_128fv_9","code-with-line-numbers":"awsui_code-with-line-numbers_1pkji_128fv_25","code-with-actions":"awsui_code-with-actions_1pkji_128fv_30","line-numbers":"awsui_line-numbers_1pkji_128fv_36",actions:"awsui_actions_1pkji_128fv_54"},M1={light:"ace-cloud_editor",dark:"ace-cloud_editor_dark"};function boe(e){return e.split(`
  1467  `).map((t,r)=>r+1)}function woe({content:e,actions:t,lineNumbers:r,highlight:o,ariaLabel:n,ariaLabelledby:i,__internalRootRef:a=null,...c}){const l=o?o(e):w.jsx("span",{children:e}),d=yoe(c),s=B.useRef(null),u=tf(s)==="dark",h=n||i?{role:"region"}:{};return w.jsx("div",{className:yi.root,...h,...d,"aria-label":n,"aria-labelledby":i,ref:a,children:w.jsxs("div",{className:W(r&&yi["root-with-numbers"],t&&yi["root-with-actions"]),children:[w.jsx(J,{color:"text-status-inactive",fontSize:"body-m",children:r&&w.jsx("div",{className:yi["line-numbers"],"aria-hidden":!0,children:boe(e).map(f=>w.jsx("span",{children:f},f))})}),w.jsx("pre",{ref:s,className:W(u?M1.dark:M1.light,yi.code,r&&yi["code-with-line-numbers"],t&&yi["code-with-actions"]),children:w.jsx(J,{color:"inherit",variant:"code",fontSize:"body-m",children:l})}),t&&w.jsx("div",{className:yi.actions,children:t})]})})}function Pc(e){const t=voe("CodeView",{props:{lineNumbers:e.lineNumbers}});return w.jsx(woe,{...e,...t})}goe(Pc,"CodeView");var aD={};(function(e){e.inherits=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},e.mixin=function(t,r){for(var o in r)t[o]=r[o];return t},e.implement=function(t,r){e.mixin(t,r)}})(aD);var lD={},sD={};sD.deepCopy=function e(t){if(typeof t!="object"||!t)return t;var r;if(Array.isArray(t)){r=[];for(let o=0;o<t.length;o++)r[o]=e(t[o]);return r}if(Object.prototype.toString.call(t)!=="[object Object]")return t;r={};for(let o in t)r[o]=e(t[o]);return r};const xoe=sD.deepCopy;var eb;eb=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(r,o){if(!o){for(var n in r)this.$rules[n]=r[n];return}for(var n in r){for(var i=r[n],a=0;a<i.length;a++){var c=i[a];(c.next||c.onMatch)&&(typeof c.next=="string"&&c.next.indexOf(o)!==0&&(c.next=o+c.next),c.nextState&&c.nextState.indexOf(o)!==0&&(c.nextState=o+c.nextState))}this.$rules[o+n]=i}},this.getRules=function(){return this.$rules},this.embedRules=function(r,o,n,i,a){var c=typeof r=="function"?new r().getRules():r;if(i)for(var l=0;l<i.length;l++)i[l]=o+i[l];else{i=[];for(var d in c)i.push(o+d)}if(this.addRules(c,o),n)for(var s=Array.prototype[a?"push":"unshift"],l=0;l<i.length;l++)s.apply(this.$rules[i[l]],xoe(n));this.$embeds||(this.$embeds=[]),this.$embeds.push(o)},this.getEmbeds=function(){return this.$embeds};var e=function(r,o){return(r!="start"||o.length)&&o.unshift(this.nextState,r),this.nextState},t=function(r,o){return o.shift(),o.shift()||"start"};this.normalizeRules=function(){var r=0,o=this.$rules;function n(i){var a=o[i];a.processed=!0;for(var c=0;c<a.length;c++){var l=a[c],d=null;Array.isArray(l)&&(d=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var s=l.next||l.push;if(s&&Array.isArray(s)){var u=l.stateName;u||(u=l.token,typeof u!="string"&&(u=u[0]||""),o[u]&&(u+=r++)),o[u]=s,l.next=u,n(u)}else s=="pop"&&(l.next=t);if(l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var h in l.rules)o[h]?o[h].push&&o[h].push.apply(o[h],l.rules[h]):o[h]=l.rules[h];var f=typeof l=="string"?l:l.include;if(f&&(f==="$self"&&(f="start"),Array.isArray(f)?d=f.map(function(g){return o[g]}):d=o[f]),d){var p=[c,1].concat(d);l.noEscape&&(p=p.filter(function(g){return!g.next})),a.splice.apply(a,p),c--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}Object.keys(o).forEach(n,this)},this.createKeywordMapper=function(r,o,n,i){var a=Object.create(null);return this.$keywordList=[],Object.keys(r).forEach(function(c){for(var l=r[c],d=l.split(i||"|"),s=d.length;s--;){var u=d[s];this.$keywordList.push(u),n&&(u=u.toLowerCase()),a[u]=c}},this),r=null,n?function(c){return a[c.toLowerCase()]||o}:function(c){return a[c]||o}},this.getKeywords=function(){return this.$keywords}}).call(eb.prototype);lD.TextHighlightRules=eb;var _oe=aD,koe=lD.TextHighlightRules,cD=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};_oe.inherits(cD,koe);var Coe=cD,uD={},dD={};dD.reportError=function(t,r){var o=new Error(t);o.data=r,typeof console=="object"&&console.error&&console.error(o),setTimeout(function(){throw o})};const Soe=dD.reportError;var N1=2e3;let hD=class{constructor(t){this.splitRegex,this.states=t,this.regExps={},this.matchMappings={};for(var r in this.states){for(var o=this.states[r],n=[],i=0,a=this.matchMappings[r]={defaultToken:"text"},c="g",l=[],d=0;d<o.length;d++){var s=o[d];if(s.defaultToken&&(a.defaultToken=s.defaultToken),s.caseInsensitive&&c.indexOf("i")===-1&&(c+="i"),s.unicode&&c.indexOf("u")===-1&&(c+="u"),s.regex!=null){s.regex instanceof RegExp&&(s.regex=s.regex.toString().slice(1,-1));var u=s.regex,h=new RegExp("(?:("+u+")|(.))").exec("a").length-2;Array.isArray(s.token)?s.token.length==1||h==1?s.token=s.token[0]:h-1!=s.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:s,groupCount:h-1}),s.token=s.token[0]):(s.tokenArray=s.token,s.token=null,s.onMatch=this.$arrayTokens):typeof s.token=="function"&&!s.onMatch&&(h>1?s.onMatch=this.$applyToken:s.onMatch=s.token),h>1&&(/\\\d/.test(s.regex)?u=s.regex.replace(/\\([0-9]+)/g,function(f,p){return"\\"+(parseInt(p,10)+i+1)}):(h=1,u=this.removeCapturingGroups(s.regex)),!s.splitRegex&&typeof s.token!="string"&&l.push(s)),a[i]=d,i+=h,n.push(u),s.onMatch||(s.onMatch=null)}}n.length||(a[0]=0,n.push("$")),l.forEach(function(f){f.splitRegex=this.createSplitterRegexp(f.regex,c)},this),this.regExps[r]=new RegExp("("+n.join(")|(")+")|($)",c)}}$setMaxTokenCount(t){N1=t|0}$applyToken(t){var r=this.splitRegex.exec(t).slice(1),o=this.token.apply(this,r);if(typeof o=="string")return[{type:o,value:t}];for(var n=[],i=0,a=o.length;i<a;i++)r[i]&&(n[n.length]={type:o[i],value:r[i]});return n}$arrayTokens(t){if(!t)return[];var r=this.splitRegex.exec(t);if(!r)return"text";for(var o=[],n=this.tokenArray,i=0,a=n.length;i<a;i++)r[i+1]&&(o[o.length]={type:n[i],value:r[i+1]});return o}removeCapturingGroups(t){var r=t.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(o,n){return n?"(?:":o});return r}createSplitterRegexp(t,r){if(t.indexOf("(?=")!=-1){var o=0,n=!1,i={};t.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(a,c,l,d,s,u){return n?n=s!="]":s?n=!0:d?(o==i.stack&&(i.end=u+1,i.stack=-1),o--):l&&(o++,l.length!=1&&(i.stack=o,i.start=u)),a}),i.end!=null&&/^\)*$/.test(t.substr(i.end))&&(t=t.substring(0,i.start)+t.substr(i.end))}return t.charAt(0)!="^"&&(t="^"+t),t.charAt(t.length-1)!="$"&&(t+="$"),new RegExp(t,(r||"").replace("g",""))}getLineTokens(t,r){if(r&&typeof r!="string"){var o=r.slice(0);r=o[0],r==="#tmp"&&(o.shift(),r=o.shift())}else var o=[];var n=r||"start",i=this.states[n];i||(n="start",i=this.states[n]);var a=this.matchMappings[n],c=this.regExps[n];c.lastIndex=0;for(var l,d=[],s=0,u=0,h={type:null,value:""};l=c.exec(t);){var f=a.defaultToken,p=null,g=l[0],v=c.lastIndex;if(v-g.length>s){var m=t.substring(s,v-g.length);h.type==f?h.value+=m:(h.type&&d.push(h),h={type:f,value:m})}for(var y=0;y<l.length-2;y++)if(l[y+1]!==void 0){p=i[a[y]],p.onMatch?f=p.onMatch(g,n,o,t):f=p.token,p.next&&(typeof p.next=="string"?n=p.next:n=p.next(n,o),i=this.states[n],i||(this.reportError("state doesn't exist",n),n="start",i=this.states[n]),a=this.matchMappings[n],s=v,c=this.regExps[n],c.lastIndex=v),p.consumeLineEnd&&(s=v);break}if(g){if(typeof f=="string")(!p||p.merge!==!1)&&h.type===f?h.value+=g:(h.type&&d.push(h),h={type:f,value:g});else if(f){h.type&&d.push(h),h={type:null,value:""};for(var y=0;y<f.length;y++)d.push(f[y])}}if(s==t.length)break;if(s=v,u++>N1){for(u>2*t.length&&this.reportError("infinite loop with in ace tokenizer",{startState:r,line:t});s<t.length;)h.type&&d.push(h),h={value:t.substring(s,s+=500),type:"overflow"};n="start",o=[];break}}return h.type&&d.push(h),o.length>1&&o[0]!==n&&o.unshift("#tmp",n),{tokens:d,state:o.length?o:n}}};hD.prototype.reportError=Soe;uD.Tokenizer=hD;var fD={};const Toe=new Set(["text","rparen","lparen"]);fD.isTextToken=function(e){return Toe.has(e)};const{Tokenizer:Eoe}=uD,Loe=fD.isTextToken;class Aoe{constructor(t,r){this._lines=t.split(/\r\n|\r|\n/),this._states=[],this._tokenizer=r}getTokens(t){const r=this._lines[t],o=this._states[t-1],n=this._tokenizer.getLineTokens(r,o);return this._states[t]=n.state,n.tokens}getLength(){return this._lines.length}}function Boe(e,t){const r=new Aoe(e,new Eoe(t.getRules()));let o=[];for(let n=0;n<r.getLength();n++){const i=r.getTokens(n);o.push(i.map(a=>({className:Loe(a.type)?void 0:"ace_"+a.type.replace(/\./g," ace_"),value:a.value})))}return o}var Doe={tokenize:Boe};function Roe(e){return t=>{const r=Doe.tokenize(t,e);return w.jsx("span",{children:r.map((o,n)=>w.jsxs(B.Fragment,{children:[o.map((i,a)=>i.className?w.jsx("span",{className:i==null?void 0:i.className,children:i.value},a):i.value),`
  1468  `]},n))})}}const Ioe=Roe(new Coe),Poe=e=>{const t=At(),[r,o]=B.useState(null),[n,i]=B.useState(!0),[a,c]=B.useState(0),[l,d]=B.useState(!1),[s,u]=B.useState(!1),[h,f]=B.useState(""),[p,g]=B.useState("");function v(){c(a+1)}return B.useEffect(()=>{(async()=>{i(!0);try{const y=await poe();o(y),u(!1),f(""),g(""),console.log("fetched data",y)}catch(y){u(!0),f(`${y.name}`),g(`${y.message}`)}finally{i(!1)}})()},[a]),w.jsx(w.Fragment,{children:n?w.jsx(hi,{}):w.jsxs(w.Fragment,{children:[s&&w.jsx(so,{header:w.jsx(Ge,{variant:"h1",description:"You have encountered an application error related to backend services",children:"Service Unavailable"}),children:w.jsx(re,{size:"l",children:w.jsx(Fe,{children:w.jsx(En,{title:h,subtitle:p,action:w.jsx(ge,{onClick:v,children:"Refresh"})})})})}),!s&&w.jsx(so,{header:w.jsx(re,{size:"m",children:w.jsx(Ge,{variant:"h1",description:"Your identity information.",actions:w.jsxs(re,{size:"xs",direction:"horizontal",children:[w.jsx(ge,{onClick:()=>t("/"),children:"Dashboard"}),w.jsx(ge,{onClick:v,children:"Refresh"})]}),children:r==null?void 0:r.metadata.name})}),children:w.jsxs(re,{direction:"vertical",size:"l",children:[(r==null?void 0:r.metadata)&&w.jsx(Fe,{header:w.jsx(Ge,{variant:"h2",description:"View your user account information.",actions:w.jsx(re,{size:"xs",direction:"horizontal",children:w.jsx(ge,{variant:"normal",iconName:"key",onClick:()=>d(!0),children:"Change Password"})}),children:"User Information"}),children:w.jsx(re,{size:"l",children:w.jsxs(Er,{columns:3,variant:"text-grid",children:[w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"User ID"}),w.jsx(pr,{variant:"inline",textToCopy:r.metadata.id,copyButtonAriaLabel:"Copy User ID",copySuccessText:"User ID copied",copyErrorText:"Failed to copy User ID"})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Username"}),w.jsx("div",{children:r.metadata.username})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Email"}),w.jsx("div",{children:r.metadata.email})]})]}),w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Name"}),w.jsx("div",{children:r.metadata.name})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Created At"}),w.jsx("div",{children:r.metadata.created})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Last Modified"}),w.jsx("div",{children:r.metadata.last_modified})]})]}),w.jsx(re,{size:"l",children:w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Revision"}),w.jsx("div",{children:r.metadata.revision})]})})]})})}),(r==null?void 0:r.token)&&w.jsx(Fe,{header:w.jsx(Ge,{variant:"h2",description:"View the contents of your access token.",actions:w.jsx(re,{size:"xs",direction:"horizontal",children:w.jsx(pr,{variant:"button",copyButtonText:"Copy",textToCopy:r.token,copyButtonAriaLabel:"Copy User Token",copySuccessText:"User Token copied",copyErrorText:"Failed to copy User Token"})}),children:"User Token"}),children:w.jsx(re,{size:"l",children:w.jsx(Pc,{content:r==null?void 0:r.token,highlight:Ioe})})})]})}),l&&w.jsx(NB,{visible:l,refresh:()=>v(),close:()=>d(!1)})]})})},$oe=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})}),Ooe=e=>{const[t,r]=B.useState(!1),o=c=>r(c.detail.open),[n,i]=B.useState(!1),a=c=>i(c.detail.open);return w.jsx(Fr,{navigationHide:!1,navigation:e.navigation,navigationOpen:n,onNavigationChange:a,content:w.jsx(Poe,{...e}),toolsHide:!1,tools:w.jsx($oe,{}),toolsWidth:500,toolsOpen:t,onToolsChange:o,ariaLabels:$r,headerSelector:"#top-nav"})},Moe=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})});function pD(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(Math.random()*9)+64;return Array.from({length:t},()=>e[Math.floor(Math.random()*e.length)]).join("")}function Pv(e){if(e.length<=8)return e;const t=4,r=e.slice(0,t),o=e.slice(-t);return r+"******"+o}const gD=(e,t)=>{if(e){const r=/^[A-Za-z0-9 ()@.\-_/,]+$/;if(!(t.length>=3&&t.length<=100)||!r.test(t))return"The title is non compliant. It should contain 3-100 characters and consists of A-Z, a-z, 0-9, @ characters only."}return null},Noe=(e,t)=>{if(e){const r=/^[A-Za-z0-9]{64,92}/;if(!(t.length>=64&&t.length<=92)||!r.test(t))return"The title is non compliant. It should contain 64-92 characters and consists of A-Z, a-z, 0-9 characters only."}return null},mD=(e,t)=>{if(e)for(const r of t)switch(r){case"prod":break;case"test":break;case"dev":break;case"experimental":break;default:return"The labels contains invalid value."}return null};function $v(e){const t={valid:!0},r=gD(!0,e.title);if(r!==null)return t.valid=!1,t.message=r,t;const o=mD(!0,e.labels);return o!==null&&(t.valid=!1,t.message=o),t}const joe=e=>{const t=[{label:"Production",value:"prod",description:""},{label:"Test",value:"test",description:""},{label:"Development",value:"dev",description:""},{label:"Experimental",value:"experimental",description:"Reserved for experimental purposes"}],r=d=>{e.setTitle(d.value)},o=d=>{e.setApiKeyContent(d.value)},n=d=>{e.setDescription(d.value)},i=t.filter(function(d){if(e.labels.length<1)return!1;let s=!1;return e.labels.forEach(u=>{if(d.value===u){s=!0;return}}),s}),[a,c]=B.useState(i),l=d=>{c(d.selectedOptions),e.setLabels(d.selectedOptions.map(s=>`${s.value}`))};return w.jsx(Fe,{children:w.jsxs(re,{direction:"vertical",size:"l",children:[w.jsx(Fn,{children:w.jsxs(re,{direction:"vertical",size:"l",children:[w.jsx(nt,{label:"Title",errorText:gD(e.alertVisible,e.title),description:"Amend the title associated with the key.",constraintText:w.jsx("span",{children:w.jsx("i",{children:"If the key you upload has a comment, it will be used instead of the value provides in this input box."})}),children:w.jsx(jt,{inputMode:"text",value:e.title,spellcheck:!1,disableBrowserAutocorrect:!0,autoComplete:!1,onChange:({detail:d})=>r(d)})}),w.jsx(nt,{label:"Description",description:"Add optional description. This help search.",children:w.jsx(jt,{inputMode:"text",placeholder:"My API Key",spellcheck:!1,disableBrowserAutocorrect:!0,autoComplete:!1,value:e.description,onChange:({detail:d})=>n(d)})}),w.jsx(nt,{label:w.jsxs("span",{children:["Labels ",w.jsx("i",{children:"- optional"})," "]}),errorText:mD(e.alertVisible,e.labels),children:w.jsx(uu,{selectedOptions:a,filteringType:"auto",onChange:({detail:d})=>l(d),options:t,placeholder:"Open dropdown and choose Labels",selectedAriaLabel:"Selected Labels"})})]})}),w.jsx(Cy,{headerText:w.jsxs("span",{children:["Advanced Configuration Settings ",w.jsx("i",{children:"- optional"})," "]}),children:w.jsxs(re,{direction:"vertical",size:"l",children:[w.jsx(J,{children:"If necessary, modify the auto-generated API key."}),w.jsx(nt,{label:"API Key",errorText:Noe(e.alertVisible,e.apiKeyContent),secondaryControl:w.jsx(ge,{iconName:"refresh",onClick:()=>e.setApiKeyContent(pD())}),constraintText:w.jsx("span",{children:w.jsx("i",{children:"You should not change it, unless you fully understand the implications of your actions."})}),children:w.jsx(jt,{inputMode:"text",value:e.apiKeyContent,spellcheck:!1,disableBrowserAutocorrect:!0,autoComplete:!1,onChange:({detail:d})=>o(d)})})]})})]})})};function Goe(e){let t="You are required to address the error(s) to continue.";if(e.alertVisible){const r=$v(e);!r.valid&&r.message&&(t=r.message)}return{title:"Configuration",description:"Provide the configuration for the registration of API key",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Errors Detected",type:"warning",children:t}),w.jsx(joe,{...e})]})}}function j1(e){const t={valid:!0};for(const r of e.tags)if(r.key===""||r.value==="")return t.valid=!1,t.message="Invalid tag",t;return t}const zoe=e=>{const t=(r,o,n)=>{const i=[...e.tags],a=i[o];n?a.key=r.value:a.value=r.value,e.setTags(i)};return w.jsx(Fe,{children:w.jsx(re,{direction:"vertical",size:"l",children:w.jsx(Qc,{items:e.tags,addButtonText:"Add new tag",removeButtonText:"Remove",empty:"No tags associated with the registration.",onAddButtonClick:()=>{e.setTags([...e.tags,{key:"",value:""}])},onRemoveButtonClick:({detail:{itemIndex:r}})=>{const o=[...e.tags];o.splice(r,1),e.setTags(o)},definition:[{label:"Key",control:(r,o)=>w.jsx(jt,{value:r.key,placeholder:"Enter key",autoComplete:!1,spellcheck:!1,disableBrowserAutocorrect:!1,onChange:({detail:n})=>t(n,o,!0)},`tag-key-${o}`)},{label:"Value",control:(r,o)=>w.jsx(jt,{value:r.value,autoComplete:!1,spellcheck:!1,disableBrowserAutocorrect:!1,placeholder:"Enter value",onChange:({detail:n})=>t(n,o,!1)},`tag-value-${o}`)}]})})})};function Foe(e){return{title:"Add Tags",description:"Tag the registration to improve search quality",content:w.jsxs(re,{direction:"vertical",size:"l",children:[e.alertVisible&&w.jsx(Gt,{onDismiss:()=>e.setAlertVisible(!1),dismissible:!0,dismissAriaLabel:"Close alert",header:"Error(s) Detected",type:"warning",children:"Please review and fix the below validation errors."}),w.jsx(zoe,{...e})]}),isOptional:!0}}const Hoe=e=>{if(e===void 0)return"Unknown";switch(e){case"prod":return"Production";case"test":return"Test";case"dev":return"Development";case"experimental":return"Experimental";default:return"Unknown"}},Woe=e=>w.jsxs(re,{size:"l",children:[e.submitAlertVisible&&w.jsx(Gt,{dismissAriaLabel:"Close alert",dismissible:!0,statusIconAriaLabel:"Failure",type:"error",header:"Error",onDismiss:()=>e.setSubmitAlertVisible(!1),children:e.submitAlert.toString()}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(0),children:"Edit"}),children:"Step 1: Metadata"}),w.jsx(Fe,{children:w.jsxs(Er,{columns:2,variant:"text-grid",children:[w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Title"}),w.jsx("div",{children:e.title.length>0?e.title:w.jsx(Le,{children:w.jsx("i",{children:"Empty"})})})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Description"}),w.jsx("div",{children:e.description.length>0?e.description:w.jsx(Le,{children:w.jsx("i",{children:"Empty"})})})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"API Key"}),w.jsx(J,{children:w.jsx(re,{direction:"horizontal",size:"l",children:w.jsxs(Le,{children:[w.jsx(pr,{variant:"icon",copyButtonText:Pv(e.apiKeyContent),textToCopy:e.apiKeyContent,copyButtonAriaLabel:"Copy API Key",copySuccessText:"API key copied",copyErrorText:"Failed to copy API key"}),Pv(e.apiKeyContent)]})})})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Labels"}),w.jsx("div",{children:e.labels.length>0?w.jsx(re,{direction:"horizontal",size:"xs",children:e.labels.map(t=>w.jsx(Tn,{children:Hoe(t.split(/\./).shift())},"labels-{x}"))}):w.jsx(Le,{children:w.jsx("i",{children:"None"})})})]})]})}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(1),children:"Edit"}),children:"Step 2: Registration"}),w.jsx(Ge,{variant:"h3",actions:w.jsx(ge,{onClick:()=>e.setActiveStepIndex(2),children:"Edit"}),children:"Step 3: Tagging"}),w.jsx(Fe,{children:w.jsx(J,{children:e.tags.length>0?w.jsx(Er,{columns:2,children:e.tags.map(t=>w.jsxs(Le,{children:[w.jsx("strong",{children:t.key}),": ",t.value]},t.key))}):w.jsx(Le,{children:w.jsx("i",{children:"None"})})})})]});function Voe(e){return{title:"Review and Create",description:"Review the summary of the API key and, if necessary, make changes",content:w.jsx(Woe,{...e})}}const Uoe=e=>(e.kind="add_user_api_key",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Add API key Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t})),Koe=()=>{const e=At(),t=!0,[r,o]=B.useState(0),[n,i]=B.useState(!1),[a,c]=B.useState(!1),[l,d]=B.useState("API"+(Math.random()+1).toString(36).substring(4).toUpperCase()),[s,u]=B.useState(""),[h,f]=B.useState([]),[p,g]=B.useState(pD()),[v,m]=B.useState(!1),[y,C]=B.useState(""),[_,k]=B.useState([]),b={stepNumberLabel:M=>`Step ${M}`,collapsedStepsLabel:(M,O)=>`Step ${M} of ${O}`,skipToButtonLabel:M=>`Skip to ${M.title}`,navigationAriaLabel:"Steps",cancelButton:"Cancel",previousButton:"Previous",nextButton:"Next",submitButton:"Register",optional:"optional"},S=()=>{e("../api-keys")},T={alertVisible:n,setAlertVisible:i,setActiveStepIndex:o},L={title:l,setTitle:d,description:s,setDescription:u,labels:h,setLabels:f,apiKeyContent:p,setApiKeyContent:g},I={tags:_,setTags:k},A={submitAlert:y,submitAlertVisible:v,setSubmitAlert:C,setSubmitAlertVisible:m,setActiveStepIndex:o},P=Goe({...L,...T}),D=Foe({...I,...T}),E=Voe({...L,...I,...A,...T}),R=[P,D,E],$=M=>{if(console.log("Wizard Event",M),M.reason==="next"&&M.requestedStepIndex===1){console.log("Wizard Validation Event: validateMetadata");const O=$v(L);if(console.log("Wizard Validation Result",O),!O.valid){i(!0),o(M.requestedStepIndex-1);return}}if(M.reason==="next"&&M.requestedStepIndex===2){console.log("Wizard Validation Event: validateTagging");const O=j1(I);if(console.log("Wizard Validation Result",O),!O.valid){i(!0),o(M.requestedStepIndex-1);return}}if(M.reason==="skip"){const O=$v(L);if(console.log("Wizard Metadata Step Validation Result",O),!O.valid){console.log("Redirecting to Wizard Metadata Step",0),i(!0),o(0);return}const j=j1(I);if(console.log("Wizard Tagging Step Validation Result",j),!j.valid){console.log("Redirecting to Wizard Tagging Step",1),i(!0),o(2);return}}i(!1),o(M.requestedStepIndex)},N=async()=>{c(!0);try{await Uoe({title:l,description:s,labels:h,tags:_,content:p})!==null?e("../api-keys"):(m(!0),C("Failed adding API key"))}catch(M){m(!0),C(`${M.name}: ${M.message}`)}finally{c(!1)}};return w.jsx(as,{i18nStrings:b,activeStepIndex:r,allowSkipTo:t,onNavigate:({detail:M})=>$(M),onCancel:()=>S(),onSubmit:N,isLoadingNextStep:a,steps:R})},qoe=()=>{const e=At();return w.jsx(eo,{items:[{text:"Home",href:""},{text:"API keys",href:"api-keys/"},{text:"New API Key",href:""}],onFollow:t=>{t.preventDefault(),e("/"+t.detail.href)}})},Yoe=({navigation:e,navigationOpen:t,onNavigationChange:r,toolsOpen:o,onToolsChange:n})=>w.jsx(Fr,{navigationHide:!1,navigation:e,breadcrumbs:w.jsx(qoe,{}),navigationOpen:t,onNavigationChange:r,content:w.jsx(Koe,{}),contentType:"wizard",toolsHide:!1,tools:w.jsx(Moe,{}),toolsWidth:500,toolsOpen:o,onToolsChange:n,ariaLabels:$r,headerSelector:"#top-nav"}),Xoe=e=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"fetch_user_api_key",id:e}}).then(t=>(console.log("Fetch User API Key Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t}),Qoe=e=>(e.kind="test_user_api_key",gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:e}).then(t=>(console.log("Test User API Key Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t})),Zoe=e=>{const[t,r]=B.useState(""),[o,n]=B.useState(!1),[i,a]=x.useState(!1),[c,l]=B.useState(!1),[d,s]=B.useState(""),[u,h]=B.useState(""),[f,p]=B.useState(!1),g=_=>{r(_.value)},v=(_,k)=>_&&!(k.length>=62&&k.length<=72)?"The API key is non compliant. It should contain 62-72 characters.":null;function m(){return v(!0,t)===null}function y(){r(""),s(""),h(""),l(!1),n(!1)}const C=async()=>{if(!m()){n(!0);return}try{a(!0);const _={id:e.id,content:t};await Qoe(_)!==null?(s(""),h(""),l(!1),console.log("Successfully validated API key"),p(!0)):(s("API Key Test Error"),h("Failed to validate the API key"),l(!0))}catch(_){s(_.name),h(_.message),l(!0)}finally{a(!1)}};return w.jsxs(Hn,{onDismiss:()=>e.close(),visible:e.visible,closeAriaLabel:"Close modal",footer:w.jsx(J,{float:"right",children:i?w.jsx(re,{direction:"horizontal",size:"xs",children:w.jsx(ge,{variant:"primary",loading:!0,children:"Test"})}):w.jsxs(re,{direction:"horizontal",size:"xs",children:[!f&&w.jsx(ge,{variant:"link",onClick:y,children:"Clear"}),!f&&w.jsx(ge,{variant:"link",onClick:()=>e.close(),children:"Cancel"}),!f&&w.jsx(ge,{variant:"primary",onClick:()=>C(),children:"Test"}),f&&w.jsx(ge,{variant:"link",onClick:()=>e.close(),children:"Close"})]})}),header:"API Key Testing",children:[c&&w.jsx(J,{padding:{bottom:"l"},children:w.jsx(Gt,{dismissAriaLabel:"Close alert",dismissible:!0,statusIconAriaLabel:"Error",type:"error",header:d,onDismiss:()=>l(!1),children:u})}),!f&&w.jsx(Fn,{children:w.jsx(re,{direction:"vertical",size:"m",children:w.jsx(nt,{label:"API Key",errorText:v(o,t),constraintText:w.jsx("span",{children:w.jsx("i",{children:"This is the plain text API key you want to test."})}),children:w.jsx(jt,{type:"text",value:t,spellcheck:!1,autoComplete:!1,disableBrowserAutocorrect:!0,onChange:({detail:_})=>g(_)})})})}),f&&w.jsxs(re,{direction:"horizontal",size:"xs",children:[w.jsx(Xr,{name:"status-positive",size:"normal",variant:"success"}),w.jsx(Le,{children:"The provided API key is valid."})]})]})},Joe=e=>{const t=Qh(),[r,o]=B.useState(null),[n,i]=B.useState(!0),[a,c]=B.useState(0),[l,d]=B.useState(!1),[s,u]=B.useState(!1),[h,f]=B.useState(""),[p,g]=B.useState("");function v(){c(a+1)}return B.useEffect(()=>{(async()=>{if(t.id!==void 0){i(!0);try{const y=await Xoe(t.id);o(y),u(!1),f(""),g(""),console.log("fetched data",y)}catch(y){u(!0),f(`${y.name}`),g(`${y.message}`)}finally{i(!1)}}})()},[t,a]),w.jsx(w.Fragment,{children:n?w.jsx(hi,{}):w.jsxs(w.Fragment,{children:[s&&w.jsx(so,{header:w.jsx(Ge,{variant:"h1",description:"You have encountered an application error related to backend services",children:"Service Unavailable"}),children:w.jsx(re,{size:"l",children:w.jsx(Fe,{children:w.jsx(En,{title:h,subtitle:p,action:w.jsx(ge,{onClick:v,children:"Refresh"})})})})}),!s&&w.jsx(so,{header:w.jsx(re,{size:"m",children:w.jsx(Ge,{variant:"h1",description:"Review API key information and test it, if necessary.",actions:w.jsx(re,{size:"xs",direction:"horizontal",children:w.jsx(ge,{onClick:v,children:"Refresh"})}),children:r==null?void 0:r.comment})}),children:w.jsx(re,{direction:"vertical",size:"l",children:r&&w.jsx(Fe,{header:w.jsx(Ge,{variant:"h2",description:"View API Key information.",actions:w.jsx(re,{size:"xs",direction:"horizontal",children:w.jsx(ge,{variant:"normal",iconName:"key",onClick:()=>d(!0),children:"Test"})}),children:"API Key"}),children:w.jsxs(re,{size:"l",children:[w.jsxs(Er,{columns:3,variant:"text-grid",children:[w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Title"}),w.jsx("div",{children:r.comment})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Key ID"}),w.jsx(pr,{variant:"inline",textToCopy:r.id,copyButtonAriaLabel:"Copy Key ID",copySuccessText:"Key ID copied",copyErrorText:"Failed to copy Key ID"})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Masked Key Prefix"}),w.jsx("div",{children:Pv(r.prefix)})]})]}),w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Description"}),w.jsx("div",{children:r.description})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Created At"}),w.jsx("div",{children:ta(r.created_at).toISOString().replace("T"," ")})]})]}),w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Disabled"}),w.jsx("div",{children:r.disabled?"Yes":"No"})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Expired"}),w.jsx("div",{children:r.expired?"Yes":"No"})]})]})]}),r.labels&&w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Labels"}),w.jsx(re,{direction:"horizontal",size:"s",children:r.labels.map((m,y)=>w.jsx("div",{children:w.jsx(Tn,{children:m})},`api-key-label-${y}`))})]}),r.tags&&w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Tags"}),w.jsx(re,{direction:"vertical",size:"m",children:r.tags.map((m,y)=>w.jsx("div",{children:w.jsxs(Le,{children:[m.key," = ",m.value]})},`api-key-tag-${y}`))})]})]})})})}),l&&w.jsx(Zoe,{id:(r==null?void 0:r.id)??"",visible:l,refresh:()=>v(),close:()=>d(!1)})]})})},ene=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})}),tne=()=>{const e=At(),[t,r]=B.useState("");return B.useEffect(()=>{const o=window.location.pathname.split("/");r(o[o.length-1])},[t]),w.jsx(eo,{items:[{text:"Home",href:""},{text:"API Keys",href:"api-keys/"},{text:t,href:t}],onFollow:o=>{o.preventDefault(),e("/"+o.detail.href)}})},rne=e=>{const[t,r]=B.useState(!1),o=c=>r(c.detail.open),[n,i]=B.useState(!1),a=c=>i(c.detail.open);return w.jsx(Fr,{navigationHide:!1,navigation:e.navigation,navigationOpen:n,breadcrumbs:w.jsx(tne,{}),onNavigationChange:a,content:w.jsx(Joe,{...e}),toolsHide:!1,tools:w.jsx(ene,{}),toolsWidth:500,toolsOpen:t,onToolsChange:o,ariaLabels:$r,headerSelector:"#top-nav"})},one=e=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"fetch_user_ssh_key",id:e}}).then(t=>(console.log("Fetch User SSH Key Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t}),nne=e=>{const t=Qh(),[r,o]=B.useState(null),[n,i]=B.useState(!0),[a,c]=B.useState(0),[l,d]=B.useState(!1),[s,u]=B.useState(""),[h,f]=B.useState("");function p(){c(a+1)}return B.useEffect(()=>{(async()=>{if(t.id!==void 0){i(!0);try{const v=await one(t.id);o(v),d(!1),u(""),f(""),console.log("fetched data",v)}catch(v){d(!0),u(`${v.name}`),f(`${v.message}`)}finally{i(!1)}}})()},[t,a]),w.jsx(w.Fragment,{children:n?w.jsx(hi,{}):w.jsxs(w.Fragment,{children:[l&&w.jsx(so,{header:w.jsx(Ge,{variant:"h1",description:"You have encountered an application error related to backend services",children:"Service Unavailable"}),children:w.jsx(re,{size:"l",children:w.jsx(Fe,{children:w.jsx(En,{title:s,subtitle:h,action:w.jsx(ge,{onClick:p,children:"Refresh"})})})})}),!l&&w.jsx(so,{header:w.jsx(re,{size:"m",children:w.jsx(Ge,{variant:"h1",description:"Review SSH key information and test it, if necessary.",actions:w.jsx(re,{size:"xs",direction:"horizontal",children:w.jsx(ge,{onClick:p,children:"Refresh"})}),children:r==null?void 0:r.comment})}),children:w.jsxs(re,{direction:"vertical",size:"l",children:[r&&w.jsx(Fe,{header:w.jsx(Ge,{variant:"h2",description:"View SSH Key information.",children:"SSH Key"}),children:w.jsxs(re,{size:"l",children:[w.jsxs(Er,{columns:3,variant:"text-grid",children:[w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Title"}),w.jsx("div",{children:r.comment})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Key ID"}),w.jsx(pr,{variant:"inline",textToCopy:r.id,copyButtonAriaLabel:"Copy Key ID",copySuccessText:"Key ID copied",copyErrorText:"Failed to copy Key ID"})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Type"}),w.jsx("div",{children:r.type||""})]})]}),w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Description"}),w.jsx("div",{children:r.description||"-"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Fingerprint"}),w.jsx(pr,{variant:"inline",textToCopy:r.fingerprint||"-",copyButtonAriaLabel:"Copy Fingerprint",copySuccessText:"Fingerprint copied",copyErrorText:"Failed to copy Fingerprint"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Fingerprint MD5"}),w.jsx(pr,{variant:"inline",textToCopy:r.fingerprint_md5||"-",copyButtonAriaLabel:"Copy MD5 Fingerprint",copySuccessText:"MD5 Fingerprint copied",copyErrorText:"Failed to copy MD5 Fingerprint"})]})]}),w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Created At"}),w.jsx("div",{children:ta(r.created_at).toISOString().replace("T"," ")})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Disabled"}),w.jsx("div",{children:r.disabled?"Yes":"No"})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Expired"}),w.jsx("div",{children:r.expired?"Yes":"No"})]})]})]}),r.labels&&w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Labels"}),w.jsx(re,{direction:"horizontal",size:"s",children:r.labels.map((g,v)=>w.jsx("div",{children:w.jsx(Tn,{children:g})},`ssh-key-label-${v}`))})]}),r.tags&&w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Tags"}),w.jsx(re,{direction:"vertical",size:"m",children:r.tags.map((g,v)=>w.jsx("div",{children:w.jsxs(Le,{children:[g.key," = ",g.value]})},`ssh-key-tag-${v}`))})]})]})}),(r==null?void 0:r.payload)&&w.jsx(Fe,{header:w.jsx(Ge,{variant:"h2",description:"View the contents of your SSH key in PEM format.",actions:w.jsx(re,{size:"xs",direction:"horizontal",children:w.jsx(pr,{variant:"button",copyButtonText:"Copy",textToCopy:r.payload,copyButtonAriaLabel:"Copy SSH Key",copySuccessText:"SSH Key copied",copyErrorText:"Failed to copy SSH Key"})}),children:"SSH Key"}),children:w.jsx(re,{direction:"vertical",size:"l",children:w.jsx(Pc,{content:r.payload})})}),(r==null?void 0:r.openssh)&&w.jsx(Fe,{header:w.jsx(Ge,{variant:"h2",description:"View the contents of your SSH key in OpenSSH format.",actions:w.jsx(re,{size:"xs",direction:"horizontal",children:w.jsx(pr,{variant:"button",copyButtonText:"Copy",textToCopy:r.openssh,copyButtonAriaLabel:"Copy SSH Key",copySuccessText:"SSH Key copied",copyErrorText:"Failed to copy SSH Key"})}),children:"OpenSSH Key"}),children:w.jsx(re,{size:"l",children:w.jsx(Pc,{content:`${r.type} ${r.openssh} ${r.comment}`})})})]})})]})})},ine=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})}),ane=()=>{const e=At(),[t,r]=B.useState("");return B.useEffect(()=>{const o=window.location.pathname.split("/");r(o[o.length-1])},[t]),w.jsx(eo,{items:[{text:"Home",href:""},{text:"SSH Keys",href:"ssh-keys/"},{text:t,href:t}],onFollow:o=>{o.preventDefault(),e("/"+o.detail.href)}})},lne=e=>{const[t,r]=B.useState(!1),o=c=>r(c.detail.open),[n,i]=B.useState(!1),a=c=>i(c.detail.open);return w.jsx(Fr,{navigationHide:!1,navigation:e.navigation,navigationOpen:n,breadcrumbs:w.jsx(ane,{}),onNavigationChange:a,content:w.jsx(nne,{...e}),toolsHide:!1,tools:w.jsx(ine,{}),toolsWidth:500,toolsOpen:t,onToolsChange:o,ariaLabels:$r,headerSelector:"#top-nav"})},sne=e=>gt.request({method:"POST",url:`${Ne.getAppPath()}/api/profile`,data:{kind:"fetch_user_gpg_key",id:e}}).then(t=>(console.log("Fetch User GPG Key Response",t),t.data.entry!==void 0?t.data.entry:null)).catch(t=>{var r,o,n;if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401&&Tt(),Object.prototype.hasOwnProperty.call((o=t==null?void 0:t.response)==null?void 0:o.data,"message")){const i=(n=t==null?void 0:t.response)==null?void 0:n.data;throw new Error(i.message)}throw t}),cne=e=>{const t=Qh(),[r,o]=B.useState(null),[n,i]=B.useState(!0),[a,c]=B.useState(0),[l,d]=B.useState(!1),[s,u]=B.useState(""),[h,f]=B.useState("");function p(){c(a+1)}return B.useEffect(()=>{(async()=>{if(t.id!==void 0){i(!0);try{const v=await sne(t.id);o(v),d(!1),u(""),f(""),console.log("fetched data",v)}catch(v){d(!0),u(`${v.name}`),f(`${v.message}`)}finally{i(!1)}}})()},[t,a]),w.jsx(w.Fragment,{children:n?w.jsx(hi,{}):w.jsxs(w.Fragment,{children:[l&&w.jsx(so,{header:w.jsx(Ge,{variant:"h1",description:"You have encountered an application error related to backend services",children:"Service Unavailable"}),children:w.jsx(re,{size:"l",children:w.jsx(Fe,{children:w.jsx(En,{title:s,subtitle:h,action:w.jsx(ge,{onClick:p,children:"Refresh"})})})})}),!l&&w.jsx(so,{header:w.jsx(re,{size:"m",children:w.jsx(Ge,{variant:"h1",description:"Review GPG key information and test it, if necessary.",actions:w.jsx(re,{size:"xs",direction:"horizontal",children:w.jsx(ge,{onClick:p,children:"Refresh"})}),children:r==null?void 0:r.comment})}),children:w.jsxs(re,{direction:"vertical",size:"l",children:[r&&w.jsx(Fe,{header:w.jsx(Ge,{variant:"h2",description:"View GPG Key information.",children:"GPG Key"}),children:w.jsxs(re,{size:"l",children:[w.jsxs(Er,{columns:3,variant:"text-grid",children:[w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Title"}),w.jsx("div",{children:r.comment})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Key ID"}),w.jsx(pr,{variant:"inline",textToCopy:r.id,copyButtonAriaLabel:"Copy Key ID",copySuccessText:"Key ID copied",copyErrorText:"Failed to copy Key ID"})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Type"}),w.jsx("div",{children:r.type||""})]})]}),w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Description"}),w.jsx("div",{children:r.description||"-"})]}),w.jsxs("div",{children:[w.jsx(J,{variant:"awsui-key-label",children:"Fingerprint"}),w.jsx(pr,{variant:"inline",textToCopy:r.fingerprint||"-",copyButtonAriaLabel:"Copy Fingerprint",copySuccessText:"Fingerprint copied",copyErrorText:"Failed to copy Fingerprint"})]})]}),w.jsxs(re,{size:"l",children:[w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Created At"}),w.jsx("div",{children:ta(r.created_at).toISOString().replace("T"," ")})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Disabled"}),w.jsx("div",{children:r.disabled?"Yes":"No"})]}),w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Expired"}),w.jsx("div",{children:r.expired?"Yes":"No"})]})]})]}),r.labels&&w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Labels"}),w.jsx(re,{direction:"horizontal",size:"s",children:r.labels.map((g,v)=>w.jsx("div",{children:w.jsx(Tn,{children:g})},`gpg-key-label-${v}`))})]}),r.tags&&w.jsxs(re,{size:"xxs",children:[w.jsx(J,{variant:"awsui-key-label",children:"Tags"}),w.jsx(re,{direction:"vertical",size:"m",children:r.tags.map((g,v)=>w.jsx("div",{children:w.jsxs(Le,{children:[g.key," = ",g.value]})},`gpg-key-tag-${v}`))})]})]})}),(r==null?void 0:r.payload)&&w.jsx(Fe,{header:w.jsx(Ge,{variant:"h2",description:"View the contents of your GPG key in PEM format.",actions:w.jsx(re,{size:"xs",direction:"horizontal",children:w.jsx(pr,{variant:"button",copyButtonText:"Copy",textToCopy:r.payload,copyButtonAriaLabel:"Copy GPG Key",copySuccessText:"GPG Key copied",copyErrorText:"Failed to copy GPG Key"})}),children:"GPG Key"}),children:w.jsx(re,{direction:"vertical",size:"l",children:w.jsx(Pc,{content:r.payload})})})]})})]})})},une=({})=>w.jsx(Hr,{header:w.jsx("h2",{children:"Help"}),children:w.jsx(J,{variant:"p",children:"TODO."})}),dne=()=>{const e=At(),[t,r]=B.useState("");return B.useEffect(()=>{const o=window.location.pathname.split("/");r(o[o.length-1])},[t]),w.jsx(eo,{items:[{text:"Home",href:""},{text:"GPG Keys",href:"gpg-keys/"},{text:t,href:t}],onFollow:o=>{o.preventDefault(),e("/"+o.detail.href)}})},hne=e=>{const[t,r]=B.useState(!1),o=c=>r(c.detail.open),[n,i]=B.useState(!1),a=c=>i(c.detail.open);return w.jsx(Fr,{navigationHide:!1,navigation:e.navigation,navigationOpen:n,breadcrumbs:w.jsx(dne,{}),onNavigationChange:a,content:w.jsx(cne,{...e}),toolsHide:!1,tools:w.jsx(une,{}),toolsWidth:500,toolsOpen:t,onToolsChange:o,ariaLabels:$r,headerSelector:"#top-nav"})},fne=({basepath:e})=>{const[t,r]=Gc(Ne.genAppStorageKey("Theme-Mode-Name"),"light"),o=()=>{t==="dark"?(kw(Ol.Light),r("light")):(kw(Ol.Dark),r("dark"))};m5({theme:{tokens:{fontFamilyBase:"'Inter', 'Helvetica Neue', Roboto, Arial, sans-serif",borderRadiusContainer:"0.500rem",borderRadiusButton:"0.500rem"}}});const[n,i]=B.useState(f1()),a=()=>{i(f1())};B.useEffect(()=>(window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)));const c={screen:n,navigation:w.jsx(jA,{}),breadcrumbs:w.jsx(wQ,{}),themeModeName:t},l={screen:n,themeModeName:t,setThemeMode:o},d={login:sB,whoami:MZ,logout:lB};return w.jsx(HI,{basename:e,children:w.jsxs(GZ,{links:d,environment:Ne.mode,children:[w.jsx(KZ,{...l}),w.jsxs(GI,{children:[w.jsx(Ar,{path:"/multi-factor-authenticators/mfa-app/new",element:Yee(c)}),w.jsx(Ar,{path:"/multi-factor-authenticators/u2f-key/new",element:foe(c)}),w.jsx(Ar,{path:"/multi-factor-authenticators/",element:Aee(c)}),w.jsx(Ar,{path:"/multi-factor-authenticator/:item_id",element:yte(c)}),w.jsx(Ar,{path:"/api-keys/new",element:Yoe(c)}),w.jsx(Ar,{path:"/api-keys/",element:Rte(c)}),w.jsx(Ar,{path:"/api-key/:id",element:rne(c)}),w.jsx(Ar,{path:"/ssh-keys/new",element:Rre(c)}),w.jsx(Ar,{path:"/ssh-keys/",element:Ute(c)}),w.jsx(Ar,{path:"/ssh-key/:id",element:lne(c)}),w.jsx(Ar,{path:"/gpg-keys/new",element:qre(c)}),w.jsx(Ar,{path:"/gpg-keys/",element:are(c)}),w.jsx(Ar,{path:"/gpg-key/:id",element:hne(c)}),w.jsx(Ar,{path:"/info",element:Ooe(c)}),w.jsx(Ar,{path:"/debug/",element:nee(c)}),w.jsx(Ar,{path:"/",element:hee(c)}),w.jsx(Ar,{path:"*",element:see()})]})]})})},pne=document.getElementById("root"),gne=eS(pne);gne.render(w.jsx(x.StrictMode,{children:w.jsx(fne,{basepath:Ne.routePath("/")})}));