datocms-plugin-alt-text-ai 0.5.15 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
function J1(r,n){for(var i=0;i<n.length;i++){const u=n[i];if(typeof u!="string"&&!Array.isArray(u)){for(const o in u)if(o!=="default"&&!(o in r)){const c=Object.getOwnPropertyDescriptor(u,o);c&&Object.defineProperty(r,o,c.get?c:{enumerable:!0,get:()=>u[o]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Rc={exports:{}},Li={};var Pv;function W1(){if(Pv)return Li;Pv=1;var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(u,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var p in o)p!=="key"&&(c[p]=o[p])}else c=o;return o=c.ref,{$$typeof:r,type:u,key:d,ref:o!==void 0?o:null,props:c}}return Li.Fragment=n,Li.jsx=i,Li.jsxs=i,Li}var Yv;function eE(){return Yv||(Yv=1,Rc.exports=W1()),Rc.exports}var Ke=eE(),Dc={exports:{}};var $v;function tE(){return $v||($v=1,(function(r){(function(){var n={}.hasOwnProperty;function i(){for(var c="",d=0;d<arguments.length;d++){var p=arguments[d];p&&(c=o(c,u(p)))}return c}function u(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return i.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var d="";for(var p in c)n.call(c,p)&&c[p]&&(d=o(d,p));return d}function o(c,d){return d?c?c+" "+d:c+d:c}r.exports?(i.default=i,r.exports=i):window.classNames=i})()})(Dc)),Dc.exports}var nE=tE();const jt=eo(nE);var qc={exports:{}},pe={};var Fv;function rE(){if(Fv)return pe;Fv=1;var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=b&&C[b]||C["@@iterator"],typeof C=="function"?C:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,M={};function R(C,V,K){this.props=C,this.context=V,this.refs=M,this.updater=K||T}R.prototype.isReactComponent={},R.prototype.setState=function(C,V){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,V,"setState")},R.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function F(){}F.prototype=R.prototype;function B(C,V,K){this.props=C,this.context=V,this.refs=M,this.updater=K||T}var $=B.prototype=new F;$.constructor=B,O($,R.prototype),$.isPureReactComponent=!0;var z=Array.isArray;function k(){}var j={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function ie(C,V,K){var Z=K.ref;return{$$typeof:r,type:C,key:V,ref:Z!==void 0?Z:null,props:K}}function he(C,V){return ie(C.type,V,C.props)}function fe(C){return typeof C=="object"&&C!==null&&C.$$typeof===r}function le(C){var V={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(K){return V[K]})}var me=/\/+/g;function Ne(C,V){return typeof C=="object"&&C!==null&&C.key!=null?le(""+C.key):V.toString(36)}function _e(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(k,k):(C.status="pending",C.then(function(V){C.status==="pending"&&(C.status="fulfilled",C.value=V)},function(V){C.status==="pending"&&(C.status="rejected",C.reason=V)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function U(C,V,K,Z,ue){var ce=typeof C;(ce==="undefined"||ce==="boolean")&&(C=null);var be=!1;if(C===null)be=!0;else switch(ce){case"bigint":case"string":case"number":be=!0;break;case"object":switch(C.$$typeof){case r:case n:be=!0;break;case y:return be=C._init,U(be(C._payload),V,K,Z,ue)}}if(be)return ue=ue(C),be=Z===""?"."+Ne(C,0):Z,z(ue)?(K="",be!=null&&(K=be.replace(me,"$&/")+"/"),U(ue,V,K,"",function(fr){return fr})):ue!=null&&(fe(ue)&&(ue=he(ue,K+(ue.key==null||C&&C.key===ue.key?"":(""+ue.key).replace(me,"$&/")+"/")+be)),V.push(ue)),1;be=0;var Ye=Z===""?".":Z+":";if(z(C))for(var Pe=0;Pe<C.length;Pe++)Z=C[Pe],ce=Ye+Ne(Z,Pe),be+=U(Z,V,K,ce,ue);else if(Pe=S(C),typeof Pe=="function")for(C=Pe.call(C),Pe=0;!(Z=C.next()).done;)Z=Z.value,ce=Ye+Ne(Z,Pe++),be+=U(Z,V,K,ce,ue);else if(ce==="object"){if(typeof C.then=="function")return U(_e(C),V,K,Z,ue);throw V=String(C),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return be}function X(C,V,K){if(C==null)return C;var Z=[],ue=0;return U(C,Z,"","",function(ce){return V.call(K,ce,ue++)}),Z}function ee(C){if(C._status===-1){var V=C._result;V=V(),V.then(function(K){(C._status===0||C._status===-1)&&(C._status=1,C._result=K)},function(K){(C._status===0||C._status===-1)&&(C._status=2,C._result=K)}),C._status===-1&&(C._status=0,C._result=V)}if(C._status===1)return C._result.default;throw C._result}var Se=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},Oe={map:X,forEach:function(C,V,K){X(C,function(){V.apply(this,arguments)},K)},count:function(C){var V=0;return X(C,function(){V++}),V},toArray:function(C){return X(C,function(V){return V})||[]},only:function(C){if(!fe(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return pe.Activity=g,pe.Children=Oe,pe.Component=R,pe.Fragment=i,pe.Profiler=o,pe.PureComponent=B,pe.StrictMode=u,pe.Suspense=h,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,pe.__COMPILER_RUNTIME={__proto__:null,c:function(C){return j.H.useMemoCache(C)}},pe.cache=function(C){return function(){return C.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(C,V,K){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var Z=O({},C.props),ue=C.key;if(V!=null)for(ce in V.key!==void 0&&(ue=""+V.key),V)!Q.call(V,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&V.ref===void 0||(Z[ce]=V[ce]);var ce=arguments.length-2;if(ce===1)Z.children=K;else if(1<ce){for(var be=Array(ce),Ye=0;Ye<ce;Ye++)be[Ye]=arguments[Ye+2];Z.children=be}return ie(C.type,ue,Z)},pe.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:c,_context:C},C},pe.createElement=function(C,V,K){var Z,ue={},ce=null;if(V!=null)for(Z in V.key!==void 0&&(ce=""+V.key),V)Q.call(V,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ue[Z]=V[Z]);var be=arguments.length-2;if(be===1)ue.children=K;else if(1<be){for(var Ye=Array(be),Pe=0;Pe<be;Pe++)Ye[Pe]=arguments[Pe+2];ue.children=Ye}if(C&&C.defaultProps)for(Z in be=C.defaultProps,be)ue[Z]===void 0&&(ue[Z]=be[Z]);return ie(C,ce,ue)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(C){return{$$typeof:p,render:C}},pe.isValidElement=fe,pe.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:ee}},pe.memo=function(C,V){return{$$typeof:m,type:C,compare:V===void 0?null:V}},pe.startTransition=function(C){var V=j.T,K={};j.T=K;try{var Z=C(),ue=j.S;ue!==null&&ue(K,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(k,Se)}catch(ce){Se(ce)}finally{V!==null&&K.types!==null&&(V.types=K.types),j.T=V}},pe.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},pe.use=function(C){return j.H.use(C)},pe.useActionState=function(C,V,K){return j.H.useActionState(C,V,K)},pe.useCallback=function(C,V){return j.H.useCallback(C,V)},pe.useContext=function(C){return j.H.useContext(C)},pe.useDebugValue=function(){},pe.useDeferredValue=function(C,V){return j.H.useDeferredValue(C,V)},pe.useEffect=function(C,V){return j.H.useEffect(C,V)},pe.useEffectEvent=function(C){return j.H.useEffectEvent(C)},pe.useId=function(){return j.H.useId()},pe.useImperativeHandle=function(C,V,K){return j.H.useImperativeHandle(C,V,K)},pe.useInsertionEffect=function(C,V){return j.H.useInsertionEffect(C,V)},pe.useLayoutEffect=function(C,V){return j.H.useLayoutEffect(C,V)},pe.useMemo=function(C,V){return j.H.useMemo(C,V)},pe.useOptimistic=function(C,V){return j.H.useOptimistic(C,V)},pe.useReducer=function(C,V,K){return j.H.useReducer(C,V,K)},pe.useRef=function(C){return j.H.useRef(C)},pe.useState=function(C){return j.H.useState(C)},pe.useSyncExternalStore=function(C,V,K){return j.H.useSyncExternalStore(C,V,K)},pe.useTransition=function(){return j.H.useTransition()},pe.version="19.2.4",pe}var kv;function Sd(){return kv||(kv=1,qc.exports=rE()),qc.exports}var Y=Sd();const ye=eo(Y),Xv=J1({__proto__:null,default:ye},[Y]),aE="_button_nnl9b_1",iE="_disabled_nnl9b_30",lE="_fullWidth_nnl9b_127",uE="_button__leftIcon_nnl9b_133",oE="_button__rightIcon_nnl9b_134",Dr={button:aE,disabled:iE,"buttonType-muted":"_buttonType-muted_nnl9b_34","buttonType-primary":"_buttonType-primary_nnl9b_50","buttonType-negative":"_buttonType-negative_nnl9b_80","buttonSize-xxs":"_buttonSize-xxs_nnl9b_97","buttonSize-xs":"_buttonSize-xs_nnl9b_102","buttonSize-s":"_buttonSize-s_nnl9b_107","buttonSize-m":"_buttonSize-m_nnl9b_112","buttonSize-l":"_buttonSize-l_nnl9b_117","buttonSize-xl":"_buttonSize-xl_nnl9b_122",fullWidth:lE,button__leftIcon:uE,button__rightIcon:oE};function Kv(r){var n,i=r.children,u=r.className,o=r.disabled,c=r.buttonType,d=c===void 0?"muted":c,p=r.buttonSize,h=p===void 0?"m":p,m=r.fullWidth,y=r.onClick,g=r.style,b=r.leftIcon,S=r.rightIcon,T=r.type,O=T===void 0?"button":T;return ye.createElement("button",{type:O,className:jt(Dr.button,Dr["buttonType-".concat(d)],Dr["buttonSize-".concat(h)],(n={},n[Dr.disabled]=o,n[Dr.fullWidth]=m,n),u),disabled:o,onClick:y,style:g},b&&ye.createElement("span",{className:Dr.button__leftIcon},b),i&&ye.createElement("span",null,i),S&&ye.createElement("span",{className:Dr.button__rightIcon},S))}var Vu=function(){return Vu=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Vu.apply(this,arguments)};function Qv(r){return r===r.toLowerCase()?r:r.replace(/[A-Z]/g,function(n){return"-".concat(n.toLowerCase())})}function sE(r,n){return n===void 0&&(n=!1),Vu(Vu({padding:n?void 0:r.bodyPadding.map(function(i){return"".concat(i,"px")}).join(" ")},Object.fromEntries(Object.entries(r.theme).flatMap(function(i){var u,o=i[0],c=i[1];return[["--".concat(Qv(o)),c],["--".concat(Qv("".concat(o,"RgbComponents"))),((u=c.match(/rgb\((\d+, \d+, \d+)\)/))===null||u===void 0?void 0:u[1])||void 0]]}))),r.cssDesignTokens)}const cE="_themeVariables_11af8_1",fE="_canvas_11af8_85",Zv={themeVariables:cE,canvas:fE};var dE=Y.createContext(null);function hE(r){var n=r.ctx,i=r.children,u=r.noAutoResizer,o=n.mode;Y.useEffect(function(){if(!u&&"startAutoResizer"in n){var d=n;return d.startAutoResizer(),function(){d.stopAutoResizer()}}},[o,u]);var c=n.cssDesignTokens["--color--scrollbar--fill"];return Y.useEffect(function(){if(!(typeof document>"u"||!c)){var d="--color--scrollbar--fill",p=document.documentElement,h=p.style.getPropertyValue(d);return p.style.setProperty(d,c),function(){h?p.style.setProperty(d,h):p.style.removeProperty(d)}}},[c]),ye.createElement(dE.Provider,{value:n},ye.createElement("div",{className:jt(Zv.themeVariables,Zv.canvas),style:sE(n)},i))}var mu={exports:{}},ut={},Jv;function Ed(){if(Jv)return ut;Jv=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.DATA_CLONE_ERROR=ut.MESSAGE=ut.REJECTED=ut.FULFILLED=ut.REPLY=ut.CALL=ut.HANDSHAKE_REPLY=ut.HANDSHAKE=void 0;const r="handshake";ut.HANDSHAKE=r;const n="handshake-reply";ut.HANDSHAKE_REPLY=n;const i="call";ut.CALL=i;const u="reply";ut.REPLY=u;const o="fulfilled";ut.FULFILLED=o;const c="rejected";ut.REJECTED=c;const d="message";ut.MESSAGE=d;const p="DataCloneError";return ut.DATA_CLONE_ERROR=p,ut}var tn={},Wv;function lb(){if(Wv)return tn;Wv=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.ERR_NO_IFRAME_SRC=tn.ERR_NOT_IN_IFRAME=tn.ERR_CONNECTION_TIMEOUT=tn.ERR_CONNECTION_DESTROYED=void 0;const r="ConnectionDestroyed";tn.ERR_CONNECTION_DESTROYED=r;const n="ConnectionTimeout";tn.ERR_CONNECTION_TIMEOUT=n;const i="NotInIframe";tn.ERR_NOT_IN_IFRAME=i;const u="NoIframeSrc";return tn.ERR_NO_IFRAME_SRC=u,tn}var pu={exports:{}},ey;function mE(){return ey||(ey=1,(function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=()=>{const u=[];let o=!1;return{destroy(){o=!0,u.forEach(c=>{c()})},onDestroy(c){o?c():u.push(c)}}};n.default=i,r.exports=n.default})(pu,pu.exports)),pu.exports}var vu={exports:{}},qr={},ty;function ub(){if(ty)return qr;ty=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.deserializeError=qr.serializeError=void 0;const r=i=>{let u=i.name,o=i.message,c=i.stack;return{name:u,message:o,stack:c}};qr.serializeError=r;const n=i=>{const u=new Error;return Object.keys(i).forEach(o=>u[o]=i[o]),u};return qr.deserializeError=n,qr}var ny;function pE(){return ny||(ny=1,(function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=Ed(),u=ub(),o=(c,d,p)=>{const h=c.localName,m=c.local,y=c.remote,g=c.originForSending,b=c.originForReceiving;let S=!1;p(`${h}: Connecting call receiver`);const T=O=>{if(O.source!==y||O.data.penpal!==i.CALL)return;if(O.origin!==b){p(`${h} received message from origin ${O.origin} which did not match expected origin ${b}`);return}const M=O.data,R=M.methodName,F=M.args,B=M.id;p(`${h}: Received ${R}() call`);const $=z=>k=>{if(p(`${h}: Sending ${R}() reply`),S){p(`${h}: Unable to send ${R}() reply due to destroyed connection`);return}const j={penpal:i.REPLY,id:B,resolution:z,returnValue:k};z===i.REJECTED&&k instanceof Error&&(j.returnValue=(0,u.serializeError)(k),j.returnValueIsError=!0);try{y.postMessage(j,g)}catch(Q){throw Q.name===i.DATA_CLONE_ERROR&&y.postMessage({penpal:i.REPLY,id:B,resolution:i.REJECTED,returnValue:(0,u.serializeError)(Q),returnValueIsError:!0},g),Q}};new Promise(z=>z(d[R].apply(d,F))).then($(i.FULFILLED),$(i.REJECTED))};return m.addEventListener(i.MESSAGE,T),()=>{S=!0,m.removeEventListener(i.MESSAGE,T)}};n.default=o,r.exports=n.default})(vu,vu.exports)),vu.exports}var yu={exports:{}},gu={exports:{}},ry;function vE(){return ry||(ry=1,(function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;let i=0;var u=()=>++i;n.default=u,r.exports=n.default})(gu,gu.exports)),gu.exports}var ay;function yE(){return ay||(ay=1,(function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=Ed(),u=lb(),o=d(vE()),c=ub();function d(h){return h&&h.__esModule?h:{default:h}}var p=(h,m,y,g,b)=>{const S=m.localName,T=m.local,O=m.remote,M=m.originForSending,R=m.originForReceiving;let F=!1;b(`${S}: Connecting call sender`);const B=$=>function(){for(var z=arguments.length,k=new Array(z),j=0;j<z;j++)k[j]=arguments[j];b(`${S}: Sending ${$}() call`);let Q;try{O.closed&&(Q=!0)}catch{Q=!0}if(Q&&g(),F){const ie=new Error(`Unable to send ${$}() call due to destroyed connection`);throw ie.code=u.ERR_CONNECTION_DESTROYED,ie}return new Promise((ie,he)=>{const fe=(0,o.default)(),le=me=>{if(me.source!==O||me.data.penpal!==i.REPLY||me.data.id!==fe)return;if(me.origin!==R){b(`${S} received message from origin ${me.origin} which did not match expected origin ${R}`);return}b(`${S}: Received ${$}() reply`),T.removeEventListener(i.MESSAGE,le);let Ne=me.data.returnValue;me.data.returnValueIsError&&(Ne=(0,c.deserializeError)(Ne)),(me.data.resolution===i.FULFILLED?ie:he)(Ne)};T.addEventListener(i.MESSAGE,le),O.postMessage({penpal:i.CALL,id:fe,methodName:$,args:k},M)})};return y.reduce(($,z)=>($[z]=B(z),$),h),()=>{F=!0}};n.default=p,r.exports=n.default})(yu,yu.exports)),yu.exports}var bu={exports:{}},iy;function gE(){return iy||(iy=1,(function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=u=>function(){if(u){for(var o=arguments.length,c=new Array(o),d=0;d<o;d++)c[d]=arguments[d];console.log("[Penpal]",...c)}};n.default=i,r.exports=n.default})(bu,bu.exports)),bu.exports}var ly;function bE(){return ly||(ly=1,(function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=Ed(),u=lb(),o=h(mE()),c=h(pE()),d=h(yE()),p=h(gE());function h(y){return y&&y.__esModule?y:{default:y}}var m=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=g.parentOrigin,S=b===void 0?"*":b,T=g.methods,O=T===void 0?{}:T,M=g.timeout,R=g.debug;const F=(0,p.default)(R);if(window===window.top){const ie=new Error("connectToParent() must be called within an iframe");throw ie.code=u.ERR_NOT_IN_IFRAME,ie}const B=(0,o.default)(),$=B.destroy,z=B.onDestroy,k=window,j=k.parent;return{promise:new Promise((ie,he)=>{let fe;M!==void 0&&(fe=setTimeout(()=>{const me=new Error(`Connection to parent timed out after ${M}ms`);me.code=u.ERR_CONNECTION_TIMEOUT,he(me),$()},M));const le=me=>{try{clearTimeout()}catch{return}if(me.source!==j||me.data.penpal!==i.HANDSHAKE_REPLY)return;if(S!=="*"&&S!==me.origin){F(`Child received handshake reply from origin ${me.origin} which did not match expected origin ${S}`);return}F("Child: Received handshake reply"),k.removeEventListener(i.MESSAGE,le);const Ne={localName:"Child",local:k,remote:j,originForSending:me.origin==="null"?"*":me.origin,originForReceiving:me.origin},_e={},U=(0,c.default)(Ne,O,F);z(U);const X=(0,d.default)(_e,Ne,me.data.methodNames,$,F);z(X),clearTimeout(fe),ie(_e)};k.addEventListener(i.MESSAGE,le),z(()=>{k.removeEventListener(i.MESSAGE,le);const me=new Error("Connection destroyed");me.code=u.ERR_CONNECTION_DESTROYED,he(me)}),F("Child: Sending handshake"),j.postMessage({penpal:i.HANDSHAKE,methodNames:Object.keys(O)},S)}),destroy:$}};n.default=m,r.exports=n.default})(mu,mu.exports)),mu.exports}var _E=bE();const SE=eo(_E);var fn=function(){return fn=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},fn.apply(this,arguments)};function uy(r,n){for(var i=fn({},r),u=0,o=n;u<o.length;u++){var c=o[u];delete i[c]}return i}function Lc(r){return function(n,i){if(r){for(var u={},o=0,c=n;o<c.length;o++){var d=c[o],p=i.itemTypes[d.relationships.item_type.data.id];u[d.id]=r(d,fn(fn({},i),{itemType:p}))}return u}}}function Un(r,n){var i=function(u,o,c){if(c.mode===r){var d=TE(o),p=function(h){n(u,fn(fn(fn({},o),h),d))};return p(c),p}};return i.mode=r,i}function ki(r,n){var i=function(u,o,c){if(c.mode===r){var d=function(p){n(u,fn(fn({},o),p))};return d(c),d}};return i.mode=r,i}function EE(){for(var r=document.querySelectorAll("body *"),n=0,i=0;i<r.length;i++)n=Math.max(r[i].getBoundingClientRect().bottom,n);return n}var TE=function(r){var n=null,i=function(m){var y=m===void 0?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,EE()):m;y!==n&&(r.setHeight(y),n=y)},u=null,o=null,c=function(){return i()},d=function(){i(),u||(u=new ResizeObserver(c),u.observe(document.documentElement)),o||(o=new MutationObserver(c),o.observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))},p=function(){u&&(u.disconnect(),u=null),o&&(o.disconnect(),o=null)},h=function(){return!!u};return{updateHeight:i,startAutoResizer:d,stopAutoResizer:p,isAutoResizerActive:h}},OE=Un("renderAssetSource",function(r,n){r.renderAssetSource&&r.renderAssetSource(n.assetSourceId,n)}),wE=Un("renderConfigScreen",function(r,n){r.renderConfigScreen&&r.renderConfigScreen(n)}),CE=Un("renderFieldExtension",function(r,n){r.renderFieldExtension&&r.renderFieldExtension(n.fieldExtensionId,n)}),AE=ki("renderInspector",function(r,n){r.renderInspector&&r.renderInspector(n.inspectorId,n)}),xE=ki("renderInspectorPanel",function(r,n){r.renderInspectorPanel&&r.renderInspectorPanel(n.panelId,n)}),ME=Un("renderItemCollectionOutlet",function(r,n){r.renderItemCollectionOutlet&&r.renderItemCollectionOutlet(n.itemCollectionOutletId,n)}),RE=Un("renderItemFormOutlet",function(r,n){r.renderItemFormOutlet&&r.renderItemFormOutlet(n.itemFormOutletId,n)}),DE=ki("renderItemFormSidebar",function(r,n){r.renderItemFormSidebar&&r.renderItemFormSidebar(n.sidebarId,n)}),qE=Un("renderItemFormSidebarPanel",function(r,n){r.renderItemFormSidebarPanel&&r.renderItemFormSidebarPanel(n.sidebarPaneId,n)}),LE=Un("renderManualFieldExtensionConfigScreen",function(r,n){r.renderManualFieldExtensionConfigScreen&&r.renderManualFieldExtensionConfigScreen(n.fieldExtensionId,n)}),zE=Un("renderModal",function(r,n){r.renderModal&&r.renderModal(n.modalId,n)}),UE=ki("renderPage",function(r,n){r.renderPage&&r.renderPage(n.pageId,n)}),NE=ki("renderUploadSidebar",function(r,n){r.renderUploadSidebar&&r.renderUploadSidebar(n.sidebarId,n)}),jE=Un("renderUploadSidebarPanel",function(r,n){r.renderUploadSidebarPanel&&r.renderUploadSidebarPanel(n.sidebarPaneId,n)}),Kt=function(){return Kt=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Kt.apply(this,arguments)},HE=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(y){try{m(u.next(y))}catch(g){d(g)}}function h(y){try{m(u.throw(y))}catch(g){d(g)}}function m(y){y.done?c(y.value):o(y.value).then(p,h)}m((u=u.apply(r,n||[])).next())})},VE=function(r,n){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},u,o,c,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=p(0),d.throw=p(1),d.return=p(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function p(m){return function(y){return h([m,y])}}function h(m){if(u)throw new TypeError("Generator is already executing.");for(;d&&(d=0,m[0]&&(i=0)),i;)try{if(u=1,o&&(c=m[0]&2?o.return:m[0]?o.throw||((c=o.return)&&c.call(o),0):o.next)&&!(c=c.call(o,m[1])).done)return c;switch(o=0,c&&(m=[m[0]&2,c.value]),m[0]){case 0:case 1:c=m;break;case 4:return i.label++,{value:m[1],done:!1};case 5:i.label++,o=m[1],m=[0];continue;case 7:m=i.ops.pop(),i.trys.pop();continue;default:if(c=i.trys,!(c=c.length>0&&c[c.length-1])&&(m[0]===6||m[0]===2)){i=0;continue}if(m[0]===3&&(!c||m[1]>c[0]&&m[1]<c[3])){i.label=m[1];break}if(m[0]===6&&i.label<c[1]){i.label=c[1],c=m;break}if(c&&i.label<c[2]){i.label=c[2],i.ops.push(m);break}c[2]&&i.ops.pop(),i.trys.pop();continue}m=n.call(r,i)}catch(y){m=[6,y],o=0}finally{u=c=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},oy=function(r,n,i){if(i||arguments.length===2)for(var u=0,o=n.length,c;u<o;u++)(c||!(u in n))&&(c||(c=Array.prototype.slice.call(n,0,u)),c[u]=n[u]);return r.concat(c||Array.prototype.slice.call(n))};function sy(r){if(!(typeof document>"u")){var n=r?.colorScheme;n!=="light"&&n!=="dark"||document.documentElement.dataset.colorScheme!==n&&(document.documentElement.dataset.colorScheme=n,document.documentElement.style.colorScheme=n)}}function GE(){return HE(this,arguments,void 0,function(r){var n,i,u,o,c,d,p,h,m,y,g,b;return r===void 0&&(r={}),VE(this,function(S){switch(S.label){case 0:return n=null,i=null,u=Kt(Kt({},r),{overrideFieldExtensions:Lc(r.overrideFieldExtensions),customMarksForStructuredTextField:Lc(r.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:Lc(r.customBlockStylesForStructuredTextField)}),o=SE({methods:Kt(Kt({sdkVersion:function(){return"0.3.1"},implementedHooks:function(){return Object.fromEntries(Object.keys(r).map(function(T){return[T,!0]}))}},Object.fromEntries(Object.entries(u).filter(function(T){var O=T[0];return!O.startsWith("render")}))),{onChange:function(T){sy(T),n&&n(T)},callMethodMergingBootCtx:function(T,O,M,R,F){return i?i(T,O,M,R,F):null}})}),[4,o.promise];case 1:return c=S.sent(),[4,c.getSettings()];case 2:for(d=S.sent(),sy(d),d.mode==="onBoot"&&(p=d,n=function(T){p=T},i=function(T,O,M,R,F){var B;if(T in u)return(B=u)[T].apply(B,oy(oy([],O,!1),[Kt(Kt(Kt(Kt({},uy(c,["getSettings","setHeight"])),uy(p,["mode","bodyPadding"])),Object.fromEntries(R.map(function($){return[$,function(){for(var k=[],j=0;j<arguments.length;j++)k[j]=arguments[j];return c.callAdditionalCtxMethod(F,$,k)}]}))),M)],!1))},u.onBoot&&u.onBoot(Kt(Kt({},c),p))),h={renderAssetSource:OE,renderConfigScreen:wE,renderFieldExtension:CE,renderItemCollectionOutlet:ME,renderItemFormOutlet:RE,renderItemFormSidebar:DE,renderItemFormSidebarPanel:qE,renderManualFieldExtensionConfigScreen:LE,renderModal:zE,renderPage:UE,renderInspector:AE,renderInspectorPanel:xE,renderUploadSidebar:NE,renderUploadSidebarPanel:jE},m=0,y=Object.values(h);m<y.length;m++)if(g=y[m],b=g(u,c,d),b){n=b;break}return[2]}})})}var zc={exports:{}},vt={};var cy;function BE(){if(cy)return vt;cy=1;var r=Sd();function n(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(h,m,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:h,containerInfo:m,implementation:y}}var d=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,vt.createPortal=function(h,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(n(299));return c(h,m,null,y)},vt.flushSync=function(h){var m=d.T,y=u.p;try{if(d.T=null,u.p=2,h)return h()}finally{d.T=m,u.p=y,u.d.f()}},vt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(h,m))},vt.prefetchDNS=function(h){typeof h=="string"&&u.d.D(h)},vt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var y=m.as,g=p(y,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?u.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:S}):y==="script"&&u.d.X(h,{crossOrigin:g,integrity:b,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},vt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=p(m.as,m.crossOrigin);u.d.M(h,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(h)},vt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,g=p(y,m.crossOrigin);u.d.L(h,y,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},vt.preloadModule=function(h,m){if(typeof h=="string")if(m){var y=p(m.as,m.crossOrigin);u.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(h)},vt.requestFormReset=function(h){u.d.r(h)},vt.unstable_batchedUpdates=function(h,m){return h(m)},vt.useFormState=function(h,m,y){return d.H.useFormState(h,m,y)},vt.useFormStatus=function(){return d.H.useHostTransitionStatus()},vt.version="19.2.4",vt}var fy;function ob(){if(fy)return zc.exports;fy=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(n){console.error(n)}}return r(),zc.exports=BE(),zc.exports}var IE=ob();const PE="_fieldError_kqzsn_1",YE={fieldError:PE};function $E(r){var n=r.children;return ye.createElement("div",{className:YE.fieldError},n)}const FE="_FieldGroup_uz9ju_1",kE="_FieldGroup__item_uz9ju_5",dy={FieldGroup:FE,FieldGroup__item:kE};var Jf=function(){return Jf=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Jf.apply(this,arguments)},XE=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i};function KE(r){var n=r.children,i=r.className,u=XE(r,["children","className"]),o=jt(dy.FieldGroup,i);return ye.createElement("div",Jf({},u,{className:o}),ye.Children.map(n,function(c){return c&&ye.createElement("div",{className:dy.FieldGroup__item},c)}))}const QE="_fieldHint_1q1d1_1",ZE={fieldHint:QE};function JE(r){var n=r.children;return ye.createElement("div",{className:ZE.fieldHint},n)}var Wf=function(){return Wf=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Wf.apply(this,arguments)};function to(r){var n=r.id,i=r.label,u=r.hint,o=r.error,c=r.required,d=r.formLabelProps,p=r.children;return ye.createElement(ye.Fragment,null,ye.createElement(oT,Wf({},d,{htmlFor:n,required:c,error:!!o}),i),p,o&&ye.createElement($E,null,o),u&&ye.createElement(JE,null,u))}const WE="_Form_5qspp_1",eT="_Form__item_5qspp_5",Uc={Form:WE,Form__item:eT,"Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"};var ed=function(){return ed=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},ed.apply(this,arguments)},tT=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i},nT=function(r){var n=r.children,i=r.className,u=r.onSubmit,o=r.spacing,c=o===void 0?"default":o,d=tT(r,["children","className","onSubmit","spacing"]),p=jt(Uc.Form,i),h=jt(Uc.Form__item,Uc["Form__item--".concat(c)]),m=Y.useCallback(function(y){y.preventDefault(),u&&u(y)},[u]);return ye.createElement("form",ed({className:p,onSubmit:m},d),Y.Children.map(n,function(y){return y?ye.createElement("div",{className:h},y):null}))};const rT="_formLabel_12h4v_1",aT="_formLabel__code_12h4v_8",iT="_formLabel__label_12h4v_18",lT="_formLabel__required_12h4v_30",zi={formLabel:rT,formLabel__code:aT,"formLabel--error":"_formLabel--error_12h4v_14",formLabel__label:iT,formLabel__required:lT};var td=function(){return td=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},td.apply(this,arguments)},uT=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i},oT=function(r){var n,i=r.children,u=r.className,o=r.htmlFor,c=r.code,d=r.required,p=d===void 0?!1:d,h=r.error,m=h===void 0?!1:h,y=uT(r,["children","className","htmlFor","code","required","error"]),g=jt(zi.formLabel,u,(n={},n[zi["formLabel--error"]]=m,n));return ye.createElement("label",td({className:g,htmlFor:o},y),ye.createElement("span",{className:zi.formLabel__label},i,p&&ye.createElement("span",{className:zi.formLabel__required},"*")),c&&ye.createElement("span",{className:zi.formLabel__code},c))};const sT="_Section_12uz1_1",cT="_Section__header_12uz1_22",fT="_Section__arrow_12uz1_31",dT="_Section__title_12uz1_36",hT="_Section__title__content_12uz1_58",sr={Section:sT,"Section--highlighted":"_Section--highlighted_12uz1_8",Section__header:cT,"Section__header--clickable":"_Section__header--clickable_12uz1_27",Section__arrow:fT,Section__title:dT,Section__title__content:hT,"Section__arrow--is-open":"_Section__arrow--is-open_12uz1_88"};function hy(r){var n,i,u,o=r.title,c=r.children,d=r.highlighted,p=r.collapsible,h=r.headerClassName,m=r.titleClassName,y=r.headerStyle,g=r.titleStyle;return ye.createElement("div",{className:jt(sr.Section,(n={},n[sr["Section--highlighted"]]=d,n))},ye.createElement("div",{className:jt(sr.Section__header,(i={},i[sr["Section__header--clickable"]]=p,i),h),style:y,onClick:p?p.onToggle:void 0},ye.createElement("div",{className:jt(sr.Section__title,m),style:g},ye.createElement("span",{className:sr.Section__title__content},p&&ye.createElement("div",{className:jt(sr.Section__arrow,(u={},u[sr["Section__arrow--is-open"]]=p.isOpen,u))}),o))),(!p||p.isOpen)&&c)}var Gu=function(){return Gu=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Gu.apply(this,arguments)};function mT(r){var n=r.id,i=r.name,u=r.label,o=r.hint,c=r.error,d=r.required,p=r.placeholder,h=r.formLabelProps,m=r.value,y=r.onChange,g=r.selectInputProps;return ye.createElement(to,{formLabelProps:h,id:n,required:d,error:c,hint:o,label:u},ye.createElement(uA,Gu({},g,{id:n,name:i,value:m,placeholder:p,onChange:y,error:!!c})))}function pT(r){var n=r.id,i=r.name,u=r.label,o=r.hint,c=r.error,d=r.required,p=r.placeholder,h=r.formLabelProps,m=r.value,y=r.onChange,g=r.selectInputProps;return ye.createElement(to,{formLabelProps:h,id:n,required:d,error:c,hint:o,label:u},ye.createElement(oA,Gu({},g,{id:n,name:i,value:m,placeholder:p,onChange:y,error:!!c})))}function jr(r){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jr(r)}function vT(r,n){if(jr(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var u=i.call(r,n);if(jr(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(r)}function sb(r){var n=vT(r,"string");return jr(n)=="symbol"?n:n+""}function Vi(r,n,i){return(n=sb(n))in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}function my(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);n&&(u=u.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),i.push.apply(i,u)}return i}function ae(r){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?my(Object(i),!0).forEach(function(u){Vi(r,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):my(Object(i)).forEach(function(u){Object.defineProperty(r,u,Object.getOwnPropertyDescriptor(i,u))})}return r}function yT(r){if(Array.isArray(r))return r}function gT(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var u,o,c,d,p=[],h=!0,m=!1;try{if(c=(i=i.call(r)).next,n===0){if(Object(i)!==i)return;h=!1}else for(;!(h=(u=c.call(i)).done)&&(p.push(u.value),p.length!==n);h=!0);}catch(y){m=!0,o=y}finally{try{if(!h&&i.return!=null&&(d=i.return(),Object(d)!==d))return}finally{if(m)throw o}}return p}}function nd(r,n){(n==null||n>r.length)&&(n=r.length);for(var i=0,u=Array(n);i<n;i++)u[i]=r[i];return u}function cb(r,n){if(r){if(typeof r=="string")return nd(r,n);var i={}.toString.call(r).slice(8,-1);return i==="Object"&&r.constructor&&(i=r.constructor.name),i==="Map"||i==="Set"?Array.from(r):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?nd(r,n):void 0}}function bT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ln(r,n){return yT(r)||gT(r,n)||cb(r,n)||bT()}function _T(r,n){if(r==null)return{};var i={};for(var u in r)if({}.hasOwnProperty.call(r,u)){if(n.indexOf(u)!==-1)continue;i[u]=r[u]}return i}function hn(r,n){if(r==null)return{};var i,u,o=_T(r,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);for(u=0;u<c.length;u++)i=c[u],n.indexOf(i)===-1&&{}.propertyIsEnumerable.call(r,i)&&(o[i]=r[i])}return o}var ST=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function fb(r){var n=r.defaultInputValue,i=n===void 0?"":n,u=r.defaultMenuIsOpen,o=u===void 0?!1:u,c=r.defaultValue,d=c===void 0?null:c,p=r.inputValue,h=r.menuIsOpen,m=r.onChange,y=r.onInputChange,g=r.onMenuClose,b=r.onMenuOpen,S=r.value,T=hn(r,ST),O=Y.useState(p!==void 0?p:i),M=Ln(O,2),R=M[0],F=M[1],B=Y.useState(h!==void 0?h:o),$=Ln(B,2),z=$[0],k=$[1],j=Y.useState(S!==void 0?S:d),Q=Ln(j,2),ie=Q[0],he=Q[1],fe=Y.useCallback(function(ee,Se){typeof m=="function"&&m(ee,Se),he(ee)},[m]),le=Y.useCallback(function(ee,Se){var Oe;typeof y=="function"&&(Oe=y(ee,Se)),F(Oe!==void 0?Oe:ee)},[y]),me=Y.useCallback(function(){typeof b=="function"&&b(),k(!0)},[b]),Ne=Y.useCallback(function(){typeof g=="function"&&g(),k(!1)},[g]),_e=p!==void 0?p:R,U=h!==void 0?h:z,X=S!==void 0?S:ie;return ae(ae({},T),{},{inputValue:_e,menuIsOpen:U,onChange:fe,onInputChange:le,onMenuClose:Ne,onMenuOpen:me,value:X})}function se(){return se=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var u in i)({}).hasOwnProperty.call(i,u)&&(r[u]=i[u])}return r},se.apply(null,arguments)}function ET(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function py(r,n){for(var i=0;i<n.length;i++){var u=n[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(r,sb(u.key),u)}}function TT(r,n,i){return n&&py(r.prototype,n),i&&py(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r}function rd(r,n){return rd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,u){return i.__proto__=u,i},rd(r,n)}function OT(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&rd(r,n)}function Bu(r){return Bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bu(r)}function db(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(db=function(){return!!r})()}function wT(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function CT(r,n){if(n&&(jr(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wT(r)}function AT(r){var n=db();return function(){var i,u=Bu(r);if(n){var o=Bu(this).constructor;i=Reflect.construct(u,arguments,o)}else i=u.apply(this,arguments);return CT(this,i)}}function xT(r){if(Array.isArray(r))return nd(r)}function MT(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function RT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ca(r){return xT(r)||MT(r)||cb(r)||RT()}function DT(r){if(r.sheet)return r.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===r)return document.styleSheets[n]}function qT(r){var n=document.createElement("style");return n.setAttribute("data-emotion",r.key),r.nonce!==void 0&&n.setAttribute("nonce",r.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var LT=(function(){function r(i){var u=this;this._insertTag=function(o){var c;u.tags.length===0?u.insertionPoint?c=u.insertionPoint.nextSibling:u.prepend?c=u.container.firstChild:c=u.before:c=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(o,c),u.tags.push(o)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var n=r.prototype;return n.hydrate=function(u){u.forEach(this._insertTag)},n.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(qT(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var c=DT(o);try{c.insertRule(u,c.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(u));this.ctr++},n.flush=function(){this.tags.forEach(function(u){var o;return(o=u.parentNode)==null?void 0:o.removeChild(u)}),this.tags=[],this.ctr=0},r})(),yt="-ms-",Iu="-moz-",qe="-webkit-",hb="comm",Td="rule",Od="decl",zT="@import",mb="@keyframes",UT="@layer",NT=Math.abs,no=String.fromCharCode,jT=Object.assign;function HT(r,n){return pt(r,0)^45?(((n<<2^pt(r,0))<<2^pt(r,1))<<2^pt(r,2))<<2^pt(r,3):0}function pb(r){return r.trim()}function VT(r,n){return(r=n.exec(r))?r[0]:r}function Le(r,n,i){return r.replace(n,i)}function ad(r,n){return r.indexOf(n)}function pt(r,n){return r.charCodeAt(n)|0}function Ii(r,n,i){return r.slice(n,i)}function sn(r){return r.length}function wd(r){return r.length}function _u(r,n){return n.push(r),r}function GT(r,n){return r.map(n).join("")}var ro=1,ja=1,vb=0,Ct=0,it=0,Ha="";function ao(r,n,i,u,o,c,d){return{value:r,root:n,parent:i,type:u,props:o,children:c,line:ro,column:ja,length:d,return:""}}function Ui(r,n){return jT(ao("",null,null,"",null,null,0),r,{length:-r.length},n)}function BT(){return it}function IT(){return it=Ct>0?pt(Ha,--Ct):0,ja--,it===10&&(ja=1,ro--),it}function Ht(){return it=Ct<vb?pt(Ha,Ct++):0,ja++,it===10&&(ja=1,ro++),it}function dn(){return pt(Ha,Ct)}function qu(){return Ct}function Xi(r,n){return Ii(Ha,r,n)}function Pi(r){switch(r){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 yb(r){return ro=ja=1,vb=sn(Ha=r),Ct=0,[]}function gb(r){return Ha="",r}function Lu(r){return pb(Xi(Ct-1,id(r===91?r+2:r===40?r+1:r)))}function PT(r){for(;(it=dn())&&it<33;)Ht();return Pi(r)>2||Pi(it)>3?"":" "}function YT(r,n){for(;--n&&Ht()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return Xi(r,qu()+(n<6&&dn()==32&&Ht()==32))}function id(r){for(;Ht();)switch(it){case r:return Ct;case 34:case 39:r!==34&&r!==39&&id(it);break;case 40:r===41&&id(r);break;case 92:Ht();break}return Ct}function $T(r,n){for(;Ht()&&r+it!==57;)if(r+it===84&&dn()===47)break;return"/*"+Xi(n,Ct-1)+"*"+no(r===47?r:Ht())}function FT(r){for(;!Pi(dn());)Ht();return Xi(r,Ct)}function kT(r){return gb(zu("",null,null,null,[""],r=yb(r),0,[0],r))}function zu(r,n,i,u,o,c,d,p,h){for(var m=0,y=0,g=d,b=0,S=0,T=0,O=1,M=1,R=1,F=0,B="",$=o,z=c,k=u,j=B;M;)switch(T=F,F=Ht()){case 40:if(T!=108&&pt(j,g-1)==58){ad(j+=Le(Lu(F),"&","&\f"),"&\f")!=-1&&(R=-1);break}case 34:case 39:case 91:j+=Lu(F);break;case 9:case 10:case 13:case 32:j+=PT(T);break;case 92:j+=YT(qu()-1,7);continue;case 47:switch(dn()){case 42:case 47:_u(XT($T(Ht(),qu()),n,i),h);break;default:j+="/"}break;case 123*O:p[m++]=sn(j)*R;case 125*O:case 59:case 0:switch(F){case 0:case 125:M=0;case 59+y:R==-1&&(j=Le(j,/\f/g,"")),S>0&&sn(j)-g&&_u(S>32?yy(j+";",u,i,g-1):yy(Le(j," ","")+";",u,i,g-2),h);break;case 59:j+=";";default:if(_u(k=vy(j,n,i,m,y,o,p,B,$=[],z=[],g),c),F===123)if(y===0)zu(j,n,k,k,$,c,g,p,z);else switch(b===99&&pt(j,3)===110?100:b){case 100:case 108:case 109:case 115:zu(r,k,k,u&&_u(vy(r,k,k,0,0,o,p,B,o,$=[],g),z),o,z,g,p,u?$:z);break;default:zu(j,k,k,k,[""],z,0,p,z)}}m=y=S=0,O=R=1,B=j="",g=d;break;case 58:g=1+sn(j),S=T;default:if(O<1){if(F==123)--O;else if(F==125&&O++==0&&IT()==125)continue}switch(j+=no(F),F*O){case 38:R=y>0?1:(j+="\f",-1);break;case 44:p[m++]=(sn(j)-1)*R,R=1;break;case 64:dn()===45&&(j+=Lu(Ht())),b=dn(),y=g=sn(B=j+=FT(qu())),F++;break;case 45:T===45&&sn(j)==2&&(O=0)}}return c}function vy(r,n,i,u,o,c,d,p,h,m,y){for(var g=o-1,b=o===0?c:[""],S=wd(b),T=0,O=0,M=0;T<u;++T)for(var R=0,F=Ii(r,g+1,g=NT(O=d[T])),B=r;R<S;++R)(B=pb(O>0?b[R]+" "+F:Le(F,/&\f/g,b[R])))&&(h[M++]=B);return ao(r,n,i,o===0?Td:p,h,m,y)}function XT(r,n,i){return ao(r,n,i,hb,no(BT()),Ii(r,2,-2),0)}function yy(r,n,i,u){return ao(r,n,i,Od,Ii(r,0,u),Ii(r,u+1,-1),u)}function Aa(r,n){for(var i="",u=wd(r),o=0;o<u;o++)i+=n(r[o],o,r,n)||"";return i}function KT(r,n,i,u){switch(r.type){case UT:if(r.children.length)break;case zT:case Od:return r.return=r.return||r.value;case hb:return"";case mb:return r.return=r.value+"{"+Aa(r.children,u)+"}";case Td:r.value=r.props.join(",")}return sn(i=Aa(r.children,u))?r.return=r.value+"{"+i+"}":""}function QT(r){var n=wd(r);return function(i,u,o,c){for(var d="",p=0;p<n;p++)d+=r[p](i,u,o,c)||"";return d}}function ZT(r){return function(n){n.root||(n=n.return)&&r(n)}}function JT(r){var n=Object.create(null);return function(i){return n[i]===void 0&&(n[i]=r(i)),n[i]}}var WT=function(n,i,u){for(var o=0,c=0;o=c,c=dn(),o===38&&c===12&&(i[u]=1),!Pi(c);)Ht();return Xi(n,Ct)},eO=function(n,i){var u=-1,o=44;do switch(Pi(o)){case 0:o===38&&dn()===12&&(i[u]=1),n[u]+=WT(Ct-1,i,u);break;case 2:n[u]+=Lu(o);break;case 4:if(o===44){n[++u]=dn()===58?"&\f":"",i[u]=n[u].length;break}default:n[u]+=no(o)}while(o=Ht());return n},tO=function(n,i){return gb(eO(yb(n),i))},gy=new WeakMap,nO=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var i=n.value,u=n.parent,o=n.column===u.column&&n.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(n.props.length===1&&i.charCodeAt(0)!==58&&!gy.get(u))&&!o){gy.set(n,!0);for(var c=[],d=tO(i,c),p=u.props,h=0,m=0;h<d.length;h++)for(var y=0;y<p.length;y++,m++)n.props[m]=c[h]?d[h].replace(/&\f/g,p[y]):p[y]+" "+d[h]}}},rO=function(n){if(n.type==="decl"){var i=n.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(n.return="",n.value="")}};function bb(r,n){switch(HT(r,n)){case 5103:return qe+"print-"+r+r;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 qe+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return qe+r+Iu+r+yt+r+r;case 6828:case 4268:return qe+r+yt+r+r;case 6165:return qe+r+yt+"flex-"+r+r;case 5187:return qe+r+Le(r,/(\w+).+(:[^]+)/,qe+"box-$1$2"+yt+"flex-$1$2")+r;case 5443:return qe+r+yt+"flex-item-"+Le(r,/flex-|-self/,"")+r;case 4675:return qe+r+yt+"flex-line-pack"+Le(r,/align-content|flex-|-self/,"")+r;case 5548:return qe+r+yt+Le(r,"shrink","negative")+r;case 5292:return qe+r+yt+Le(r,"basis","preferred-size")+r;case 6060:return qe+"box-"+Le(r,"-grow","")+qe+r+yt+Le(r,"grow","positive")+r;case 4554:return qe+Le(r,/([^-])(transform)/g,"$1"+qe+"$2")+r;case 6187:return Le(Le(Le(r,/(zoom-|grab)/,qe+"$1"),/(image-set)/,qe+"$1"),r,"")+r;case 5495:case 3959:return Le(r,/(image-set\([^]*)/,qe+"$1$`$1");case 4968:return Le(Le(r,/(.+:)(flex-)?(.*)/,qe+"box-pack:$3"+yt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qe+r+r;case 4095:case 3583:case 4068:case 2532:return Le(r,/(.+)-inline(.+)/,qe+"$1$2")+r;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(sn(r)-1-n>6)switch(pt(r,n+1)){case 109:if(pt(r,n+4)!==45)break;case 102:return Le(r,/(.+:)(.+)-([^]+)/,"$1"+qe+"$2-$3$1"+Iu+(pt(r,n+3)==108?"$3":"$2-$3"))+r;case 115:return~ad(r,"stretch")?bb(Le(r,"stretch","fill-available"),n)+r:r}break;case 4949:if(pt(r,n+1)!==115)break;case 6444:switch(pt(r,sn(r)-3-(~ad(r,"!important")&&10))){case 107:return Le(r,":",":"+qe)+r;case 101:return Le(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qe+(pt(r,14)===45?"inline-":"")+"box$3$1"+qe+"$2$3$1"+yt+"$2box$3")+r}break;case 5936:switch(pt(r,n+11)){case 114:return qe+r+yt+Le(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return qe+r+yt+Le(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return qe+r+yt+Le(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return qe+r+yt+r+r}return r}var aO=function(n,i,u,o){if(n.length>-1&&!n.return)switch(n.type){case Od:n.return=bb(n.value,n.length);break;case mb:return Aa([Ui(n,{value:Le(n.value,"@","@"+qe)})],o);case Td:if(n.length)return GT(n.props,function(c){switch(VT(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Aa([Ui(n,{props:[Le(c,/:(read-\w+)/,":"+Iu+"$1")]})],o);case"::placeholder":return Aa([Ui(n,{props:[Le(c,/:(plac\w+)/,":"+qe+"input-$1")]}),Ui(n,{props:[Le(c,/:(plac\w+)/,":"+Iu+"$1")]}),Ui(n,{props:[Le(c,/:(plac\w+)/,yt+"input-$1")]})],o)}return""})}},iO=[aO],lO=function(n){var i=n.key;if(i==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(O){var M=O.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var o=n.stylisPlugins||iO,c={},d,p=[];d=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(O){for(var M=O.getAttribute("data-emotion").split(" "),R=1;R<M.length;R++)c[M[R]]=!0;p.push(O)});var h,m=[nO,rO];{var y,g=[KT,ZT(function(O){y.insert(O)})],b=QT(m.concat(o,g)),S=function(M){return Aa(kT(M),b)};h=function(M,R,F,B){y=F,S(M?M+"{"+R.styles+"}":R.styles),B&&(T.inserted[R.name]=!0)}}var T={key:i,sheet:new LT({key:i,container:d,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:c,registered:{},insert:h};return T.sheet.hydrate(p),T},Nc={exports:{}},Ue={};var by;function uO(){if(by)return Ue;by=1;var r=typeof Symbol=="function"&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,u=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,p=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,m=r?Symbol.for("react.concurrent_mode"):60111,y=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,S=r?Symbol.for("react.memo"):60115,T=r?Symbol.for("react.lazy"):60116,O=r?Symbol.for("react.block"):60121,M=r?Symbol.for("react.fundamental"):60117,R=r?Symbol.for("react.responder"):60118,F=r?Symbol.for("react.scope"):60119;function B(z){if(typeof z=="object"&&z!==null){var k=z.$$typeof;switch(k){case n:switch(z=z.type,z){case h:case m:case u:case c:case o:case g:return z;default:switch(z=z&&z.$$typeof,z){case p:case y:case T:case S:case d:return z;default:return k}}case i:return k}}}function $(z){return B(z)===m}return Ue.AsyncMode=h,Ue.ConcurrentMode=m,Ue.ContextConsumer=p,Ue.ContextProvider=d,Ue.Element=n,Ue.ForwardRef=y,Ue.Fragment=u,Ue.Lazy=T,Ue.Memo=S,Ue.Portal=i,Ue.Profiler=c,Ue.StrictMode=o,Ue.Suspense=g,Ue.isAsyncMode=function(z){return $(z)||B(z)===h},Ue.isConcurrentMode=$,Ue.isContextConsumer=function(z){return B(z)===p},Ue.isContextProvider=function(z){return B(z)===d},Ue.isElement=function(z){return typeof z=="object"&&z!==null&&z.$$typeof===n},Ue.isForwardRef=function(z){return B(z)===y},Ue.isFragment=function(z){return B(z)===u},Ue.isLazy=function(z){return B(z)===T},Ue.isMemo=function(z){return B(z)===S},Ue.isPortal=function(z){return B(z)===i},Ue.isProfiler=function(z){return B(z)===c},Ue.isStrictMode=function(z){return B(z)===o},Ue.isSuspense=function(z){return B(z)===g},Ue.isValidElementType=function(z){return typeof z=="string"||typeof z=="function"||z===u||z===m||z===c||z===o||z===g||z===b||typeof z=="object"&&z!==null&&(z.$$typeof===T||z.$$typeof===S||z.$$typeof===d||z.$$typeof===p||z.$$typeof===y||z.$$typeof===M||z.$$typeof===R||z.$$typeof===F||z.$$typeof===O)},Ue.typeOf=B,Ue}var _y;function oO(){return _y||(_y=1,Nc.exports=uO()),Nc.exports}var jc,Sy;function sO(){if(Sy)return jc;Sy=1;var r=oO(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[r.ForwardRef]=u,c[r.Memo]=o;function d(T){return r.isMemo(T)?o:c[T.$$typeof]||n}var p=Object.defineProperty,h=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,b=Object.prototype;function S(T,O,M){if(typeof O!="string"){if(b){var R=g(O);R&&R!==b&&S(T,R,M)}var F=h(O);m&&(F=F.concat(m(O)));for(var B=d(T),$=d(O),z=0;z<F.length;++z){var k=F[z];if(!i[k]&&!(M&&M[k])&&!($&&$[k])&&!(B&&B[k])){var j=y(O,k);try{p(T,k,j)}catch{}}}}return T}return jc=S,jc}sO();var cO=!0;function fO(r,n,i){var u="";return i.split(" ").forEach(function(o){r[o]!==void 0?n.push(r[o]+";"):o&&(u+=o+" ")}),u}var _b=function(n,i,u){var o=n.key+"-"+i.name;(u===!1||cO===!1)&&n.registered[o]===void 0&&(n.registered[o]=i.styles)},dO=function(n,i,u){_b(n,i,u);var o=n.key+"-"+i.name;if(n.inserted[i.name]===void 0){var c=i;do n.insert(i===c?"."+o:"",c,n.sheet,!0),c=c.next;while(c!==void 0)}};function hO(r){for(var n=0,i,u=0,o=r.length;o>=4;++u,o-=4)i=r.charCodeAt(u)&255|(r.charCodeAt(++u)&255)<<8|(r.charCodeAt(++u)&255)<<16|(r.charCodeAt(++u)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,n=(i&65535)*1540483477+((i>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(r.charCodeAt(u+2)&255)<<16;case 2:n^=(r.charCodeAt(u+1)&255)<<8;case 1:n^=r.charCodeAt(u)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var mO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},pO=/[A-Z]|^ms/g,vO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sb=function(n){return n.charCodeAt(1)===45},Ey=function(n){return n!=null&&typeof n!="boolean"},Hc=JT(function(r){return Sb(r)?r:r.replace(pO,"-$&").toLowerCase()}),Ty=function(n,i){switch(n){case"animation":case"animationName":if(typeof i=="string")return i.replace(vO,function(u,o,c){return cn={name:o,styles:c,next:cn},o})}return mO[n]!==1&&!Sb(n)&&typeof i=="number"&&i!==0?i+"px":i};function Yi(r,n,i){if(i==null)return"";var u=i;if(u.__emotion_styles!==void 0)return u;switch(typeof i){case"boolean":return"";case"object":{var o=i;if(o.anim===1)return cn={name:o.name,styles:o.styles,next:cn},o.name;var c=i;if(c.styles!==void 0){var d=c.next;if(d!==void 0)for(;d!==void 0;)cn={name:d.name,styles:d.styles,next:cn},d=d.next;var p=c.styles+";";return p}return yO(r,n,i)}case"function":{if(r!==void 0){var h=cn,m=i(r);return cn=h,Yi(r,n,m)}break}}var y=i;return y}function yO(r,n,i){var u="";if(Array.isArray(i))for(var o=0;o<i.length;o++)u+=Yi(r,n,i[o])+";";else for(var c in i){var d=i[c];if(typeof d!="object"){var p=d;Ey(p)&&(u+=Hc(c)+":"+Ty(c,p)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&n==null)for(var h=0;h<d.length;h++)Ey(d[h])&&(u+=Hc(c)+":"+Ty(c,d[h])+";");else{var m=Yi(r,n,d);switch(c){case"animation":case"animationName":{u+=Hc(c)+":"+m+";";break}default:u+=c+"{"+m+"}"}}}return u}var Oy=/label:\s*([^\s;{]+)\s*(;|$)/g,cn;function Eb(r,n,i){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var u=!0,o="";cn=void 0;var c=r[0];if(c==null||c.raw===void 0)u=!1,o+=Yi(i,n,c);else{var d=c;o+=d[0]}for(var p=1;p<r.length;p++)if(o+=Yi(i,n,r[p]),u){var h=c;o+=h[p]}Oy.lastIndex=0;for(var m="",y;(y=Oy.exec(o))!==null;)m+="-"+y[1];var g=hO(o)+m;return{name:g,styles:o,next:cn}}var gO=function(n){return n()},bO=Xv.useInsertionEffect?Xv.useInsertionEffect:!1,_O=bO||gO,Tb=Y.createContext(typeof HTMLElement<"u"?lO({key:"css"}):null);Tb.Provider;var SO=function(n){return Y.forwardRef(function(i,u){var o=Y.useContext(Tb);return n(i,o,u)})},EO=Y.createContext({}),Cd={}.hasOwnProperty,ld="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",TO=function(n,i){var u={};for(var o in i)Cd.call(i,o)&&(u[o]=i[o]);return u[ld]=n,u},OO=function(n){var i=n.cache,u=n.serialized,o=n.isStringTag;return _b(i,u,o),_O(function(){return dO(i,u,o)}),null},wO=SO(function(r,n,i){var u=r.css;typeof u=="string"&&n.registered[u]!==void 0&&(u=n.registered[u]);var o=r[ld],c=[u],d="";typeof r.className=="string"?d=fO(n.registered,c,r.className):r.className!=null&&(d=r.className+" ");var p=Eb(c,void 0,Y.useContext(EO));d+=n.key+"-"+p.name;var h={};for(var m in r)Cd.call(r,m)&&m!=="css"&&m!==ld&&(h[m]=r[m]);return h.className=d,i&&(h.ref=i),Y.createElement(Y.Fragment,null,Y.createElement(OO,{cache:n,serialized:p,isStringTag:typeof o=="string"}),Y.createElement(o,h))}),CO=wO,re=function(n,i){var u=arguments;if(i==null||!Cd.call(i,"css"))return Y.createElement.apply(void 0,u);var o=u.length,c=new Array(o);c[0]=CO,c[1]=TO(n,i);for(var d=2;d<o;d++)c[d]=u[d];return Y.createElement.apply(null,c)};(function(r){var n;n||(n=r.JSX||(r.JSX={}))})(re||(re={}));function Ad(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Eb(n)}function AO(){var r=Ad.apply(void 0,arguments),n="animation-"+r.name;return{name:n,styles:"@keyframes "+n+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function xO(r,n){return n||(n=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(n)}}))}const MO=Math.min,RO=Math.max,Pu=Math.round,Su=Math.floor,Yu=r=>({x:r,y:r});function DO(r){const{x:n,y:i,width:u,height:o}=r;return{width:u,height:o,top:i,left:n,right:n+u,bottom:i+o,x:n,y:i}}function io(){return typeof window<"u"}function Ob(r){return Cb(r)?(r.nodeName||"").toLowerCase():"#document"}function zn(r){var n;return(r==null||(n=r.ownerDocument)==null?void 0:n.defaultView)||window}function wb(r){var n;return(n=(Cb(r)?r.ownerDocument:r.document)||window.document)==null?void 0:n.documentElement}function Cb(r){return io()?r instanceof Node||r instanceof zn(r).Node:!1}function qO(r){return io()?r instanceof Element||r instanceof zn(r).Element:!1}function xd(r){return io()?r instanceof HTMLElement||r instanceof zn(r).HTMLElement:!1}function wy(r){return!io()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof zn(r).ShadowRoot}function Ab(r){const{overflow:n,overflowX:i,overflowY:u,display:o}=Md(r);return/auto|scroll|overlay|hidden|clip/.test(n+u+i)&&o!=="inline"&&o!=="contents"}let Vc;function LO(){return Vc==null&&(Vc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Vc}function zO(r){return/^(html|body|#document)$/.test(Ob(r))}function Md(r){return zn(r).getComputedStyle(r)}function UO(r){if(Ob(r)==="html")return r;const n=r.assignedSlot||r.parentNode||wy(r)&&r.host||wb(r);return wy(n)?n.host:n}function xb(r){const n=UO(r);return zO(n)?r.ownerDocument?r.ownerDocument.body:r.body:xd(n)&&Ab(n)?n:xb(n)}function $u(r,n,i){var u;n===void 0&&(n=[]),i===void 0&&(i=!0);const o=xb(r),c=o===((u=r.ownerDocument)==null?void 0:u.body),d=zn(o);if(c){const p=ud(d);return n.concat(d,d.visualViewport||[],Ab(o)?o:[],p&&i?$u(p):[])}else return n.concat(o,$u(o,[],i))}function ud(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function NO(r){const n=Md(r);let i=parseFloat(n.width)||0,u=parseFloat(n.height)||0;const o=xd(r),c=o?r.offsetWidth:i,d=o?r.offsetHeight:u,p=Pu(i)!==c||Pu(u)!==d;return p&&(i=c,u=d),{width:i,height:u,$:p}}function Rd(r){return qO(r)?r:r.contextElement}function Cy(r){const n=Rd(r);if(!xd(n))return Yu(1);const i=n.getBoundingClientRect(),{width:u,height:o,$:c}=NO(n);let d=(c?Pu(i.width):i.width)/u,p=(c?Pu(i.height):i.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!p||!Number.isFinite(p))&&(p=1),{x:d,y:p}}const jO=Yu(0);function HO(r){const n=zn(r);return!LO()||!n.visualViewport?jO:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function VO(r,n,i){return!1}function Ay(r,n,i,u){n===void 0&&(n=!1);const o=r.getBoundingClientRect(),c=Rd(r);let d=Yu(1);n&&(d=Cy(r));const p=VO()?HO(c):Yu(0);let h=(o.left+p.x)/d.x,m=(o.top+p.y)/d.y,y=o.width/d.x,g=o.height/d.y;if(c){const b=zn(c),S=u;let T=b,O=ud(T);for(;O&&u&&S!==T;){const M=Cy(O),R=O.getBoundingClientRect(),F=Md(O),B=R.left+(O.clientLeft+parseFloat(F.paddingLeft))*M.x,$=R.top+(O.clientTop+parseFloat(F.paddingTop))*M.y;h*=M.x,m*=M.y,y*=M.x,g*=M.y,h+=B,m+=$,T=zn(O),O=ud(T)}}return DO({width:y,height:g,x:h,y:m})}function Mb(r,n){return r.x===n.x&&r.y===n.y&&r.width===n.width&&r.height===n.height}function GO(r,n){let i=null,u;const o=wb(r);function c(){var p;clearTimeout(u),(p=i)==null||p.disconnect(),i=null}function d(p,h){p===void 0&&(p=!1),h===void 0&&(h=1),c();const m=r.getBoundingClientRect(),{left:y,top:g,width:b,height:S}=m;if(p||n(),!b||!S)return;const T=Su(g),O=Su(o.clientWidth-(y+b)),M=Su(o.clientHeight-(g+S)),R=Su(y),B={rootMargin:-T+"px "+-O+"px "+-M+"px "+-R+"px",threshold:RO(0,MO(1,h))||1};let $=!0;function z(k){const j=k[0].intersectionRatio;if(j!==h){if(!$)return d();j?d(!1,j):u=setTimeout(()=>{d(!1,1e-7)},1e3)}j===1&&!Mb(m,r.getBoundingClientRect())&&d(),$=!1}try{i=new IntersectionObserver(z,{...B,root:o.ownerDocument})}catch{i=new IntersectionObserver(z,B)}i.observe(r)}return d(!0),c}function BO(r,n,i,u){u===void 0&&(u={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:h=!1}=u,m=Rd(r),y=o||c?[...m?$u(m):[],...n?$u(n):[]]:[];y.forEach(R=>{o&&R.addEventListener("scroll",i,{passive:!0}),c&&R.addEventListener("resize",i)});const g=m&&p?GO(m,i):null;let b=-1,S=null;d&&(S=new ResizeObserver(R=>{let[F]=R;F&&F.target===m&&S&&n&&(S.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var B;(B=S)==null||B.observe(n)})),i()}),m&&!h&&S.observe(m),n&&S.observe(n));let T,O=h?Ay(r):null;h&&M();function M(){const R=Ay(r);O&&!Mb(O,R)&&i(),O=R,T=requestAnimationFrame(M)}return i(),()=>{var R;y.forEach(F=>{o&&F.removeEventListener("scroll",i),c&&F.removeEventListener("resize",i)}),g?.(),(R=S)==null||R.disconnect(),S=null,h&&cancelAnimationFrame(T)}}var od=Y.useLayoutEffect,IO=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Fu=function(){};function PO(r,n){return n?n[0]==="-"?r+n:r+"__"+n:r}function YO(r,n){for(var i=arguments.length,u=new Array(i>2?i-2:0),o=2;o<i;o++)u[o-2]=arguments[o];var c=[].concat(u);if(n&&r)for(var d in n)n.hasOwnProperty(d)&&n[d]&&c.push("".concat(PO(r,d)));return c.filter(function(p){return p}).map(function(p){return String(p).trim()}).join(" ")}var ku=function(n){return WO(n)?n.filter(Boolean):jr(n)==="object"&&n!==null?[n]:[]},Rb=function(n){n.className,n.clearValue,n.cx,n.getStyles,n.getClassNames,n.getValue,n.hasValue,n.isMulti,n.isRtl,n.options,n.selectOption,n.selectProps,n.setValue,n.theme;var i=hn(n,IO);return ae({},i)},Je=function(n,i,u){var o=n.cx,c=n.getStyles,d=n.getClassNames,p=n.className;return{css:c(i,n),className:o(u??{},d(i,n),p)}};function lo(r){return[document.documentElement,document.body,window].indexOf(r)>-1}function $O(r){return lo(r)?window.innerHeight:r.clientHeight}function Db(r){return lo(r)?window.pageYOffset:r.scrollTop}function Xu(r,n){if(lo(r)){window.scrollTo(0,n);return}r.scrollTop=n}function FO(r){var n=getComputedStyle(r),i=n.position==="absolute",u=/(auto|scroll)/;if(n.position==="fixed")return document.documentElement;for(var o=r;o=o.parentElement;)if(n=getComputedStyle(o),!(i&&n.position==="static")&&u.test(n.overflow+n.overflowY+n.overflowX))return o;return document.documentElement}function kO(r,n,i,u){return i*((r=r/u-1)*r*r+1)+n}function Eu(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Fu,o=Db(r),c=n-o,d=10,p=0;function h(){p+=d;var m=kO(p,o,c,i);Xu(r,m),p<i?window.requestAnimationFrame(h):u(r)}h()}function xy(r,n){var i=r.getBoundingClientRect(),u=n.getBoundingClientRect(),o=n.offsetHeight/3;u.bottom+o>i.bottom?Xu(r,Math.min(n.offsetTop+n.clientHeight-r.offsetHeight+o,r.scrollHeight)):u.top-o<i.top&&Xu(r,Math.max(n.offsetTop-o,0))}function XO(r){var n=r.getBoundingClientRect();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width}}function My(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function KO(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var qb=!1,QO={get passive(){return qb=!0}},Tu=typeof window<"u"?window:{};Tu.addEventListener&&Tu.removeEventListener&&(Tu.addEventListener("p",Fu,QO),Tu.removeEventListener("p",Fu,!1));var ZO=qb;function JO(r){return r!=null}function WO(r){return Array.isArray(r)}function Gi(r,n,i){return r?n:i}var ew=function(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];var c=Object.entries(n).filter(function(d){var p=Ln(d,1),h=p[0];return!u.includes(h)});return c.reduce(function(d,p){var h=Ln(p,2),m=h[0],y=h[1];return d[m]=y,d},{})},tw=["children","innerProps"],nw=["children","innerProps"];function rw(r){var n=r.maxHeight,i=r.menuEl,u=r.minHeight,o=r.placement,c=r.shouldScroll,d=r.isFixedPosition,p=r.controlHeight,h=FO(i),m={placement:"bottom",maxHeight:n};if(!i||!i.offsetParent)return m;var y=h.getBoundingClientRect(),g=y.height,b=i.getBoundingClientRect(),S=b.bottom,T=b.height,O=b.top,M=i.offsetParent.getBoundingClientRect(),R=M.top,F=d?window.innerHeight:$O(h),B=Db(h),$=parseInt(getComputedStyle(i).marginBottom,10),z=parseInt(getComputedStyle(i).marginTop,10),k=R-z,j=F-O,Q=k+B,ie=g-B-O,he=S-F+B+$,fe=B+O-z,le=160;switch(o){case"auto":case"bottom":if(j>=T)return{placement:"bottom",maxHeight:n};if(ie>=T&&!d)return c&&Eu(h,he,le),{placement:"bottom",maxHeight:n};if(!d&&ie>=u||d&&j>=u){c&&Eu(h,he,le);var me=d?j-$:ie-$;return{placement:"bottom",maxHeight:me}}if(o==="auto"||d){var Ne=n,_e=d?k:Q;return _e>=u&&(Ne=Math.min(_e-$-p,n)),{placement:"top",maxHeight:Ne}}if(o==="bottom")return c&&Xu(h,he),{placement:"bottom",maxHeight:n};break;case"top":if(k>=T)return{placement:"top",maxHeight:n};if(Q>=T&&!d)return c&&Eu(h,fe,le),{placement:"top",maxHeight:n};if(!d&&Q>=u||d&&k>=u){var U=n;return(!d&&Q>=u||d&&k>=u)&&(U=d?k-z:Q-z),c&&Eu(h,fe,le),{placement:"top",maxHeight:U}}return{placement:"bottom",maxHeight:n};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return m}function aw(r){var n={bottom:"top",top:"bottom"};return r?n[r]:"bottom"}var Lb=function(n){return n==="auto"?"bottom":n},iw=function(n,i){var u,o=n.placement,c=n.theme,d=c.borderRadius,p=c.spacing,h=c.colors;return ae((u={label:"menu"},Vi(u,aw(o),"100%"),Vi(u,"position","absolute"),Vi(u,"width","100%"),Vi(u,"zIndex",1),u),i?{}:{backgroundColor:h.neutral0,borderRadius:d,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:p.menuGutter,marginTop:p.menuGutter})},zb=Y.createContext(null),lw=function(n){var i=n.children,u=n.minMenuHeight,o=n.maxMenuHeight,c=n.menuPlacement,d=n.menuPosition,p=n.menuShouldScrollIntoView,h=n.theme,m=Y.useContext(zb)||{},y=m.setPortalPlacement,g=Y.useRef(null),b=Y.useState(o),S=Ln(b,2),T=S[0],O=S[1],M=Y.useState(null),R=Ln(M,2),F=R[0],B=R[1],$=h.spacing.controlHeight;return od(function(){var z=g.current;if(z){var k=d==="fixed",j=p&&!k,Q=rw({maxHeight:o,menuEl:z,minHeight:u,placement:c,shouldScroll:j,isFixedPosition:k,controlHeight:$});O(Q.maxHeight),B(Q.placement),y?.(Q.placement)}},[o,c,d,p,u,y,$]),i({ref:g,placerProps:ae(ae({},n),{},{placement:F||Lb(c),maxHeight:T})})},uw=function(n){var i=n.children,u=n.innerRef,o=n.innerProps;return re("div",se({},Je(n,"menu",{menu:!0}),{ref:u},o),i)},ow=uw,sw=function(n,i){var u=n.maxHeight,o=n.theme.spacing.baseUnit;return ae({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},i?{}:{paddingBottom:o,paddingTop:o})},cw=function(n){var i=n.children,u=n.innerProps,o=n.innerRef,c=n.isMulti;return re("div",se({},Je(n,"menuList",{"menu-list":!0,"menu-list--is-multi":c}),{ref:o},u),i)},Ub=function(n,i){var u=n.theme,o=u.spacing.baseUnit,c=u.colors;return ae({textAlign:"center"},i?{}:{color:c.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},fw=Ub,dw=Ub,hw=function(n){var i=n.children,u=i===void 0?"No options":i,o=n.innerProps,c=hn(n,tw);return re("div",se({},Je(ae(ae({},c),{},{children:u,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),u)},mw=function(n){var i=n.children,u=i===void 0?"Loading...":i,o=n.innerProps,c=hn(n,nw);return re("div",se({},Je(ae(ae({},c),{},{children:u,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),u)},pw=function(n){var i=n.rect,u=n.offset,o=n.position;return{left:i.left,position:o,top:u,width:i.width,zIndex:1}},vw=function(n){var i=n.appendTo,u=n.children,o=n.controlElement,c=n.innerProps,d=n.menuPlacement,p=n.menuPosition,h=Y.useRef(null),m=Y.useRef(null),y=Y.useState(Lb(d)),g=Ln(y,2),b=g[0],S=g[1],T=Y.useMemo(function(){return{setPortalPlacement:S}},[]),O=Y.useState(null),M=Ln(O,2),R=M[0],F=M[1],B=Y.useCallback(function(){if(o){var j=XO(o),Q=p==="fixed"?0:window.pageYOffset,ie=j[b]+Q;(ie!==R?.offset||j.left!==R?.rect.left||j.width!==R?.rect.width)&&F({offset:ie,rect:j})}},[o,p,b,R?.offset,R?.rect.left,R?.rect.width]);od(function(){B()},[B]);var $=Y.useCallback(function(){typeof m.current=="function"&&(m.current(),m.current=null),o&&h.current&&(m.current=BO(o,h.current,B,{elementResize:"ResizeObserver"in window}))},[o,B]);od(function(){$()},[$]);var z=Y.useCallback(function(j){h.current=j,$()},[$]);if(!i&&p!=="fixed"||!R)return null;var k=re("div",se({ref:z},Je(ae(ae({},n),{},{offset:R.offset,position:p,rect:R.rect}),"menuPortal",{"menu-portal":!0}),c),u);return re(zb.Provider,{value:T},i?IE.createPortal(k,i):k)},yw=function(n){var i=n.isDisabled,u=n.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},gw=function(n){var i=n.children,u=n.innerProps,o=n.isDisabled,c=n.isRtl;return re("div",se({},Je(n,"container",{"--is-disabled":o,"--is-rtl":c}),u),i)},bw=function(n,i){var u=n.theme.spacing,o=n.isMulti,c=n.hasValue,d=n.selectProps.controlShouldRenderValue;return ae({alignItems:"center",display:o&&c&&d?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},i?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},_w=function(n){var i=n.children,u=n.innerProps,o=n.isMulti,c=n.hasValue;return re("div",se({},Je(n,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":c}),u),i)},Sw=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Ew=function(n){var i=n.children,u=n.innerProps;return re("div",se({},Je(n,"indicatorsContainer",{indicators:!0}),u),i)},Ry,Tw=["size"],Ow=["innerProps","isRtl","size"],ww={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Nb=function(n){var i=n.size,u=hn(n,Tw);return re("svg",se({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ww},u))},Dd=function(n){return re(Nb,se({size:20},n),re("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},jb=function(n){return re(Nb,se({size:20},n),re("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Hb=function(n,i){var u=n.isFocused,o=n.theme,c=o.spacing.baseUnit,d=o.colors;return ae({label:"indicatorContainer",display:"flex",transition:"color 150ms"},i?{}:{color:u?d.neutral60:d.neutral20,padding:c*2,":hover":{color:u?d.neutral80:d.neutral40}})},Cw=Hb,Aw=function(n){var i=n.children,u=n.innerProps;return re("div",se({},Je(n,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),i||re(jb,null))},xw=Hb,Mw=function(n){var i=n.children,u=n.innerProps;return re("div",se({},Je(n,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),i||re(Dd,null))},Rw=function(n,i){var u=n.isDisabled,o=n.theme,c=o.spacing.baseUnit,d=o.colors;return ae({label:"indicatorSeparator",alignSelf:"stretch",width:1},i?{}:{backgroundColor:u?d.neutral10:d.neutral20,marginBottom:c*2,marginTop:c*2})},Dw=function(n){var i=n.innerProps;return re("span",se({},i,Je(n,"indicatorSeparator",{"indicator-separator":!0})))},qw=AO(Ry||(Ry=xO([`
|
|
4
|
+
0%, 80%, 100% { opacity: 0; }
|
|
5
|
+
40% { opacity: 1; }
|
|
6
|
+
`]))),Lw=function(n,i){var u=n.isFocused,o=n.size,c=n.theme,d=c.colors,p=c.spacing.baseUnit;return ae({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},i?{}:{color:u?d.neutral60:d.neutral20,padding:p*2})},Gc=function(n){var i=n.delay,u=n.offset;return re("span",{css:Ad({animation:"".concat(qw," 1s ease-in-out ").concat(i,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},zw=function(n){var i=n.innerProps,u=n.isRtl,o=n.size,c=o===void 0?4:o,d=hn(n,Ow);return re("div",se({},Je(ae(ae({},d),{},{innerProps:i,isRtl:u,size:c}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),re(Gc,{delay:0,offset:u}),re(Gc,{delay:160,offset:!0}),re(Gc,{delay:320,offset:!u}))},Uw=function(n,i){var u=n.isDisabled,o=n.isFocused,c=n.theme,d=c.colors,p=c.borderRadius,h=c.spacing;return ae({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:h.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},i?{}:{backgroundColor:u?d.neutral5:d.neutral0,borderColor:u?d.neutral10:o?d.primary:d.neutral20,borderRadius:p,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(d.primary):void 0,"&:hover":{borderColor:o?d.primary:d.neutral30}})},Nw=function(n){var i=n.children,u=n.isDisabled,o=n.isFocused,c=n.innerRef,d=n.innerProps,p=n.menuIsOpen;return re("div",se({ref:c},Je(n,"control",{control:!0,"control--is-disabled":u,"control--is-focused":o,"control--menu-is-open":p}),d,{"aria-disabled":u||void 0}),i)},jw=Nw,Hw=["data"],Vw=function(n,i){var u=n.theme.spacing;return i?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},Gw=function(n){var i=n.children,u=n.cx,o=n.getStyles,c=n.getClassNames,d=n.Heading,p=n.headingProps,h=n.innerProps,m=n.label,y=n.theme,g=n.selectProps;return re("div",se({},Je(n,"group",{group:!0}),h),re(d,se({},p,{selectProps:g,theme:y,getStyles:o,getClassNames:c,cx:u}),m),re("div",null,i))},Bw=function(n,i){var u=n.theme,o=u.colors,c=u.spacing;return ae({label:"group",cursor:"default",display:"block"},i?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:c.baseUnit*3,paddingRight:c.baseUnit*3,textTransform:"uppercase"})},Iw=function(n){var i=Rb(n);i.data;var u=hn(i,Hw);return re("div",se({},Je(n,"groupHeading",{"group-heading":!0}),u))},Pw=Gw,Yw=["innerRef","isDisabled","isHidden","inputClassName"],$w=function(n,i){var u=n.isDisabled,o=n.value,c=n.theme,d=c.spacing,p=c.colors;return ae(ae({visibility:u?"hidden":"visible",transform:o?"translateZ(0)":""},Fw),i?{}:{margin:d.baseUnit/2,paddingBottom:d.baseUnit/2,paddingTop:d.baseUnit/2,color:p.neutral80})},Vb={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Fw={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ae({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Vb)},kw=function(n){return ae({label:"input",color:"inherit",background:0,opacity:n?0:1,width:"100%"},Vb)},Xw=function(n){var i=n.cx,u=n.value,o=Rb(n),c=o.innerRef,d=o.isDisabled,p=o.isHidden,h=o.inputClassName,m=hn(o,Yw);return re("div",se({},Je(n,"input",{"input-container":!0}),{"data-value":u||""}),re("input",se({className:i({input:!0},h),ref:c,style:kw(p),disabled:d},m)))},Kw=Xw,Qw=function(n,i){var u=n.theme,o=u.spacing,c=u.borderRadius,d=u.colors;return ae({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:d.neutral10,borderRadius:c/2,margin:o.baseUnit/2})},Zw=function(n,i){var u=n.theme,o=u.borderRadius,c=u.colors,d=n.cropWithEllipsis;return ae({overflow:"hidden",textOverflow:d||d===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:o/2,color:c.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Jw=function(n,i){var u=n.theme,o=u.spacing,c=u.borderRadius,d=u.colors,p=n.isFocused;return ae({alignItems:"center",display:"flex"},i?{}:{borderRadius:c/2,backgroundColor:p?d.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:d.dangerLight,color:d.danger}})},Gb=function(n){var i=n.children,u=n.innerProps;return re("div",u,i)},Ww=Gb,eC=Gb;function tC(r){var n=r.children,i=r.innerProps;return re("div",se({role:"button"},i),n||re(Dd,{size:14}))}var nC=function(n){var i=n.children,u=n.components,o=n.data,c=n.innerProps,d=n.isDisabled,p=n.removeProps,h=n.selectProps,m=u.Container,y=u.Label,g=u.Remove;return re(m,{data:o,innerProps:ae(ae({},Je(n,"multiValue",{"multi-value":!0,"multi-value--is-disabled":d})),c),selectProps:h},re(y,{data:o,innerProps:ae({},Je(n,"multiValueLabel",{"multi-value__label":!0})),selectProps:h},i),re(g,{data:o,innerProps:ae(ae({},Je(n,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},p),selectProps:h}))},rC=nC,aC=function(n,i){var u=n.isDisabled,o=n.isFocused,c=n.isSelected,d=n.theme,p=d.spacing,h=d.colors;return ae({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},i?{}:{backgroundColor:c?h.primary:o?h.primary25:"transparent",color:u?h.neutral20:c?h.neutral0:"inherit",padding:"".concat(p.baseUnit*2,"px ").concat(p.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:c?h.primary:h.primary50}})},iC=function(n){var i=n.children,u=n.isDisabled,o=n.isFocused,c=n.isSelected,d=n.innerRef,p=n.innerProps;return re("div",se({},Je(n,"option",{option:!0,"option--is-disabled":u,"option--is-focused":o,"option--is-selected":c}),{ref:d,"aria-disabled":u},p),i)},lC=iC,uC=function(n,i){var u=n.theme,o=u.spacing,c=u.colors;return ae({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:c.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},oC=function(n){var i=n.children,u=n.innerProps;return re("div",se({},Je(n,"placeholder",{placeholder:!0}),u),i)},sC=oC,cC=function(n,i){var u=n.isDisabled,o=n.theme,c=o.spacing,d=o.colors;return ae({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i?{}:{color:u?d.neutral40:d.neutral80,marginLeft:c.baseUnit/2,marginRight:c.baseUnit/2})},fC=function(n){var i=n.children,u=n.isDisabled,o=n.innerProps;return re("div",se({},Je(n,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),o),i)},dC=fC,hC={ClearIndicator:Mw,Control:jw,DropdownIndicator:Aw,DownChevron:jb,CrossIcon:Dd,Group:Pw,GroupHeading:Iw,IndicatorsContainer:Ew,IndicatorSeparator:Dw,Input:Kw,LoadingIndicator:zw,Menu:ow,MenuList:cw,MenuPortal:vw,LoadingMessage:mw,NoOptionsMessage:hw,MultiValue:rC,MultiValueContainer:Ww,MultiValueLabel:eC,MultiValueRemove:tC,Option:lC,Placeholder:sC,SelectContainer:gw,SingleValue:dC,ValueContainer:_w},mC=function(n){return ae(ae({},hC),n.components)},Dy=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function pC(r,n){return!!(r===n||Dy(r)&&Dy(n))}function vC(r,n){if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!pC(r[i],n[i]))return!1;return!0}function yC(r,n){n===void 0&&(n=vC);var i=null;function u(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];if(i&&i.lastThis===this&&n(o,i.lastArgs))return i.lastResult;var d=r.apply(this,o);return i={lastResult:d,lastArgs:o,lastThis:this},d}return u.clear=function(){i=null},u}var gC={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},bC=function(n){return re("span",se({css:gC},n))},qy=bC,_C={guidance:function(n){var i=n.isSearchable,u=n.isMulti,o=n.tabSelectsValue,c=n.context,d=n.isInitialFocus;switch(c){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return d?"".concat(n["aria-label"]||"Select"," is focused ").concat(i?",type to refine list":"",", press Down to open the menu, ").concat(u?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(n){var i=n.action,u=n.label,o=u===void 0?"":u,c=n.labels,d=n.isDisabled;switch(i){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(c.length>1?"s":""," ").concat(c.join(","),", selected.");case"select-option":return d?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(n){var i=n.context,u=n.focused,o=n.options,c=n.label,d=c===void 0?"":c,p=n.selectValue,h=n.isDisabled,m=n.isSelected,y=n.isAppleDevice,g=function(O,M){return O&&O.length?"".concat(O.indexOf(M)+1," of ").concat(O.length):""};if(i==="value"&&p)return"value ".concat(d," focused, ").concat(g(p,u),".");if(i==="menu"&&y){var b=h?" disabled":"",S="".concat(m?" selected":"").concat(b);return"".concat(d).concat(S,", ").concat(g(o,u),".")}return""},onFilter:function(n){var i=n.inputValue,u=n.resultsMessage;return"".concat(u).concat(i?" for search term "+i:"",".")}},SC=function(n){var i=n.ariaSelection,u=n.focusedOption,o=n.focusedValue,c=n.focusableOptions,d=n.isFocused,p=n.selectValue,h=n.selectProps,m=n.id,y=n.isAppleDevice,g=h.ariaLiveMessages,b=h.getOptionLabel,S=h.inputValue,T=h.isMulti,O=h.isOptionDisabled,M=h.isSearchable,R=h.menuIsOpen,F=h.options,B=h.screenReaderStatus,$=h.tabSelectsValue,z=h.isLoading,k=h["aria-label"],j=h["aria-live"],Q=Y.useMemo(function(){return ae(ae({},_C),g||{})},[g]),ie=Y.useMemo(function(){var _e="";if(i&&Q.onChange){var U=i.option,X=i.options,ee=i.removedValue,Se=i.removedValues,Oe=i.value,C=function(Ye){return Array.isArray(Ye)?null:Ye},V=ee||U||C(Oe),K=V?b(V):"",Z=X||Se||void 0,ue=Z?Z.map(b):[],ce=ae({isDisabled:V&&O(V,p),label:K,labels:ue},i);_e=Q.onChange(ce)}return _e},[i,Q,O,p,b]),he=Y.useMemo(function(){var _e="",U=u||o,X=!!(u&&p&&p.includes(u));if(U&&Q.onFocus){var ee={focused:U,label:b(U),isDisabled:O(U,p),isSelected:X,options:c,context:U===u?"menu":"value",selectValue:p,isAppleDevice:y};_e=Q.onFocus(ee)}return _e},[u,o,b,O,Q,c,p,y]),fe=Y.useMemo(function(){var _e="";if(R&&F.length&&!z&&Q.onFilter){var U=B({count:c.length});_e=Q.onFilter({inputValue:S,resultsMessage:U})}return _e},[c,S,R,Q,F,B,z]),le=i?.action==="initial-input-focus",me=Y.useMemo(function(){var _e="";if(Q.guidance){var U=o?"value":R?"menu":"input";_e=Q.guidance({"aria-label":k,context:U,isDisabled:u&&O(u,p),isMulti:T,isSearchable:M,tabSelectsValue:$,isInitialFocus:le})}return _e},[k,u,o,T,O,M,R,Q,p,$,le]),Ne=re(Y.Fragment,null,re("span",{id:"aria-selection"},ie),re("span",{id:"aria-focused"},he),re("span",{id:"aria-results"},fe),re("span",{id:"aria-guidance"},me));return re(Y.Fragment,null,re(qy,{id:m},le&&Ne),re(qy,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},d&&!le&&Ne))},EC=SC,sd=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],TC=new RegExp("["+sd.map(function(r){return r.letters}).join("")+"]","g"),Bb={};for(var Bc=0;Bc<sd.length;Bc++)for(var Ic=sd[Bc],Pc=0;Pc<Ic.letters.length;Pc++)Bb[Ic.letters[Pc]]=Ic.base;var Ib=function(n){return n.replace(TC,function(i){return Bb[i]})},OC=yC(Ib),Ly=function(n){return n.replace(/^\s+|\s+$/g,"")},wC=function(n){return"".concat(n.label," ").concat(n.value)},CC=function(n){return function(i,u){if(i.data.__isNew__)return!0;var o=ae({ignoreCase:!0,ignoreAccents:!0,stringify:wC,trim:!0,matchFrom:"any"},n),c=o.ignoreCase,d=o.ignoreAccents,p=o.stringify,h=o.trim,m=o.matchFrom,y=h?Ly(u):u,g=h?Ly(p(i)):p(i);return c&&(y=y.toLowerCase(),g=g.toLowerCase()),d&&(y=OC(y),g=Ib(g)),m==="start"?g.substr(0,y.length)===y:g.indexOf(y)>-1}},AC=["innerRef"];function xC(r){var n=r.innerRef,i=hn(r,AC),u=ew(i,"onExited","in","enter","exit","appear");return re("input",se({ref:n},u,{css:Ad({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var MC=function(n){n.cancelable&&n.preventDefault(),n.stopPropagation()};function RC(r){var n=r.isEnabled,i=r.onBottomArrive,u=r.onBottomLeave,o=r.onTopArrive,c=r.onTopLeave,d=Y.useRef(!1),p=Y.useRef(!1),h=Y.useRef(0),m=Y.useRef(null),y=Y.useCallback(function(M,R){if(m.current!==null){var F=m.current,B=F.scrollTop,$=F.scrollHeight,z=F.clientHeight,k=m.current,j=R>0,Q=$-z-B,ie=!1;Q>R&&d.current&&(u&&u(M),d.current=!1),j&&p.current&&(c&&c(M),p.current=!1),j&&R>Q?(i&&!d.current&&i(M),k.scrollTop=$,ie=!0,d.current=!0):!j&&-R>B&&(o&&!p.current&&o(M),k.scrollTop=0,ie=!0,p.current=!0),ie&&MC(M)}},[i,u,o,c]),g=Y.useCallback(function(M){y(M,M.deltaY)},[y]),b=Y.useCallback(function(M){h.current=M.changedTouches[0].clientY},[]),S=Y.useCallback(function(M){var R=h.current-M.changedTouches[0].clientY;y(M,R)},[y]),T=Y.useCallback(function(M){if(M){var R=ZO?{passive:!1}:!1;M.addEventListener("wheel",g,R),M.addEventListener("touchstart",b,R),M.addEventListener("touchmove",S,R)}},[S,b,g]),O=Y.useCallback(function(M){M&&(M.removeEventListener("wheel",g,!1),M.removeEventListener("touchstart",b,!1),M.removeEventListener("touchmove",S,!1))},[S,b,g]);return Y.useEffect(function(){if(n){var M=m.current;return T(M),function(){O(M)}}},[n,T,O]),function(M){m.current=M}}var zy=["boxSizing","height","overflow","paddingRight","position"],Uy={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ny(r){r.cancelable&&r.preventDefault()}function jy(r){r.stopPropagation()}function Hy(){var r=this.scrollTop,n=this.scrollHeight,i=r+this.offsetHeight;r===0?this.scrollTop=1:i===n&&(this.scrollTop=r-1)}function Vy(){return"ontouchstart"in window||navigator.maxTouchPoints}var Gy=!!(typeof window<"u"&&window.document&&window.document.createElement),Ni=0,Oa={capture:!1,passive:!1};function DC(r){var n=r.isEnabled,i=r.accountForScrollbars,u=i===void 0?!0:i,o=Y.useRef({}),c=Y.useRef(null),d=Y.useCallback(function(h){if(Gy){var m=document.body,y=m&&m.style;if(u&&zy.forEach(function(T){var O=y&&y[T];o.current[T]=O}),u&&Ni<1){var g=parseInt(o.current.paddingRight,10)||0,b=document.body?document.body.clientWidth:0,S=window.innerWidth-b+g||0;Object.keys(Uy).forEach(function(T){var O=Uy[T];y&&(y[T]=O)}),y&&(y.paddingRight="".concat(S,"px"))}m&&Vy()&&(m.addEventListener("touchmove",Ny,Oa),h&&(h.addEventListener("touchstart",Hy,Oa),h.addEventListener("touchmove",jy,Oa))),Ni+=1}},[u]),p=Y.useCallback(function(h){if(Gy){var m=document.body,y=m&&m.style;Ni=Math.max(Ni-1,0),u&&Ni<1&&zy.forEach(function(g){var b=o.current[g];y&&(y[g]=b)}),m&&Vy()&&(m.removeEventListener("touchmove",Ny,Oa),h&&(h.removeEventListener("touchstart",Hy,Oa),h.removeEventListener("touchmove",jy,Oa)))}},[u]);return Y.useEffect(function(){if(n){var h=c.current;return d(h),function(){p(h)}}},[n,d,p]),function(h){c.current=h}}var qC=function(n){var i=n.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},LC={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function zC(r){var n=r.children,i=r.lockEnabled,u=r.captureEnabled,o=u===void 0?!0:u,c=r.onBottomArrive,d=r.onBottomLeave,p=r.onTopArrive,h=r.onTopLeave,m=RC({isEnabled:o,onBottomArrive:c,onBottomLeave:d,onTopArrive:p,onTopLeave:h}),y=DC({isEnabled:i}),g=function(S){m(S),y(S)};return re(Y.Fragment,null,i&&re("div",{onClick:qC,css:LC}),n(g))}var UC={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},NC=function(n){var i=n.name,u=n.onFocus;return re("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:UC,value:"",onChange:function(){}})},jC=NC;function qd(r){var n;return typeof window<"u"&&window.navigator!=null?r.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function HC(){return qd(/^iPhone/i)}function Pb(){return qd(/^Mac/i)}function VC(){return qd(/^iPad/i)||Pb()&&navigator.maxTouchPoints>1}function GC(){return HC()||VC()}function BC(){return Pb()||GC()}var IC=function(n){return n.label},Yb=function(n){return n.label},$b=function(n){return n.value},PC=function(n){return!!n.isDisabled},YC={clearIndicator:xw,container:yw,control:Uw,dropdownIndicator:Cw,group:Vw,groupHeading:Bw,indicatorsContainer:Sw,indicatorSeparator:Rw,input:$w,loadingIndicator:Lw,loadingMessage:dw,menu:iw,menuList:sw,menuPortal:pw,multiValue:Qw,multiValueLabel:Zw,multiValueRemove:Jw,noOptionsMessage:fw,option:aC,placeholder:uC,singleValue:cC,valueContainer:bw},$C={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},FC=4,Fb=4,kC=38,XC=Fb*2,KC={baseUnit:Fb,controlHeight:kC,menuGutter:XC},Yc={borderRadius:FC,colors:$C,spacing:KC},QC={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:My(),captureMenuScroll:!My(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:CC(),formatGroupLabel:IC,getOptionLabel:Yb,getOptionValue:$b,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:PC,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!KO(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(n){var i=n.count;return"".concat(i," result").concat(i!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function By(r,n,i,u){var o=Kb(r,n,i),c=Qb(r,n,i),d=Xb(r,n),p=Ku(r,n);return{type:"option",data:n,isDisabled:o,isSelected:c,label:d,value:p,index:u}}function Uu(r,n){return r.options.map(function(i,u){if("options"in i){var o=i.options.map(function(d,p){return By(r,d,n,p)}).filter(function(d){return Py(r,d)});return o.length>0?{type:"group",data:i,options:o,index:u}:void 0}var c=By(r,i,n,u);return Py(r,c)?c:void 0}).filter(JO)}function kb(r){return r.reduce(function(n,i){return i.type==="group"?n.push.apply(n,Ca(i.options.map(function(u){return u.data}))):n.push(i.data),n},[])}function Iy(r,n){return r.reduce(function(i,u){return u.type==="group"?i.push.apply(i,Ca(u.options.map(function(o){return{data:o.data,id:"".concat(n,"-").concat(u.index,"-").concat(o.index)}}))):i.push({data:u.data,id:"".concat(n,"-").concat(u.index)}),i},[])}function ZC(r,n){return kb(Uu(r,n))}function Py(r,n){var i=r.inputValue,u=i===void 0?"":i,o=n.data,c=n.isSelected,d=n.label,p=n.value;return(!Jb(r)||!c)&&Zb(r,{label:d,value:p,data:o},u)}function JC(r,n){var i=r.focusedValue,u=r.selectValue,o=u.indexOf(i);if(o>-1){var c=n.indexOf(i);if(c>-1)return i;if(o<n.length)return n[o]}return null}function WC(r,n){var i=r.focusedOption;return i&&n.indexOf(i)>-1?i:n[0]}var $c=function(n,i){var u,o=(u=n.find(function(c){return c.data===i}))===null||u===void 0?void 0:u.id;return o||null},Xb=function(n,i){return n.getOptionLabel(i)},Ku=function(n,i){return n.getOptionValue(i)};function Kb(r,n,i){return typeof r.isOptionDisabled=="function"?r.isOptionDisabled(n,i):!1}function Qb(r,n,i){if(i.indexOf(n)>-1)return!0;if(typeof r.isOptionSelected=="function")return r.isOptionSelected(n,i);var u=Ku(r,n);return i.some(function(o){return Ku(r,o)===u})}function Zb(r,n,i){return r.filterOption?r.filterOption(n,i):!0}var Jb=function(n){var i=n.hideSelectedOptions,u=n.isMulti;return i===void 0?u:i},eA=1,Ld=(function(r){OT(i,r);var n=AT(i);function i(u){var o;if(ET(this,i),o=n.call(this,u),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(h){o.controlRef=h},o.focusedOptionRef=null,o.getFocusedOptionRef=function(h){o.focusedOptionRef=h},o.menuListRef=null,o.getMenuListRef=function(h){o.menuListRef=h},o.inputRef=null,o.getInputRef=function(h){o.inputRef=h},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(h,m){var y=o.props,g=y.onChange,b=y.name;m.name=b,o.ariaOnChange(h,m),g(h,m)},o.setValue=function(h,m,y){var g=o.props,b=g.closeMenuOnSelect,S=g.isMulti,T=g.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:T}),b&&(o.setState({inputIsHiddenAfterUpdate:!S}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(h,{action:m,option:y})},o.selectOption=function(h){var m=o.props,y=m.blurInputOnSelect,g=m.isMulti,b=m.name,S=o.state.selectValue,T=g&&o.isOptionSelected(h,S),O=o.isOptionDisabled(h,S);if(T){var M=o.getOptionValue(h);o.setValue(S.filter(function(R){return o.getOptionValue(R)!==M}),"deselect-option",h)}else if(!O)g?o.setValue([].concat(Ca(S),[h]),"select-option",h):o.setValue(h,"select-option");else{o.ariaOnChange(h,{action:"select-option",option:h,name:b});return}y&&o.blurInput()},o.removeValue=function(h){var m=o.props.isMulti,y=o.state.selectValue,g=o.getOptionValue(h),b=y.filter(function(T){return o.getOptionValue(T)!==g}),S=Gi(m,b,b[0]||null);o.onChange(S,{action:"remove-value",removedValue:h}),o.focusInput()},o.clearValue=function(){var h=o.state.selectValue;o.onChange(Gi(o.props.isMulti,[],null),{action:"clear",removedValues:h})},o.popValue=function(){var h=o.props.isMulti,m=o.state.selectValue,y=m[m.length-1],g=m.slice(0,m.length-1),b=Gi(h,g,g[0]||null);y&&o.onChange(b,{action:"pop-value",removedValue:y})},o.getFocusedOptionId=function(h){return $c(o.state.focusableOptionsWithIds,h)},o.getFocusableOptionsWithIds=function(){return Iy(Uu(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var h=arguments.length,m=new Array(h),y=0;y<h;y++)m[y]=arguments[y];return YO.apply(void 0,[o.props.classNamePrefix].concat(m))},o.getOptionLabel=function(h){return Xb(o.props,h)},o.getOptionValue=function(h){return Ku(o.props,h)},o.getStyles=function(h,m){var y=o.props.unstyled,g=YC[h](m,y);g.boxSizing="border-box";var b=o.props.styles[h];return b?b(g,m):g},o.getClassNames=function(h,m){var y,g;return(y=(g=o.props.classNames)[h])===null||y===void 0?void 0:y.call(g,m)},o.getElementId=function(h){return"".concat(o.state.instancePrefix,"-").concat(h)},o.getComponents=function(){return mC(o.props)},o.buildCategorizedOptions=function(){return Uu(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return kb(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(h,m){o.setState({ariaSelection:ae({value:h},m)})},o.onMenuMouseDown=function(h){h.button===0&&(h.stopPropagation(),h.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(h){o.blockOptionHover=!1},o.onControlMouseDown=function(h){if(!h.defaultPrevented){var m=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?h.target.tagName!=="INPUT"&&h.target.tagName!=="TEXTAREA"&&o.onMenuClose():m&&o.openMenu("first"):(m&&(o.openAfterFocus=!0),o.focusInput()),h.target.tagName!=="INPUT"&&h.target.tagName!=="TEXTAREA"&&h.preventDefault()}},o.onDropdownIndicatorMouseDown=function(h){if(!(h&&h.type==="mousedown"&&h.button!==0)&&!o.props.isDisabled){var m=o.props,y=m.isMulti,g=m.menuIsOpen;o.focusInput(),g?(o.setState({inputIsHiddenAfterUpdate:!y}),o.onMenuClose()):o.openMenu("first"),h.preventDefault()}},o.onClearIndicatorMouseDown=function(h){h&&h.type==="mousedown"&&h.button!==0||(o.clearValue(),h.preventDefault(),o.openAfterFocus=!1,h.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(h){typeof o.props.closeMenuOnScroll=="boolean"?h.target instanceof HTMLElement&&lo(h.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(h)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(h){var m=h.touches,y=m&&m.item(0);y&&(o.initialTouchX=y.clientX,o.initialTouchY=y.clientY,o.userIsDragging=!1)},o.onTouchMove=function(h){var m=h.touches,y=m&&m.item(0);if(y){var g=Math.abs(y.clientX-o.initialTouchX),b=Math.abs(y.clientY-o.initialTouchY),S=5;o.userIsDragging=g>S||b>S}},o.onTouchEnd=function(h){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(h.target)&&o.menuListRef&&!o.menuListRef.contains(h.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(h){o.userIsDragging||o.onControlMouseDown(h)},o.onClearIndicatorTouchEnd=function(h){o.userIsDragging||o.onClearIndicatorMouseDown(h)},o.onDropdownIndicatorTouchEnd=function(h){o.userIsDragging||o.onDropdownIndicatorMouseDown(h)},o.handleInputChange=function(h){var m=o.props.inputValue,y=h.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(y,{action:"input-change",prevInputValue:m}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(h){o.props.onFocus&&o.props.onFocus(h),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(h){var m=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(h),o.onInputChange("",{action:"input-blur",prevInputValue:m}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(h){if(!(o.blockOptionHover||o.state.focusedOption===h)){var m=o.getFocusableOptions(),y=m.indexOf(h);o.setState({focusedOption:h,focusedOptionId:y>-1?o.getFocusedOptionId(h):null})}},o.shouldHideSelectedOptions=function(){return Jb(o.props)},o.onValueInputFocus=function(h){h.preventDefault(),h.stopPropagation(),o.focus()},o.onKeyDown=function(h){var m=o.props,y=m.isMulti,g=m.backspaceRemovesValue,b=m.escapeClearsValue,S=m.inputValue,T=m.isClearable,O=m.isDisabled,M=m.menuIsOpen,R=m.onKeyDown,F=m.tabSelectsValue,B=m.openMenuOnFocus,$=o.state,z=$.focusedOption,k=$.focusedValue,j=$.selectValue;if(!O&&!(typeof R=="function"&&(R(h),h.defaultPrevented))){switch(o.blockOptionHover=!0,h.key){case"ArrowLeft":if(!y||S)return;o.focusValue("previous");break;case"ArrowRight":if(!y||S)return;o.focusValue("next");break;case"Delete":case"Backspace":if(S)return;if(k)o.removeValue(k);else{if(!g)return;y?o.popValue():T&&o.clearValue()}break;case"Tab":if(o.isComposing||h.shiftKey||!M||!F||!z||B&&o.isOptionSelected(z,j))return;o.selectOption(z);break;case"Enter":if(h.keyCode===229)break;if(M){if(!z||o.isComposing)return;o.selectOption(z);break}return;case"Escape":M?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:S}),o.onMenuClose()):T&&b&&o.clearValue();break;case" ":if(S)return;if(!M){o.openMenu("first");break}if(!z)return;o.selectOption(z);break;case"ArrowUp":M?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":M?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!M)return;o.focusOption("pageup");break;case"PageDown":if(!M)return;o.focusOption("pagedown");break;case"Home":if(!M)return;o.focusOption("first");break;case"End":if(!M)return;o.focusOption("last");break;default:return}h.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++eA),o.state.selectValue=ku(u.value),u.menuIsOpen&&o.state.selectValue.length){var c=o.getFocusableOptionsWithIds(),d=o.buildFocusableOptions(),p=d.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=c,o.state.focusedOption=d[p],o.state.focusedOptionId=$c(c,d[p])}return o}return TT(i,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&xy(this.menuListRef,this.focusedOptionRef),BC()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var c=this.props,d=c.isDisabled,p=c.menuIsOpen,h=this.state.isFocused;(h&&!d&&o.isDisabled||h&&p&&!o.menuIsOpen)&&this.focusInput(),h&&d&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!h&&!d&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(xy(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,c){this.props.onInputChange(o,c)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var c=this,d=this.state,p=d.selectValue,h=d.isFocused,m=this.buildFocusableOptions(),y=o==="first"?0:m.length-1;if(!this.props.isMulti){var g=m.indexOf(p[0]);g>-1&&(y=g)}this.scrollToFocusedOptionOnUpdate=!(h&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:m[y],focusedOptionId:this.getFocusedOptionId(m[y])},function(){return c.onMenuOpen()})}},{key:"focusValue",value:function(o){var c=this.state,d=c.selectValue,p=c.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var h=d.indexOf(p);p||(h=-1);var m=d.length-1,y=-1;if(d.length){switch(o){case"previous":h===0?y=0:h===-1?y=m:y=h-1;break;case"next":h>-1&&h<m&&(y=h+1);break}this.setState({inputIsHidden:y!==-1,focusedValue:d[y]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",c=this.props.pageSize,d=this.state.focusedOption,p=this.getFocusableOptions();if(p.length){var h=0,m=p.indexOf(d);d||(m=-1),o==="up"?h=m>0?m-1:p.length-1:o==="down"?h=(m+1)%p.length:o==="pageup"?(h=m-c,h<0&&(h=0)):o==="pagedown"?(h=m+c,h>p.length-1&&(h=p.length-1)):o==="last"&&(h=p.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:p[h],focusedValue:null,focusedOptionId:this.getFocusedOptionId(p[h])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Yc):ae(ae({},Yc),this.props.theme):Yc})},{key:"getCommonProps",value:function(){var o=this.clearValue,c=this.cx,d=this.getStyles,p=this.getClassNames,h=this.getValue,m=this.selectOption,y=this.setValue,g=this.props,b=g.isMulti,S=g.isRtl,T=g.options,O=this.hasValue();return{clearValue:o,cx:c,getStyles:d,getClassNames:p,getValue:h,hasValue:O,isMulti:b,isRtl:S,options:T,selectOption:m,selectProps:g,setValue:y,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,c=o.isClearable,d=o.isMulti;return c===void 0?d:c}},{key:"isOptionDisabled",value:function(o,c){return Kb(this.props,o,c)}},{key:"isOptionSelected",value:function(o,c){return Qb(this.props,o,c)}},{key:"filterOption",value:function(o,c){return Zb(this.props,o,c)}},{key:"formatOptionLabel",value:function(o,c){if(typeof this.props.formatOptionLabel=="function"){var d=this.props.inputValue,p=this.state.selectValue;return this.props.formatOptionLabel(o,{context:c,inputValue:d,selectValue:p})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,c=o.isDisabled,d=o.isSearchable,p=o.inputId,h=o.inputValue,m=o.tabIndex,y=o.form,g=o.menuIsOpen,b=o.required,S=this.getComponents(),T=S.Input,O=this.state,M=O.inputIsHidden,R=O.ariaSelection,F=this.commonProps,B=p||this.getElementId("input"),$=ae(ae(ae({"aria-autocomplete":"list","aria-expanded":g,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":b,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!d&&{"aria-readonly":!0}),this.hasValue()?R?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return d?Y.createElement(T,se({},F,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:B,innerRef:this.getInputRef,isDisabled:c,isHidden:M,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:m,form:y,type:"text",value:h},$)):Y.createElement(xC,se({id:B,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Fu,onFocus:this.onInputFocus,disabled:c,tabIndex:m,inputMode:"none",form:y,value:""},$))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,c=this.getComponents(),d=c.MultiValue,p=c.MultiValueContainer,h=c.MultiValueLabel,m=c.MultiValueRemove,y=c.SingleValue,g=c.Placeholder,b=this.commonProps,S=this.props,T=S.controlShouldRenderValue,O=S.isDisabled,M=S.isMulti,R=S.inputValue,F=S.placeholder,B=this.state,$=B.selectValue,z=B.focusedValue,k=B.isFocused;if(!this.hasValue()||!T)return R?null:Y.createElement(g,se({},b,{key:"placeholder",isDisabled:O,isFocused:k,innerProps:{id:this.getElementId("placeholder")}}),F);if(M)return $.map(function(Q,ie){var he=Q===z,fe="".concat(o.getOptionLabel(Q),"-").concat(o.getOptionValue(Q));return Y.createElement(d,se({},b,{components:{Container:p,Label:h,Remove:m},isFocused:he,isDisabled:O,key:fe,index:ie,removeProps:{onClick:function(){return o.removeValue(Q)},onTouchEnd:function(){return o.removeValue(Q)},onMouseDown:function(me){me.preventDefault()}},data:Q}),o.formatOptionLabel(Q,"value"))});if(R)return null;var j=$[0];return Y.createElement(y,se({},b,{data:j,isDisabled:O}),this.formatOptionLabel(j,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),c=o.ClearIndicator,d=this.commonProps,p=this.props,h=p.isDisabled,m=p.isLoading,y=this.state.isFocused;if(!this.isClearable()||!c||h||!this.hasValue()||m)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(c,se({},d,{innerProps:g,isFocused:y}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),c=o.LoadingIndicator,d=this.commonProps,p=this.props,h=p.isDisabled,m=p.isLoading,y=this.state.isFocused;if(!c||!m)return null;var g={"aria-hidden":"true"};return Y.createElement(c,se({},d,{innerProps:g,isDisabled:h,isFocused:y}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),c=o.DropdownIndicator,d=o.IndicatorSeparator;if(!c||!d)return null;var p=this.commonProps,h=this.props.isDisabled,m=this.state.isFocused;return Y.createElement(d,se({},p,{isDisabled:h,isFocused:m}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),c=o.DropdownIndicator;if(!c)return null;var d=this.commonProps,p=this.props.isDisabled,h=this.state.isFocused,m={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(c,se({},d,{innerProps:m,isDisabled:p,isFocused:h}))}},{key:"renderMenu",value:function(){var o=this,c=this.getComponents(),d=c.Group,p=c.GroupHeading,h=c.Menu,m=c.MenuList,y=c.MenuPortal,g=c.LoadingMessage,b=c.NoOptionsMessage,S=c.Option,T=this.commonProps,O=this.state.focusedOption,M=this.props,R=M.captureMenuScroll,F=M.inputValue,B=M.isLoading,$=M.loadingMessage,z=M.minMenuHeight,k=M.maxMenuHeight,j=M.menuIsOpen,Q=M.menuPlacement,ie=M.menuPosition,he=M.menuPortalTarget,fe=M.menuShouldBlockScroll,le=M.menuShouldScrollIntoView,me=M.noOptionsMessage,Ne=M.onMenuScrollToTop,_e=M.onMenuScrollToBottom;if(!j)return null;var U=function(K,Z){var ue=K.type,ce=K.data,be=K.isDisabled,Ye=K.isSelected,Pe=K.label,fr=K.value,dr=O===ce,Vr=be?void 0:function(){return o.onOptionHover(ce)},Ki=be?void 0:function(){return o.selectOption(ce)},rn="".concat(o.getElementId("option"),"-").concat(Z),Ga={id:rn,onClick:Ki,onMouseMove:Vr,onMouseOver:Vr,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:Ye};return Y.createElement(S,se({},T,{innerProps:Ga,data:ce,isDisabled:be,isSelected:Ye,key:rn,label:Pe,type:ue,value:fr,isFocused:dr,innerRef:dr?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(K.data,"menu"))},X;if(this.hasOptions())X=this.getCategorizedOptions().map(function(V){if(V.type==="group"){var K=V.data,Z=V.options,ue=V.index,ce="".concat(o.getElementId("group"),"-").concat(ue),be="".concat(ce,"-heading");return Y.createElement(d,se({},T,{key:ce,data:K,options:Z,Heading:p,headingProps:{id:be,data:V.data},label:o.formatGroupLabel(V.data)}),V.options.map(function(Ye){return U(Ye,"".concat(ue,"-").concat(Ye.index))}))}else if(V.type==="option")return U(V,"".concat(V.index))});else if(B){var ee=$({inputValue:F});if(ee===null)return null;X=Y.createElement(g,T,ee)}else{var Se=me({inputValue:F});if(Se===null)return null;X=Y.createElement(b,T,Se)}var Oe={minMenuHeight:z,maxMenuHeight:k,menuPlacement:Q,menuPosition:ie,menuShouldScrollIntoView:le},C=Y.createElement(lw,se({},T,Oe),function(V){var K=V.ref,Z=V.placerProps,ue=Z.placement,ce=Z.maxHeight;return Y.createElement(h,se({},T,Oe,{innerRef:K,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:B,placement:ue}),Y.createElement(zC,{captureEnabled:R,onTopArrive:Ne,onBottomArrive:_e,lockEnabled:fe},function(be){return Y.createElement(m,se({},T,{innerRef:function(Pe){o.getMenuListRef(Pe),be(Pe)},innerProps:{role:"listbox","aria-multiselectable":T.isMulti,id:o.getElementId("listbox")},isLoading:B,maxHeight:ce,focusedOption:O}),X)}))});return he||ie==="fixed"?Y.createElement(y,se({},T,{appendTo:he,controlElement:this.controlRef,menuPlacement:Q,menuPosition:ie}),C):C}},{key:"renderFormField",value:function(){var o=this,c=this.props,d=c.delimiter,p=c.isDisabled,h=c.isMulti,m=c.name,y=c.required,g=this.state.selectValue;if(y&&!this.hasValue()&&!p)return Y.createElement(jC,{name:m,onFocus:this.onValueInputFocus});if(!(!m||p))if(h)if(d){var b=g.map(function(O){return o.getOptionValue(O)}).join(d);return Y.createElement("input",{name:m,type:"hidden",value:b})}else{var S=g.length>0?g.map(function(O,M){return Y.createElement("input",{key:"i-".concat(M),name:m,type:"hidden",value:o.getOptionValue(O)})}):Y.createElement("input",{name:m,type:"hidden",value:""});return Y.createElement("div",null,S)}else{var T=g[0]?this.getOptionValue(g[0]):"";return Y.createElement("input",{name:m,type:"hidden",value:T})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,c=this.state,d=c.ariaSelection,p=c.focusedOption,h=c.focusedValue,m=c.isFocused,y=c.selectValue,g=this.getFocusableOptions();return Y.createElement(EC,se({},o,{id:this.getElementId("live-region"),ariaSelection:d,focusedOption:p,focusedValue:h,isFocused:m,selectValue:y,focusableOptions:g,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),c=o.Control,d=o.IndicatorsContainer,p=o.SelectContainer,h=o.ValueContainer,m=this.props,y=m.className,g=m.id,b=m.isDisabled,S=m.menuIsOpen,T=this.state.isFocused,O=this.commonProps=this.getCommonProps();return Y.createElement(p,se({},O,{className:y,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:b,isFocused:T}),this.renderLiveRegion(),Y.createElement(c,se({},O,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:b,isFocused:T,menuIsOpen:S}),Y.createElement(h,se({},O,{isDisabled:b}),this.renderPlaceholderOrValue(),this.renderInput()),Y.createElement(d,se({},O,{isDisabled:b}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,c){var d=c.prevProps,p=c.clearFocusValueOnUpdate,h=c.inputIsHiddenAfterUpdate,m=c.ariaSelection,y=c.isFocused,g=c.prevWasFocused,b=c.instancePrefix,S=o.options,T=o.value,O=o.menuIsOpen,M=o.inputValue,R=o.isMulti,F=ku(T),B={};if(d&&(T!==d.value||S!==d.options||O!==d.menuIsOpen||M!==d.inputValue)){var $=O?ZC(o,F):[],z=O?Iy(Uu(o,F),"".concat(b,"-option")):[],k=p?JC(c,F):null,j=WC(c,$),Q=$c(z,j);B={selectValue:F,focusedOption:j,focusedOptionId:Q,focusableOptionsWithIds:z,focusedValue:k,clearFocusValueOnUpdate:!1}}var ie=h!=null&&o!==d?{inputIsHidden:h,inputIsHiddenAfterUpdate:void 0}:{},he=m,fe=y&&g;return y&&!fe&&(he={value:Gi(R,F,F[0]||null),options:F,action:"initial-input-focus"},fe=!g),m?.action==="initial-input-focus"&&(he=null),ae(ae(ae({},B),ie),{},{prevProps:o,ariaSelection:he,prevWasFocused:fe})}}]),i})(Y.Component);Ld.defaultProps=QC;var tA=Y.forwardRef(function(r,n){var i=fb(r);return Y.createElement(Ld,se({ref:n},i))}),nA=tA,rA=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Yy=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0,u=arguments.length>2?arguments[2]:void 0,o=String(n).toLowerCase(),c=String(u.getOptionValue(i)).toLowerCase(),d=String(u.getOptionLabel(i)).toLowerCase();return c===o||d===o},Fc={formatCreateLabel:function(n){return'Create "'.concat(n,'"')},isValidNewOption:function(n,i,u,o){return!(!n||i.some(function(c){return Yy(n,c,o)})||u.some(function(c){return Yy(n,c,o)}))},getNewOptionData:function(n,i){return{label:i,value:n,__isNew__:!0}}};function aA(r){var n=r.allowCreateWhileLoading,i=n===void 0?!1:n,u=r.createOptionPosition,o=u===void 0?"last":u,c=r.formatCreateLabel,d=c===void 0?Fc.formatCreateLabel:c,p=r.isValidNewOption,h=p===void 0?Fc.isValidNewOption:p,m=r.getNewOptionData,y=m===void 0?Fc.getNewOptionData:m,g=r.onCreateOption,b=r.options,S=b===void 0?[]:b,T=r.onChange,O=hn(r,rA),M=O.getOptionValue,R=M===void 0?$b:M,F=O.getOptionLabel,B=F===void 0?Yb:F,$=O.inputValue,z=O.isLoading,k=O.isMulti,j=O.value,Q=O.name,ie=Y.useMemo(function(){return h($,ku(j),S,{getOptionValue:R,getOptionLabel:B})?y($,d($)):void 0},[d,y,B,R,$,h,S,j]),he=Y.useMemo(function(){return(i||!z)&&ie?o==="first"?[ie].concat(Ca(S)):[].concat(Ca(S),[ie]):S},[i,o,z,ie,S]),fe=Y.useCallback(function(le,me){if(me.action!=="select-option")return T(le,me);var Ne=Array.isArray(le)?le:[le];if(Ne[Ne.length-1]===ie){if(g)g($);else{var _e=y($,$),U={action:"create-option",name:Q,option:_e};T(Gi(k,[].concat(Ca(ku(j)),[_e]),_e),U)}return}T(le,me)},[y,$,k,Q,ie,g,T,j]);return ae(ae({},O),{},{options:he,onChange:fe})}var iA=Y.forwardRef(function(r,n){var i=fb(r),u=aA(i);return Y.createElement(Ld,se({ref:n},u))}),lA=iA,Re=function(){return Re=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Re.apply(this,arguments)},Wb=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i},e_=function(r){return Re(Re({},r),{borderRadius:0,colors:Re(Re({},r.colors),{primary25:"var(--color--surface-hover)",neutral10:"var(--color--border)",neutral20:"var(--color--border)",primary:"var(--color--focus--border)",neutral30:"var(--color--border-hover)"})})},t_=function(r,n){return Y.useMemo(function(){return{placeholder:function(i){return Re(Re({},i),{color:"var(--color--ink-placeholder)"})},container:function(i){return Re(Re({},i),{fontSize:"inherit"})},control:function(i,u){var o=u.isFocused,c=i;return c=Re(Re({},c),{minHeight:40}),o?Re(Re({},c),{borderColor:n?"var(--color--danger-soft--border)":"var(--color--focus--border)",backgroundColor:r?"var(--color--disabled--surface)":"var(--color--surface)",boxShadow:"0 0 0 4px ".concat(n?"var(--color--danger-soft--outline)":"var(--color--focus--outline)"),"&:hover":{borderColor:n?"var(--color--danger-soft--border)":"var(--color--focus--border)"}}):Re(Re({},c),{borderColor:n?"var(--color--danger-soft--border)":"var(--color--border)",backgroundColor:r?"var(--color--disabled--surface)":"var(--color--surface)","&:hover":{borderColor:n?"var(--color--danger-soft--border)":"var(--color--border-hover)"}})},multiValueRemove:function(i){return Re(Re({},i),{cursor:"pointer",color:"var(--color--primary-soft--ink)",":hover":{backgroundColor:"var(--color--primary-soft--surface-hover)",color:"var(--color--primary-soft--ink)"}})},menu:function(i){return Re(Re({},i),{zIndex:1e3,minWidth:250,backgroundColor:"var(--color--surface-raised)",boxShadow:"var(--shadow--floating)"})},singleValue:function(i){return Re(Re({},i),{color:"var(--color--ink)"})},input:function(i){return Re(Re({},i),{color:"var(--color--ink)",boxShadow:"none","input:focus":{boxShadow:"none"}})},option:function(i,u){var o=u.isFocused,c=u.isSelected;return Re(Re({},i),{backgroundColor:c?"var(--color--selected--surface)":o?"var(--color--surface-hover)":void 0,color:"var(--color--ink)"})},multiValue:function(i){return Re(Re({},i),{zIndex:100,backgroundColor:"var(--color--primary-soft--surface)",userSelect:"none"})},multiValueLabel:function(i){return Re(Re({},i),{fontSize:"inherit",padding:3,color:"var(--color--primary-soft--ink)"})}}},[r,n])};function uA(r){var n=r.isDisabled,i=r.error,u=Wb(r,["isDisabled","error"]),o=t_(n,i);return ye.createElement(nA,Re({},u,{isDisabled:n,theme:e_,styles:o}))}function oA(r){var n=r.isDisabled,i=r.error,u=Wb(r,["isDisabled","error"]),o=t_(n,i);return ye.createElement(lA,Re({},u,{isDisabled:n,theme:e_,styles:o}))}const sA="_Spinner__bar_1u42l_13",kc={"Spinner--inline":"_Spinner--inline_1u42l_1","Spinner--centered":"_Spinner--centered_1u42l_7",Spinner__bar:sA};var Qu=function(){return Qu=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},Qu.apply(this,arguments)};function cA(r){for(var n,i=r.size,u=i===void 0?32:i,o=r.placement,c=o===void 0?"inline":o,d=r.style,p=d===void 0?{}:d,h=[],m=0;m<12;m+=1){var y={};y.animationDelay="".concat((m-12)/10,"s"),y.transform="rotate(".concat(m*30,"deg) translate(146%)"),h.push(ye.createElement("div",{style:y,className:kc.Spinner__bar,key:m}))}var g={width:u*.5,height:u*.5};return c==="inline"&&(g.marginLeft=u*.5,g.transform="translateY(33%)"),ye.createElement("div",{className:jt((n={},n[kc["Spinner--inline"]]=c==="inline",n[kc["Spinner--centered"]]=c==="centered",n)),style:Qu(Qu({},p),g)},h)}var cd=function(){return cd=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},cd.apply(this,arguments)};function fA(r){var n=r.id,i=r.name,u=r.label,o=r.hint,c=r.error,d=r.required,p=r.placeholder,h=r.formLabelProps,m=r.value,y=r.onChange,g=r.textareaInputProps;return ye.createElement(to,{formLabelProps:h,id:n,required:d,error:c,hint:o,label:u},ye.createElement(mA,cd({},g,{id:n,name:i,value:m,placeholder:p,onChange:y,error:!!c})))}const dA="_TextareaInput_1xr0a_1",Ou={TextareaInput:dA,"TextareaInput--monospaced":"_TextareaInput--monospaced_1xr0a_32","TextareaInput--disabled":"_TextareaInput--disabled_1xr0a_37","TextareaInput--error":"_TextareaInput--error_1xr0a_43"};var fd=function(){return fd=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},fd.apply(this,arguments)},hA=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i},mA=function(r){var n,i=r.className,u=r.disabled,o=u===void 0?!1:u,c=r.error,d=r.id,p=r.inputRef,h=r.maxLength,m=r.name,y=r.labelText,g=r.onBlur,b=r.onChange,S=r.placeholder,T=r.required,O=T===void 0?!1:T,M=r.value,R=r.monospaced,F=hA(r,["className","disabled","error","id","inputRef","maxLength","name","labelText","onBlur","onChange","placeholder","required","value","monospaced"]),B=Y.useCallback(function(z){b&&b(z.target.value,z)},[b]),$=jt(Ou.TextareaInput,i,(n={},n[Ou["TextareaInput--disabled"]]=o,n[Ou["TextareaInput--error"]]=c,n[Ou["TextareaInput--monospaced"]]=R,n));return ye.createElement("textarea",fd({className:$,"aria-label":y,id:d,name:m,required:O,placeholder:S,maxLength:h,disabled:o,onBlur:g,onChange:B,value:M,ref:p},F))},dd=function(){return dd=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},dd.apply(this,arguments)};function pA(r){var n=r.id,i=r.name,u=r.label,o=r.hint,c=r.error,d=r.required,p=r.placeholder,h=r.formLabelProps,m=r.value,y=r.onChange,g=r.textInputProps;return ye.createElement(to,{formLabelProps:h,id:n,required:d,error:c,hint:o,label:u},ye.createElement(gA,dd({},g,{id:n,name:i,value:m,placeholder:p,onChange:y,error:!!c})))}const vA="_TextInput_1kqkh_1",wu={TextInput:vA,"TextInput--monospaced":"_TextInput--monospaced_1kqkh_32","TextInput--disabled":"_TextInput--disabled_1kqkh_37","TextInput--error":"_TextInput--error_1kqkh_43"};var hd=function(){return hd=Object.assign||function(r){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},hd.apply(this,arguments)},yA=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i},gA=function(r){var n,i=r.className,u=r.disabled,o=u===void 0?!1:u,c=r.error,d=r.id,p=r.inputRef,h=r.maxLength,m=r.name,y=r.labelText,g=r.onBlur,b=r.onChange,S=r.placeholder,T=r.required,O=T===void 0?!1:T,M=r.type,R=r.value,F=r.monospaced,B=yA(r,["className","disabled","error","id","inputRef","maxLength","name","labelText","onBlur","onChange","placeholder","required","type","value","monospaced"]),$=Y.useCallback(function(k){b&&b(k.target.value,k)},[b]),z=jt(wu.TextInput,i,(n={},n[wu["TextInput--disabled"]]=o,n[wu["TextInput--error"]]=c,n[wu["TextInput--monospaced"]]=F,n));return ye.createElement("input",hd({className:z,"aria-label":y,id:d,name:m,required:O,placeholder:S,maxLength:h,disabled:o,onBlur:g,onChange:$,value:R,type:M,ref:p},B))};const n_=["alttext-ai","openai","anthropic","gemini"],uo={"alttext-ai":"AltText.ai",openai:"OpenAI",anthropic:"Anthropic",gemini:"Google Gemini"},md=n_.map(r=>({value:r,label:uo[r]})),bA="openai",r_='Write concise, useful alternative text for this image in {locale}. Describe its meaningful visual content and include important visible text. Use the filename "{filename}" only as supporting context, and do not invent details. Do not begin with phrases such as "image of" or "picture of". Return only the alt text, without quotation marks or an explanation.',_A={google:"gemini",claude:"anthropic"};function SA(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)?r:{}}function qn(r){return typeof r=="string"?r.trim():""}function EA(r,n){const i=qn(r).toLowerCase(),u=_A[i]??i;return n_.includes(u)?u:n?"alttext-ai":bA}function TA(r){return typeof r!="string"||r.trim()===""?r_:r}function Lr(r,n){return r.trim()?null:n}const OA={"alttext-ai":r=>Lr(r.altTextAiApiKey,"AltText.ai API key is required."),openai:r=>Lr(r.openAiApiKey,"OpenAI API key is required.")??Lr(r.openAiModel,"OpenAI model is required."),anthropic:r=>Lr(r.anthropicApiKey,"Anthropic API key is required.")??Lr(r.anthropicModel,"Anthropic model is required."),gemini:r=>Lr(r.geminiApiKey,"Gemini API key is required.")??Lr(r.geminiModel,"Gemini model is required.")};function Zu(r){const n=SA(r),i=qn(n.apiKey),u=qn(n.altTextAiApiKey)||i;return{provider:EA(n.provider,!!u),altTextAiApiKey:u,openAiApiKey:qn(n.openAiApiKey),openAiModel:qn(n.openAiModel),anthropicApiKey:qn(n.anthropicApiKey),anthropicModel:qn(n.anthropicModel),geminiApiKey:qn(n.geminiApiKey),geminiModel:qn(n.geminiModel),prompt:TA(n.prompt)}}function Cu(r){const n=Zu(r);return{...n,apiKey:n.altTextAiApiKey}}function pd(r){return OA[r.provider](r)??(r.provider!=="alttext-ai"&&!r.prompt.trim()?"Prompt is required for direct AI providers.":null)}const wA={"alttext-ai":"AltText.ai",openai:"OpenAI",anthropic:"Anthropic",gemini:"Gemini"};class Xe extends Error{provider;code;status;details;constructor(n,i,u,o){super(`${wA[n]}: ${u.trim()||"Request failed"}`),this.name="AltTextProviderError",this.provider=n,this.code=i,this.status=o?.status,this.details=o?.details}}function CA(r){return r instanceof Xe}function vd(r){return typeof r=="object"&&r!==null?r:null}function a_(r){for(const n of r)if(typeof n=="string"&&n.trim())return n.trim();return null}function AA(r){const i=vd(r)?.base;return Array.isArray(i)?a_(i):typeof i=="string"&&i.trim()?i.trim():null}function i_(r,n="Request failed"){if(typeof r=="string"&&r.trim())return r.trim();const i=vd(r);if(!i)return n;const u=vd(i.error);return a_([u?.message,u?.type,i.message,AA(i.errors),i.error_code,typeof i.error=="string"?i.error:null])??n}function xA(r,n){const i=n.toLowerCase();return/quota|billing|credit|usage limit/.test(i)?"quota":r===401||r===403?"auth":r===429?"rate_limit":r===404||/model.+(?:not found|does not exist|unsupported)|invalid model/.test(i)?"model":r===400||r===409||r===422?"invalid_request":"provider"}function MA(r,n,i){const u=n.statusText.trim()||`Request failed with HTTP ${n.status}`,o=i_(i,u);return new Xe(r,xA(n.status,o),o,{status:n.status})}function yd(r){return r instanceof DOMException&&r.name==="AbortError"||r instanceof Error&&r.name==="AbortError"}function RA(r,n){return CA(n)?n:new Xe(r,"network","Could not reach the provider. Check the connection and browser access, then try again.")}function ze(r){return typeof r=="object"&&r!==null?r:null}function Va(r,n){return`${r.replace(/\/+$/,"")}/${n.replace(/^\/+/,"")}`}function DA(r,n){return(r.trim()||r_).replace(/\{locale\}/g,()=>n.locale).replace(/\{filename\}/g,()=>n.filename).trim()}function qA(r,n){try{const i=new URL(n);if(i.protocol!=="https:"&&i.protocol!=="http:")throw new Error("Unsupported URL protocol");return i.toString()}catch{throw new Xe(r,"invalid_request","The asset does not have a valid public image URL.")}}function oo(r,n){const i=n.locale.trim()||"en",u=n.filename.trim();return{imageUrl:qA(r,n.imageUrl.trim()),assetId:n.assetId.trim(),locale:i,filename:u,prompt:DA(n.promptTemplate,{locale:i,filename:u}),signal:n.signal}}async function LA(r){const n=await r.text();if(!n.trim())return null;try{return JSON.parse(n)}catch{return n}}async function Hr(r,n,i){let u;try{u=await fetch(n,i)}catch(c){throw yd(c)?c:RA(r,c)}let o;try{o=await LA(u)}catch(c){throw new Xe(r,"invalid_response","Could not read the provider response.",{status:u.status,details:c})}if(!u.ok)throw MA(r,u,o);if(o===null||typeof o=="string")throw new Xe(r,"invalid_response","The provider returned an invalid JSON response.",{status:u.status,details:o});return o}function zA(r){return r.replace(/^```(?:text|plaintext|markdown)?\s*/i,"").replace(/\s*```$/,"").trim()}function UA(r){const n=[['"','"'],["'","'"],["“","”"],["‘","’"],["`","`"]];for(const[i,u]of n)if(r.startsWith(i)&&r.endsWith(u))return r.slice(i.length,-u.length).trim();return r}function NA(r){let n=zA(r);for(let i=0;i<4;i+=1){const u=n;if(n=UA(n.trim()).replace(/^(?:alt(?:ernative)?\s*text|description)\s*:\s*/i,"").trim(),n===u)break}return n.replace(/\s+/g," ").trim()}function so(r,n){const i=NA(n);if(!i)throw new Xe(r,"empty_response","The provider returned no alt text.");return i}function jA(r){let i="";for(let u=0;u<r.length;u+=32768){const o=r.subarray(u,u+32768);i+=String.fromCharCode(...o)}return btoa(i)}async function HA(r,n,i){let u;try{u=await fetch(n,{signal:i})}catch(o){throw yd(o)?o:new Xe(r,"image_fetch","Could not download the image for analysis.",{details:o})}if(!u.ok)throw new Xe(r,"image_fetch",`Could not download the image (HTTP ${u.status}).`,{status:u.status});try{const o=new Uint8Array(await u.arrayBuffer()),c=u.headers.get("content-type")?.split(";")[0];return{data:jA(o),mimeType:c?.startsWith("image/")?c:"image/jpeg"}}catch(o){throw yd(o)?o:new Xe(r,"image_fetch","Could not read the downloaded image.",{details:o})}}const VA="https://api.openai.com/v1",GA="https://api.anthropic.com/v1",BA="https://generativelanguage.googleapis.com/v1beta",l_="1000",u_=50;function zd(r,n){const i=n.trim();if(!i)throw new Xe(r,"configuration","API key is required to load models.");return i}function Ud(r){return Array.from(new Set(r)).sort((n,i)=>n.localeCompare(i))}function IA(r){const n=ze(r);if(!n||!Array.isArray(n.data))return[];const i=[];for(const u of n.data){const o=ze(u);typeof o?.id=="string"&&o.id.trim()&&i.push(o.id.trim())}return i}async function PA(r,n,i=VA){const u=zd("openai",r),o=await Hr("openai",Va(i,"models"),{headers:{Authorization:`Bearer ${u}`},signal:n});return Ud(IA(o))}function Ju(r){return new Xe(r,"invalid_response","The provider returned invalid model-list pagination data.")}function YA(r){const n=ze(r);if(!n||!Array.isArray(n.data))return[];const i=[];for(const u of n.data){const o=ze(u);typeof o?.id=="string"&&o.id.trim()&&i.push(o.id.trim())}return i}async function o_(r,n,i,u,o=1){if(o>u_)throw Ju("anthropic");const c=new URL(Va(i,"models"));c.searchParams.set("limit",l_),u&&c.searchParams.set("after_id",u);const d=await Hr("anthropic",c.toString(),{headers:{"anthropic-dangerous-direct-browser-access":"true","anthropic-version":"2023-06-01","x-api-key":r},signal:n}),p=YA(d),h=ze(d);if(h?.has_more!==!0)return p;const m=h.last_id;if(typeof m!="string"||!m||m===u)throw Ju("anthropic");const y=await o_(r,n,i,m,o+1);return[...p,...y]}async function $A(r,n,i=GA){const u=zd("anthropic",r);return Ud(await o_(u,n,i))}function FA(r){return r.startsWith("models/")?r.slice(7):r}function kA(r){const n=ze(r);if(!n||!Array.isArray(n.models))return[];const i=[];for(const u of n.models){const o=ze(u);typeof o?.name!="string"||!o.name.trim()||i.push(FA(o.name.trim()))}return i}async function s_(r,n,i,u,o=1){if(o>u_)throw Ju("gemini");const c=new URL(Va(i,"models"));c.searchParams.set("pageSize",l_),u&&c.searchParams.set("pageToken",u);const d=await Hr("gemini",c.toString(),{headers:{"x-goog-api-key":r},signal:n}),p=kA(d),m=ze(d)?.nextPageToken;if(m==null)return p;if(typeof m!="string"||!m||m===u)throw Ju("gemini");const y=await s_(r,n,i,m,o+1);return[...p,...y]}async function XA(r,n,i=BA){const u=zd("gemini",r);return Ud(await s_(u,n,i))}async function KA(r,n,i){switch(r){case"openai":return PA(n,i);case"anthropic":return $A(n,i);case"gemini":return XA(n,i)}}const QA="_intro_jq357_1",ZA="_readOnlyNotice_jq357_8",JA="_externalChangeNotice_jq357_9",WA="_fieldHelp_jq357_25",e2="_sectionHelp_jq357_26",wa={intro:QA,readOnlyNotice:ZA,externalChangeNotice:JA,fieldHelp:WA,sectionHelp:e2},t2=600,n2={"alttext-ai":{apiKeyLabel:"AltText.ai API key",apiKeyPlaceholder:"Paste your AltText.ai API key",apiKeyUrl:"https://alttext.ai/account/api_keys"},openai:{apiKeyLabel:"OpenAI API key",apiKeyPlaceholder:"sk-...",apiKeyUrl:"https://platform.openai.com/api-keys",modelLabel:"OpenAI model"},anthropic:{apiKeyLabel:"Anthropic API key",apiKeyPlaceholder:"sk-ant-...",apiKeyUrl:"https://console.anthropic.com/settings/keys",modelLabel:"Claude model"},gemini:{apiKeyLabel:"Gemini API key",apiKeyPlaceholder:"AIza...",apiKeyUrl:"https://aistudio.google.com/app/apikey",modelLabel:"Gemini model"}};function Nd(r){return r!=="alttext-ai"}function r2(r){switch(r.provider){case"alttext-ai":return r.altTextAiApiKey;case"openai":return r.openAiApiKey;case"anthropic":return r.anthropicApiKey;case"gemini":return r.geminiApiKey}}function a2(r,n){switch(r.provider){case"alttext-ai":return{...r,altTextAiApiKey:n};case"openai":return{...r,openAiApiKey:n};case"anthropic":return{...r,anthropicApiKey:n};case"gemini":return{...r,geminiApiKey:n}}}function i2(r){switch(r.provider){case"openai":return r.openAiModel;case"anthropic":return r.anthropicModel;case"gemini":return r.geminiModel;case"alttext-ai":return""}}function l2(r,n){switch(r.provider){case"openai":return{...r,openAiModel:n};case"anthropic":return{...r,anthropicModel:n};case"gemini":return{...r,geminiModel:n};case"alttext-ai":return r}}function c_(r){return r&&!Array.isArray(r)&&typeof r=="object"&&"value"in r&&typeof r.value=="string"?r.value:null}function f_(r){return r instanceof Error?r.message:"Unknown error"}function u2(r,n){const[i,u]=Y.useState({models:[],isLoading:!1,error:null});return Y.useEffect(()=>{if(!Nd(r)||!n.trim()){u({models:[],isLoading:!1,error:null});return}u({models:[],isLoading:!1,error:null});const o=new AbortController,c=window.setTimeout(()=>{u({models:[],isLoading:!0,error:null}),KA(r,n.trim(),o.signal).then(d=>{o.signal.aborted||u({models:d,isLoading:!1,error:null})}).catch(d=>{o.signal.aborted||u({models:[],isLoading:!1,error:`Could not load models: ${f_(d)}`})})},t2);return()=>{window.clearTimeout(c),o.abort()}},[n,r]),i}function o2(r){const n=c_(r);return md.some(i=>i.value===n)?n:null}function s2(r,n){return Array.from(new Set([n,...r].filter(Boolean))).map(i=>({label:i,value:i}))}function c2(r,n,i,u,o){const c=Nd(r);return{apiKey:n.trim()?void 0:`${o.apiKeyLabel} is required.`,model:c&&!i.trim()?`${o.modelLabel||"Model"} is required.`:void 0,prompt:c&&!u.trim()?"Prompt is required for direct AI providers.":void 0}}function f2(r,n){if(!r.trim())return"Enter an API key to load models directly from the provider.";if(n.isLoading)return"Loading models directly from the provider…";if(n.error)return n.error;if(n.models.length===0)return"The provider returned no models. You can enter a model ID manually.";const i=n.models.length;return`${i} model${i===1?"":"s"} loaded directly from the provider. Select one that accepts image input and returns text, or enter a model ID manually.`}function d2({ctx:r}){const n=Y.useMemo(()=>Zu(r.plugin.attributes.parameters),[r.plugin.attributes.parameters]),[i,u]=Y.useState(n),[o,c]=Y.useState(n),[d,p]=Y.useState(!1),[h,m]=Y.useState(!1),y=JSON.stringify(Cu(n)),g=JSON.stringify(Cu(i)),b=JSON.stringify(Cu(o)),S=Y.useRef(y),T=g!==b;Y.useEffect(()=>{if(y!==S.current){if(S.current=y,T){m(!0);return}u(n),c(n),m(!1)}},[y,n,T]);const O=r.currentRole.meta.final_permissions.can_edit_schema===!0,M=r2(i),R=i2(i),F=u2(i.provider,M),B=pd(i),$=n2[i.provider],z=!O||d,k=c2(i.provider,M,R,i.prompt,$),j=Y.useMemo(()=>s2(F.models,R),[F.models,R]),Q=async()=>{const he=pd(i);if(he){await r.alert(he);return}if(h){await r.alert("Plugin settings changed elsewhere. Load the latest settings before saving.");return}p(!0);try{const fe=Cu(i);await r.updatePluginParameters(fe);const le=Zu(fe);u(le),c(le),m(!1),r.notice("Alt text provider settings saved.")}catch(fe){r.alert(`Could not save plugin settings: ${f_(fe)}`)}finally{p(!1)}},ie=f2(M,F);return Ke.jsxs(hE,{ctx:r,children:[Ke.jsx("p",{className:wa.intro,children:"Choose the service that will inspect your images and generate localized alt text. API requests run directly from the DatoCMS dashboard."}),!O&&Ke.jsx("div",{className:wa.readOnlyNotice,children:"Your role can view these settings but cannot change plugin configuration."}),h&&Ke.jsxs("div",{className:wa.externalChangeNotice,children:[Ke.jsx("span",{children:"Plugin settings changed elsewhere while you were editing. Load the latest settings to avoid overwriting them."}),Ke.jsx(Kv,{buttonType:"muted",buttonSize:"s",disabled:d,onClick:()=>{u(n),c(n),m(!1)},children:"Load latest settings"})]}),Ke.jsxs(nT,{onSubmit:()=>{Q()},children:[Ke.jsx(hy,{title:"Provider",children:Ke.jsxs(KE,{children:[Ke.jsx(mT,{id:"provider",name:"provider",label:"Alt text provider",value:md.find(he=>he.value===i.provider),selectInputProps:{isDisabled:z,options:md},onChange:he=>{const fe=o2(he);fe&&u(le=>({...le,provider:fe}))}}),Ke.jsxs("div",{children:[Ke.jsx(pA,{required:!0,id:"providerApiKey",name:"providerApiKey",label:$.apiKeyLabel,error:k.apiKey,placeholder:$.apiKeyPlaceholder,value:M,textInputProps:{autoComplete:"off",disabled:z,monospaced:!0,type:"password"},onChange:he=>u(fe=>a2(fe,he))}),Ke.jsxs("p",{className:wa.fieldHelp,children:["Create or manage keys in the"," ",Ke.jsxs("a",{href:$.apiKeyUrl,target:"_blank",rel:"noreferrer",children:[uo[i.provider]," dashboard"]}),". The key is stored in this plugin's settings and used by browser requests."]})]}),Nd(i.provider)&&Ke.jsx(pT,{required:!0,id:"providerModel",name:"providerModel",label:$.modelLabel||"Model",error:k.model,hint:ie,value:R?{label:R,value:R}:null,selectInputProps:{formatCreateLabel:he=>`Use model “${he}”`,isDisabled:z,isLoading:F.isLoading,options:j},onChange:he=>{const fe=c_(he);fe&&u(le=>l2(le,fe))}})]})}),Ke.jsxs(hy,{title:"Generation instructions",children:[i.provider==="alttext-ai"?Ke.jsx("p",{className:wa.sectionHelp,children:"AltText.ai applies the generation settings configured in your AltText.ai account. The prompt below is used when you select a direct model provider."}):Ke.jsx("p",{className:wa.sectionHelp,children:"The prompt is sent with each image. Keep the output instruction strict so the response contains only usable alt text."}),Ke.jsx(fA,{required:i.provider!=="alttext-ai",id:"prompt",name:"prompt",label:"Prompt template",error:k.prompt,hint:"Available placeholders: {locale} and {filename}.",value:i.prompt,textareaInputProps:{disabled:z,rows:7},onChange:he=>u(fe=>({...fe,prompt:he}))})]}),O&&Ke.jsxs(Kv,{type:"submit",buttonType:"primary",buttonSize:"l",disabled:!T||d||h||B!==null,fullWidth:!0,children:[d?"Saving…":"Save settings",d&&Ke.jsx(cA,{size:24})]})]})]})}var Xc={exports:{}},ji={},Kc={exports:{}},Qc={};var $y;function h2(){return $y||($y=1,(function(r){function n(U,X){var ee=U.length;U.push(X);e:for(;0<ee;){var Se=ee-1>>>1,Oe=U[Se];if(0<o(Oe,X))U[Se]=X,U[ee]=Oe,ee=Se;else break e}}function i(U){return U.length===0?null:U[0]}function u(U){if(U.length===0)return null;var X=U[0],ee=U.pop();if(ee!==X){U[0]=ee;e:for(var Se=0,Oe=U.length,C=Oe>>>1;Se<C;){var V=2*(Se+1)-1,K=U[V],Z=V+1,ue=U[Z];if(0>o(K,ee))Z<Oe&&0>o(ue,K)?(U[Se]=ue,U[Z]=ee,Se=Z):(U[Se]=K,U[V]=ee,Se=V);else if(Z<Oe&&0>o(ue,ee))U[Se]=ue,U[Z]=ee,Se=Z;else break e}}return X}function o(U,X){var ee=U.sortIndex-X.sortIndex;return ee!==0?ee:U.id-X.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;r.unstable_now=function(){return c.now()}}else{var d=Date,p=d.now();r.unstable_now=function(){return d.now()-p}}var h=[],m=[],y=1,g=null,b=3,S=!1,T=!1,O=!1,M=!1,R=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function $(U){for(var X=i(m);X!==null;){if(X.callback===null)u(m);else if(X.startTime<=U)u(m),X.sortIndex=X.expirationTime,n(h,X);else break;X=i(m)}}function z(U){if(O=!1,$(U),!T)if(i(h)!==null)T=!0,k||(k=!0,le());else{var X=i(m);X!==null&&_e(z,X.startTime-U)}}var k=!1,j=-1,Q=5,ie=-1;function he(){return M?!0:!(r.unstable_now()-ie<Q)}function fe(){if(M=!1,k){var U=r.unstable_now();ie=U;var X=!0;try{e:{T=!1,O&&(O=!1,F(j),j=-1),S=!0;var ee=b;try{t:{for($(U),g=i(h);g!==null&&!(g.expirationTime>U&&he());){var Se=g.callback;if(typeof Se=="function"){g.callback=null,b=g.priorityLevel;var Oe=Se(g.expirationTime<=U);if(U=r.unstable_now(),typeof Oe=="function"){g.callback=Oe,$(U),X=!0;break t}g===i(h)&&u(h),$(U)}else u(h);g=i(h)}if(g!==null)X=!0;else{var C=i(m);C!==null&&_e(z,C.startTime-U),X=!1}}break e}finally{g=null,b=ee,S=!1}X=void 0}}finally{X?le():k=!1}}}var le;if(typeof B=="function")le=function(){B(fe)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,Ne=me.port2;me.port1.onmessage=fe,le=function(){Ne.postMessage(null)}}else le=function(){R(fe,0)};function _e(U,X){j=R(function(){U(r.unstable_now())},X)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(U){U.callback=null},r.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<U?Math.floor(1e3/U):5},r.unstable_getCurrentPriorityLevel=function(){return b},r.unstable_next=function(U){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var ee=b;b=X;try{return U()}finally{b=ee}},r.unstable_requestPaint=function(){M=!0},r.unstable_runWithPriority=function(U,X){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ee=b;b=U;try{return X()}finally{b=ee}},r.unstable_scheduleCallback=function(U,X,ee){var Se=r.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Se+ee:Se):ee=Se,U){case 1:var Oe=-1;break;case 2:Oe=250;break;case 5:Oe=1073741823;break;case 4:Oe=1e4;break;default:Oe=5e3}return Oe=ee+Oe,U={id:y++,callback:X,priorityLevel:U,startTime:ee,expirationTime:Oe,sortIndex:-1},ee>Se?(U.sortIndex=ee,n(m,U),i(h)===null&&U===i(m)&&(O?(F(j),j=-1):O=!0,_e(z,ee-Se))):(U.sortIndex=Oe,n(h,U),T||S||(T=!0,k||(k=!0,le()))),U},r.unstable_shouldYield=he,r.unstable_wrapCallback=function(U){var X=b;return function(){var ee=b;b=X;try{return U.apply(this,arguments)}finally{b=ee}}}})(Qc)),Qc}var Fy;function m2(){return Fy||(Fy=1,Kc.exports=h2()),Kc.exports}var ky;function p2(){if(ky)return ji;ky=1;var r=m2(),n=Sd(),i=ob();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(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 p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,l=t;;){var s=a.return;if(s===null)break;var f=s.alternate;if(f===null){if(l=s.return,l!==null){a=l;continue}break}if(s.child===f.child){for(f=s.child;f;){if(f===a)return h(s),e;if(f===l)return h(s),t;f=f.sibling}throw Error(u(188))}if(a.return!==l.return)a=s,l=f;else{for(var v=!1,_=s.child;_;){if(_===a){v=!0,a=s,l=f;break}if(_===l){v=!0,l=s,a=f;break}_=_.sibling}if(!v){for(_=f.child;_;){if(_===a){v=!0,a=f,l=s;break}if(_===l){v=!0,l=f,a=s;break}_=_.sibling}if(!v)throw Error(u(189))}}if(a.alternate!==l)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),B=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),he=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var me=Symbol.for("react.client.reference");function Ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case R:return"Profiler";case M:return"StrictMode";case z:return"Suspense";case k:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case B:return e.displayName||"Context";case F:return(e._context.displayName||"Context")+".Consumer";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case j:return t=e.displayName||null,t!==null?t:Ne(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return Ne(e(t))}catch{}}return null}var _e=Array.isArray,U=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Se=[],Oe=-1;function C(e){return{current:e}}function V(e){0>Oe||(e.current=Se[Oe],Se[Oe]=null,Oe--)}function K(e,t){Oe++,Se[Oe]=e.current,e.current=t}var Z=C(null),ue=C(null),ce=C(null),be=C(null);function Ye(e,t){switch(K(ce,t),K(ue,e),K(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?dv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=dv(t),e=hv(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(Z),K(Z,e)}function Pe(){V(Z),V(ue),V(ce)}function fr(e){e.memoizedState!==null&&K(be,e);var t=Z.current,a=hv(t,e.type);t!==a&&(K(ue,e),K(Z,a))}function dr(e){ue.current===e&&(V(Z),V(ue)),be.current===e&&(V(be),Mi._currentValue=ee)}var Vr,Ki;function rn(e){if(Vr===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Vr=t&&t[1]||"",Ki=-1<a.stack.indexOf(`
|
|
7
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
8
|
+
`+Vr+e+Ki}var Ga=!1;function mo(e,t){if(!e||Ga)return"";Ga=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(N){var L=N}Reflect.construct(e,[],P)}else{try{P.call()}catch(N){L=N}e.call(P.prototype)}}else{try{throw Error()}catch(N){L=N}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(N){if(N&&L&&typeof N.stack=="string")return[N.stack,L.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),v=f[0],_=f[1];if(v&&_){var E=v.split(`
|
|
9
|
+
`),q=_.split(`
|
|
10
|
+
`);for(s=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;s<q.length&&!q[s].includes("DetermineComponentFrameRoot");)s++;if(l===E.length||s===q.length)for(l=E.length-1,s=q.length-1;1<=l&&0<=s&&E[l]!==q[s];)s--;for(;1<=l&&0<=s;l--,s--)if(E[l]!==q[s]){if(l!==1||s!==1)do if(l--,s--,0>s||E[l]!==q[s]){var G=`
|
|
11
|
+
`+E[l].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=l&&0<=s);break}}}finally{Ga=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?rn(a):""}function M0(e,t){switch(e.tag){case 26:case 27:case 5:return rn(e.type);case 16:return rn("Lazy");case 13:return e.child!==t&&t!==null?rn("Suspense Fallback"):rn("Suspense");case 19:return rn("SuspenseList");case 0:case 15:return mo(e.type,!1);case 11:return mo(e.type.render,!1);case 1:return mo(e.type,!0);case 31:return rn("Activity");default:return""}}function Pd(e){try{var t="",a=null;do t+=M0(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
12
|
+
Error generating stack: `+l.message+`
|
|
13
|
+
`+l.stack}}var po=Object.prototype.hasOwnProperty,vo=r.unstable_scheduleCallback,yo=r.unstable_cancelCallback,R0=r.unstable_shouldYield,D0=r.unstable_requestPaint,At=r.unstable_now,q0=r.unstable_getCurrentPriorityLevel,Yd=r.unstable_ImmediatePriority,$d=r.unstable_UserBlockingPriority,Qi=r.unstable_NormalPriority,L0=r.unstable_LowPriority,Fd=r.unstable_IdlePriority,z0=r.log,U0=r.unstable_setDisableYieldValue,Ba=null,xt=null;function Hn(e){if(typeof z0=="function"&&U0(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Ba,e)}catch{}}var Mt=Math.clz32?Math.clz32:H0,N0=Math.log,j0=Math.LN2;function H0(e){return e>>>=0,e===0?32:31-(N0(e)/j0|0)|0}var Zi=256,Ji=262144,Wi=4194304;function hr(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function el(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var s=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var _=l&134217727;return _!==0?(l=_&~f,l!==0?s=hr(l):(v&=_,v!==0?s=hr(v):a||(a=_&~e,a!==0&&(s=hr(a))))):(_=l&~f,_!==0?s=hr(_):v!==0?s=hr(v):a||(a=l&~e,a!==0&&(s=hr(a)))),s===0?0:t!==0&&t!==s&&(t&f)===0&&(f=s&-s,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:s}function Ia(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function V0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function kd(){var e=Wi;return Wi<<=1,(Wi&62914560)===0&&(Wi=4194304),e}function go(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Pa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function G0(e,t,a,l,s,f){var v=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var _=e.entanglements,E=e.expirationTimes,q=e.hiddenUpdates;for(a=v&~a;0<a;){var G=31-Mt(a),P=1<<G;_[G]=0,E[G]=-1;var L=q[G];if(L!==null)for(q[G]=null,G=0;G<L.length;G++){var N=L[G];N!==null&&(N.lane&=-536870913)}a&=~P}l!==0&&Xd(e,l,0),f!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=f&~(v&~t))}function Xd(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Mt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Kd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Mt(a),s=1<<l;s&t|e[l]&t&&(e[l]|=t),a&=~s}}function Qd(e,t){var a=t&-t;return a=(a&42)!==0?1:bo(a),(a&(e.suspendedLanes|t))!==0?0:a}function bo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function _o(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Zd(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Nv(e.type))}function Jd(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var Vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+Vn,bt="__reactProps$"+Vn,Gr="__reactContainer$"+Vn,So="__reactEvents$"+Vn,B0="__reactListeners$"+Vn,I0="__reactHandles$"+Vn,Wd="__reactResources$"+Vn,Ya="__reactMarker$"+Vn;function Eo(e){delete e[ct],delete e[bt],delete e[So],delete e[B0],delete e[I0]}function Br(e){var t=e[ct];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Gr]||a[ct]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=_v(e);e!==null;){if(a=e[ct])return a;e=_v(e)}return t}e=a,a=e.parentNode}return null}function Ir(e){if(e=e[ct]||e[Gr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function $a(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Pr(e){var t=e[Wd];return t||(t=e[Wd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ot(e){e[Ya]=!0}var eh=new Set,th={};function mr(e,t){Yr(e,t),Yr(e+"Capture",t)}function Yr(e,t){for(th[e]=t,e=0;e<t.length;e++)eh.add(t[e])}var P0=RegExp("^[: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]*$"),nh={},rh={};function Y0(e){return po.call(rh,e)?!0:po.call(nh,e)?!1:P0.test(e)?rh[e]=!0:(nh[e]=!0,!1)}function tl(e,t,a){if(Y0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function nl(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function mn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ah(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $0(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,f=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(v){a=""+v,f.call(this,v)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(v){a=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function To(e){if(!e._valueTracker){var t=ah(e)?"checked":"value";e._valueTracker=$0(e,t,""+e[t])}}function ih(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=ah(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function rl(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}}var F0=/[\n"\\]/g;function Gt(e){return e.replace(F0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Oo(e,t,a,l,s,f,v,_){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?wo(e,v,Vt(t)):a!=null?wo(e,v,Vt(a)):l!=null&&e.removeAttribute("value"),s==null&&f!=null&&(e.defaultChecked=!!f),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+Vt(_):e.removeAttribute("name")}function lh(e,t,a,l,s,f,v,_){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){To(e);return}a=a!=null?""+Vt(a):"",t=t!=null?""+Vt(t):a,_||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=_?e.checked:!!l,e.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),To(e)}function wo(e,t,a){t==="number"&&rl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function $r(e,t,a,l){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Vt(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function uh(e,t,a){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Vt(a):""}function oh(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(u(92));if(_e(l)){if(1<l.length)throw Error(u(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Vt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),To(e)}function Fr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var k0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function sh(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||k0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function ch(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&a[s]!==l&&sh(e,s,l)}else for(var f in t)t.hasOwnProperty(f)&&sh(e,f,t[f])}function Co(e){if(e.indexOf("-")===-1)return!1;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 X0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),K0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function al(e){return K0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function pn(){}var Ao=null;function xo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kr=null,Xr=null;function fh(e){var t=Ir(e);if(t&&(e=t.stateNode)){var a=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Oo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Gt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var s=l[bt]||null;if(!s)throw Error(u(90));Oo(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&ih(l)}break e;case"textarea":uh(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&$r(e,!!a.multiple,t,!1)}}}var Mo=!1;function dh(e,t,a){if(Mo)return e(t,a);Mo=!0;try{var l=e(t);return l}finally{if(Mo=!1,(kr!==null||Xr!==null)&&($l(),kr&&(t=kr,e=Xr,Xr=kr=null,fh(t),e)))for(t=0;t<e.length;t++)fh(e[t])}}function Fa(e,t){var a=e.stateNode;if(a===null)return null;var l=a[bt]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ro=!1;if(vn)try{var ka={};Object.defineProperty(ka,"passive",{get:function(){Ro=!0}}),window.addEventListener("test",ka,ka),window.removeEventListener("test",ka,ka)}catch{Ro=!1}var Gn=null,Do=null,il=null;function hh(){if(il)return il;var e,t=Do,a=t.length,l,s="value"in Gn?Gn.value:Gn.textContent,f=s.length;for(e=0;e<a&&t[e]===s[e];e++);var v=a-e;for(l=1;l<=v&&t[a-l]===s[f-l];l++);return il=s.slice(e,1<l?1-l:void 0)}function ll(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 ul(){return!0}function mh(){return!1}function _t(e){function t(a,l,s,f,v){this._reactName=a,this._targetInst=s,this.type=l,this.nativeEvent=f,this.target=v,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(a=e[_],this[_]=a?a(f):f[_]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?ul:mh,this.isPropagationStopped=mh,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ul)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ul)},persist:function(){},isPersistent:ul}),t}var pr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ol=_t(pr),Xa=g({},pr,{view:0,detail:0}),Q0=_t(Xa),qo,Lo,Ka,sl=g({},Xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uo,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!==Ka&&(Ka&&e.type==="mousemove"?(qo=e.screenX-Ka.screenX,Lo=e.screenY-Ka.screenY):Lo=qo=0,Ka=e),qo)},movementY:function(e){return"movementY"in e?e.movementY:Lo}}),ph=_t(sl),Z0=g({},sl,{dataTransfer:0}),J0=_t(Z0),W0=g({},Xa,{relatedTarget:0}),zo=_t(W0),eS=g({},pr,{animationName:0,elapsedTime:0,pseudoElement:0}),tS=_t(eS),nS=g({},pr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rS=_t(nS),aS=g({},pr,{data:0}),vh=_t(aS),iS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lS={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"},uS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uS[e])?!!t[e]:!1}function Uo(){return oS}var sS=g({},Xa,{key:function(e){if(e.key){var t=iS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ll(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?lS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uo,charCode:function(e){return e.type==="keypress"?ll(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ll(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cS=_t(sS),fS=g({},sl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yh=_t(fS),dS=g({},Xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uo}),hS=_t(dS),mS=g({},pr,{propertyName:0,elapsedTime:0,pseudoElement:0}),pS=_t(mS),vS=g({},sl,{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}),yS=_t(vS),gS=g({},pr,{newState:0,oldState:0}),bS=_t(gS),_S=[9,13,27,32],No=vn&&"CompositionEvent"in window,Qa=null;vn&&"documentMode"in document&&(Qa=document.documentMode);var SS=vn&&"TextEvent"in window&&!Qa,gh=vn&&(!No||Qa&&8<Qa&&11>=Qa),bh=" ",_h=!1;function Sh(e,t){switch(e){case"keyup":return _S.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kr=!1;function ES(e,t){switch(e){case"compositionend":return Eh(t);case"keypress":return t.which!==32?null:(_h=!0,bh);case"textInput":return e=t.data,e===bh&&_h?null:e;default:return null}}function TS(e,t){if(Kr)return e==="compositionend"||!No&&Sh(e,t)?(e=hh(),il=Do=Gn=null,Kr=!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 gh&&t.locale!=="ko"?null:t.data;default:return null}}var OS={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 Th(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OS[e.type]:t==="textarea"}function Oh(e,t,a,l){kr?Xr?Xr.push(l):Xr=[l]:kr=l,t=Jl(t,"onChange"),0<t.length&&(a=new ol("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Za=null,Ja=null;function wS(e){lv(e,0)}function cl(e){var t=$a(e);if(ih(t))return e}function wh(e,t){if(e==="change")return t}var Ch=!1;if(vn){var jo;if(vn){var Ho="oninput"in document;if(!Ho){var Ah=document.createElement("div");Ah.setAttribute("oninput","return;"),Ho=typeof Ah.oninput=="function"}jo=Ho}else jo=!1;Ch=jo&&(!document.documentMode||9<document.documentMode)}function xh(){Za&&(Za.detachEvent("onpropertychange",Mh),Ja=Za=null)}function Mh(e){if(e.propertyName==="value"&&cl(Ja)){var t=[];Oh(t,Ja,e,xo(e)),dh(wS,t)}}function CS(e,t,a){e==="focusin"?(xh(),Za=t,Ja=a,Za.attachEvent("onpropertychange",Mh)):e==="focusout"&&xh()}function AS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cl(Ja)}function xS(e,t){if(e==="click")return cl(t)}function MS(e,t){if(e==="input"||e==="change")return cl(t)}function RS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rt=typeof Object.is=="function"?Object.is:RS;function Wa(e,t){if(Rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var s=a[l];if(!po.call(t,s)||!Rt(e[s],t[s]))return!1}return!0}function Rh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dh(e,t){var a=Rh(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Rh(a)}}function qh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=rl(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=rl(e.document)}return t}function Vo(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")}var DS=vn&&"documentMode"in document&&11>=document.documentMode,Qr=null,Go=null,ei=null,Bo=!1;function zh(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Bo||Qr==null||Qr!==rl(l)||(l=Qr,"selectionStart"in l&&Vo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ei&&Wa(ei,l)||(ei=l,l=Jl(Go,"onSelect"),0<l.length&&(t=new ol("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Qr)))}function vr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Zr={animationend:vr("Animation","AnimationEnd"),animationiteration:vr("Animation","AnimationIteration"),animationstart:vr("Animation","AnimationStart"),transitionrun:vr("Transition","TransitionRun"),transitionstart:vr("Transition","TransitionStart"),transitioncancel:vr("Transition","TransitionCancel"),transitionend:vr("Transition","TransitionEnd")},Io={},Uh={};vn&&(Uh=document.createElement("div").style,"AnimationEvent"in window||(delete Zr.animationend.animation,delete Zr.animationiteration.animation,delete Zr.animationstart.animation),"TransitionEvent"in window||delete Zr.transitionend.transition);function yr(e){if(Io[e])return Io[e];if(!Zr[e])return e;var t=Zr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Uh)return Io[e]=t[a];return e}var Nh=yr("animationend"),jh=yr("animationiteration"),Hh=yr("animationstart"),qS=yr("transitionrun"),LS=yr("transitionstart"),zS=yr("transitioncancel"),Vh=yr("transitionend"),Gh=new Map,Po="abort auxClick beforeToggle 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(" ");Po.push("scrollEnd");function Jt(e,t){Gh.set(e,t),mr(t,[e])}var fl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Bt=[],Jr=0,Yo=0;function dl(){for(var e=Jr,t=Yo=Jr=0;t<e;){var a=Bt[t];Bt[t++]=null;var l=Bt[t];Bt[t++]=null;var s=Bt[t];Bt[t++]=null;var f=Bt[t];if(Bt[t++]=null,l!==null&&s!==null){var v=l.pending;v===null?s.next=s:(s.next=v.next,v.next=s),l.pending=s}f!==0&&Bh(a,s,f)}}function hl(e,t,a,l){Bt[Jr++]=e,Bt[Jr++]=t,Bt[Jr++]=a,Bt[Jr++]=l,Yo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function $o(e,t,a,l){return hl(e,t,a,l),ml(e)}function gr(e,t){return hl(e,null,null,t),ml(e)}function Bh(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var s=!1,f=e.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(s=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,s&&t!==null&&(s=31-Mt(a),e=f.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=a|536870912),f):null}function ml(e){if(50<Ei)throw Ei=0,ec=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Wr={};function US(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,a,l){return new US(e,t,a,l)}function Fo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yn(e,t){var a=e.alternate;return a===null?(a=Dt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Ih(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pl(e,t,a,l,s,f){var v=0;if(l=e,typeof e=="function")Fo(e)&&(v=1);else if(typeof e=="string")v=G1(e,a,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=Dt(31,a,t,s),e.elementType=ie,e.lanes=f,e;case O:return br(a.children,s,f,t);case M:v=8,s|=24;break;case R:return e=Dt(12,a,t,s|2),e.elementType=R,e.lanes=f,e;case z:return e=Dt(13,a,t,s),e.elementType=z,e.lanes=f,e;case k:return e=Dt(19,a,t,s),e.elementType=k,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:v=10;break e;case F:v=9;break e;case $:v=11;break e;case j:v=14;break e;case Q:v=16,l=null;break e}v=29,a=Error(u(130,e===null?"null":typeof e,"")),l=null}return t=Dt(v,a,t,s),t.elementType=e,t.type=l,t.lanes=f,t}function br(e,t,a,l){return e=Dt(7,e,l,t),e.lanes=a,e}function ko(e,t,a){return e=Dt(6,e,null,t),e.lanes=a,e}function Ph(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function Xo(e,t,a){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yh=new WeakMap;function It(e,t){if(typeof e=="object"&&e!==null){var a=Yh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Pd(t)},Yh.set(e,t),t)}return{value:e,source:t,stack:Pd(t)}}var ea=[],ta=0,vl=null,ti=0,Pt=[],Yt=0,Bn=null,an=1,ln="";function gn(e,t){ea[ta++]=ti,ea[ta++]=vl,vl=e,ti=t}function $h(e,t,a){Pt[Yt++]=an,Pt[Yt++]=ln,Pt[Yt++]=Bn,Bn=e;var l=an;e=ln;var s=32-Mt(l)-1;l&=~(1<<s),a+=1;var f=32-Mt(t)+s;if(30<f){var v=s-s%5;f=(l&(1<<v)-1).toString(32),l>>=v,s-=v,an=1<<32-Mt(t)+s|a<<s|l,ln=f+e}else an=1<<f|a<<s|l,ln=e}function Ko(e){e.return!==null&&(gn(e,1),$h(e,1,0))}function Qo(e){for(;e===vl;)vl=ea[--ta],ea[ta]=null,ti=ea[--ta],ea[ta]=null;for(;e===Bn;)Bn=Pt[--Yt],Pt[Yt]=null,ln=Pt[--Yt],Pt[Yt]=null,an=Pt[--Yt],Pt[Yt]=null}function Fh(e,t){Pt[Yt++]=an,Pt[Yt++]=ln,Pt[Yt++]=Bn,an=t.id,ln=t.overflow,Bn=e}var ft=null,$e=null,Ae=!1,In=null,$t=!1,Zo=Error(u(519));function Pn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ni(It(t,e)),Zo}function kh(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[ct]=e,t[bt]=l,a){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(a=0;a<Oi.length;a++)Te(Oi[a],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),lh(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),oh(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||cv(t.textContent,a)?(l.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),l.onScroll!=null&&Te("scroll",t),l.onScrollEnd!=null&&Te("scrollend",t),l.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||Pn(e,!0)}function Xh(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:$t=!1;return;case 27:case 3:$t=!0;return;default:ft=ft.return}}function na(e){if(e!==ft)return!1;if(!Ae)return Xh(e),Ae=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||pc(e.type,e.memoizedProps)),a=!a),a&&$e&&Pn(e),Xh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));$e=bv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));$e=bv(e)}else t===27?(t=$e,rr(e.type)?(e=_c,_c=null,$e=e):$e=t):$e=ft?kt(e.stateNode.nextSibling):null;return!0}function _r(){$e=ft=null,Ae=!1}function Jo(){var e=In;return e!==null&&(Ot===null?Ot=e:Ot.push.apply(Ot,e),In=null),e}function ni(e){In===null?In=[e]:In.push(e)}var Wo=C(null),Sr=null,bn=null;function Yn(e,t,a){K(Wo,t._currentValue),t._currentValue=a}function _n(e){e._currentValue=Wo.current,V(Wo)}function es(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function ts(e,t,a,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var f=s.dependencies;if(f!==null){var v=s.child;f=f.firstContext;e:for(;f!==null;){var _=f;f=s;for(var E=0;E<t.length;E++)if(_.context===t[E]){f.lanes|=a,_=f.alternate,_!==null&&(_.lanes|=a),es(f.return,a,e),l||(v=null);break e}f=_.next}}else if(s.tag===18){if(v=s.return,v===null)throw Error(u(341));v.lanes|=a,f=v.alternate,f!==null&&(f.lanes|=a),es(v,a,e),v=null}else v=s.child;if(v!==null)v.return=s;else for(v=s;v!==null;){if(v===e){v=null;break}if(s=v.sibling,s!==null){s.return=v.return,v=s;break}v=v.return}s=v}}function ra(e,t,a,l){e=null;for(var s=t,f=!1;s!==null;){if(!f){if((s.flags&524288)!==0)f=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var v=s.alternate;if(v===null)throw Error(u(387));if(v=v.memoizedProps,v!==null){var _=s.type;Rt(s.pendingProps.value,v.value)||(e!==null?e.push(_):e=[_])}}else if(s===be.current){if(v=s.alternate,v===null)throw Error(u(387));v.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Mi):e=[Mi])}s=s.return}e!==null&&ts(t,e,a,l),t.flags|=262144}function yl(e){for(e=e.firstContext;e!==null;){if(!Rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Er(e){Sr=e,bn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dt(e){return Kh(Sr,e)}function gl(e,t){return Sr===null&&Er(e),Kh(e,t)}function Kh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},bn===null){if(e===null)throw Error(u(308));bn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else bn=bn.next=t;return a}var NS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},jS=r.unstable_scheduleCallback,HS=r.unstable_NormalPriority,tt={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ns(){return{controller:new NS,data:new Map,refCount:0}}function ri(e){e.refCount--,e.refCount===0&&jS(HS,function(){e.controller.abort()})}var ai=null,rs=0,aa=0,ia=null;function VS(e,t){if(ai===null){var a=ai=[];rs=0,aa=lc(),ia={status:"pending",value:void 0,then:function(l){a.push(l)}}}return rs++,t.then(Qh,Qh),t}function Qh(){if(--rs===0&&ai!==null){ia!==null&&(ia.status="fulfilled");var e=ai;ai=null,aa=0,ia=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function GS(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),l}var Zh=U.S;U.S=function(e,t){zp=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&VS(e,t),Zh!==null&&Zh(e,t)};var Tr=C(null);function as(){var e=Tr.current;return e!==null?e:Ie.pooledCache}function bl(e,t){t===null?K(Tr,Tr.current):K(Tr,t.pool)}function Jh(){var e=as();return e===null?null:{parent:tt._currentValue,pool:e}}var la=Error(u(460)),is=Error(u(474)),_l=Error(u(542)),Sl={then:function(){}};function Wh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function em(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(pn,pn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nm(e),e;default:if(typeof t.status=="string")t.then(pn,pn);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nm(e),e}throw wr=t,la}}function Or(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(wr=a,la):a}}var wr=null;function tm(){if(wr===null)throw Error(u(459));var e=wr;return wr=null,e}function nm(e){if(e===la||e===_l)throw Error(u(483))}var ua=null,ii=0;function El(e){var t=ii;return ii+=1,ua===null&&(ua=[]),em(ua,e,t)}function li(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Tl(e,t){throw t.$$typeof===b?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rm(e){function t(x,w){if(e){var D=x.deletions;D===null?(x.deletions=[w],x.flags|=16):D.push(w)}}function a(x,w){if(!e)return null;for(;w!==null;)t(x,w),w=w.sibling;return null}function l(x){for(var w=new Map;x!==null;)x.key!==null?w.set(x.key,x):w.set(x.index,x),x=x.sibling;return w}function s(x,w){return x=yn(x,w),x.index=0,x.sibling=null,x}function f(x,w,D){return x.index=D,e?(D=x.alternate,D!==null?(D=D.index,D<w?(x.flags|=67108866,w):D):(x.flags|=67108866,w)):(x.flags|=1048576,w)}function v(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function _(x,w,D,I){return w===null||w.tag!==6?(w=ko(D,x.mode,I),w.return=x,w):(w=s(w,D),w.return=x,w)}function E(x,w,D,I){var ne=D.type;return ne===O?G(x,w,D.props.children,I,D.key):w!==null&&(w.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===Q&&Or(ne)===w.type)?(w=s(w,D.props),li(w,D),w.return=x,w):(w=pl(D.type,D.key,D.props,null,x.mode,I),li(w,D),w.return=x,w)}function q(x,w,D,I){return w===null||w.tag!==4||w.stateNode.containerInfo!==D.containerInfo||w.stateNode.implementation!==D.implementation?(w=Xo(D,x.mode,I),w.return=x,w):(w=s(w,D.children||[]),w.return=x,w)}function G(x,w,D,I,ne){return w===null||w.tag!==7?(w=br(D,x.mode,I,ne),w.return=x,w):(w=s(w,D),w.return=x,w)}function P(x,w,D){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=ko(""+w,x.mode,D),w.return=x,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case S:return D=pl(w.type,w.key,w.props,null,x.mode,D),li(D,w),D.return=x,D;case T:return w=Xo(w,x.mode,D),w.return=x,w;case Q:return w=Or(w),P(x,w,D)}if(_e(w)||le(w))return w=br(w,x.mode,D,null),w.return=x,w;if(typeof w.then=="function")return P(x,El(w),D);if(w.$$typeof===B)return P(x,gl(x,w),D);Tl(x,w)}return null}function L(x,w,D,I){var ne=w!==null?w.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ne!==null?null:_(x,w,""+D,I);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return D.key===ne?E(x,w,D,I):null;case T:return D.key===ne?q(x,w,D,I):null;case Q:return D=Or(D),L(x,w,D,I)}if(_e(D)||le(D))return ne!==null?null:G(x,w,D,I,null);if(typeof D.then=="function")return L(x,w,El(D),I);if(D.$$typeof===B)return L(x,w,gl(x,D),I);Tl(x,D)}return null}function N(x,w,D,I,ne){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return x=x.get(D)||null,_(w,x,""+I,ne);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case S:return x=x.get(I.key===null?D:I.key)||null,E(w,x,I,ne);case T:return x=x.get(I.key===null?D:I.key)||null,q(w,x,I,ne);case Q:return I=Or(I),N(x,w,D,I,ne)}if(_e(I)||le(I))return x=x.get(D)||null,G(w,x,I,ne,null);if(typeof I.then=="function")return N(x,w,D,El(I),ne);if(I.$$typeof===B)return N(x,w,D,gl(w,I),ne);Tl(w,I)}return null}function W(x,w,D,I){for(var ne=null,xe=null,te=w,ge=w=0,Ce=null;te!==null&&ge<D.length;ge++){te.index>ge?(Ce=te,te=null):Ce=te.sibling;var Me=L(x,te,D[ge],I);if(Me===null){te===null&&(te=Ce);break}e&&te&&Me.alternate===null&&t(x,te),w=f(Me,w,ge),xe===null?ne=Me:xe.sibling=Me,xe=Me,te=Ce}if(ge===D.length)return a(x,te),Ae&&gn(x,ge),ne;if(te===null){for(;ge<D.length;ge++)te=P(x,D[ge],I),te!==null&&(w=f(te,w,ge),xe===null?ne=te:xe.sibling=te,xe=te);return Ae&&gn(x,ge),ne}for(te=l(te);ge<D.length;ge++)Ce=N(te,x,ge,D[ge],I),Ce!==null&&(e&&Ce.alternate!==null&&te.delete(Ce.key===null?ge:Ce.key),w=f(Ce,w,ge),xe===null?ne=Ce:xe.sibling=Ce,xe=Ce);return e&&te.forEach(function(or){return t(x,or)}),Ae&&gn(x,ge),ne}function oe(x,w,D,I){if(D==null)throw Error(u(151));for(var ne=null,xe=null,te=w,ge=w=0,Ce=null,Me=D.next();te!==null&&!Me.done;ge++,Me=D.next()){te.index>ge?(Ce=te,te=null):Ce=te.sibling;var or=L(x,te,Me.value,I);if(or===null){te===null&&(te=Ce);break}e&&te&&or.alternate===null&&t(x,te),w=f(or,w,ge),xe===null?ne=or:xe.sibling=or,xe=or,te=Ce}if(Me.done)return a(x,te),Ae&&gn(x,ge),ne;if(te===null){for(;!Me.done;ge++,Me=D.next())Me=P(x,Me.value,I),Me!==null&&(w=f(Me,w,ge),xe===null?ne=Me:xe.sibling=Me,xe=Me);return Ae&&gn(x,ge),ne}for(te=l(te);!Me.done;ge++,Me=D.next())Me=N(te,x,ge,Me.value,I),Me!==null&&(e&&Me.alternate!==null&&te.delete(Me.key===null?ge:Me.key),w=f(Me,w,ge),xe===null?ne=Me:xe.sibling=Me,xe=Me);return e&&te.forEach(function(Z1){return t(x,Z1)}),Ae&&gn(x,ge),ne}function Be(x,w,D,I){if(typeof D=="object"&&D!==null&&D.type===O&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case S:e:{for(var ne=D.key;w!==null;){if(w.key===ne){if(ne=D.type,ne===O){if(w.tag===7){a(x,w.sibling),I=s(w,D.props.children),I.return=x,x=I;break e}}else if(w.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===Q&&Or(ne)===w.type){a(x,w.sibling),I=s(w,D.props),li(I,D),I.return=x,x=I;break e}a(x,w);break}else t(x,w);w=w.sibling}D.type===O?(I=br(D.props.children,x.mode,I,D.key),I.return=x,x=I):(I=pl(D.type,D.key,D.props,null,x.mode,I),li(I,D),I.return=x,x=I)}return v(x);case T:e:{for(ne=D.key;w!==null;){if(w.key===ne)if(w.tag===4&&w.stateNode.containerInfo===D.containerInfo&&w.stateNode.implementation===D.implementation){a(x,w.sibling),I=s(w,D.children||[]),I.return=x,x=I;break e}else{a(x,w);break}else t(x,w);w=w.sibling}I=Xo(D,x.mode,I),I.return=x,x=I}return v(x);case Q:return D=Or(D),Be(x,w,D,I)}if(_e(D))return W(x,w,D,I);if(le(D)){if(ne=le(D),typeof ne!="function")throw Error(u(150));return D=ne.call(D),oe(x,w,D,I)}if(typeof D.then=="function")return Be(x,w,El(D),I);if(D.$$typeof===B)return Be(x,w,gl(x,D),I);Tl(x,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,w!==null&&w.tag===6?(a(x,w.sibling),I=s(w,D),I.return=x,x=I):(a(x,w),I=ko(D,x.mode,I),I.return=x,x=I),v(x)):a(x,w)}return function(x,w,D,I){try{ii=0;var ne=Be(x,w,D,I);return ua=null,ne}catch(te){if(te===la||te===_l)throw te;var xe=Dt(29,te,null,x.mode);return xe.lanes=I,xe.return=x,xe}}}var Cr=rm(!0),am=rm(!1),$n=!1;function ls(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function us(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function kn(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(De&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=ml(e),Bh(e,null,a),t}return hl(e,l,t,a),ml(e)}function ui(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Kd(e,a)}}function os(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var s=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var v={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?s=f=v:f=f.next=v,a=a.next}while(a!==null);f===null?s=f=t:f=f.next=t}else s=f=t;a={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var ss=!1;function oi(){if(ss){var e=ia;if(e!==null)throw e}}function si(e,t,a,l){ss=!1;var s=e.updateQueue;$n=!1;var f=s.firstBaseUpdate,v=s.lastBaseUpdate,_=s.shared.pending;if(_!==null){s.shared.pending=null;var E=_,q=E.next;E.next=null,v===null?f=q:v.next=q,v=E;var G=e.alternate;G!==null&&(G=G.updateQueue,_=G.lastBaseUpdate,_!==v&&(_===null?G.firstBaseUpdate=q:_.next=q,G.lastBaseUpdate=E))}if(f!==null){var P=s.baseState;v=0,G=q=E=null,_=f;do{var L=_.lane&-536870913,N=L!==_.lane;if(N?(we&L)===L:(l&L)===L){L!==0&&L===aa&&(ss=!0),G!==null&&(G=G.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var W=e,oe=_;L=t;var Be=a;switch(oe.tag){case 1:if(W=oe.payload,typeof W=="function"){P=W.call(Be,P,L);break e}P=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=oe.payload,L=typeof W=="function"?W.call(Be,P,L):W,L==null)break e;P=g({},P,L);break e;case 2:$n=!0}}L=_.callback,L!==null&&(e.flags|=64,N&&(e.flags|=8192),N=s.callbacks,N===null?s.callbacks=[L]:N.push(L))}else N={lane:L,tag:_.tag,payload:_.payload,callback:_.callback,next:null},G===null?(q=G=N,E=P):G=G.next=N,v|=L;if(_=_.next,_===null){if(_=s.shared.pending,_===null)break;N=_,_=N.next,N.next=null,s.lastBaseUpdate=N,s.shared.pending=null}}while(!0);G===null&&(E=P),s.baseState=E,s.firstBaseUpdate=q,s.lastBaseUpdate=G,f===null&&(s.shared.lanes=0),Jn|=v,e.lanes=v,e.memoizedState=P}}function im(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function lm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)im(a[e],t)}var oa=C(null),Ol=C(0);function um(e,t){e=Mn,K(Ol,e),K(oa,t),Mn=e|t.baseLanes}function cs(){K(Ol,Mn),K(oa,oa.current)}function fs(){Mn=Ol.current,V(oa),V(Ol)}var qt=C(null),Ft=null;function Xn(e){var t=e.alternate;K(We,We.current&1),K(qt,e),Ft===null&&(t===null||oa.current!==null||t.memoizedState!==null)&&(Ft=e)}function ds(e){K(We,We.current),K(qt,e),Ft===null&&(Ft=e)}function om(e){e.tag===22?(K(We,We.current),K(qt,e),Ft===null&&(Ft=e)):Kn()}function Kn(){K(We,We.current),K(qt,qt.current)}function Lt(e){V(qt),Ft===e&&(Ft=null),V(We)}var We=C(0);function wl(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||gc(a)||bc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Sn=0,ve=null,Ve=null,nt=null,Cl=!1,sa=!1,Ar=!1,Al=0,ci=0,ca=null,BS=0;function Qe(){throw Error(u(321))}function hs(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Rt(e[a],t[a]))return!1;return!0}function ms(e,t,a,l,s,f){return Sn=f,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?$m:Ms,Ar=!1,f=a(l,s),Ar=!1,sa&&(f=cm(t,a,l,s)),sm(e),f}function sm(e){U.H=hi;var t=Ve!==null&&Ve.next!==null;if(Sn=0,nt=Ve=ve=null,Cl=!1,ci=0,ca=null,t)throw Error(u(300));e===null||rt||(e=e.dependencies,e!==null&&yl(e)&&(rt=!0))}function cm(e,t,a,l){ve=e;var s=0;do{if(sa&&(ca=null),ci=0,sa=!1,25<=s)throw Error(u(301));if(s+=1,nt=Ve=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}U.H=Fm,f=t(a,l)}while(sa);return f}function IS(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?fi(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(ve.flags|=1024),t}function ps(){var e=Al!==0;return Al=0,e}function vs(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ys(e){if(Cl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Cl=!1}Sn=0,nt=Ve=ve=null,sa=!1,ci=Al=0,ca=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?ve.memoizedState=nt=e:nt=nt.next=e,nt}function et(){if(Ve===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=nt===null?ve.memoizedState:nt.next;if(t!==null)nt=t,Ve=e;else{if(e===null)throw ve.alternate===null?Error(u(467)):Error(u(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},nt===null?ve.memoizedState=nt=e:nt=nt.next=e}return nt}function xl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fi(e){var t=ci;return ci+=1,ca===null&&(ca=[]),e=em(ca,e,t),t=ve,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?$m:Ms),e}function Ml(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fi(e);if(e.$$typeof===B)return dt(e)}throw Error(u(438,String(e)))}function gs(e){var t=null,a=ve.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ve.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=xl(),ve.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=he;return t.index++,a}function En(e,t){return typeof t=="function"?t(e):t}function Rl(e){var t=et();return bs(t,Ve,e)}function bs(e,t,a){var l=e.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=a;var s=e.baseQueue,f=l.pending;if(f!==null){if(s!==null){var v=s.next;s.next=f.next,f.next=v}t.baseQueue=s=f,l.pending=null}if(f=e.baseState,s===null)e.memoizedState=f;else{t=s.next;var _=v=null,E=null,q=t,G=!1;do{var P=q.lane&-536870913;if(P!==q.lane?(we&P)===P:(Sn&P)===P){var L=q.revertLane;if(L===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),P===aa&&(G=!0);else if((Sn&L)===L){q=q.next,L===aa&&(G=!0);continue}else P={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},E===null?(_=E=P,v=f):E=E.next=P,ve.lanes|=L,Jn|=L;P=q.action,Ar&&a(f,P),f=q.hasEagerState?q.eagerState:a(f,P)}else L={lane:P,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},E===null?(_=E=L,v=f):E=E.next=L,ve.lanes|=P,Jn|=P;q=q.next}while(q!==null&&q!==t);if(E===null?v=f:E.next=_,!Rt(f,e.memoizedState)&&(rt=!0,G&&(a=ia,a!==null)))throw a;e.memoizedState=f,e.baseState=v,e.baseQueue=E,l.lastRenderedState=f}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function _s(e){var t=et(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var l=a.dispatch,s=a.pending,f=t.memoizedState;if(s!==null){a.pending=null;var v=s=s.next;do f=e(f,v.action),v=v.next;while(v!==s);Rt(f,t.memoizedState)||(rt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,l]}function fm(e,t,a){var l=ve,s=et(),f=Ae;if(f){if(a===void 0)throw Error(u(407));a=a()}else a=t();var v=!Rt((Ve||s).memoizedState,a);if(v&&(s.memoizedState=a,rt=!0),s=s.queue,Ts(mm.bind(null,l,s,e),[e]),s.getSnapshot!==t||v||nt!==null&&nt.memoizedState.tag&1){if(l.flags|=2048,fa(9,{destroy:void 0},hm.bind(null,l,s,a,t),null),Ie===null)throw Error(u(349));f||(Sn&127)!==0||dm(l,t,a)}return a}function dm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ve.updateQueue,t===null?(t=xl(),ve.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function hm(e,t,a,l){t.value=a,t.getSnapshot=l,pm(t)&&vm(e)}function mm(e,t,a){return a(function(){pm(t)&&vm(e)})}function pm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Rt(e,a)}catch{return!0}}function vm(e){var t=gr(e,2);t!==null&&wt(t,e,2)}function Ss(e){var t=gt();if(typeof e=="function"){var a=e;if(e=a(),Ar){Hn(!0);try{a()}finally{Hn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},t}function ym(e,t,a,l){return e.baseState=a,bs(e,Ve,typeof l=="function"?l:En)}function PS(e,t,a,l,s){if(Ll(e))throw Error(u(485));if(e=t.action,e!==null){var f={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){f.listeners.push(v)}};U.T!==null?a(!0):f.isTransition=!1,l(f),a=t.pending,a===null?(f.next=t.pending=f,gm(t,f)):(f.next=a.next,t.pending=a.next=f)}}function gm(e,t){var a=t.action,l=t.payload,s=e.state;if(t.isTransition){var f=U.T,v={};U.T=v;try{var _=a(s,l),E=U.S;E!==null&&E(v,_),bm(e,t,_)}catch(q){Es(e,t,q)}finally{f!==null&&v.types!==null&&(f.types=v.types),U.T=f}}else try{f=a(s,l),bm(e,t,f)}catch(q){Es(e,t,q)}}function bm(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){_m(e,t,l)},function(l){return Es(e,t,l)}):_m(e,t,a)}function _m(e,t,a){t.status="fulfilled",t.value=a,Sm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,gm(e,a)))}function Es(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Sm(t),t=t.next;while(t!==l)}e.action=null}function Sm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Em(e,t){return t}function Tm(e,t){if(Ae){var a=Ie.formState;if(a!==null){e:{var l=ve;if(Ae){if($e){t:{for(var s=$e,f=$t;s.nodeType!==8;){if(!f){s=null;break t}if(s=kt(s.nextSibling),s===null){s=null;break t}}f=s.data,s=f==="F!"||f==="F"?s:null}if(s){$e=kt(s.nextSibling),l=s.data==="F!";break e}}Pn(l)}l=!1}l&&(t=a[0])}}return a=gt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Em,lastRenderedState:t},a.queue=l,a=Im.bind(null,ve,l),l.dispatch=a,l=Ss(!1),f=xs.bind(null,ve,!1,l.queue),l=gt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,a=PS.bind(null,ve,s,f,a),s.dispatch=a,l.memoizedState=e,[t,a,!1]}function Om(e){var t=et();return wm(t,Ve,e)}function wm(e,t,a){if(t=bs(e,t,Em)[0],e=Rl(En)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=fi(t)}catch(v){throw v===la?_l:v}else l=t;t=et();var s=t.queue,f=s.dispatch;return a!==t.memoizedState&&(ve.flags|=2048,fa(9,{destroy:void 0},YS.bind(null,s,a),null)),[l,f,e]}function YS(e,t){e.action=t}function Cm(e){var t=et(),a=Ve;if(a!==null)return wm(t,a,e);et(),t=t.memoizedState,a=et();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function fa(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ve.updateQueue,t===null&&(t=xl(),ve.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Am(){return et().memoizedState}function Dl(e,t,a,l){var s=gt();ve.flags|=e,s.memoizedState=fa(1|t,{destroy:void 0},a,l===void 0?null:l)}function ql(e,t,a,l){var s=et();l=l===void 0?null:l;var f=s.memoizedState.inst;Ve!==null&&l!==null&&hs(l,Ve.memoizedState.deps)?s.memoizedState=fa(t,f,a,l):(ve.flags|=e,s.memoizedState=fa(1|t,f,a,l))}function xm(e,t){Dl(8390656,8,e,t)}function Ts(e,t){ql(2048,8,e,t)}function $S(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=xl(),ve.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Mm(e){var t=et().memoizedState;return $S({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Rm(e,t){return ql(4,2,e,t)}function Dm(e,t){return ql(4,4,e,t)}function qm(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Lm(e,t,a){a=a!=null?a.concat([e]):null,ql(4,4,qm.bind(null,t,e),a)}function Os(){}function zm(e,t){var a=et();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&hs(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Um(e,t){var a=et();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&hs(t,l[1]))return l[0];if(l=e(),Ar){Hn(!0);try{e()}finally{Hn(!1)}}return a.memoizedState=[l,t],l}function ws(e,t,a){return a===void 0||(Sn&1073741824)!==0&&(we&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Np(),ve.lanes|=e,Jn|=e,a)}function Nm(e,t,a,l){return Rt(a,t)?a:oa.current!==null?(e=ws(e,a,l),Rt(e,t)||(rt=!0),e):(Sn&42)===0||(Sn&1073741824)!==0&&(we&261930)===0?(rt=!0,e.memoizedState=a):(e=Np(),ve.lanes|=e,Jn|=e,t)}function jm(e,t,a,l,s){var f=X.p;X.p=f!==0&&8>f?f:8;var v=U.T,_={};U.T=_,xs(e,!1,t,a);try{var E=s(),q=U.S;if(q!==null&&q(_,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var G=GS(E,l);di(e,t,G,Nt(e))}else di(e,t,l,Nt(e))}catch(P){di(e,t,{then:function(){},status:"rejected",reason:P},Nt())}finally{X.p=f,v!==null&&_.types!==null&&(v.types=_.types),U.T=v}}function FS(){}function Cs(e,t,a,l){if(e.tag!==5)throw Error(u(476));var s=Hm(e).queue;jm(e,s,t,ee,a===null?FS:function(){return Vm(e),a(l)})}function Hm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Vm(e){var t=Hm(e);t.next===null&&(t=e.alternate.memoizedState),di(e,t.next.queue,{},Nt())}function As(){return dt(Mi)}function Gm(){return et().memoizedState}function Bm(){return et().memoizedState}function kS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Nt();e=Fn(a);var l=kn(t,e,a);l!==null&&(wt(l,t,a),ui(l,t,a)),t={cache:ns()},e.payload=t;return}t=t.return}}function XS(e,t,a){var l=Nt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ll(e)?Pm(t,a):(a=$o(e,t,a,l),a!==null&&(wt(a,e,l),Ym(a,t,l)))}function Im(e,t,a){var l=Nt();di(e,t,a,l)}function di(e,t,a,l){var s={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ll(e))Pm(t,s);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var v=t.lastRenderedState,_=f(v,a);if(s.hasEagerState=!0,s.eagerState=_,Rt(_,v))return hl(e,t,s,0),Ie===null&&dl(),!1}catch{}if(a=$o(e,t,s,l),a!==null)return wt(a,e,l),Ym(a,t,l),!0}return!1}function xs(e,t,a,l){if(l={lane:2,revertLane:lc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ll(e)){if(t)throw Error(u(479))}else t=$o(e,a,l,2),t!==null&&wt(t,e,2)}function Ll(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Pm(e,t){sa=Cl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ym(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Kd(e,a)}}var hi={readContext:dt,use:Ml,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};hi.useEffectEvent=Qe;var $m={readContext:dt,use:Ml,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:xm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Dl(4194308,4,qm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Dl(4194308,4,e,t)},useInsertionEffect:function(e,t){Dl(4,2,e,t)},useMemo:function(e,t){var a=gt();t=t===void 0?null:t;var l=e();if(Ar){Hn(!0);try{e()}finally{Hn(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=gt();if(a!==void 0){var s=a(t);if(Ar){Hn(!0);try{a(t)}finally{Hn(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=XS.bind(null,ve,e),[l.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ss(e);var t=e.queue,a=Im.bind(null,ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Os,useDeferredValue:function(e,t){var a=gt();return ws(a,e,t)},useTransition:function(){var e=Ss(!1);return e=jm.bind(null,ve,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ve,s=gt();if(Ae){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),Ie===null)throw Error(u(349));(we&127)!==0||dm(l,t,a)}s.memoizedState=a;var f={value:a,getSnapshot:t};return s.queue=f,xm(mm.bind(null,l,f,e),[e]),l.flags|=2048,fa(9,{destroy:void 0},hm.bind(null,l,f,a,t),null),a},useId:function(){var e=gt(),t=Ie.identifierPrefix;if(Ae){var a=ln,l=an;a=(l&~(1<<32-Mt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Al++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=BS++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:As,useFormState:Tm,useActionState:Tm,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=xs.bind(null,ve,!0,a),a.dispatch=t,[e,t]},useMemoCache:gs,useCacheRefresh:function(){return gt().memoizedState=kS.bind(null,ve)},useEffectEvent:function(e){var t=gt(),a={impl:e};return t.memoizedState=a,function(){if((De&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},Ms={readContext:dt,use:Ml,useCallback:zm,useContext:dt,useEffect:Ts,useImperativeHandle:Lm,useInsertionEffect:Rm,useLayoutEffect:Dm,useMemo:Um,useReducer:Rl,useRef:Am,useState:function(){return Rl(En)},useDebugValue:Os,useDeferredValue:function(e,t){var a=et();return Nm(a,Ve.memoizedState,e,t)},useTransition:function(){var e=Rl(En)[0],t=et().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:fm,useId:Gm,useHostTransitionStatus:As,useFormState:Om,useActionState:Om,useOptimistic:function(e,t){var a=et();return ym(a,Ve,e,t)},useMemoCache:gs,useCacheRefresh:Bm};Ms.useEffectEvent=Mm;var Fm={readContext:dt,use:Ml,useCallback:zm,useContext:dt,useEffect:Ts,useImperativeHandle:Lm,useInsertionEffect:Rm,useLayoutEffect:Dm,useMemo:Um,useReducer:_s,useRef:Am,useState:function(){return _s(En)},useDebugValue:Os,useDeferredValue:function(e,t){var a=et();return Ve===null?ws(a,e,t):Nm(a,Ve.memoizedState,e,t)},useTransition:function(){var e=_s(En)[0],t=et().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:fm,useId:Gm,useHostTransitionStatus:As,useFormState:Cm,useActionState:Cm,useOptimistic:function(e,t){var a=et();return Ve!==null?ym(a,Ve,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:gs,useCacheRefresh:Bm};Fm.useEffectEvent=Mm;function Rs(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ds={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Nt(),s=Fn(l);s.payload=t,a!=null&&(s.callback=a),t=kn(e,s,l),t!==null&&(wt(t,e,l),ui(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Nt(),s=Fn(l);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=kn(e,s,l),t!==null&&(wt(t,e,l),ui(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Nt(),l=Fn(a);l.tag=2,t!=null&&(l.callback=t),t=kn(e,l,a),t!==null&&(wt(t,e,a),ui(t,e,a))}};function km(e,t,a,l,s,f,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,v):t.prototype&&t.prototype.isPureReactComponent?!Wa(a,l)||!Wa(s,f):!0}function Xm(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Ds.enqueueReplaceState(t,t.state,null)}function xr(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=g({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function Km(e){fl(e)}function Qm(e){console.error(e)}function Zm(e){fl(e)}function zl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Jm(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function qs(e,t,a){return a=Fn(a),a.tag=3,a.payload={element:null},a.callback=function(){zl(e,t)},a}function Wm(e){return e=Fn(e),e.tag=3,e}function ep(e,t,a,l){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var f=l.value;e.payload=function(){return s(f)},e.callback=function(){Jm(t,a,l)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){Jm(t,a,l),typeof s!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var _=l.stack;this.componentDidCatch(l.value,{componentStack:_!==null?_:""})})}function KS(e,t,a,l,s){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&ra(t,a,s,!0),a=qt.current,a!==null){switch(a.tag){case 31:case 13:return Ft===null?Fl():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=s,l===Sl?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),rc(e,l,s)),!1;case 22:return a.flags|=65536,l===Sl?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),rc(e,l,s)),!1}throw Error(u(435,a.tag))}return rc(e,l,s),Fl(),!1}if(Ae)return t=qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==Zo&&(e=Error(u(422),{cause:l}),ni(It(e,a)))):(l!==Zo&&(t=Error(u(423),{cause:l}),ni(It(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=It(l,a),s=qs(e.stateNode,l,s),os(e,s),Ze!==4&&(Ze=2)),!1;var f=Error(u(520),{cause:l});if(f=It(f,a),Si===null?Si=[f]:Si.push(f),Ze!==4&&(Ze=2),t===null)return!0;l=It(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=qs(a.stateNode,l,e),os(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Wn===null||!Wn.has(f))))return a.flags|=65536,s&=-s,a.lanes|=s,s=Wm(s),ep(s,e,a,l),os(a,s),!1}a=a.return}while(a!==null);return!1}var Ls=Error(u(461)),rt=!1;function ht(e,t,a,l){t.child=e===null?am(t,null,a,l):Cr(t,e.child,a,l)}function tp(e,t,a,l,s){a=a.render;var f=t.ref;if("ref"in l){var v={};for(var _ in l)_!=="ref"&&(v[_]=l[_])}else v=l;return Er(t),l=ms(e,t,a,v,f,s),_=ps(),e!==null&&!rt?(vs(e,t,s),Tn(e,t,s)):(Ae&&_&&Ko(t),t.flags|=1,ht(e,t,l,s),t.child)}function np(e,t,a,l,s){if(e===null){var f=a.type;return typeof f=="function"&&!Fo(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,rp(e,t,f,l,s)):(e=pl(a.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Bs(e,s)){var v=f.memoizedProps;if(a=a.compare,a=a!==null?a:Wa,a(v,l)&&e.ref===t.ref)return Tn(e,t,s)}return t.flags|=1,e=yn(f,l),e.ref=t.ref,e.return=t,t.child=e}function rp(e,t,a,l,s){if(e!==null){var f=e.memoizedProps;if(Wa(f,l)&&e.ref===t.ref)if(rt=!1,t.pendingProps=l=f,Bs(e,s))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,Tn(e,t,s)}return zs(e,t,a,l,s)}function ap(e,t,a,l){var s=l.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~f}else l=0,t.child=null;return ip(e,t,f,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bl(t,f!==null?f.cachePool:null),f!==null?um(t,f):cs(),om(t);else return l=t.lanes=536870912,ip(e,t,f!==null?f.baseLanes|a:a,a,l)}else f!==null?(bl(t,f.cachePool),um(t,f),Kn(),t.memoizedState=null):(e!==null&&bl(t,null),cs(),Kn());return ht(e,t,s,a),t.child}function mi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ip(e,t,a,l,s){var f=as();return f=f===null?null:{parent:tt._currentValue,pool:f},t.memoizedState={baseLanes:a,cachePool:f},e!==null&&bl(t,null),cs(),om(t),e!==null&&ra(e,t,l,!0),t.childLanes=s,null}function Ul(e,t){return t=jl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function lp(e,t,a){return Cr(t,e.child,null,a),e=Ul(t,t.pendingProps),e.flags|=2,Lt(t),t.memoizedState=null,e}function QS(e,t,a){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(l.mode==="hidden")return e=Ul(t,l),t.lanes=536870912,mi(null,e);if(ds(t),(e=$e)?(e=gv(e,$t),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bn!==null?{id:an,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},a=Ph(e),a.return=t,t.child=a,ft=t,$e=null)):e=null,e===null)throw Pn(t);return t.lanes=536870912,null}return Ul(t,l)}var f=e.memoizedState;if(f!==null){var v=f.dehydrated;if(ds(t),s)if(t.flags&256)t.flags&=-257,t=lp(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(rt||ra(e,t,a,!1),s=(a&e.childLanes)!==0,rt||s){if(l=Ie,l!==null&&(v=Qd(l,a),v!==0&&v!==f.retryLane))throw f.retryLane=v,gr(e,v),wt(l,e,v),Ls;Fl(),t=lp(e,t,a)}else e=f.treeContext,$e=kt(v.nextSibling),ft=t,Ae=!0,In=null,$t=!1,e!==null&&Fh(t,e),t=Ul(t,l),t.flags|=4096;return t}return e=yn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Nl(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function zs(e,t,a,l,s){return Er(t),a=ms(e,t,a,l,void 0,s),l=ps(),e!==null&&!rt?(vs(e,t,s),Tn(e,t,s)):(Ae&&l&&Ko(t),t.flags|=1,ht(e,t,a,s),t.child)}function up(e,t,a,l,s,f){return Er(t),t.updateQueue=null,a=cm(t,l,a,s),sm(e),l=ps(),e!==null&&!rt?(vs(e,t,f),Tn(e,t,f)):(Ae&&l&&Ko(t),t.flags|=1,ht(e,t,a,f),t.child)}function op(e,t,a,l,s){if(Er(t),t.stateNode===null){var f=Wr,v=a.contextType;typeof v=="object"&&v!==null&&(f=dt(v)),f=new a(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Ds,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},ls(t),v=a.contextType,f.context=typeof v=="object"&&v!==null?dt(v):Wr,f.state=t.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(Rs(t,a,v,l),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&Ds.enqueueReplaceState(f,f.state,null),si(t,l,f,s),oi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var _=t.memoizedProps,E=xr(a,_);f.props=E;var q=f.context,G=a.contextType;v=Wr,typeof G=="object"&&G!==null&&(v=dt(G));var P=a.getDerivedStateFromProps;G=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,G||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(_||q!==v)&&Xm(t,f,l,v),$n=!1;var L=t.memoizedState;f.state=L,si(t,l,f,s),oi(),q=t.memoizedState,_||L!==q||$n?(typeof P=="function"&&(Rs(t,a,P,l),q=t.memoizedState),(E=$n||km(t,a,E,l,L,q,v))?(G||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=q),f.props=l,f.state=q,f.context=v,l=E):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,us(e,t),v=t.memoizedProps,G=xr(a,v),f.props=G,P=t.pendingProps,L=f.context,q=a.contextType,E=Wr,typeof q=="object"&&q!==null&&(E=dt(q)),_=a.getDerivedStateFromProps,(q=typeof _=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==P||L!==E)&&Xm(t,f,l,E),$n=!1,L=t.memoizedState,f.state=L,si(t,l,f,s),oi();var N=t.memoizedState;v!==P||L!==N||$n||e!==null&&e.dependencies!==null&&yl(e.dependencies)?(typeof _=="function"&&(Rs(t,a,_,l),N=t.memoizedState),(G=$n||km(t,a,G,l,L,N,E)||e!==null&&e.dependencies!==null&&yl(e.dependencies))?(q||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,N,E),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,N,E)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=N),f.props=l,f.state=N,f.context=E,l=G):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,Nl(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=Cr(t,e.child,null,s),t.child=Cr(t,null,a,s)):ht(e,t,a,s),t.memoizedState=f.state,e=t.child):e=Tn(e,t,s),e}function sp(e,t,a,l){return _r(),t.flags|=256,ht(e,t,a,l),t.child}var Us={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ns(e){return{baseLanes:e,cachePool:Jh()}}function js(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ut),e}function cp(e,t,a){var l=t.pendingProps,s=!1,f=(t.flags&128)!==0,v;if((v=f)||(v=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),v&&(s=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(s?Xn(t):Kn(),(e=$e)?(e=gv(e,$t),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bn!==null?{id:an,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},a=Ph(e),a.return=t,t.child=a,ft=t,$e=null)):e=null,e===null)throw Pn(t);return bc(e)?t.lanes=32:t.lanes=536870912,null}var _=l.children;return l=l.fallback,s?(Kn(),s=t.mode,_=jl({mode:"hidden",children:_},s),l=br(l,s,a,null),_.return=t,l.return=t,_.sibling=l,t.child=_,l=t.child,l.memoizedState=Ns(a),l.childLanes=js(e,v,a),t.memoizedState=Us,mi(null,l)):(Xn(t),Hs(t,_))}var E=e.memoizedState;if(E!==null&&(_=E.dehydrated,_!==null)){if(f)t.flags&256?(Xn(t),t.flags&=-257,t=Vs(e,t,a)):t.memoizedState!==null?(Kn(),t.child=e.child,t.flags|=128,t=null):(Kn(),_=l.fallback,s=t.mode,l=jl({mode:"visible",children:l.children},s),_=br(_,s,a,null),_.flags|=2,l.return=t,_.return=t,l.sibling=_,t.child=l,Cr(t,e.child,null,a),l=t.child,l.memoizedState=Ns(a),l.childLanes=js(e,v,a),t.memoizedState=Us,t=mi(null,l));else if(Xn(t),bc(_)){if(v=_.nextSibling&&_.nextSibling.dataset,v)var q=v.dgst;v=q,l=Error(u(419)),l.stack="",l.digest=v,ni({value:l,source:null,stack:null}),t=Vs(e,t,a)}else if(rt||ra(e,t,a,!1),v=(a&e.childLanes)!==0,rt||v){if(v=Ie,v!==null&&(l=Qd(v,a),l!==0&&l!==E.retryLane))throw E.retryLane=l,gr(e,l),wt(v,e,l),Ls;gc(_)||Fl(),t=Vs(e,t,a)}else gc(_)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,$e=kt(_.nextSibling),ft=t,Ae=!0,In=null,$t=!1,e!==null&&Fh(t,e),t=Hs(t,l.children),t.flags|=4096);return t}return s?(Kn(),_=l.fallback,s=t.mode,E=e.child,q=E.sibling,l=yn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,q!==null?_=yn(q,_):(_=br(_,s,a,null),_.flags|=2),_.return=t,l.return=t,l.sibling=_,t.child=l,mi(null,l),l=t.child,_=e.child.memoizedState,_===null?_=Ns(a):(s=_.cachePool,s!==null?(E=tt._currentValue,s=s.parent!==E?{parent:E,pool:E}:s):s=Jh(),_={baseLanes:_.baseLanes|a,cachePool:s}),l.memoizedState=_,l.childLanes=js(e,v,a),t.memoizedState=Us,mi(e.child,l)):(Xn(t),a=e.child,e=a.sibling,a=yn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=a,t.memoizedState=null,a)}function Hs(e,t){return t=jl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function jl(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function Vs(e,t,a){return Cr(t,e.child,null,a),e=Hs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fp(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),es(e.return,t,a)}function Gs(e,t,a,l,s,f){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:s,treeForkCount:f}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=l,v.tail=a,v.tailMode=s,v.treeForkCount=f)}function dp(e,t,a){var l=t.pendingProps,s=l.revealOrder,f=l.tail;l=l.children;var v=We.current,_=(v&2)!==0;if(_?(v=v&1|2,t.flags|=128):v&=1,K(We,v),ht(e,t,l,a),l=Ae?ti:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fp(e,a,t);else if(e.tag===19)fp(e,a,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}switch(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&wl(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Gs(t,!1,s,a,f,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&wl(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Gs(t,!0,a,null,f,l);break;case"together":Gs(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Tn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Jn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ra(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=yn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=yn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Bs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yl(e)))}function ZS(e,t,a){switch(t.tag){case 3:Ye(t,t.stateNode.containerInfo),Yn(t,tt,e.memoizedState.cache),_r();break;case 27:case 5:fr(t);break;case 4:Ye(t,t.stateNode.containerInfo);break;case 10:Yn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ds(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Xn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?cp(e,t,a):(Xn(t),e=Tn(e,t,a),e!==null?e.sibling:null);Xn(t);break;case 19:var s=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(ra(e,t,a,!1),l=(a&t.childLanes)!==0),s){if(l)return dp(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(We,We.current),l)break;return null;case 22:return t.lanes=0,ap(e,t,a,t.pendingProps);case 24:Yn(t,tt,e.memoizedState.cache)}return Tn(e,t,a)}function hp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!Bs(e,a)&&(t.flags&128)===0)return rt=!1,ZS(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Ae&&(t.flags&1048576)!==0&&$h(t,ti,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Or(t.elementType),t.type=e,typeof e=="function")Fo(e)?(l=xr(e,l),t.tag=1,t=op(null,t,e,l,a)):(t.tag=0,t=zs(null,t,e,l,a));else{if(e!=null){var s=e.$$typeof;if(s===$){t.tag=11,t=tp(null,t,e,l,a);break e}else if(s===j){t.tag=14,t=np(null,t,e,l,a);break e}}throw t=Ne(e)||e,Error(u(306,t,""))}}return t;case 0:return zs(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,s=xr(l,t.pendingProps),op(e,t,l,s,a);case 3:e:{if(Ye(t,t.stateNode.containerInfo),e===null)throw Error(u(387));l=t.pendingProps;var f=t.memoizedState;s=f.element,us(e,t),si(t,l,null,a);var v=t.memoizedState;if(l=v.cache,Yn(t,tt,l),l!==f.cache&&ts(t,[tt],a,!0),oi(),l=v.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=sp(e,t,l,a);break e}else if(l!==s){s=It(Error(u(424)),t),ni(s),t=sp(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,$e=kt(e.firstChild),ft=t,Ae=!0,In=null,$t=!0,a=am(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(_r(),l===s){t=Tn(e,t,a);break e}ht(e,t,l,a)}t=t.child}return t;case 26:return Nl(e,t),e===null?(a=Ov(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ae||(a=t.type,e=t.pendingProps,l=Wl(ce.current).createElement(a),l[ct]=t,l[bt]=e,mt(l,a,e),ot(l),t.stateNode=l):t.memoizedState=Ov(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fr(t),e===null&&Ae&&(l=t.stateNode=Sv(t.type,t.pendingProps,ce.current),ft=t,$t=!0,s=$e,rr(t.type)?(_c=s,$e=kt(l.firstChild)):$e=s),ht(e,t,t.pendingProps.children,a),Nl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((s=l=$e)&&(l=A1(l,t.type,t.pendingProps,$t),l!==null?(t.stateNode=l,ft=t,$e=kt(l.firstChild),$t=!1,s=!0):s=!1),s||Pn(t)),fr(t),s=t.type,f=t.pendingProps,v=e!==null?e.memoizedProps:null,l=f.children,pc(s,f)?l=null:v!==null&&pc(s,v)&&(t.flags|=32),t.memoizedState!==null&&(s=ms(e,t,IS,null,null,a),Mi._currentValue=s),Nl(e,t),ht(e,t,l,a),t.child;case 6:return e===null&&Ae&&((e=a=$e)&&(a=x1(a,t.pendingProps,$t),a!==null?(t.stateNode=a,ft=t,$e=null,e=!0):e=!1),e||Pn(t)),null;case 13:return cp(e,t,a);case 4:return Ye(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Cr(t,null,l,a):ht(e,t,l,a),t.child;case 11:return tp(e,t,t.type,t.pendingProps,a);case 7:return ht(e,t,t.pendingProps,a),t.child;case 8:return ht(e,t,t.pendingProps.children,a),t.child;case 12:return ht(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Yn(t,t.type,l.value),ht(e,t,l.children,a),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,Er(t),s=dt(s),l=l(s),t.flags|=1,ht(e,t,l,a),t.child;case 14:return np(e,t,t.type,t.pendingProps,a);case 15:return rp(e,t,t.type,t.pendingProps,a);case 19:return dp(e,t,a);case 31:return QS(e,t,a);case 22:return ap(e,t,a,t.pendingProps);case 24:return Er(t),l=dt(tt),e===null?(s=as(),s===null&&(s=Ie,f=ns(),s.pooledCache=f,f.refCount++,f!==null&&(s.pooledCacheLanes|=a),s=f),t.memoizedState={parent:l,cache:s},ls(t),Yn(t,tt,s)):((e.lanes&a)!==0&&(us(e,t),si(t,null,null,a),oi()),s=e.memoizedState,f=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Yn(t,tt,l)):(l=f.cache,Yn(t,tt,l),l!==s.cache&&ts(t,[tt],a,!0))),ht(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function On(e){e.flags|=4}function Is(e,t,a,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Gp())e.flags|=8192;else throw wr=Sl,is}else e.flags&=-16777217}function mp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Mv(t))if(Gp())e.flags|=8192;else throw wr=Sl,is}function Hl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kd():536870912,e.lanes|=t,pa|=t)}function pi(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function JS(e,t,a){var l=t.pendingProps;switch(Qo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),_n(tt),Pe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(na(t)?On(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Jo())),Fe(t),null;case 26:var s=t.type,f=t.memoizedState;return e===null?(On(t),f!==null?(Fe(t),mp(t,f)):(Fe(t),Is(t,s,null,l,a))):f?f!==e.memoizedState?(On(t),Fe(t),mp(t,f)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&On(t),Fe(t),Is(t,s,e,l,a)),null;case 27:if(dr(t),a=ce.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&On(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return Fe(t),null}e=Z.current,na(t)?kh(t):(e=Sv(s,l,a),t.stateNode=e,On(t))}return Fe(t),null;case 5:if(dr(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&On(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return Fe(t),null}if(f=Z.current,na(t))kh(t);else{var v=Wl(ce.current);switch(f){case 1:f=v.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:f=v.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":f=v.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":f=v.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":f=v.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?v.createElement("select",{is:l.is}):v.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?v.createElement(s,{is:l.is}):v.createElement(s)}}f[ct]=t,f[bt]=l;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)f.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=f;e:switch(mt(f,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&On(t)}}return Fe(t),Is(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&On(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(u(166));if(e=ce.current,na(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,s=ft,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[ct]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||cv(e.nodeValue,a)),e||Pn(t,!0)}else e=Wl(e).createTextNode(l),e[ct]=t,t.stateNode=e}return Fe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=na(t),a!==null){if(e===null){if(!l)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ct]=t}else _r(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else a=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Lt(t),t):(Lt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Fe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=na(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[ct]=t}else _r(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),s=!1}else s=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Lt(t),t):(Lt(t),null)}return Lt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==s&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Hl(t,t.updateQueue),Fe(t),null);case 4:return Pe(),e===null&&cc(t.stateNode.containerInfo),Fe(t),null;case 10:return _n(t.type),Fe(t),null;case 19:if(V(We),l=t.memoizedState,l===null)return Fe(t),null;if(s=(t.flags&128)!==0,f=l.rendering,f===null)if(s)pi(l,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=wl(e),f!==null){for(t.flags|=128,pi(l,!1),e=f.updateQueue,t.updateQueue=e,Hl(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Ih(a,e),a=a.sibling;return K(We,We.current&1|2),Ae&&gn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&At()>Pl&&(t.flags|=128,s=!0,pi(l,!1),t.lanes=4194304)}else{if(!s)if(e=wl(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Hl(t,e),pi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Ae)return Fe(t),null}else 2*At()-l.renderingStartTime>Pl&&a!==536870912&&(t.flags|=128,s=!0,pi(l,!1),t.lanes=4194304);l.isBackwards?(f.sibling=t.child,t.child=f):(e=l.last,e!==null?e.sibling=f:t.child=f,l.last=f)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=At(),e.sibling=null,a=We.current,K(We,s?a&1|2:a&1),Ae&&gn(t,l.treeForkCount),e):(Fe(t),null);case 22:case 23:return Lt(t),fs(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),a=t.updateQueue,a!==null&&Hl(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&V(Tr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),_n(tt),Fe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function WS(e,t){switch(Qo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(tt),Pe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return dr(t),null;case 31:if(t.memoizedState!==null){if(Lt(t),t.alternate===null)throw Error(u(340));_r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Lt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));_r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(We),null;case 4:return Pe(),null;case 10:return _n(t.type),null;case 22:case 23:return Lt(t),fs(),e!==null&&V(Tr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(tt),null;case 25:return null;default:return null}}function pp(e,t){switch(Qo(t),t.tag){case 3:_n(tt),Pe();break;case 26:case 27:case 5:dr(t);break;case 4:Pe();break;case 31:t.memoizedState!==null&&Lt(t);break;case 13:Lt(t);break;case 19:V(We);break;case 10:_n(t.type);break;case 22:case 23:Lt(t),fs(),e!==null&&V(Tr);break;case 24:_n(tt)}}function vi(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var s=l.next;a=s;do{if((a.tag&e)===e){l=void 0;var f=a.create,v=a.inst;l=f(),v.destroy=l}a=a.next}while(a!==s)}}catch(_){He(t,t.return,_)}}function Qn(e,t,a){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var f=s.next;l=f;do{if((l.tag&e)===e){var v=l.inst,_=v.destroy;if(_!==void 0){v.destroy=void 0,s=t;var E=a,q=_;try{q()}catch(G){He(s,E,G)}}}l=l.next}while(l!==f)}}catch(G){He(t,t.return,G)}}function vp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{lm(t,a)}catch(l){He(e,e.return,l)}}}function yp(e,t,a){a.props=xr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){He(e,t,l)}}function yi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(s){He(e,t,s)}}function un(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(s){He(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){He(e,t,s)}else a.current=null}function gp(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(s){He(e,e.return,s)}}function Ps(e,t,a){try{var l=e.stateNode;S1(l,e.type,a,t),l[bt]=t}catch(s){He(e,e.return,s)}}function bp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&rr(e.type)||e.tag===4}function Ys(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bp(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.tag===27&&rr(e.type)||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 $s(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=pn));else if(l!==4&&(l===27&&rr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for($s(e,t,a),e=e.sibling;e!==null;)$s(e,t,a),e=e.sibling}function Vl(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&rr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Vl(e,t,a),e=e.sibling;e!==null;)Vl(e,t,a),e=e.sibling}function _p(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);mt(t,l,a),t[ct]=e,t[bt]=a}catch(f){He(e,e.return,f)}}var wn=!1,at=!1,Fs=!1,Sp=typeof WeakSet=="function"?WeakSet:Set,st=null;function e1(e,t){if(e=e.containerInfo,hc=lu,e=Lh(e),Vo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var s=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var v=0,_=-1,E=-1,q=0,G=0,P=e,L=null;t:for(;;){for(var N;P!==a||s!==0&&P.nodeType!==3||(_=v+s),P!==f||l!==0&&P.nodeType!==3||(E=v+l),P.nodeType===3&&(v+=P.nodeValue.length),(N=P.firstChild)!==null;)L=P,P=N;for(;;){if(P===e)break t;if(L===a&&++q===s&&(_=v),L===f&&++G===l&&(E=v),(N=P.nextSibling)!==null)break;P=L,L=P.parentNode}P=N}a=_===-1||E===-1?null:{start:_,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(mc={focusedElem:e,selectionRange:a},lu=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,s=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var W=xr(a.type,s);e=l.getSnapshotBeforeUpdate(W,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(oe){He(a,a.return,oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)yc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}}function Ep(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:An(e,a),l&4&&vi(5,a);break;case 1:if(An(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(v){He(a,a.return,v)}else{var s=xr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){He(a,a.return,v)}}l&64&&vp(a),l&512&&yi(a,a.return);break;case 3:if(An(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{lm(e,t)}catch(v){He(a,a.return,v)}}break;case 27:t===null&&l&4&&_p(a);case 26:case 5:An(e,a),t===null&&l&4&&gp(a),l&512&&yi(a,a.return);break;case 12:An(e,a);break;case 31:An(e,a),l&4&&wp(e,a);break;case 13:An(e,a),l&4&&Cp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=s1.bind(null,a),M1(e,a))));break;case 22:if(l=a.memoizedState!==null||wn,!l){t=t!==null&&t.memoizedState!==null||at,s=wn;var f=at;wn=l,(at=t)&&!f?xn(e,a,(a.subtreeFlags&8772)!==0):An(e,a),wn=s,at=f}break;case 30:break;default:An(e,a)}}function Tp(e){var t=e.alternate;t!==null&&(e.alternate=null,Tp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Eo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ke=null,St=!1;function Cn(e,t,a){for(a=a.child;a!==null;)Op(e,t,a),a=a.sibling}function Op(e,t,a){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Ba,a)}catch{}switch(a.tag){case 26:at||un(a,t),Cn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:at||un(a,t);var l=ke,s=St;rr(a.type)&&(ke=a.stateNode,St=!1),Cn(e,t,a),Ci(a.stateNode),ke=l,St=s;break;case 5:at||un(a,t);case 6:if(l=ke,s=St,ke=null,Cn(e,t,a),ke=l,St=s,ke!==null)if(St)try{(ke.nodeType===9?ke.body:ke.nodeName==="HTML"?ke.ownerDocument.body:ke).removeChild(a.stateNode)}catch(f){He(a,t,f)}else try{ke.removeChild(a.stateNode)}catch(f){He(a,t,f)}break;case 18:ke!==null&&(St?(e=ke,vv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ta(e)):vv(ke,a.stateNode));break;case 4:l=ke,s=St,ke=a.stateNode.containerInfo,St=!0,Cn(e,t,a),ke=l,St=s;break;case 0:case 11:case 14:case 15:Qn(2,a,t),at||Qn(4,a,t),Cn(e,t,a);break;case 1:at||(un(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&yp(a,t,l)),Cn(e,t,a);break;case 21:Cn(e,t,a);break;case 22:at=(l=at)||a.memoizedState!==null,Cn(e,t,a),at=l;break;default:Cn(e,t,a)}}function wp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ta(e)}catch(a){He(t,t.return,a)}}}function Cp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ta(e)}catch(a){He(t,t.return,a)}}function t1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sp),t;default:throw Error(u(435,e.tag))}}function Gl(e,t){var a=t1(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var s=c1.bind(null,e,l);l.then(s,s)}})}function Et(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var s=a[l],f=e,v=t,_=v;e:for(;_!==null;){switch(_.tag){case 27:if(rr(_.type)){ke=_.stateNode,St=!1;break e}break;case 5:ke=_.stateNode,St=!1;break e;case 3:case 4:ke=_.stateNode.containerInfo,St=!0;break e}_=_.return}if(ke===null)throw Error(u(160));Op(f,v,s),ke=null,St=!1,f=s.alternate,f!==null&&(f.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ap(t,e),t=t.sibling}var Wt=null;function Ap(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(t,e),Tt(e),l&4&&(Qn(3,e,e.return),vi(3,e),Qn(5,e,e.return));break;case 1:Et(t,e),Tt(e),l&512&&(at||a===null||un(a,a.return)),l&64&&wn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var s=Wt;if(Et(t,e),Tt(e),l&512&&(at||a===null||un(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":f=s.getElementsByTagName("title")[0],(!f||f[Ya]||f[ct]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=s.createElement(l),s.head.insertBefore(f,s.querySelector("head > title"))),mt(f,l,a),f[ct]=e,ot(f),l=f;break e;case"link":var v=Av("link","href",s).get(l+(a.href||""));if(v){for(var _=0;_<v.length;_++)if(f=v[_],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){v.splice(_,1);break t}}f=s.createElement(l),mt(f,l,a),s.head.appendChild(f);break;case"meta":if(v=Av("meta","content",s).get(l+(a.content||""))){for(_=0;_<v.length;_++)if(f=v[_],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){v.splice(_,1);break t}}f=s.createElement(l),mt(f,l,a),s.head.appendChild(f);break;default:throw Error(u(468,l))}f[ct]=e,ot(f),l=f}e.stateNode=l}else xv(s,e.type,e.stateNode);else e.stateNode=Cv(s,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?xv(s,e.type,e.stateNode):Cv(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ps(e,e.memoizedProps,a.memoizedProps)}break;case 27:Et(t,e),Tt(e),l&512&&(at||a===null||un(a,a.return)),a!==null&&l&4&&Ps(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Et(t,e),Tt(e),l&512&&(at||a===null||un(a,a.return)),e.flags&32){s=e.stateNode;try{Fr(s,"")}catch(W){He(e,e.return,W)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,Ps(e,s,a!==null?a.memoizedProps:s)),l&1024&&(Fs=!0);break;case 6:if(Et(t,e),Tt(e),l&4){if(e.stateNode===null)throw Error(u(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(W){He(e,e.return,W)}}break;case 3:if(nu=null,s=Wt,Wt=eu(t.containerInfo),Et(t,e),Wt=s,Tt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ta(t.containerInfo)}catch(W){He(e,e.return,W)}Fs&&(Fs=!1,xp(e));break;case 4:l=Wt,Wt=eu(e.stateNode.containerInfo),Et(t,e),Tt(e),Wt=l;break;case 12:Et(t,e),Tt(e);break;case 31:Et(t,e),Tt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Gl(e,l)));break;case 13:Et(t,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Il=At()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Gl(e,l)));break;case 22:s=e.memoizedState!==null;var E=a!==null&&a.memoizedState!==null,q=wn,G=at;if(wn=q||s,at=G||E,Et(t,e),at=G,wn=q,Tt(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||E||wn||at||Mr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){E=a=t;try{if(f=E.stateNode,s)v=f.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{_=E.stateNode;var P=E.memoizedProps.style,L=P!=null&&P.hasOwnProperty("display")?P.display:null;_.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(W){He(E,E.return,W)}}}else if(t.tag===6){if(a===null){E=t;try{E.stateNode.nodeValue=s?"":E.memoizedProps}catch(W){He(E,E.return,W)}}}else if(t.tag===18){if(a===null){E=t;try{var N=E.stateNode;s?yv(N,!0):yv(E.stateNode,!1)}catch(W){He(E,E.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Gl(e,a))));break;case 19:Et(t,e),Tt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Gl(e,l)));break;case 30:break;case 21:break;default:Et(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(bp(l)){a=l;break}l=l.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var s=a.stateNode,f=Ys(e);Vl(e,f,s);break;case 5:var v=a.stateNode;a.flags&32&&(Fr(v,""),a.flags&=-33);var _=Ys(e);Vl(e,_,v);break;case 3:case 4:var E=a.stateNode.containerInfo,q=Ys(e);$s(e,q,E);break;default:throw Error(u(161))}}catch(G){He(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function An(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ep(e,t.alternate,t),t=t.sibling}function Mr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qn(4,t,t.return),Mr(t);break;case 1:un(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&yp(t,t.return,a),Mr(t);break;case 27:Ci(t.stateNode);case 26:case 5:un(t,t.return),Mr(t);break;case 22:t.memoizedState===null&&Mr(t);break;case 30:Mr(t);break;default:Mr(t)}e=e.sibling}}function xn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,f=t,v=f.flags;switch(f.tag){case 0:case 11:case 15:xn(s,f,a),vi(4,f);break;case 1:if(xn(s,f,a),l=f,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(q){He(l,l.return,q)}if(l=f,s=l.updateQueue,s!==null){var _=l.stateNode;try{var E=s.shared.hiddenCallbacks;if(E!==null)for(s.shared.hiddenCallbacks=null,s=0;s<E.length;s++)im(E[s],_)}catch(q){He(l,l.return,q)}}a&&v&64&&vp(f),yi(f,f.return);break;case 27:_p(f);case 26:case 5:xn(s,f,a),a&&l===null&&v&4&&gp(f),yi(f,f.return);break;case 12:xn(s,f,a);break;case 31:xn(s,f,a),a&&v&4&&wp(s,f);break;case 13:xn(s,f,a),a&&v&4&&Cp(s,f);break;case 22:f.memoizedState===null&&xn(s,f,a),yi(f,f.return);break;case 30:break;default:xn(s,f,a)}t=t.sibling}}function ks(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ri(a))}function Xs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ri(e))}function en(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mp(e,t,a,l),t=t.sibling}function Mp(e,t,a,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:en(e,t,a,l),s&2048&&vi(9,t);break;case 1:en(e,t,a,l);break;case 3:en(e,t,a,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ri(e)));break;case 12:if(s&2048){en(e,t,a,l),e=t.stateNode;try{var f=t.memoizedProps,v=f.id,_=f.onPostCommit;typeof _=="function"&&_(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){He(t,t.return,E)}}else en(e,t,a,l);break;case 31:en(e,t,a,l);break;case 13:en(e,t,a,l);break;case 23:break;case 22:f=t.stateNode,v=t.alternate,t.memoizedState!==null?f._visibility&2?en(e,t,a,l):gi(e,t):f._visibility&2?en(e,t,a,l):(f._visibility|=2,da(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&ks(v,t);break;case 24:en(e,t,a,l),s&2048&&Xs(t.alternate,t);break;default:en(e,t,a,l)}}function da(e,t,a,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,v=t,_=a,E=l,q=v.flags;switch(v.tag){case 0:case 11:case 15:da(f,v,_,E,s),vi(8,v);break;case 23:break;case 22:var G=v.stateNode;v.memoizedState!==null?G._visibility&2?da(f,v,_,E,s):gi(f,v):(G._visibility|=2,da(f,v,_,E,s)),s&&q&2048&&ks(v.alternate,v);break;case 24:da(f,v,_,E,s),s&&q&2048&&Xs(v.alternate,v);break;default:da(f,v,_,E,s)}t=t.sibling}}function gi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,s=l.flags;switch(l.tag){case 22:gi(a,l),s&2048&&ks(l.alternate,l);break;case 24:gi(a,l),s&2048&&Xs(l.alternate,l);break;default:gi(a,l)}t=t.sibling}}var bi=8192;function ha(e,t,a){if(e.subtreeFlags&bi)for(e=e.child;e!==null;)Rp(e,t,a),e=e.sibling}function Rp(e,t,a){switch(e.tag){case 26:ha(e,t,a),e.flags&bi&&e.memoizedState!==null&&B1(a,Wt,e.memoizedState,e.memoizedProps);break;case 5:ha(e,t,a);break;case 3:case 4:var l=Wt;Wt=eu(e.stateNode.containerInfo),ha(e,t,a),Wt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=bi,bi=16777216,ha(e,t,a),bi=l):ha(e,t,a));break;default:ha(e,t,a)}}function Dp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function _i(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];st=l,Lp(l,e)}Dp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qp(e),e=e.sibling}function qp(e){switch(e.tag){case 0:case 11:case 15:_i(e),e.flags&2048&&Qn(9,e,e.return);break;case 3:_i(e);break;case 12:_i(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Bl(e)):_i(e);break;default:_i(e)}}function Bl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];st=l,Lp(l,e)}Dp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qn(8,t,t.return),Bl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Bl(t));break;default:Bl(t)}e=e.sibling}}function Lp(e,t){for(;st!==null;){var a=st;switch(a.tag){case 0:case 11:case 15:Qn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ri(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,st=l;else e:for(a=e;st!==null;){l=st;var s=l.sibling,f=l.return;if(Tp(l),l===a){st=null;break e}if(s!==null){s.return=f,st=s;break e}st=f}}}var n1={getCacheForType:function(e){var t=dt(tt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return dt(tt).controller.signal}},r1=typeof WeakMap=="function"?WeakMap:Map,De=0,Ie=null,Ee=null,we=0,je=0,zt=null,Zn=!1,ma=!1,Ks=!1,Mn=0,Ze=0,Jn=0,Rr=0,Qs=0,Ut=0,pa=0,Si=null,Ot=null,Zs=!1,Il=0,zp=0,Pl=1/0,Yl=null,Wn=null,lt=0,er=null,va=null,Rn=0,Js=0,Ws=null,Up=null,Ei=0,ec=null;function Nt(){return(De&2)!==0&&we!==0?we&-we:U.T!==null?lc():Zd()}function Np(){if(Ut===0)if((we&536870912)===0||Ae){var e=Ji;Ji<<=1,(Ji&3932160)===0&&(Ji=262144),Ut=e}else Ut=536870912;return e=qt.current,e!==null&&(e.flags|=32),Ut}function wt(e,t,a){(e===Ie&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(ya(e,0),tr(e,we,Ut,!1)),Pa(e,a),((De&2)===0||e!==Ie)&&(e===Ie&&((De&2)===0&&(Rr|=a),Ze===4&&tr(e,we,Ut,!1)),on(e))}function jp(e,t,a){if((De&6)!==0)throw Error(u(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Ia(e,t),s=l?l1(e,t):nc(e,t,!0),f=l;do{if(s===0){ma&&!l&&tr(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!a1(a)){s=nc(e,t,!1),f=!1;continue}if(s===2){if(f=t,e.errorRecoveryDisabledLanes&f)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var _=e;s=Si;var E=_.current.memoizedState.isDehydrated;if(E&&(ya(_,v).flags|=256),v=nc(_,v,!1),v!==2){if(Ks&&!E){_.errorRecoveryDisabledLanes|=f,Rr|=f,s=4;break e}f=Ot,Ot=s,f!==null&&(Ot===null?Ot=f:Ot.push.apply(Ot,f))}s=v}if(f=!1,s!==2)continue}}if(s===1){ya(e,0),tr(e,t,0,!0);break}e:{switch(l=e,f=s,f){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:tr(l,t,Ut,!Zn);break e;case 2:Ot=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=Il+300-At(),10<s)){if(tr(l,t,Ut,!Zn),el(l,0,!0)!==0)break e;Rn=t,l.timeoutHandle=mv(Hp.bind(null,l,a,Ot,Yl,Zs,t,Ut,Rr,pa,Zn,f,"Throttled",-0,0),s);break e}Hp(l,a,Ot,Yl,Zs,t,Ut,Rr,pa,Zn,f,null,-0,0)}}break}while(!0);on(e)}function Hp(e,t,a,l,s,f,v,_,E,q,G,P,L,N){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},Rp(t,f,P);var W=(f&62914560)===f?Il-At():(f&4194048)===f?zp-At():0;if(W=I1(P,W),W!==null){Rn=f,e.cancelPendingCommit=W(Fp.bind(null,e,t,f,a,l,s,v,_,E,G,P,null,L,N)),tr(e,f,v,!q);return}}Fp(e,t,f,a,l,s,v,_,E)}function a1(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var s=a[l],f=s.getSnapshot;s=s.value;try{if(!Rt(f(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 tr(e,t,a,l){t&=~Qs,t&=~Rr,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var f=31-Mt(s),v=1<<f;l[f]=-1,s&=~v}a!==0&&Xd(e,a,t)}function $l(){return(De&6)===0?(Ti(0),!1):!0}function tc(){if(Ee!==null){if(je===0)var e=Ee.return;else e=Ee,bn=Sr=null,ys(e),ua=null,ii=0,e=Ee;for(;e!==null;)pp(e.alternate,e),e=e.return;Ee=null}}function ya(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,O1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Rn=0,tc(),Ie=e,Ee=a=yn(e.current,null),we=t,je=0,zt=null,Zn=!1,ma=Ia(e,t),Ks=!1,pa=Ut=Qs=Rr=Jn=Ze=0,Ot=Si=null,Zs=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-Mt(l),f=1<<s;t|=e[s],l&=~f}return Mn=t,dl(),a}function Vp(e,t){ve=null,U.H=hi,t===la||t===_l?(t=tm(),je=3):t===is?(t=tm(),je=4):je=t===Ls?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,Ee===null&&(Ze=1,zl(e,It(t,e.current)))}function Gp(){var e=qt.current;return e===null?!0:(we&4194048)===we?Ft===null:(we&62914560)===we||(we&536870912)!==0?e===Ft:!1}function Bp(){var e=U.H;return U.H=hi,e===null?hi:e}function Ip(){var e=U.A;return U.A=n1,e}function Fl(){Ze=4,Zn||(we&4194048)!==we&&qt.current!==null||(ma=!0),(Jn&134217727)===0&&(Rr&134217727)===0||Ie===null||tr(Ie,we,Ut,!1)}function nc(e,t,a){var l=De;De|=2;var s=Bp(),f=Ip();(Ie!==e||we!==t)&&(Yl=null,ya(e,t)),t=!1;var v=Ze;e:do try{if(je!==0&&Ee!==null){var _=Ee,E=zt;switch(je){case 8:tc(),v=6;break e;case 3:case 2:case 9:case 6:qt.current===null&&(t=!0);var q=je;if(je=0,zt=null,ga(e,_,E,q),a&&ma){v=0;break e}break;default:q=je,je=0,zt=null,ga(e,_,E,q)}}i1(),v=Ze;break}catch(G){Vp(e,G)}while(!0);return t&&e.shellSuspendCounter++,bn=Sr=null,De=l,U.H=s,U.A=f,Ee===null&&(Ie=null,we=0,dl()),v}function i1(){for(;Ee!==null;)Pp(Ee)}function l1(e,t){var a=De;De|=2;var l=Bp(),s=Ip();Ie!==e||we!==t?(Yl=null,Pl=At()+500,ya(e,t)):ma=Ia(e,t);e:do try{if(je!==0&&Ee!==null){t=Ee;var f=zt;t:switch(je){case 1:je=0,zt=null,ga(e,t,f,1);break;case 2:case 9:if(Wh(f)){je=0,zt=null,Yp(t);break}t=function(){je!==2&&je!==9||Ie!==e||(je=7),on(e)},f.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Wh(f)?(je=0,zt=null,Yp(t)):(je=0,zt=null,ga(e,t,f,7));break;case 5:var v=null;switch(Ee.tag){case 26:v=Ee.memoizedState;case 5:case 27:var _=Ee;if(v?Mv(v):_.stateNode.complete){je=0,zt=null;var E=_.sibling;if(E!==null)Ee=E;else{var q=_.return;q!==null?(Ee=q,kl(q)):Ee=null}break t}}je=0,zt=null,ga(e,t,f,5);break;case 6:je=0,zt=null,ga(e,t,f,6);break;case 8:tc(),Ze=6;break e;default:throw Error(u(462))}}u1();break}catch(G){Vp(e,G)}while(!0);return bn=Sr=null,U.H=l,U.A=s,De=a,Ee!==null?0:(Ie=null,we=0,dl(),Ze)}function u1(){for(;Ee!==null&&!R0();)Pp(Ee)}function Pp(e){var t=hp(e.alternate,e,Mn);e.memoizedProps=e.pendingProps,t===null?kl(e):Ee=t}function Yp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=up(a,t,t.pendingProps,t.type,void 0,we);break;case 11:t=up(a,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:ys(t);default:pp(a,t),t=Ee=Ih(t,Mn),t=hp(a,t,Mn)}e.memoizedProps=e.pendingProps,t===null?kl(e):Ee=t}function ga(e,t,a,l){bn=Sr=null,ys(t),ua=null,ii=0;var s=t.return;try{if(KS(e,s,t,a,we)){Ze=1,zl(e,It(a,e.current)),Ee=null;return}}catch(f){if(s!==null)throw Ee=s,f;Ze=1,zl(e,It(a,e.current)),Ee=null;return}t.flags&32768?(Ae||l===1?e=!0:ma||(we&536870912)!==0?e=!1:(Zn=e=!0,(l===2||l===9||l===3||l===6)&&(l=qt.current,l!==null&&l.tag===13&&(l.flags|=16384))),$p(t,e)):kl(t)}function kl(e){var t=e;do{if((t.flags&32768)!==0){$p(t,Zn);return}e=t.return;var a=JS(t.alternate,t,Mn);if(a!==null){Ee=a;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ze===0&&(Ze=5)}function $p(e,t){do{var a=WS(e.alternate,e);if(a!==null){a.flags&=32767,Ee=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=a}while(e!==null);Ze=6,Ee=null}function Fp(e,t,a,l,s,f,v,_,E){e.cancelPendingCommit=null;do Xl();while(lt!==0);if((De&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(f=t.lanes|t.childLanes,f|=Yo,G0(e,a,f,v,_,E),e===Ie&&(Ee=Ie=null,we=0),va=t,er=e,Rn=a,Js=f,Ws=s,Up=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,f1(Qi,function(){return Zp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,s=X.p,X.p=2,v=De,De|=4;try{e1(e,t,a)}finally{De=v,X.p=s,U.T=l}}lt=1,kp(),Xp(),Kp()}}function kp(){if(lt===1){lt=0;var e=er,t=va,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var l=X.p;X.p=2;var s=De;De|=4;try{Ap(t,e);var f=mc,v=Lh(e.containerInfo),_=f.focusedElem,E=f.selectionRange;if(v!==_&&_&&_.ownerDocument&&qh(_.ownerDocument.documentElement,_)){if(E!==null&&Vo(_)){var q=E.start,G=E.end;if(G===void 0&&(G=q),"selectionStart"in _)_.selectionStart=q,_.selectionEnd=Math.min(G,_.value.length);else{var P=_.ownerDocument||document,L=P&&P.defaultView||window;if(L.getSelection){var N=L.getSelection(),W=_.textContent.length,oe=Math.min(E.start,W),Be=E.end===void 0?oe:Math.min(E.end,W);!N.extend&&oe>Be&&(v=Be,Be=oe,oe=v);var x=Dh(_,oe),w=Dh(_,Be);if(x&&w&&(N.rangeCount!==1||N.anchorNode!==x.node||N.anchorOffset!==x.offset||N.focusNode!==w.node||N.focusOffset!==w.offset)){var D=P.createRange();D.setStart(x.node,x.offset),N.removeAllRanges(),oe>Be?(N.addRange(D),N.extend(w.node,w.offset)):(D.setEnd(w.node,w.offset),N.addRange(D))}}}}for(P=[],N=_;N=N.parentNode;)N.nodeType===1&&P.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<P.length;_++){var I=P[_];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}lu=!!hc,mc=hc=null}finally{De=s,X.p=l,U.T=a}}e.current=t,lt=2}}function Xp(){if(lt===2){lt=0;var e=er,t=va,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var l=X.p;X.p=2;var s=De;De|=4;try{Ep(e,t.alternate,t)}finally{De=s,X.p=l,U.T=a}}lt=3}}function Kp(){if(lt===4||lt===3){lt=0,D0();var e=er,t=va,a=Rn,l=Up;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,va=er=null,Qp(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Wn=null),_o(a),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Ba,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=U.T,s=X.p,X.p=2,U.T=null;try{for(var f=e.onRecoverableError,v=0;v<l.length;v++){var _=l[v];f(_.value,{componentStack:_.stack})}}finally{U.T=t,X.p=s}}(Rn&3)!==0&&Xl(),on(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===ec?Ei++:(Ei=0,ec=e):Ei=0,Ti(0)}}function Qp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ri(t)))}function Xl(){return kp(),Xp(),Kp(),Zp()}function Zp(){if(lt!==5)return!1;var e=er,t=Js;Js=0;var a=_o(Rn),l=U.T,s=X.p;try{X.p=32>a?32:a,U.T=null,a=Ws,Ws=null;var f=er,v=Rn;if(lt=0,va=er=null,Rn=0,(De&6)!==0)throw Error(u(331));var _=De;if(De|=4,qp(f.current),Mp(f,f.current,v,a),De=_,Ti(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Ba,f)}catch{}return!0}finally{X.p=s,U.T=l,Qp(e,t)}}function Jp(e,t,a){t=It(a,t),t=qs(e.stateNode,t,2),e=kn(e,t,2),e!==null&&(Pa(e,2),on(e))}function He(e,t,a){if(e.tag===3)Jp(e,e,a);else for(;t!==null;){if(t.tag===3){Jp(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Wn===null||!Wn.has(l))){e=It(a,e),a=Wm(2),l=kn(t,a,2),l!==null&&(ep(a,l,t,e),Pa(l,2),on(l));break}}t=t.return}}function rc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new r1;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(a)||(Ks=!0,s.add(a),e=o1.bind(null,e,t,a),t.then(e,e))}function o1(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ie===e&&(we&a)===a&&(Ze===4||Ze===3&&(we&62914560)===we&&300>At()-Il?(De&2)===0&&ya(e,0):Qs|=a,pa===we&&(pa=0)),on(e)}function Wp(e,t){t===0&&(t=kd()),e=gr(e,t),e!==null&&(Pa(e,t),on(e))}function s1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Wp(e,a)}function c1(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(t),Wp(e,a)}function f1(e,t){return vo(e,t)}var Kl=null,ba=null,ac=!1,Ql=!1,ic=!1,nr=0;function on(e){e!==ba&&e.next===null&&(ba===null?Kl=ba=e:ba=ba.next=e),Ql=!0,ac||(ac=!0,h1())}function Ti(e,t){if(!ic&&Ql){ic=!0;do for(var a=!1,l=Kl;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var f=0;else{var v=l.suspendedLanes,_=l.pingedLanes;f=(1<<31-Mt(42|e)+1)-1,f&=s&~(v&~_),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,rv(l,f))}else f=we,f=el(l,l===Ie?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||Ia(l,f)||(a=!0,rv(l,f));l=l.next}while(a);ic=!1}}function d1(){ev()}function ev(){Ql=ac=!1;var e=0;nr!==0&&T1()&&(e=nr);for(var t=At(),a=null,l=Kl;l!==null;){var s=l.next,f=tv(l,t);f===0?(l.next=null,a===null?Kl=s:a.next=s,s===null&&(ba=a)):(a=l,(e!==0||(f&3)!==0)&&(Ql=!0)),l=s}lt!==0&<!==5||Ti(e),nr!==0&&(nr=0)}function tv(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var v=31-Mt(f),_=1<<v,E=s[v];E===-1?((_&a)===0||(_&l)!==0)&&(s[v]=V0(_,t)):E<=t&&(e.expiredLanes|=_),f&=~_}if(t=Ie,a=we,a=el(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&yo(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ia(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&yo(l),_o(a)){case 2:case 8:a=$d;break;case 32:a=Qi;break;case 268435456:a=Fd;break;default:a=Qi}return l=nv.bind(null,e),a=vo(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&yo(l),e.callbackPriority=2,e.callbackNode=null,2}function nv(e,t){if(lt!==0&<!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Xl()&&e.callbackNode!==a)return null;var l=we;return l=el(e,e===Ie?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(jp(e,l,t),tv(e,At()),e.callbackNode!=null&&e.callbackNode===a?nv.bind(null,e):null)}function rv(e,t){if(Xl())return null;jp(e,t,!0)}function h1(){w1(function(){(De&6)!==0?vo(Yd,d1):ev()})}function lc(){if(nr===0){var e=aa;e===0&&(e=Zi,Zi<<=1,(Zi&261888)===0&&(Zi=256)),nr=e}return nr}function av(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:al(""+e)}function iv(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function m1(e,t,a,l,s){if(t==="submit"&&a&&a.stateNode===s){var f=av((s[bt]||null).action),v=l.submitter;v&&(t=(t=v[bt]||null)?av(t.formAction):v.getAttribute("formAction"),t!==null&&(f=t,v=null));var _=new ol("action","action",null,l,s);e.push({event:_,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(nr!==0){var E=v?iv(s,v):new FormData(s);Cs(a,{pending:!0,data:E,method:s.method,action:f},null,E)}}else typeof f=="function"&&(_.preventDefault(),E=v?iv(s,v):new FormData(s),Cs(a,{pending:!0,data:E,method:s.method,action:f},f,E))},currentTarget:s}]})}}for(var uc=0;uc<Po.length;uc++){var oc=Po[uc],p1=oc.toLowerCase(),v1=oc[0].toUpperCase()+oc.slice(1);Jt(p1,"on"+v1)}Jt(Nh,"onAnimationEnd"),Jt(jh,"onAnimationIteration"),Jt(Hh,"onAnimationStart"),Jt("dblclick","onDoubleClick"),Jt("focusin","onFocus"),Jt("focusout","onBlur"),Jt(qS,"onTransitionRun"),Jt(LS,"onTransitionStart"),Jt(zS,"onTransitionCancel"),Jt(Vh,"onTransitionEnd"),Yr("onMouseEnter",["mouseout","mouseover"]),Yr("onMouseLeave",["mouseout","mouseover"]),Yr("onPointerEnter",["pointerout","pointerover"]),Yr("onPointerLeave",["pointerout","pointerover"]),mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mr("onBeforeInput",["compositionend","keypress","textInput","paste"]),mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="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(" "),y1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Oi));function lv(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],s=l.event;l=l.listeners;e:{var f=void 0;if(t)for(var v=l.length-1;0<=v;v--){var _=l[v],E=_.instance,q=_.currentTarget;if(_=_.listener,E!==f&&s.isPropagationStopped())break e;f=_,s.currentTarget=q;try{f(s)}catch(G){fl(G)}s.currentTarget=null,f=E}else for(v=0;v<l.length;v++){if(_=l[v],E=_.instance,q=_.currentTarget,_=_.listener,E!==f&&s.isPropagationStopped())break e;f=_,s.currentTarget=q;try{f(s)}catch(G){fl(G)}s.currentTarget=null,f=E}}}}function Te(e,t){var a=t[So];a===void 0&&(a=t[So]=new Set);var l=e+"__bubble";a.has(l)||(uv(t,e,2,!1),a.add(l))}function sc(e,t,a){var l=0;t&&(l|=4),uv(a,e,l,t)}var Zl="_reactListening"+Math.random().toString(36).slice(2);function cc(e){if(!e[Zl]){e[Zl]=!0,eh.forEach(function(a){a!=="selectionchange"&&(y1.has(a)||sc(a,!1,e),sc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zl]||(t[Zl]=!0,sc("selectionchange",!1,t))}}function uv(e,t,a,l){switch(Nv(t)){case 2:var s=$1;break;case 8:s=F1;break;default:s=wc}a=s.bind(null,t,a,e),s=void 0,!Ro||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function fc(e,t,a,l,s){var f=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var _=l.stateNode.containerInfo;if(_===s)break;if(v===4)for(v=l.return;v!==null;){var E=v.tag;if((E===3||E===4)&&v.stateNode.containerInfo===s)return;v=v.return}for(;_!==null;){if(v=Br(_),v===null)return;if(E=v.tag,E===5||E===6||E===26||E===27){l=f=v;continue e}_=_.parentNode}}l=l.return}dh(function(){var q=f,G=xo(a),P=[];e:{var L=Gh.get(e);if(L!==void 0){var N=ol,W=e;switch(e){case"keypress":if(ll(a)===0)break e;case"keydown":case"keyup":N=cS;break;case"focusin":W="focus",N=zo;break;case"focusout":W="blur",N=zo;break;case"beforeblur":case"afterblur":N=zo;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=ph;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=J0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=hS;break;case Nh:case jh:case Hh:N=tS;break;case Vh:N=pS;break;case"scroll":case"scrollend":N=Q0;break;case"wheel":N=yS;break;case"copy":case"cut":case"paste":N=rS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=yh;break;case"toggle":case"beforetoggle":N=bS}var oe=(t&4)!==0,Be=!oe&&(e==="scroll"||e==="scrollend"),x=oe?L!==null?L+"Capture":null:L;oe=[];for(var w=q,D;w!==null;){var I=w;if(D=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||D===null||x===null||(I=Fa(w,x),I!=null&&oe.push(wi(w,I,D))),Be)break;w=w.return}0<oe.length&&(L=new N(L,W,null,a,G),P.push({event:L,listeners:oe}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",N=e==="mouseout"||e==="pointerout",L&&a!==Ao&&(W=a.relatedTarget||a.fromElement)&&(Br(W)||W[Gr]))break e;if((N||L)&&(L=G.window===G?G:(L=G.ownerDocument)?L.defaultView||L.parentWindow:window,N?(W=a.relatedTarget||a.toElement,N=q,W=W?Br(W):null,W!==null&&(Be=c(W),oe=W.tag,W!==Be||oe!==5&&oe!==27&&oe!==6)&&(W=null)):(N=null,W=q),N!==W)){if(oe=ph,I="onMouseLeave",x="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(oe=yh,I="onPointerLeave",x="onPointerEnter",w="pointer"),Be=N==null?L:$a(N),D=W==null?L:$a(W),L=new oe(I,w+"leave",N,a,G),L.target=Be,L.relatedTarget=D,I=null,Br(G)===q&&(oe=new oe(x,w+"enter",W,a,G),oe.target=D,oe.relatedTarget=Be,I=oe),Be=I,N&&W)t:{for(oe=g1,x=N,w=W,D=0,I=x;I;I=oe(I))D++;I=0;for(var ne=w;ne;ne=oe(ne))I++;for(;0<D-I;)x=oe(x),D--;for(;0<I-D;)w=oe(w),I--;for(;D--;){if(x===w||w!==null&&x===w.alternate){oe=x;break t}x=oe(x),w=oe(w)}oe=null}else oe=null;N!==null&&ov(P,L,N,oe,!1),W!==null&&Be!==null&&ov(P,Be,W,oe,!0)}}e:{if(L=q?$a(q):window,N=L.nodeName&&L.nodeName.toLowerCase(),N==="select"||N==="input"&&L.type==="file")var xe=wh;else if(Th(L))if(Ch)xe=MS;else{xe=AS;var te=CS}else N=L.nodeName,!N||N.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?q&&Co(q.elementType)&&(xe=wh):xe=xS;if(xe&&(xe=xe(e,q))){Oh(P,xe,a,G);break e}te&&te(e,L,q),e==="focusout"&&q&&L.type==="number"&&q.memoizedProps.value!=null&&wo(L,"number",L.value)}switch(te=q?$a(q):window,e){case"focusin":(Th(te)||te.contentEditable==="true")&&(Qr=te,Go=q,ei=null);break;case"focusout":ei=Go=Qr=null;break;case"mousedown":Bo=!0;break;case"contextmenu":case"mouseup":case"dragend":Bo=!1,zh(P,a,G);break;case"selectionchange":if(DS)break;case"keydown":case"keyup":zh(P,a,G)}var ge;if(No)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Kr?Sh(e,a)&&(Ce="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ce="onCompositionStart");Ce&&(gh&&a.locale!=="ko"&&(Kr||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Kr&&(ge=hh()):(Gn=G,Do="value"in Gn?Gn.value:Gn.textContent,Kr=!0)),te=Jl(q,Ce),0<te.length&&(Ce=new vh(Ce,e,null,a,G),P.push({event:Ce,listeners:te}),ge?Ce.data=ge:(ge=Eh(a),ge!==null&&(Ce.data=ge)))),(ge=SS?ES(e,a):TS(e,a))&&(Ce=Jl(q,"onBeforeInput"),0<Ce.length&&(te=new vh("onBeforeInput","beforeinput",null,a,G),P.push({event:te,listeners:Ce}),te.data=ge)),m1(P,e,q,a,G)}lv(P,t)})}function wi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Jl(e,t){for(var a=t+"Capture",l=[];e!==null;){var s=e,f=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||f===null||(s=Fa(e,a),s!=null&&l.unshift(wi(e,s,f)),s=Fa(e,t),s!=null&&l.push(wi(e,s,f))),e.tag===3)return l;e=e.return}return[]}function g1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ov(e,t,a,l,s){for(var f=t._reactName,v=[];a!==null&&a!==l;){var _=a,E=_.alternate,q=_.stateNode;if(_=_.tag,E!==null&&E===l)break;_!==5&&_!==26&&_!==27||q===null||(E=q,s?(q=Fa(a,f),q!=null&&v.unshift(wi(a,q,E))):s||(q=Fa(a,f),q!=null&&v.push(wi(a,q,E)))),a=a.return}v.length!==0&&e.push({event:t,listeners:v})}var b1=/\r\n?/g,_1=/\u0000|\uFFFD/g;function sv(e){return(typeof e=="string"?e:""+e).replace(b1,`
|
|
14
|
+
`).replace(_1,"")}function cv(e,t){return t=sv(t),sv(e)===t}function Ge(e,t,a,l,s,f){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Fr(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Fr(e,""+l);break;case"className":nl(e,"class",l);break;case"tabIndex":nl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":nl(e,a,l);break;case"style":ch(e,l,f);break;case"data":if(t!=="object"){nl(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=al(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(t!=="input"&&Ge(e,t,"name",s.name,s,null),Ge(e,t,"formEncType",s.formEncType,s,null),Ge(e,t,"formMethod",s.formMethod,s,null),Ge(e,t,"formTarget",s.formTarget,s,null)):(Ge(e,t,"encType",s.encType,s,null),Ge(e,t,"method",s.method,s,null),Ge(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=al(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=pn);break;case"onScroll":l!=null&&Te("scroll",e);break;case"onScrollEnd":l!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=al(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Te("beforetoggle",e),Te("toggle",e),tl(e,"popover",l);break;case"xlinkActuate":mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":mn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":mn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":mn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":mn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":tl(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=X0.get(a)||a,tl(e,a,l))}}function dc(e,t,a,l,s,f){switch(a){case"style":ch(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Fr(e,l):(typeof l=="number"||typeof l=="bigint")&&Fr(e,""+l);break;case"onScroll":l!=null&&Te("scroll",e);break;case"onScrollEnd":l!=null&&Te("scrollend",e);break;case"onClick":l!=null&&(e.onclick=pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!th.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),f=e[bt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,s),typeof l=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,s);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):tl(e,a,l)}}}function mt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var l=!1,s=!1,f;for(f in a)if(a.hasOwnProperty(f)){var v=a[f];if(v!=null)switch(f){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ge(e,t,f,v,a,null)}}s&&Ge(e,t,"srcSet",a.srcSet,a,null),l&&Ge(e,t,"src",a.src,a,null);return;case"input":Te("invalid",e);var _=f=v=s=null,E=null,q=null;for(l in a)if(a.hasOwnProperty(l)){var G=a[l];if(G!=null)switch(l){case"name":s=G;break;case"type":v=G;break;case"checked":E=G;break;case"defaultChecked":q=G;break;case"value":f=G;break;case"defaultValue":_=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(u(137,t));break;default:Ge(e,t,l,G,a,null)}}lh(e,f,_,E,q,v,s,!1);return;case"select":Te("invalid",e),l=v=f=null;for(s in a)if(a.hasOwnProperty(s)&&(_=a[s],_!=null))switch(s){case"value":f=_;break;case"defaultValue":v=_;break;case"multiple":l=_;default:Ge(e,t,s,_,a,null)}t=f,a=v,e.multiple=!!l,t!=null?$r(e,!!l,t,!1):a!=null&&$r(e,!!l,a,!0);return;case"textarea":Te("invalid",e),f=s=l=null;for(v in a)if(a.hasOwnProperty(v)&&(_=a[v],_!=null))switch(v){case"value":l=_;break;case"defaultValue":s=_;break;case"children":f=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(91));break;default:Ge(e,t,v,_,a,null)}oh(e,l,s,f);return;case"option":for(E in a)a.hasOwnProperty(E)&&(l=a[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ge(e,t,E,l,a,null));return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(l=0;l<Oi.length;l++)Te(Oi[l],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in a)if(a.hasOwnProperty(q)&&(l=a[q],l!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ge(e,t,q,l,a,null)}return;default:if(Co(t)){for(G in a)a.hasOwnProperty(G)&&(l=a[G],l!==void 0&&dc(e,t,G,l,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!=null&&Ge(e,t,_,l,a,null))}function S1(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,f=null,v=null,_=null,E=null,q=null,G=null;for(N in a){var P=a[N];if(a.hasOwnProperty(N)&&P!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":E=P;default:l.hasOwnProperty(N)||Ge(e,t,N,null,l,P)}}for(var L in l){var N=l[L];if(P=a[L],l.hasOwnProperty(L)&&(N!=null||P!=null))switch(L){case"type":f=N;break;case"name":s=N;break;case"checked":q=N;break;case"defaultChecked":G=N;break;case"value":v=N;break;case"defaultValue":_=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(u(137,t));break;default:N!==P&&Ge(e,t,L,N,l,P)}}Oo(e,v,_,E,q,G,f,s);return;case"select":N=v=_=L=null;for(f in a)if(E=a[f],a.hasOwnProperty(f)&&E!=null)switch(f){case"value":break;case"multiple":N=E;default:l.hasOwnProperty(f)||Ge(e,t,f,null,l,E)}for(s in l)if(f=l[s],E=a[s],l.hasOwnProperty(s)&&(f!=null||E!=null))switch(s){case"value":L=f;break;case"defaultValue":_=f;break;case"multiple":v=f;default:f!==E&&Ge(e,t,s,f,l,E)}t=_,a=v,l=N,L!=null?$r(e,!!a,L,!1):!!l!=!!a&&(t!=null?$r(e,!!a,t,!0):$r(e,!!a,a?[]:"",!1));return;case"textarea":N=L=null;for(_ in a)if(s=a[_],a.hasOwnProperty(_)&&s!=null&&!l.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Ge(e,t,_,null,l,s)}for(v in l)if(s=l[v],f=a[v],l.hasOwnProperty(v)&&(s!=null||f!=null))switch(v){case"value":L=s;break;case"defaultValue":N=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==f&&Ge(e,t,v,s,l,f)}uh(e,L,N);return;case"option":for(var W in a)L=a[W],a.hasOwnProperty(W)&&L!=null&&!l.hasOwnProperty(W)&&(W==="selected"?e.selected=!1:Ge(e,t,W,null,l,L));for(E in l)L=l[E],N=a[E],l.hasOwnProperty(E)&&L!==N&&(L!=null||N!=null)&&(E==="selected"?e.selected=L&&typeof L!="function"&&typeof L!="symbol":Ge(e,t,E,L,l,N));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var oe in a)L=a[oe],a.hasOwnProperty(oe)&&L!=null&&!l.hasOwnProperty(oe)&&Ge(e,t,oe,null,l,L);for(q in l)if(L=l[q],N=a[q],l.hasOwnProperty(q)&&L!==N&&(L!=null||N!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:Ge(e,t,q,L,l,N)}return;default:if(Co(t)){for(var Be in a)L=a[Be],a.hasOwnProperty(Be)&&L!==void 0&&!l.hasOwnProperty(Be)&&dc(e,t,Be,void 0,l,L);for(G in l)L=l[G],N=a[G],!l.hasOwnProperty(G)||L===N||L===void 0&&N===void 0||dc(e,t,G,L,l,N);return}}for(var x in a)L=a[x],a.hasOwnProperty(x)&&L!=null&&!l.hasOwnProperty(x)&&Ge(e,t,x,null,l,L);for(P in l)L=l[P],N=a[P],!l.hasOwnProperty(P)||L===N||L==null&&N==null||Ge(e,t,P,L,l,N)}function fv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function E1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var s=a[l],f=s.transferSize,v=s.initiatorType,_=s.duration;if(f&&_&&fv(v)){for(v=0,_=s.responseEnd,l+=1;l<a.length;l++){var E=a[l],q=E.startTime;if(q>_)break;var G=E.transferSize,P=E.initiatorType;G&&fv(P)&&(E=E.responseEnd,v+=G*(E<_?1:(_-q)/(E-q)))}if(--l,t+=8*(f+v)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var hc=null,mc=null;function Wl(e){return e.nodeType===9?e:e.ownerDocument}function dv(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hv(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function pc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vc=null;function T1(){var e=window.event;return e&&e.type==="popstate"?e===vc?!1:(vc=e,!0):(vc=null,!1)}var mv=typeof setTimeout=="function"?setTimeout:void 0,O1=typeof clearTimeout=="function"?clearTimeout:void 0,pv=typeof Promise=="function"?Promise:void 0,w1=typeof queueMicrotask=="function"?queueMicrotask:typeof pv<"u"?function(e){return pv.resolve(null).then(e).catch(C1)}:mv;function C1(e){setTimeout(function(){throw e})}function rr(e){return e==="head"}function vv(e,t){var a=t,l=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(s),Ta(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Ci(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ci(a);for(var f=a.firstChild;f;){var v=f.nextSibling,_=f.nodeName;f[Ya]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=v}}else a==="body"&&Ci(e.ownerDocument.body);a=s}while(a);Ta(t)}function yv(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function yc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":yc(a),Eo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function A1(e,t,a,l){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ya])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=kt(e.nextSibling),e===null)break}return null}function x1(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=kt(e.nextSibling),e===null))return null;return e}function gv(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=kt(e.nextSibling),e===null))return null;return e}function gc(e){return e.data==="$?"||e.data==="$~"}function bc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function M1(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function kt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var _c=null;function bv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return kt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function _v(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Sv(e,t,a){switch(t=Wl(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Ci(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Eo(e)}var Xt=new Map,Ev=new Set;function eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=X.d;X.d={f:R1,r:D1,D:q1,C:L1,L:z1,m:U1,X:j1,S:N1,M:H1};function R1(){var e=Dn.f(),t=$l();return e||t}function D1(e){var t=Ir(e);t!==null&&t.tag===5&&t.type==="form"?Vm(t):Dn.r(e)}var _a=typeof document>"u"?null:document;function Tv(e,t,a){var l=_a;if(l&&typeof t=="string"&&t){var s=Gt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),Ev.has(s)||(Ev.add(s),e={rel:e,crossOrigin:a,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),mt(t,"link",e),ot(t),l.head.appendChild(t)))}}function q1(e){Dn.D(e),Tv("dns-prefetch",e,null)}function L1(e,t){Dn.C(e,t),Tv("preconnect",e,t)}function z1(e,t,a){Dn.L(e,t,a);var l=_a;if(l&&e&&t){var s='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+Gt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+Gt(a.imageSizes)+'"]')):s+='[href="'+Gt(e)+'"]';var f=s;switch(t){case"style":f=Sa(e);break;case"script":f=Ea(e)}Xt.has(f)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Xt.set(f,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(Ai(f))||t==="script"&&l.querySelector(xi(f))||(t=l.createElement("link"),mt(t,"link",e),ot(t),l.head.appendChild(t)))}}function U1(e,t){Dn.m(e,t);var a=_a;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Gt(l)+'"][href="'+Gt(e)+'"]',f=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Ea(e)}if(!Xt.has(f)&&(e=g({rel:"modulepreload",href:e},t),Xt.set(f,e),a.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xi(f)))return}l=a.createElement("link"),mt(l,"link",e),ot(l),a.head.appendChild(l)}}}function N1(e,t,a){Dn.S(e,t,a);var l=_a;if(l&&e){var s=Pr(l).hoistableStyles,f=Sa(e);t=t||"default";var v=s.get(f);if(!v){var _={loading:0,preload:null};if(v=l.querySelector(Ai(f)))_.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Xt.get(f))&&Sc(e,a);var E=v=l.createElement("link");ot(E),mt(E,"link",e),E._p=new Promise(function(q,G){E.onload=q,E.onerror=G}),E.addEventListener("load",function(){_.loading|=1}),E.addEventListener("error",function(){_.loading|=2}),_.loading|=4,tu(v,t,l)}v={type:"stylesheet",instance:v,count:1,state:_},s.set(f,v)}}}function j1(e,t){Dn.X(e,t);var a=_a;if(a&&e){var l=Pr(a).hoistableScripts,s=Ea(e),f=l.get(s);f||(f=a.querySelector(xi(s)),f||(e=g({src:e,async:!0},t),(t=Xt.get(s))&&Ec(e,t),f=a.createElement("script"),ot(f),mt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(s,f))}}function H1(e,t){Dn.M(e,t);var a=_a;if(a&&e){var l=Pr(a).hoistableScripts,s=Ea(e),f=l.get(s);f||(f=a.querySelector(xi(s)),f||(e=g({src:e,async:!0,type:"module"},t),(t=Xt.get(s))&&Ec(e,t),f=a.createElement("script"),ot(f),mt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(s,f))}}function Ov(e,t,a,l){var s=(s=ce.current)?eu(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Sa(a.href),a=Pr(s).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Sa(a.href);var f=Pr(s).hoistableStyles,v=f.get(e);if(v||(s=s.ownerDocument||s,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,v),(f=s.querySelector(Ai(e)))&&!f._p&&(v.instance=f,v.state.loading=5),Xt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Xt.set(e,a),f||V1(s,e,a,v.state))),t&&l===null)throw Error(u(528,""));return v}if(t&&l!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ea(a),a=Pr(s).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Sa(e){return'href="'+Gt(e)+'"'}function Ai(e){return'link[rel="stylesheet"]['+e+"]"}function wv(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function V1(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),mt(t,"link",a),ot(t),e.head.appendChild(t))}function Ea(e){return'[src="'+Gt(e)+'"]'}function xi(e){return"script[async]"+e}function Cv(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Gt(a.href)+'"]');if(l)return t.instance=l,ot(l),l;var s=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ot(l),mt(l,"style",s),tu(l,a.precedence,e),t.instance=l;case"stylesheet":s=Sa(a.href);var f=e.querySelector(Ai(s));if(f)return t.state.loading|=4,t.instance=f,ot(f),f;l=wv(a),(s=Xt.get(s))&&Sc(l,s),f=(e.ownerDocument||e).createElement("link"),ot(f);var v=f;return v._p=new Promise(function(_,E){v.onload=_,v.onerror=E}),mt(f,"link",l),t.state.loading|=4,tu(f,a.precedence,e),t.instance=f;case"script":return f=Ea(a.src),(s=e.querySelector(xi(f)))?(t.instance=s,ot(s),s):(l=a,(s=Xt.get(f))&&(l=g({},a),Ec(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),ot(s),mt(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,tu(l,a.precedence,e));return t.instance}function tu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,f=s,v=0;v<l.length;v++){var _=l[v];if(_.dataset.precedence===t)f=_;else if(f!==s)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var nu=null;function Av(e,t,a){if(nu===null){var l=new Map,s=nu=new Map;s.set(a,l)}else s=nu,l=s.get(a),l||(l=new Map,s.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var f=a[s];if(!(f[Ya]||f[ct]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var v=f.getAttribute(t)||"";v=e+v;var _=l.get(v);_?_.push(f):l.set(v,[f])}}return l}function xv(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function G1(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Mv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function B1(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=Sa(l.href),f=t.querySelector(Ai(s));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ru.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=f,ot(f);return}f=t.ownerDocument||t,l=wv(l),(s=Xt.get(s))&&Sc(l,s),f=f.createElement("link"),ot(f);var v=f;v._p=new Promise(function(_,E){v.onload=_,v.onerror=E}),mt(f,"link",l),a.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ru.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Tc=0;function I1(e,t){return e.stylesheets&&e.count===0&&iu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&iu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Tc===0&&(Tc=62500*E1());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&iu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Tc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function ru(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)iu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var au=null;function iu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,au=new Map,t.forEach(P1,e),au=null,ru.call(e))}function P1(e,t){if(!(t.state.loading&4)){var a=au.get(e);if(a)var l=a.get(null);else{a=new Map,au.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<s.length;f++){var v=s[f];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(a.set(v.dataset.precedence,v),l=v)}l&&a.set(null,l)}s=t.instance,v=s.getAttribute("data-precedence"),f=a.get(v)||l,f===l&&a.set(null,s),a.set(v,s),this.count++,l=ru.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),f?f.parentNode.insertBefore(s,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Mi={$$typeof:B,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Y1(e,t,a,l,s,f,v,_,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=go(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.hiddenUpdates=go(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=f,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Rv(e,t,a,l,s,f,v,_,E,q,G,P){return e=new Y1(e,t,a,v,E,q,G,P,_),t=1,f===!0&&(t|=24),f=Dt(3,null,null,t),e.current=f,f.stateNode=e,t=ns(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:t},ls(f),e}function Dv(e){return e?(e=Wr,e):Wr}function qv(e,t,a,l,s,f){s=Dv(s),l.context===null?l.context=s:l.pendingContext=s,l=Fn(t),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=kn(e,l,t),a!==null&&(wt(a,e,t),ui(a,e,t))}function Lv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Oc(e,t){Lv(e,t),(e=e.alternate)&&Lv(e,t)}function zv(e){if(e.tag===13||e.tag===31){var t=gr(e,67108864);t!==null&&wt(t,e,67108864),Oc(e,67108864)}}function Uv(e){if(e.tag===13||e.tag===31){var t=Nt();t=bo(t);var a=gr(e,t);a!==null&&wt(a,e,t),Oc(e,t)}}var lu=!0;function $1(e,t,a,l){var s=U.T;U.T=null;var f=X.p;try{X.p=2,wc(e,t,a,l)}finally{X.p=f,U.T=s}}function F1(e,t,a,l){var s=U.T;U.T=null;var f=X.p;try{X.p=8,wc(e,t,a,l)}finally{X.p=f,U.T=s}}function wc(e,t,a,l){if(lu){var s=Cc(l);if(s===null)fc(e,t,l,uu,a),jv(e,l);else if(X1(s,e,t,a,l))l.stopPropagation();else if(jv(e,l),t&4&&-1<k1.indexOf(e)){for(;s!==null;){var f=Ir(s);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var v=hr(f.pendingLanes);if(v!==0){var _=f;for(_.pendingLanes|=2,_.entangledLanes|=2;v;){var E=1<<31-Mt(v);_.entanglements[1]|=E,v&=~E}on(f),(De&6)===0&&(Pl=At()+500,Ti(0))}}break;case 31:case 13:_=gr(f,2),_!==null&&wt(_,f,2),$l(),Oc(f,2)}if(f=Cc(l),f===null&&fc(e,t,l,uu,a),f===s)break;s=f}s!==null&&l.stopPropagation()}else fc(e,t,l,null,a)}}function Cc(e){return e=xo(e),Ac(e)}var uu=null;function Ac(e){if(uu=null,e=Br(e),e!==null){var t=c(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return uu=e,null}function Nv(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(q0()){case Yd:return 2;case $d:return 8;case Qi:case L0:return 32;case Fd:return 268435456;default:return 32}default:return 32}}var xc=!1,ar=null,ir=null,lr=null,Ri=new Map,Di=new Map,ur=[],k1="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".split(" ");function jv(e,t){switch(e){case"focusin":case"focusout":ar=null;break;case"dragenter":case"dragleave":ir=null;break;case"mouseover":case"mouseout":lr=null;break;case"pointerover":case"pointerout":Ri.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Di.delete(t.pointerId)}}function qi(e,t,a,l,s,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[s]},t!==null&&(t=Ir(t),t!==null&&zv(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function X1(e,t,a,l,s){switch(t){case"focusin":return ar=qi(ar,e,t,a,l,s),!0;case"dragenter":return ir=qi(ir,e,t,a,l,s),!0;case"mouseover":return lr=qi(lr,e,t,a,l,s),!0;case"pointerover":var f=s.pointerId;return Ri.set(f,qi(Ri.get(f)||null,e,t,a,l,s)),!0;case"gotpointercapture":return f=s.pointerId,Di.set(f,qi(Di.get(f)||null,e,t,a,l,s)),!0}return!1}function Hv(e){var t=Br(e.target);if(t!==null){var a=c(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Jd(e.priority,function(){Uv(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,Jd(e.priority,function(){Uv(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ou(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Cc(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Ao=l,a.target.dispatchEvent(l),Ao=null}else return t=Ir(a),t!==null&&zv(t),e.blockedOn=a,!1;t.shift()}return!0}function Vv(e,t,a){ou(e)&&a.delete(t)}function K1(){xc=!1,ar!==null&&ou(ar)&&(ar=null),ir!==null&&ou(ir)&&(ir=null),lr!==null&&ou(lr)&&(lr=null),Ri.forEach(Vv),Di.forEach(Vv)}function su(e,t){e.blockedOn===t&&(e.blockedOn=null,xc||(xc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,K1)))}var cu=null;function Gv(e){cu!==e&&(cu=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){cu===e&&(cu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Ac(l||a)===null)continue;break}var f=Ir(a);f!==null&&(e.splice(t,3),t-=3,Cs(f,{pending:!0,data:s,method:a.method,action:l},l,s))}}))}function Ta(e){function t(E){return su(E,e)}ar!==null&&su(ar,e),ir!==null&&su(ir,e),lr!==null&&su(lr,e),Ri.forEach(t),Di.forEach(t);for(var a=0;a<ur.length;a++){var l=ur[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ur.length&&(a=ur[0],a.blockedOn===null);)Hv(a),a.blockedOn===null&&ur.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var s=a[l],f=a[l+1],v=s[bt]||null;if(typeof f=="function")v||Gv(a);else if(v){var _=null;if(f&&f.hasAttribute("formAction")){if(s=f,v=f[bt]||null)_=v.formAction;else if(Ac(s)!==null)continue}else _=v.action;typeof _=="function"?a[l+1]=_:(a.splice(l,3),l-=3),Gv(a)}}}function Bv(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(v){return s=v})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Mc(e){this._internalRoot=e}fu.prototype.render=Mc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,l=Nt();qv(a,l,e,t,null,null)},fu.prototype.unmount=Mc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qv(e.current,2,null,e,null,null),$l(),t[Gr]=null}};function fu(e){this._internalRoot=e}fu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ur.length&&t!==0&&t<ur[a].priority;a++);ur.splice(a,0,e),a===0&&Hv(e)}};var Iv=n.version;if(Iv!=="19.2.4")throw Error(u(527,Iv,"19.2.4"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Q1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!du.isDisabled&&du.supportsFiber)try{Ba=du.inject(Q1),xt=du}catch{}}return ji.createRoot=function(e,t){if(!o(e))throw Error(u(299));var a=!1,l="",s=Km,f=Qm,v=Zm;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=Rv(e,1,!1,null,null,a,l,null,s,f,v,Bv),e[Gr]=t.current,cc(e),new Mc(t)},ji.hydrateRoot=function(e,t,a){if(!o(e))throw Error(u(299));var l=!1,s="",f=Km,v=Qm,_=Zm,E=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.formState!==void 0&&(E=a.formState)),t=Rv(e,1,!0,t,a??null,l,s,E,f,v,_,Bv),t.context=Dv(null),a=t.current,l=Nt(),l=bo(l),s=Fn(l),s.callback=null,kn(a,s,l),a=l,t.current.lanes=a,Pa(t,a),on(t),e[Gr]=t.current,cc(e),new fu(t)},ji.version="19.2.4",ji}var Xy;function v2(){if(Xy)return Xc.exports;Xy=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(n){console.error(n)}}return r(),Xc.exports=p2(),Xc.exports}var y2=v2();const d_=document.getElementById("root");if(!d_)throw new Error('Root container element "#root" was not found');const g2=y2.createRoot(d_);function b2(r){g2.render(Ke.jsx(Y.StrictMode,{children:r}))}var Zc,Ky;function jd(){if(Ky)return Zc;Ky=1;var r=Array.isArray;return Zc=r,Zc}var Jc,Qy;function _2(){if(Qy)return Jc;Qy=1;var r=typeof hu=="object"&&hu&&hu.Object===Object&&hu;return Jc=r,Jc}var Wc,Zy;function Hd(){if(Zy)return Wc;Zy=1;var r=_2(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=r||n||Function("return this")();return Wc=i,Wc}var ef,Jy;function Vd(){if(Jy)return ef;Jy=1;var r=Hd(),n=r.Symbol;return ef=n,ef}var tf,Wy;function S2(){if(Wy)return tf;Wy=1;var r=Vd(),n=Object.prototype,i=n.hasOwnProperty,u=n.toString,o=r?r.toStringTag:void 0;function c(d){var p=i.call(d,o),h=d[o];try{d[o]=void 0;var m=!0}catch{}var y=u.call(d);return m&&(p?d[o]=h:delete d[o]),y}return tf=c,tf}var nf,eg;function E2(){if(eg)return nf;eg=1;var r=Object.prototype,n=r.toString;function i(u){return n.call(u)}return nf=i,nf}var rf,tg;function h_(){if(tg)return rf;tg=1;var r=Vd(),n=S2(),i=E2(),u="[object Null]",o="[object Undefined]",c=r?r.toStringTag:void 0;function d(p){return p==null?p===void 0?o:u:c&&c in Object(p)?n(p):i(p)}return rf=d,rf}var af,ng;function T2(){if(ng)return af;ng=1;function r(n){return n!=null&&typeof n=="object"}return af=r,af}var lf,rg;function Gd(){if(rg)return lf;rg=1;var r=h_(),n=T2(),i="[object Symbol]";function u(o){return typeof o=="symbol"||n(o)&&r(o)==i}return lf=u,lf}var uf,ag;function O2(){if(ag)return uf;ag=1;var r=jd(),n=Gd(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;function o(c,d){if(r(c))return!1;var p=typeof c;return p=="number"||p=="symbol"||p=="boolean"||c==null||n(c)?!0:u.test(c)||!i.test(c)||d!=null&&c in Object(d)}return uf=o,uf}var of,ig;function m_(){if(ig)return of;ig=1;function r(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}return of=r,of}var sf,lg;function w2(){if(lg)return sf;lg=1;var r=h_(),n=m_(),i="[object AsyncFunction]",u="[object Function]",o="[object GeneratorFunction]",c="[object Proxy]";function d(p){if(!n(p))return!1;var h=r(p);return h==u||h==o||h==i||h==c}return sf=d,sf}var cf,ug;function C2(){if(ug)return cf;ug=1;var r=Hd(),n=r["__core-js_shared__"];return cf=n,cf}var ff,og;function A2(){if(og)return ff;og=1;var r=C2(),n=(function(){var u=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""})();function i(u){return!!n&&n in u}return ff=i,ff}var df,sg;function x2(){if(sg)return df;sg=1;var r=Function.prototype,n=r.toString;function i(u){if(u!=null){try{return n.call(u)}catch{}try{return u+""}catch{}}return""}return df=i,df}var hf,cg;function M2(){if(cg)return hf;cg=1;var r=w2(),n=A2(),i=m_(),u=x2(),o=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,d=Function.prototype,p=Object.prototype,h=d.toString,m=p.hasOwnProperty,y=RegExp("^"+h.call(m).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(b){if(!i(b)||n(b))return!1;var S=r(b)?y:c;return S.test(u(b))}return hf=g,hf}var mf,fg;function R2(){if(fg)return mf;fg=1;function r(n,i){return n?.[i]}return mf=r,mf}var pf,dg;function p_(){if(dg)return pf;dg=1;var r=M2(),n=R2();function i(u,o){var c=n(u,o);return r(c)?c:void 0}return pf=i,pf}var vf,hg;function co(){if(hg)return vf;hg=1;var r=p_(),n=r(Object,"create");return vf=n,vf}var yf,mg;function D2(){if(mg)return yf;mg=1;var r=co();function n(){this.__data__=r?r(null):{},this.size=0}return yf=n,yf}var gf,pg;function q2(){if(pg)return gf;pg=1;function r(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}return gf=r,gf}var bf,vg;function L2(){if(vg)return bf;vg=1;var r=co(),n="__lodash_hash_undefined__",i=Object.prototype,u=i.hasOwnProperty;function o(c){var d=this.__data__;if(r){var p=d[c];return p===n?void 0:p}return u.call(d,c)?d[c]:void 0}return bf=o,bf}var _f,yg;function z2(){if(yg)return _f;yg=1;var r=co(),n=Object.prototype,i=n.hasOwnProperty;function u(o){var c=this.__data__;return r?c[o]!==void 0:i.call(c,o)}return _f=u,_f}var Sf,gg;function U2(){if(gg)return Sf;gg=1;var r=co(),n="__lodash_hash_undefined__";function i(u,o){var c=this.__data__;return this.size+=this.has(u)?0:1,c[u]=r&&o===void 0?n:o,this}return Sf=i,Sf}var Ef,bg;function N2(){if(bg)return Ef;bg=1;var r=D2(),n=q2(),i=L2(),u=z2(),o=U2();function c(d){var p=-1,h=d==null?0:d.length;for(this.clear();++p<h;){var m=d[p];this.set(m[0],m[1])}}return c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=u,c.prototype.set=o,Ef=c,Ef}var Tf,_g;function j2(){if(_g)return Tf;_g=1;function r(){this.__data__=[],this.size=0}return Tf=r,Tf}var Of,Sg;function H2(){if(Sg)return Of;Sg=1;function r(n,i){return n===i||n!==n&&i!==i}return Of=r,Of}var wf,Eg;function fo(){if(Eg)return wf;Eg=1;var r=H2();function n(i,u){for(var o=i.length;o--;)if(r(i[o][0],u))return o;return-1}return wf=n,wf}var Cf,Tg;function V2(){if(Tg)return Cf;Tg=1;var r=fo(),n=Array.prototype,i=n.splice;function u(o){var c=this.__data__,d=r(c,o);if(d<0)return!1;var p=c.length-1;return d==p?c.pop():i.call(c,d,1),--this.size,!0}return Cf=u,Cf}var Af,Og;function G2(){if(Og)return Af;Og=1;var r=fo();function n(i){var u=this.__data__,o=r(u,i);return o<0?void 0:u[o][1]}return Af=n,Af}var xf,wg;function B2(){if(wg)return xf;wg=1;var r=fo();function n(i){return r(this.__data__,i)>-1}return xf=n,xf}var Mf,Cg;function I2(){if(Cg)return Mf;Cg=1;var r=fo();function n(i,u){var o=this.__data__,c=r(o,i);return c<0?(++this.size,o.push([i,u])):o[c][1]=u,this}return Mf=n,Mf}var Rf,Ag;function P2(){if(Ag)return Rf;Ag=1;var r=j2(),n=V2(),i=G2(),u=B2(),o=I2();function c(d){var p=-1,h=d==null?0:d.length;for(this.clear();++p<h;){var m=d[p];this.set(m[0],m[1])}}return c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=u,c.prototype.set=o,Rf=c,Rf}var Df,xg;function Y2(){if(xg)return Df;xg=1;var r=p_(),n=Hd(),i=r(n,"Map");return Df=i,Df}var qf,Mg;function $2(){if(Mg)return qf;Mg=1;var r=N2(),n=P2(),i=Y2();function u(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}return qf=u,qf}var Lf,Rg;function F2(){if(Rg)return Lf;Rg=1;function r(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}return Lf=r,Lf}var zf,Dg;function ho(){if(Dg)return zf;Dg=1;var r=F2();function n(i,u){var o=i.__data__;return r(u)?o[typeof u=="string"?"string":"hash"]:o.map}return zf=n,zf}var Uf,qg;function k2(){if(qg)return Uf;qg=1;var r=ho();function n(i){var u=r(this,i).delete(i);return this.size-=u?1:0,u}return Uf=n,Uf}var Nf,Lg;function X2(){if(Lg)return Nf;Lg=1;var r=ho();function n(i){return r(this,i).get(i)}return Nf=n,Nf}var jf,zg;function K2(){if(zg)return jf;zg=1;var r=ho();function n(i){return r(this,i).has(i)}return jf=n,jf}var Hf,Ug;function Q2(){if(Ug)return Hf;Ug=1;var r=ho();function n(i,u){var o=r(this,i),c=o.size;return o.set(i,u),this.size+=o.size==c?0:1,this}return Hf=n,Hf}var Vf,Ng;function Z2(){if(Ng)return Vf;Ng=1;var r=$2(),n=k2(),i=X2(),u=K2(),o=Q2();function c(d){var p=-1,h=d==null?0:d.length;for(this.clear();++p<h;){var m=d[p];this.set(m[0],m[1])}}return c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=u,c.prototype.set=o,Vf=c,Vf}var Gf,jg;function J2(){if(jg)return Gf;jg=1;var r=Z2(),n="Expected a function";function i(u,o){if(typeof u!="function"||o!=null&&typeof o!="function")throw new TypeError(n);var c=function(){var d=arguments,p=o?o.apply(this,d):d[0],h=c.cache;if(h.has(p))return h.get(p);var m=u.apply(this,d);return c.cache=h.set(p,m)||h,m};return c.cache=new(i.Cache||r),c}return i.Cache=r,Gf=i,Gf}var Bf,Hg;function W2(){if(Hg)return Bf;Hg=1;var r=J2(),n=500;function i(u){var o=r(u,function(d){return c.size===n&&c.clear(),d}),c=o.cache;return o}return Bf=i,Bf}var If,Vg;function ex(){if(Vg)return If;Vg=1;var r=W2(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=r(function(o){var c=[];return o.charCodeAt(0)===46&&c.push(""),o.replace(n,function(d,p,h,m){c.push(h?m.replace(i,"$1"):p||d)}),c});return If=u,If}var Pf,Gg;function tx(){if(Gg)return Pf;Gg=1;function r(n,i){for(var u=-1,o=n==null?0:n.length,c=Array(o);++u<o;)c[u]=i(n[u],u,n);return c}return Pf=r,Pf}var Yf,Bg;function nx(){if(Bg)return Yf;Bg=1;var r=Vd(),n=tx(),i=jd(),u=Gd(),o=r?r.prototype:void 0,c=o?o.toString:void 0;function d(p){if(typeof p=="string")return p;if(i(p))return n(p,d)+"";if(u(p))return c?c.call(p):"";var h=p+"";return h=="0"&&1/p==-1/0?"-0":h}return Yf=d,Yf}var $f,Ig;function rx(){if(Ig)return $f;Ig=1;var r=nx();function n(i){return i==null?"":r(i)}return $f=n,$f}var Ff,Pg;function ax(){if(Pg)return Ff;Pg=1;var r=jd(),n=O2(),i=ex(),u=rx();function o(c,d){return r(c)?c:n(c,d)?[c]:i(u(c))}return Ff=o,Ff}var kf,Yg;function ix(){if(Yg)return kf;Yg=1;var r=Gd();function n(i){if(typeof i=="string"||r(i))return i;var u=i+"";return u=="0"&&1/i==-1/0?"-0":u}return kf=n,kf}var Xf,$g;function lx(){if($g)return Xf;$g=1;var r=ax(),n=ix();function i(u,o){o=r(o,u);for(var c=0,d=o.length;u!=null&&c<d;)u=u[n(o[c++])];return c&&c==d?u:void 0}return Xf=i,Xf}var Kf,Fg;function ux(){if(Fg)return Kf;Fg=1;var r=lx();function n(i,u,o){var c=i==null?void 0:r(i,u);return c===void 0?o:c}return Kf=n,Kf}var ox=ux();const v_=eo(ox);function y_(r){return typeof r=="object"&&!!r&&"data"in r}function sx(r){return typeof r=="object"&&!!r&&"included"in r}function nn({__itemTypeId:r,id:n,type:i,attributes:u,relationships:o,meta:c}){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r?{__itemTypeId:r}:{}),n?{id:n}:{}),i?{type:i}:{}),u||{}),o?Object.fromEntries(Object.entries(o).map(([d,p])=>[d,p?.data])):{}),c?{meta:c}:{})}function A(r){if(!y_(r))throw new Error("Invalid body!");return Array.isArray(r.data)?r.data.map(nn):nn(r.data)}function g_(r){return!!(r&&typeof r=="object"&&"type"in r&&r.type==="item")}function gd(r){if(Array.isArray(r))return r.map(gd);if(r&&typeof r=="object"){if(g_(r))return Bi(r);const n={};for(const[i,u]of Object.entries(r))n[i]=gd(u);return n}return r}function Bi(r){if(!g_(r))return r;const n=r.attributes?gd(r.attributes):r.attributes;return Object.assign(Object.assign({},r),{attributes:n,__itemTypeId:r.relationships.item_type.data.id})}function Zt(r){if(!y_(r))throw new Error("Invalid body!");let n;Array.isArray(r.data)?n=r.data.map(Bi):n=Bi(r.data);let i;return sx(r)&&(i=r.included.map(Bi)),Object.assign(Object.assign(Object.assign({},r),{data:n}),i?{included:i}:{})}function cx(r){if(typeof r!="object"||r===null||!("data"in r))return!1;const n=r;if(!Array.isArray(n.data))return!1;const i=n;if(i.data.length===0)return!1;const u=i.data[0];return!(typeof u!="object"||u===null||!("id"in u)||!("type"in u)||!("attributes"in u)||u.type!=="api_error")}class fx extends Error{constructor(n){super("API Error!"),Object.setPrototypeOf(this,new.target.prototype),"captureStackTrace"in Error?Error.captureStackTrace(this,Nr):this.stack=new Error().stack,this.request=n.request,this.preCallStack=n.preCallStack,this.message=`${n.request.method} ${n.request.url}: Timeout error`,this.preCallStack&&(this.stack+=`
|
|
15
|
+
Caused By:
|
|
16
|
+
${this.preCallStack}`)}}class Nr extends Error{constructor(n){super("API Error!"),Object.setPrototypeOf(this,new.target.prototype),"captureStackTrace"in Error?Error.captureStackTrace(this,Nr):this.stack=new Error().stack,this.request=n.request,this.response=n.response,this.preCallStack=n.preCallStack;let i=`${n.request.method} ${n.request.url}: ${this.response.status} ${this.response.statusText}`;this.errors.length>0&&(i+=`
|
|
17
|
+
|
|
18
|
+
${JSON.stringify(this.errors,null,2)}`),this.message=i,this.preCallStack&&(this.stack+=`
|
|
19
|
+
Caused By:
|
|
20
|
+
${this.preCallStack}`)}get errors(){return cx(this.response.body)?this.response.body.data:[]}findError(n,i){const u=Array.isArray(n)?n:[n];return this.errors.find(o=>u.includes(o.attributes.code)&&(!i||(typeof i=="function"?i(o.attributes.details):Object.entries(i).every(([c,d])=>o.attributes.details[c]===d))))}}class $i extends Error{constructor(){super("Promise canceled!"),Object.setPrototypeOf(this,new.target.prototype)}}function Fi(r,n){let i=null;const u=new Promise((o,c)=>{i=()=>{try{n&&n(),c(new $i)}catch(p){c(p)}},(typeof r=="function"?r():r).then(o,c)});return i&&(u.cancel=i),u}function Nu(r){return new Promise(n=>{setTimeout(n,r)})}var dx=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(y){try{m(u.next(y))}catch(g){d(g)}}function h(y){try{m(u.throw(y))}catch(g){d(g)}}function m(y){y.done?c(y.value):o(y.value).then(p,h)}m((u=u.apply(r,n||[])).next())})};function hx(r){return dx(this,void 0,void 0,function*(){let n,i=0;do try{i+=1,yield Nu(i*1e3),n=yield r()}catch(u){if(!(u instanceof Nr)||u.response.status!==404)throw u}while(!n);return n})}var Hi={},cr={},Qf={},kg;function b_(){return kg||(kg=1,(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.TaskCollisionStrategy=void 0,(function(n){n[n.DEFAULT=0]="DEFAULT",n[n.KEEP_THIS=1]="KEEP_THIS",n[n.KEEP_OTHER=2]="KEEP_OTHER",n[n.KEEP_BOTH=3]="KEEP_BOTH",n[n.RESOLVE_THIS=4]="RESOLVE_THIS",n[n.RESOLVE_OTHER=5]="RESOLVE_OTHER"})(r.TaskCollisionStrategy||(r.TaskCollisionStrategy={}))})(Qf)),Qf}var Au={},Xg;function __(){if(Xg)return Au;Xg=1,Object.defineProperty(Au,"__esModule",{value:!0});let r=class{constructor(i,u){this._code=i,this._message=u}get code(){return this._code}get message(){return this._message}};return Au.default=r,Au}var zr={},Kg;function S_(){if(Kg)return zr;Kg=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.mutexEquality=zr.mutexBitwiseAnd=void 0;function r(i,u){return(i&u)!==0}zr.mutexBitwiseAnd=r;function n(i,u){return i===u}return zr.mutexEquality=n,zr}var xu={},Qg;function mx(){if(Qg)return xu;Qg=1,Object.defineProperty(xu,"__esModule",{value:!0});let r=class{constructor(i,u){this._meta=void 0,this._task=i,this._scheduler=u}withDescriptor(i){return this._descriptor=i,this}withMutex(i){return this._mutex=i,this}withMeta(i){return this._meta=i,this}runBeforeExecuting(i){return this._onPreExecute=i,this}handleCollisions(i){return this._onTaskCollision=i,this}execute(i){return this._scheduler.enqueue({priority:i,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}};return xu.default=r,xu}var Zg;function px(){if(Zg)return cr;Zg=1;var r=cr&&cr.__awaiter||function(m,y,g,b){function S(T){return T instanceof g?T:new g(function(O){O(T)})}return new(g||(g=Promise))(function(T,O){function M(B){try{F(b.next(B))}catch($){O($)}}function R(B){try{F(b.throw(B))}catch($){O($)}}function F(B){B.done?T(B.value):S(B.value).then(M,R)}F((b=b.apply(m,y||[])).next())})},n=cr&&cr.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(cr,"__esModule",{value:!0});const i=b_(),u=n(__()),o=S_(),c=n(mx());var d;(function(m){m[m.PENDING=0]="PENDING",m[m.EXECUTING=1]="EXECUTING",m[m.TERMINATED=2]="TERMINATED"})(d||(d={}));function p(m,y){for(let g of m.listeners)g.reject(y)}let h=class{constructor(y,g={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=y,this._samePriorityMutex=!!g.samePriorityMutex,this._mutexStrategy=g.mutexStrategy||o.mutexEquality,g.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(y){return new Promise((g,b)=>{typeof y=="function"&&(y={priority:0,execute:y});const S=this._checkMutexes(y,g,b);S.task?this._addTask(S.task):S.canceled&&b(this.createCanceledError())})}prepare(y){return new c.default(y,this)}_addTask(y){this._queue.push(y),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce((y,g)=>g.state===d.EXECUTING?y+1:y,0)}createCanceledError(){return new u.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find(y=>y.state===d.PENDING)}_isIdle(){return this._queue.length===0||!this._queue.find(y=>y.state!==d.TERMINATED)}_removeTaskAt(y){this._queue.splice(y,1)}_executeTask(y){return r(this,void 0,void 0,function*(){try{return y.task.onPreExecute&&y.task.onPreExecute(),yield y.task.execute()}catch(g){throw g}finally{y.state=d.TERMINATED;let g=this._queue.indexOf(y);this._removeTaskAt(g),this._executeNextTasks()}})}_executeNextTasks(){let y=this.executingTasks;if(y>=this._maxConcurrentTasks)return;let g=this._maxConcurrentTasks-y;for(let b=0;b<g;b++){const S=this._findFirstPendingTask();if(!S){this._isIdle()&&this._switchToIdle();return}S.state=d.EXECUTING,this._executeTask(S).then(T=>{for(const{resolve:O}of S.listeners)try{O(T)}catch(M){this._errorLog("An error occurred while resolving listener",M)}}).catch(T=>{for(const{reject:O}of S.listeners)try{O(T)}catch(M){this._errorLog("An error occurred while rejecting listener",M)}})}}_switchToIdle(){this._isExecuting=!1;const y=this._idleListeners;this._idleListeners=[];for(const{resolve:g}of y)try{g()}catch{}}waitForIdle(){return this._isExecuting?new Promise((y,g)=>{this._idleListeners.push({resolve:y,reject:g})}):Promise.resolve()}_applyPriorities(){this._queue.sort((y,g)=>g.task.priority-y.task.priority)}_checkMutexes(y,g,b){for(let S=0;S<this._queue.length;S++){let T=this._queue[S];if(T.state===d.TERMINATED||this._samePriorityMutex&&T.task.priority!=y.priority||!T.task.mutex||!y.mutex||!this._mutexStrategy(T.task.mutex,y.mutex))continue;let O,M;if(T.task.onTaskCollision)if(O=T.task.onTaskCollision(y),O===i.TaskCollisionStrategy.KEEP_OTHER&&T.state!==d.EXECUTING){this._removeTaskAt(S--),p(T,this.createCanceledError());continue}else{if(O===i.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(O===i.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(S--),{canceled:!1,task:{task:y,state:d.PENDING,listeners:[{resolve:g,reject:b},...T.listeners]}};if(O===i.TaskCollisionStrategy.RESOLVE_THIS)return T.listeners=[...T.listeners,{resolve:g,reject:b}],{canceled:!1}}if(y.onTaskCollision){if(M=y.onTaskCollision(T.task),M===i.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(M===i.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(S--),p(T,this.createCanceledError());continue}else{if(M===i.TaskCollisionStrategy.RESOLVE_OTHER)return T.listeners=[...T.listeners,{resolve:g,reject:b}],{canceled:!1};if(M===i.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(S--),{canceled:!1,task:{task:y,state:d.PENDING,listeners:[{resolve:g,reject:b},...T.listeners]}}}}if(!(O===i.TaskCollisionStrategy.KEEP_BOTH&&M===i.TaskCollisionStrategy.KEEP_BOTH))return{canceled:!0}}return{canceled:!1,task:{task:y,state:d.PENDING,listeners:[{resolve:g,reject:b}]}}}};return cr.default=h,cr}var Jg;function vx(){return Jg||(Jg=1,(function(r){var n=Hi&&Hi.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(r,"__esModule",{value:!0}),r.mutexEquality=r.mutexBitwiseAnd=r.SchedulerError=r.TaskCollisionStrategy=r.Scheduler=void 0;const i=n(px());r.Scheduler=i.default;const u=b_();Object.defineProperty(r,"TaskCollisionStrategy",{enumerable:!0,get:function(){return u.TaskCollisionStrategy}});const o=n(__());r.SchedulerError=o.default;const c=S_();Object.defineProperty(r,"mutexBitwiseAnd",{enumerable:!0,get:function(){return c.mutexBitwiseAnd}}),Object.defineProperty(r,"mutexEquality",{enumerable:!0,get:function(){return c.mutexEquality}})})(Hi)),Hi}var yx=vx(),Ur=function(r){return this instanceof Ur?(this.v=r,this):new Ur(r)},gx=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(T,O){c.push([b,S,T,O])>1||p(b,S)})})}function p(b,S){try{h(u[b](S))}catch(T){g(c[0][3],T)}}function h(b){b.value instanceof Ur?Promise.resolve(b.value.v).then(m,y):g(c[0][2],b)}function m(b){p("next",b)}function y(b){p("throw",b)}function g(b,S){b(S),c.shift(),c.length&&p(c[0][0],c[0][1])}};function Nn(r,n,i,u){return gx(this,arguments,function*(){const c=i?.perPage||r.defaultLimit;if(c>r.maxLimit)throw new Error(`perPage option cannot exceed maximum value of ${r.maxLimit}`);const d=i?.concurrency||1;if(d>10)throw new Error("concurrency option cannot exceed maximum value of 10");const p=yield Ur(n({limit:c,offset:0}));for(const g of p.data)yield yield Ur(g);const h=p.meta.total_count,m=new yx.Scheduler(d),y=[];for(let g=c;g<h;g+=c)y.push(m.enqueue(()=>n({limit:c,offset:g})));for(;y.length>0;){const g=yield Ur(y.shift());for(const b of g.data)yield yield Ur(u?Bi(b):b)}})}function jn(r){r&&"page"in r&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}const E_="__ARRAY_INDEX__";function bx(r){return r.reduce((n,i,u)=>u===0?i:i===E_?`${n}[]`:`${n}[${i}]`,"")}function _x(r){if(typeof r=="number"||typeof r=="string")return r.toString();if(r===!0)return"true";if(r===!1)return"false";throw`Don't know how to serialize param value ${JSON.stringify(r)}`}function bd(r,n=[]){const i=[];if(typeof r=="number"||typeof r=="string"||typeof r=="boolean")i.push([bx(n),_x(r)]);else if(typeof r=="object"){if(Array.isArray(r))for(const u of r)for(const o of bd(u,[...n,E_]))i.push(o);else if(r)for(const[u,o]of Object.entries(r))for(const c of bd(o,[...n,u]))i.push(c)}return i}var Sx=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(y){try{m(u.next(y))}catch(g){d(g)}}function h(y){try{m(u.throw(y))}catch(g){d(g)}}function m(y){y.done?c(y.value):o(y.value).then(p,h)}m((u=u.apply(r,n||[])).next())})};const Ex=typeof window<"u"&&typeof window.document<"u",Tx=5;var Qt;(function(r){r[r.NONE=0]="NONE",r[r.BASIC=1]="BASIC",r[r.BODY=2]="BODY",r[r.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"})(Qt||(Qt={}));function Ox(r){const n={};return r.forEach((i,u)=>{n[u]=i}),n}function Wg(r,n,i,u,o,c,d){return{request:{url:n,method:r,headers:i,body:u},response:{status:o.status,statusText:o.statusText,headers:Ox(o.headers),body:c},preCallStack:d}}function wx(r,n,i,u,o){return{request:{url:n,method:r,headers:i,body:u},preCallStack:o}}function Cx(r,n,i,u,o,c,d){return{request:{url:n,method:r,headers:i,body:u},response:{status:o,statusText:"N/A",headers:{},body:c},preCallStack:d}}function Ax(r){return typeof r=="object"&&!!r&&"code"in r}function xx(r){return Object.fromEntries(Object.entries(r).map(([n,i])=>[n.toLowerCase(),i]))}let eb=1;function Mx(r){const n=r||(typeof fetch>"u"?void 0:fetch)||(typeof globalThis>"u"?void 0:globalThis.fetch);if(typeof n>"u")throw new Error("fetch() is not available: either polyfill it globally, or provide it as fetchFn option.");return n}function ju(r){var n;return Sx(this,void 0,void 0,function*(){const i=eb;eb+=1;const u=Mx(r.fetchFn),o=r.preCallStack,c=r.userAgent||"@datocms/rest-client-utils",d=r.retryCount||1,p=r.logLevel||Qt.NONE,h="autoRetry"in r?r.autoRetry:!0,m=r.logFn||(()=>!0),y=Object.assign({"content-type":"application/json",accept:"application/json",authorization:`Bearer ${r.apiToken}`,"user-agent":c},r.extraHeaders?xx(r.extraHeaders):{});Ex&&delete y["user-agent"];const g=r.baseUrl.replace(/\/$/,""),b=r.body?JSON.stringify(r.body,null,2):void 0,S=r.queryParams&&Object.keys(r.queryParams).length>0?`?${new URLSearchParams(bd(r.queryParams)).toString()}`:"",T=`${g}${r.url}${S}`;if(p>=Qt.BASIC){if(m(`[${i}] ${r.method} ${T}`),p>=Qt.BODY_AND_HEADERS)for(const[O,M]of Object.entries(y||{}))m(`[${i}] ${O}: ${M}`);p>=Qt.BODY&&b&&m(`[${i}] ${b}`)}try{const O=Fi(u(T,{method:r.method,headers:y,body:b})),M=setTimeout(()=>{O.cancel()},r.requestTimeout||3e4),R=yield O;clearTimeout(M);const F=R.headers.get("Content-Type"),B=F&&!F.includes("application/json");if(R.status===429||B){if(!h||B&&r.method!=="GET")throw new Nr(Wg(r.method,T,y,r.body,R,void 0,o));const j=R.headers.has("X-RateLimit-Reset")?Number.parseInt(R.headers.get("X-RateLimit-Reset"),10):d;return p>=Qt.BASIC&&(R.status===429?m(`[${i}] Rate limit exceeded, wait ${j} seconds then retry...`):m(`[${i}] Invalid response content type "${F}" (status ${R.status}). Wait ${j} seconds then retry...`)),yield Nu(j*1e3),ju(Object.assign(Object.assign({},r),{retryCount:d+1}))}if(p>=Qt.BASIC&&(m(`[${i}] Status: ${R.status} (${R.statusText})`),p>=Qt.BODY_AND_HEADERS))for(const j of["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"]){const Q=R.headers.get(j);Q&&m(`[${i}] ${j}: ${Q}`)}let $=R.status===204?void 0:yield R.json();if(p>=Qt.BODY&&$&&m(`[${i}] ${JSON.stringify($,null,2)}`),R.status===202){const j=yield r.fetchJobResult($.data.id);if(j.status<200||j.status>=300)throw new Nr(Cx(r.method,T,y,r.body,j.status,j.payload,o));$=j.payload}if(R.status>=200&&R.status<300)return $;const z=new Nr(Wg(r.method,T,y,r.body,R,$,o)),k=(n=z.errors.find(j=>j.attributes.transient))===null||n===void 0?void 0:n.attributes.code;if(h&&k)return p>=Qt.BASIC&&m(`[${i}] ${k}, wait ${d} seconds then retry...`),yield Nu(d*1e3),ju(Object.assign(Object.assign({},r),{retryCount:d+1}));throw z}catch(O){if(O instanceof $i||Ax(O)&&O.code.includes("ETIMEDOUT")){if(h&&d<Tx)return p>=Qt.BASIC&&m(`[${i}] Timeout error, wait ${d} seconds then retry...`),yield Nu(d*1e3),ju(Object.assign(Object.assign({},r),{retryCount:d+1}));throw new fx(wx(r.method,T,y,r.body,o))}throw O}})}var T_=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i};function Hu(r){return typeof r=="object"&&!!r&&"id"in r&&"type"in r}function Zf(r){return Array.isArray(r)&&r.every(Hu)}function J(r,n){if(typeof r!="object"||!r)throw new Error("Invalid body!");if(Array.isArray(r))return{data:r.map(m=>{var y;return(y=J(m,n))===null||y===void 0?void 0:y.data})};const i=r,{id:u,type:o,meta:c}=i,d=T_(i,["id","type","meta"]),p={},h={};if(n.attributes==="*")for(const[m,y]of Object.entries(d))if(n.relationships.includes(m))if(Hu(y)){const{id:g,type:b}=y;h[m]={data:{id:g,type:b}}}else Zf(y)?h[m]={data:y.map(({id:g,type:b})=>({id:g,type:b}))}:h[m]={data:null};else p[m]=y;else if(n.relationships==="*")for(const[m,y]of Object.entries(d))if(n.attributes.includes(m))p[m]=y;else if(Hu(y)){const{id:g,type:b}=y;h[m]={data:{id:g,type:b}}}else Zf(y)?h[m]={data:y.map(({id:g,type:b})=>({id:g,type:b}))}:h[m]={data:null};else{for(const[m,y]of Object.entries(d))if(n.attributes.includes(m))p[m]=y;else if(n.relationships.includes(m))if(Hu(y)){const{id:g,type:b}=y;h[m]={data:{id:g,type:b}}}else Zf(y)?h[m]={data:y.map(({id:g,type:b})=>({id:g,type:b}))}:h[m]={data:null};n.attributes.includes("type")&&(p.type=o)}return{data:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u||n.id?{id:u||n.id}:{}),{type:n.type}),Object.keys(p).length>0?{attributes:p}:{}),Object.keys(h).length>0?{relationships:h}:{}),c?{meta:c}:{})}}function _d(r){if(Array.isArray(r))return r.map(_d);if(r&&typeof r=="object"){const n={};for(const[i,u]of Object.entries(r))i!=="__itemTypeId"&&(n[i]=_d(u));return n}return r}function tb(r){if(!r||typeof r!="object")return r;const{__itemTypeId:n}=r,i=T_(r,["__itemTypeId"]),u={};for(const[o,c]of Object.entries(i))u[o]=_d(c);return u}function Mu(r){return!r||!("data"in r)?r:Array.isArray(r.data)?Object.assign(Object.assign({},r),{data:r.data.map(tb)}):Object.assign(Object.assign({},r),{data:tb(r.data)})}function H(r){return typeof r=="string"?r:r.id}class de{constructor(n){this.client=n}}class O_ extends de{create(n){return this.rawCreate(J(n,{type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_search_indexes","can_manage_upload_collections","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","can_access_search_index_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions","positive_search_index_permissions","negative_search_index_permissions"],relationships:["inherits_permissions_from"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/roles",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_search_indexes","can_manage_upload_collections","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","can_access_search_index_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions","positive_search_index_permissions","negative_search_index_permissions"],relationships:["inherits_permissions_from"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/roles/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/roles"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/roles/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/roles/${n}`})}duplicate(n){return this.rawDuplicate(H(n)).then(i=>A(i))}rawDuplicate(n){return this.client.request({method:"POST",url:`/roles/${n}/duplicate`})}}O_.TYPE="role";var Rx=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(y){try{m(u.next(y))}catch(g){d(g)}}function h(y){try{m(u.throw(y))}catch(g){d(g)}}function m(y){y.done?c(y.value):o(y.value).then(p,h)}m((u=u.apply(r,n||[])).next())})};function nb(r,n){return r==null&&n==null?!0:r===n}function Dx(r,n){for(const i in r)if(!nb(r[i],n[i]))return!1;for(const i in n)if(!nb(r[i],n[i]))return!1;return!0}function Ru(r,n,i,u){if(!n)return r;const{add:o,remove:c}=n;return[...c?c.reduce((d,p)=>{const h=Object.assign(Object.assign({},p),{environment:i}),m=d.find(y=>Dx(y,h));if(!m)throw new Error(`Cannot find rule ${JSON.stringify(h)} to remove in ${u}!`);return d.filter(y=>y!==m)},r):r,...o?o.map(d=>Object.assign({environment:i},d)):[]]}class qx extends O_{updateCurrentEnvironmentPermissions(n,i){return Rx(this,void 0,void 0,function*(){const u=this.client.config.environment||(yield this.client.environments.list()).find(h=>h.meta.primary).id,o=yield this.find(n),c=!!(i.positive_item_type_permissions||i.negative_item_type_permissions),d=!!(i.positive_upload_permissions||i.negative_upload_permissions),p=Object.assign(Object.assign({},c?{positive_item_type_permissions:Ru(o.positive_item_type_permissions,i.positive_item_type_permissions,u,"positive_item_type_permissions"),negative_item_type_permissions:Ru(o.negative_item_type_permissions,i.negative_item_type_permissions,u,"negative_item_type_permissions")}:{}),d?{positive_upload_permissions:Ru(o.positive_upload_permissions,i.positive_upload_permissions,u,"positive_upload_permissions"),negative_upload_permissions:Ru(o.negative_upload_permissions,i.negative_upload_permissions,u,"negative_upload_permissions")}:{});return this.update(n,p)})}}class w_ extends de{update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"user",attributes:["is_active"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/users/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/users"})}find(n,i){return this.rawFind(H(n),i).then(u=>A(u))}rawFind(n,i){return this.client.request({method:"GET",url:`/users/${n}`,queryParams:i})}findMe(n){return this.rawFindMe(n).then(i=>A(i))}rawFindMe(n){return this.client.request({method:"GET",url:"/users/me",queryParams:n})}destroy(n,i){return this.rawDestroy(H(n),i).then(u=>A(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/users/${n}`,queryParams:i})}}w_.TYPE="user";class C_ extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/sso-users"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/sso-users/${n}`})}copyUsers(){return this.rawCopyUsers().then(n=>A(n))}rawCopyUsers(){return this.client.request({method:"POST",url:"/sso-users/copy-users"})}destroy(n,i){return this.rawDestroy(H(n),i).then(u=>A(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/sso-users/${n}`,queryParams:i})}}C_.TYPE="sso_user";class A_ extends de{query(n){return this.rawQuery(J(n,{type:"audit_log_query",attributes:["since","before","filter","next_token","detailed_log"],relationships:[]})).then(i=>A(i))}rawQuery(n){return this.client.request({method:"POST",url:"/audit-log-events/query",body:n})}}A_.TYPE="audit_log_event";class x_ extends de{create(n){return this.rawCreate(J(n,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/menu-items",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/menu-items/${n}`,body:i})}list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/menu-items",queryParams:n})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/menu-items/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/menu-items/${n}`})}reorder(n){return this.rawReorder(J(n,{type:"menu_item",attributes:["position"],relationships:["parent"]})).then(i=>A(i))}rawReorder(n){return this.client.request({method:"POST",url:"/menu-items/reorder",body:n})}}x_.TYPE="menu_item";class M_ extends de{create(n){return this.rawCreate(J(n,{type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/schema-menu-items",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent","children"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/schema-menu-items/${n}`,body:i})}list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/schema-menu-items",queryParams:n})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/schema-menu-items/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/schema-menu-items/${n}`})}reorder(n){return this.rawReorder(J(n,{type:"schema_menu_item",attributes:["position"],relationships:["parent"]})).then(i=>A(i))}rawReorder(n){return this.client.request({method:"POST",url:"/schema-menu-items/reorder",body:n})}}M_.TYPE="schema_menu_item";class R_ extends de{create(n){return this.rawCreate(J(n,{type:"upload_collection",attributes:["label","position"],relationships:["parent"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-collections",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"upload_collection",attributes:["label","position"],relationships:["parent","children"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/upload-collections/${n}`,body:i})}list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/upload-collections",queryParams:n})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/upload-collections/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/upload-collections/${n}`})}reorder(n){return this.rawReorder(J(n,{type:"upload_collection",attributes:["position"],relationships:["parent"]})).then(i=>A(i))}rawReorder(n){return this.client.request({method:"POST",url:"/upload-collections/reorder",body:n})}}R_.TYPE="upload_collection";class D_ extends de{create(n,i){return this.rawCreate(J(n,{type:"item_type",attributes:["name","api_key","singleton","all_locales_required","sortable","modular_block","draft_mode_active","draft_saving_active","tree","ordering_direction","ordering_meta","collection_appeareance","collection_appearance","hint","inverse_relationships_enabled"],relationships:["ordering_field","presentation_title_field","presentation_image_field","title_field","image_preview_field","excerpt_field","workflow"]}),i).then(u=>A(u))}rawCreate(n,i){return this.client.request({method:"POST",url:"/item-types",body:n,queryParams:i})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"item_type",attributes:["name","api_key","collection_appeareance","collection_appearance","singleton","all_locales_required","sortable","modular_block","draft_mode_active","draft_saving_active","tree","ordering_direction","ordering_meta","has_singleton_item","hint","inverse_relationships_enabled"],relationships:["ordering_field","presentation_title_field","presentation_image_field","title_field","image_preview_field","excerpt_field","workflow"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/item-types/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/item-types"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/item-types/${n}`})}duplicate(n){return this.rawDuplicate(H(n)).then(i=>A(i))}rawDuplicate(n){return this.client.request({method:"POST",url:`/item-types/${n}/duplicate`})}destroy(n,i){return this.rawDestroy(H(n),i).then(u=>A(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/item-types/${n}`,queryParams:i})}referencing(n){return this.rawReferencing(H(n)).then(i=>A(i))}rawReferencing(n){return this.client.request({method:"GET",url:`/item-types/${n}/referencing`})}rawReorderFieldsAndFieldsets(n,i){return this.client.request({method:"POST",url:`/item-types/${n}/reorder-fields-and-fieldsets`,body:i})}}D_.TYPE="item_type";class q_ extends de{create(n,i){return this.rawCreate(H(n),J(i,{type:"field",attributes:["label","field_type","api_key","localized","validators","appeareance","appearance","position","hint","default_value","deep_filtering_enabled"],relationships:["fieldset"]})).then(u=>A(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/item-types/${n}/fields`,body:i})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"field",attributes:["default_value","label","api_key","localized","validators","appeareance","appearance","position","field_type","hint","deep_filtering_enabled"],relationships:["fieldset"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/fields/${n}`,body:i})}list(n){return this.rawList(H(n)).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields`})}referencing(n){return this.rawReferencing(H(n)).then(i=>A(i))}rawReferencing(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields/referencing`})}related(n){return this.rawRelated(H(n)).then(i=>A(i))}rawRelated(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields/related`})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/fields/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/fields/${n}`})}duplicate(n){return this.rawDuplicate(H(n)).then(i=>A(i))}rawDuplicate(n){return this.client.request({method:"POST",url:`/fields/${n}/duplicate`})}}q_.TYPE="field";class L_ extends de{create(n,i){return this.rawCreate(H(n),J(i,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(u=>A(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/item-types/${n}/fieldsets`,body:i})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/fieldsets/${n}`,body:i})}list(n){return this.rawList(H(n)).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:`/item-types/${n}/fieldsets`})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/fieldsets/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/fieldsets/${n}`})}}L_.TYPE="fieldset";class z_ extends de{create(n){return this.rawCreate(J(n,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/sessions",body:n})}destroy(){return this.rawDestroy()}rawDestroy(){return this.client.request({method:"DELETE",url:"/session"})}}z_.TYPE="session";class U_ extends de{create(n){return this.rawCreate(J(n,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/access_tokens",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/access_tokens/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/access_tokens"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/access_tokens/${n}`})}regenerateToken(n){return this.rawRegenerateToken(H(n)).then(i=>A(i))}rawRegenerateToken(n){return this.client.request({method:"POST",url:`/access_tokens/${n}/regenerate_token`})}destroy(n,i){return this.rawDestroy(H(n),i).then(u=>A(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/access_tokens/${n}`,queryParams:i})}}U_.TYPE="access_token";class N_ extends de{create(n){return this.rawCreate(J(n,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/plugins",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/plugins/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/plugins"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/plugins/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/plugins/${n}`})}fields(n){return this.rawFields(H(n)).then(i=>A(i))}rawFields(n){return this.client.request({method:"GET",url:`/plugins/${n}/fields`})}}N_.TYPE="plugin";class j_ extends de{find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/job-results/${n}`})}}j_.TYPE="job_result";class H_ extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/subscription-limits"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/subscription-limits/${n}`})}}H_.TYPE="subscription_limit";class V_ extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/subscription-features"})}}V_.TYPE="subscription_feature";var Lx=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(p,h){d=r[c](d),o(p,h,d.done,d.value)})}}function o(c,d,p,h){Promise.resolve(h).then(function(m){c({value:m,done:p})},d)}},xa=function(r){return this instanceof xa?(this.v=r,this):new xa(r)},zx=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(T,O){c.push([b,S,T,O])>1||p(b,S)})})}function p(b,S){try{h(u[b](S))}catch(T){g(c[0][3],T)}}function h(b){b.value instanceof xa?Promise.resolve(b.value.v).then(m,y):g(c[0][2],b)}function m(b){p("next",b)}function y(b){p("throw",b)}function g(b,S){b(S),c.shift(),c.length&&p(c[0][0],c[0][1])}};class G_ extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/build-events",queryParams:n})}listPagedIterator(n,i){return zx(this,arguments,function*(){var o,c,d,p;try{for(var h=!0,m=Lx(this.rawListPagedIterator(n,i)),y;y=yield xa(m.next()),o=y.done,!o;){p=y.value,h=!1;try{yield yield xa(nn(p))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=m.return)&&(yield xa(d.call(m)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/build-events/${n}`})}}G_.TYPE="build_event";var Ux=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(p,h){d=r[c](d),o(p,h,d.done,d.value)})}}function o(c,d,p,h){Promise.resolve(h).then(function(m){c({value:m,done:p})},d)}},Ma=function(r){return this instanceof Ma?(this.v=r,this):new Ma(r)},Nx=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(T,O){c.push([b,S,T,O])>1||p(b,S)})})}function p(b,S){try{h(u[b](S))}catch(T){g(c[0][3],T)}}function h(b){b.value instanceof Ma?Promise.resolve(b.value.v).then(m,y):g(c[0][2],b)}function m(b){p("next",b)}function y(b){p("throw",b)}function g(b,S){b(S),c.shift(),c.length&&p(c[0][0],c[0][1])}};class B_ extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/search-index-events",queryParams:n})}listPagedIterator(n,i){return Nx(this,arguments,function*(){var o,c,d,p;try{for(var h=!0,m=Ux(this.rawListPagedIterator(n,i)),y;y=yield Ma(m.next()),o=y.done,!o;){p=y.value,h=!1;try{yield yield Ma(nn(p))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=m.return)&&(yield Ma(d.call(m)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/search-index-events/${n}`})}}B_.TYPE="search_index_event";var jx=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(p,h){d=r[c](d),o(p,h,d.done,d.value)})}}function o(c,d,p,h){Promise.resolve(h).then(function(m){c({value:m,done:p})},d)}},Ra=function(r){return this instanceof Ra?(this.v=r,this):new Ra(r)},Hx=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(T,O){c.push([b,S,T,O])>1||p(b,S)})})}function p(b,S){try{h(u[b](S))}catch(T){g(c[0][3],T)}}function h(b){b.value instanceof Ra?Promise.resolve(b.value.v).then(m,y):g(c[0][2],b)}function m(b){p("next",b)}function y(b){p("throw",b)}function g(b,S){b(S),c.shift(),c.length&&p(c[0][0],c[0][1])}};class I_ extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/items",queryParams:n}).then(Zt)}listPagedIterator(n,i){return Hx(this,arguments,function*(){var o,c,d,p;try{for(var h=!0,m=jx(this.rawListPagedIterator(n,i)),y;y=yield Ra(m.next()),o=y.done,!o;){p=y.value,h=!1;try{yield yield Ra(nn(p))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=m.return)&&(yield Ra(d.call(m)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i,!0)}validateExisting(n,i){return this.rawValidateExisting(H(n),J(i,{id:H(n),type:"item",attributes:"*",relationships:["item_type","creator"]}))}rawValidateExisting(n,i){return this.client.request({method:"POST",url:`/items/${n}/validate`,body:Mu(i)})}validateNew(n){return this.rawValidateNew(J(n,{type:"item",attributes:"*",relationships:["item_type","creator"]}))}rawValidateNew(n){return this.client.request({method:"POST",url:"/items/validate",body:Mu(n)})}create(n){return this.rawCreate(J(n,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/items",body:Mu(n)}).then(Zt)}duplicate(n){return this.rawDuplicate(H(n)).then(i=>A(i))}rawDuplicate(n){return this.client.request({method:"POST",url:`/items/${n}/duplicate`}).then(Zt)}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"item",attributes:"*",relationships:["item_type","creator"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/items/${n}`,body:Mu(i)}).then(Zt)}references(n,i){return this.rawReferences(H(n),i).then(u=>A(u))}rawReferences(n,i){return this.client.request({method:"GET",url:`/items/${n}/references`,queryParams:i}).then(Zt)}find(n,i){return this.rawFind(H(n),i).then(u=>A(u))}rawFind(n,i){return this.client.request({method:"GET",url:`/items/${n}`,queryParams:i}).then(Zt)}currentVsPublishedState(n){return this.rawCurrentVsPublishedState(H(n)).then(i=>A(i))}rawCurrentVsPublishedState(n){return this.client.request({method:"GET",url:`/items/${n}/current-vs-published-state`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}`}).then(Zt)}publish(n,i,u){return this.rawPublish(H(n),i?J(i,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,u).then(o=>A(o))}rawPublish(n,i,u){return this.client.request({method:"PUT",url:`/items/${n}/publish`,body:i,queryParams:u}).then(Zt)}unpublish(n,i,u){return this.rawUnpublish(H(n),i?J(i,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,u).then(o=>A(o))}rawUnpublish(n,i,u){return this.client.request({method:"PUT",url:`/items/${n}/unpublish`,body:i,queryParams:u}).then(Zt)}bulkPublish(n){return this.rawBulkPublish(J(n,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then(i=>A(i))}rawBulkPublish(n){return this.client.request({method:"POST",url:"/items/bulk/publish",body:n})}bulkUnpublish(n){return this.rawBulkUnpublish(J(n,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then(i=>A(i))}rawBulkUnpublish(n){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:n})}bulkDestroy(n){return this.rawBulkDestroy(J(n,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then(i=>A(i))}rawBulkDestroy(n){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:n})}bulkMoveToStage(n){return this.rawBulkMoveToStage(J(n,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then(i=>A(i))}rawBulkMoveToStage(n){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:n})}}I_.TYPE="item";var Vx=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(p,h){d=r[c](d),o(p,h,d.done,d.value)})}}function o(c,d,p,h){Promise.resolve(h).then(function(m){c({value:m,done:p})},d)}},Da=function(r){return this instanceof Da?(this.v=r,this):new Da(r)},Gx=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(T,O){c.push([b,S,T,O])>1||p(b,S)})})}function p(b,S){try{h(u[b](S))}catch(T){g(c[0][3],T)}}function h(b){b.value instanceof Da?Promise.resolve(b.value.v).then(m,y):g(c[0][2],b)}function m(b){p("next",b)}function y(b){p("throw",b)}function g(b,S){b(S),c.shift(),c.length&&p(c[0][0],c[0][1])}};class P_ extends de{restore(n){return this.rawRestore(H(n)).then(i=>A(i))}rawRestore(n){return this.client.request({method:"POST",url:`/versions/${n}/restore`})}list(n,i){return this.rawList(H(n),i).then(u=>A(u))}rawList(n,i){return this.client.request({method:"GET",url:`/items/${n}/versions`,queryParams:i})}listPagedIterator(n,i,u){return Gx(this,arguments,function*(){var c,d,p,h;try{for(var m=!0,y=Vx(this.rawListPagedIterator(H(n),i,u)),g;g=yield Da(y.next()),c=g.done,!c;){h=g.value,m=!1;try{yield yield Da(nn(h))}finally{m=!0}}}catch(b){d={error:b}}finally{try{!m&&!c&&(p=y.return)&&(yield Da(p.call(y)))}finally{if(d)throw d.error}}})}rawListPagedIterator(n,i,u){return jn(i),Nn({defaultLimit:15,maxLimit:50},o=>this.rawList(n,Object.assign(Object.assign({},i),{page:o})),u)}find(n,i){return this.rawFind(H(n),i).then(u=>A(u))}rawFind(n,i){return this.client.request({method:"GET",url:`/versions/${n}`,queryParams:i})}}P_.TYPE="item_version";var Bx=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(p,h){d=r[c](d),o(p,h,d.done,d.value)})}}function o(c,d,p,h){Promise.resolve(h).then(function(m){c({value:m,done:p})},d)}},qa=function(r){return this instanceof qa?(this.v=r,this):new qa(r)},Ix=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(T,O){c.push([b,S,T,O])>1||p(b,S)})})}function p(b,S){try{h(u[b](S))}catch(T){g(c[0][3],T)}}function h(b){b.value instanceof qa?Promise.resolve(b.value.v).then(m,y):g(c[0][2],b)}function m(b){p("next",b)}function y(b){p("throw",b)}function g(b,S){b(S),c.shift(),c.length&&p(c[0][0],c[0][1])}};let Y_=class extends de{create(n){return this.rawCreate(J(n,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:["upload_collection"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/uploads",body:n})}list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/uploads",queryParams:n})}listPagedIterator(n,i){return Ix(this,arguments,function*(){var o,c,d,p;try{for(var h=!0,m=Bx(this.rawListPagedIterator(n,i)),y;y=yield qa(m.next()),o=y.done,!o;){p=y.value,h=!1;try{yield yield qa(nn(p))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=m.return)&&(yield qa(d.call(m)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/uploads/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/uploads/${n}`})}update(n,i,u){return this.rawUpdate(H(n),J(i,{id:H(n),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator","upload_collection"]}),u).then(o=>A(o))}rawUpdate(n,i,u){return this.client.request({method:"PUT",url:`/uploads/${n}`,body:i,queryParams:u})}references(n,i){return this.rawReferences(H(n),i).then(u=>A(u))}rawReferences(n,i){return this.client.request({method:"GET",url:`/uploads/${n}/references`,queryParams:i}).then(Zt)}bulkTag(n){return this.rawBulkTag(J(n,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then(i=>A(i))}rawBulkTag(n){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:n})}bulkSetUploadCollection(n){return this.rawBulkSetUploadCollection(J(n,{type:"upload_bulk_set_upload_collection_operation",attributes:[],relationships:["upload_collection","uploads"]})).then(i=>A(i))}rawBulkSetUploadCollection(n){return this.client.request({method:"POST",url:"/uploads/bulk/set-upload-collection",body:n})}bulkDestroy(n){return this.rawBulkDestroy(J(n,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then(i=>A(i))}rawBulkDestroy(n){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:n})}};Y_.TYPE="upload";class $_ extends Y_{}class F_ extends de{create(n){return this.rawCreate(J(n,{type:"upload_request",attributes:["filename"],relationships:["upload_collection"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-requests",body:n})}}F_.TYPE="upload_request";class k_ extends de{create(n,i){return this.rawCreate(H(n),J(i,{type:"upload_track",attributes:["url_or_upload_request_id","type","name","language_code","closed_captions"],relationships:[]})).then(u=>A(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/uploads/${n}/tracks`,body:i})}list(n){return this.rawList(H(n)).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:`/uploads/${n}/tracks`})}destroy(n,i){return this.rawDestroy(H(n),H(i)).then(u=>A(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/uploads/${n}/tracks/${i}`})}generateSubtitles(n,i){return this.rawGenerateSubtitles(H(n),J(i,{type:"upload_track",attributes:["name","language_code"],relationships:[]})).then(u=>A(u))}rawGenerateSubtitles(n,i){return this.client.request({method:"POST",url:`/uploads/${n}/tracks/generate-subtitles`,body:i})}}k_.TYPE="upload_track";class X_ extends de{create(n,i){return this.rawCreate(H(n),J(i,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then(u=>A(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/items/${n}/scheduled-publication`,body:i})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}/scheduled-publication`}).then(Zt)}}X_.TYPE="scheduled_publication";class K_ extends de{create(n,i){return this.rawCreate(H(n),J(i,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then(u=>A(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/items/${n}/scheduled-unpublishing`,body:i})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}/scheduled-unpublishing`}).then(Zt)}}K_.TYPE="scheduled_unpublishing";var Px=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(p,h){d=r[c](d),o(p,h,d.done,d.value)})}}function o(c,d,p,h){Promise.resolve(h).then(function(m){c({value:m,done:p})},d)}},La=function(r){return this instanceof La?(this.v=r,this):new La(r)},Yx=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(T,O){c.push([b,S,T,O])>1||p(b,S)})})}function p(b,S){try{h(u[b](S))}catch(T){g(c[0][3],T)}}function h(b){b.value instanceof La?Promise.resolve(b.value.v).then(m,y):g(c[0][2],b)}function m(b){p("next",b)}function y(b){p("throw",b)}function g(b,S){b(S),c.shift(),c.length&&p(c[0][0],c[0][1])}};class Q_ extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/search-results",queryParams:n})}listPagedIterator(n,i){return Yx(this,arguments,function*(){var o,c,d,p;try{for(var h=!0,m=Px(this.rawListPagedIterator(n,i)),y;y=yield La(m.next()),o=y.done,!o;){p=y.value,h=!1;try{yield yield La(nn(p))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=m.return)&&(yield La(d.call(m)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:20,maxLimit:100},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}}Q_.TYPE="search_result";class Z_ extends de{fork(n,i,u){return this.rawFork(H(n),J(i,{id:H(n),type:"environment",attributes:[],relationships:[]}),u).then(o=>A(o))}rawFork(n,i,u){return this.client.request({method:"POST",url:`/environments/${n}/fork`,body:i,queryParams:u})}promote(n){return this.rawPromote(H(n)).then(i=>A(i))}rawPromote(n){return this.client.request({method:"PUT",url:`/environments/${n}/promote`})}rename(n,i){return this.rawRename(H(n),J(i,{id:H(n),type:"environment",attributes:[],relationships:[]})).then(u=>A(u))}rawRename(n,i){return this.client.request({method:"PUT",url:`/environments/${n}/rename`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/environments"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/environments/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/environments/${n}`})}}Z_.TYPE="environment";class J_ extends de{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/maintenance-mode"})}activate(n){return this.rawActivate(n).then(i=>A(i))}rawActivate(n){return this.client.request({method:"PUT",url:"/maintenance-mode/activate",queryParams:n})}deactivate(){return this.rawDeactivate().then(n=>A(n))}rawDeactivate(){return this.client.request({method:"PUT",url:"/maintenance-mode/deactivate"})}}J_.TYPE="maintenance_mode";class W_ extends de{create(n){return this.rawCreate(J(n,{type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload","auto_retry"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/webhooks",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload","auto_retry"],relationships:[]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/webhooks/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/webhooks"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/webhooks/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/webhooks/${n}`})}}W_.TYPE="webhook";var $x=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(p,h){d=r[c](d),o(p,h,d.done,d.value)})}}function o(c,d,p,h){Promise.resolve(h).then(function(m){c({value:m,done:p})},d)}},za=function(r){return this instanceof za?(this.v=r,this):new za(r)},Fx=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(T,O){c.push([b,S,T,O])>1||p(b,S)})})}function p(b,S){try{h(u[b](S))}catch(T){g(c[0][3],T)}}function h(b){b.value instanceof za?Promise.resolve(b.value.v).then(m,y):g(c[0][2],b)}function m(b){p("next",b)}function y(b){p("throw",b)}function g(b,S){b(S),c.shift(),c.length&&p(c[0][0],c[0][1])}};class e0 extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:n})}listPagedIterator(n,i){return Fx(this,arguments,function*(){var o,c,d,p;try{for(var h=!0,m=$x(this.rawListPagedIterator(n,i)),y;y=yield za(m.next()),o=y.done,!o;){p=y.value,h=!1;try{yield yield za(nn(p))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=m.return)&&(yield za(d.call(m)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/webhook_calls/${n}`})}resendWebhook(n){return this.rawResendWebhook(H(n))}rawResendWebhook(n){return this.client.request({method:"POST",url:`/webhook_calls/${n}/resend_webhook`})}}e0.TYPE="webhook_call";class t0 extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/build-triggers"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/build-triggers/${n}`})}create(n){return this.rawCreate(J(n,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/build-triggers",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"build_trigger",attributes:["name","adapter","indexing_enabled","enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/build-triggers/${n}`,body:i})}trigger(n){return this.rawTrigger(H(n))}rawTrigger(n){return this.client.request({method:"POST",url:`/build-triggers/${n}/trigger`})}abort(n){return this.rawAbort(H(n))}rawAbort(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}/abort`})}abortIndexing(n){return this.rawAbortIndexing(H(n))}rawAbortIndexing(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}/abort_indexing`})}reindex(n){return this.rawReindex(H(n))}rawReindex(n){return this.client.request({method:"PUT",url:`/build-triggers/${n}/reindex`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}`})}}t0.TYPE="build_trigger";class n0 extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/search-indexes"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/search-indexes/${n}`})}create(n){return this.rawCreate(J(n,{type:"search_index",attributes:["name","enabled","frontend_url","user_agent_suffix"],relationships:["build_triggers"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/search-indexes",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"search_index",attributes:["name","enabled","frontend_url","user_agent_suffix"],relationships:["build_triggers"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/search-indexes/${n}`,body:i})}trigger(n){return this.rawTrigger(H(n))}rawTrigger(n){return this.client.request({method:"POST",url:`/search-indexes/${n}/trigger`})}abort(n){return this.rawAbort(H(n))}rawAbort(n){return this.client.request({method:"DELETE",url:`/search-indexes/${n}/abort`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/search-indexes/${n}`})}}n0.TYPE="search_index";class r0 extends de{create(n){return this.rawCreate(J(n,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/item-type-filters",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/item-type-filters/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/item-type-filters"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/item-type-filters/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/item-type-filters/${n}`})}}r0.TYPE="item_type_filter";class a0 extends de{create(n){return this.rawCreate(J(n,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-filters",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/upload-filters/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/upload-filters"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/upload-filters/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/upload-filters/${n}`})}}a0.TYPE="upload_filter";class i0 extends de{create(n){return this.rawCreate(J(n,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/site-invitations",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"site_invitation",attributes:[],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/site-invitations/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/site-invitations"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/site-invitations/${n}`})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/site-invitations/${n}`})}resend(n){return this.rawResend(H(n)).then(i=>A(i))}rawResend(n){return this.client.request({method:"POST",url:`/site-invitations/${n}/resend`})}}i0.TYPE="site_invitation";class l0 extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/editing-sessions"})}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/editing-sessions/${n}`,body:i})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/editing-sessions/${n}`})}}l0.TYPE="editing_session";class u0 extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/sso-groups"})}copyRoles(n){return this.rawCopyRoles(H(n)).then(i=>A(i))}rawCopyRoles(n){return this.client.request({method:"POST",url:`/sso-groups/${n}/copy-roles`})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"sso_group",attributes:["priority"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/sso-groups/${n}`,body:i})}destroy(n){return this.rawDestroy(H(n)).then(i=>A(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/sso-groups/${n}`})}}u0.TYPE="sso_group";class o0 extends de{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/sso-settings"})}generateToken(){return this.rawGenerateToken().then(n=>A(n))}rawGenerateToken(){return this.client.request({method:"PUT",url:"/sso-settings/generate-token"})}update(n){return this.rawUpdate(J(n,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then(i=>A(i))}rawUpdate(n){return this.client.request({method:"PUT",url:"/sso-settings",body:n})}}o0.TYPE="sso_settings";class s0 extends de{find(n){return this.rawFind(n).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:"/emoji-suggestions",queryParams:n})}}s0.TYPE="emoji_suggestions";class c0 extends de{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/white-label-settings"})}update(n){return this.rawUpdate(J(n,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then(i=>A(i))}rawUpdate(n){return this.client.request({method:"PUT",url:"/white-label-settings",body:n})}}c0.TYPE="white_label_settings";class f0 extends de{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/public-info"})}}f0.TYPE="public_info";class d0 extends de{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/daily-site-usages"})}}d0.TYPE="daily_usage";class h0 extends de{find(n,i){return this.rawFind(H(n),i).then(u=>A(u))}rawFind(n,i){return this.client.request({method:"GET",url:`/usage-log-counters/${n}`,queryParams:i})}}h0.TYPE="usage_counter";var kx=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(p,h){d=r[c](d),o(p,h,d.done,d.value)})}}function o(c,d,p,h){Promise.resolve(h).then(function(m){c({value:m,done:p})},d)}},Ua=function(r){return this instanceof Ua?(this.v=r,this):new Ua(r)},Xx=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(T,O){c.push([b,S,T,O])>1||p(b,S)})})}function p(b,S){try{h(u[b](S))}catch(T){g(c[0][3],T)}}function h(b){b.value instanceof Ua?Promise.resolve(b.value.v).then(m,y):g(c[0][2],b)}function m(b){p("next",b)}function y(b){p("throw",b)}function g(b,S){b(S),c.shift(),c.length&&p(c[0][0],c[0][1])}};class m0 extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/upload-tags",queryParams:n})}listPagedIterator(n,i){return Xx(this,arguments,function*(){var o,c,d,p;try{for(var h=!0,m=kx(this.rawListPagedIterator(n,i)),y;y=yield Ua(m.next()),o=y.done,!o;){p=y.value,h=!1;try{yield yield Ua(nn(p))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=m.return)&&(yield Ua(d.call(m)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:50,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}create(n){return this.rawCreate(J(n,{type:"upload_tag",attributes:["name"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-tags",body:n})}}m0.TYPE="upload_tag";var Kx=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=r[c]&&function(d){return new Promise(function(p,h){d=r[c](d),o(p,h,d.done,d.value)})}}function o(c,d,p,h){Promise.resolve(h).then(function(m){c({value:m,done:p})},d)}},Na=function(r){return this instanceof Na?(this.v=r,this):new Na(r)},Qx=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(r,n||[]),o,c=[];return o={},d("next"),d("throw"),d("return"),o[Symbol.asyncIterator]=function(){return this},o;function d(b){u[b]&&(o[b]=function(S){return new Promise(function(T,O){c.push([b,S,T,O])>1||p(b,S)})})}function p(b,S){try{h(u[b](S))}catch(T){g(c[0][3],T)}}function h(b){b.value instanceof Na?Promise.resolve(b.value.v).then(m,y):g(c[0][2],b)}function m(b){p("next",b)}function y(b){p("throw",b)}function g(b,S){b(S),c.shift(),c.length&&p(c[0][0],c[0][1])}};class p0 extends de{list(n){return this.rawList(n).then(i=>A(i))}rawList(n){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:n})}listPagedIterator(n,i){return Qx(this,arguments,function*(){var o,c,d,p;try{for(var h=!0,m=Kx(this.rawListPagedIterator(n,i)),y;y=yield Na(m.next()),o=y.done,!o;){p=y.value,h=!1;try{yield yield Na(nn(p))}finally{h=!0}}}catch(g){c={error:g}}finally{try{!h&&!o&&(d=m.return)&&(yield Na(d.call(m)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return jn(n),Nn({defaultLimit:50,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}}p0.TYPE="upload_smart_tag";class v0 extends de{find(n){return this.rawFind(n).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:"/site",queryParams:n})}update(n){return this.rawUpdate(J(n,{type:"site",attributes:["no_index","favicon","global_seo","name","theme","locales","timezone","require_2fa","ip_tracking_enabled","force_use_of_sandbox_environments"],relationships:["sso_default_role"]})).then(i=>A(i))}rawUpdate(n){return this.client.request({method:"PUT",url:"/site",body:n})}activateImprovedTimezoneManagement(){return this.rawActivateImprovedTimezoneManagement().then(n=>A(n))}rawActivateImprovedTimezoneManagement(){return this.client.request({method:"PUT",url:"/site/activate-improved-timezone-management"})}activateImprovedHexManagement(){return this.rawActivateImprovedHexManagement().then(n=>A(n))}rawActivateImprovedHexManagement(){return this.client.request({method:"PUT",url:"/site/activate-improved-hex-management"})}activateImprovedGqlMultilocaleFields(){return this.rawActivateImprovedGqlMultilocaleFields().then(n=>A(n))}rawActivateImprovedGqlMultilocaleFields(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-multilocale-fields"})}activateImprovedGqlVisibilityControl(){return this.rawActivateImprovedGqlVisibilityControl().then(n=>A(n))}rawActivateImprovedGqlVisibilityControl(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-visibility-control"})}activateImprovedBooleanFields(){return this.rawActivateImprovedBooleanFields().then(n=>A(n))}rawActivateImprovedBooleanFields(){return this.client.request({method:"PUT",url:"/site/activate-improved-boolean-fields"})}activateDraftModeAsDefault(){return this.rawActivateDraftModeAsDefault().then(n=>A(n))}rawActivateDraftModeAsDefault(){return this.client.request({method:"PUT",url:"/site/activate-draft-mode-as-default"})}activateImprovedValidationAtPublishing(){return this.rawActivateImprovedValidationAtPublishing().then(n=>A(n))}rawActivateImprovedValidationAtPublishing(){return this.client.request({method:"PUT",url:"/site/activate-improved-validation-at-publishing"})}activateImprovedExposureOfInlineBlocksInCda(){return this.rawActivateImprovedExposureOfInlineBlocksInCda().then(n=>A(n))}rawActivateImprovedExposureOfInlineBlocksInCda(){return this.client.request({method:"PUT",url:"/site/activate-improved-exposure-of-inline-blocks-in-cda"})}activateImprovedItemsListing(){return this.rawActivateImprovedItemsListing().then(n=>A(n))}rawActivateImprovedItemsListing(){return this.client.request({method:"PUT",url:"/site/activate-improved-items-listing"})}activateMillisecondsInDatetime(){return this.rawActivateMillisecondsInDatetime().then(n=>A(n))}rawActivateMillisecondsInDatetime(){return this.client.request({method:"PUT",url:"/site/activate-milliseconds-in-datetime"})}activateNonLocalizedFocalPoints(){return this.rawActivateNonLocalizedFocalPoints().then(n=>A(n))}rawActivateNonLocalizedFocalPoints(){return this.client.request({method:"PUT",url:"/site/activate-non-localized-focal-points"})}updateAssetsCdnDefaultSettings(n){return this.rawUpdateAssetsCdnDefaultSettings(J(n,{type:"assets-cdn-default-settings",attributes:["assets_cdn_default_settings"],relationships:[]})).then(i=>A(i))}rawUpdateAssetsCdnDefaultSettings(n){return this.client.request({method:"PUT",url:"/site/assets-cdn-default-settings",body:n})}}v0.TYPE="site";class y0 extends de{create(n){return this.rawCreate(J(n,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(i=>A(i))}rawCreate(n){return this.client.request({method:"POST",url:"/workflows",body:n})}update(n,i){return this.rawUpdate(H(n),J(i,{id:H(n),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(u=>A(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/workflows/${n}`,body:i})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/workflows"})}find(n){return this.rawFind(H(n)).then(i=>A(i))}rawFind(n){return this.client.request({method:"GET",url:`/workflows/${n}`})}destroy(n){return this.rawDestroy(H(n))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/workflows/${n}`})}}y0.TYPE="workflow";var Zx=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(y){try{m(u.next(y))}catch(g){d(g)}}function h(y){try{m(u.throw(y))}catch(g){d(g)}}function m(y){y.done?c(y.value):o(y.value).then(p,h)}m((u=u.apply(r,n||[])).next())})};let g0=class b0{constructor(n){this.config=n,this.roles=new qx(this),this.users=new w_(this),this.ssoUsers=new C_(this),this.auditLogEvents=new A_(this),this.menuItems=new x_(this),this.schemaMenuItems=new M_(this),this.uploadCollections=new R_(this),this.itemTypes=new D_(this),this.fields=new q_(this),this.fieldsets=new L_(this),this.session=new z_(this),this.accessTokens=new U_(this),this.plugins=new N_(this),this.jobResults=new j_(this),this.subscriptionLimits=new H_(this),this.subscriptionFeatures=new V_(this),this.buildEvents=new G_(this),this.searchIndexEvents=new B_(this),this.items=new I_(this),this.itemVersions=new P_(this),this.uploads=new $_(this),this.uploadRequest=new F_(this),this.uploadTracks=new k_(this),this.scheduledPublication=new X_(this),this.scheduledUnpublishing=new K_(this),this.searchResults=new Q_(this),this.environments=new Z_(this),this.maintenanceMode=new J_(this),this.webhooks=new W_(this),this.webhookCalls=new e0(this),this.buildTriggers=new t0(this),this.searchIndexes=new n0(this),this.itemTypeFilters=new r0(this),this.uploadFilters=new a0(this),this.siteInvitations=new i0(this),this.editingSessions=new l0(this),this.ssoGroups=new u0(this),this.ssoSettings=new o0(this),this.emojiSuggestions=new s0(this),this.whiteLabelSettings=new c0(this),this.publicInfo=new f0(this),this.dailyUsages=new d0(this),this.usageCounters=new h0(this),this.uploadTags=new m0(this),this.uploadSmartTags=new p0(this),this.site=new v0(this),this.workflows=new y0(this)}get baseUrl(){return this.config.baseUrl||b0.defaultBaseUrl}request(n){return ju(Object.assign(Object.assign(Object.assign({},this.config),n),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v5.5.4",baseUrl:this.baseUrl,preCallStack:new Error().stack,extraHeaders:Object.assign(Object.assign(Object.assign({},this.config.extraHeaders||{}),this.config.environment?{"X-Environment":this.config.environment}:{}),{"X-API-Version":"3"}),fetchJobResult:i=>this.jobResultsFetcher?this.jobResultsFetcher(i):hx(()=>this.jobResults.find(i))}))}eventsChannelName(){return Zx(this,void 0,void 0,function*(){if(this.cachedEventsChannelName)return this.cachedEventsChannelName;const{data:n}=yield this.site.rawFind();return this.cachedEventsChannelName=this.config.environment?`private-site-${n.id}-environment-${this.config.environment}`:`private-site-${n.id}`,this.cachedEventsChannelName})}};g0.defaultBaseUrl="https://site-api.datocms.com";function Jx(r,n,{onProgress:i,additionalHeaders:u}={}){const o=new XMLHttpRequest;return Fi(new Promise((c,d)=>{if(i&&o.upload&&(o.upload.onprogress=p=>{p.lengthComputable&&i({type:"UPLOADING_FILE",payload:{progress:Math.round(p.loaded/p.total*100)}})}),o.onreadystatechange=()=>{o.readyState===4&&(o.status===200?c():d(new Error(`Status ${o.status}`)))},o.addEventListener("error",d,!1),o.open("PUT",n,!0),u)for(const[p,h]of Object.entries(u))o.setRequestHeader(p,h);o.send(r)}),()=>{o.onreadystatechange=null,o.abort()})}var Wx=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(y){try{m(u.next(y))}catch(g){d(g)}}function h(y){try{m(u.throw(y))}catch(g){d(g)}}function m(y){y.done?c(y.value):o(y.value).then(p,h)}m((u=u.apply(r,n||[])).next())})};function rb(r,n,i={}){const u=i.filename||("name"in n?n.name:void 0);if(!u)throw new Error("Missing filename, please provide it as an option!");let o=!1,c;return Fi(()=>Wx(this,void 0,void 0,function*(){i.onProgress&&i?.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:u}});const{id:d,url:p,request_headers:h}=yield r.uploadRequest.create({filename:u});if(o)throw new $i;return i.onProgress&&i.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),c=Jx(n,p,Object.assign(Object.assign({},i),{additionalHeaders:h})),yield c,d}),()=>{c?c.cancel():o=!0})}var ab=function(r,n,i,u){function o(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(y){try{m(u.next(y))}catch(g){d(g)}}function h(y){try{m(u.throw(y))}catch(g){d(g)}}function m(y){y.done?c(y.value):o(y.value).then(p,h)}m((u=u.apply(r,n||[])).next())})},ib=function(r,n){var i={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(i[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,u=Object.getOwnPropertySymbols(r);o<u.length;o++)n.indexOf(u[o])<0&&Object.prototype.propertyIsEnumerable.call(r,u[o])&&(i[u[o]]=r[u[o]]);return i};class eM extends $_{createFromFileOrBlob(n){let i=!1,u;return Fi(()=>ab(this,void 0,void 0,function*(){if(i)throw new $i;const{fileOrBlob:o,filename:c,onProgress:d}=n,p=ib(n,["fileOrBlob","filename","onProgress"]);u=rb(this.client,o,{filename:c,onProgress:d});const h=yield u;return d&&d({type:"CREATING_UPLOAD_OBJECT"}),this.create(Object.assign(Object.assign({},p),{path:h}))}),()=>{u?u.cancel():i=!0})}updateFromFileOrBlob(n,i){let u=!1,o;return Fi(()=>ab(this,void 0,void 0,function*(){if(u)throw new $i;const{fileOrBlob:c,filename:d,onProgress:p}=i,h=ib(i,["fileOrBlob","filename","onProgress"]);o=rb(this.client,c,{filename:d,onProgress:p});const m=yield o;return p&&p({type:"CREATING_UPLOAD_OBJECT"}),this.update(n,Object.assign(Object.assign({},h),{path:m}))}),()=>{o?o.cancel():u=!0})}}class tM extends g0{constructor(n){super(n),this.uploads=new eM(this)}}function nM(r){return new tM(r)}const rM="https://alttext.ai/api/v1/images",aM="datocms";function iM(r){if(r)return r.startsWith("dato-")?r:`dato-${r}`}function lM(r){const n=r.toLowerCase();return/credit|quota|usage limit/.test(n)?"quota":/api.?key|unauthori[sz]ed|forbidden/.test(n)?"auth":"provider"}function uM(r,n){if(typeof r.alt_text=="string")return r.alt_text;const i=ze(r.alt_texts);if(!i)return"";const u=i[n];if(typeof u=="string")return u;const o=n.split("-")[0],c=o?i[o]:void 0;return typeof c=="string"?c:""}class oM{id="alttext-ai";apiKey;endpoint;constructor(n){this.apiKey=n.apiKey,this.endpoint=n.endpoint??rM}async generate(n){const i=oo(this.id,n),u=await Hr(this.id,this.endpoint,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":this.apiKey,"X-Client":aM},body:JSON.stringify({image:{url:i.imageUrl,asset_id:iM(i.assetId)},lang:i.locale}),signal:i.signal}),o=ze(u);if(!o)throw new Xe(this.id,"invalid_response","The provider returned an invalid response.",{details:u});if(typeof o.error_code=="string"&&o.error_code){const c=i_(o,o.error_code);throw new Xe(this.id,lM(c),c,{details:o})}return so(this.id,uM(o,i.locale))}}const sM="https://api.anthropic.com/v1",cM=300;function fM(r){return r.replace(/_/g," ")}function dM(r){const i=ze(r)?.stop_reason;if(!(i==null||i==="end_turn"||i==="stop_sequence"))throw typeof i!="string"?new Xe("anthropic","invalid_response","The response contained an invalid completion state.",{details:r}):new Xe("anthropic",i==="refusal"?"provider":"invalid_response",i==="refusal"?"The model refused to generate alt text for this image.":`The response did not complete normally: ${fM(i)}.`,{details:r})}function hM(r){const n=ze(r);if(!n||!Array.isArray(n.content))return"";const i=[];for(const u of n.content){const o=ze(u);o?.type==="text"&&typeof o.text=="string"&&i.push(o.text)}return i.join(`
|
|
21
|
+
`)}class mM{id="anthropic";apiKey;model;baseUrl;maxOutputTokens;temperature;constructor(n){this.apiKey=n.apiKey,this.model=n.model,this.baseUrl=n.baseUrl??sM,this.maxOutputTokens=n.maxOutputTokens??cM,this.temperature=n.temperature}async generate(n){const i=oo(this.id,n),u={model:this.model,max_tokens:this.maxOutputTokens,messages:[{role:"user",content:[{type:"image",source:{type:"url",url:i.imageUrl}},{type:"text",text:i.prompt}]}]};this.temperature!==void 0&&(u.temperature=this.temperature);const o=await Hr(this.id,Va(this.baseUrl,"messages"),{method:"POST",headers:{"anthropic-dangerous-direct-browser-access":"true","anthropic-version":"2023-06-01","Content-Type":"application/json","x-api-key":this.apiKey},body:JSON.stringify(u),signal:i.signal});return dM(o),so(this.id,hM(o))}}const pM="https://generativelanguage.googleapis.com/v1beta";function vM(r){return r.startsWith("models/")?r.slice(7):r}function _0(r){return r.replace(/_/g," ").toLowerCase()}function yM(r){if(/^gemini-(?:3(?:\.\d+)?-)?flash(?:-lite)?(?:-|$)/.test(r))return{thinkingLevel:"minimal"};if(r==="gemini-pro-latest"||/^gemini-3(?:[.-]|$)/.test(r))return{thinkingLevel:"low"};if(/^gemini-2\.5-pro(?:-|$)/.test(r))return{thinkingBudget:128};if(/^gemini-2\.5-flash(?:-|$)/.test(r))return{thinkingBudget:0}}function gM(r,n){const i=ze(r),u=i?.blockReason;if(typeof u!="string"||u==="BLOCK_REASON_UNSPECIFIED")return;const o=typeof i?.blockReasonMessage=="string"&&i.blockReasonMessage.trim()?i.blockReasonMessage.trim():`The request was blocked: ${_0(u)}.`;throw new Xe("gemini","provider",o,{details:n})}function bM(r,n){const i=r.finishReason;if(typeof i!="string"||i==="STOP")return;const u=r.finishMessage,o=typeof u=="string"&&u.trim()?u.trim():`The response did not complete normally: ${_0(i)}.`;throw new Xe("gemini",i==="MAX_TOKENS"?"invalid_response":"provider",o,{details:n})}function _M(r,n){if(Array.isArray(r))for(const i of r){const u=ze(i);u&&bM(u,n)}}function SM(r){const n=ze(r);n&&(gM(n.promptFeedback,r),_M(n.candidates,r))}function EM(r){const n=ze(r);if(!n||!Array.isArray(n.candidates))return"";const i=[];for(const u of n.candidates){const o=ze(u),c=ze(o?.content);if(Array.isArray(c?.parts))for(const d of c.parts){const p=ze(d);p?.thought!==!0&&typeof p?.text=="string"&&i.push(p.text)}}return i.join(`
|
|
22
|
+
`)}class TM{id="gemini";apiKey;model;baseUrl;maxOutputTokens;temperature;constructor(n){this.apiKey=n.apiKey,this.model=vM(n.model),this.baseUrl=n.baseUrl??pM,this.maxOutputTokens=n.maxOutputTokens,this.temperature=n.temperature}async generate(n){const i=oo(this.id,n),u=await HA(this.id,i.imageUrl,i.signal),o={contents:[{role:"user",parts:[{inline_data:{mime_type:u.mimeType,data:u.data}},{text:i.prompt}]}]},c={};this.maxOutputTokens!==void 0&&(c.maxOutputTokens=this.maxOutputTokens),this.temperature!==void 0&&(c.temperature=this.temperature);const d=yM(this.model);d&&(c.thinkingConfig=d),Object.keys(c).length>0&&(o.generationConfig=c);const p=`models/${encodeURIComponent(this.model)}:generateContent`,h=await Hr(this.id,Va(this.baseUrl,p),{method:"POST",headers:{"Content-Type":"application/json","x-goog-api-key":this.apiKey},body:JSON.stringify(o),signal:i.signal});return SM(h),so(this.id,EM(h))}}const OM="https://api.openai.com/v1";function wM(r){const n=r.toLowerCase();return n.startsWith("ft:")?n.split(":")[1]??"":n}function CM(r){const n=wM(r);if(/-pro(?:[.-]|$)/.test(n))return;if(/^o[1-9](?:[.-]|$)/.test(n))return"low";const i=n.match(/^gpt-(\d+)(?:\.(\d+))?/);if(!i||Number(i[1])<5)return;const u=Number(i[1]),o=Number(i[2]??0);return u>5||o>=1?"none":"minimal"}function Wu(r){return r.replace(/_/g," ")}function AM(r){if(!Array.isArray(r))return null;for(const n of r){const i=ze(n);if(i?.type==="refusal")return typeof i.refusal=="string"&&i.refusal.trim()?i.refusal.trim():"The model refused to generate alt text for this image."}return null}function xM(r,n){if(typeof r.status!="string"||r.status==="completed")return;const i=ze(r.incomplete_details),u=typeof i?.reason=="string"?` (${Wu(i.reason)})`:"",o=r.status==="failed"?"provider":"invalid_response";throw new Xe("openai",o,`The response did not complete: ${Wu(r.status)}${u}.`,{details:n})}function MM(r){return r.type!=="refusal"?null:typeof r.refusal=="string"&&r.refusal.trim()?r.refusal.trim():"The model refused to generate alt text for this image."}function RM(r,n){if(typeof r.status=="string"&&r.status!=="completed")throw new Xe("openai","invalid_response",`The generated message did not complete: ${Wu(r.status)}.`,{details:n});const i=MM(r)??AM(r.content);if(i)throw new Xe("openai","provider",i,{details:n})}function DM(r,n){if(Array.isArray(r))for(const i of r){const u=ze(i);u&&RM(u,n)}}function qM(r,n){const i=r.finish_reason;if(typeof i=="string"&&i!=="stop")throw new Xe("openai",i==="content_filter"?"provider":"invalid_response",`The response did not complete normally: ${Wu(i)}.`,{details:n});const u=ze(r.message);if(typeof u?.refusal=="string"&&u.refusal.trim())throw new Xe("openai","provider",u.refusal.trim(),{details:n})}function LM(r,n){if(Array.isArray(r))for(const i of r){const u=ze(i);u&&qM(u,n)}}function zM(r){const n=ze(r);n&&(xM(n,r),DM(n.output,r),LM(n.choices,r))}function S0(r){if(!Array.isArray(r))return[];const n=[];for(const i of r){const u=ze(i);(u?.type==="output_text"||u?.type==="text")&&typeof u.text=="string"&&n.push(u.text)}return n}function UM(r){if(!Array.isArray(r))return[];const n=[];for(const i of r){const u=ze(i);u&&((u.type==="output_text"||u.type==="text")&&typeof u.text=="string"&&n.push(u.text),n.push(...S0(u.content)))}return n}function NM(r){if(!Array.isArray(r.choices))return"";const n=ze(r.choices[0]),u=ze(n?.message)?.content;return typeof u=="string"?u:S0(u).join(`
|
|
23
|
+
`)}function jM(r){const n=ze(r);return n?typeof n.output_text=="string"?n.output_text:UM(n.output).join(`
|
|
24
|
+
`)||NM(n):""}class HM{id="openai";apiKey;model;baseUrl;maxOutputTokens;constructor(n){this.apiKey=n.apiKey,this.model=n.model,this.baseUrl=n.baseUrl??OM,this.maxOutputTokens=n.maxOutputTokens}async generate(n){const i=oo(this.id,n),u={model:this.model,store:!1,input:[{role:"user",content:[{type:"input_text",text:i.prompt},{type:"input_image",image_url:i.imageUrl,detail:"auto"}]}]};this.maxOutputTokens!==void 0&&(u.max_output_tokens=this.maxOutputTokens);const o=CM(this.model);o&&(u.reasoning={effort:o});const c=await Hr(this.id,Va(this.baseUrl,"responses"),{method:"POST",headers:{Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json"},body:JSON.stringify(u),signal:i.signal});return zM(c),so(this.id,jM(c))}}function Du(r,n,i){const u=n.trim();if(!u)throw new Xe(r,"configuration",`${i} is required.`);return u}function VM(r){const n=Du(r.provider,r.apiKey,"API key");switch(r.provider){case"alttext-ai":return new oM({...r,apiKey:n});case"openai":return new HM({...r,apiKey:n,model:Du(r.provider,r.model,"Model")});case"anthropic":return new mM({...r,apiKey:n,model:Du(r.provider,r.model,"Model")});case"gemini":return new TM({...r,apiKey:n,model:Du(r.provider,r.model,"Model")})}}const GM="jpg",BM="80",IM="max",PM="1024",YM="1024",$M=3,FM=6e4,kM=5e3,XM=1e3,KM=1e3,QM=8,ZM="Unknown error";function Bd(r){return r instanceof Error?r.message:String(r??ZM)}function JM(r){const n=r.toLowerCase(),i=n.startsWith("ft:")?n.split(":")[1]??"":n;return/-pro(?:[.-]|$)/.test(i)||/^o[1-9](?:[.-]|$)/.test(i)}function WM(r){switch(r.provider){case"alttext-ai":return{provider:"alttext-ai",apiKey:r.altTextAiApiKey};case"openai":return{provider:"openai",apiKey:r.openAiApiKey,model:r.openAiModel,...JM(r.openAiModel)?{}:{maxOutputTokens:XM}};case"anthropic":return{provider:"anthropic",apiKey:r.anthropicApiKey,model:r.anthropicModel,maxOutputTokens:300};case"gemini":return{provider:"gemini",apiKey:r.geminiApiKey,model:r.geminiModel,maxOutputTokens:KM}}}function eR(r){return typeof r=="string"&&r.trim().length>0}function E0(r,n){return n==="overwrite-all"||!eR(r.alt)}function Id(r){return typeof r=="object"&&r!==null&&typeof r.upload_id=="string"}function T0(r){return Array.isArray(r)&&r.every(n=>Id(n))}function tR(r){return v_(r.formValues,r.fieldPath)}function O0(r){return Id(r)?!0:T0(r)&&r.length>0}function nR(r){const n=new URL(r);return n.searchParams.set("fm",GM),n.searchParams.set("q",BM),n.searchParams.set("fit",IM),n.searchParams.set("w",PM),n.searchParams.set("h",YM),n.toString()}async function rR(r,n,i){if(r.length===0)return[];const u=Math.max(1,Math.min(n,r.length)),o=new Array(r.length);let c=0;const d=async()=>{const p=c;if(c+=1,!(p>=r.length)){try{o[p]={status:"fulfilled",value:await i(r[p],p)}}catch(h){o[p]={status:"rejected",reason:h}}await d()}};return await Promise.all(Array.from({length:u},()=>d())),o}async function w0(r,n,i,u,o){const c=new AbortController;let d;const p=new Promise((m,y)=>{d=setTimeout(()=>{y(new Error("Alt text generation timed out after 60 seconds.")),c.abort()},FM)}),h=(async()=>{const m=await i.uploads.find(r.upload_id);if(!m.is_image)throw new Error(`Asset ${r.upload_id} is not an image.`);return n.generate({imageUrl:nR(m.url),assetId:r.upload_id,locale:o,filename:m.filename,promptTemplate:u.prompt,signal:c.signal})})();try{return await Promise.race([h,p])}finally{d!==void 0&&clearTimeout(d)}}function aR(r){const n=r.slice(0,QM),i=r.length-n.length;return i>0&&n.push(`…and ${i} more error(s).`),`Alt text generation errors:
|
|
25
|
+
${n.join(`
|
|
26
|
+
`)}`}function C0(r){r.customToast({type:"warning",message:"Generating alts, this can take some time…",dismissOnPageChange:!0,dismissAfterTimeout:kM})}async function iR(r,n,i,u,o,c){if(!E0(r,c)){await o.notice("Alt text already exists for this asset.");return}C0(o);try{const d=await w0(r,n,i,u,o.locale);await o.setFieldValue(o.fieldPath,{...r,alt:d}),await o.notice(`Alt text generated with ${uo[u.provider]}.`)}catch(d){await o.alert(`Could not generate alt text: ${Bd(d)}`)}}async function lR(r,n,i,u,o,c){const d=[];for(const[g,b]of r.entries())E0(b,c)&&d.push({asset:b,index:g});if(d.length===0){await o.notice("No assets need alt text generation.");return}C0(o);const p=await rR(d,$M,({asset:g})=>w0(g,n,i,u,o.locale)),h=[...r],m=[];let y=0;for(const[g,b]of p.entries()){const{asset:S,index:T}=d[g];if(b.status==="rejected"){m.push(`${S.upload_id}: ${Bd(b.reason)}`);continue}h[T]={...S,alt:b.value},y+=1}y>0&&(await o.setFieldValue(o.fieldPath,h),await o.notice(`${y} alt text${y===1?"":"s"} generated with ${uo[u.provider]}.`)),m.length>0&&await o.alert(aR(m))}async function uR(r,n){if(r.disabled){await r.notice("This field is read-only.");return}if(!r.currentUserAccessToken){await r.alert("This plugin needs the currentUserAccessToken permission to load asset URLs. Grant the permission and try again.");return}const i=Zu(r.plugin.attributes.parameters),u=pd(i);if(u){await r.alert(`${u} Configure the provider in the plugin settings.`);return}const o=tR(r);if(!O0(o)){await r.notice("No asset selected in this field.");return}let c=!1;try{await r.disableField(r.fieldPath,!0),c=!0;const d=nM({apiToken:r.currentUserAccessToken,environment:r.environment,baseUrl:r.cmaBaseUrl}),p=VM(WM(i));if(T0(o)){await lR(o,p,d,i,r,n);return}if(Id(o)){await iR(o,p,d,i,r,n);return}await r.notice("No asset selected in this field.")}catch(d){console.error("Unexpected alt text generation error:",d),await r.alert(`Unexpected error while generating alt text: ${Bd(d)}`)}finally{if(c)try{await r.disableField(r.fieldPath,!1)}catch(d){console.error("Could not re-enable the asset field:",d)}}}const A0="generate-missing-alts",x0="regenerate-all-alts",oR={[A0]:"missing-only",[x0]:"overwrite-all"};function sR(r){return r.attributes.field_type==="gallery"||r.attributes.field_type==="file"}GE({renderConfigScreen(r){return b2(Ke.jsx(d2,{ctx:r}))},fieldDropdownActions(r,n){if(!sR(r))return[];const i=v_(n.formValues,n.fieldPath),u=O0(i);return[{id:A0,label:"Generate missing alt texts",icon:"magic",disabled:!u||n.disabled},{id:x0,label:"Regenerate all alt texts",icon:"images",disabled:!u||n.disabled}]},async executeFieldDropdownAction(r,n){const i=oR[r];i&&await uR(n,i)}});
|