datocms-plugin-asset-optimization 0.7.7 → 0.7.9

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.
@@ -1,22 +1,22 @@
1
- function m_(i,n){for(var l=0;l<n.length;l++){const u=n[l];if(typeof u!="string"&&!Array.isArray(u)){for(const s in u)if(s!=="default"&&!(s in i)){const f=Object.getOwnPropertyDescriptor(u,s);f&&Object.defineProperty(i,s,f.get?f:{enumerable:!0,get:()=>u[s]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(s){if(s.ep)return;s.ep=!0;const f=l(s);fetch(s.href,f)}})();var hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qu(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var yc={exports:{}},Lr={};var wp;function p_(){if(wp)return Lr;wp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(u,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var v in s)v!=="key"&&(f[v]=s[v])}else f=s;return s=f.ref,{$$typeof:i,type:u,key:d,ref:s!==void 0?s:null,props:f}}return Lr.Fragment=n,Lr.jsx=l,Lr.jsxs=l,Lr}var Tp;function v_(){return Tp||(Tp=1,yc.exports=p_()),yc.exports}var T=v_(),mu={exports:{}},lt={},Op;function of(){if(Op)return lt;Op=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.DATA_CLONE_ERROR=lt.MESSAGE=lt.REJECTED=lt.FULFILLED=lt.REPLY=lt.CALL=lt.HANDSHAKE_REPLY=lt.HANDSHAKE=void 0;const i="handshake";lt.HANDSHAKE=i;const n="handshake-reply";lt.HANDSHAKE_REPLY=n;const l="call";lt.CALL=l;const u="reply";lt.REPLY=u;const s="fulfilled";lt.FULFILLED=s;const f="rejected";lt.REJECTED=f;const d="message";lt.MESSAGE=d;const v="DataCloneError";return lt.DATA_CLONE_ERROR=v,lt}var en={},Cp;function Fv(){if(Cp)return en;Cp=1,Object.defineProperty(en,"__esModule",{value:!0}),en.ERR_NO_IFRAME_SRC=en.ERR_NOT_IN_IFRAME=en.ERR_CONNECTION_TIMEOUT=en.ERR_CONNECTION_DESTROYED=void 0;const i="ConnectionDestroyed";en.ERR_CONNECTION_DESTROYED=i;const n="ConnectionTimeout";en.ERR_CONNECTION_TIMEOUT=n;const l="NotInIframe";en.ERR_NOT_IN_IFRAME=l;const u="NoIframeSrc";return en.ERR_NO_IFRAME_SRC=u,en}var pu={exports:{}},xp;function g_(){return xp||(xp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=()=>{const u=[];let s=!1;return{destroy(){s=!0,u.forEach(f=>{f()})},onDestroy(f){s?f():u.push(f)}}};n.default=l,i.exports=n.default})(pu,pu.exports)),pu.exports}var vu={exports:{}},Ra={},Ap;function kv(){if(Ap)return Ra;Ap=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.deserializeError=Ra.serializeError=void 0;const i=l=>{let u=l.name,s=l.message,f=l.stack;return{name:u,message:s,stack:f}};Ra.serializeError=i;const n=l=>{const u=new Error;return Object.keys(l).forEach(s=>u[s]=l[s]),u};return Ra.deserializeError=n,Ra}var zp;function y_(){return zp||(zp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=of(),u=kv(),s=(f,d,v)=>{const m=f.localName,h=f.local,g=f.remote,y=f.originForSending,b=f.originForReceiving;let S=!1;v(`${m}: Connecting call receiver`);const E=O=>{if(O.source!==g||O.data.penpal!==l.CALL)return;if(O.origin!==b){v(`${m} received message from origin ${O.origin} which did not match expected origin ${b}`);return}const R=O.data,j=R.methodName,X=R.args,Y=R.id;v(`${m}: Received ${j}() call`);const Q=M=>G=>{if(v(`${m}: Sending ${j}() reply`),S){v(`${m}: Unable to send ${j}() reply due to destroyed connection`);return}const U={penpal:l.REPLY,id:Y,resolution:M,returnValue:G};M===l.REJECTED&&G instanceof Error&&(U.returnValue=(0,u.serializeError)(G),U.returnValueIsError=!0);try{g.postMessage(U,y)}catch(J){throw J.name===l.DATA_CLONE_ERROR&&g.postMessage({penpal:l.REPLY,id:Y,resolution:l.REJECTED,returnValue:(0,u.serializeError)(J),returnValueIsError:!0},y),J}};new Promise(M=>M(d[j].apply(d,X))).then(Q(l.FULFILLED),Q(l.REJECTED))};return h.addEventListener(l.MESSAGE,E),()=>{S=!0,h.removeEventListener(l.MESSAGE,E)}};n.default=s,i.exports=n.default})(vu,vu.exports)),vu.exports}var gu={exports:{}},yu={exports:{}},Mp;function b_(){return Mp||(Mp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;let l=0;var u=()=>++l;n.default=u,i.exports=n.default})(yu,yu.exports)),yu.exports}var Dp;function __(){return Dp||(Dp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=of(),u=Fv(),s=d(b_()),f=kv();function d(m){return m&&m.__esModule?m:{default:m}}var v=(m,h,g,y,b)=>{const S=h.localName,E=h.local,O=h.remote,R=h.originForSending,j=h.originForReceiving;let X=!1;b(`${S}: Connecting call sender`);const Y=Q=>function(){for(var M=arguments.length,G=new Array(M),U=0;U<M;U++)G[U]=arguments[U];b(`${S}: Sending ${Q}() call`);let J;try{O.closed&&(J=!0)}catch{J=!0}if(J&&y(),X){const de=new Error(`Unable to send ${Q}() call due to destroyed connection`);throw de.code=u.ERR_CONNECTION_DESTROYED,de}return new Promise((de,ze)=>{const be=(0,s.default)(),W=ne=>{if(ne.source!==O||ne.data.penpal!==l.REPLY||ne.data.id!==be)return;if(ne.origin!==j){b(`${S} received message from origin ${ne.origin} which did not match expected origin ${j}`);return}b(`${S}: Received ${Q}() reply`),E.removeEventListener(l.MESSAGE,W);let le=ne.data.returnValue;ne.data.returnValueIsError&&(le=(0,f.deserializeError)(le)),(ne.data.resolution===l.FULFILLED?de:ze)(le)};E.addEventListener(l.MESSAGE,W),O.postMessage({penpal:l.CALL,id:be,methodName:Q,args:G},R)})};return g.reduce((Q,M)=>(Q[M]=Y(M),Q),m),()=>{X=!0}};n.default=v,i.exports=n.default})(gu,gu.exports)),gu.exports}var bu={exports:{}},Rp;function S_(){return Rp||(Rp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=u=>function(){if(u){for(var s=arguments.length,f=new Array(s),d=0;d<s;d++)f[d]=arguments[d];console.log("[Penpal]",...f)}};n.default=l,i.exports=n.default})(bu,bu.exports)),bu.exports}var Lp;function E_(){return Lp||(Lp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=of(),u=Fv(),s=m(g_()),f=m(y_()),d=m(__()),v=m(S_());function m(g){return g&&g.__esModule?g:{default:g}}var h=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=y.parentOrigin,S=b===void 0?"*":b,E=y.methods,O=E===void 0?{}:E,R=y.timeout,j=y.debug;const X=(0,v.default)(j);if(window===window.top){const de=new Error("connectToParent() must be called within an iframe");throw de.code=u.ERR_NOT_IN_IFRAME,de}const Y=(0,s.default)(),Q=Y.destroy,M=Y.onDestroy,G=window,U=G.parent;return{promise:new Promise((de,ze)=>{let be;R!==void 0&&(be=setTimeout(()=>{const ne=new Error(`Connection to parent timed out after ${R}ms`);ne.code=u.ERR_CONNECTION_TIMEOUT,ze(ne),Q()},R));const W=ne=>{try{clearTimeout()}catch{return}if(ne.source!==U||ne.data.penpal!==l.HANDSHAKE_REPLY)return;if(S!=="*"&&S!==ne.origin){X(`Child received handshake reply from origin ${ne.origin} which did not match expected origin ${S}`);return}X("Child: Received handshake reply"),G.removeEventListener(l.MESSAGE,W);const le={localName:"Child",local:G,remote:U,originForSending:ne.origin==="null"?"*":ne.origin,originForReceiving:ne.origin},ge={},D=(0,f.default)(le,O,X);M(D);const Z=(0,d.default)(ge,le,ne.data.methodNames,Q,X);M(Z),clearTimeout(be),de(ge)};G.addEventListener(l.MESSAGE,W),M(()=>{G.removeEventListener(l.MESSAGE,W);const ne=new Error("Connection destroyed");ne.code=u.ERR_CONNECTION_DESTROYED,ze(ne)}),X("Child: Sending handshake"),U.postMessage({penpal:l.HANDSHAKE,methodNames:Object.keys(O)},S)}),destroy:Q}};n.default=h,i.exports=n.default})(mu,mu.exports)),mu.exports}var w_=E_();const T_=Qu(w_);var fn=function(){return fn=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},fn.apply(this,arguments)};function jp(i,n){for(var l=fn({},i),u=0,s=n;u<s.length;u++){var f=s[u];delete l[f]}return l}function bc(i){return function(n,l){if(i){for(var u={},s=0,f=n;s<f.length;s++){var d=f[s],v=l.itemTypes[d.relationships.item_type.data.id];u[d.id]=i(d,fn(fn({},l),{itemType:v}))}return u}}}function qn(i,n){var l=function(u,s,f){if(f.mode===i){var d=C_(s),v=function(m){n(u,fn(fn(fn({},s),m),d))};return v(f),v}};return l.mode=i,l}function kr(i,n){var l=function(u,s,f){if(f.mode===i){var d=function(v){n(u,fn(fn({},s),v))};return d(f),d}};return l.mode=i,l}function O_(){for(var i=document.querySelectorAll("body *"),n=0,l=0;l<i.length;l++)n=Math.max(i[l].getBoundingClientRect().bottom,n);return n}var C_=function(i){var n=null,l=function(h){var g=h===void 0?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,O_()):h;g!==n&&(i.setHeight(g),n=g)},u=null,s=null,f=function(){return l()},d=function(){l(),u||(u=new ResizeObserver(f),u.observe(document.documentElement)),s||(s=new MutationObserver(f),s.observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))},v=function(){u&&(u.disconnect(),u=null),s&&(s.disconnect(),s=null)},m=function(){return!!u};return{updateHeight:l,startAutoResizer:d,stopAutoResizer:v,isAutoResizerActive:m}},x_=qn("renderAssetSource",function(i,n){i.renderAssetSource&&i.renderAssetSource(n.assetSourceId,n)}),A_=qn("renderConfigScreen",function(i,n){i.renderConfigScreen&&i.renderConfigScreen(n)}),z_=qn("renderFieldExtension",function(i,n){i.renderFieldExtension&&i.renderFieldExtension(n.fieldExtensionId,n)}),M_=kr("renderInspector",function(i,n){i.renderInspector&&i.renderInspector(n.inspectorId,n)}),D_=kr("renderInspectorPanel",function(i,n){i.renderInspectorPanel&&i.renderInspectorPanel(n.panelId,n)}),R_=qn("renderItemCollectionOutlet",function(i,n){i.renderItemCollectionOutlet&&i.renderItemCollectionOutlet(n.itemCollectionOutletId,n)}),L_=qn("renderItemFormOutlet",function(i,n){i.renderItemFormOutlet&&i.renderItemFormOutlet(n.itemFormOutletId,n)}),j_=kr("renderItemFormSidebar",function(i,n){i.renderItemFormSidebar&&i.renderItemFormSidebar(n.sidebarId,n)}),N_=qn("renderItemFormSidebarPanel",function(i,n){i.renderItemFormSidebarPanel&&i.renderItemFormSidebarPanel(n.sidebarPaneId,n)}),q_=qn("renderManualFieldExtensionConfigScreen",function(i,n){i.renderManualFieldExtensionConfigScreen&&i.renderManualFieldExtensionConfigScreen(n.fieldExtensionId,n)}),U_=qn("renderModal",function(i,n){i.renderModal&&i.renderModal(n.modalId,n)}),V_=kr("renderPage",function(i,n){i.renderPage&&i.renderPage(n.pageId,n)}),H_=kr("renderUploadSidebar",function(i,n){i.renderUploadSidebar&&i.renderUploadSidebar(n.sidebarId,n)}),B_=qn("renderUploadSidebarPanel",function(i,n){i.renderUploadSidebarPanel&&i.renderUploadSidebarPanel(n.sidebarPaneId,n)}),Xt=function(){return Xt=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Xt.apply(this,arguments)},G_=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{h(u.next(g))}catch(y){d(y)}}function m(g){try{h(u.throw(g))}catch(y){d(y)}}function h(g){g.done?f(g.value):s(g.value).then(v,m)}h((u=u.apply(i,n||[])).next())})},I_=function(i,n){var l={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},u,s,f,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=v(0),d.throw=v(1),d.return=v(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(h){return function(g){return m([h,g])}}function m(h){if(u)throw new TypeError("Generator is already executing.");for(;d&&(d=0,h[0]&&(l=0)),l;)try{if(u=1,s&&(f=h[0]&2?s.return:h[0]?s.throw||((f=s.return)&&f.call(s),0):s.next)&&!(f=f.call(s,h[1])).done)return f;switch(s=0,f&&(h=[h[0]&2,f.value]),h[0]){case 0:case 1:f=h;break;case 4:return l.label++,{value:h[1],done:!1};case 5:l.label++,s=h[1],h=[0];continue;case 7:h=l.ops.pop(),l.trys.pop();continue;default:if(f=l.trys,!(f=f.length>0&&f[f.length-1])&&(h[0]===6||h[0]===2)){l=0;continue}if(h[0]===3&&(!f||h[1]>f[0]&&h[1]<f[3])){l.label=h[1];break}if(h[0]===6&&l.label<f[1]){l.label=f[1],f=h;break}if(f&&l.label<f[2]){l.label=f[2],l.ops.push(h);break}f[2]&&l.ops.pop(),l.trys.pop();continue}h=n.call(i,l)}catch(g){h=[6,g],s=0}finally{u=f=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Np=function(i,n,l){if(l||arguments.length===2)for(var u=0,s=n.length,f;u<s;u++)(f||!(u in n))&&(f||(f=Array.prototype.slice.call(n,0,u)),f[u]=n[u]);return i.concat(f||Array.prototype.slice.call(n))};function Y_(){return G_(this,arguments,void 0,function(i){var n,l,u,s,f,d,v,m,h,g,y,b;return i===void 0&&(i={}),I_(this,function(S){switch(S.label){case 0:return n=null,l=null,u=Xt(Xt({},i),{overrideFieldExtensions:bc(i.overrideFieldExtensions),customMarksForStructuredTextField:bc(i.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:bc(i.customBlockStylesForStructuredTextField)}),s=T_({methods:Xt(Xt({sdkVersion:function(){return"0.3.0"},implementedHooks:function(){return Object.fromEntries(Object.keys(i).map(function(E){return[E,!0]}))}},Object.fromEntries(Object.entries(u).filter(function(E){var O=E[0];return!O.startsWith("render")}))),{onChange:function(E){n&&n(E)},callMethodMergingBootCtx:function(E,O,R,j,X){return l?l(E,O,R,j,X):null}})}),[4,s.promise];case 1:return f=S.sent(),[4,f.getSettings()];case 2:for(d=S.sent(),d.mode==="onBoot"&&(v=d,n=function(E){v=E},l=function(E,O,R,j,X){var Y;if(E in u)return(Y=u)[E].apply(Y,Np(Np([],O,!1),[Xt(Xt(Xt(Xt({},jp(f,["getSettings","setHeight"])),jp(v,["mode","bodyPadding"])),Object.fromEntries(j.map(function(Q){return[Q,function(){for(var G=[],U=0;U<arguments.length;U++)G[U]=arguments[U];return f.callAdditionalCtxMethod(X,Q,G)}]}))),R)],!1))},u.onBoot&&u.onBoot(Xt(Xt({},f),v))),m={renderAssetSource:x_,renderConfigScreen:A_,renderFieldExtension:z_,renderItemCollectionOutlet:R_,renderItemFormOutlet:L_,renderItemFormSidebar:j_,renderItemFormSidebarPanel:N_,renderManualFieldExtensionConfigScreen:q_,renderModal:U_,renderPage:V_,renderInspector:M_,renderInspectorPanel:D_,renderUploadSidebar:H_,renderUploadSidebarPanel:B_},h=0,g=Object.values(m);h<g.length;h++)if(y=g[h],b=y(u,f,d),b){n=b;break}return[2]}})})}var _c={exports:{}};var qp;function $_(){return qp||(qp=1,(function(i){(function(){var n={}.hasOwnProperty;function l(){for(var f="",d=0;d<arguments.length;d++){var v=arguments[d];v&&(f=s(f,u(v)))}return f}function u(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return l.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var v in f)n.call(f,v)&&f[v]&&(d=s(d,v));return d}function s(f,d){return d?f?f+" "+d:f+d:f}i.exports?(l.default=l,i.exports=l):window.classNames=l})()})(_c)),_c.exports}var P_=$_();const hn=Qu(P_);var Sc={exports:{}},ye={};var Up;function F_(){if(Up)return ye;Up=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=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 E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,R={};function j(C,V,K){this.props=C,this.context=V,this.refs=R,this.updater=K||E}j.prototype.isReactComponent={},j.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")},j.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function X(){}X.prototype=j.prototype;function Y(C,V,K){this.props=C,this.context=V,this.refs=R,this.updater=K||E}var Q=Y.prototype=new X;Q.constructor=Y,O(Q,j.prototype),Q.isPureReactComponent=!0;var M=Array.isArray;function G(){}var U={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function de(C,V,K){var te=K.ref;return{$$typeof:i,type:C,key:V,ref:te!==void 0?te:null,props:K}}function ze(C,V){return de(C.type,V,C.props)}function be(C){return typeof C=="object"&&C!==null&&C.$$typeof===i}function W(C){var V={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(K){return V[K]})}var ne=/\/+/g;function le(C,V){return typeof C=="object"&&C!==null&&C.key!=null?W(""+C.key):V.toString(36)}function ge(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(G,G):(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 D(C,V,K,te,ce){var fe=typeof C;(fe==="undefined"||fe==="boolean")&&(C=null);var ue=!1;if(C===null)ue=!0;else switch(fe){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(C.$$typeof){case i:case n:ue=!0;break;case g:return ue=C._init,D(ue(C._payload),V,K,te,ce)}}if(ue)return ce=ce(C),ue=te===""?"."+le(C,0):te,M(ce)?(K="",ue!=null&&(K=ue.replace(ne,"$&/")+"/"),D(ce,V,K,"",function(nn){return nn})):ce!=null&&(be(ce)&&(ce=ze(ce,K+(ce.key==null||C&&C.key===ce.key?"":(""+ce.key).replace(ne,"$&/")+"/")+ue)),V.push(ce)),1;ue=0;var De=te===""?".":te+":";if(M(C))for(var Re=0;Re<C.length;Re++)te=C[Re],fe=De+le(te,Re),ue+=D(te,V,K,fe,ce);else if(Re=S(C),typeof Re=="function")for(C=Re.call(C),Re=0;!(te=C.next()).done;)te=te.value,fe=De+le(te,Re++),ue+=D(te,V,K,fe,ce);else if(fe==="object"){if(typeof C.then=="function")return D(ge(C),V,K,te,ce);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 ue}function Z(C,V,K){if(C==null)return C;var te=[],ce=0;return D(C,te,"","",function(fe){return V.call(K,fe,ce++)}),te}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 Ee=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)},we={map:Z,forEach:function(C,V,K){Z(C,function(){V.apply(this,arguments)},K)},count:function(C){var V=0;return Z(C,function(){V++}),V},toArray:function(C){return Z(C,function(V){return V})||[]},only:function(C){if(!be(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return ye.Activity=y,ye.Children=we,ye.Component=j,ye.Fragment=l,ye.Profiler=s,ye.PureComponent=Y,ye.StrictMode=u,ye.Suspense=m,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,ye.__COMPILER_RUNTIME={__proto__:null,c:function(C){return U.H.useMemoCache(C)}},ye.cache=function(C){return function(){return C.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(C,V,K){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var te=O({},C.props),ce=C.key;if(V!=null)for(fe in V.key!==void 0&&(ce=""+V.key),V)!J.call(V,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&V.ref===void 0||(te[fe]=V[fe]);var fe=arguments.length-2;if(fe===1)te.children=K;else if(1<fe){for(var ue=Array(fe),De=0;De<fe;De++)ue[De]=arguments[De+2];te.children=ue}return de(C.type,ce,te)},ye.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:f,_context:C},C},ye.createElement=function(C,V,K){var te,ce={},fe=null;if(V!=null)for(te in V.key!==void 0&&(fe=""+V.key),V)J.call(V,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ce[te]=V[te]);var ue=arguments.length-2;if(ue===1)ce.children=K;else if(1<ue){for(var De=Array(ue),Re=0;Re<ue;Re++)De[Re]=arguments[Re+2];ce.children=De}if(C&&C.defaultProps)for(te in ue=C.defaultProps,ue)ce[te]===void 0&&(ce[te]=ue[te]);return de(C,fe,ce)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(C){return{$$typeof:v,render:C}},ye.isValidElement=be,ye.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:ee}},ye.memo=function(C,V){return{$$typeof:h,type:C,compare:V===void 0?null:V}},ye.startTransition=function(C){var V=U.T,K={};U.T=K;try{var te=C(),ce=U.S;ce!==null&&ce(K,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(G,Ee)}catch(fe){Ee(fe)}finally{V!==null&&K.types!==null&&(V.types=K.types),U.T=V}},ye.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},ye.use=function(C){return U.H.use(C)},ye.useActionState=function(C,V,K){return U.H.useActionState(C,V,K)},ye.useCallback=function(C,V){return U.H.useCallback(C,V)},ye.useContext=function(C){return U.H.useContext(C)},ye.useDebugValue=function(){},ye.useDeferredValue=function(C,V){return U.H.useDeferredValue(C,V)},ye.useEffect=function(C,V){return U.H.useEffect(C,V)},ye.useEffectEvent=function(C){return U.H.useEffectEvent(C)},ye.useId=function(){return U.H.useId()},ye.useImperativeHandle=function(C,V,K){return U.H.useImperativeHandle(C,V,K)},ye.useInsertionEffect=function(C,V){return U.H.useInsertionEffect(C,V)},ye.useLayoutEffect=function(C,V){return U.H.useLayoutEffect(C,V)},ye.useMemo=function(C,V){return U.H.useMemo(C,V)},ye.useOptimistic=function(C,V){return U.H.useOptimistic(C,V)},ye.useReducer=function(C,V,K){return U.H.useReducer(C,V,K)},ye.useRef=function(C){return U.H.useRef(C)},ye.useState=function(C){return U.H.useState(C)},ye.useSyncExternalStore=function(C,V,K){return U.H.useSyncExternalStore(C,V,K)},ye.useTransition=function(){return U.H.useTransition()},ye.version="19.2.4",ye}var Vp;function cf(){return Vp||(Vp=1,Sc.exports=F_()),Sc.exports}var F=cf();const Se=Qu(F),Hp=m_({__proto__:null,default:Se},[F]),k_="_button_474wk_1",X_="_disabled_474wk_30",Q_="_fullWidth_474wk_118",Z_="_button__leftIcon_474wk_124",K_="_button__rightIcon_474wk_125",La={button:k_,disabled:X_,"buttonType-muted":"_buttonType-muted_474wk_34","buttonType-primary":"_buttonType-primary_474wk_50","buttonType-negative":"_buttonType-negative_474wk_71","buttonSize-xxs":"_buttonSize-xxs_474wk_88","buttonSize-xs":"_buttonSize-xs_474wk_93","buttonSize-s":"_buttonSize-s_474wk_98","buttonSize-m":"_buttonSize-m_474wk_103","buttonSize-l":"_buttonSize-l_474wk_108","buttonSize-xl":"_buttonSize-xl_474wk_113",fullWidth:Q_,button__leftIcon:Z_,button__rightIcon:K_};function da(i){var n,l=i.children,u=i.className,s=i.disabled,f=i.buttonType,d=f===void 0?"muted":f,v=i.buttonSize,m=v===void 0?"m":v,h=i.fullWidth,g=i.onClick,y=i.style,b=i.leftIcon,S=i.rightIcon,E=i.type,O=E===void 0?"button":E;return Se.createElement("button",{type:O,className:hn(La.button,La["buttonType-".concat(d)],La["buttonSize-".concat(m)],(n={},n[La.disabled]=s,n[La.fullWidth]=h,n),u),disabled:s,onClick:g,style:y},b&&Se.createElement("span",{className:La.button__leftIcon},b),l&&Se.createElement("span",null,l),S&&Se.createElement("span",{className:La.button__rightIcon},S))}var Ic=function(){return Ic=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Ic.apply(this,arguments)};function Bp(i){return i===i.toLowerCase()?i:i.replace(/[A-Z]/g,function(n){return"-".concat(n.toLowerCase())})}function J_(i,n){return n===void 0&&(n=!1),Ic({padding:n?void 0:i.bodyPadding.map(function(l){return"".concat(l,"px")}).join(" ")},Object.fromEntries(Object.entries(i.theme).flatMap(function(l){var u,s=l[0],f=l[1];return[["--".concat(Bp(s)),f],["--".concat(Bp("".concat(s,"RgbComponents"))),((u=f.match(/rgb\((\d+, \d+, \d+)\)/))===null||u===void 0?void 0:u[1])||void 0]]})))}const W_="_themeVariables_2dr1w_1",e1="_canvas_2dr1w_70",Gp={themeVariables:W_,canvas:e1};var t1=F.createContext(null);function Xv(i){var n=i.ctx,l=i.children,u=i.noAutoResizer,s=n.mode;return F.useEffect(function(){if(!u&&"startAutoResizer"in n){var f=n;return f.startAutoResizer(),function(){f.stopAutoResizer()}}},[s,u]),Se.createElement(t1.Provider,{value:n},Se.createElement("div",{className:hn(Gp.themeVariables,Gp.canvas),style:J_(n)},l))}var Ec={exports:{}},pt={};var Ip;function n1(){if(Ip)return pt;Ip=1;var i=cf();function n(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var u={d:{f:l,r:function(){throw Error(n(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(m,h,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:m,containerInfo:h,implementation:g}}var d=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,pt.createPortal=function(m,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return f(m,h,null,g)},pt.flushSync=function(m){var h=d.T,g=u.p;try{if(d.T=null,u.p=2,m)return m()}finally{d.T=h,u.p=g,u.d.f()}},pt.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,u.d.C(m,h))},pt.prefetchDNS=function(m){typeof m=="string"&&u.d.D(m)},pt.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var g=h.as,y=v(g,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?u.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:S}):g==="script"&&u.d.X(m,{crossOrigin:y,integrity:b,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},pt.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=v(h.as,h.crossOrigin);u.d.M(m,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&u.d.M(m)},pt.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,y=v(g,h.crossOrigin);u.d.L(m,g,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},pt.preloadModule=function(m,h){if(typeof m=="string")if(h){var g=v(h.as,h.crossOrigin);u.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else u.d.m(m)},pt.requestFormReset=function(m){u.d.r(m)},pt.unstable_batchedUpdates=function(m,h){return m(h)},pt.useFormState=function(m,h,g){return d.H.useFormState(m,h,g)},pt.useFormStatus=function(){return d.H.useHostTransitionStatus()},pt.version="19.2.4",pt}var Yp;function Qv(){if(Yp)return Ec.exports;Yp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Ec.exports=n1(),Ec.exports}var a1=Qv();const i1="_fieldError_qi0xk_1",r1={fieldError:i1};function Zv(i){var n=i.children;return Se.createElement("div",{className:r1.fieldError},n)}const l1="_FieldGroup_uz9ju_1",u1="_FieldGroup__item_uz9ju_5",$p={FieldGroup:l1,FieldGroup__item:u1};var Yc=function(){return Yc=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Yc.apply(this,arguments)},s1=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l};function jr(i){var n=i.children,l=i.className,u=s1(i,["children","className"]),s=hn($p.FieldGroup,l);return Se.createElement("div",Yc({},u,{className:s}),Se.Children.map(n,function(f){return f&&Se.createElement("div",{className:$p.FieldGroup__item},f)}))}const o1="_fieldHint_1avon_1",c1={fieldHint:o1};function Kv(i){var n=i.children;return Se.createElement("div",{className:c1.fieldHint},n)}var $c=function(){return $c=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},$c.apply(this,arguments)};function Jv(i){var n=i.id,l=i.label,u=i.hint,s=i.error,f=i.required,d=i.formLabelProps,v=i.children;return Se.createElement(Se.Fragment,null,Se.createElement(Wv,$c({},d,{htmlFor:n,required:f,error:!!s}),l),v,s&&Se.createElement(Zv,null,s),u&&Se.createElement(Kv,null,u))}const f1="_Form_5qspp_1",d1="_Form__item_5qspp_5",wc={Form:f1,Form__item:d1,"Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"};var Pc=function(){return Pc=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Pc.apply(this,arguments)},h1=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l},m1=function(i){var n=i.children,l=i.className,u=i.onSubmit,s=i.spacing,f=s===void 0?"default":s,d=h1(i,["children","className","onSubmit","spacing"]),v=hn(wc.Form,l),m=hn(wc.Form__item,wc["Form__item--".concat(f)]),h=F.useCallback(function(g){g.preventDefault(),u&&u(g)},[u]);return Se.createElement("form",Pc({className:v,onSubmit:h},d),F.Children.map(n,function(g){return g?Se.createElement("div",{className:m},g):null}))};const p1="_formLabel_tcjrv_1",v1="_formLabel__code_tcjrv_8",g1="_formLabel__label_tcjrv_18",y1="_formLabel__required_tcjrv_30",Nr={formLabel:p1,formLabel__code:v1,"formLabel--error":"_formLabel--error_tcjrv_14",formLabel__label:g1,formLabel__required:y1};var Fc=function(){return Fc=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Fc.apply(this,arguments)},b1=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l},Wv=function(i){var n,l=i.children,u=i.className,s=i.htmlFor,f=i.code,d=i.required,v=d===void 0?!1:d,m=i.error,h=m===void 0?!1:m,g=b1(i,["children","className","htmlFor","code","required","error"]),y=hn(Nr.formLabel,u,(n={},n[Nr["formLabel--error"]]=h,n));return Se.createElement("label",Fc({className:y,htmlFor:s},g),Se.createElement("span",{className:Nr.formLabel__label},l,v&&Se.createElement("span",{className:Nr.formLabel__required},"*")),f&&Se.createElement("span",{className:Nr.formLabel__code},f))},kc=function(){return kc=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},kc.apply(this,arguments)};function _1(i){var n=i.id,l=i.name,u=i.label,s=i.hint,f=i.error,d=i.required,v=i.placeholder,m=i.formLabelProps,h=i.value,g=i.onChange,y=i.selectInputProps;return Se.createElement(Jv,{formLabelProps:m,id:n,required:d,error:f,hint:s,label:u},Se.createElement(mT,kc({},y,{id:n,name:l,value:h,placeholder:v,onChange:g,error:!!f})))}function Ha(i){"@babel/helpers - typeof";return Ha=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},Ha(i)}function S1(i,n){if(Ha(i)!="object"||!i)return i;var l=i[Symbol.toPrimitive];if(l!==void 0){var u=l.call(i,n);if(Ha(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function eg(i){var n=S1(i,"string");return Ha(n)=="symbol"?n:n+""}function Br(i,n,l){return(n=eg(n))in i?Object.defineProperty(i,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[n]=l,i}function Pp(i,n){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);n&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})),l.push.apply(l,u)}return l}function he(i){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?Pp(Object(l),!0).forEach(function(u){Br(i,u,l[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):Pp(Object(l)).forEach(function(u){Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(l,u))})}return i}function E1(i){if(Array.isArray(i))return i}function w1(i,n){var l=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(l!=null){var u,s,f,d,v=[],m=!0,h=!1;try{if(f=(l=l.call(i)).next,n===0){if(Object(l)!==l)return;m=!1}else for(;!(m=(u=f.call(l)).done)&&(v.push(u.value),v.length!==n);m=!0);}catch(g){h=!0,s=g}finally{try{if(!m&&l.return!=null&&(d=l.return(),Object(d)!==d))return}finally{if(h)throw s}}return v}}function Xc(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,u=Array(n);l<n;l++)u[l]=i[l];return u}function tg(i,n){if(i){if(typeof i=="string")return Xc(i,n);var l={}.toString.call(i).slice(8,-1);return l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set"?Array.from(i):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?Xc(i,n):void 0}}function T1(){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 jn(i,n){return E1(i)||w1(i,n)||tg(i,n)||T1()}function O1(i,n){if(i==null)return{};var l={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(n.indexOf(u)!==-1)continue;l[u]=i[u]}return l}function Un(i,n){if(i==null)return{};var l,u,s=O1(i,n);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(i);for(u=0;u<f.length;u++)l=f[u],n.indexOf(l)===-1&&{}.propertyIsEnumerable.call(i,l)&&(s[l]=i[l])}return s}var C1=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function x1(i){var n=i.defaultInputValue,l=n===void 0?"":n,u=i.defaultMenuIsOpen,s=u===void 0?!1:u,f=i.defaultValue,d=f===void 0?null:f,v=i.inputValue,m=i.menuIsOpen,h=i.onChange,g=i.onInputChange,y=i.onMenuClose,b=i.onMenuOpen,S=i.value,E=Un(i,C1),O=F.useState(v!==void 0?v:l),R=jn(O,2),j=R[0],X=R[1],Y=F.useState(m!==void 0?m:s),Q=jn(Y,2),M=Q[0],G=Q[1],U=F.useState(S!==void 0?S:d),J=jn(U,2),de=J[0],ze=J[1],be=F.useCallback(function(ee,Ee){typeof h=="function"&&h(ee,Ee),ze(ee)},[h]),W=F.useCallback(function(ee,Ee){var we;typeof g=="function"&&(we=g(ee,Ee)),X(we!==void 0?we:ee)},[g]),ne=F.useCallback(function(){typeof b=="function"&&b(),G(!0)},[b]),le=F.useCallback(function(){typeof y=="function"&&y(),G(!1)},[y]),ge=v!==void 0?v:j,D=m!==void 0?m:M,Z=S!==void 0?S:de;return he(he({},E),{},{inputValue:ge,menuIsOpen:D,onChange:be,onInputChange:W,onMenuClose:le,onMenuOpen:ne,value:Z})}function pe(){return pe=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var u in l)({}).hasOwnProperty.call(l,u)&&(i[u]=l[u])}return i},pe.apply(null,arguments)}function A1(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Fp(i,n){for(var l=0;l<n.length;l++){var u=n[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,eg(u.key),u)}}function z1(i,n,l){return n&&Fp(i.prototype,n),l&&Fp(i,l),Object.defineProperty(i,"prototype",{writable:!1}),i}function Qc(i,n){return Qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,u){return l.__proto__=u,l},Qc(i,n)}function M1(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),n&&Qc(i,n)}function Hu(i){return Hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hu(i)}function ng(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ng=function(){return!!i})()}function D1(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function R1(i,n){if(n&&(Ha(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D1(i)}function L1(i){var n=ng();return function(){var l,u=Hu(i);if(n){var s=Hu(this).constructor;l=Reflect.construct(u,arguments,s)}else l=u.apply(this,arguments);return R1(this,l)}}function j1(i){if(Array.isArray(i))return Xc(i)}function N1(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function q1(){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 ff(i){return j1(i)||N1(i)||tg(i)||q1()}function U1(i){if(i.sheet)return i.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===i)return document.styleSheets[n]}function V1(i){var n=document.createElement("style");return n.setAttribute("data-emotion",i.key),i.nonce!==void 0&&n.setAttribute("nonce",i.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var H1=(function(){function i(l){var u=this;this._insertTag=function(s){var f;u.tags.length===0?u.insertionPoint?f=u.insertionPoint.nextSibling:u.prepend?f=u.container.firstChild:f=u.before:f=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(s,f),u.tags.push(s)},this.isSpeedy=l.speedy===void 0?!0:l.speedy,this.tags=[],this.ctr=0,this.nonce=l.nonce,this.key=l.key,this.container=l.container,this.prepend=l.prepend,this.insertionPoint=l.insertionPoint,this.before=null}var n=i.prototype;return n.hydrate=function(u){u.forEach(this._insertTag)},n.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(V1(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var f=U1(s);try{f.insertRule(u,f.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(u));this.ctr++},n.flush=function(){this.tags.forEach(function(u){var s;return(s=u.parentNode)==null?void 0:s.removeChild(u)}),this.tags=[],this.ctr=0},i})(),vt="-ms-",Bu="-moz-",qe="-webkit-",ag="comm",df="rule",hf="decl",B1="@import",ig="@keyframes",G1="@layer",I1=Math.abs,Zu=String.fromCharCode,Y1=Object.assign;function $1(i,n){return mt(i,0)^45?(((n<<2^mt(i,0))<<2^mt(i,1))<<2^mt(i,2))<<2^mt(i,3):0}function rg(i){return i.trim()}function P1(i,n){return(i=n.exec(i))?i[0]:i}function Ue(i,n,l){return i.replace(n,l)}function Zc(i,n){return i.indexOf(n)}function mt(i,n){return i.charCodeAt(n)|0}function Ir(i,n,l){return i.slice(n,l)}function on(i){return i.length}function mf(i){return i.length}function _u(i,n){return n.push(i),i}function F1(i,n){return i.map(n).join("")}var Ku=1,Vi=1,lg=0,Ot=0,it=0,Hi="";function Ju(i,n,l,u,s,f,d){return{value:i,root:n,parent:l,type:u,props:s,children:f,line:Ku,column:Vi,length:d,return:""}}function qr(i,n){return Y1(Ju("",null,null,"",null,null,0),i,{length:-i.length},n)}function k1(){return it}function X1(){return it=Ot>0?mt(Hi,--Ot):0,Vi--,it===10&&(Vi=1,Ku--),it}function qt(){return it=Ot<lg?mt(Hi,Ot++):0,Vi++,it===10&&(Vi=1,Ku++),it}function dn(){return mt(Hi,Ot)}function Ru(){return Ot}function Xr(i,n){return Ir(Hi,i,n)}function Yr(i){switch(i){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 ug(i){return Ku=Vi=1,lg=on(Hi=i),Ot=0,[]}function sg(i){return Hi="",i}function Lu(i){return rg(Xr(Ot-1,Kc(i===91?i+2:i===40?i+1:i)))}function Q1(i){for(;(it=dn())&&it<33;)qt();return Yr(i)>2||Yr(it)>3?"":" "}function Z1(i,n){for(;--n&&qt()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return Xr(i,Ru()+(n<6&&dn()==32&&qt()==32))}function Kc(i){for(;qt();)switch(it){case i:return Ot;case 34:case 39:i!==34&&i!==39&&Kc(it);break;case 40:i===41&&Kc(i);break;case 92:qt();break}return Ot}function K1(i,n){for(;qt()&&i+it!==57;)if(i+it===84&&dn()===47)break;return"/*"+Xr(n,Ot-1)+"*"+Zu(i===47?i:qt())}function J1(i){for(;!Yr(dn());)qt();return Xr(i,Ot)}function W1(i){return sg(ju("",null,null,null,[""],i=ug(i),0,[0],i))}function ju(i,n,l,u,s,f,d,v,m){for(var h=0,g=0,y=d,b=0,S=0,E=0,O=1,R=1,j=1,X=0,Y="",Q=s,M=f,G=u,U=Y;R;)switch(E=X,X=qt()){case 40:if(E!=108&&mt(U,y-1)==58){Zc(U+=Ue(Lu(X),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:U+=Lu(X);break;case 9:case 10:case 13:case 32:U+=Q1(E);break;case 92:U+=Z1(Ru()-1,7);continue;case 47:switch(dn()){case 42:case 47:_u(eS(K1(qt(),Ru()),n,l),m);break;default:U+="/"}break;case 123*O:v[h++]=on(U)*j;case 125*O:case 59:case 0:switch(X){case 0:case 125:R=0;case 59+g:j==-1&&(U=Ue(U,/\f/g,"")),S>0&&on(U)-y&&_u(S>32?Xp(U+";",u,l,y-1):Xp(Ue(U," ","")+";",u,l,y-2),m);break;case 59:U+=";";default:if(_u(G=kp(U,n,l,h,g,s,v,Y,Q=[],M=[],y),f),X===123)if(g===0)ju(U,n,G,G,Q,f,y,v,M);else switch(b===99&&mt(U,3)===110?100:b){case 100:case 108:case 109:case 115:ju(i,G,G,u&&_u(kp(i,G,G,0,0,s,v,Y,s,Q=[],y),M),s,M,y,v,u?Q:M);break;default:ju(U,G,G,G,[""],M,0,v,M)}}h=g=S=0,O=j=1,Y=U="",y=d;break;case 58:y=1+on(U),S=E;default:if(O<1){if(X==123)--O;else if(X==125&&O++==0&&X1()==125)continue}switch(U+=Zu(X),X*O){case 38:j=g>0?1:(U+="\f",-1);break;case 44:v[h++]=(on(U)-1)*j,j=1;break;case 64:dn()===45&&(U+=Lu(qt())),b=dn(),g=y=on(Y=U+=J1(Ru())),X++;break;case 45:E===45&&on(U)==2&&(O=0)}}return f}function kp(i,n,l,u,s,f,d,v,m,h,g){for(var y=s-1,b=s===0?f:[""],S=mf(b),E=0,O=0,R=0;E<u;++E)for(var j=0,X=Ir(i,y+1,y=I1(O=d[E])),Y=i;j<S;++j)(Y=rg(O>0?b[j]+" "+X:Ue(X,/&\f/g,b[j])))&&(m[R++]=Y);return Ju(i,n,l,s===0?df:v,m,h,g)}function eS(i,n,l){return Ju(i,n,l,ag,Zu(k1()),Ir(i,2,-2),0)}function Xp(i,n,l,u){return Ju(i,n,l,hf,Ir(i,0,u),Ir(i,u+1,-1),u)}function Ai(i,n){for(var l="",u=mf(i),s=0;s<u;s++)l+=n(i[s],s,i,n)||"";return l}function tS(i,n,l,u){switch(i.type){case G1:if(i.children.length)break;case B1:case hf:return i.return=i.return||i.value;case ag:return"";case ig:return i.return=i.value+"{"+Ai(i.children,u)+"}";case df:i.value=i.props.join(",")}return on(l=Ai(i.children,u))?i.return=i.value+"{"+l+"}":""}function nS(i){var n=mf(i);return function(l,u,s,f){for(var d="",v=0;v<n;v++)d+=i[v](l,u,s,f)||"";return d}}function aS(i){return function(n){n.root||(n=n.return)&&i(n)}}function iS(i){var n=Object.create(null);return function(l){return n[l]===void 0&&(n[l]=i(l)),n[l]}}var rS=function(n,l,u){for(var s=0,f=0;s=f,f=dn(),s===38&&f===12&&(l[u]=1),!Yr(f);)qt();return Xr(n,Ot)},lS=function(n,l){var u=-1,s=44;do switch(Yr(s)){case 0:s===38&&dn()===12&&(l[u]=1),n[u]+=rS(Ot-1,l,u);break;case 2:n[u]+=Lu(s);break;case 4:if(s===44){n[++u]=dn()===58?"&\f":"",l[u]=n[u].length;break}default:n[u]+=Zu(s)}while(s=qt());return n},uS=function(n,l){return sg(lS(ug(n),l))},Qp=new WeakMap,sS=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var l=n.value,u=n.parent,s=n.column===u.column&&n.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(n.props.length===1&&l.charCodeAt(0)!==58&&!Qp.get(u))&&!s){Qp.set(n,!0);for(var f=[],d=uS(l,f),v=u.props,m=0,h=0;m<d.length;m++)for(var g=0;g<v.length;g++,h++)n.props[h]=f[m]?d[m].replace(/&\f/g,v[g]):v[g]+" "+d[m]}}},oS=function(n){if(n.type==="decl"){var l=n.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(n.return="",n.value="")}};function og(i,n){switch($1(i,n)){case 5103:return qe+"print-"+i+i;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+i+i;case 5349:case 4246:case 4810:case 6968:case 2756:return qe+i+Bu+i+vt+i+i;case 6828:case 4268:return qe+i+vt+i+i;case 6165:return qe+i+vt+"flex-"+i+i;case 5187:return qe+i+Ue(i,/(\w+).+(:[^]+)/,qe+"box-$1$2"+vt+"flex-$1$2")+i;case 5443:return qe+i+vt+"flex-item-"+Ue(i,/flex-|-self/,"")+i;case 4675:return qe+i+vt+"flex-line-pack"+Ue(i,/align-content|flex-|-self/,"")+i;case 5548:return qe+i+vt+Ue(i,"shrink","negative")+i;case 5292:return qe+i+vt+Ue(i,"basis","preferred-size")+i;case 6060:return qe+"box-"+Ue(i,"-grow","")+qe+i+vt+Ue(i,"grow","positive")+i;case 4554:return qe+Ue(i,/([^-])(transform)/g,"$1"+qe+"$2")+i;case 6187:return Ue(Ue(Ue(i,/(zoom-|grab)/,qe+"$1"),/(image-set)/,qe+"$1"),i,"")+i;case 5495:case 3959:return Ue(i,/(image-set\([^]*)/,qe+"$1$`$1");case 4968:return Ue(Ue(i,/(.+:)(flex-)?(.*)/,qe+"box-pack:$3"+vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qe+i+i;case 4095:case 3583:case 4068:case 2532:return Ue(i,/(.+)-inline(.+)/,qe+"$1$2")+i;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(on(i)-1-n>6)switch(mt(i,n+1)){case 109:if(mt(i,n+4)!==45)break;case 102:return Ue(i,/(.+:)(.+)-([^]+)/,"$1"+qe+"$2-$3$1"+Bu+(mt(i,n+3)==108?"$3":"$2-$3"))+i;case 115:return~Zc(i,"stretch")?og(Ue(i,"stretch","fill-available"),n)+i:i}break;case 4949:if(mt(i,n+1)!==115)break;case 6444:switch(mt(i,on(i)-3-(~Zc(i,"!important")&&10))){case 107:return Ue(i,":",":"+qe)+i;case 101:return Ue(i,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qe+(mt(i,14)===45?"inline-":"")+"box$3$1"+qe+"$2$3$1"+vt+"$2box$3")+i}break;case 5936:switch(mt(i,n+11)){case 114:return qe+i+vt+Ue(i,/[svh]\w+-[tblr]{2}/,"tb")+i;case 108:return qe+i+vt+Ue(i,/[svh]\w+-[tblr]{2}/,"tb-rl")+i;case 45:return qe+i+vt+Ue(i,/[svh]\w+-[tblr]{2}/,"lr")+i}return qe+i+vt+i+i}return i}var cS=function(n,l,u,s){if(n.length>-1&&!n.return)switch(n.type){case hf:n.return=og(n.value,n.length);break;case ig:return Ai([qr(n,{value:Ue(n.value,"@","@"+qe)})],s);case df:if(n.length)return F1(n.props,function(f){switch(P1(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ai([qr(n,{props:[Ue(f,/:(read-\w+)/,":"+Bu+"$1")]})],s);case"::placeholder":return Ai([qr(n,{props:[Ue(f,/:(plac\w+)/,":"+qe+"input-$1")]}),qr(n,{props:[Ue(f,/:(plac\w+)/,":"+Bu+"$1")]}),qr(n,{props:[Ue(f,/:(plac\w+)/,vt+"input-$1")]})],s)}return""})}},fS=[cS],dS=function(n){var l=n.key;if(l==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(O){var R=O.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var s=n.stylisPlugins||fS,f={},d,v=[];d=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(O){for(var R=O.getAttribute("data-emotion").split(" "),j=1;j<R.length;j++)f[R[j]]=!0;v.push(O)});var m,h=[sS,oS];{var g,y=[tS,aS(function(O){g.insert(O)})],b=nS(h.concat(s,y)),S=function(R){return Ai(W1(R),b)};m=function(R,j,X,Y){g=X,S(R?R+"{"+j.styles+"}":j.styles),Y&&(E.inserted[j.name]=!0)}}var E={key:l,sheet:new H1({key:l,container:d,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:f,registered:{},insert:m};return E.sheet.hydrate(v),E},Tc={exports:{}},Ve={};var Zp;function hS(){if(Zp)return Ve;Zp=1;var i=typeof Symbol=="function"&&Symbol.for,n=i?Symbol.for("react.element"):60103,l=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,f=i?Symbol.for("react.profiler"):60114,d=i?Symbol.for("react.provider"):60109,v=i?Symbol.for("react.context"):60110,m=i?Symbol.for("react.async_mode"):60111,h=i?Symbol.for("react.concurrent_mode"):60111,g=i?Symbol.for("react.forward_ref"):60112,y=i?Symbol.for("react.suspense"):60113,b=i?Symbol.for("react.suspense_list"):60120,S=i?Symbol.for("react.memo"):60115,E=i?Symbol.for("react.lazy"):60116,O=i?Symbol.for("react.block"):60121,R=i?Symbol.for("react.fundamental"):60117,j=i?Symbol.for("react.responder"):60118,X=i?Symbol.for("react.scope"):60119;function Y(M){if(typeof M=="object"&&M!==null){var G=M.$$typeof;switch(G){case n:switch(M=M.type,M){case m:case h:case u:case f:case s:case y:return M;default:switch(M=M&&M.$$typeof,M){case v:case g:case E:case S:case d:return M;default:return G}}case l:return G}}}function Q(M){return Y(M)===h}return Ve.AsyncMode=m,Ve.ConcurrentMode=h,Ve.ContextConsumer=v,Ve.ContextProvider=d,Ve.Element=n,Ve.ForwardRef=g,Ve.Fragment=u,Ve.Lazy=E,Ve.Memo=S,Ve.Portal=l,Ve.Profiler=f,Ve.StrictMode=s,Ve.Suspense=y,Ve.isAsyncMode=function(M){return Q(M)||Y(M)===m},Ve.isConcurrentMode=Q,Ve.isContextConsumer=function(M){return Y(M)===v},Ve.isContextProvider=function(M){return Y(M)===d},Ve.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===n},Ve.isForwardRef=function(M){return Y(M)===g},Ve.isFragment=function(M){return Y(M)===u},Ve.isLazy=function(M){return Y(M)===E},Ve.isMemo=function(M){return Y(M)===S},Ve.isPortal=function(M){return Y(M)===l},Ve.isProfiler=function(M){return Y(M)===f},Ve.isStrictMode=function(M){return Y(M)===s},Ve.isSuspense=function(M){return Y(M)===y},Ve.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===u||M===h||M===f||M===s||M===y||M===b||typeof M=="object"&&M!==null&&(M.$$typeof===E||M.$$typeof===S||M.$$typeof===d||M.$$typeof===v||M.$$typeof===g||M.$$typeof===R||M.$$typeof===j||M.$$typeof===X||M.$$typeof===O)},Ve.typeOf=Y,Ve}var Kp;function mS(){return Kp||(Kp=1,Tc.exports=hS()),Tc.exports}var Oc,Jp;function pS(){if(Jp)return Oc;Jp=1;var i=mS(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={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},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[i.ForwardRef]=u,f[i.Memo]=s;function d(E){return i.isMemo(E)?s:f[E.$$typeof]||n}var v=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,b=Object.prototype;function S(E,O,R){if(typeof O!="string"){if(b){var j=y(O);j&&j!==b&&S(E,j,R)}var X=m(O);h&&(X=X.concat(h(O)));for(var Y=d(E),Q=d(O),M=0;M<X.length;++M){var G=X[M];if(!l[G]&&!(R&&R[G])&&!(Q&&Q[G])&&!(Y&&Y[G])){var U=g(O,G);try{v(E,G,U)}catch{}}}}return E}return Oc=S,Oc}pS();var vS=!0;function gS(i,n,l){var u="";return l.split(" ").forEach(function(s){i[s]!==void 0?n.push(i[s]+";"):s&&(u+=s+" ")}),u}var cg=function(n,l,u){var s=n.key+"-"+l.name;(u===!1||vS===!1)&&n.registered[s]===void 0&&(n.registered[s]=l.styles)},yS=function(n,l,u){cg(n,l,u);var s=n.key+"-"+l.name;if(n.inserted[l.name]===void 0){var f=l;do n.insert(l===f?"."+s:"",f,n.sheet,!0),f=f.next;while(f!==void 0)}};function bS(i){for(var n=0,l,u=0,s=i.length;s>=4;++u,s-=4)l=i.charCodeAt(u)&255|(i.charCodeAt(++u)&255)<<8|(i.charCodeAt(++u)&255)<<16|(i.charCodeAt(++u)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,n=(l&65535)*1540483477+((l>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(s){case 3:n^=(i.charCodeAt(u+2)&255)<<16;case 2:n^=(i.charCodeAt(u+1)&255)<<8;case 1:n^=i.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 _S={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},SS=/[A-Z]|^ms/g,ES=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fg=function(n){return n.charCodeAt(1)===45},Wp=function(n){return n!=null&&typeof n!="boolean"},Cc=iS(function(i){return fg(i)?i:i.replace(SS,"-$&").toLowerCase()}),ev=function(n,l){switch(n){case"animation":case"animationName":if(typeof l=="string")return l.replace(ES,function(u,s,f){return cn={name:s,styles:f,next:cn},s})}return _S[n]!==1&&!fg(n)&&typeof l=="number"&&l!==0?l+"px":l};function $r(i,n,l){if(l==null)return"";var u=l;if(u.__emotion_styles!==void 0)return u;switch(typeof l){case"boolean":return"";case"object":{var s=l;if(s.anim===1)return cn={name:s.name,styles:s.styles,next:cn},s.name;var f=l;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)cn={name:d.name,styles:d.styles,next:cn},d=d.next;var v=f.styles+";";return v}return wS(i,n,l)}case"function":{if(i!==void 0){var m=cn,h=l(i);return cn=m,$r(i,n,h)}break}}var g=l;return g}function wS(i,n,l){var u="";if(Array.isArray(l))for(var s=0;s<l.length;s++)u+=$r(i,n,l[s])+";";else for(var f in l){var d=l[f];if(typeof d!="object"){var v=d;Wp(v)&&(u+=Cc(f)+":"+ev(f,v)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&n==null)for(var m=0;m<d.length;m++)Wp(d[m])&&(u+=Cc(f)+":"+ev(f,d[m])+";");else{var h=$r(i,n,d);switch(f){case"animation":case"animationName":{u+=Cc(f)+":"+h+";";break}default:u+=f+"{"+h+"}"}}}return u}var tv=/label:\s*([^\s;{]+)\s*(;|$)/g,cn;function dg(i,n,l){if(i.length===1&&typeof i[0]=="object"&&i[0]!==null&&i[0].styles!==void 0)return i[0];var u=!0,s="";cn=void 0;var f=i[0];if(f==null||f.raw===void 0)u=!1,s+=$r(l,n,f);else{var d=f;s+=d[0]}for(var v=1;v<i.length;v++)if(s+=$r(l,n,i[v]),u){var m=f;s+=m[v]}tv.lastIndex=0;for(var h="",g;(g=tv.exec(s))!==null;)h+="-"+g[1];var y=bS(s)+h;return{name:y,styles:s,next:cn}}var TS=function(n){return n()},OS=Hp.useInsertionEffect?Hp.useInsertionEffect:!1,CS=OS||TS,hg=F.createContext(typeof HTMLElement<"u"?dS({key:"css"}):null);hg.Provider;var xS=function(n){return F.forwardRef(function(l,u){var s=F.useContext(hg);return n(l,s,u)})},AS=F.createContext({}),pf={}.hasOwnProperty,Jc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",zS=function(n,l){var u={};for(var s in l)pf.call(l,s)&&(u[s]=l[s]);return u[Jc]=n,u},MS=function(n){var l=n.cache,u=n.serialized,s=n.isStringTag;return cg(l,u,s),CS(function(){return yS(l,u,s)}),null},DS=xS(function(i,n,l){var u=i.css;typeof u=="string"&&n.registered[u]!==void 0&&(u=n.registered[u]);var s=i[Jc],f=[u],d="";typeof i.className=="string"?d=gS(n.registered,f,i.className):i.className!=null&&(d=i.className+" ");var v=dg(f,void 0,F.useContext(AS));d+=n.key+"-"+v.name;var m={};for(var h in i)pf.call(i,h)&&h!=="css"&&h!==Jc&&(m[h]=i[h]);return m.className=d,l&&(m.ref=l),F.createElement(F.Fragment,null,F.createElement(MS,{cache:n,serialized:v,isStringTag:typeof s=="string"}),F.createElement(s,m))}),RS=DS,oe=function(n,l){var u=arguments;if(l==null||!pf.call(l,"css"))return F.createElement.apply(void 0,u);var s=u.length,f=new Array(s);f[0]=RS,f[1]=zS(n,l);for(var d=2;d<s;d++)f[d]=u[d];return F.createElement.apply(null,f)};(function(i){var n;n||(n=i.JSX||(i.JSX={}))})(oe||(oe={}));function vf(){for(var i=arguments.length,n=new Array(i),l=0;l<i;l++)n[l]=arguments[l];return dg(n)}function LS(){var i=vf.apply(void 0,arguments),n="animation-"+i.name;return{name:n,styles:"@keyframes "+n+"{"+i.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function jS(i,n){return n||(n=i.slice(0)),Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(n)}}))}const NS=Math.min,qS=Math.max,Gu=Math.round,Su=Math.floor,Iu=i=>({x:i,y:i});function US(i){const{x:n,y:l,width:u,height:s}=i;return{width:u,height:s,top:l,left:n,right:n+u,bottom:l+s,x:n,y:l}}function Wu(){return typeof window<"u"}function mg(i){return vg(i)?(i.nodeName||"").toLowerCase():"#document"}function Nn(i){var n;return(i==null||(n=i.ownerDocument)==null?void 0:n.defaultView)||window}function pg(i){var n;return(n=(vg(i)?i.ownerDocument:i.document)||window.document)==null?void 0:n.documentElement}function vg(i){return Wu()?i instanceof Node||i instanceof Nn(i).Node:!1}function VS(i){return Wu()?i instanceof Element||i instanceof Nn(i).Element:!1}function gf(i){return Wu()?i instanceof HTMLElement||i instanceof Nn(i).HTMLElement:!1}function nv(i){return!Wu()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof Nn(i).ShadowRoot}function gg(i){const{overflow:n,overflowX:l,overflowY:u,display:s}=yf(i);return/auto|scroll|overlay|hidden|clip/.test(n+u+l)&&s!=="inline"&&s!=="contents"}let xc;function HS(){return xc==null&&(xc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),xc}function BS(i){return/^(html|body|#document)$/.test(mg(i))}function yf(i){return Nn(i).getComputedStyle(i)}function GS(i){if(mg(i)==="html")return i;const n=i.assignedSlot||i.parentNode||nv(i)&&i.host||pg(i);return nv(n)?n.host:n}function yg(i){const n=GS(i);return BS(n)?i.ownerDocument?i.ownerDocument.body:i.body:gf(n)&&gg(n)?n:yg(n)}function Yu(i,n,l){var u;n===void 0&&(n=[]),l===void 0&&(l=!0);const s=yg(i),f=s===((u=i.ownerDocument)==null?void 0:u.body),d=Nn(s);if(f){const v=Wc(d);return n.concat(d,d.visualViewport||[],gg(s)?s:[],v&&l?Yu(v):[])}else return n.concat(s,Yu(s,[],l))}function Wc(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function IS(i){const n=yf(i);let l=parseFloat(n.width)||0,u=parseFloat(n.height)||0;const s=gf(i),f=s?i.offsetWidth:l,d=s?i.offsetHeight:u,v=Gu(l)!==f||Gu(u)!==d;return v&&(l=f,u=d),{width:l,height:u,$:v}}function bf(i){return VS(i)?i:i.contextElement}function av(i){const n=bf(i);if(!gf(n))return Iu(1);const l=n.getBoundingClientRect(),{width:u,height:s,$:f}=IS(n);let d=(f?Gu(l.width):l.width)/u,v=(f?Gu(l.height):l.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!v||!Number.isFinite(v))&&(v=1),{x:d,y:v}}const YS=Iu(0);function $S(i){const n=Nn(i);return!HS()||!n.visualViewport?YS:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function PS(i,n,l){return!1}function iv(i,n,l,u){n===void 0&&(n=!1);const s=i.getBoundingClientRect(),f=bf(i);let d=Iu(1);n&&(d=av(i));const v=PS()?$S(f):Iu(0);let m=(s.left+v.x)/d.x,h=(s.top+v.y)/d.y,g=s.width/d.x,y=s.height/d.y;if(f){const b=Nn(f),S=u;let E=b,O=Wc(E);for(;O&&u&&S!==E;){const R=av(O),j=O.getBoundingClientRect(),X=yf(O),Y=j.left+(O.clientLeft+parseFloat(X.paddingLeft))*R.x,Q=j.top+(O.clientTop+parseFloat(X.paddingTop))*R.y;m*=R.x,h*=R.y,g*=R.x,y*=R.y,m+=Y,h+=Q,E=Nn(O),O=Wc(E)}}return US({width:g,height:y,x:m,y:h})}function bg(i,n){return i.x===n.x&&i.y===n.y&&i.width===n.width&&i.height===n.height}function FS(i,n){let l=null,u;const s=pg(i);function f(){var v;clearTimeout(u),(v=l)==null||v.disconnect(),l=null}function d(v,m){v===void 0&&(v=!1),m===void 0&&(m=1),f();const h=i.getBoundingClientRect(),{left:g,top:y,width:b,height:S}=h;if(v||n(),!b||!S)return;const E=Su(y),O=Su(s.clientWidth-(g+b)),R=Su(s.clientHeight-(y+S)),j=Su(g),Y={rootMargin:-E+"px "+-O+"px "+-R+"px "+-j+"px",threshold:qS(0,NS(1,m))||1};let Q=!0;function M(G){const U=G[0].intersectionRatio;if(U!==m){if(!Q)return d();U?d(!1,U):u=setTimeout(()=>{d(!1,1e-7)},1e3)}U===1&&!bg(h,i.getBoundingClientRect())&&d(),Q=!1}try{l=new IntersectionObserver(M,{...Y,root:s.ownerDocument})}catch{l=new IntersectionObserver(M,Y)}l.observe(i)}return d(!0),f}function kS(i,n,l,u){u===void 0&&(u={});const{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:m=!1}=u,h=bf(i),g=s||f?[...h?Yu(h):[],...n?Yu(n):[]]:[];g.forEach(j=>{s&&j.addEventListener("scroll",l,{passive:!0}),f&&j.addEventListener("resize",l)});const y=h&&v?FS(h,l):null;let b=-1,S=null;d&&(S=new ResizeObserver(j=>{let[X]=j;X&&X.target===h&&S&&n&&(S.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var Y;(Y=S)==null||Y.observe(n)})),l()}),h&&!m&&S.observe(h),n&&S.observe(n));let E,O=m?iv(i):null;m&&R();function R(){const j=iv(i);O&&!bg(O,j)&&l(),O=j,E=requestAnimationFrame(R)}return l(),()=>{var j;g.forEach(X=>{s&&X.removeEventListener("scroll",l),f&&X.removeEventListener("resize",l)}),y?.(),(j=S)==null||j.disconnect(),S=null,m&&cancelAnimationFrame(E)}}var ef=F.useLayoutEffect,XS=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],$u=function(){};function QS(i,n){return n?n[0]==="-"?i+n:i+"__"+n:i}function ZS(i,n){for(var l=arguments.length,u=new Array(l>2?l-2:0),s=2;s<l;s++)u[s-2]=arguments[s];var f=[].concat(u);if(n&&i)for(var d in n)n.hasOwnProperty(d)&&n[d]&&f.push("".concat(QS(i,d)));return f.filter(function(v){return v}).map(function(v){return String(v).trim()}).join(" ")}var rv=function(n){return rE(n)?n.filter(Boolean):Ha(n)==="object"&&n!==null?[n]:[]},_g=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 l=Un(n,XS);return he({},l)},Ke=function(n,l,u){var s=n.cx,f=n.getStyles,d=n.getClassNames,v=n.className;return{css:f(l,n),className:s(u??{},d(l,n),v)}};function es(i){return[document.documentElement,document.body,window].indexOf(i)>-1}function KS(i){return es(i)?window.innerHeight:i.clientHeight}function Sg(i){return es(i)?window.pageYOffset:i.scrollTop}function Pu(i,n){if(es(i)){window.scrollTo(0,n);return}i.scrollTop=n}function JS(i){var n=getComputedStyle(i),l=n.position==="absolute",u=/(auto|scroll)/;if(n.position==="fixed")return document.documentElement;for(var s=i;s=s.parentElement;)if(n=getComputedStyle(s),!(l&&n.position==="static")&&u.test(n.overflow+n.overflowY+n.overflowX))return s;return document.documentElement}function WS(i,n,l,u){return l*((i=i/u-1)*i*i+1)+n}function Eu(i,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:$u,s=Sg(i),f=n-s,d=10,v=0;function m(){v+=d;var h=WS(v,s,f,l);Pu(i,h),v<l?window.requestAnimationFrame(m):u(i)}m()}function lv(i,n){var l=i.getBoundingClientRect(),u=n.getBoundingClientRect(),s=n.offsetHeight/3;u.bottom+s>l.bottom?Pu(i,Math.min(n.offsetTop+n.clientHeight-i.offsetHeight+s,i.scrollHeight)):u.top-s<l.top&&Pu(i,Math.max(n.offsetTop-s,0))}function eE(i){var n=i.getBoundingClientRect();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width}}function uv(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function tE(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Eg=!1,nE={get passive(){return Eg=!0}},wu=typeof window<"u"?window:{};wu.addEventListener&&wu.removeEventListener&&(wu.addEventListener("p",$u,nE),wu.removeEventListener("p",$u,!1));var aE=Eg;function iE(i){return i!=null}function rE(i){return Array.isArray(i)}function Tu(i,n,l){return i?n:l}var lE=function(n){for(var l=arguments.length,u=new Array(l>1?l-1:0),s=1;s<l;s++)u[s-1]=arguments[s];var f=Object.entries(n).filter(function(d){var v=jn(d,1),m=v[0];return!u.includes(m)});return f.reduce(function(d,v){var m=jn(v,2),h=m[0],g=m[1];return d[h]=g,d},{})},uE=["children","innerProps"],sE=["children","innerProps"];function oE(i){var n=i.maxHeight,l=i.menuEl,u=i.minHeight,s=i.placement,f=i.shouldScroll,d=i.isFixedPosition,v=i.controlHeight,m=JS(l),h={placement:"bottom",maxHeight:n};if(!l||!l.offsetParent)return h;var g=m.getBoundingClientRect(),y=g.height,b=l.getBoundingClientRect(),S=b.bottom,E=b.height,O=b.top,R=l.offsetParent.getBoundingClientRect(),j=R.top,X=d?window.innerHeight:KS(m),Y=Sg(m),Q=parseInt(getComputedStyle(l).marginBottom,10),M=parseInt(getComputedStyle(l).marginTop,10),G=j-M,U=X-O,J=G+Y,de=y-Y-O,ze=S-X+Y+Q,be=Y+O-M,W=160;switch(s){case"auto":case"bottom":if(U>=E)return{placement:"bottom",maxHeight:n};if(de>=E&&!d)return f&&Eu(m,ze,W),{placement:"bottom",maxHeight:n};if(!d&&de>=u||d&&U>=u){f&&Eu(m,ze,W);var ne=d?U-Q:de-Q;return{placement:"bottom",maxHeight:ne}}if(s==="auto"||d){var le=n,ge=d?G:J;return ge>=u&&(le=Math.min(ge-Q-v,n)),{placement:"top",maxHeight:le}}if(s==="bottom")return f&&Pu(m,ze),{placement:"bottom",maxHeight:n};break;case"top":if(G>=E)return{placement:"top",maxHeight:n};if(J>=E&&!d)return f&&Eu(m,be,W),{placement:"top",maxHeight:n};if(!d&&J>=u||d&&G>=u){var D=n;return(!d&&J>=u||d&&G>=u)&&(D=d?G-M:J-M),f&&Eu(m,be,W),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:n};default:throw new Error('Invalid placement provided "'.concat(s,'".'))}return h}function cE(i){var n={bottom:"top",top:"bottom"};return i?n[i]:"bottom"}var wg=function(n){return n==="auto"?"bottom":n},fE=function(n,l){var u,s=n.placement,f=n.theme,d=f.borderRadius,v=f.spacing,m=f.colors;return he((u={label:"menu"},Br(u,cE(s),"100%"),Br(u,"position","absolute"),Br(u,"width","100%"),Br(u,"zIndex",1),u),l?{}:{backgroundColor:m.neutral0,borderRadius:d,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:v.menuGutter,marginTop:v.menuGutter})},Tg=F.createContext(null),dE=function(n){var l=n.children,u=n.minMenuHeight,s=n.maxMenuHeight,f=n.menuPlacement,d=n.menuPosition,v=n.menuShouldScrollIntoView,m=n.theme,h=F.useContext(Tg)||{},g=h.setPortalPlacement,y=F.useRef(null),b=F.useState(s),S=jn(b,2),E=S[0],O=S[1],R=F.useState(null),j=jn(R,2),X=j[0],Y=j[1],Q=m.spacing.controlHeight;return ef(function(){var M=y.current;if(M){var G=d==="fixed",U=v&&!G,J=oE({maxHeight:s,menuEl:M,minHeight:u,placement:f,shouldScroll:U,isFixedPosition:G,controlHeight:Q});O(J.maxHeight),Y(J.placement),g?.(J.placement)}},[s,f,d,v,u,g,Q]),l({ref:y,placerProps:he(he({},n),{},{placement:X||wg(f),maxHeight:E})})},hE=function(n){var l=n.children,u=n.innerRef,s=n.innerProps;return oe("div",pe({},Ke(n,"menu",{menu:!0}),{ref:u},s),l)},mE=hE,pE=function(n,l){var u=n.maxHeight,s=n.theme.spacing.baseUnit;return he({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},l?{}:{paddingBottom:s,paddingTop:s})},vE=function(n){var l=n.children,u=n.innerProps,s=n.innerRef,f=n.isMulti;return oe("div",pe({},Ke(n,"menuList",{"menu-list":!0,"menu-list--is-multi":f}),{ref:s},u),l)},Og=function(n,l){var u=n.theme,s=u.spacing.baseUnit,f=u.colors;return he({textAlign:"center"},l?{}:{color:f.neutral40,padding:"".concat(s*2,"px ").concat(s*3,"px")})},gE=Og,yE=Og,bE=function(n){var l=n.children,u=l===void 0?"No options":l,s=n.innerProps,f=Un(n,uE);return oe("div",pe({},Ke(he(he({},f),{},{children:u,innerProps:s}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),s),u)},_E=function(n){var l=n.children,u=l===void 0?"Loading...":l,s=n.innerProps,f=Un(n,sE);return oe("div",pe({},Ke(he(he({},f),{},{children:u,innerProps:s}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),s),u)},SE=function(n){var l=n.rect,u=n.offset,s=n.position;return{left:l.left,position:s,top:u,width:l.width,zIndex:1}},EE=function(n){var l=n.appendTo,u=n.children,s=n.controlElement,f=n.innerProps,d=n.menuPlacement,v=n.menuPosition,m=F.useRef(null),h=F.useRef(null),g=F.useState(wg(d)),y=jn(g,2),b=y[0],S=y[1],E=F.useMemo(function(){return{setPortalPlacement:S}},[]),O=F.useState(null),R=jn(O,2),j=R[0],X=R[1],Y=F.useCallback(function(){if(s){var U=eE(s),J=v==="fixed"?0:window.pageYOffset,de=U[b]+J;(de!==j?.offset||U.left!==j?.rect.left||U.width!==j?.rect.width)&&X({offset:de,rect:U})}},[s,v,b,j?.offset,j?.rect.left,j?.rect.width]);ef(function(){Y()},[Y]);var Q=F.useCallback(function(){typeof h.current=="function"&&(h.current(),h.current=null),s&&m.current&&(h.current=kS(s,m.current,Y,{elementResize:"ResizeObserver"in window}))},[s,Y]);ef(function(){Q()},[Q]);var M=F.useCallback(function(U){m.current=U,Q()},[Q]);if(!l&&v!=="fixed"||!j)return null;var G=oe("div",pe({ref:M},Ke(he(he({},n),{},{offset:j.offset,position:v,rect:j.rect}),"menuPortal",{"menu-portal":!0}),f),u);return oe(Tg.Provider,{value:E},l?a1.createPortal(G,l):G)},wE=function(n){var l=n.isDisabled,u=n.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:l?"none":void 0,position:"relative"}},TE=function(n){var l=n.children,u=n.innerProps,s=n.isDisabled,f=n.isRtl;return oe("div",pe({},Ke(n,"container",{"--is-disabled":s,"--is-rtl":f}),u),l)},OE=function(n,l){var u=n.theme.spacing,s=n.isMulti,f=n.hasValue,d=n.selectProps.controlShouldRenderValue;return he({alignItems:"center",display:s&&f&&d?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},l?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},CE=function(n){var l=n.children,u=n.innerProps,s=n.isMulti,f=n.hasValue;return oe("div",pe({},Ke(n,"valueContainer",{"value-container":!0,"value-container--is-multi":s,"value-container--has-value":f}),u),l)},xE=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},AE=function(n){var l=n.children,u=n.innerProps;return oe("div",pe({},Ke(n,"indicatorsContainer",{indicators:!0}),u),l)},sv,zE=["size"],ME=["innerProps","isRtl","size"],DE={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Cg=function(n){var l=n.size,u=Un(n,zE);return oe("svg",pe({height:l,width:l,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:DE},u))},_f=function(n){return oe(Cg,pe({size:20},n),oe("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"}))},xg=function(n){return oe(Cg,pe({size:20},n),oe("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"}))},Ag=function(n,l){var u=n.isFocused,s=n.theme,f=s.spacing.baseUnit,d=s.colors;return he({label:"indicatorContainer",display:"flex",transition:"color 150ms"},l?{}:{color:u?d.neutral60:d.neutral20,padding:f*2,":hover":{color:u?d.neutral80:d.neutral40}})},RE=Ag,LE=function(n){var l=n.children,u=n.innerProps;return oe("div",pe({},Ke(n,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),l||oe(xg,null))},jE=Ag,NE=function(n){var l=n.children,u=n.innerProps;return oe("div",pe({},Ke(n,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),l||oe(_f,null))},qE=function(n,l){var u=n.isDisabled,s=n.theme,f=s.spacing.baseUnit,d=s.colors;return he({label:"indicatorSeparator",alignSelf:"stretch",width:1},l?{}:{backgroundColor:u?d.neutral10:d.neutral20,marginBottom:f*2,marginTop:f*2})},UE=function(n){var l=n.innerProps;return oe("span",pe({},l,Ke(n,"indicatorSeparator",{"indicator-separator":!0})))},VE=LS(sv||(sv=jS([`
1
+ function p_(i,n){for(var l=0;l<n.length;l++){const u=n[l];if(typeof u!="string"&&!Array.isArray(u)){for(const s in u)if(s!=="default"&&!(s in i)){const f=Object.getOwnPropertyDescriptor(u,s);f&&Object.defineProperty(i,s,f.get?f:{enumerable:!0,get:()=>u[s]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(s){if(s.ep)return;s.ep=!0;const f=l(s);fetch(s.href,f)}})();var hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zu(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var bc={exports:{}},Lr={};var Tp;function v_(){if(Tp)return Lr;Tp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(u,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var v in s)v!=="key"&&(f[v]=s[v])}else f=s;return s=f.ref,{$$typeof:i,type:u,key:d,ref:s!==void 0?s:null,props:f}}return Lr.Fragment=n,Lr.jsx=l,Lr.jsxs=l,Lr}var wp;function g_(){return wp||(wp=1,bc.exports=v_()),bc.exports}var w=g_(),mu={exports:{}},lt={},Op;function of(){if(Op)return lt;Op=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.DATA_CLONE_ERROR=lt.MESSAGE=lt.REJECTED=lt.FULFILLED=lt.REPLY=lt.CALL=lt.HANDSHAKE_REPLY=lt.HANDSHAKE=void 0;const i="handshake";lt.HANDSHAKE=i;const n="handshake-reply";lt.HANDSHAKE_REPLY=n;const l="call";lt.CALL=l;const u="reply";lt.REPLY=u;const s="fulfilled";lt.FULFILLED=s;const f="rejected";lt.REJECTED=f;const d="message";lt.MESSAGE=d;const v="DataCloneError";return lt.DATA_CLONE_ERROR=v,lt}var en={},Cp;function kv(){if(Cp)return en;Cp=1,Object.defineProperty(en,"__esModule",{value:!0}),en.ERR_NO_IFRAME_SRC=en.ERR_NOT_IN_IFRAME=en.ERR_CONNECTION_TIMEOUT=en.ERR_CONNECTION_DESTROYED=void 0;const i="ConnectionDestroyed";en.ERR_CONNECTION_DESTROYED=i;const n="ConnectionTimeout";en.ERR_CONNECTION_TIMEOUT=n;const l="NotInIframe";en.ERR_NOT_IN_IFRAME=l;const u="NoIframeSrc";return en.ERR_NO_IFRAME_SRC=u,en}var pu={exports:{}},xp;function y_(){return xp||(xp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=()=>{const u=[];let s=!1;return{destroy(){s=!0,u.forEach(f=>{f()})},onDestroy(f){s?f():u.push(f)}}};n.default=l,i.exports=n.default})(pu,pu.exports)),pu.exports}var vu={exports:{}},Ra={},Ap;function Xv(){if(Ap)return Ra;Ap=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.deserializeError=Ra.serializeError=void 0;const i=l=>{let u=l.name,s=l.message,f=l.stack;return{name:u,message:s,stack:f}};Ra.serializeError=i;const n=l=>{const u=new Error;return Object.keys(l).forEach(s=>u[s]=l[s]),u};return Ra.deserializeError=n,Ra}var zp;function b_(){return zp||(zp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=of(),u=Xv(),s=(f,d,v)=>{const h=f.localName,m=f.local,g=f.remote,y=f.originForSending,b=f.originForReceiving;let S=!1;v(`${h}: Connecting call receiver`);const E=O=>{if(O.source!==g||O.data.penpal!==l.CALL)return;if(O.origin!==b){v(`${h} received message from origin ${O.origin} which did not match expected origin ${b}`);return}const R=O.data,j=R.methodName,X=R.args,Y=R.id;v(`${h}: Received ${j}() call`);const Q=M=>G=>{if(v(`${h}: Sending ${j}() reply`),S){v(`${h}: Unable to send ${j}() reply due to destroyed connection`);return}const U={penpal:l.REPLY,id:Y,resolution:M,returnValue:G};M===l.REJECTED&&G instanceof Error&&(U.returnValue=(0,u.serializeError)(G),U.returnValueIsError=!0);try{g.postMessage(U,y)}catch(J){throw J.name===l.DATA_CLONE_ERROR&&g.postMessage({penpal:l.REPLY,id:Y,resolution:l.REJECTED,returnValue:(0,u.serializeError)(J),returnValueIsError:!0},y),J}};new Promise(M=>M(d[j].apply(d,X))).then(Q(l.FULFILLED),Q(l.REJECTED))};return m.addEventListener(l.MESSAGE,E),()=>{S=!0,m.removeEventListener(l.MESSAGE,E)}};n.default=s,i.exports=n.default})(vu,vu.exports)),vu.exports}var gu={exports:{}},yu={exports:{}},Mp;function __(){return Mp||(Mp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;let l=0;var u=()=>++l;n.default=u,i.exports=n.default})(yu,yu.exports)),yu.exports}var Dp;function S_(){return Dp||(Dp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=of(),u=kv(),s=d(__()),f=Xv();function d(h){return h&&h.__esModule?h:{default:h}}var v=(h,m,g,y,b)=>{const S=m.localName,E=m.local,O=m.remote,R=m.originForSending,j=m.originForReceiving;let X=!1;b(`${S}: Connecting call sender`);const Y=Q=>function(){for(var M=arguments.length,G=new Array(M),U=0;U<M;U++)G[U]=arguments[U];b(`${S}: Sending ${Q}() call`);let J;try{O.closed&&(J=!0)}catch{J=!0}if(J&&y(),X){const de=new Error(`Unable to send ${Q}() call due to destroyed connection`);throw de.code=u.ERR_CONNECTION_DESTROYED,de}return new Promise((de,ze)=>{const be=(0,s.default)(),W=ne=>{if(ne.source!==O||ne.data.penpal!==l.REPLY||ne.data.id!==be)return;if(ne.origin!==j){b(`${S} received message from origin ${ne.origin} which did not match expected origin ${j}`);return}b(`${S}: Received ${Q}() reply`),E.removeEventListener(l.MESSAGE,W);let le=ne.data.returnValue;ne.data.returnValueIsError&&(le=(0,f.deserializeError)(le)),(ne.data.resolution===l.FULFILLED?de:ze)(le)};E.addEventListener(l.MESSAGE,W),O.postMessage({penpal:l.CALL,id:be,methodName:Q,args:G},R)})};return g.reduce((Q,M)=>(Q[M]=Y(M),Q),h),()=>{X=!0}};n.default=v,i.exports=n.default})(gu,gu.exports)),gu.exports}var bu={exports:{}},Rp;function E_(){return Rp||(Rp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=u=>function(){if(u){for(var s=arguments.length,f=new Array(s),d=0;d<s;d++)f[d]=arguments[d];console.log("[Penpal]",...f)}};n.default=l,i.exports=n.default})(bu,bu.exports)),bu.exports}var Lp;function T_(){return Lp||(Lp=1,(function(i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var l=of(),u=kv(),s=h(y_()),f=h(b_()),d=h(S_()),v=h(E_());function h(g){return g&&g.__esModule?g:{default:g}}var m=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=y.parentOrigin,S=b===void 0?"*":b,E=y.methods,O=E===void 0?{}:E,R=y.timeout,j=y.debug;const X=(0,v.default)(j);if(window===window.top){const de=new Error("connectToParent() must be called within an iframe");throw de.code=u.ERR_NOT_IN_IFRAME,de}const Y=(0,s.default)(),Q=Y.destroy,M=Y.onDestroy,G=window,U=G.parent;return{promise:new Promise((de,ze)=>{let be;R!==void 0&&(be=setTimeout(()=>{const ne=new Error(`Connection to parent timed out after ${R}ms`);ne.code=u.ERR_CONNECTION_TIMEOUT,ze(ne),Q()},R));const W=ne=>{try{clearTimeout()}catch{return}if(ne.source!==U||ne.data.penpal!==l.HANDSHAKE_REPLY)return;if(S!=="*"&&S!==ne.origin){X(`Child received handshake reply from origin ${ne.origin} which did not match expected origin ${S}`);return}X("Child: Received handshake reply"),G.removeEventListener(l.MESSAGE,W);const le={localName:"Child",local:G,remote:U,originForSending:ne.origin==="null"?"*":ne.origin,originForReceiving:ne.origin},ge={},D=(0,f.default)(le,O,X);M(D);const Z=(0,d.default)(ge,le,ne.data.methodNames,Q,X);M(Z),clearTimeout(be),de(ge)};G.addEventListener(l.MESSAGE,W),M(()=>{G.removeEventListener(l.MESSAGE,W);const ne=new Error("Connection destroyed");ne.code=u.ERR_CONNECTION_DESTROYED,ze(ne)}),X("Child: Sending handshake"),U.postMessage({penpal:l.HANDSHAKE,methodNames:Object.keys(O)},S)}),destroy:Q}};n.default=m,i.exports=n.default})(mu,mu.exports)),mu.exports}var w_=T_();const O_=Zu(w_);var fn=function(){return fn=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},fn.apply(this,arguments)};function jp(i,n){for(var l=fn({},i),u=0,s=n;u<s.length;u++){var f=s[u];delete l[f]}return l}function _c(i){return function(n,l){if(i){for(var u={},s=0,f=n;s<f.length;s++){var d=f[s],v=l.itemTypes[d.relationships.item_type.data.id];u[d.id]=i(d,fn(fn({},l),{itemType:v}))}return u}}}function qn(i,n){var l=function(u,s,f){if(f.mode===i){var d=x_(s),v=function(h){n(u,fn(fn(fn({},s),h),d))};return v(f),v}};return l.mode=i,l}function kr(i,n){var l=function(u,s,f){if(f.mode===i){var d=function(v){n(u,fn(fn({},s),v))};return d(f),d}};return l.mode=i,l}function C_(){for(var i=document.querySelectorAll("body *"),n=0,l=0;l<i.length;l++)n=Math.max(i[l].getBoundingClientRect().bottom,n);return n}var x_=function(i){var n=null,l=function(m){var g=m===void 0?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,C_()):m;g!==n&&(i.setHeight(g),n=g)},u=null,s=null,f=function(){return l()},d=function(){l(),u||(u=new ResizeObserver(f),u.observe(document.documentElement)),s||(s=new MutationObserver(f),s.observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))},v=function(){u&&(u.disconnect(),u=null),s&&(s.disconnect(),s=null)},h=function(){return!!u};return{updateHeight:l,startAutoResizer:d,stopAutoResizer:v,isAutoResizerActive:h}},A_=qn("renderAssetSource",function(i,n){i.renderAssetSource&&i.renderAssetSource(n.assetSourceId,n)}),z_=qn("renderConfigScreen",function(i,n){i.renderConfigScreen&&i.renderConfigScreen(n)}),M_=qn("renderFieldExtension",function(i,n){i.renderFieldExtension&&i.renderFieldExtension(n.fieldExtensionId,n)}),D_=kr("renderInspector",function(i,n){i.renderInspector&&i.renderInspector(n.inspectorId,n)}),R_=kr("renderInspectorPanel",function(i,n){i.renderInspectorPanel&&i.renderInspectorPanel(n.panelId,n)}),L_=qn("renderItemCollectionOutlet",function(i,n){i.renderItemCollectionOutlet&&i.renderItemCollectionOutlet(n.itemCollectionOutletId,n)}),j_=qn("renderItemFormOutlet",function(i,n){i.renderItemFormOutlet&&i.renderItemFormOutlet(n.itemFormOutletId,n)}),N_=kr("renderItemFormSidebar",function(i,n){i.renderItemFormSidebar&&i.renderItemFormSidebar(n.sidebarId,n)}),q_=qn("renderItemFormSidebarPanel",function(i,n){i.renderItemFormSidebarPanel&&i.renderItemFormSidebarPanel(n.sidebarPaneId,n)}),U_=qn("renderManualFieldExtensionConfigScreen",function(i,n){i.renderManualFieldExtensionConfigScreen&&i.renderManualFieldExtensionConfigScreen(n.fieldExtensionId,n)}),V_=qn("renderModal",function(i,n){i.renderModal&&i.renderModal(n.modalId,n)}),H_=kr("renderPage",function(i,n){i.renderPage&&i.renderPage(n.pageId,n)}),B_=kr("renderUploadSidebar",function(i,n){i.renderUploadSidebar&&i.renderUploadSidebar(n.sidebarId,n)}),G_=qn("renderUploadSidebarPanel",function(i,n){i.renderUploadSidebarPanel&&i.renderUploadSidebarPanel(n.sidebarPaneId,n)}),Xt=function(){return Xt=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Xt.apply(this,arguments)},I_=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})},Y_=function(i,n){var l={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},u,s,f,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=v(0),d.throw=v(1),d.return=v(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(m){return function(g){return h([m,g])}}function h(m){if(u)throw new TypeError("Generator is already executing.");for(;d&&(d=0,m[0]&&(l=0)),l;)try{if(u=1,s&&(f=m[0]&2?s.return:m[0]?s.throw||((f=s.return)&&f.call(s),0):s.next)&&!(f=f.call(s,m[1])).done)return f;switch(s=0,f&&(m=[m[0]&2,f.value]),m[0]){case 0:case 1:f=m;break;case 4:return l.label++,{value:m[1],done:!1};case 5:l.label++,s=m[1],m=[0];continue;case 7:m=l.ops.pop(),l.trys.pop();continue;default:if(f=l.trys,!(f=f.length>0&&f[f.length-1])&&(m[0]===6||m[0]===2)){l=0;continue}if(m[0]===3&&(!f||m[1]>f[0]&&m[1]<f[3])){l.label=m[1];break}if(m[0]===6&&l.label<f[1]){l.label=f[1],f=m;break}if(f&&l.label<f[2]){l.label=f[2],l.ops.push(m);break}f[2]&&l.ops.pop(),l.trys.pop();continue}m=n.call(i,l)}catch(g){m=[6,g],s=0}finally{u=f=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},Np=function(i,n,l){if(l||arguments.length===2)for(var u=0,s=n.length,f;u<s;u++)(f||!(u in n))&&(f||(f=Array.prototype.slice.call(n,0,u)),f[u]=n[u]);return i.concat(f||Array.prototype.slice.call(n))};function qp(i){if(!(typeof document>"u")){var n=i?.colorScheme;n!=="light"&&n!=="dark"||document.documentElement.dataset.colorScheme!==n&&(document.documentElement.dataset.colorScheme=n,document.documentElement.style.colorScheme=n)}}function $_(){return I_(this,arguments,void 0,function(i){var n,l,u,s,f,d,v,h,m,g,y,b;return i===void 0&&(i={}),Y_(this,function(S){switch(S.label){case 0:return n=null,l=null,u=Xt(Xt({},i),{overrideFieldExtensions:_c(i.overrideFieldExtensions),customMarksForStructuredTextField:_c(i.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:_c(i.customBlockStylesForStructuredTextField)}),s=O_({methods:Xt(Xt({sdkVersion:function(){return"0.3.1"},implementedHooks:function(){return Object.fromEntries(Object.keys(i).map(function(E){return[E,!0]}))}},Object.fromEntries(Object.entries(u).filter(function(E){var O=E[0];return!O.startsWith("render")}))),{onChange:function(E){qp(E),n&&n(E)},callMethodMergingBootCtx:function(E,O,R,j,X){return l?l(E,O,R,j,X):null}})}),[4,s.promise];case 1:return f=S.sent(),[4,f.getSettings()];case 2:for(d=S.sent(),qp(d),d.mode==="onBoot"&&(v=d,n=function(E){v=E},l=function(E,O,R,j,X){var Y;if(E in u)return(Y=u)[E].apply(Y,Np(Np([],O,!1),[Xt(Xt(Xt(Xt({},jp(f,["getSettings","setHeight"])),jp(v,["mode","bodyPadding"])),Object.fromEntries(j.map(function(Q){return[Q,function(){for(var G=[],U=0;U<arguments.length;U++)G[U]=arguments[U];return f.callAdditionalCtxMethod(X,Q,G)}]}))),R)],!1))},u.onBoot&&u.onBoot(Xt(Xt({},f),v))),h={renderAssetSource:A_,renderConfigScreen:z_,renderFieldExtension:M_,renderItemCollectionOutlet:L_,renderItemFormOutlet:j_,renderItemFormSidebar:N_,renderItemFormSidebarPanel:q_,renderManualFieldExtensionConfigScreen:U_,renderModal:V_,renderPage:H_,renderInspector:D_,renderInspectorPanel:R_,renderUploadSidebar:B_,renderUploadSidebarPanel:G_},m=0,g=Object.values(h);m<g.length;m++)if(y=g[m],b=y(u,f,d),b){n=b;break}return[2]}})})}var Sc={exports:{}};var Up;function P_(){return Up||(Up=1,(function(i){(function(){var n={}.hasOwnProperty;function l(){for(var f="",d=0;d<arguments.length;d++){var v=arguments[d];v&&(f=s(f,u(v)))}return f}function u(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return l.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var v in f)n.call(f,v)&&f[v]&&(d=s(d,v));return d}function s(f,d){return d?f?f+" "+d:f+d:f}i.exports?(l.default=l,i.exports=l):window.classNames=l})()})(Sc)),Sc.exports}var F_=P_();const hn=Zu(F_);var Ec={exports:{}},ye={};var Vp;function k_(){if(Vp)return ye;Vp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=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 E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,R={};function j(C,V,K){this.props=C,this.context=V,this.refs=R,this.updater=K||E}j.prototype.isReactComponent={},j.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")},j.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function X(){}X.prototype=j.prototype;function Y(C,V,K){this.props=C,this.context=V,this.refs=R,this.updater=K||E}var Q=Y.prototype=new X;Q.constructor=Y,O(Q,j.prototype),Q.isPureReactComponent=!0;var M=Array.isArray;function G(){}var U={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function de(C,V,K){var te=K.ref;return{$$typeof:i,type:C,key:V,ref:te!==void 0?te:null,props:K}}function ze(C,V){return de(C.type,V,C.props)}function be(C){return typeof C=="object"&&C!==null&&C.$$typeof===i}function W(C){var V={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(K){return V[K]})}var ne=/\/+/g;function le(C,V){return typeof C=="object"&&C!==null&&C.key!=null?W(""+C.key):V.toString(36)}function ge(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(G,G):(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 D(C,V,K,te,ce){var fe=typeof C;(fe==="undefined"||fe==="boolean")&&(C=null);var ue=!1;if(C===null)ue=!0;else switch(fe){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(C.$$typeof){case i:case n:ue=!0;break;case g:return ue=C._init,D(ue(C._payload),V,K,te,ce)}}if(ue)return ce=ce(C),ue=te===""?"."+le(C,0):te,M(ce)?(K="",ue!=null&&(K=ue.replace(ne,"$&/")+"/"),D(ce,V,K,"",function(nn){return nn})):ce!=null&&(be(ce)&&(ce=ze(ce,K+(ce.key==null||C&&C.key===ce.key?"":(""+ce.key).replace(ne,"$&/")+"/")+ue)),V.push(ce)),1;ue=0;var De=te===""?".":te+":";if(M(C))for(var Re=0;Re<C.length;Re++)te=C[Re],fe=De+le(te,Re),ue+=D(te,V,K,fe,ce);else if(Re=S(C),typeof Re=="function")for(C=Re.call(C),Re=0;!(te=C.next()).done;)te=te.value,fe=De+le(te,Re++),ue+=D(te,V,K,fe,ce);else if(fe==="object"){if(typeof C.then=="function")return D(ge(C),V,K,te,ce);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 ue}function Z(C,V,K){if(C==null)return C;var te=[],ce=0;return D(C,te,"","",function(fe){return V.call(K,fe,ce++)}),te}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 Ee=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)},Te={map:Z,forEach:function(C,V,K){Z(C,function(){V.apply(this,arguments)},K)},count:function(C){var V=0;return Z(C,function(){V++}),V},toArray:function(C){return Z(C,function(V){return V})||[]},only:function(C){if(!be(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return ye.Activity=y,ye.Children=Te,ye.Component=j,ye.Fragment=l,ye.Profiler=s,ye.PureComponent=Y,ye.StrictMode=u,ye.Suspense=h,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,ye.__COMPILER_RUNTIME={__proto__:null,c:function(C){return U.H.useMemoCache(C)}},ye.cache=function(C){return function(){return C.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(C,V,K){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var te=O({},C.props),ce=C.key;if(V!=null)for(fe in V.key!==void 0&&(ce=""+V.key),V)!J.call(V,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&V.ref===void 0||(te[fe]=V[fe]);var fe=arguments.length-2;if(fe===1)te.children=K;else if(1<fe){for(var ue=Array(fe),De=0;De<fe;De++)ue[De]=arguments[De+2];te.children=ue}return de(C.type,ce,te)},ye.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:f,_context:C},C},ye.createElement=function(C,V,K){var te,ce={},fe=null;if(V!=null)for(te in V.key!==void 0&&(fe=""+V.key),V)J.call(V,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ce[te]=V[te]);var ue=arguments.length-2;if(ue===1)ce.children=K;else if(1<ue){for(var De=Array(ue),Re=0;Re<ue;Re++)De[Re]=arguments[Re+2];ce.children=De}if(C&&C.defaultProps)for(te in ue=C.defaultProps,ue)ce[te]===void 0&&(ce[te]=ue[te]);return de(C,fe,ce)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(C){return{$$typeof:v,render:C}},ye.isValidElement=be,ye.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:ee}},ye.memo=function(C,V){return{$$typeof:m,type:C,compare:V===void 0?null:V}},ye.startTransition=function(C){var V=U.T,K={};U.T=K;try{var te=C(),ce=U.S;ce!==null&&ce(K,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(G,Ee)}catch(fe){Ee(fe)}finally{V!==null&&K.types!==null&&(V.types=K.types),U.T=V}},ye.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},ye.use=function(C){return U.H.use(C)},ye.useActionState=function(C,V,K){return U.H.useActionState(C,V,K)},ye.useCallback=function(C,V){return U.H.useCallback(C,V)},ye.useContext=function(C){return U.H.useContext(C)},ye.useDebugValue=function(){},ye.useDeferredValue=function(C,V){return U.H.useDeferredValue(C,V)},ye.useEffect=function(C,V){return U.H.useEffect(C,V)},ye.useEffectEvent=function(C){return U.H.useEffectEvent(C)},ye.useId=function(){return U.H.useId()},ye.useImperativeHandle=function(C,V,K){return U.H.useImperativeHandle(C,V,K)},ye.useInsertionEffect=function(C,V){return U.H.useInsertionEffect(C,V)},ye.useLayoutEffect=function(C,V){return U.H.useLayoutEffect(C,V)},ye.useMemo=function(C,V){return U.H.useMemo(C,V)},ye.useOptimistic=function(C,V){return U.H.useOptimistic(C,V)},ye.useReducer=function(C,V,K){return U.H.useReducer(C,V,K)},ye.useRef=function(C){return U.H.useRef(C)},ye.useState=function(C){return U.H.useState(C)},ye.useSyncExternalStore=function(C,V,K){return U.H.useSyncExternalStore(C,V,K)},ye.useTransition=function(){return U.H.useTransition()},ye.version="19.2.4",ye}var Hp;function cf(){return Hp||(Hp=1,Ec.exports=k_()),Ec.exports}var F=cf();const Se=Zu(F),Bp=p_({__proto__:null,default:Se},[F]),X_="_button_nnl9b_1",Q_="_disabled_nnl9b_30",Z_="_fullWidth_nnl9b_127",K_="_button__leftIcon_nnl9b_133",J_="_button__rightIcon_nnl9b_134",La={button:X_,disabled:Q_,"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:Z_,button__leftIcon:K_,button__rightIcon:J_};function da(i){var n,l=i.children,u=i.className,s=i.disabled,f=i.buttonType,d=f===void 0?"muted":f,v=i.buttonSize,h=v===void 0?"m":v,m=i.fullWidth,g=i.onClick,y=i.style,b=i.leftIcon,S=i.rightIcon,E=i.type,O=E===void 0?"button":E;return Se.createElement("button",{type:O,className:hn(La.button,La["buttonType-".concat(d)],La["buttonSize-".concat(h)],(n={},n[La.disabled]=s,n[La.fullWidth]=m,n),u),disabled:s,onClick:g,style:y},b&&Se.createElement("span",{className:La.button__leftIcon},b),l&&Se.createElement("span",null,l),S&&Se.createElement("span",{className:La.button__rightIcon},S))}var Hu=function(){return Hu=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Hu.apply(this,arguments)};function Gp(i){return i===i.toLowerCase()?i:i.replace(/[A-Z]/g,function(n){return"-".concat(n.toLowerCase())})}function W_(i,n){return n===void 0&&(n=!1),Hu(Hu({padding:n?void 0:i.bodyPadding.map(function(l){return"".concat(l,"px")}).join(" ")},Object.fromEntries(Object.entries(i.theme).flatMap(function(l){var u,s=l[0],f=l[1];return[["--".concat(Gp(s)),f],["--".concat(Gp("".concat(s,"RgbComponents"))),((u=f.match(/rgb\((\d+, \d+, \d+)\)/))===null||u===void 0?void 0:u[1])||void 0]]}))),i.cssDesignTokens)}const e1="_themeVariables_11af8_1",t1="_canvas_11af8_85",Ip={themeVariables:e1,canvas:t1};var n1=F.createContext(null);function Qv(i){var n=i.ctx,l=i.children,u=i.noAutoResizer,s=n.mode;F.useEffect(function(){if(!u&&"startAutoResizer"in n){var d=n;return d.startAutoResizer(),function(){d.stopAutoResizer()}}},[s,u]);var f=n.cssDesignTokens["--color--scrollbar--fill"];return F.useEffect(function(){if(!(typeof document>"u"||!f)){var d="--color--scrollbar--fill",v=document.documentElement,h=v.style.getPropertyValue(d);return v.style.setProperty(d,f),function(){h?v.style.setProperty(d,h):v.style.removeProperty(d)}}},[f]),Se.createElement(n1.Provider,{value:n},Se.createElement("div",{className:hn(Ip.themeVariables,Ip.canvas),style:W_(n)},l))}var Tc={exports:{}},pt={};var Yp;function a1(){if(Yp)return pt;Yp=1;var i=cf();function n(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}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 l(){}var u={d:{f:l,r:function(){throw Error(n(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(h,m,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:h,containerInfo:m,implementation:g}}var d=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,pt.createPortal=function(h,m){var g=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 f(h,m,null,g)},pt.flushSync=function(h){var m=d.T,g=u.p;try{if(d.T=null,u.p=2,h)return h()}finally{d.T=m,u.p=g,u.d.f()}},pt.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))},pt.prefetchDNS=function(h){typeof h=="string"&&u.d.D(h)},pt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var g=m.as,y=v(g,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?u.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:S}):g==="script"&&u.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},pt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=v(m.as,m.crossOrigin);u.d.M(h,{crossOrigin:g,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)},pt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,y=v(g,m.crossOrigin);u.d.L(h,g,{crossOrigin:y,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})}},pt.preloadModule=function(h,m){if(typeof h=="string")if(m){var g=v(m.as,m.crossOrigin);u.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(h)},pt.requestFormReset=function(h){u.d.r(h)},pt.unstable_batchedUpdates=function(h,m){return h(m)},pt.useFormState=function(h,m,g){return d.H.useFormState(h,m,g)},pt.useFormStatus=function(){return d.H.useHostTransitionStatus()},pt.version="19.2.4",pt}var $p;function Zv(){if($p)return Tc.exports;$p=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Tc.exports=a1(),Tc.exports}var i1=Zv();const r1="_fieldError_kqzsn_1",l1={fieldError:r1};function Kv(i){var n=i.children;return Se.createElement("div",{className:l1.fieldError},n)}const u1="_FieldGroup_uz9ju_1",s1="_FieldGroup__item_uz9ju_5",Pp={FieldGroup:u1,FieldGroup__item:s1};var Yc=function(){return Yc=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Yc.apply(this,arguments)},o1=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l};function jr(i){var n=i.children,l=i.className,u=o1(i,["children","className"]),s=hn(Pp.FieldGroup,l);return Se.createElement("div",Yc({},u,{className:s}),Se.Children.map(n,function(f){return f&&Se.createElement("div",{className:Pp.FieldGroup__item},f)}))}const c1="_fieldHint_1q1d1_1",f1={fieldHint:c1};function Jv(i){var n=i.children;return Se.createElement("div",{className:f1.fieldHint},n)}var $c=function(){return $c=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},$c.apply(this,arguments)};function Wv(i){var n=i.id,l=i.label,u=i.hint,s=i.error,f=i.required,d=i.formLabelProps,v=i.children;return Se.createElement(Se.Fragment,null,Se.createElement(eg,$c({},d,{htmlFor:n,required:f,error:!!s}),l),v,s&&Se.createElement(Kv,null,s),u&&Se.createElement(Jv,null,u))}const d1="_Form_5qspp_1",h1="_Form__item_5qspp_5",wc={Form:d1,Form__item:h1,"Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"};var Pc=function(){return Pc=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Pc.apply(this,arguments)},m1=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l},p1=function(i){var n=i.children,l=i.className,u=i.onSubmit,s=i.spacing,f=s===void 0?"default":s,d=m1(i,["children","className","onSubmit","spacing"]),v=hn(wc.Form,l),h=hn(wc.Form__item,wc["Form__item--".concat(f)]),m=F.useCallback(function(g){g.preventDefault(),u&&u(g)},[u]);return Se.createElement("form",Pc({className:v,onSubmit:m},d),F.Children.map(n,function(g){return g?Se.createElement("div",{className:h},g):null}))};const v1="_formLabel_12h4v_1",g1="_formLabel__code_12h4v_8",y1="_formLabel__label_12h4v_18",b1="_formLabel__required_12h4v_30",Nr={formLabel:v1,formLabel__code:g1,"formLabel--error":"_formLabel--error_12h4v_14",formLabel__label:y1,formLabel__required:b1};var Fc=function(){return Fc=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Fc.apply(this,arguments)},_1=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l},eg=function(i){var n,l=i.children,u=i.className,s=i.htmlFor,f=i.code,d=i.required,v=d===void 0?!1:d,h=i.error,m=h===void 0?!1:h,g=_1(i,["children","className","htmlFor","code","required","error"]),y=hn(Nr.formLabel,u,(n={},n[Nr["formLabel--error"]]=m,n));return Se.createElement("label",Fc({className:y,htmlFor:s},g),Se.createElement("span",{className:Nr.formLabel__label},l,v&&Se.createElement("span",{className:Nr.formLabel__required},"*")),f&&Se.createElement("span",{className:Nr.formLabel__code},f))},kc=function(){return kc=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},kc.apply(this,arguments)};function S1(i){var n=i.id,l=i.name,u=i.label,s=i.hint,f=i.error,d=i.required,v=i.placeholder,h=i.formLabelProps,m=i.value,g=i.onChange,y=i.selectInputProps;return Se.createElement(Wv,{formLabelProps:h,id:n,required:d,error:f,hint:s,label:u},Se.createElement(pw,kc({},y,{id:n,name:l,value:m,placeholder:v,onChange:g,error:!!f})))}function Ha(i){"@babel/helpers - typeof";return Ha=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},Ha(i)}function E1(i,n){if(Ha(i)!="object"||!i)return i;var l=i[Symbol.toPrimitive];if(l!==void 0){var u=l.call(i,n);if(Ha(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}function tg(i){var n=E1(i,"string");return Ha(n)=="symbol"?n:n+""}function Br(i,n,l){return(n=tg(n))in i?Object.defineProperty(i,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[n]=l,i}function Fp(i,n){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);n&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})),l.push.apply(l,u)}return l}function he(i){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?Fp(Object(l),!0).forEach(function(u){Br(i,u,l[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):Fp(Object(l)).forEach(function(u){Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(l,u))})}return i}function T1(i){if(Array.isArray(i))return i}function w1(i,n){var l=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(l!=null){var u,s,f,d,v=[],h=!0,m=!1;try{if(f=(l=l.call(i)).next,n===0){if(Object(l)!==l)return;h=!1}else for(;!(h=(u=f.call(l)).done)&&(v.push(u.value),v.length!==n);h=!0);}catch(g){m=!0,s=g}finally{try{if(!h&&l.return!=null&&(d=l.return(),Object(d)!==d))return}finally{if(m)throw s}}return v}}function Xc(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,u=Array(n);l<n;l++)u[l]=i[l];return u}function ng(i,n){if(i){if(typeof i=="string")return Xc(i,n);var l={}.toString.call(i).slice(8,-1);return l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set"?Array.from(i):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?Xc(i,n):void 0}}function O1(){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 jn(i,n){return T1(i)||w1(i,n)||ng(i,n)||O1()}function C1(i,n){if(i==null)return{};var l={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(n.indexOf(u)!==-1)continue;l[u]=i[u]}return l}function Un(i,n){if(i==null)return{};var l,u,s=C1(i,n);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(i);for(u=0;u<f.length;u++)l=f[u],n.indexOf(l)===-1&&{}.propertyIsEnumerable.call(i,l)&&(s[l]=i[l])}return s}var x1=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function A1(i){var n=i.defaultInputValue,l=n===void 0?"":n,u=i.defaultMenuIsOpen,s=u===void 0?!1:u,f=i.defaultValue,d=f===void 0?null:f,v=i.inputValue,h=i.menuIsOpen,m=i.onChange,g=i.onInputChange,y=i.onMenuClose,b=i.onMenuOpen,S=i.value,E=Un(i,x1),O=F.useState(v!==void 0?v:l),R=jn(O,2),j=R[0],X=R[1],Y=F.useState(h!==void 0?h:s),Q=jn(Y,2),M=Q[0],G=Q[1],U=F.useState(S!==void 0?S:d),J=jn(U,2),de=J[0],ze=J[1],be=F.useCallback(function(ee,Ee){typeof m=="function"&&m(ee,Ee),ze(ee)},[m]),W=F.useCallback(function(ee,Ee){var Te;typeof g=="function"&&(Te=g(ee,Ee)),X(Te!==void 0?Te:ee)},[g]),ne=F.useCallback(function(){typeof b=="function"&&b(),G(!0)},[b]),le=F.useCallback(function(){typeof y=="function"&&y(),G(!1)},[y]),ge=v!==void 0?v:j,D=h!==void 0?h:M,Z=S!==void 0?S:de;return he(he({},E),{},{inputValue:ge,menuIsOpen:D,onChange:be,onInputChange:W,onMenuClose:le,onMenuOpen:ne,value:Z})}function pe(){return pe=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var u in l)({}).hasOwnProperty.call(l,u)&&(i[u]=l[u])}return i},pe.apply(null,arguments)}function z1(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function kp(i,n){for(var l=0;l<n.length;l++){var u=n[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,tg(u.key),u)}}function M1(i,n,l){return n&&kp(i.prototype,n),l&&kp(i,l),Object.defineProperty(i,"prototype",{writable:!1}),i}function Qc(i,n){return Qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,u){return l.__proto__=u,l},Qc(i,n)}function D1(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),n&&Qc(i,n)}function Bu(i){return Bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bu(i)}function ag(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ag=function(){return!!i})()}function R1(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function L1(i,n){if(n&&(Ha(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R1(i)}function j1(i){var n=ag();return function(){var l,u=Bu(i);if(n){var s=Bu(this).constructor;l=Reflect.construct(u,arguments,s)}else l=u.apply(this,arguments);return L1(this,l)}}function N1(i){if(Array.isArray(i))return Xc(i)}function q1(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function U1(){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 ff(i){return N1(i)||q1(i)||ng(i)||U1()}function V1(i){if(i.sheet)return i.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===i)return document.styleSheets[n]}function H1(i){var n=document.createElement("style");return n.setAttribute("data-emotion",i.key),i.nonce!==void 0&&n.setAttribute("nonce",i.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var B1=(function(){function i(l){var u=this;this._insertTag=function(s){var f;u.tags.length===0?u.insertionPoint?f=u.insertionPoint.nextSibling:u.prepend?f=u.container.firstChild:f=u.before:f=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(s,f),u.tags.push(s)},this.isSpeedy=l.speedy===void 0?!0:l.speedy,this.tags=[],this.ctr=0,this.nonce=l.nonce,this.key=l.key,this.container=l.container,this.prepend=l.prepend,this.insertionPoint=l.insertionPoint,this.before=null}var n=i.prototype;return n.hydrate=function(u){u.forEach(this._insertTag)},n.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(H1(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var f=V1(s);try{f.insertRule(u,f.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(u));this.ctr++},n.flush=function(){this.tags.forEach(function(u){var s;return(s=u.parentNode)==null?void 0:s.removeChild(u)}),this.tags=[],this.ctr=0},i})(),vt="-ms-",Gu="-moz-",qe="-webkit-",ig="comm",df="rule",hf="decl",G1="@import",rg="@keyframes",I1="@layer",Y1=Math.abs,Ku=String.fromCharCode,$1=Object.assign;function P1(i,n){return mt(i,0)^45?(((n<<2^mt(i,0))<<2^mt(i,1))<<2^mt(i,2))<<2^mt(i,3):0}function lg(i){return i.trim()}function F1(i,n){return(i=n.exec(i))?i[0]:i}function Ve(i,n,l){return i.replace(n,l)}function Zc(i,n){return i.indexOf(n)}function mt(i,n){return i.charCodeAt(n)|0}function Ir(i,n,l){return i.slice(n,l)}function on(i){return i.length}function mf(i){return i.length}function _u(i,n){return n.push(i),i}function k1(i,n){return i.map(n).join("")}var Ju=1,Vi=1,ug=0,Ot=0,it=0,Hi="";function Wu(i,n,l,u,s,f,d){return{value:i,root:n,parent:l,type:u,props:s,children:f,line:Ju,column:Vi,length:d,return:""}}function qr(i,n){return $1(Wu("",null,null,"",null,null,0),i,{length:-i.length},n)}function X1(){return it}function Q1(){return it=Ot>0?mt(Hi,--Ot):0,Vi--,it===10&&(Vi=1,Ju--),it}function qt(){return it=Ot<ug?mt(Hi,Ot++):0,Vi++,it===10&&(Vi=1,Ju++),it}function dn(){return mt(Hi,Ot)}function Ru(){return Ot}function Xr(i,n){return Ir(Hi,i,n)}function Yr(i){switch(i){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 sg(i){return Ju=Vi=1,ug=on(Hi=i),Ot=0,[]}function og(i){return Hi="",i}function Lu(i){return lg(Xr(Ot-1,Kc(i===91?i+2:i===40?i+1:i)))}function Z1(i){for(;(it=dn())&&it<33;)qt();return Yr(i)>2||Yr(it)>3?"":" "}function K1(i,n){for(;--n&&qt()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return Xr(i,Ru()+(n<6&&dn()==32&&qt()==32))}function Kc(i){for(;qt();)switch(it){case i:return Ot;case 34:case 39:i!==34&&i!==39&&Kc(it);break;case 40:i===41&&Kc(i);break;case 92:qt();break}return Ot}function J1(i,n){for(;qt()&&i+it!==57;)if(i+it===84&&dn()===47)break;return"/*"+Xr(n,Ot-1)+"*"+Ku(i===47?i:qt())}function W1(i){for(;!Yr(dn());)qt();return Xr(i,Ot)}function eS(i){return og(ju("",null,null,null,[""],i=sg(i),0,[0],i))}function ju(i,n,l,u,s,f,d,v,h){for(var m=0,g=0,y=d,b=0,S=0,E=0,O=1,R=1,j=1,X=0,Y="",Q=s,M=f,G=u,U=Y;R;)switch(E=X,X=qt()){case 40:if(E!=108&&mt(U,y-1)==58){Zc(U+=Ve(Lu(X),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:U+=Lu(X);break;case 9:case 10:case 13:case 32:U+=Z1(E);break;case 92:U+=K1(Ru()-1,7);continue;case 47:switch(dn()){case 42:case 47:_u(tS(J1(qt(),Ru()),n,l),h);break;default:U+="/"}break;case 123*O:v[m++]=on(U)*j;case 125*O:case 59:case 0:switch(X){case 0:case 125:R=0;case 59+g:j==-1&&(U=Ve(U,/\f/g,"")),S>0&&on(U)-y&&_u(S>32?Qp(U+";",u,l,y-1):Qp(Ve(U," ","")+";",u,l,y-2),h);break;case 59:U+=";";default:if(_u(G=Xp(U,n,l,m,g,s,v,Y,Q=[],M=[],y),f),X===123)if(g===0)ju(U,n,G,G,Q,f,y,v,M);else switch(b===99&&mt(U,3)===110?100:b){case 100:case 108:case 109:case 115:ju(i,G,G,u&&_u(Xp(i,G,G,0,0,s,v,Y,s,Q=[],y),M),s,M,y,v,u?Q:M);break;default:ju(U,G,G,G,[""],M,0,v,M)}}m=g=S=0,O=j=1,Y=U="",y=d;break;case 58:y=1+on(U),S=E;default:if(O<1){if(X==123)--O;else if(X==125&&O++==0&&Q1()==125)continue}switch(U+=Ku(X),X*O){case 38:j=g>0?1:(U+="\f",-1);break;case 44:v[m++]=(on(U)-1)*j,j=1;break;case 64:dn()===45&&(U+=Lu(qt())),b=dn(),g=y=on(Y=U+=W1(Ru())),X++;break;case 45:E===45&&on(U)==2&&(O=0)}}return f}function Xp(i,n,l,u,s,f,d,v,h,m,g){for(var y=s-1,b=s===0?f:[""],S=mf(b),E=0,O=0,R=0;E<u;++E)for(var j=0,X=Ir(i,y+1,y=Y1(O=d[E])),Y=i;j<S;++j)(Y=lg(O>0?b[j]+" "+X:Ve(X,/&\f/g,b[j])))&&(h[R++]=Y);return Wu(i,n,l,s===0?df:v,h,m,g)}function tS(i,n,l){return Wu(i,n,l,ig,Ku(X1()),Ir(i,2,-2),0)}function Qp(i,n,l,u){return Wu(i,n,l,hf,Ir(i,0,u),Ir(i,u+1,-1),u)}function Ai(i,n){for(var l="",u=mf(i),s=0;s<u;s++)l+=n(i[s],s,i,n)||"";return l}function nS(i,n,l,u){switch(i.type){case I1:if(i.children.length)break;case G1:case hf:return i.return=i.return||i.value;case ig:return"";case rg:return i.return=i.value+"{"+Ai(i.children,u)+"}";case df:i.value=i.props.join(",")}return on(l=Ai(i.children,u))?i.return=i.value+"{"+l+"}":""}function aS(i){var n=mf(i);return function(l,u,s,f){for(var d="",v=0;v<n;v++)d+=i[v](l,u,s,f)||"";return d}}function iS(i){return function(n){n.root||(n=n.return)&&i(n)}}function rS(i){var n=Object.create(null);return function(l){return n[l]===void 0&&(n[l]=i(l)),n[l]}}var lS=function(n,l,u){for(var s=0,f=0;s=f,f=dn(),s===38&&f===12&&(l[u]=1),!Yr(f);)qt();return Xr(n,Ot)},uS=function(n,l){var u=-1,s=44;do switch(Yr(s)){case 0:s===38&&dn()===12&&(l[u]=1),n[u]+=lS(Ot-1,l,u);break;case 2:n[u]+=Lu(s);break;case 4:if(s===44){n[++u]=dn()===58?"&\f":"",l[u]=n[u].length;break}default:n[u]+=Ku(s)}while(s=qt());return n},sS=function(n,l){return og(uS(sg(n),l))},Zp=new WeakMap,oS=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var l=n.value,u=n.parent,s=n.column===u.column&&n.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(n.props.length===1&&l.charCodeAt(0)!==58&&!Zp.get(u))&&!s){Zp.set(n,!0);for(var f=[],d=sS(l,f),v=u.props,h=0,m=0;h<d.length;h++)for(var g=0;g<v.length;g++,m++)n.props[m]=f[h]?d[h].replace(/&\f/g,v[g]):v[g]+" "+d[h]}}},cS=function(n){if(n.type==="decl"){var l=n.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(n.return="",n.value="")}};function cg(i,n){switch(P1(i,n)){case 5103:return qe+"print-"+i+i;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+i+i;case 5349:case 4246:case 4810:case 6968:case 2756:return qe+i+Gu+i+vt+i+i;case 6828:case 4268:return qe+i+vt+i+i;case 6165:return qe+i+vt+"flex-"+i+i;case 5187:return qe+i+Ve(i,/(\w+).+(:[^]+)/,qe+"box-$1$2"+vt+"flex-$1$2")+i;case 5443:return qe+i+vt+"flex-item-"+Ve(i,/flex-|-self/,"")+i;case 4675:return qe+i+vt+"flex-line-pack"+Ve(i,/align-content|flex-|-self/,"")+i;case 5548:return qe+i+vt+Ve(i,"shrink","negative")+i;case 5292:return qe+i+vt+Ve(i,"basis","preferred-size")+i;case 6060:return qe+"box-"+Ve(i,"-grow","")+qe+i+vt+Ve(i,"grow","positive")+i;case 4554:return qe+Ve(i,/([^-])(transform)/g,"$1"+qe+"$2")+i;case 6187:return Ve(Ve(Ve(i,/(zoom-|grab)/,qe+"$1"),/(image-set)/,qe+"$1"),i,"")+i;case 5495:case 3959:return Ve(i,/(image-set\([^]*)/,qe+"$1$`$1");case 4968:return Ve(Ve(i,/(.+:)(flex-)?(.*)/,qe+"box-pack:$3"+vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qe+i+i;case 4095:case 3583:case 4068:case 2532:return Ve(i,/(.+)-inline(.+)/,qe+"$1$2")+i;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(on(i)-1-n>6)switch(mt(i,n+1)){case 109:if(mt(i,n+4)!==45)break;case 102:return Ve(i,/(.+:)(.+)-([^]+)/,"$1"+qe+"$2-$3$1"+Gu+(mt(i,n+3)==108?"$3":"$2-$3"))+i;case 115:return~Zc(i,"stretch")?cg(Ve(i,"stretch","fill-available"),n)+i:i}break;case 4949:if(mt(i,n+1)!==115)break;case 6444:switch(mt(i,on(i)-3-(~Zc(i,"!important")&&10))){case 107:return Ve(i,":",":"+qe)+i;case 101:return Ve(i,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qe+(mt(i,14)===45?"inline-":"")+"box$3$1"+qe+"$2$3$1"+vt+"$2box$3")+i}break;case 5936:switch(mt(i,n+11)){case 114:return qe+i+vt+Ve(i,/[svh]\w+-[tblr]{2}/,"tb")+i;case 108:return qe+i+vt+Ve(i,/[svh]\w+-[tblr]{2}/,"tb-rl")+i;case 45:return qe+i+vt+Ve(i,/[svh]\w+-[tblr]{2}/,"lr")+i}return qe+i+vt+i+i}return i}var fS=function(n,l,u,s){if(n.length>-1&&!n.return)switch(n.type){case hf:n.return=cg(n.value,n.length);break;case rg:return Ai([qr(n,{value:Ve(n.value,"@","@"+qe)})],s);case df:if(n.length)return k1(n.props,function(f){switch(F1(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ai([qr(n,{props:[Ve(f,/:(read-\w+)/,":"+Gu+"$1")]})],s);case"::placeholder":return Ai([qr(n,{props:[Ve(f,/:(plac\w+)/,":"+qe+"input-$1")]}),qr(n,{props:[Ve(f,/:(plac\w+)/,":"+Gu+"$1")]}),qr(n,{props:[Ve(f,/:(plac\w+)/,vt+"input-$1")]})],s)}return""})}},dS=[fS],hS=function(n){var l=n.key;if(l==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(O){var R=O.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var s=n.stylisPlugins||dS,f={},d,v=[];d=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(O){for(var R=O.getAttribute("data-emotion").split(" "),j=1;j<R.length;j++)f[R[j]]=!0;v.push(O)});var h,m=[oS,cS];{var g,y=[nS,iS(function(O){g.insert(O)})],b=aS(m.concat(s,y)),S=function(R){return Ai(eS(R),b)};h=function(R,j,X,Y){g=X,S(R?R+"{"+j.styles+"}":j.styles),Y&&(E.inserted[j.name]=!0)}}var E={key:l,sheet:new B1({key:l,container:d,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:f,registered:{},insert:h};return E.sheet.hydrate(v),E},Oc={exports:{}},He={};var Kp;function mS(){if(Kp)return He;Kp=1;var i=typeof Symbol=="function"&&Symbol.for,n=i?Symbol.for("react.element"):60103,l=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,f=i?Symbol.for("react.profiler"):60114,d=i?Symbol.for("react.provider"):60109,v=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.async_mode"):60111,m=i?Symbol.for("react.concurrent_mode"):60111,g=i?Symbol.for("react.forward_ref"):60112,y=i?Symbol.for("react.suspense"):60113,b=i?Symbol.for("react.suspense_list"):60120,S=i?Symbol.for("react.memo"):60115,E=i?Symbol.for("react.lazy"):60116,O=i?Symbol.for("react.block"):60121,R=i?Symbol.for("react.fundamental"):60117,j=i?Symbol.for("react.responder"):60118,X=i?Symbol.for("react.scope"):60119;function Y(M){if(typeof M=="object"&&M!==null){var G=M.$$typeof;switch(G){case n:switch(M=M.type,M){case h:case m:case u:case f:case s:case y:return M;default:switch(M=M&&M.$$typeof,M){case v:case g:case E:case S:case d:return M;default:return G}}case l:return G}}}function Q(M){return Y(M)===m}return He.AsyncMode=h,He.ConcurrentMode=m,He.ContextConsumer=v,He.ContextProvider=d,He.Element=n,He.ForwardRef=g,He.Fragment=u,He.Lazy=E,He.Memo=S,He.Portal=l,He.Profiler=f,He.StrictMode=s,He.Suspense=y,He.isAsyncMode=function(M){return Q(M)||Y(M)===h},He.isConcurrentMode=Q,He.isContextConsumer=function(M){return Y(M)===v},He.isContextProvider=function(M){return Y(M)===d},He.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===n},He.isForwardRef=function(M){return Y(M)===g},He.isFragment=function(M){return Y(M)===u},He.isLazy=function(M){return Y(M)===E},He.isMemo=function(M){return Y(M)===S},He.isPortal=function(M){return Y(M)===l},He.isProfiler=function(M){return Y(M)===f},He.isStrictMode=function(M){return Y(M)===s},He.isSuspense=function(M){return Y(M)===y},He.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===u||M===m||M===f||M===s||M===y||M===b||typeof M=="object"&&M!==null&&(M.$$typeof===E||M.$$typeof===S||M.$$typeof===d||M.$$typeof===v||M.$$typeof===g||M.$$typeof===R||M.$$typeof===j||M.$$typeof===X||M.$$typeof===O)},He.typeOf=Y,He}var Jp;function pS(){return Jp||(Jp=1,Oc.exports=mS()),Oc.exports}var Cc,Wp;function vS(){if(Wp)return Cc;Wp=1;var i=pS(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={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},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[i.ForwardRef]=u,f[i.Memo]=s;function d(E){return i.isMemo(E)?s:f[E.$$typeof]||n}var v=Object.defineProperty,h=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,b=Object.prototype;function S(E,O,R){if(typeof O!="string"){if(b){var j=y(O);j&&j!==b&&S(E,j,R)}var X=h(O);m&&(X=X.concat(m(O)));for(var Y=d(E),Q=d(O),M=0;M<X.length;++M){var G=X[M];if(!l[G]&&!(R&&R[G])&&!(Q&&Q[G])&&!(Y&&Y[G])){var U=g(O,G);try{v(E,G,U)}catch{}}}}return E}return Cc=S,Cc}vS();var gS=!0;function yS(i,n,l){var u="";return l.split(" ").forEach(function(s){i[s]!==void 0?n.push(i[s]+";"):s&&(u+=s+" ")}),u}var fg=function(n,l,u){var s=n.key+"-"+l.name;(u===!1||gS===!1)&&n.registered[s]===void 0&&(n.registered[s]=l.styles)},bS=function(n,l,u){fg(n,l,u);var s=n.key+"-"+l.name;if(n.inserted[l.name]===void 0){var f=l;do n.insert(l===f?"."+s:"",f,n.sheet,!0),f=f.next;while(f!==void 0)}};function _S(i){for(var n=0,l,u=0,s=i.length;s>=4;++u,s-=4)l=i.charCodeAt(u)&255|(i.charCodeAt(++u)&255)<<8|(i.charCodeAt(++u)&255)<<16|(i.charCodeAt(++u)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,n=(l&65535)*1540483477+((l>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(s){case 3:n^=(i.charCodeAt(u+2)&255)<<16;case 2:n^=(i.charCodeAt(u+1)&255)<<8;case 1:n^=i.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 SS={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},ES=/[A-Z]|^ms/g,TS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dg=function(n){return n.charCodeAt(1)===45},ev=function(n){return n!=null&&typeof n!="boolean"},xc=rS(function(i){return dg(i)?i:i.replace(ES,"-$&").toLowerCase()}),tv=function(n,l){switch(n){case"animation":case"animationName":if(typeof l=="string")return l.replace(TS,function(u,s,f){return cn={name:s,styles:f,next:cn},s})}return SS[n]!==1&&!dg(n)&&typeof l=="number"&&l!==0?l+"px":l};function $r(i,n,l){if(l==null)return"";var u=l;if(u.__emotion_styles!==void 0)return u;switch(typeof l){case"boolean":return"";case"object":{var s=l;if(s.anim===1)return cn={name:s.name,styles:s.styles,next:cn},s.name;var f=l;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)cn={name:d.name,styles:d.styles,next:cn},d=d.next;var v=f.styles+";";return v}return wS(i,n,l)}case"function":{if(i!==void 0){var h=cn,m=l(i);return cn=h,$r(i,n,m)}break}}var g=l;return g}function wS(i,n,l){var u="";if(Array.isArray(l))for(var s=0;s<l.length;s++)u+=$r(i,n,l[s])+";";else for(var f in l){var d=l[f];if(typeof d!="object"){var v=d;ev(v)&&(u+=xc(f)+":"+tv(f,v)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&n==null)for(var h=0;h<d.length;h++)ev(d[h])&&(u+=xc(f)+":"+tv(f,d[h])+";");else{var m=$r(i,n,d);switch(f){case"animation":case"animationName":{u+=xc(f)+":"+m+";";break}default:u+=f+"{"+m+"}"}}}return u}var nv=/label:\s*([^\s;{]+)\s*(;|$)/g,cn;function hg(i,n,l){if(i.length===1&&typeof i[0]=="object"&&i[0]!==null&&i[0].styles!==void 0)return i[0];var u=!0,s="";cn=void 0;var f=i[0];if(f==null||f.raw===void 0)u=!1,s+=$r(l,n,f);else{var d=f;s+=d[0]}for(var v=1;v<i.length;v++)if(s+=$r(l,n,i[v]),u){var h=f;s+=h[v]}nv.lastIndex=0;for(var m="",g;(g=nv.exec(s))!==null;)m+="-"+g[1];var y=_S(s)+m;return{name:y,styles:s,next:cn}}var OS=function(n){return n()},CS=Bp.useInsertionEffect?Bp.useInsertionEffect:!1,xS=CS||OS,mg=F.createContext(typeof HTMLElement<"u"?hS({key:"css"}):null);mg.Provider;var AS=function(n){return F.forwardRef(function(l,u){var s=F.useContext(mg);return n(l,s,u)})},zS=F.createContext({}),pf={}.hasOwnProperty,Jc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",MS=function(n,l){var u={};for(var s in l)pf.call(l,s)&&(u[s]=l[s]);return u[Jc]=n,u},DS=function(n){var l=n.cache,u=n.serialized,s=n.isStringTag;return fg(l,u,s),xS(function(){return bS(l,u,s)}),null},RS=AS(function(i,n,l){var u=i.css;typeof u=="string"&&n.registered[u]!==void 0&&(u=n.registered[u]);var s=i[Jc],f=[u],d="";typeof i.className=="string"?d=yS(n.registered,f,i.className):i.className!=null&&(d=i.className+" ");var v=hg(f,void 0,F.useContext(zS));d+=n.key+"-"+v.name;var h={};for(var m in i)pf.call(i,m)&&m!=="css"&&m!==Jc&&(h[m]=i[m]);return h.className=d,l&&(h.ref=l),F.createElement(F.Fragment,null,F.createElement(DS,{cache:n,serialized:v,isStringTag:typeof s=="string"}),F.createElement(s,h))}),LS=RS,oe=function(n,l){var u=arguments;if(l==null||!pf.call(l,"css"))return F.createElement.apply(void 0,u);var s=u.length,f=new Array(s);f[0]=LS,f[1]=MS(n,l);for(var d=2;d<s;d++)f[d]=u[d];return F.createElement.apply(null,f)};(function(i){var n;n||(n=i.JSX||(i.JSX={}))})(oe||(oe={}));function vf(){for(var i=arguments.length,n=new Array(i),l=0;l<i;l++)n[l]=arguments[l];return hg(n)}function jS(){var i=vf.apply(void 0,arguments),n="animation-"+i.name;return{name:n,styles:"@keyframes "+n+"{"+i.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function NS(i,n){return n||(n=i.slice(0)),Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(n)}}))}const qS=Math.min,US=Math.max,Iu=Math.round,Su=Math.floor,Yu=i=>({x:i,y:i});function VS(i){const{x:n,y:l,width:u,height:s}=i;return{width:u,height:s,top:l,left:n,right:n+u,bottom:l+s,x:n,y:l}}function es(){return typeof window<"u"}function pg(i){return gg(i)?(i.nodeName||"").toLowerCase():"#document"}function Nn(i){var n;return(i==null||(n=i.ownerDocument)==null?void 0:n.defaultView)||window}function vg(i){var n;return(n=(gg(i)?i.ownerDocument:i.document)||window.document)==null?void 0:n.documentElement}function gg(i){return es()?i instanceof Node||i instanceof Nn(i).Node:!1}function HS(i){return es()?i instanceof Element||i instanceof Nn(i).Element:!1}function gf(i){return es()?i instanceof HTMLElement||i instanceof Nn(i).HTMLElement:!1}function av(i){return!es()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof Nn(i).ShadowRoot}function yg(i){const{overflow:n,overflowX:l,overflowY:u,display:s}=yf(i);return/auto|scroll|overlay|hidden|clip/.test(n+u+l)&&s!=="inline"&&s!=="contents"}let Ac;function BS(){return Ac==null&&(Ac=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ac}function GS(i){return/^(html|body|#document)$/.test(pg(i))}function yf(i){return Nn(i).getComputedStyle(i)}function IS(i){if(pg(i)==="html")return i;const n=i.assignedSlot||i.parentNode||av(i)&&i.host||vg(i);return av(n)?n.host:n}function bg(i){const n=IS(i);return GS(n)?i.ownerDocument?i.ownerDocument.body:i.body:gf(n)&&yg(n)?n:bg(n)}function $u(i,n,l){var u;n===void 0&&(n=[]),l===void 0&&(l=!0);const s=bg(i),f=s===((u=i.ownerDocument)==null?void 0:u.body),d=Nn(s);if(f){const v=Wc(d);return n.concat(d,d.visualViewport||[],yg(s)?s:[],v&&l?$u(v):[])}else return n.concat(s,$u(s,[],l))}function Wc(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function YS(i){const n=yf(i);let l=parseFloat(n.width)||0,u=parseFloat(n.height)||0;const s=gf(i),f=s?i.offsetWidth:l,d=s?i.offsetHeight:u,v=Iu(l)!==f||Iu(u)!==d;return v&&(l=f,u=d),{width:l,height:u,$:v}}function bf(i){return HS(i)?i:i.contextElement}function iv(i){const n=bf(i);if(!gf(n))return Yu(1);const l=n.getBoundingClientRect(),{width:u,height:s,$:f}=YS(n);let d=(f?Iu(l.width):l.width)/u,v=(f?Iu(l.height):l.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!v||!Number.isFinite(v))&&(v=1),{x:d,y:v}}const $S=Yu(0);function PS(i){const n=Nn(i);return!BS()||!n.visualViewport?$S:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function FS(i,n,l){return!1}function rv(i,n,l,u){n===void 0&&(n=!1);const s=i.getBoundingClientRect(),f=bf(i);let d=Yu(1);n&&(d=iv(i));const v=FS()?PS(f):Yu(0);let h=(s.left+v.x)/d.x,m=(s.top+v.y)/d.y,g=s.width/d.x,y=s.height/d.y;if(f){const b=Nn(f),S=u;let E=b,O=Wc(E);for(;O&&u&&S!==E;){const R=iv(O),j=O.getBoundingClientRect(),X=yf(O),Y=j.left+(O.clientLeft+parseFloat(X.paddingLeft))*R.x,Q=j.top+(O.clientTop+parseFloat(X.paddingTop))*R.y;h*=R.x,m*=R.y,g*=R.x,y*=R.y,h+=Y,m+=Q,E=Nn(O),O=Wc(E)}}return VS({width:g,height:y,x:h,y:m})}function _g(i,n){return i.x===n.x&&i.y===n.y&&i.width===n.width&&i.height===n.height}function kS(i,n){let l=null,u;const s=vg(i);function f(){var v;clearTimeout(u),(v=l)==null||v.disconnect(),l=null}function d(v,h){v===void 0&&(v=!1),h===void 0&&(h=1),f();const m=i.getBoundingClientRect(),{left:g,top:y,width:b,height:S}=m;if(v||n(),!b||!S)return;const E=Su(y),O=Su(s.clientWidth-(g+b)),R=Su(s.clientHeight-(y+S)),j=Su(g),Y={rootMargin:-E+"px "+-O+"px "+-R+"px "+-j+"px",threshold:US(0,qS(1,h))||1};let Q=!0;function M(G){const U=G[0].intersectionRatio;if(U!==h){if(!Q)return d();U?d(!1,U):u=setTimeout(()=>{d(!1,1e-7)},1e3)}U===1&&!_g(m,i.getBoundingClientRect())&&d(),Q=!1}try{l=new IntersectionObserver(M,{...Y,root:s.ownerDocument})}catch{l=new IntersectionObserver(M,Y)}l.observe(i)}return d(!0),f}function XS(i,n,l,u){u===void 0&&(u={});const{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:h=!1}=u,m=bf(i),g=s||f?[...m?$u(m):[],...n?$u(n):[]]:[];g.forEach(j=>{s&&j.addEventListener("scroll",l,{passive:!0}),f&&j.addEventListener("resize",l)});const y=m&&v?kS(m,l):null;let b=-1,S=null;d&&(S=new ResizeObserver(j=>{let[X]=j;X&&X.target===m&&S&&n&&(S.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var Y;(Y=S)==null||Y.observe(n)})),l()}),m&&!h&&S.observe(m),n&&S.observe(n));let E,O=h?rv(i):null;h&&R();function R(){const j=rv(i);O&&!_g(O,j)&&l(),O=j,E=requestAnimationFrame(R)}return l(),()=>{var j;g.forEach(X=>{s&&X.removeEventListener("scroll",l),f&&X.removeEventListener("resize",l)}),y?.(),(j=S)==null||j.disconnect(),S=null,h&&cancelAnimationFrame(E)}}var ef=F.useLayoutEffect,QS=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Pu=function(){};function ZS(i,n){return n?n[0]==="-"?i+n:i+"__"+n:i}function KS(i,n){for(var l=arguments.length,u=new Array(l>2?l-2:0),s=2;s<l;s++)u[s-2]=arguments[s];var f=[].concat(u);if(n&&i)for(var d in n)n.hasOwnProperty(d)&&n[d]&&f.push("".concat(ZS(i,d)));return f.filter(function(v){return v}).map(function(v){return String(v).trim()}).join(" ")}var lv=function(n){return lE(n)?n.filter(Boolean):Ha(n)==="object"&&n!==null?[n]:[]},Sg=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 l=Un(n,QS);return he({},l)},Ke=function(n,l,u){var s=n.cx,f=n.getStyles,d=n.getClassNames,v=n.className;return{css:f(l,n),className:s(u??{},d(l,n),v)}};function ts(i){return[document.documentElement,document.body,window].indexOf(i)>-1}function JS(i){return ts(i)?window.innerHeight:i.clientHeight}function Eg(i){return ts(i)?window.pageYOffset:i.scrollTop}function Fu(i,n){if(ts(i)){window.scrollTo(0,n);return}i.scrollTop=n}function WS(i){var n=getComputedStyle(i),l=n.position==="absolute",u=/(auto|scroll)/;if(n.position==="fixed")return document.documentElement;for(var s=i;s=s.parentElement;)if(n=getComputedStyle(s),!(l&&n.position==="static")&&u.test(n.overflow+n.overflowY+n.overflowX))return s;return document.documentElement}function eE(i,n,l,u){return l*((i=i/u-1)*i*i+1)+n}function Eu(i,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Pu,s=Eg(i),f=n-s,d=10,v=0;function h(){v+=d;var m=eE(v,s,f,l);Fu(i,m),v<l?window.requestAnimationFrame(h):u(i)}h()}function uv(i,n){var l=i.getBoundingClientRect(),u=n.getBoundingClientRect(),s=n.offsetHeight/3;u.bottom+s>l.bottom?Fu(i,Math.min(n.offsetTop+n.clientHeight-i.offsetHeight+s,i.scrollHeight)):u.top-s<l.top&&Fu(i,Math.max(n.offsetTop-s,0))}function tE(i){var n=i.getBoundingClientRect();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width}}function sv(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function nE(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Tg=!1,aE={get passive(){return Tg=!0}},Tu=typeof window<"u"?window:{};Tu.addEventListener&&Tu.removeEventListener&&(Tu.addEventListener("p",Pu,aE),Tu.removeEventListener("p",Pu,!1));var iE=Tg;function rE(i){return i!=null}function lE(i){return Array.isArray(i)}function wu(i,n,l){return i?n:l}var uE=function(n){for(var l=arguments.length,u=new Array(l>1?l-1:0),s=1;s<l;s++)u[s-1]=arguments[s];var f=Object.entries(n).filter(function(d){var v=jn(d,1),h=v[0];return!u.includes(h)});return f.reduce(function(d,v){var h=jn(v,2),m=h[0],g=h[1];return d[m]=g,d},{})},sE=["children","innerProps"],oE=["children","innerProps"];function cE(i){var n=i.maxHeight,l=i.menuEl,u=i.minHeight,s=i.placement,f=i.shouldScroll,d=i.isFixedPosition,v=i.controlHeight,h=WS(l),m={placement:"bottom",maxHeight:n};if(!l||!l.offsetParent)return m;var g=h.getBoundingClientRect(),y=g.height,b=l.getBoundingClientRect(),S=b.bottom,E=b.height,O=b.top,R=l.offsetParent.getBoundingClientRect(),j=R.top,X=d?window.innerHeight:JS(h),Y=Eg(h),Q=parseInt(getComputedStyle(l).marginBottom,10),M=parseInt(getComputedStyle(l).marginTop,10),G=j-M,U=X-O,J=G+Y,de=y-Y-O,ze=S-X+Y+Q,be=Y+O-M,W=160;switch(s){case"auto":case"bottom":if(U>=E)return{placement:"bottom",maxHeight:n};if(de>=E&&!d)return f&&Eu(h,ze,W),{placement:"bottom",maxHeight:n};if(!d&&de>=u||d&&U>=u){f&&Eu(h,ze,W);var ne=d?U-Q:de-Q;return{placement:"bottom",maxHeight:ne}}if(s==="auto"||d){var le=n,ge=d?G:J;return ge>=u&&(le=Math.min(ge-Q-v,n)),{placement:"top",maxHeight:le}}if(s==="bottom")return f&&Fu(h,ze),{placement:"bottom",maxHeight:n};break;case"top":if(G>=E)return{placement:"top",maxHeight:n};if(J>=E&&!d)return f&&Eu(h,be,W),{placement:"top",maxHeight:n};if(!d&&J>=u||d&&G>=u){var D=n;return(!d&&J>=u||d&&G>=u)&&(D=d?G-M:J-M),f&&Eu(h,be,W),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:n};default:throw new Error('Invalid placement provided "'.concat(s,'".'))}return m}function fE(i){var n={bottom:"top",top:"bottom"};return i?n[i]:"bottom"}var wg=function(n){return n==="auto"?"bottom":n},dE=function(n,l){var u,s=n.placement,f=n.theme,d=f.borderRadius,v=f.spacing,h=f.colors;return he((u={label:"menu"},Br(u,fE(s),"100%"),Br(u,"position","absolute"),Br(u,"width","100%"),Br(u,"zIndex",1),u),l?{}:{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:v.menuGutter,marginTop:v.menuGutter})},Og=F.createContext(null),hE=function(n){var l=n.children,u=n.minMenuHeight,s=n.maxMenuHeight,f=n.menuPlacement,d=n.menuPosition,v=n.menuShouldScrollIntoView,h=n.theme,m=F.useContext(Og)||{},g=m.setPortalPlacement,y=F.useRef(null),b=F.useState(s),S=jn(b,2),E=S[0],O=S[1],R=F.useState(null),j=jn(R,2),X=j[0],Y=j[1],Q=h.spacing.controlHeight;return ef(function(){var M=y.current;if(M){var G=d==="fixed",U=v&&!G,J=cE({maxHeight:s,menuEl:M,minHeight:u,placement:f,shouldScroll:U,isFixedPosition:G,controlHeight:Q});O(J.maxHeight),Y(J.placement),g?.(J.placement)}},[s,f,d,v,u,g,Q]),l({ref:y,placerProps:he(he({},n),{},{placement:X||wg(f),maxHeight:E})})},mE=function(n){var l=n.children,u=n.innerRef,s=n.innerProps;return oe("div",pe({},Ke(n,"menu",{menu:!0}),{ref:u},s),l)},pE=mE,vE=function(n,l){var u=n.maxHeight,s=n.theme.spacing.baseUnit;return he({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},l?{}:{paddingBottom:s,paddingTop:s})},gE=function(n){var l=n.children,u=n.innerProps,s=n.innerRef,f=n.isMulti;return oe("div",pe({},Ke(n,"menuList",{"menu-list":!0,"menu-list--is-multi":f}),{ref:s},u),l)},Cg=function(n,l){var u=n.theme,s=u.spacing.baseUnit,f=u.colors;return he({textAlign:"center"},l?{}:{color:f.neutral40,padding:"".concat(s*2,"px ").concat(s*3,"px")})},yE=Cg,bE=Cg,_E=function(n){var l=n.children,u=l===void 0?"No options":l,s=n.innerProps,f=Un(n,sE);return oe("div",pe({},Ke(he(he({},f),{},{children:u,innerProps:s}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),s),u)},SE=function(n){var l=n.children,u=l===void 0?"Loading...":l,s=n.innerProps,f=Un(n,oE);return oe("div",pe({},Ke(he(he({},f),{},{children:u,innerProps:s}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),s),u)},EE=function(n){var l=n.rect,u=n.offset,s=n.position;return{left:l.left,position:s,top:u,width:l.width,zIndex:1}},TE=function(n){var l=n.appendTo,u=n.children,s=n.controlElement,f=n.innerProps,d=n.menuPlacement,v=n.menuPosition,h=F.useRef(null),m=F.useRef(null),g=F.useState(wg(d)),y=jn(g,2),b=y[0],S=y[1],E=F.useMemo(function(){return{setPortalPlacement:S}},[]),O=F.useState(null),R=jn(O,2),j=R[0],X=R[1],Y=F.useCallback(function(){if(s){var U=tE(s),J=v==="fixed"?0:window.pageYOffset,de=U[b]+J;(de!==j?.offset||U.left!==j?.rect.left||U.width!==j?.rect.width)&&X({offset:de,rect:U})}},[s,v,b,j?.offset,j?.rect.left,j?.rect.width]);ef(function(){Y()},[Y]);var Q=F.useCallback(function(){typeof m.current=="function"&&(m.current(),m.current=null),s&&h.current&&(m.current=XS(s,h.current,Y,{elementResize:"ResizeObserver"in window}))},[s,Y]);ef(function(){Q()},[Q]);var M=F.useCallback(function(U){h.current=U,Q()},[Q]);if(!l&&v!=="fixed"||!j)return null;var G=oe("div",pe({ref:M},Ke(he(he({},n),{},{offset:j.offset,position:v,rect:j.rect}),"menuPortal",{"menu-portal":!0}),f),u);return oe(Og.Provider,{value:E},l?i1.createPortal(G,l):G)},wE=function(n){var l=n.isDisabled,u=n.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:l?"none":void 0,position:"relative"}},OE=function(n){var l=n.children,u=n.innerProps,s=n.isDisabled,f=n.isRtl;return oe("div",pe({},Ke(n,"container",{"--is-disabled":s,"--is-rtl":f}),u),l)},CE=function(n,l){var u=n.theme.spacing,s=n.isMulti,f=n.hasValue,d=n.selectProps.controlShouldRenderValue;return he({alignItems:"center",display:s&&f&&d?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},l?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},xE=function(n){var l=n.children,u=n.innerProps,s=n.isMulti,f=n.hasValue;return oe("div",pe({},Ke(n,"valueContainer",{"value-container":!0,"value-container--is-multi":s,"value-container--has-value":f}),u),l)},AE=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},zE=function(n){var l=n.children,u=n.innerProps;return oe("div",pe({},Ke(n,"indicatorsContainer",{indicators:!0}),u),l)},ov,ME=["size"],DE=["innerProps","isRtl","size"],RE={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},xg=function(n){var l=n.size,u=Un(n,ME);return oe("svg",pe({height:l,width:l,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:RE},u))},_f=function(n){return oe(xg,pe({size:20},n),oe("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"}))},Ag=function(n){return oe(xg,pe({size:20},n),oe("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"}))},zg=function(n,l){var u=n.isFocused,s=n.theme,f=s.spacing.baseUnit,d=s.colors;return he({label:"indicatorContainer",display:"flex",transition:"color 150ms"},l?{}:{color:u?d.neutral60:d.neutral20,padding:f*2,":hover":{color:u?d.neutral80:d.neutral40}})},LE=zg,jE=function(n){var l=n.children,u=n.innerProps;return oe("div",pe({},Ke(n,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),l||oe(Ag,null))},NE=zg,qE=function(n){var l=n.children,u=n.innerProps;return oe("div",pe({},Ke(n,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),l||oe(_f,null))},UE=function(n,l){var u=n.isDisabled,s=n.theme,f=s.spacing.baseUnit,d=s.colors;return he({label:"indicatorSeparator",alignSelf:"stretch",width:1},l?{}:{backgroundColor:u?d.neutral10:d.neutral20,marginBottom:f*2,marginTop:f*2})},VE=function(n){var l=n.innerProps;return oe("span",pe({},l,Ke(n,"indicatorSeparator",{"indicator-separator":!0})))},HE=jS(ov||(ov=NS([`
4
4
  0%, 80%, 100% { opacity: 0; }
5
5
  40% { opacity: 1; }
6
- `]))),HE=function(n,l){var u=n.isFocused,s=n.size,f=n.theme,d=f.colors,v=f.spacing.baseUnit;return he({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:s,lineHeight:1,marginRight:s,textAlign:"center",verticalAlign:"middle"},l?{}:{color:u?d.neutral60:d.neutral20,padding:v*2})},Ac=function(n){var l=n.delay,u=n.offset;return oe("span",{css:vf({animation:"".concat(VE," 1s ease-in-out ").concat(l,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},BE=function(n){var l=n.innerProps,u=n.isRtl,s=n.size,f=s===void 0?4:s,d=Un(n,ME);return oe("div",pe({},Ke(he(he({},d),{},{innerProps:l,isRtl:u,size:f}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),l),oe(Ac,{delay:0,offset:u}),oe(Ac,{delay:160,offset:!0}),oe(Ac,{delay:320,offset:!u}))},GE=function(n,l){var u=n.isDisabled,s=n.isFocused,f=n.theme,d=f.colors,v=f.borderRadius,m=f.spacing;return he({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:m.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},l?{}:{backgroundColor:u?d.neutral5:d.neutral0,borderColor:u?d.neutral10:s?d.primary:d.neutral20,borderRadius:v,borderStyle:"solid",borderWidth:1,boxShadow:s?"0 0 0 1px ".concat(d.primary):void 0,"&:hover":{borderColor:s?d.primary:d.neutral30}})},IE=function(n){var l=n.children,u=n.isDisabled,s=n.isFocused,f=n.innerRef,d=n.innerProps,v=n.menuIsOpen;return oe("div",pe({ref:f},Ke(n,"control",{control:!0,"control--is-disabled":u,"control--is-focused":s,"control--menu-is-open":v}),d,{"aria-disabled":u||void 0}),l)},YE=IE,$E=["data"],PE=function(n,l){var u=n.theme.spacing;return l?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},FE=function(n){var l=n.children,u=n.cx,s=n.getStyles,f=n.getClassNames,d=n.Heading,v=n.headingProps,m=n.innerProps,h=n.label,g=n.theme,y=n.selectProps;return oe("div",pe({},Ke(n,"group",{group:!0}),m),oe(d,pe({},v,{selectProps:y,theme:g,getStyles:s,getClassNames:f,cx:u}),h),oe("div",null,l))},kE=function(n,l){var u=n.theme,s=u.colors,f=u.spacing;return he({label:"group",cursor:"default",display:"block"},l?{}:{color:s.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:f.baseUnit*3,paddingRight:f.baseUnit*3,textTransform:"uppercase"})},XE=function(n){var l=_g(n);l.data;var u=Un(l,$E);return oe("div",pe({},Ke(n,"groupHeading",{"group-heading":!0}),u))},QE=FE,ZE=["innerRef","isDisabled","isHidden","inputClassName"],KE=function(n,l){var u=n.isDisabled,s=n.value,f=n.theme,d=f.spacing,v=f.colors;return he(he({visibility:u?"hidden":"visible",transform:s?"translateZ(0)":""},JE),l?{}:{margin:d.baseUnit/2,paddingBottom:d.baseUnit/2,paddingTop:d.baseUnit/2,color:v.neutral80})},zg={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},JE={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":he({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},zg)},WE=function(n){return he({label:"input",color:"inherit",background:0,opacity:n?0:1,width:"100%"},zg)},ew=function(n){var l=n.cx,u=n.value,s=_g(n),f=s.innerRef,d=s.isDisabled,v=s.isHidden,m=s.inputClassName,h=Un(s,ZE);return oe("div",pe({},Ke(n,"input",{"input-container":!0}),{"data-value":u||""}),oe("input",pe({className:l({input:!0},m),ref:f,style:WE(v),disabled:d},h)))},tw=ew,nw=function(n,l){var u=n.theme,s=u.spacing,f=u.borderRadius,d=u.colors;return he({label:"multiValue",display:"flex",minWidth:0},l?{}:{backgroundColor:d.neutral10,borderRadius:f/2,margin:s.baseUnit/2})},aw=function(n,l){var u=n.theme,s=u.borderRadius,f=u.colors,d=n.cropWithEllipsis;return he({overflow:"hidden",textOverflow:d||d===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},l?{}:{borderRadius:s/2,color:f.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},iw=function(n,l){var u=n.theme,s=u.spacing,f=u.borderRadius,d=u.colors,v=n.isFocused;return he({alignItems:"center",display:"flex"},l?{}:{borderRadius:f/2,backgroundColor:v?d.dangerLight:void 0,paddingLeft:s.baseUnit,paddingRight:s.baseUnit,":hover":{backgroundColor:d.dangerLight,color:d.danger}})},Mg=function(n){var l=n.children,u=n.innerProps;return oe("div",u,l)},rw=Mg,lw=Mg;function uw(i){var n=i.children,l=i.innerProps;return oe("div",pe({role:"button"},l),n||oe(_f,{size:14}))}var sw=function(n){var l=n.children,u=n.components,s=n.data,f=n.innerProps,d=n.isDisabled,v=n.removeProps,m=n.selectProps,h=u.Container,g=u.Label,y=u.Remove;return oe(h,{data:s,innerProps:he(he({},Ke(n,"multiValue",{"multi-value":!0,"multi-value--is-disabled":d})),f),selectProps:m},oe(g,{data:s,innerProps:he({},Ke(n,"multiValueLabel",{"multi-value__label":!0})),selectProps:m},l),oe(y,{data:s,innerProps:he(he({},Ke(n,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(l||"option")},v),selectProps:m}))},ow=sw,cw=function(n,l){var u=n.isDisabled,s=n.isFocused,f=n.isSelected,d=n.theme,v=d.spacing,m=d.colors;return he({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},l?{}:{backgroundColor:f?m.primary:s?m.primary25:"transparent",color:u?m.neutral20:f?m.neutral0:"inherit",padding:"".concat(v.baseUnit*2,"px ").concat(v.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:f?m.primary:m.primary50}})},fw=function(n){var l=n.children,u=n.isDisabled,s=n.isFocused,f=n.isSelected,d=n.innerRef,v=n.innerProps;return oe("div",pe({},Ke(n,"option",{option:!0,"option--is-disabled":u,"option--is-focused":s,"option--is-selected":f}),{ref:d,"aria-disabled":u},v),l)},dw=fw,hw=function(n,l){var u=n.theme,s=u.spacing,f=u.colors;return he({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},l?{}:{color:f.neutral50,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},mw=function(n){var l=n.children,u=n.innerProps;return oe("div",pe({},Ke(n,"placeholder",{placeholder:!0}),u),l)},pw=mw,vw=function(n,l){var u=n.isDisabled,s=n.theme,f=s.spacing,d=s.colors;return he({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l?{}:{color:u?d.neutral40:d.neutral80,marginLeft:f.baseUnit/2,marginRight:f.baseUnit/2})},gw=function(n){var l=n.children,u=n.isDisabled,s=n.innerProps;return oe("div",pe({},Ke(n,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),s),l)},yw=gw,bw={ClearIndicator:NE,Control:YE,DropdownIndicator:LE,DownChevron:xg,CrossIcon:_f,Group:QE,GroupHeading:XE,IndicatorsContainer:AE,IndicatorSeparator:UE,Input:tw,LoadingIndicator:BE,Menu:mE,MenuList:vE,MenuPortal:EE,LoadingMessage:_E,NoOptionsMessage:bE,MultiValue:ow,MultiValueContainer:rw,MultiValueLabel:lw,MultiValueRemove:uw,Option:dw,Placeholder:pw,SelectContainer:TE,SingleValue:yw,ValueContainer:CE},_w=function(n){return he(he({},bw),n.components)},ov=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function Sw(i,n){return!!(i===n||ov(i)&&ov(n))}function Ew(i,n){if(i.length!==n.length)return!1;for(var l=0;l<i.length;l++)if(!Sw(i[l],n[l]))return!1;return!0}function ww(i,n){n===void 0&&(n=Ew);var l=null;function u(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];if(l&&l.lastThis===this&&n(s,l.lastArgs))return l.lastResult;var d=i.apply(this,s);return l={lastResult:d,lastArgs:s,lastThis:this},d}return u.clear=function(){l=null},u}var Tw={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"},Ow=function(n){return oe("span",pe({css:Tw},n))},cv=Ow,Cw={guidance:function(n){var l=n.isSearchable,u=n.isMulti,s=n.tabSelectsValue,f=n.context,d=n.isInitialFocus;switch(f){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(s?", press Tab to select the option and exit the menu":"",".");case"input":return d?"".concat(n["aria-label"]||"Select"," is focused ").concat(l?",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 l=n.action,u=n.label,s=u===void 0?"":u,f=n.labels,d=n.isDisabled;switch(l){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(s,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(f.length>1?"s":""," ").concat(f.join(","),", selected.");case"select-option":return d?"option ".concat(s," is disabled. Select another option."):"option ".concat(s,", selected.");default:return""}},onFocus:function(n){var l=n.context,u=n.focused,s=n.options,f=n.label,d=f===void 0?"":f,v=n.selectValue,m=n.isDisabled,h=n.isSelected,g=n.isAppleDevice,y=function(O,R){return O&&O.length?"".concat(O.indexOf(R)+1," of ").concat(O.length):""};if(l==="value"&&v)return"value ".concat(d," focused, ").concat(y(v,u),".");if(l==="menu"&&g){var b=m?" disabled":"",S="".concat(h?" selected":"").concat(b);return"".concat(d).concat(S,", ").concat(y(s,u),".")}return""},onFilter:function(n){var l=n.inputValue,u=n.resultsMessage;return"".concat(u).concat(l?" for search term "+l:"",".")}},xw=function(n){var l=n.ariaSelection,u=n.focusedOption,s=n.focusedValue,f=n.focusableOptions,d=n.isFocused,v=n.selectValue,m=n.selectProps,h=n.id,g=n.isAppleDevice,y=m.ariaLiveMessages,b=m.getOptionLabel,S=m.inputValue,E=m.isMulti,O=m.isOptionDisabled,R=m.isSearchable,j=m.menuIsOpen,X=m.options,Y=m.screenReaderStatus,Q=m.tabSelectsValue,M=m.isLoading,G=m["aria-label"],U=m["aria-live"],J=F.useMemo(function(){return he(he({},Cw),y||{})},[y]),de=F.useMemo(function(){var ge="";if(l&&J.onChange){var D=l.option,Z=l.options,ee=l.removedValue,Ee=l.removedValues,we=l.value,C=function(De){return Array.isArray(De)?null:De},V=ee||D||C(we),K=V?b(V):"",te=Z||Ee||void 0,ce=te?te.map(b):[],fe=he({isDisabled:V&&O(V,v),label:K,labels:ce},l);ge=J.onChange(fe)}return ge},[l,J,O,v,b]),ze=F.useMemo(function(){var ge="",D=u||s,Z=!!(u&&v&&v.includes(u));if(D&&J.onFocus){var ee={focused:D,label:b(D),isDisabled:O(D,v),isSelected:Z,options:f,context:D===u?"menu":"value",selectValue:v,isAppleDevice:g};ge=J.onFocus(ee)}return ge},[u,s,b,O,J,f,v,g]),be=F.useMemo(function(){var ge="";if(j&&X.length&&!M&&J.onFilter){var D=Y({count:f.length});ge=J.onFilter({inputValue:S,resultsMessage:D})}return ge},[f,S,j,J,X,Y,M]),W=l?.action==="initial-input-focus",ne=F.useMemo(function(){var ge="";if(J.guidance){var D=s?"value":j?"menu":"input";ge=J.guidance({"aria-label":G,context:D,isDisabled:u&&O(u,v),isMulti:E,isSearchable:R,tabSelectsValue:Q,isInitialFocus:W})}return ge},[G,u,s,E,O,R,j,J,v,Q,W]),le=oe(F.Fragment,null,oe("span",{id:"aria-selection"},de),oe("span",{id:"aria-focused"},ze),oe("span",{id:"aria-results"},be),oe("span",{id:"aria-guidance"},ne));return oe(F.Fragment,null,oe(cv,{id:h},W&&le),oe(cv,{"aria-live":U,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},d&&!W&&le))},Aw=xw,tf=[{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źẑżžẓẕƶȥɀⱬꝣ"}],zw=new RegExp("["+tf.map(function(i){return i.letters}).join("")+"]","g"),Dg={};for(var zc=0;zc<tf.length;zc++)for(var Mc=tf[zc],Dc=0;Dc<Mc.letters.length;Dc++)Dg[Mc.letters[Dc]]=Mc.base;var Rg=function(n){return n.replace(zw,function(l){return Dg[l]})},Mw=ww(Rg),fv=function(n){return n.replace(/^\s+|\s+$/g,"")},Dw=function(n){return"".concat(n.label," ").concat(n.value)},Rw=function(n){return function(l,u){if(l.data.__isNew__)return!0;var s=he({ignoreCase:!0,ignoreAccents:!0,stringify:Dw,trim:!0,matchFrom:"any"},n),f=s.ignoreCase,d=s.ignoreAccents,v=s.stringify,m=s.trim,h=s.matchFrom,g=m?fv(u):u,y=m?fv(v(l)):v(l);return f&&(g=g.toLowerCase(),y=y.toLowerCase()),d&&(g=Mw(g),y=Rg(y)),h==="start"?y.substr(0,g.length)===g:y.indexOf(g)>-1}},Lw=["innerRef"];function jw(i){var n=i.innerRef,l=Un(i,Lw),u=lE(l,"onExited","in","enter","exit","appear");return oe("input",pe({ref:n},u,{css:vf({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 Nw=function(n){n.cancelable&&n.preventDefault(),n.stopPropagation()};function qw(i){var n=i.isEnabled,l=i.onBottomArrive,u=i.onBottomLeave,s=i.onTopArrive,f=i.onTopLeave,d=F.useRef(!1),v=F.useRef(!1),m=F.useRef(0),h=F.useRef(null),g=F.useCallback(function(R,j){if(h.current!==null){var X=h.current,Y=X.scrollTop,Q=X.scrollHeight,M=X.clientHeight,G=h.current,U=j>0,J=Q-M-Y,de=!1;J>j&&d.current&&(u&&u(R),d.current=!1),U&&v.current&&(f&&f(R),v.current=!1),U&&j>J?(l&&!d.current&&l(R),G.scrollTop=Q,de=!0,d.current=!0):!U&&-j>Y&&(s&&!v.current&&s(R),G.scrollTop=0,de=!0,v.current=!0),de&&Nw(R)}},[l,u,s,f]),y=F.useCallback(function(R){g(R,R.deltaY)},[g]),b=F.useCallback(function(R){m.current=R.changedTouches[0].clientY},[]),S=F.useCallback(function(R){var j=m.current-R.changedTouches[0].clientY;g(R,j)},[g]),E=F.useCallback(function(R){if(R){var j=aE?{passive:!1}:!1;R.addEventListener("wheel",y,j),R.addEventListener("touchstart",b,j),R.addEventListener("touchmove",S,j)}},[S,b,y]),O=F.useCallback(function(R){R&&(R.removeEventListener("wheel",y,!1),R.removeEventListener("touchstart",b,!1),R.removeEventListener("touchmove",S,!1))},[S,b,y]);return F.useEffect(function(){if(n){var R=h.current;return E(R),function(){O(R)}}},[n,E,O]),function(R){h.current=R}}var dv=["boxSizing","height","overflow","paddingRight","position"],hv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function mv(i){i.cancelable&&i.preventDefault()}function pv(i){i.stopPropagation()}function vv(){var i=this.scrollTop,n=this.scrollHeight,l=i+this.offsetHeight;i===0?this.scrollTop=1:l===n&&(this.scrollTop=i-1)}function gv(){return"ontouchstart"in window||navigator.maxTouchPoints}var yv=!!(typeof window<"u"&&window.document&&window.document.createElement),Ur=0,Ci={capture:!1,passive:!1};function Uw(i){var n=i.isEnabled,l=i.accountForScrollbars,u=l===void 0?!0:l,s=F.useRef({}),f=F.useRef(null),d=F.useCallback(function(m){if(yv){var h=document.body,g=h&&h.style;if(u&&dv.forEach(function(E){var O=g&&g[E];s.current[E]=O}),u&&Ur<1){var y=parseInt(s.current.paddingRight,10)||0,b=document.body?document.body.clientWidth:0,S=window.innerWidth-b+y||0;Object.keys(hv).forEach(function(E){var O=hv[E];g&&(g[E]=O)}),g&&(g.paddingRight="".concat(S,"px"))}h&&gv()&&(h.addEventListener("touchmove",mv,Ci),m&&(m.addEventListener("touchstart",vv,Ci),m.addEventListener("touchmove",pv,Ci))),Ur+=1}},[u]),v=F.useCallback(function(m){if(yv){var h=document.body,g=h&&h.style;Ur=Math.max(Ur-1,0),u&&Ur<1&&dv.forEach(function(y){var b=s.current[y];g&&(g[y]=b)}),h&&gv()&&(h.removeEventListener("touchmove",mv,Ci),m&&(m.removeEventListener("touchstart",vv,Ci),m.removeEventListener("touchmove",pv,Ci)))}},[u]);return F.useEffect(function(){if(n){var m=f.current;return d(m),function(){v(m)}}},[n,d,v]),function(m){f.current=m}}var Vw=function(n){var l=n.target;return l.ownerDocument.activeElement&&l.ownerDocument.activeElement.blur()},Hw={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Bw(i){var n=i.children,l=i.lockEnabled,u=i.captureEnabled,s=u===void 0?!0:u,f=i.onBottomArrive,d=i.onBottomLeave,v=i.onTopArrive,m=i.onTopLeave,h=qw({isEnabled:s,onBottomArrive:f,onBottomLeave:d,onTopArrive:v,onTopLeave:m}),g=Uw({isEnabled:l}),y=function(S){h(S),g(S)};return oe(F.Fragment,null,l&&oe("div",{onClick:Vw,css:Hw}),n(y))}var Gw={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Iw=function(n){var l=n.name,u=n.onFocus;return oe("input",{required:!0,name:l,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:Gw,value:"",onChange:function(){}})},Yw=Iw;function Sf(i){var n;return typeof window<"u"&&window.navigator!=null?i.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function $w(){return Sf(/^iPhone/i)}function Lg(){return Sf(/^Mac/i)}function Pw(){return Sf(/^iPad/i)||Lg()&&navigator.maxTouchPoints>1}function Fw(){return $w()||Pw()}function kw(){return Lg()||Fw()}var Xw=function(n){return n.label},Qw=function(n){return n.label},Zw=function(n){return n.value},Kw=function(n){return!!n.isDisabled},Jw={clearIndicator:jE,container:wE,control:GE,dropdownIndicator:RE,group:PE,groupHeading:kE,indicatorsContainer:xE,indicatorSeparator:qE,input:KE,loadingIndicator:HE,loadingMessage:yE,menu:fE,menuList:pE,menuPortal:SE,multiValue:nw,multiValueLabel:aw,multiValueRemove:iw,noOptionsMessage:gE,option:cw,placeholder:hw,singleValue:vw,valueContainer:OE},Ww={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%)"},eT=4,jg=4,tT=38,nT=jg*2,aT={baseUnit:jg,controlHeight:tT,menuGutter:nT},Rc={borderRadius:eT,colors:Ww,spacing:aT},iT={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:uv(),captureMenuScroll:!uv(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Rw(),formatGroupLabel:Xw,getOptionLabel:Qw,getOptionValue:Zw,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Kw,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!tE(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(n){var l=n.count;return"".concat(l," result").concat(l!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function bv(i,n,l,u){var s=Ug(i,n,l),f=Vg(i,n,l),d=qg(i,n),v=Fu(i,n);return{type:"option",data:n,isDisabled:s,isSelected:f,label:d,value:v,index:u}}function Nu(i,n){return i.options.map(function(l,u){if("options"in l){var s=l.options.map(function(d,v){return bv(i,d,n,v)}).filter(function(d){return Sv(i,d)});return s.length>0?{type:"group",data:l,options:s,index:u}:void 0}var f=bv(i,l,n,u);return Sv(i,f)?f:void 0}).filter(iE)}function Ng(i){return i.reduce(function(n,l){return l.type==="group"?n.push.apply(n,ff(l.options.map(function(u){return u.data}))):n.push(l.data),n},[])}function _v(i,n){return i.reduce(function(l,u){return u.type==="group"?l.push.apply(l,ff(u.options.map(function(s){return{data:s.data,id:"".concat(n,"-").concat(u.index,"-").concat(s.index)}}))):l.push({data:u.data,id:"".concat(n,"-").concat(u.index)}),l},[])}function rT(i,n){return Ng(Nu(i,n))}function Sv(i,n){var l=i.inputValue,u=l===void 0?"":l,s=n.data,f=n.isSelected,d=n.label,v=n.value;return(!Bg(i)||!f)&&Hg(i,{label:d,value:v,data:s},u)}function lT(i,n){var l=i.focusedValue,u=i.selectValue,s=u.indexOf(l);if(s>-1){var f=n.indexOf(l);if(f>-1)return l;if(s<n.length)return n[s]}return null}function uT(i,n){var l=i.focusedOption;return l&&n.indexOf(l)>-1?l:n[0]}var Lc=function(n,l){var u,s=(u=n.find(function(f){return f.data===l}))===null||u===void 0?void 0:u.id;return s||null},qg=function(n,l){return n.getOptionLabel(l)},Fu=function(n,l){return n.getOptionValue(l)};function Ug(i,n,l){return typeof i.isOptionDisabled=="function"?i.isOptionDisabled(n,l):!1}function Vg(i,n,l){if(l.indexOf(n)>-1)return!0;if(typeof i.isOptionSelected=="function")return i.isOptionSelected(n,l);var u=Fu(i,n);return l.some(function(s){return Fu(i,s)===u})}function Hg(i,n,l){return i.filterOption?i.filterOption(n,l):!0}var Bg=function(n){var l=n.hideSelectedOptions,u=n.isMulti;return l===void 0?u:l},sT=1,Gg=(function(i){M1(l,i);var n=L1(l);function l(u){var s;if(A1(this,l),s=n.call(this,u),s.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},s.blockOptionHover=!1,s.isComposing=!1,s.commonProps=void 0,s.initialTouchX=0,s.initialTouchY=0,s.openAfterFocus=!1,s.scrollToFocusedOptionOnUpdate=!1,s.userIsDragging=void 0,s.controlRef=null,s.getControlRef=function(m){s.controlRef=m},s.focusedOptionRef=null,s.getFocusedOptionRef=function(m){s.focusedOptionRef=m},s.menuListRef=null,s.getMenuListRef=function(m){s.menuListRef=m},s.inputRef=null,s.getInputRef=function(m){s.inputRef=m},s.focus=s.focusInput,s.blur=s.blurInput,s.onChange=function(m,h){var g=s.props,y=g.onChange,b=g.name;h.name=b,s.ariaOnChange(m,h),y(m,h)},s.setValue=function(m,h,g){var y=s.props,b=y.closeMenuOnSelect,S=y.isMulti,E=y.inputValue;s.onInputChange("",{action:"set-value",prevInputValue:E}),b&&(s.setState({inputIsHiddenAfterUpdate:!S}),s.onMenuClose()),s.setState({clearFocusValueOnUpdate:!0}),s.onChange(m,{action:h,option:g})},s.selectOption=function(m){var h=s.props,g=h.blurInputOnSelect,y=h.isMulti,b=h.name,S=s.state.selectValue,E=y&&s.isOptionSelected(m,S),O=s.isOptionDisabled(m,S);if(E){var R=s.getOptionValue(m);s.setValue(S.filter(function(j){return s.getOptionValue(j)!==R}),"deselect-option",m)}else if(!O)y?s.setValue([].concat(ff(S),[m]),"select-option",m):s.setValue(m,"select-option");else{s.ariaOnChange(m,{action:"select-option",option:m,name:b});return}g&&s.blurInput()},s.removeValue=function(m){var h=s.props.isMulti,g=s.state.selectValue,y=s.getOptionValue(m),b=g.filter(function(E){return s.getOptionValue(E)!==y}),S=Tu(h,b,b[0]||null);s.onChange(S,{action:"remove-value",removedValue:m}),s.focusInput()},s.clearValue=function(){var m=s.state.selectValue;s.onChange(Tu(s.props.isMulti,[],null),{action:"clear",removedValues:m})},s.popValue=function(){var m=s.props.isMulti,h=s.state.selectValue,g=h[h.length-1],y=h.slice(0,h.length-1),b=Tu(m,y,y[0]||null);g&&s.onChange(b,{action:"pop-value",removedValue:g})},s.getFocusedOptionId=function(m){return Lc(s.state.focusableOptionsWithIds,m)},s.getFocusableOptionsWithIds=function(){return _v(Nu(s.props,s.state.selectValue),s.getElementId("option"))},s.getValue=function(){return s.state.selectValue},s.cx=function(){for(var m=arguments.length,h=new Array(m),g=0;g<m;g++)h[g]=arguments[g];return ZS.apply(void 0,[s.props.classNamePrefix].concat(h))},s.getOptionLabel=function(m){return qg(s.props,m)},s.getOptionValue=function(m){return Fu(s.props,m)},s.getStyles=function(m,h){var g=s.props.unstyled,y=Jw[m](h,g);y.boxSizing="border-box";var b=s.props.styles[m];return b?b(y,h):y},s.getClassNames=function(m,h){var g,y;return(g=(y=s.props.classNames)[m])===null||g===void 0?void 0:g.call(y,h)},s.getElementId=function(m){return"".concat(s.state.instancePrefix,"-").concat(m)},s.getComponents=function(){return _w(s.props)},s.buildCategorizedOptions=function(){return Nu(s.props,s.state.selectValue)},s.getCategorizedOptions=function(){return s.props.menuIsOpen?s.buildCategorizedOptions():[]},s.buildFocusableOptions=function(){return Ng(s.buildCategorizedOptions())},s.getFocusableOptions=function(){return s.props.menuIsOpen?s.buildFocusableOptions():[]},s.ariaOnChange=function(m,h){s.setState({ariaSelection:he({value:m},h)})},s.onMenuMouseDown=function(m){m.button===0&&(m.stopPropagation(),m.preventDefault(),s.focusInput())},s.onMenuMouseMove=function(m){s.blockOptionHover=!1},s.onControlMouseDown=function(m){if(!m.defaultPrevented){var h=s.props.openMenuOnClick;s.state.isFocused?s.props.menuIsOpen?m.target.tagName!=="INPUT"&&m.target.tagName!=="TEXTAREA"&&s.onMenuClose():h&&s.openMenu("first"):(h&&(s.openAfterFocus=!0),s.focusInput()),m.target.tagName!=="INPUT"&&m.target.tagName!=="TEXTAREA"&&m.preventDefault()}},s.onDropdownIndicatorMouseDown=function(m){if(!(m&&m.type==="mousedown"&&m.button!==0)&&!s.props.isDisabled){var h=s.props,g=h.isMulti,y=h.menuIsOpen;s.focusInput(),y?(s.setState({inputIsHiddenAfterUpdate:!g}),s.onMenuClose()):s.openMenu("first"),m.preventDefault()}},s.onClearIndicatorMouseDown=function(m){m&&m.type==="mousedown"&&m.button!==0||(s.clearValue(),m.preventDefault(),s.openAfterFocus=!1,m.type==="touchend"?s.focusInput():setTimeout(function(){return s.focusInput()}))},s.onScroll=function(m){typeof s.props.closeMenuOnScroll=="boolean"?m.target instanceof HTMLElement&&es(m.target)&&s.props.onMenuClose():typeof s.props.closeMenuOnScroll=="function"&&s.props.closeMenuOnScroll(m)&&s.props.onMenuClose()},s.onCompositionStart=function(){s.isComposing=!0},s.onCompositionEnd=function(){s.isComposing=!1},s.onTouchStart=function(m){var h=m.touches,g=h&&h.item(0);g&&(s.initialTouchX=g.clientX,s.initialTouchY=g.clientY,s.userIsDragging=!1)},s.onTouchMove=function(m){var h=m.touches,g=h&&h.item(0);if(g){var y=Math.abs(g.clientX-s.initialTouchX),b=Math.abs(g.clientY-s.initialTouchY),S=5;s.userIsDragging=y>S||b>S}},s.onTouchEnd=function(m){s.userIsDragging||(s.controlRef&&!s.controlRef.contains(m.target)&&s.menuListRef&&!s.menuListRef.contains(m.target)&&s.blurInput(),s.initialTouchX=0,s.initialTouchY=0)},s.onControlTouchEnd=function(m){s.userIsDragging||s.onControlMouseDown(m)},s.onClearIndicatorTouchEnd=function(m){s.userIsDragging||s.onClearIndicatorMouseDown(m)},s.onDropdownIndicatorTouchEnd=function(m){s.userIsDragging||s.onDropdownIndicatorMouseDown(m)},s.handleInputChange=function(m){var h=s.props.inputValue,g=m.currentTarget.value;s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange(g,{action:"input-change",prevInputValue:h}),s.props.menuIsOpen||s.onMenuOpen()},s.onInputFocus=function(m){s.props.onFocus&&s.props.onFocus(m),s.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(s.openAfterFocus||s.props.openMenuOnFocus)&&s.openMenu("first"),s.openAfterFocus=!1},s.onInputBlur=function(m){var h=s.props.inputValue;if(s.menuListRef&&s.menuListRef.contains(document.activeElement)){s.inputRef.focus();return}s.props.onBlur&&s.props.onBlur(m),s.onInputChange("",{action:"input-blur",prevInputValue:h}),s.onMenuClose(),s.setState({focusedValue:null,isFocused:!1})},s.onOptionHover=function(m){if(!(s.blockOptionHover||s.state.focusedOption===m)){var h=s.getFocusableOptions(),g=h.indexOf(m);s.setState({focusedOption:m,focusedOptionId:g>-1?s.getFocusedOptionId(m):null})}},s.shouldHideSelectedOptions=function(){return Bg(s.props)},s.onValueInputFocus=function(m){m.preventDefault(),m.stopPropagation(),s.focus()},s.onKeyDown=function(m){var h=s.props,g=h.isMulti,y=h.backspaceRemovesValue,b=h.escapeClearsValue,S=h.inputValue,E=h.isClearable,O=h.isDisabled,R=h.menuIsOpen,j=h.onKeyDown,X=h.tabSelectsValue,Y=h.openMenuOnFocus,Q=s.state,M=Q.focusedOption,G=Q.focusedValue,U=Q.selectValue;if(!O&&!(typeof j=="function"&&(j(m),m.defaultPrevented))){switch(s.blockOptionHover=!0,m.key){case"ArrowLeft":if(!g||S)return;s.focusValue("previous");break;case"ArrowRight":if(!g||S)return;s.focusValue("next");break;case"Delete":case"Backspace":if(S)return;if(G)s.removeValue(G);else{if(!y)return;g?s.popValue():E&&s.clearValue()}break;case"Tab":if(s.isComposing||m.shiftKey||!R||!X||!M||Y&&s.isOptionSelected(M,U))return;s.selectOption(M);break;case"Enter":if(m.keyCode===229)break;if(R){if(!M||s.isComposing)return;s.selectOption(M);break}return;case"Escape":R?(s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange("",{action:"menu-close",prevInputValue:S}),s.onMenuClose()):E&&b&&s.clearValue();break;case" ":if(S)return;if(!R){s.openMenu("first");break}if(!M)return;s.selectOption(M);break;case"ArrowUp":R?s.focusOption("up"):s.openMenu("last");break;case"ArrowDown":R?s.focusOption("down"):s.openMenu("first");break;case"PageUp":if(!R)return;s.focusOption("pageup");break;case"PageDown":if(!R)return;s.focusOption("pagedown");break;case"Home":if(!R)return;s.focusOption("first");break;case"End":if(!R)return;s.focusOption("last");break;default:return}m.preventDefault()}},s.state.instancePrefix="react-select-"+(s.props.instanceId||++sT),s.state.selectValue=rv(u.value),u.menuIsOpen&&s.state.selectValue.length){var f=s.getFocusableOptionsWithIds(),d=s.buildFocusableOptions(),v=d.indexOf(s.state.selectValue[0]);s.state.focusableOptionsWithIds=f,s.state.focusedOption=d[v],s.state.focusedOptionId=Lc(f,d[v])}return s}return z1(l,[{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&&lv(this.menuListRef,this.focusedOptionRef),kw()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(s){var f=this.props,d=f.isDisabled,v=f.menuIsOpen,m=this.state.isFocused;(m&&!d&&s.isDisabled||m&&v&&!s.menuIsOpen)&&this.focusInput(),m&&d&&!s.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!m&&!d&&s.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(lv(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(s,f){this.props.onInputChange(s,f)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(s){var f=this,d=this.state,v=d.selectValue,m=d.isFocused,h=this.buildFocusableOptions(),g=s==="first"?0:h.length-1;if(!this.props.isMulti){var y=h.indexOf(v[0]);y>-1&&(g=y)}this.scrollToFocusedOptionOnUpdate=!(m&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:h[g],focusedOptionId:this.getFocusedOptionId(h[g])},function(){return f.onMenuOpen()})}},{key:"focusValue",value:function(s){var f=this.state,d=f.selectValue,v=f.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var m=d.indexOf(v);v||(m=-1);var h=d.length-1,g=-1;if(d.length){switch(s){case"previous":m===0?g=0:m===-1?g=h:g=m-1;break;case"next":m>-1&&m<h&&(g=m+1);break}this.setState({inputIsHidden:g!==-1,focusedValue:d[g]})}}}},{key:"focusOption",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",f=this.props.pageSize,d=this.state.focusedOption,v=this.getFocusableOptions();if(v.length){var m=0,h=v.indexOf(d);d||(h=-1),s==="up"?m=h>0?h-1:v.length-1:s==="down"?m=(h+1)%v.length:s==="pageup"?(m=h-f,m<0&&(m=0)):s==="pagedown"?(m=h+f,m>v.length-1&&(m=v.length-1)):s==="last"&&(m=v.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:v[m],focusedValue:null,focusedOptionId:this.getFocusedOptionId(v[m])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Rc):he(he({},Rc),this.props.theme):Rc})},{key:"getCommonProps",value:function(){var s=this.clearValue,f=this.cx,d=this.getStyles,v=this.getClassNames,m=this.getValue,h=this.selectOption,g=this.setValue,y=this.props,b=y.isMulti,S=y.isRtl,E=y.options,O=this.hasValue();return{clearValue:s,cx:f,getStyles:d,getClassNames:v,getValue:m,hasValue:O,isMulti:b,isRtl:S,options:E,selectOption:h,selectProps:y,setValue:g,theme:this.getTheme()}}},{key:"hasValue",value:function(){var s=this.state.selectValue;return s.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var s=this.props,f=s.isClearable,d=s.isMulti;return f===void 0?d:f}},{key:"isOptionDisabled",value:function(s,f){return Ug(this.props,s,f)}},{key:"isOptionSelected",value:function(s,f){return Vg(this.props,s,f)}},{key:"filterOption",value:function(s,f){return Hg(this.props,s,f)}},{key:"formatOptionLabel",value:function(s,f){if(typeof this.props.formatOptionLabel=="function"){var d=this.props.inputValue,v=this.state.selectValue;return this.props.formatOptionLabel(s,{context:f,inputValue:d,selectValue:v})}else return this.getOptionLabel(s)}},{key:"formatGroupLabel",value:function(s){return this.props.formatGroupLabel(s)}},{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 s=this.props,f=s.isDisabled,d=s.isSearchable,v=s.inputId,m=s.inputValue,h=s.tabIndex,g=s.form,y=s.menuIsOpen,b=s.required,S=this.getComponents(),E=S.Input,O=this.state,R=O.inputIsHidden,j=O.ariaSelection,X=this.commonProps,Y=v||this.getElementId("input"),Q=he(he(he({"aria-autocomplete":"list","aria-expanded":y,"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||""},y&&{"aria-controls":this.getElementId("listbox")}),!d&&{"aria-readonly":!0}),this.hasValue()?j?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return d?F.createElement(E,pe({},X,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:Y,innerRef:this.getInputRef,isDisabled:f,isHidden:R,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:h,form:g,type:"text",value:m},Q)):F.createElement(jw,pe({id:Y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:$u,onFocus:this.onInputFocus,disabled:f,tabIndex:h,inputMode:"none",form:g,value:""},Q))})},{key:"renderPlaceholderOrValue",value:function(){var s=this,f=this.getComponents(),d=f.MultiValue,v=f.MultiValueContainer,m=f.MultiValueLabel,h=f.MultiValueRemove,g=f.SingleValue,y=f.Placeholder,b=this.commonProps,S=this.props,E=S.controlShouldRenderValue,O=S.isDisabled,R=S.isMulti,j=S.inputValue,X=S.placeholder,Y=this.state,Q=Y.selectValue,M=Y.focusedValue,G=Y.isFocused;if(!this.hasValue()||!E)return j?null:F.createElement(y,pe({},b,{key:"placeholder",isDisabled:O,isFocused:G,innerProps:{id:this.getElementId("placeholder")}}),X);if(R)return Q.map(function(J,de){var ze=J===M,be="".concat(s.getOptionLabel(J),"-").concat(s.getOptionValue(J));return F.createElement(d,pe({},b,{components:{Container:v,Label:m,Remove:h},isFocused:ze,isDisabled:O,key:be,index:de,removeProps:{onClick:function(){return s.removeValue(J)},onTouchEnd:function(){return s.removeValue(J)},onMouseDown:function(ne){ne.preventDefault()}},data:J}),s.formatOptionLabel(J,"value"))});if(j)return null;var U=Q[0];return F.createElement(g,pe({},b,{data:U,isDisabled:O}),this.formatOptionLabel(U,"value"))}},{key:"renderClearIndicator",value:function(){var s=this.getComponents(),f=s.ClearIndicator,d=this.commonProps,v=this.props,m=v.isDisabled,h=v.isLoading,g=this.state.isFocused;if(!this.isClearable()||!f||m||!this.hasValue()||h)return null;var y={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(f,pe({},d,{innerProps:y,isFocused:g}))}},{key:"renderLoadingIndicator",value:function(){var s=this.getComponents(),f=s.LoadingIndicator,d=this.commonProps,v=this.props,m=v.isDisabled,h=v.isLoading,g=this.state.isFocused;if(!f||!h)return null;var y={"aria-hidden":"true"};return F.createElement(f,pe({},d,{innerProps:y,isDisabled:m,isFocused:g}))}},{key:"renderIndicatorSeparator",value:function(){var s=this.getComponents(),f=s.DropdownIndicator,d=s.IndicatorSeparator;if(!f||!d)return null;var v=this.commonProps,m=this.props.isDisabled,h=this.state.isFocused;return F.createElement(d,pe({},v,{isDisabled:m,isFocused:h}))}},{key:"renderDropdownIndicator",value:function(){var s=this.getComponents(),f=s.DropdownIndicator;if(!f)return null;var d=this.commonProps,v=this.props.isDisabled,m=this.state.isFocused,h={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(f,pe({},d,{innerProps:h,isDisabled:v,isFocused:m}))}},{key:"renderMenu",value:function(){var s=this,f=this.getComponents(),d=f.Group,v=f.GroupHeading,m=f.Menu,h=f.MenuList,g=f.MenuPortal,y=f.LoadingMessage,b=f.NoOptionsMessage,S=f.Option,E=this.commonProps,O=this.state.focusedOption,R=this.props,j=R.captureMenuScroll,X=R.inputValue,Y=R.isLoading,Q=R.loadingMessage,M=R.minMenuHeight,G=R.maxMenuHeight,U=R.menuIsOpen,J=R.menuPlacement,de=R.menuPosition,ze=R.menuPortalTarget,be=R.menuShouldBlockScroll,W=R.menuShouldScrollIntoView,ne=R.noOptionsMessage,le=R.onMenuScrollToTop,ge=R.onMenuScrollToBottom;if(!U)return null;var D=function(K,te){var ce=K.type,fe=K.data,ue=K.isDisabled,De=K.isSelected,Re=K.label,nn=K.value,ha=O===fe,Ga=ue?void 0:function(){return s.onOptionHover(fe)},Qr=ue?void 0:function(){return s.selectOption(fe)},an="".concat(s.getElementId("option"),"-").concat(te),Bi={id:an,onClick:Qr,onMouseMove:Ga,onMouseOver:Ga,tabIndex:-1,role:"option","aria-selected":s.state.isAppleDevice?void 0:De};return F.createElement(S,pe({},E,{innerProps:Bi,data:fe,isDisabled:ue,isSelected:De,key:an,label:Re,type:ce,value:nn,isFocused:ha,innerRef:ha?s.getFocusedOptionRef:void 0}),s.formatOptionLabel(K.data,"menu"))},Z;if(this.hasOptions())Z=this.getCategorizedOptions().map(function(V){if(V.type==="group"){var K=V.data,te=V.options,ce=V.index,fe="".concat(s.getElementId("group"),"-").concat(ce),ue="".concat(fe,"-heading");return F.createElement(d,pe({},E,{key:fe,data:K,options:te,Heading:v,headingProps:{id:ue,data:V.data},label:s.formatGroupLabel(V.data)}),V.options.map(function(De){return D(De,"".concat(ce,"-").concat(De.index))}))}else if(V.type==="option")return D(V,"".concat(V.index))});else if(Y){var ee=Q({inputValue:X});if(ee===null)return null;Z=F.createElement(y,E,ee)}else{var Ee=ne({inputValue:X});if(Ee===null)return null;Z=F.createElement(b,E,Ee)}var we={minMenuHeight:M,maxMenuHeight:G,menuPlacement:J,menuPosition:de,menuShouldScrollIntoView:W},C=F.createElement(dE,pe({},E,we),function(V){var K=V.ref,te=V.placerProps,ce=te.placement,fe=te.maxHeight;return F.createElement(m,pe({},E,we,{innerRef:K,innerProps:{onMouseDown:s.onMenuMouseDown,onMouseMove:s.onMenuMouseMove},isLoading:Y,placement:ce}),F.createElement(Bw,{captureEnabled:j,onTopArrive:le,onBottomArrive:ge,lockEnabled:be},function(ue){return F.createElement(h,pe({},E,{innerRef:function(Re){s.getMenuListRef(Re),ue(Re)},innerProps:{role:"listbox","aria-multiselectable":E.isMulti,id:s.getElementId("listbox")},isLoading:Y,maxHeight:fe,focusedOption:O}),Z)}))});return ze||de==="fixed"?F.createElement(g,pe({},E,{appendTo:ze,controlElement:this.controlRef,menuPlacement:J,menuPosition:de}),C):C}},{key:"renderFormField",value:function(){var s=this,f=this.props,d=f.delimiter,v=f.isDisabled,m=f.isMulti,h=f.name,g=f.required,y=this.state.selectValue;if(g&&!this.hasValue()&&!v)return F.createElement(Yw,{name:h,onFocus:this.onValueInputFocus});if(!(!h||v))if(m)if(d){var b=y.map(function(O){return s.getOptionValue(O)}).join(d);return F.createElement("input",{name:h,type:"hidden",value:b})}else{var S=y.length>0?y.map(function(O,R){return F.createElement("input",{key:"i-".concat(R),name:h,type:"hidden",value:s.getOptionValue(O)})}):F.createElement("input",{name:h,type:"hidden",value:""});return F.createElement("div",null,S)}else{var E=y[0]?this.getOptionValue(y[0]):"";return F.createElement("input",{name:h,type:"hidden",value:E})}}},{key:"renderLiveRegion",value:function(){var s=this.commonProps,f=this.state,d=f.ariaSelection,v=f.focusedOption,m=f.focusedValue,h=f.isFocused,g=f.selectValue,y=this.getFocusableOptions();return F.createElement(Aw,pe({},s,{id:this.getElementId("live-region"),ariaSelection:d,focusedOption:v,focusedValue:m,isFocused:h,selectValue:g,focusableOptions:y,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var s=this.getComponents(),f=s.Control,d=s.IndicatorsContainer,v=s.SelectContainer,m=s.ValueContainer,h=this.props,g=h.className,y=h.id,b=h.isDisabled,S=h.menuIsOpen,E=this.state.isFocused,O=this.commonProps=this.getCommonProps();return F.createElement(v,pe({},O,{className:g,innerProps:{id:y,onKeyDown:this.onKeyDown},isDisabled:b,isFocused:E}),this.renderLiveRegion(),F.createElement(f,pe({},O,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:b,isFocused:E,menuIsOpen:S}),F.createElement(m,pe({},O,{isDisabled:b}),this.renderPlaceholderOrValue(),this.renderInput()),F.createElement(d,pe({},O,{isDisabled:b}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(s,f){var d=f.prevProps,v=f.clearFocusValueOnUpdate,m=f.inputIsHiddenAfterUpdate,h=f.ariaSelection,g=f.isFocused,y=f.prevWasFocused,b=f.instancePrefix,S=s.options,E=s.value,O=s.menuIsOpen,R=s.inputValue,j=s.isMulti,X=rv(E),Y={};if(d&&(E!==d.value||S!==d.options||O!==d.menuIsOpen||R!==d.inputValue)){var Q=O?rT(s,X):[],M=O?_v(Nu(s,X),"".concat(b,"-option")):[],G=v?lT(f,X):null,U=uT(f,Q),J=Lc(M,U);Y={selectValue:X,focusedOption:U,focusedOptionId:J,focusableOptionsWithIds:M,focusedValue:G,clearFocusValueOnUpdate:!1}}var de=m!=null&&s!==d?{inputIsHidden:m,inputIsHiddenAfterUpdate:void 0}:{},ze=h,be=g&&y;return g&&!be&&(ze={value:Tu(j,X,X[0]||null),options:X,action:"initial-input-focus"},be=!y),h?.action==="initial-input-focus"&&(ze=null),he(he(he({},Y),de),{},{prevProps:s,ariaSelection:ze,prevWasFocused:be})}}]),l})(F.Component);Gg.defaultProps=iT;var oT=F.forwardRef(function(i,n){var l=x1(i);return F.createElement(Gg,pe({ref:n},l))}),cT=oT,Pe=function(){return Pe=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Pe.apply(this,arguments)},fT=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l},dT=function(i){return Pe(Pe({},i),{borderRadius:0,colors:Pe(Pe({},i.colors),{primary25:"var(--semi-transparent-accent-color)",neutral10:"var(--border-color)",neutral20:"var(--border-color)",primary:"var(--accent-color)",neutral30:"var(--darker-border-color)"})})},hT=function(i,n){return F.useMemo(function(){return{placeholder:function(l){return Pe(Pe({},l),{color:"var(--placeholder-body-color)"})},container:function(l){return Pe(Pe({},l),{fontSize:"inherit"})},control:function(l,u){var s=u.isFocused,f=l;return f=Pe(Pe({},f),{minHeight:40}),s?Pe(Pe({},f),{borderColor:n?"var(--alert-color)":"var(--accent-color)",backgroundColor:i?"var(--disabled-color)":"white",boxShadow:"0 0 0 3px ".concat(n?"rgba(var(--alert-color-rgb-components), 0.2)":"var(--semi-transparent-accent-color)"),"&:hover":{borderColor:n?"var(--alert-color)":"var(--accent-color)"}}):Pe(Pe({},f),{borderColor:n?"var(--alert-color)":"var(--border-color)",backgroundColor:i?"var(--disabled-color)":"white","&:hover":{borderColor:n?"var(--alert-color)":"var(--darker-border-color)"}})},multiValueRemove:function(l){return Pe(Pe({},l),{cursor:"pointer"})},menu:function(l){return Pe(Pe({},l),{zIndex:1e3,minWidth:250})},input:function(l){var u=Pe(Pe({},l),{boxShadow:"none","input:focus":{boxShadow:"none"}});return u},multiValue:function(l){return Pe(Pe({},l),{zIndex:100,backgroundColor:"var(--light-color)",userSelect:"none"})},multiValueLabel:function(l){return Pe(Pe({},l),{fontSize:"inherit",padding:3})}}},[i,n])};function mT(i){var n=i.isDisabled,l=i.error,u=fT(i,["isDisabled","error"]),s=hT(n,l);return Se.createElement(cT,Pe({},u,{isDisabled:n,theme:dT,styles:s}))}const pT="_Spinner__bar_oumod_13",jc={"Spinner--inline":"_Spinner--inline_oumod_1","Spinner--centered":"_Spinner--centered_oumod_7",Spinner__bar:pT};var ku=function(){return ku=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},ku.apply(this,arguments)};function vT(i){for(var n,l=i.size,u=l===void 0?32:l,s=i.placement,f=s===void 0?"inline":s,d=i.style,v=d===void 0?{}:d,m=[],h=0;h<12;h+=1){var g={};g.animationDelay="".concat((h-12)/10,"s"),g.transform="rotate(".concat(h*30,"deg) translate(146%)"),m.push(Se.createElement("div",{style:g,className:jc.Spinner__bar,key:h}))}var y={width:u*.5,height:u*.5};return f==="inline"&&(y.marginLeft=u*.5,y.transform="translateY(33%)"),Se.createElement("div",{className:hn((n={},n[jc["Spinner--inline"]]=f==="inline",n[jc["Spinner--centered"]]=f==="centered",n)),style:ku(ku({},v),y)},m)}const gT="_switchField__flex_16z4j_1",yT="_switchField__switchInput_16z4j_6",bT="_switchField__label_16z4j_10",_T="_switchField__below_16z4j_22",Ou={switchField__flex:gT,switchField__switchInput:yT,switchField__label:bT,switchField__below:_T};var Xu=function(){return Xu=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Xu.apply(this,arguments)};function ja(i){var n=i.id,l=i.name,u=i.label,s=i.hint,f=i.error,d=i.required,v=i.formLabelProps,m=i.value,h=i.onChange,g=i.switchInputProps;return Se.createElement(Se.Fragment,null,Se.createElement("div",{className:Ou.switchField__flex},Se.createElement("div",{className:Ou.switchField__switchInput},Se.createElement(CT,Xu({},g,{name:l,value:m,onChange:h}))),Se.createElement(Wv,Xu({},v,{htmlFor:n,required:d,className:hn(Ou.switchField__label,v?.className),error:!!f}),u)),(s||f)&&Se.createElement("div",{className:Ou.switchField__below},f&&Se.createElement(Zv,null,f),s&&Se.createElement(Kv,null,s)))}const ST="_switchInput__inner_1knbg_1",ET="_switchInput_1knbg_1",wT="_switchInput__checked_1knbg_47",TT="_switchInput__disabled_1knbg_60",Cu={switchInput__inner:ST,switchInput:ET,switchInput__checked:wT,switchInput__disabled:TT};var nf=function(){return nf=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},nf.apply(this,arguments)},OT=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l};function CT(i){var n,l=i.className,u=i.value,s=i.disabled,f=i.onClick,d=i.onChange,v=i.onKeyDown,m=OT(i,["className","value","disabled","onClick","onChange","onKeyDown"]);function h(S,E){!s&&d&&d(S,E)}function g(S){S.key==="ArrowLeft"?h(!1,S):S.key==="ArrowRight"&&h(!0,S),v?.(S)}function y(S){h(!u,S),f?.(S)}var b=hn(Cu.switchInput,l,(n={},n[Cu.switchInput__checked]=u,n[Cu.switchInput__disabled]=s,n));return Se.createElement("button",nf({},m,{type:"button",role:"switch","aria-checked":u,disabled:s,className:b,onKeyDown:g,onClick:y}),Se.createElement("span",{className:Cu.switchInput__inner}))}var af=function(){return af=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},af.apply(this,arguments)};function Na(i){var n=i.id,l=i.name,u=i.label,s=i.hint,f=i.error,d=i.required,v=i.placeholder,m=i.formLabelProps,h=i.value,g=i.onChange,y=i.textInputProps;return Se.createElement(Jv,{formLabelProps:m,id:n,required:d,error:f,hint:s,label:u},Se.createElement(zT,af({},y,{id:n,name:l,value:h,placeholder:v,onChange:g,error:!!f})))}const xT="_TextInput_x2oj2_1",xu={TextInput:xT,"TextInput--monospaced":"_TextInput--monospaced_x2oj2_30","TextInput--disabled":"_TextInput--disabled_x2oj2_35","TextInput--error":"_TextInput--error_x2oj2_41"};var rf=function(){return rf=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},rf.apply(this,arguments)},AT=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l},zT=function(i){var n,l=i.className,u=i.disabled,s=u===void 0?!1:u,f=i.error,d=i.id,v=i.inputRef,m=i.maxLength,h=i.name,g=i.labelText,y=i.onBlur,b=i.onChange,S=i.placeholder,E=i.required,O=E===void 0?!1:E,R=i.type,j=i.value,X=i.monospaced,Y=AT(i,["className","disabled","error","id","inputRef","maxLength","name","labelText","onBlur","onChange","placeholder","required","type","value","monospaced"]),Q=F.useCallback(function(G){b&&b(G.target.value,G)},[b]),M=hn(xu.TextInput,l,(n={},n[xu["TextInput--disabled"]]=s,n[xu["TextInput--error"]]=f,n[xu["TextInput--monospaced"]]=X,n));return Se.createElement("input",rf({className:M,"aria-label":g,id:d,name:h,required:O,placeholder:S,maxLength:m,disabled:s,onBlur:y,onChange:Q,value:j,type:R,ref:v},Y))};function MT({ctx:i}){const n=i.isEnvironmentPrimary?"":`/environments/${i.environment}`;return T.jsx(Xv,{ctx:i,children:T.jsx(da,{buttonType:"muted",buttonSize:"l",fullWidth:!0,onClick:()=>i.navigateTo(`${n}/configuration/p/${i.plugin.id}/pages/optimize-assets`),children:"Go to asset optimization"})})}const DT="modulepreload",RT=function(i,n){return new URL(i,n).href},Ev={},LT=function(n,l,u){let s=Promise.resolve();if(l&&l.length>0){let h=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const d=document.getElementsByTagName("link"),v=document.querySelector("meta[property=csp-nonce]"),m=v?.nonce||v?.getAttribute("nonce");s=h(l.map(g=>{if(g=RT(g,u),g in Ev)return;Ev[g]=!0;const y=g.endsWith(".css"),b=y?'[rel="stylesheet"]':"";if(u)for(let E=d.length-1;E>=0;E--){const O=d[E];if(O.href===g&&(!y||O.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${g}"]${b}`))return;const S=document.createElement("link");if(S.rel=y?"stylesheet":DT,y||(S.as="script"),S.crossOrigin="",S.href=g,m&&S.setAttribute("nonce",m),document.head.appendChild(S),y)return new Promise((E,O)=>{S.addEventListener("load",E),S.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${g}`)))})}))}function f(d){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=d,window.dispatchEvent(v),!v.defaultPrevented)throw d}return s.then(d=>{for(const v of d||[])v.status==="rejected"&&f(v.reason);return n().catch(f)})};function Ig(i){return typeof i=="object"&&!!i&&"data"in i}function jT(i){return typeof i=="object"&&!!i&&"included"in i}function tn({__itemTypeId:i,id:n,type:l,attributes:u,relationships:s,meta:f}){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i?{__itemTypeId:i}:{}),n?{id:n}:{}),l?{type:l}:{}),u||{}),s?Object.fromEntries(Object.entries(s).map(([d,v])=>[d,v?.data])):{}),f?{meta:f}:{})}function A(i){if(!Ig(i))throw new Error("Invalid body!");return Array.isArray(i.data)?i.data.map(tn):tn(i.data)}function Yg(i){return!!(i&&typeof i=="object"&&"type"in i&&i.type==="item")}function lf(i){if(Array.isArray(i))return i.map(lf);if(i&&typeof i=="object"){if(Yg(i))return Gr(i);const n={};for(const[l,u]of Object.entries(i))n[l]=lf(u);return n}return i}function Gr(i){if(!Yg(i))return i;const n=i.attributes?lf(i.attributes):i.attributes;return Object.assign(Object.assign({},i),{attributes:n,__itemTypeId:i.relationships.item_type.data.id})}function Zt(i){if(!Ig(i))throw new Error("Invalid body!");let n;Array.isArray(i.data)?n=i.data.map(Gr):n=Gr(i.data);let l;return jT(i)&&(l=i.included.map(Gr)),Object.assign(Object.assign(Object.assign({},i),{data:n}),l?{included:l}:{})}function NT(i){if(typeof i!="object"||i===null||!("data"in i))return!1;const n=i;if(!Array.isArray(n.data))return!1;const l=n;if(l.data.length===0)return!1;const u=l.data[0];return!(typeof u!="object"||u===null||!("id"in u)||!("type"in u)||!("attributes"in u)||u.type!=="api_error")}class qT extends Error{constructor(n){super("API Error!"),Object.setPrototypeOf(this,new.target.prototype),"captureStackTrace"in Error?Error.captureStackTrace(this,Va):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+=`
6
+ `]))),BE=function(n,l){var u=n.isFocused,s=n.size,f=n.theme,d=f.colors,v=f.spacing.baseUnit;return he({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:s,lineHeight:1,marginRight:s,textAlign:"center",verticalAlign:"middle"},l?{}:{color:u?d.neutral60:d.neutral20,padding:v*2})},zc=function(n){var l=n.delay,u=n.offset;return oe("span",{css:vf({animation:"".concat(HE," 1s ease-in-out ").concat(l,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},GE=function(n){var l=n.innerProps,u=n.isRtl,s=n.size,f=s===void 0?4:s,d=Un(n,DE);return oe("div",pe({},Ke(he(he({},d),{},{innerProps:l,isRtl:u,size:f}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),l),oe(zc,{delay:0,offset:u}),oe(zc,{delay:160,offset:!0}),oe(zc,{delay:320,offset:!u}))},IE=function(n,l){var u=n.isDisabled,s=n.isFocused,f=n.theme,d=f.colors,v=f.borderRadius,h=f.spacing;return he({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:h.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},l?{}:{backgroundColor:u?d.neutral5:d.neutral0,borderColor:u?d.neutral10:s?d.primary:d.neutral20,borderRadius:v,borderStyle:"solid",borderWidth:1,boxShadow:s?"0 0 0 1px ".concat(d.primary):void 0,"&:hover":{borderColor:s?d.primary:d.neutral30}})},YE=function(n){var l=n.children,u=n.isDisabled,s=n.isFocused,f=n.innerRef,d=n.innerProps,v=n.menuIsOpen;return oe("div",pe({ref:f},Ke(n,"control",{control:!0,"control--is-disabled":u,"control--is-focused":s,"control--menu-is-open":v}),d,{"aria-disabled":u||void 0}),l)},$E=YE,PE=["data"],FE=function(n,l){var u=n.theme.spacing;return l?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},kE=function(n){var l=n.children,u=n.cx,s=n.getStyles,f=n.getClassNames,d=n.Heading,v=n.headingProps,h=n.innerProps,m=n.label,g=n.theme,y=n.selectProps;return oe("div",pe({},Ke(n,"group",{group:!0}),h),oe(d,pe({},v,{selectProps:y,theme:g,getStyles:s,getClassNames:f,cx:u}),m),oe("div",null,l))},XE=function(n,l){var u=n.theme,s=u.colors,f=u.spacing;return he({label:"group",cursor:"default",display:"block"},l?{}:{color:s.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:f.baseUnit*3,paddingRight:f.baseUnit*3,textTransform:"uppercase"})},QE=function(n){var l=Sg(n);l.data;var u=Un(l,PE);return oe("div",pe({},Ke(n,"groupHeading",{"group-heading":!0}),u))},ZE=kE,KE=["innerRef","isDisabled","isHidden","inputClassName"],JE=function(n,l){var u=n.isDisabled,s=n.value,f=n.theme,d=f.spacing,v=f.colors;return he(he({visibility:u?"hidden":"visible",transform:s?"translateZ(0)":""},WE),l?{}:{margin:d.baseUnit/2,paddingBottom:d.baseUnit/2,paddingTop:d.baseUnit/2,color:v.neutral80})},Mg={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},WE={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":he({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Mg)},eT=function(n){return he({label:"input",color:"inherit",background:0,opacity:n?0:1,width:"100%"},Mg)},tT=function(n){var l=n.cx,u=n.value,s=Sg(n),f=s.innerRef,d=s.isDisabled,v=s.isHidden,h=s.inputClassName,m=Un(s,KE);return oe("div",pe({},Ke(n,"input",{"input-container":!0}),{"data-value":u||""}),oe("input",pe({className:l({input:!0},h),ref:f,style:eT(v),disabled:d},m)))},nT=tT,aT=function(n,l){var u=n.theme,s=u.spacing,f=u.borderRadius,d=u.colors;return he({label:"multiValue",display:"flex",minWidth:0},l?{}:{backgroundColor:d.neutral10,borderRadius:f/2,margin:s.baseUnit/2})},iT=function(n,l){var u=n.theme,s=u.borderRadius,f=u.colors,d=n.cropWithEllipsis;return he({overflow:"hidden",textOverflow:d||d===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},l?{}:{borderRadius:s/2,color:f.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},rT=function(n,l){var u=n.theme,s=u.spacing,f=u.borderRadius,d=u.colors,v=n.isFocused;return he({alignItems:"center",display:"flex"},l?{}:{borderRadius:f/2,backgroundColor:v?d.dangerLight:void 0,paddingLeft:s.baseUnit,paddingRight:s.baseUnit,":hover":{backgroundColor:d.dangerLight,color:d.danger}})},Dg=function(n){var l=n.children,u=n.innerProps;return oe("div",u,l)},lT=Dg,uT=Dg;function sT(i){var n=i.children,l=i.innerProps;return oe("div",pe({role:"button"},l),n||oe(_f,{size:14}))}var oT=function(n){var l=n.children,u=n.components,s=n.data,f=n.innerProps,d=n.isDisabled,v=n.removeProps,h=n.selectProps,m=u.Container,g=u.Label,y=u.Remove;return oe(m,{data:s,innerProps:he(he({},Ke(n,"multiValue",{"multi-value":!0,"multi-value--is-disabled":d})),f),selectProps:h},oe(g,{data:s,innerProps:he({},Ke(n,"multiValueLabel",{"multi-value__label":!0})),selectProps:h},l),oe(y,{data:s,innerProps:he(he({},Ke(n,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(l||"option")},v),selectProps:h}))},cT=oT,fT=function(n,l){var u=n.isDisabled,s=n.isFocused,f=n.isSelected,d=n.theme,v=d.spacing,h=d.colors;return he({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},l?{}:{backgroundColor:f?h.primary:s?h.primary25:"transparent",color:u?h.neutral20:f?h.neutral0:"inherit",padding:"".concat(v.baseUnit*2,"px ").concat(v.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:f?h.primary:h.primary50}})},dT=function(n){var l=n.children,u=n.isDisabled,s=n.isFocused,f=n.isSelected,d=n.innerRef,v=n.innerProps;return oe("div",pe({},Ke(n,"option",{option:!0,"option--is-disabled":u,"option--is-focused":s,"option--is-selected":f}),{ref:d,"aria-disabled":u},v),l)},hT=dT,mT=function(n,l){var u=n.theme,s=u.spacing,f=u.colors;return he({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},l?{}:{color:f.neutral50,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},pT=function(n){var l=n.children,u=n.innerProps;return oe("div",pe({},Ke(n,"placeholder",{placeholder:!0}),u),l)},vT=pT,gT=function(n,l){var u=n.isDisabled,s=n.theme,f=s.spacing,d=s.colors;return he({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l?{}:{color:u?d.neutral40:d.neutral80,marginLeft:f.baseUnit/2,marginRight:f.baseUnit/2})},yT=function(n){var l=n.children,u=n.isDisabled,s=n.innerProps;return oe("div",pe({},Ke(n,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),s),l)},bT=yT,_T={ClearIndicator:qE,Control:$E,DropdownIndicator:jE,DownChevron:Ag,CrossIcon:_f,Group:ZE,GroupHeading:QE,IndicatorsContainer:zE,IndicatorSeparator:VE,Input:nT,LoadingIndicator:GE,Menu:pE,MenuList:gE,MenuPortal:TE,LoadingMessage:SE,NoOptionsMessage:_E,MultiValue:cT,MultiValueContainer:lT,MultiValueLabel:uT,MultiValueRemove:sT,Option:hT,Placeholder:vT,SelectContainer:OE,SingleValue:bT,ValueContainer:xE},ST=function(n){return he(he({},_T),n.components)},cv=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function ET(i,n){return!!(i===n||cv(i)&&cv(n))}function TT(i,n){if(i.length!==n.length)return!1;for(var l=0;l<i.length;l++)if(!ET(i[l],n[l]))return!1;return!0}function wT(i,n){n===void 0&&(n=TT);var l=null;function u(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];if(l&&l.lastThis===this&&n(s,l.lastArgs))return l.lastResult;var d=i.apply(this,s);return l={lastResult:d,lastArgs:s,lastThis:this},d}return u.clear=function(){l=null},u}var OT={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"},CT=function(n){return oe("span",pe({css:OT},n))},fv=CT,xT={guidance:function(n){var l=n.isSearchable,u=n.isMulti,s=n.tabSelectsValue,f=n.context,d=n.isInitialFocus;switch(f){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(s?", press Tab to select the option and exit the menu":"",".");case"input":return d?"".concat(n["aria-label"]||"Select"," is focused ").concat(l?",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 l=n.action,u=n.label,s=u===void 0?"":u,f=n.labels,d=n.isDisabled;switch(l){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(s,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(f.length>1?"s":""," ").concat(f.join(","),", selected.");case"select-option":return d?"option ".concat(s," is disabled. Select another option."):"option ".concat(s,", selected.");default:return""}},onFocus:function(n){var l=n.context,u=n.focused,s=n.options,f=n.label,d=f===void 0?"":f,v=n.selectValue,h=n.isDisabled,m=n.isSelected,g=n.isAppleDevice,y=function(O,R){return O&&O.length?"".concat(O.indexOf(R)+1," of ").concat(O.length):""};if(l==="value"&&v)return"value ".concat(d," focused, ").concat(y(v,u),".");if(l==="menu"&&g){var b=h?" disabled":"",S="".concat(m?" selected":"").concat(b);return"".concat(d).concat(S,", ").concat(y(s,u),".")}return""},onFilter:function(n){var l=n.inputValue,u=n.resultsMessage;return"".concat(u).concat(l?" for search term "+l:"",".")}},AT=function(n){var l=n.ariaSelection,u=n.focusedOption,s=n.focusedValue,f=n.focusableOptions,d=n.isFocused,v=n.selectValue,h=n.selectProps,m=n.id,g=n.isAppleDevice,y=h.ariaLiveMessages,b=h.getOptionLabel,S=h.inputValue,E=h.isMulti,O=h.isOptionDisabled,R=h.isSearchable,j=h.menuIsOpen,X=h.options,Y=h.screenReaderStatus,Q=h.tabSelectsValue,M=h.isLoading,G=h["aria-label"],U=h["aria-live"],J=F.useMemo(function(){return he(he({},xT),y||{})},[y]),de=F.useMemo(function(){var ge="";if(l&&J.onChange){var D=l.option,Z=l.options,ee=l.removedValue,Ee=l.removedValues,Te=l.value,C=function(De){return Array.isArray(De)?null:De},V=ee||D||C(Te),K=V?b(V):"",te=Z||Ee||void 0,ce=te?te.map(b):[],fe=he({isDisabled:V&&O(V,v),label:K,labels:ce},l);ge=J.onChange(fe)}return ge},[l,J,O,v,b]),ze=F.useMemo(function(){var ge="",D=u||s,Z=!!(u&&v&&v.includes(u));if(D&&J.onFocus){var ee={focused:D,label:b(D),isDisabled:O(D,v),isSelected:Z,options:f,context:D===u?"menu":"value",selectValue:v,isAppleDevice:g};ge=J.onFocus(ee)}return ge},[u,s,b,O,J,f,v,g]),be=F.useMemo(function(){var ge="";if(j&&X.length&&!M&&J.onFilter){var D=Y({count:f.length});ge=J.onFilter({inputValue:S,resultsMessage:D})}return ge},[f,S,j,J,X,Y,M]),W=l?.action==="initial-input-focus",ne=F.useMemo(function(){var ge="";if(J.guidance){var D=s?"value":j?"menu":"input";ge=J.guidance({"aria-label":G,context:D,isDisabled:u&&O(u,v),isMulti:E,isSearchable:R,tabSelectsValue:Q,isInitialFocus:W})}return ge},[G,u,s,E,O,R,j,J,v,Q,W]),le=oe(F.Fragment,null,oe("span",{id:"aria-selection"},de),oe("span",{id:"aria-focused"},ze),oe("span",{id:"aria-results"},be),oe("span",{id:"aria-guidance"},ne));return oe(F.Fragment,null,oe(fv,{id:m},W&&le),oe(fv,{"aria-live":U,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},d&&!W&&le))},zT=AT,tf=[{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źẑżžẓẕƶȥɀⱬꝣ"}],MT=new RegExp("["+tf.map(function(i){return i.letters}).join("")+"]","g"),Rg={};for(var Mc=0;Mc<tf.length;Mc++)for(var Dc=tf[Mc],Rc=0;Rc<Dc.letters.length;Rc++)Rg[Dc.letters[Rc]]=Dc.base;var Lg=function(n){return n.replace(MT,function(l){return Rg[l]})},DT=wT(Lg),dv=function(n){return n.replace(/^\s+|\s+$/g,"")},RT=function(n){return"".concat(n.label," ").concat(n.value)},LT=function(n){return function(l,u){if(l.data.__isNew__)return!0;var s=he({ignoreCase:!0,ignoreAccents:!0,stringify:RT,trim:!0,matchFrom:"any"},n),f=s.ignoreCase,d=s.ignoreAccents,v=s.stringify,h=s.trim,m=s.matchFrom,g=h?dv(u):u,y=h?dv(v(l)):v(l);return f&&(g=g.toLowerCase(),y=y.toLowerCase()),d&&(g=DT(g),y=Lg(y)),m==="start"?y.substr(0,g.length)===g:y.indexOf(g)>-1}},jT=["innerRef"];function NT(i){var n=i.innerRef,l=Un(i,jT),u=uE(l,"onExited","in","enter","exit","appear");return oe("input",pe({ref:n},u,{css:vf({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 qT=function(n){n.cancelable&&n.preventDefault(),n.stopPropagation()};function UT(i){var n=i.isEnabled,l=i.onBottomArrive,u=i.onBottomLeave,s=i.onTopArrive,f=i.onTopLeave,d=F.useRef(!1),v=F.useRef(!1),h=F.useRef(0),m=F.useRef(null),g=F.useCallback(function(R,j){if(m.current!==null){var X=m.current,Y=X.scrollTop,Q=X.scrollHeight,M=X.clientHeight,G=m.current,U=j>0,J=Q-M-Y,de=!1;J>j&&d.current&&(u&&u(R),d.current=!1),U&&v.current&&(f&&f(R),v.current=!1),U&&j>J?(l&&!d.current&&l(R),G.scrollTop=Q,de=!0,d.current=!0):!U&&-j>Y&&(s&&!v.current&&s(R),G.scrollTop=0,de=!0,v.current=!0),de&&qT(R)}},[l,u,s,f]),y=F.useCallback(function(R){g(R,R.deltaY)},[g]),b=F.useCallback(function(R){h.current=R.changedTouches[0].clientY},[]),S=F.useCallback(function(R){var j=h.current-R.changedTouches[0].clientY;g(R,j)},[g]),E=F.useCallback(function(R){if(R){var j=iE?{passive:!1}:!1;R.addEventListener("wheel",y,j),R.addEventListener("touchstart",b,j),R.addEventListener("touchmove",S,j)}},[S,b,y]),O=F.useCallback(function(R){R&&(R.removeEventListener("wheel",y,!1),R.removeEventListener("touchstart",b,!1),R.removeEventListener("touchmove",S,!1))},[S,b,y]);return F.useEffect(function(){if(n){var R=m.current;return E(R),function(){O(R)}}},[n,E,O]),function(R){m.current=R}}var hv=["boxSizing","height","overflow","paddingRight","position"],mv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function pv(i){i.cancelable&&i.preventDefault()}function vv(i){i.stopPropagation()}function gv(){var i=this.scrollTop,n=this.scrollHeight,l=i+this.offsetHeight;i===0?this.scrollTop=1:l===n&&(this.scrollTop=i-1)}function yv(){return"ontouchstart"in window||navigator.maxTouchPoints}var bv=!!(typeof window<"u"&&window.document&&window.document.createElement),Ur=0,Ci={capture:!1,passive:!1};function VT(i){var n=i.isEnabled,l=i.accountForScrollbars,u=l===void 0?!0:l,s=F.useRef({}),f=F.useRef(null),d=F.useCallback(function(h){if(bv){var m=document.body,g=m&&m.style;if(u&&hv.forEach(function(E){var O=g&&g[E];s.current[E]=O}),u&&Ur<1){var y=parseInt(s.current.paddingRight,10)||0,b=document.body?document.body.clientWidth:0,S=window.innerWidth-b+y||0;Object.keys(mv).forEach(function(E){var O=mv[E];g&&(g[E]=O)}),g&&(g.paddingRight="".concat(S,"px"))}m&&yv()&&(m.addEventListener("touchmove",pv,Ci),h&&(h.addEventListener("touchstart",gv,Ci),h.addEventListener("touchmove",vv,Ci))),Ur+=1}},[u]),v=F.useCallback(function(h){if(bv){var m=document.body,g=m&&m.style;Ur=Math.max(Ur-1,0),u&&Ur<1&&hv.forEach(function(y){var b=s.current[y];g&&(g[y]=b)}),m&&yv()&&(m.removeEventListener("touchmove",pv,Ci),h&&(h.removeEventListener("touchstart",gv,Ci),h.removeEventListener("touchmove",vv,Ci)))}},[u]);return F.useEffect(function(){if(n){var h=f.current;return d(h),function(){v(h)}}},[n,d,v]),function(h){f.current=h}}var HT=function(n){var l=n.target;return l.ownerDocument.activeElement&&l.ownerDocument.activeElement.blur()},BT={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function GT(i){var n=i.children,l=i.lockEnabled,u=i.captureEnabled,s=u===void 0?!0:u,f=i.onBottomArrive,d=i.onBottomLeave,v=i.onTopArrive,h=i.onTopLeave,m=UT({isEnabled:s,onBottomArrive:f,onBottomLeave:d,onTopArrive:v,onTopLeave:h}),g=VT({isEnabled:l}),y=function(S){m(S),g(S)};return oe(F.Fragment,null,l&&oe("div",{onClick:HT,css:BT}),n(y))}var IT={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},YT=function(n){var l=n.name,u=n.onFocus;return oe("input",{required:!0,name:l,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:IT,value:"",onChange:function(){}})},$T=YT;function Sf(i){var n;return typeof window<"u"&&window.navigator!=null?i.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function PT(){return Sf(/^iPhone/i)}function jg(){return Sf(/^Mac/i)}function FT(){return Sf(/^iPad/i)||jg()&&navigator.maxTouchPoints>1}function kT(){return PT()||FT()}function XT(){return jg()||kT()}var QT=function(n){return n.label},ZT=function(n){return n.label},KT=function(n){return n.value},JT=function(n){return!!n.isDisabled},WT={clearIndicator:NE,container:wE,control:IE,dropdownIndicator:LE,group:FE,groupHeading:XE,indicatorsContainer:AE,indicatorSeparator:UE,input:JE,loadingIndicator:BE,loadingMessage:bE,menu:dE,menuList:vE,menuPortal:EE,multiValue:aT,multiValueLabel:iT,multiValueRemove:rT,noOptionsMessage:yE,option:fT,placeholder:mT,singleValue:gT,valueContainer:CE},ew={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%)"},tw=4,Ng=4,nw=38,aw=Ng*2,iw={baseUnit:Ng,controlHeight:nw,menuGutter:aw},Lc={borderRadius:tw,colors:ew,spacing:iw},rw={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:sv(),captureMenuScroll:!sv(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:LT(),formatGroupLabel:QT,getOptionLabel:ZT,getOptionValue:KT,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:JT,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!nE(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(n){var l=n.count;return"".concat(l," result").concat(l!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function _v(i,n,l,u){var s=Vg(i,n,l),f=Hg(i,n,l),d=Ug(i,n),v=ku(i,n);return{type:"option",data:n,isDisabled:s,isSelected:f,label:d,value:v,index:u}}function Nu(i,n){return i.options.map(function(l,u){if("options"in l){var s=l.options.map(function(d,v){return _v(i,d,n,v)}).filter(function(d){return Ev(i,d)});return s.length>0?{type:"group",data:l,options:s,index:u}:void 0}var f=_v(i,l,n,u);return Ev(i,f)?f:void 0}).filter(rE)}function qg(i){return i.reduce(function(n,l){return l.type==="group"?n.push.apply(n,ff(l.options.map(function(u){return u.data}))):n.push(l.data),n},[])}function Sv(i,n){return i.reduce(function(l,u){return u.type==="group"?l.push.apply(l,ff(u.options.map(function(s){return{data:s.data,id:"".concat(n,"-").concat(u.index,"-").concat(s.index)}}))):l.push({data:u.data,id:"".concat(n,"-").concat(u.index)}),l},[])}function lw(i,n){return qg(Nu(i,n))}function Ev(i,n){var l=i.inputValue,u=l===void 0?"":l,s=n.data,f=n.isSelected,d=n.label,v=n.value;return(!Gg(i)||!f)&&Bg(i,{label:d,value:v,data:s},u)}function uw(i,n){var l=i.focusedValue,u=i.selectValue,s=u.indexOf(l);if(s>-1){var f=n.indexOf(l);if(f>-1)return l;if(s<n.length)return n[s]}return null}function sw(i,n){var l=i.focusedOption;return l&&n.indexOf(l)>-1?l:n[0]}var jc=function(n,l){var u,s=(u=n.find(function(f){return f.data===l}))===null||u===void 0?void 0:u.id;return s||null},Ug=function(n,l){return n.getOptionLabel(l)},ku=function(n,l){return n.getOptionValue(l)};function Vg(i,n,l){return typeof i.isOptionDisabled=="function"?i.isOptionDisabled(n,l):!1}function Hg(i,n,l){if(l.indexOf(n)>-1)return!0;if(typeof i.isOptionSelected=="function")return i.isOptionSelected(n,l);var u=ku(i,n);return l.some(function(s){return ku(i,s)===u})}function Bg(i,n,l){return i.filterOption?i.filterOption(n,l):!0}var Gg=function(n){var l=n.hideSelectedOptions,u=n.isMulti;return l===void 0?u:l},ow=1,Ig=(function(i){D1(l,i);var n=j1(l);function l(u){var s;if(z1(this,l),s=n.call(this,u),s.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},s.blockOptionHover=!1,s.isComposing=!1,s.commonProps=void 0,s.initialTouchX=0,s.initialTouchY=0,s.openAfterFocus=!1,s.scrollToFocusedOptionOnUpdate=!1,s.userIsDragging=void 0,s.controlRef=null,s.getControlRef=function(h){s.controlRef=h},s.focusedOptionRef=null,s.getFocusedOptionRef=function(h){s.focusedOptionRef=h},s.menuListRef=null,s.getMenuListRef=function(h){s.menuListRef=h},s.inputRef=null,s.getInputRef=function(h){s.inputRef=h},s.focus=s.focusInput,s.blur=s.blurInput,s.onChange=function(h,m){var g=s.props,y=g.onChange,b=g.name;m.name=b,s.ariaOnChange(h,m),y(h,m)},s.setValue=function(h,m,g){var y=s.props,b=y.closeMenuOnSelect,S=y.isMulti,E=y.inputValue;s.onInputChange("",{action:"set-value",prevInputValue:E}),b&&(s.setState({inputIsHiddenAfterUpdate:!S}),s.onMenuClose()),s.setState({clearFocusValueOnUpdate:!0}),s.onChange(h,{action:m,option:g})},s.selectOption=function(h){var m=s.props,g=m.blurInputOnSelect,y=m.isMulti,b=m.name,S=s.state.selectValue,E=y&&s.isOptionSelected(h,S),O=s.isOptionDisabled(h,S);if(E){var R=s.getOptionValue(h);s.setValue(S.filter(function(j){return s.getOptionValue(j)!==R}),"deselect-option",h)}else if(!O)y?s.setValue([].concat(ff(S),[h]),"select-option",h):s.setValue(h,"select-option");else{s.ariaOnChange(h,{action:"select-option",option:h,name:b});return}g&&s.blurInput()},s.removeValue=function(h){var m=s.props.isMulti,g=s.state.selectValue,y=s.getOptionValue(h),b=g.filter(function(E){return s.getOptionValue(E)!==y}),S=wu(m,b,b[0]||null);s.onChange(S,{action:"remove-value",removedValue:h}),s.focusInput()},s.clearValue=function(){var h=s.state.selectValue;s.onChange(wu(s.props.isMulti,[],null),{action:"clear",removedValues:h})},s.popValue=function(){var h=s.props.isMulti,m=s.state.selectValue,g=m[m.length-1],y=m.slice(0,m.length-1),b=wu(h,y,y[0]||null);g&&s.onChange(b,{action:"pop-value",removedValue:g})},s.getFocusedOptionId=function(h){return jc(s.state.focusableOptionsWithIds,h)},s.getFocusableOptionsWithIds=function(){return Sv(Nu(s.props,s.state.selectValue),s.getElementId("option"))},s.getValue=function(){return s.state.selectValue},s.cx=function(){for(var h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];return KS.apply(void 0,[s.props.classNamePrefix].concat(m))},s.getOptionLabel=function(h){return Ug(s.props,h)},s.getOptionValue=function(h){return ku(s.props,h)},s.getStyles=function(h,m){var g=s.props.unstyled,y=WT[h](m,g);y.boxSizing="border-box";var b=s.props.styles[h];return b?b(y,m):y},s.getClassNames=function(h,m){var g,y;return(g=(y=s.props.classNames)[h])===null||g===void 0?void 0:g.call(y,m)},s.getElementId=function(h){return"".concat(s.state.instancePrefix,"-").concat(h)},s.getComponents=function(){return ST(s.props)},s.buildCategorizedOptions=function(){return Nu(s.props,s.state.selectValue)},s.getCategorizedOptions=function(){return s.props.menuIsOpen?s.buildCategorizedOptions():[]},s.buildFocusableOptions=function(){return qg(s.buildCategorizedOptions())},s.getFocusableOptions=function(){return s.props.menuIsOpen?s.buildFocusableOptions():[]},s.ariaOnChange=function(h,m){s.setState({ariaSelection:he({value:h},m)})},s.onMenuMouseDown=function(h){h.button===0&&(h.stopPropagation(),h.preventDefault(),s.focusInput())},s.onMenuMouseMove=function(h){s.blockOptionHover=!1},s.onControlMouseDown=function(h){if(!h.defaultPrevented){var m=s.props.openMenuOnClick;s.state.isFocused?s.props.menuIsOpen?h.target.tagName!=="INPUT"&&h.target.tagName!=="TEXTAREA"&&s.onMenuClose():m&&s.openMenu("first"):(m&&(s.openAfterFocus=!0),s.focusInput()),h.target.tagName!=="INPUT"&&h.target.tagName!=="TEXTAREA"&&h.preventDefault()}},s.onDropdownIndicatorMouseDown=function(h){if(!(h&&h.type==="mousedown"&&h.button!==0)&&!s.props.isDisabled){var m=s.props,g=m.isMulti,y=m.menuIsOpen;s.focusInput(),y?(s.setState({inputIsHiddenAfterUpdate:!g}),s.onMenuClose()):s.openMenu("first"),h.preventDefault()}},s.onClearIndicatorMouseDown=function(h){h&&h.type==="mousedown"&&h.button!==0||(s.clearValue(),h.preventDefault(),s.openAfterFocus=!1,h.type==="touchend"?s.focusInput():setTimeout(function(){return s.focusInput()}))},s.onScroll=function(h){typeof s.props.closeMenuOnScroll=="boolean"?h.target instanceof HTMLElement&&ts(h.target)&&s.props.onMenuClose():typeof s.props.closeMenuOnScroll=="function"&&s.props.closeMenuOnScroll(h)&&s.props.onMenuClose()},s.onCompositionStart=function(){s.isComposing=!0},s.onCompositionEnd=function(){s.isComposing=!1},s.onTouchStart=function(h){var m=h.touches,g=m&&m.item(0);g&&(s.initialTouchX=g.clientX,s.initialTouchY=g.clientY,s.userIsDragging=!1)},s.onTouchMove=function(h){var m=h.touches,g=m&&m.item(0);if(g){var y=Math.abs(g.clientX-s.initialTouchX),b=Math.abs(g.clientY-s.initialTouchY),S=5;s.userIsDragging=y>S||b>S}},s.onTouchEnd=function(h){s.userIsDragging||(s.controlRef&&!s.controlRef.contains(h.target)&&s.menuListRef&&!s.menuListRef.contains(h.target)&&s.blurInput(),s.initialTouchX=0,s.initialTouchY=0)},s.onControlTouchEnd=function(h){s.userIsDragging||s.onControlMouseDown(h)},s.onClearIndicatorTouchEnd=function(h){s.userIsDragging||s.onClearIndicatorMouseDown(h)},s.onDropdownIndicatorTouchEnd=function(h){s.userIsDragging||s.onDropdownIndicatorMouseDown(h)},s.handleInputChange=function(h){var m=s.props.inputValue,g=h.currentTarget.value;s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange(g,{action:"input-change",prevInputValue:m}),s.props.menuIsOpen||s.onMenuOpen()},s.onInputFocus=function(h){s.props.onFocus&&s.props.onFocus(h),s.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(s.openAfterFocus||s.props.openMenuOnFocus)&&s.openMenu("first"),s.openAfterFocus=!1},s.onInputBlur=function(h){var m=s.props.inputValue;if(s.menuListRef&&s.menuListRef.contains(document.activeElement)){s.inputRef.focus();return}s.props.onBlur&&s.props.onBlur(h),s.onInputChange("",{action:"input-blur",prevInputValue:m}),s.onMenuClose(),s.setState({focusedValue:null,isFocused:!1})},s.onOptionHover=function(h){if(!(s.blockOptionHover||s.state.focusedOption===h)){var m=s.getFocusableOptions(),g=m.indexOf(h);s.setState({focusedOption:h,focusedOptionId:g>-1?s.getFocusedOptionId(h):null})}},s.shouldHideSelectedOptions=function(){return Gg(s.props)},s.onValueInputFocus=function(h){h.preventDefault(),h.stopPropagation(),s.focus()},s.onKeyDown=function(h){var m=s.props,g=m.isMulti,y=m.backspaceRemovesValue,b=m.escapeClearsValue,S=m.inputValue,E=m.isClearable,O=m.isDisabled,R=m.menuIsOpen,j=m.onKeyDown,X=m.tabSelectsValue,Y=m.openMenuOnFocus,Q=s.state,M=Q.focusedOption,G=Q.focusedValue,U=Q.selectValue;if(!O&&!(typeof j=="function"&&(j(h),h.defaultPrevented))){switch(s.blockOptionHover=!0,h.key){case"ArrowLeft":if(!g||S)return;s.focusValue("previous");break;case"ArrowRight":if(!g||S)return;s.focusValue("next");break;case"Delete":case"Backspace":if(S)return;if(G)s.removeValue(G);else{if(!y)return;g?s.popValue():E&&s.clearValue()}break;case"Tab":if(s.isComposing||h.shiftKey||!R||!X||!M||Y&&s.isOptionSelected(M,U))return;s.selectOption(M);break;case"Enter":if(h.keyCode===229)break;if(R){if(!M||s.isComposing)return;s.selectOption(M);break}return;case"Escape":R?(s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange("",{action:"menu-close",prevInputValue:S}),s.onMenuClose()):E&&b&&s.clearValue();break;case" ":if(S)return;if(!R){s.openMenu("first");break}if(!M)return;s.selectOption(M);break;case"ArrowUp":R?s.focusOption("up"):s.openMenu("last");break;case"ArrowDown":R?s.focusOption("down"):s.openMenu("first");break;case"PageUp":if(!R)return;s.focusOption("pageup");break;case"PageDown":if(!R)return;s.focusOption("pagedown");break;case"Home":if(!R)return;s.focusOption("first");break;case"End":if(!R)return;s.focusOption("last");break;default:return}h.preventDefault()}},s.state.instancePrefix="react-select-"+(s.props.instanceId||++ow),s.state.selectValue=lv(u.value),u.menuIsOpen&&s.state.selectValue.length){var f=s.getFocusableOptionsWithIds(),d=s.buildFocusableOptions(),v=d.indexOf(s.state.selectValue[0]);s.state.focusableOptionsWithIds=f,s.state.focusedOption=d[v],s.state.focusedOptionId=jc(f,d[v])}return s}return M1(l,[{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&&uv(this.menuListRef,this.focusedOptionRef),XT()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(s){var f=this.props,d=f.isDisabled,v=f.menuIsOpen,h=this.state.isFocused;(h&&!d&&s.isDisabled||h&&v&&!s.menuIsOpen)&&this.focusInput(),h&&d&&!s.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!h&&!d&&s.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(uv(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(s,f){this.props.onInputChange(s,f)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(s){var f=this,d=this.state,v=d.selectValue,h=d.isFocused,m=this.buildFocusableOptions(),g=s==="first"?0:m.length-1;if(!this.props.isMulti){var y=m.indexOf(v[0]);y>-1&&(g=y)}this.scrollToFocusedOptionOnUpdate=!(h&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:m[g],focusedOptionId:this.getFocusedOptionId(m[g])},function(){return f.onMenuOpen()})}},{key:"focusValue",value:function(s){var f=this.state,d=f.selectValue,v=f.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var h=d.indexOf(v);v||(h=-1);var m=d.length-1,g=-1;if(d.length){switch(s){case"previous":h===0?g=0:h===-1?g=m:g=h-1;break;case"next":h>-1&&h<m&&(g=h+1);break}this.setState({inputIsHidden:g!==-1,focusedValue:d[g]})}}}},{key:"focusOption",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",f=this.props.pageSize,d=this.state.focusedOption,v=this.getFocusableOptions();if(v.length){var h=0,m=v.indexOf(d);d||(m=-1),s==="up"?h=m>0?m-1:v.length-1:s==="down"?h=(m+1)%v.length:s==="pageup"?(h=m-f,h<0&&(h=0)):s==="pagedown"?(h=m+f,h>v.length-1&&(h=v.length-1)):s==="last"&&(h=v.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:v[h],focusedValue:null,focusedOptionId:this.getFocusedOptionId(v[h])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Lc):he(he({},Lc),this.props.theme):Lc})},{key:"getCommonProps",value:function(){var s=this.clearValue,f=this.cx,d=this.getStyles,v=this.getClassNames,h=this.getValue,m=this.selectOption,g=this.setValue,y=this.props,b=y.isMulti,S=y.isRtl,E=y.options,O=this.hasValue();return{clearValue:s,cx:f,getStyles:d,getClassNames:v,getValue:h,hasValue:O,isMulti:b,isRtl:S,options:E,selectOption:m,selectProps:y,setValue:g,theme:this.getTheme()}}},{key:"hasValue",value:function(){var s=this.state.selectValue;return s.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var s=this.props,f=s.isClearable,d=s.isMulti;return f===void 0?d:f}},{key:"isOptionDisabled",value:function(s,f){return Vg(this.props,s,f)}},{key:"isOptionSelected",value:function(s,f){return Hg(this.props,s,f)}},{key:"filterOption",value:function(s,f){return Bg(this.props,s,f)}},{key:"formatOptionLabel",value:function(s,f){if(typeof this.props.formatOptionLabel=="function"){var d=this.props.inputValue,v=this.state.selectValue;return this.props.formatOptionLabel(s,{context:f,inputValue:d,selectValue:v})}else return this.getOptionLabel(s)}},{key:"formatGroupLabel",value:function(s){return this.props.formatGroupLabel(s)}},{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 s=this.props,f=s.isDisabled,d=s.isSearchable,v=s.inputId,h=s.inputValue,m=s.tabIndex,g=s.form,y=s.menuIsOpen,b=s.required,S=this.getComponents(),E=S.Input,O=this.state,R=O.inputIsHidden,j=O.ariaSelection,X=this.commonProps,Y=v||this.getElementId("input"),Q=he(he(he({"aria-autocomplete":"list","aria-expanded":y,"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||""},y&&{"aria-controls":this.getElementId("listbox")}),!d&&{"aria-readonly":!0}),this.hasValue()?j?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return d?F.createElement(E,pe({},X,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:Y,innerRef:this.getInputRef,isDisabled:f,isHidden:R,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:m,form:g,type:"text",value:h},Q)):F.createElement(NT,pe({id:Y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Pu,onFocus:this.onInputFocus,disabled:f,tabIndex:m,inputMode:"none",form:g,value:""},Q))})},{key:"renderPlaceholderOrValue",value:function(){var s=this,f=this.getComponents(),d=f.MultiValue,v=f.MultiValueContainer,h=f.MultiValueLabel,m=f.MultiValueRemove,g=f.SingleValue,y=f.Placeholder,b=this.commonProps,S=this.props,E=S.controlShouldRenderValue,O=S.isDisabled,R=S.isMulti,j=S.inputValue,X=S.placeholder,Y=this.state,Q=Y.selectValue,M=Y.focusedValue,G=Y.isFocused;if(!this.hasValue()||!E)return j?null:F.createElement(y,pe({},b,{key:"placeholder",isDisabled:O,isFocused:G,innerProps:{id:this.getElementId("placeholder")}}),X);if(R)return Q.map(function(J,de){var ze=J===M,be="".concat(s.getOptionLabel(J),"-").concat(s.getOptionValue(J));return F.createElement(d,pe({},b,{components:{Container:v,Label:h,Remove:m},isFocused:ze,isDisabled:O,key:be,index:de,removeProps:{onClick:function(){return s.removeValue(J)},onTouchEnd:function(){return s.removeValue(J)},onMouseDown:function(ne){ne.preventDefault()}},data:J}),s.formatOptionLabel(J,"value"))});if(j)return null;var U=Q[0];return F.createElement(g,pe({},b,{data:U,isDisabled:O}),this.formatOptionLabel(U,"value"))}},{key:"renderClearIndicator",value:function(){var s=this.getComponents(),f=s.ClearIndicator,d=this.commonProps,v=this.props,h=v.isDisabled,m=v.isLoading,g=this.state.isFocused;if(!this.isClearable()||!f||h||!this.hasValue()||m)return null;var y={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(f,pe({},d,{innerProps:y,isFocused:g}))}},{key:"renderLoadingIndicator",value:function(){var s=this.getComponents(),f=s.LoadingIndicator,d=this.commonProps,v=this.props,h=v.isDisabled,m=v.isLoading,g=this.state.isFocused;if(!f||!m)return null;var y={"aria-hidden":"true"};return F.createElement(f,pe({},d,{innerProps:y,isDisabled:h,isFocused:g}))}},{key:"renderIndicatorSeparator",value:function(){var s=this.getComponents(),f=s.DropdownIndicator,d=s.IndicatorSeparator;if(!f||!d)return null;var v=this.commonProps,h=this.props.isDisabled,m=this.state.isFocused;return F.createElement(d,pe({},v,{isDisabled:h,isFocused:m}))}},{key:"renderDropdownIndicator",value:function(){var s=this.getComponents(),f=s.DropdownIndicator;if(!f)return null;var d=this.commonProps,v=this.props.isDisabled,h=this.state.isFocused,m={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return F.createElement(f,pe({},d,{innerProps:m,isDisabled:v,isFocused:h}))}},{key:"renderMenu",value:function(){var s=this,f=this.getComponents(),d=f.Group,v=f.GroupHeading,h=f.Menu,m=f.MenuList,g=f.MenuPortal,y=f.LoadingMessage,b=f.NoOptionsMessage,S=f.Option,E=this.commonProps,O=this.state.focusedOption,R=this.props,j=R.captureMenuScroll,X=R.inputValue,Y=R.isLoading,Q=R.loadingMessage,M=R.minMenuHeight,G=R.maxMenuHeight,U=R.menuIsOpen,J=R.menuPlacement,de=R.menuPosition,ze=R.menuPortalTarget,be=R.menuShouldBlockScroll,W=R.menuShouldScrollIntoView,ne=R.noOptionsMessage,le=R.onMenuScrollToTop,ge=R.onMenuScrollToBottom;if(!U)return null;var D=function(K,te){var ce=K.type,fe=K.data,ue=K.isDisabled,De=K.isSelected,Re=K.label,nn=K.value,ha=O===fe,Ga=ue?void 0:function(){return s.onOptionHover(fe)},Qr=ue?void 0:function(){return s.selectOption(fe)},an="".concat(s.getElementId("option"),"-").concat(te),Bi={id:an,onClick:Qr,onMouseMove:Ga,onMouseOver:Ga,tabIndex:-1,role:"option","aria-selected":s.state.isAppleDevice?void 0:De};return F.createElement(S,pe({},E,{innerProps:Bi,data:fe,isDisabled:ue,isSelected:De,key:an,label:Re,type:ce,value:nn,isFocused:ha,innerRef:ha?s.getFocusedOptionRef:void 0}),s.formatOptionLabel(K.data,"menu"))},Z;if(this.hasOptions())Z=this.getCategorizedOptions().map(function(V){if(V.type==="group"){var K=V.data,te=V.options,ce=V.index,fe="".concat(s.getElementId("group"),"-").concat(ce),ue="".concat(fe,"-heading");return F.createElement(d,pe({},E,{key:fe,data:K,options:te,Heading:v,headingProps:{id:ue,data:V.data},label:s.formatGroupLabel(V.data)}),V.options.map(function(De){return D(De,"".concat(ce,"-").concat(De.index))}))}else if(V.type==="option")return D(V,"".concat(V.index))});else if(Y){var ee=Q({inputValue:X});if(ee===null)return null;Z=F.createElement(y,E,ee)}else{var Ee=ne({inputValue:X});if(Ee===null)return null;Z=F.createElement(b,E,Ee)}var Te={minMenuHeight:M,maxMenuHeight:G,menuPlacement:J,menuPosition:de,menuShouldScrollIntoView:W},C=F.createElement(hE,pe({},E,Te),function(V){var K=V.ref,te=V.placerProps,ce=te.placement,fe=te.maxHeight;return F.createElement(h,pe({},E,Te,{innerRef:K,innerProps:{onMouseDown:s.onMenuMouseDown,onMouseMove:s.onMenuMouseMove},isLoading:Y,placement:ce}),F.createElement(GT,{captureEnabled:j,onTopArrive:le,onBottomArrive:ge,lockEnabled:be},function(ue){return F.createElement(m,pe({},E,{innerRef:function(Re){s.getMenuListRef(Re),ue(Re)},innerProps:{role:"listbox","aria-multiselectable":E.isMulti,id:s.getElementId("listbox")},isLoading:Y,maxHeight:fe,focusedOption:O}),Z)}))});return ze||de==="fixed"?F.createElement(g,pe({},E,{appendTo:ze,controlElement:this.controlRef,menuPlacement:J,menuPosition:de}),C):C}},{key:"renderFormField",value:function(){var s=this,f=this.props,d=f.delimiter,v=f.isDisabled,h=f.isMulti,m=f.name,g=f.required,y=this.state.selectValue;if(g&&!this.hasValue()&&!v)return F.createElement($T,{name:m,onFocus:this.onValueInputFocus});if(!(!m||v))if(h)if(d){var b=y.map(function(O){return s.getOptionValue(O)}).join(d);return F.createElement("input",{name:m,type:"hidden",value:b})}else{var S=y.length>0?y.map(function(O,R){return F.createElement("input",{key:"i-".concat(R),name:m,type:"hidden",value:s.getOptionValue(O)})}):F.createElement("input",{name:m,type:"hidden",value:""});return F.createElement("div",null,S)}else{var E=y[0]?this.getOptionValue(y[0]):"";return F.createElement("input",{name:m,type:"hidden",value:E})}}},{key:"renderLiveRegion",value:function(){var s=this.commonProps,f=this.state,d=f.ariaSelection,v=f.focusedOption,h=f.focusedValue,m=f.isFocused,g=f.selectValue,y=this.getFocusableOptions();return F.createElement(zT,pe({},s,{id:this.getElementId("live-region"),ariaSelection:d,focusedOption:v,focusedValue:h,isFocused:m,selectValue:g,focusableOptions:y,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var s=this.getComponents(),f=s.Control,d=s.IndicatorsContainer,v=s.SelectContainer,h=s.ValueContainer,m=this.props,g=m.className,y=m.id,b=m.isDisabled,S=m.menuIsOpen,E=this.state.isFocused,O=this.commonProps=this.getCommonProps();return F.createElement(v,pe({},O,{className:g,innerProps:{id:y,onKeyDown:this.onKeyDown},isDisabled:b,isFocused:E}),this.renderLiveRegion(),F.createElement(f,pe({},O,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:b,isFocused:E,menuIsOpen:S}),F.createElement(h,pe({},O,{isDisabled:b}),this.renderPlaceholderOrValue(),this.renderInput()),F.createElement(d,pe({},O,{isDisabled:b}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(s,f){var d=f.prevProps,v=f.clearFocusValueOnUpdate,h=f.inputIsHiddenAfterUpdate,m=f.ariaSelection,g=f.isFocused,y=f.prevWasFocused,b=f.instancePrefix,S=s.options,E=s.value,O=s.menuIsOpen,R=s.inputValue,j=s.isMulti,X=lv(E),Y={};if(d&&(E!==d.value||S!==d.options||O!==d.menuIsOpen||R!==d.inputValue)){var Q=O?lw(s,X):[],M=O?Sv(Nu(s,X),"".concat(b,"-option")):[],G=v?uw(f,X):null,U=sw(f,Q),J=jc(M,U);Y={selectValue:X,focusedOption:U,focusedOptionId:J,focusableOptionsWithIds:M,focusedValue:G,clearFocusValueOnUpdate:!1}}var de=h!=null&&s!==d?{inputIsHidden:h,inputIsHiddenAfterUpdate:void 0}:{},ze=m,be=g&&y;return g&&!be&&(ze={value:wu(j,X,X[0]||null),options:X,action:"initial-input-focus"},be=!y),m?.action==="initial-input-focus"&&(ze=null),he(he(he({},Y),de),{},{prevProps:s,ariaSelection:ze,prevWasFocused:be})}}]),l})(F.Component);Ig.defaultProps=rw;var cw=F.forwardRef(function(i,n){var l=A1(i);return F.createElement(Ig,pe({ref:n},l))}),fw=cw,Ue=function(){return Ue=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Ue.apply(this,arguments)},dw=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l},hw=function(i){return Ue(Ue({},i),{borderRadius:0,colors:Ue(Ue({},i.colors),{primary25:"var(--color--surface-hover)",neutral10:"var(--color--border)",neutral20:"var(--color--border)",primary:"var(--color--focus--border)",neutral30:"var(--color--border-hover)"})})},mw=function(i,n){return F.useMemo(function(){return{placeholder:function(l){return Ue(Ue({},l),{color:"var(--color--ink-placeholder)"})},container:function(l){return Ue(Ue({},l),{fontSize:"inherit"})},control:function(l,u){var s=u.isFocused,f=l;return f=Ue(Ue({},f),{minHeight:40}),s?Ue(Ue({},f),{borderColor:n?"var(--color--danger-soft--border)":"var(--color--focus--border)",backgroundColor:i?"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)"}}):Ue(Ue({},f),{borderColor:n?"var(--color--danger-soft--border)":"var(--color--border)",backgroundColor:i?"var(--color--disabled--surface)":"var(--color--surface)","&:hover":{borderColor:n?"var(--color--danger-soft--border)":"var(--color--border-hover)"}})},multiValueRemove:function(l){return Ue(Ue({},l),{cursor:"pointer",color:"var(--color--primary-soft--ink)",":hover":{backgroundColor:"var(--color--primary-soft--surface-hover)",color:"var(--color--primary-soft--ink)"}})},menu:function(l){return Ue(Ue({},l),{zIndex:1e3,minWidth:250,backgroundColor:"var(--color--surface-raised)",boxShadow:"var(--shadow--floating)"})},singleValue:function(l){return Ue(Ue({},l),{color:"var(--color--ink)"})},input:function(l){return Ue(Ue({},l),{color:"var(--color--ink)",boxShadow:"none","input:focus":{boxShadow:"none"}})},option:function(l,u){var s=u.isFocused,f=u.isSelected;return Ue(Ue({},l),{backgroundColor:f?"var(--color--selected--surface)":s?"var(--color--surface-hover)":void 0,color:"var(--color--ink)"})},multiValue:function(l){return Ue(Ue({},l),{zIndex:100,backgroundColor:"var(--color--primary-soft--surface)",userSelect:"none"})},multiValueLabel:function(l){return Ue(Ue({},l),{fontSize:"inherit",padding:3,color:"var(--color--primary-soft--ink)"})}}},[i,n])};function pw(i){var n=i.isDisabled,l=i.error,u=dw(i,["isDisabled","error"]),s=mw(n,l);return Se.createElement(fw,Ue({},u,{isDisabled:n,theme:hw,styles:s}))}const vw="_Spinner__bar_1u42l_13",Nc={"Spinner--inline":"_Spinner--inline_1u42l_1","Spinner--centered":"_Spinner--centered_1u42l_7",Spinner__bar:vw};var Xu=function(){return Xu=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Xu.apply(this,arguments)};function gw(i){for(var n,l=i.size,u=l===void 0?32:l,s=i.placement,f=s===void 0?"inline":s,d=i.style,v=d===void 0?{}:d,h=[],m=0;m<12;m+=1){var g={};g.animationDelay="".concat((m-12)/10,"s"),g.transform="rotate(".concat(m*30,"deg) translate(146%)"),h.push(Se.createElement("div",{style:g,className:Nc.Spinner__bar,key:m}))}var y={width:u*.5,height:u*.5};return f==="inline"&&(y.marginLeft=u*.5,y.transform="translateY(33%)"),Se.createElement("div",{className:hn((n={},n[Nc["Spinner--inline"]]=f==="inline",n[Nc["Spinner--centered"]]=f==="centered",n)),style:Xu(Xu({},v),y)},h)}const yw="_switchField__flex_ietsf_1",bw="_switchField__switchInput_ietsf_6",_w="_switchField__label_ietsf_10",Sw="_switchField__below_ietsf_22",Ou={switchField__flex:yw,switchField__switchInput:bw,switchField__label:_w,switchField__below:Sw};var Qu=function(){return Qu=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},Qu.apply(this,arguments)};function ja(i){var n=i.id,l=i.name,u=i.label,s=i.hint,f=i.error,d=i.required,v=i.formLabelProps,h=i.value,m=i.onChange,g=i.switchInputProps;return Se.createElement(Se.Fragment,null,Se.createElement("div",{className:Ou.switchField__flex},Se.createElement("div",{className:Ou.switchField__switchInput},Se.createElement(xw,Qu({},g,{name:l,value:h,onChange:m}))),Se.createElement(eg,Qu({},v,{htmlFor:n,required:d,className:hn(Ou.switchField__label,v?.className),error:!!f}),u)),(s||f)&&Se.createElement("div",{className:Ou.switchField__below},f&&Se.createElement(Kv,null,f),s&&Se.createElement(Jv,null,s)))}const Ew="_switchInput__inner_vh6pt_1",Tw="_switchInput_vh6pt_1",ww="_switchInput__checked_vh6pt_50",Ow="_switchInput__disabled_vh6pt_63",Cu={switchInput__inner:Ew,switchInput:Tw,switchInput__checked:ww,switchInput__disabled:Ow};var nf=function(){return nf=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},nf.apply(this,arguments)},Cw=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l};function xw(i){var n,l=i.className,u=i.value,s=i.disabled,f=i.onClick,d=i.onChange,v=i.onKeyDown,h=Cw(i,["className","value","disabled","onClick","onChange","onKeyDown"]);function m(S,E){!s&&d&&d(S,E)}function g(S){S.key==="ArrowLeft"?m(!1,S):S.key==="ArrowRight"&&m(!0,S),v?.(S)}function y(S){m(!u,S),f?.(S)}var b=hn(Cu.switchInput,l,(n={},n[Cu.switchInput__checked]=u,n[Cu.switchInput__disabled]=s,n));return Se.createElement("button",nf({},h,{type:"button",role:"switch","aria-checked":u,disabled:s,className:b,onKeyDown:g,onClick:y}),Se.createElement("span",{className:Cu.switchInput__inner}))}var af=function(){return af=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},af.apply(this,arguments)};function Na(i){var n=i.id,l=i.name,u=i.label,s=i.hint,f=i.error,d=i.required,v=i.placeholder,h=i.formLabelProps,m=i.value,g=i.onChange,y=i.textInputProps;return Se.createElement(Wv,{formLabelProps:h,id:n,required:d,error:f,hint:s,label:u},Se.createElement(Mw,af({},y,{id:n,name:l,value:m,placeholder:v,onChange:g,error:!!f})))}const Aw="_TextInput_1kqkh_1",xu={TextInput:Aw,"TextInput--monospaced":"_TextInput--monospaced_1kqkh_32","TextInput--disabled":"_TextInput--disabled_1kqkh_37","TextInput--error":"_TextInput--error_1kqkh_43"};var rf=function(){return rf=Object.assign||function(i){for(var n,l=1,u=arguments.length;l<u;l++){n=arguments[l];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])}return i},rf.apply(this,arguments)},zw=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l},Mw=function(i){var n,l=i.className,u=i.disabled,s=u===void 0?!1:u,f=i.error,d=i.id,v=i.inputRef,h=i.maxLength,m=i.name,g=i.labelText,y=i.onBlur,b=i.onChange,S=i.placeholder,E=i.required,O=E===void 0?!1:E,R=i.type,j=i.value,X=i.monospaced,Y=zw(i,["className","disabled","error","id","inputRef","maxLength","name","labelText","onBlur","onChange","placeholder","required","type","value","monospaced"]),Q=F.useCallback(function(G){b&&b(G.target.value,G)},[b]),M=hn(xu.TextInput,l,(n={},n[xu["TextInput--disabled"]]=s,n[xu["TextInput--error"]]=f,n[xu["TextInput--monospaced"]]=X,n));return Se.createElement("input",rf({className:M,"aria-label":g,id:d,name:m,required:O,placeholder:S,maxLength:h,disabled:s,onBlur:y,onChange:Q,value:j,type:R,ref:v},Y))};function Dw({ctx:i}){const n=i.isEnvironmentPrimary?"":`/environments/${i.environment}`;return w.jsx(Qv,{ctx:i,children:w.jsx(da,{buttonType:"muted",buttonSize:"l",fullWidth:!0,onClick:()=>i.navigateTo(`${n}/configuration/p/${i.plugin.id}/pages/optimize-assets`),children:"Go to asset optimization"})})}const Rw="modulepreload",Lw=function(i,n){return new URL(i,n).href},Tv={},jw=function(n,l,u){let s=Promise.resolve();if(l&&l.length>0){let m=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const d=document.getElementsByTagName("link"),v=document.querySelector("meta[property=csp-nonce]"),h=v?.nonce||v?.getAttribute("nonce");s=m(l.map(g=>{if(g=Lw(g,u),g in Tv)return;Tv[g]=!0;const y=g.endsWith(".css"),b=y?'[rel="stylesheet"]':"";if(u)for(let E=d.length-1;E>=0;E--){const O=d[E];if(O.href===g&&(!y||O.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${g}"]${b}`))return;const S=document.createElement("link");if(S.rel=y?"stylesheet":Rw,y||(S.as="script"),S.crossOrigin="",S.href=g,h&&S.setAttribute("nonce",h),document.head.appendChild(S),y)return new Promise((E,O)=>{S.addEventListener("load",E),S.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${g}`)))})}))}function f(d){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=d,window.dispatchEvent(v),!v.defaultPrevented)throw d}return s.then(d=>{for(const v of d||[])v.status==="rejected"&&f(v.reason);return n().catch(f)})};function Yg(i){return typeof i=="object"&&!!i&&"data"in i}function Nw(i){return typeof i=="object"&&!!i&&"included"in i}function tn({__itemTypeId:i,id:n,type:l,attributes:u,relationships:s,meta:f}){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i?{__itemTypeId:i}:{}),n?{id:n}:{}),l?{type:l}:{}),u||{}),s?Object.fromEntries(Object.entries(s).map(([d,v])=>[d,v?.data])):{}),f?{meta:f}:{})}function A(i){if(!Yg(i))throw new Error("Invalid body!");return Array.isArray(i.data)?i.data.map(tn):tn(i.data)}function $g(i){return!!(i&&typeof i=="object"&&"type"in i&&i.type==="item")}function lf(i){if(Array.isArray(i))return i.map(lf);if(i&&typeof i=="object"){if($g(i))return Gr(i);const n={};for(const[l,u]of Object.entries(i))n[l]=lf(u);return n}return i}function Gr(i){if(!$g(i))return i;const n=i.attributes?lf(i.attributes):i.attributes;return Object.assign(Object.assign({},i),{attributes:n,__itemTypeId:i.relationships.item_type.data.id})}function Zt(i){if(!Yg(i))throw new Error("Invalid body!");let n;Array.isArray(i.data)?n=i.data.map(Gr):n=Gr(i.data);let l;return Nw(i)&&(l=i.included.map(Gr)),Object.assign(Object.assign(Object.assign({},i),{data:n}),l?{included:l}:{})}function qw(i){if(typeof i!="object"||i===null||!("data"in i))return!1;const n=i;if(!Array.isArray(n.data))return!1;const l=n;if(l.data.length===0)return!1;const u=l.data[0];return!(typeof u!="object"||u===null||!("id"in u)||!("type"in u)||!("attributes"in u)||u.type!=="api_error")}class Uw extends Error{constructor(n){super("API Error!"),Object.setPrototypeOf(this,new.target.prototype),"captureStackTrace"in Error?Error.captureStackTrace(this,Va):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+=`
7
7
  Caused By:
8
8
  ${this.preCallStack}`)}}class Va extends Error{constructor(n){super("API Error!"),Object.setPrototypeOf(this,new.target.prototype),"captureStackTrace"in Error?Error.captureStackTrace(this,Va):this.stack=new Error().stack,this.request=n.request,this.response=n.response,this.preCallStack=n.preCallStack;let l=`${n.request.method} ${n.request.url}: ${this.response.status} ${this.response.statusText}`;this.errors.length>0&&(l+=`
9
9
 
10
10
  ${JSON.stringify(this.errors,null,2)}`),this.message=l,this.preCallStack&&(this.stack+=`
11
11
  Caused By:
12
- ${this.preCallStack}`)}get errors(){return NT(this.response.body)?this.response.body.data:[]}findError(n,l){const u=Array.isArray(n)?n:[n];return this.errors.find(s=>u.includes(s.attributes.code)&&(!l||(typeof l=="function"?l(s.attributes.details):Object.entries(l).every(([f,d])=>s.attributes.details[f]===d))))}}class Pr extends Error{constructor(){super("Promise canceled!"),Object.setPrototypeOf(this,new.target.prototype)}}function Fr(i,n){let l=null;const u=new Promise((s,f)=>{l=()=>{try{n&&n(),f(new Pr)}catch(v){f(v)}},(typeof i=="function"?i():i).then(s,f)});return l&&(u.cancel=l),u}function qu(i){return new Promise(n=>{setTimeout(n,i)})}var UT=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{h(u.next(g))}catch(y){d(y)}}function m(g){try{h(u.throw(g))}catch(y){d(y)}}function h(g){g.done?f(g.value):s(g.value).then(v,m)}h((u=u.apply(i,n||[])).next())})};function VT(i){return UT(this,void 0,void 0,function*(){let n,l=0;do try{l+=1,yield qu(l*1e3),n=yield i()}catch(u){if(!(u instanceof Va)||u.response.status!==404)throw u}while(!n);return n})}var Vr={},fa={},Nc={},wv;function $g(){return wv||(wv=1,(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.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"})(i.TaskCollisionStrategy||(i.TaskCollisionStrategy={}))})(Nc)),Nc}var Au={},Tv;function Pg(){if(Tv)return Au;Tv=1,Object.defineProperty(Au,"__esModule",{value:!0});let i=class{constructor(l,u){this._code=l,this._message=u}get code(){return this._code}get message(){return this._message}};return Au.default=i,Au}var qa={},Ov;function Fg(){if(Ov)return qa;Ov=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.mutexEquality=qa.mutexBitwiseAnd=void 0;function i(l,u){return(l&u)!==0}qa.mutexBitwiseAnd=i;function n(l,u){return l===u}return qa.mutexEquality=n,qa}var zu={},Cv;function HT(){if(Cv)return zu;Cv=1,Object.defineProperty(zu,"__esModule",{value:!0});let i=class{constructor(l,u){this._meta=void 0,this._task=l,this._scheduler=u}withDescriptor(l){return this._descriptor=l,this}withMutex(l){return this._mutex=l,this}withMeta(l){return this._meta=l,this}runBeforeExecuting(l){return this._onPreExecute=l,this}handleCollisions(l){return this._onTaskCollision=l,this}execute(l){return this._scheduler.enqueue({priority:l,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}};return zu.default=i,zu}var xv;function BT(){if(xv)return fa;xv=1;var i=fa&&fa.__awaiter||function(h,g,y,b){function S(E){return E instanceof y?E:new y(function(O){O(E)})}return new(y||(y=Promise))(function(E,O){function R(Y){try{X(b.next(Y))}catch(Q){O(Q)}}function j(Y){try{X(b.throw(Y))}catch(Q){O(Q)}}function X(Y){Y.done?E(Y.value):S(Y.value).then(R,j)}X((b=b.apply(h,g||[])).next())})},n=fa&&fa.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(fa,"__esModule",{value:!0});const l=$g(),u=n(Pg()),s=Fg(),f=n(HT());var d;(function(h){h[h.PENDING=0]="PENDING",h[h.EXECUTING=1]="EXECUTING",h[h.TERMINATED=2]="TERMINATED"})(d||(d={}));function v(h,g){for(let y of h.listeners)y.reject(g)}let m=class{constructor(g,y={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=g,this._samePriorityMutex=!!y.samePriorityMutex,this._mutexStrategy=y.mutexStrategy||s.mutexEquality,y.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(g){return new Promise((y,b)=>{typeof g=="function"&&(g={priority:0,execute:g});const S=this._checkMutexes(g,y,b);S.task?this._addTask(S.task):S.canceled&&b(this.createCanceledError())})}prepare(g){return new f.default(g,this)}_addTask(g){this._queue.push(g),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce((g,y)=>y.state===d.EXECUTING?g+1:g,0)}createCanceledError(){return new u.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find(g=>g.state===d.PENDING)}_isIdle(){return this._queue.length===0||!this._queue.find(g=>g.state!==d.TERMINATED)}_removeTaskAt(g){this._queue.splice(g,1)}_executeTask(g){return i(this,void 0,void 0,function*(){try{return g.task.onPreExecute&&g.task.onPreExecute(),yield g.task.execute()}catch(y){throw y}finally{g.state=d.TERMINATED;let y=this._queue.indexOf(g);this._removeTaskAt(y),this._executeNextTasks()}})}_executeNextTasks(){let g=this.executingTasks;if(g>=this._maxConcurrentTasks)return;let y=this._maxConcurrentTasks-g;for(let b=0;b<y;b++){const S=this._findFirstPendingTask();if(!S){this._isIdle()&&this._switchToIdle();return}S.state=d.EXECUTING,this._executeTask(S).then(E=>{for(const{resolve:O}of S.listeners)try{O(E)}catch(R){this._errorLog("An error occurred while resolving listener",R)}}).catch(E=>{for(const{reject:O}of S.listeners)try{O(E)}catch(R){this._errorLog("An error occurred while rejecting listener",R)}})}}_switchToIdle(){this._isExecuting=!1;const g=this._idleListeners;this._idleListeners=[];for(const{resolve:y}of g)try{y()}catch{}}waitForIdle(){return this._isExecuting?new Promise((g,y)=>{this._idleListeners.push({resolve:g,reject:y})}):Promise.resolve()}_applyPriorities(){this._queue.sort((g,y)=>y.task.priority-g.task.priority)}_checkMutexes(g,y,b){for(let S=0;S<this._queue.length;S++){let E=this._queue[S];if(E.state===d.TERMINATED||this._samePriorityMutex&&E.task.priority!=g.priority||!E.task.mutex||!g.mutex||!this._mutexStrategy(E.task.mutex,g.mutex))continue;let O,R;if(E.task.onTaskCollision)if(O=E.task.onTaskCollision(g),O===l.TaskCollisionStrategy.KEEP_OTHER&&E.state!==d.EXECUTING){this._removeTaskAt(S--),v(E,this.createCanceledError());continue}else{if(O===l.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(O===l.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(S--),{canceled:!1,task:{task:g,state:d.PENDING,listeners:[{resolve:y,reject:b},...E.listeners]}};if(O===l.TaskCollisionStrategy.RESOLVE_THIS)return E.listeners=[...E.listeners,{resolve:y,reject:b}],{canceled:!1}}if(g.onTaskCollision){if(R=g.onTaskCollision(E.task),R===l.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(R===l.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(S--),v(E,this.createCanceledError());continue}else{if(R===l.TaskCollisionStrategy.RESOLVE_OTHER)return E.listeners=[...E.listeners,{resolve:y,reject:b}],{canceled:!1};if(R===l.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(S--),{canceled:!1,task:{task:g,state:d.PENDING,listeners:[{resolve:y,reject:b},...E.listeners]}}}}if(!(O===l.TaskCollisionStrategy.KEEP_BOTH&&R===l.TaskCollisionStrategy.KEEP_BOTH))return{canceled:!0}}return{canceled:!1,task:{task:g,state:d.PENDING,listeners:[{resolve:y,reject:b}]}}}};return fa.default=m,fa}var Av;function GT(){return Av||(Av=1,(function(i){var n=Vr&&Vr.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(i,"__esModule",{value:!0}),i.mutexEquality=i.mutexBitwiseAnd=i.SchedulerError=i.TaskCollisionStrategy=i.Scheduler=void 0;const l=n(BT());i.Scheduler=l.default;const u=$g();Object.defineProperty(i,"TaskCollisionStrategy",{enumerable:!0,get:function(){return u.TaskCollisionStrategy}});const s=n(Pg());i.SchedulerError=s.default;const f=Fg();Object.defineProperty(i,"mutexBitwiseAnd",{enumerable:!0,get:function(){return f.mutexBitwiseAnd}}),Object.defineProperty(i,"mutexEquality",{enumerable:!0,get:function(){return f.mutexEquality}})})(Vr)),Vr}var IT=GT(),Ua=function(i){return this instanceof Ua?(this.v=i,this):new Ua(i)},YT=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{m(u[b](S))}catch(E){y(f[0][3],E)}}function m(b){b.value instanceof Ua?Promise.resolve(b.value.v).then(h,g):y(f[0][2],b)}function h(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};function Vn(i,n,l,u){return YT(this,arguments,function*(){const f=l?.perPage||i.defaultLimit;if(f>i.maxLimit)throw new Error(`perPage option cannot exceed maximum value of ${i.maxLimit}`);const d=l?.concurrency||1;if(d>10)throw new Error("concurrency option cannot exceed maximum value of 10");const v=yield Ua(n({limit:f,offset:0}));for(const y of v.data)yield yield Ua(y);const m=v.meta.total_count,h=new IT.Scheduler(d),g=[];for(let y=f;y<m;y+=f)g.push(h.enqueue(()=>n({limit:f,offset:y})));for(;g.length>0;){const y=yield Ua(g.shift());for(const b of y.data)yield yield Ua(u?Gr(b):b)}})}function Hn(i){i&&"page"in i&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}const kg="__ARRAY_INDEX__";function $T(i){return i.reduce((n,l,u)=>u===0?l:l===kg?`${n}[]`:`${n}[${l}]`,"")}function PT(i){if(typeof i=="number"||typeof i=="string")return i.toString();if(i===!0)return"true";if(i===!1)return"false";throw`Don't know how to serialize param value ${JSON.stringify(i)}`}function uf(i,n=[]){const l=[];if(typeof i=="number"||typeof i=="string"||typeof i=="boolean")l.push([$T(n),PT(i)]);else if(typeof i=="object"){if(Array.isArray(i))for(const u of i)for(const s of uf(u,[...n,kg]))l.push(s);else if(i)for(const[u,s]of Object.entries(i))for(const f of uf(s,[...n,u]))l.push(f)}return l}var FT=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{h(u.next(g))}catch(y){d(y)}}function m(g){try{h(u.throw(g))}catch(y){d(y)}}function h(g){g.done?f(g.value):s(g.value).then(v,m)}h((u=u.apply(i,n||[])).next())})};const kT=typeof window<"u"&&typeof window.document<"u",XT=5;var Qt;(function(i){i[i.NONE=0]="NONE",i[i.BASIC=1]="BASIC",i[i.BODY=2]="BODY",i[i.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"})(Qt||(Qt={}));function QT(i){const n={};return i.forEach((l,u)=>{n[u]=l}),n}function zv(i,n,l,u,s,f,d){return{request:{url:n,method:i,headers:l,body:u},response:{status:s.status,statusText:s.statusText,headers:QT(s.headers),body:f},preCallStack:d}}function ZT(i,n,l,u,s){return{request:{url:n,method:i,headers:l,body:u},preCallStack:s}}function KT(i,n,l,u,s,f,d){return{request:{url:n,method:i,headers:l,body:u},response:{status:s,statusText:"N/A",headers:{},body:f},preCallStack:d}}function JT(i){return typeof i=="object"&&!!i&&"code"in i}function WT(i){return Object.fromEntries(Object.entries(i).map(([n,l])=>[n.toLowerCase(),l]))}let Mv=1;function eO(i){const n=i||(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 Uu(i){var n;return FT(this,void 0,void 0,function*(){const l=Mv;Mv+=1;const u=eO(i.fetchFn),s=i.preCallStack,f=i.userAgent||"@datocms/rest-client-utils",d=i.retryCount||1,v=i.logLevel||Qt.NONE,m="autoRetry"in i?i.autoRetry:!0,h=i.logFn||(()=>!0),g=Object.assign({"content-type":"application/json",accept:"application/json",authorization:`Bearer ${i.apiToken}`,"user-agent":f},i.extraHeaders?WT(i.extraHeaders):{});kT&&delete g["user-agent"];const y=i.baseUrl.replace(/\/$/,""),b=i.body?JSON.stringify(i.body,null,2):void 0,S=i.queryParams&&Object.keys(i.queryParams).length>0?`?${new URLSearchParams(uf(i.queryParams)).toString()}`:"",E=`${y}${i.url}${S}`;if(v>=Qt.BASIC){if(h(`[${l}] ${i.method} ${E}`),v>=Qt.BODY_AND_HEADERS)for(const[O,R]of Object.entries(g||{}))h(`[${l}] ${O}: ${R}`);v>=Qt.BODY&&b&&h(`[${l}] ${b}`)}try{const O=Fr(u(E,{method:i.method,headers:g,body:b})),R=setTimeout(()=>{O.cancel()},i.requestTimeout||3e4),j=yield O;clearTimeout(R);const X=j.headers.get("Content-Type"),Y=X&&!X.includes("application/json");if(j.status===429||Y){if(!m||Y&&i.method!=="GET")throw new Va(zv(i.method,E,g,i.body,j,void 0,s));const U=j.headers.has("X-RateLimit-Reset")?Number.parseInt(j.headers.get("X-RateLimit-Reset"),10):d;return v>=Qt.BASIC&&(j.status===429?h(`[${l}] Rate limit exceeded, wait ${U} seconds then retry...`):h(`[${l}] Invalid response content type "${X}" (status ${j.status}). Wait ${U} seconds then retry...`)),yield qu(U*1e3),Uu(Object.assign(Object.assign({},i),{retryCount:d+1}))}if(v>=Qt.BASIC&&(h(`[${l}] Status: ${j.status} (${j.statusText})`),v>=Qt.BODY_AND_HEADERS))for(const U of["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"]){const J=j.headers.get(U);J&&h(`[${l}] ${U}: ${J}`)}let Q=j.status===204?void 0:yield j.json();if(v>=Qt.BODY&&Q&&h(`[${l}] ${JSON.stringify(Q,null,2)}`),j.status===202){const U=yield i.fetchJobResult(Q.data.id);if(U.status<200||U.status>=300)throw new Va(KT(i.method,E,g,i.body,U.status,U.payload,s));Q=U.payload}if(j.status>=200&&j.status<300)return Q;const M=new Va(zv(i.method,E,g,i.body,j,Q,s)),G=(n=M.errors.find(U=>U.attributes.transient))===null||n===void 0?void 0:n.attributes.code;if(m&&G)return v>=Qt.BASIC&&h(`[${l}] ${G}, wait ${d} seconds then retry...`),yield qu(d*1e3),Uu(Object.assign(Object.assign({},i),{retryCount:d+1}));throw M}catch(O){if(O instanceof Pr||JT(O)&&O.code.includes("ETIMEDOUT")){if(m&&d<XT)return v>=Qt.BASIC&&h(`[${l}] Timeout error, wait ${d} seconds then retry...`),yield qu(d*1e3),Uu(Object.assign(Object.assign({},i),{retryCount:d+1}));throw new qT(ZT(i.method,E,g,i.body,s))}throw O}})}var Xg=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l};function Vu(i){return typeof i=="object"&&!!i&&"id"in i&&"type"in i}function qc(i){return Array.isArray(i)&&i.every(Vu)}function ae(i,n){if(typeof i!="object"||!i)throw new Error("Invalid body!");if(Array.isArray(i))return{data:i.map(h=>{var g;return(g=ae(h,n))===null||g===void 0?void 0:g.data})};const l=i,{id:u,type:s,meta:f}=l,d=Xg(l,["id","type","meta"]),v={},m={};if(n.attributes==="*")for(const[h,g]of Object.entries(d))if(n.relationships.includes(h))if(Vu(g)){const{id:y,type:b}=g;m[h]={data:{id:y,type:b}}}else qc(g)?m[h]={data:g.map(({id:y,type:b})=>({id:y,type:b}))}:m[h]={data:null};else v[h]=g;else if(n.relationships==="*")for(const[h,g]of Object.entries(d))if(n.attributes.includes(h))v[h]=g;else if(Vu(g)){const{id:y,type:b}=g;m[h]={data:{id:y,type:b}}}else qc(g)?m[h]={data:g.map(({id:y,type:b})=>({id:y,type:b}))}:m[h]={data:null};else{for(const[h,g]of Object.entries(d))if(n.attributes.includes(h))v[h]=g;else if(n.relationships.includes(h))if(Vu(g)){const{id:y,type:b}=g;m[h]={data:{id:y,type:b}}}else qc(g)?m[h]={data:g.map(({id:y,type:b})=>({id:y,type:b}))}:m[h]={data:null};n.attributes.includes("type")&&(v.type=s)}return{data:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u||n.id?{id:u||n.id}:{}),{type:n.type}),Object.keys(v).length>0?{attributes:v}:{}),Object.keys(m).length>0?{relationships:m}:{}),f?{meta:f}:{})}}function sf(i){if(Array.isArray(i))return i.map(sf);if(i&&typeof i=="object"){const n={};for(const[l,u]of Object.entries(i))l!=="__itemTypeId"&&(n[l]=sf(u));return n}return i}function Dv(i){if(!i||typeof i!="object")return i;const{__itemTypeId:n}=i,l=Xg(i,["__itemTypeId"]),u={};for(const[s,f]of Object.entries(l))u[s]=sf(f);return u}function Mu(i){return!i||!("data"in i)?i:Array.isArray(i.data)?Object.assign(Object.assign({},i),{data:i.data.map(Dv)}):Object.assign(Object.assign({},i),{data:Dv(i.data)})}function B(i){return typeof i=="string"?i:i.id}class ve{constructor(n){this.client=n}}class Qg extends ve{create(n){return this.rawCreate(ae(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(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/roles",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(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,l){return this.client.request({method:"PUT",url:`/roles/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/roles"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/roles/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/roles/${n}`})}duplicate(n){return this.rawDuplicate(B(n)).then(l=>A(l))}rawDuplicate(n){return this.client.request({method:"POST",url:`/roles/${n}/duplicate`})}}Qg.TYPE="role";var tO=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{h(u.next(g))}catch(y){d(y)}}function m(g){try{h(u.throw(g))}catch(y){d(y)}}function h(g){g.done?f(g.value):s(g.value).then(v,m)}h((u=u.apply(i,n||[])).next())})};function Rv(i,n){return i==null&&n==null?!0:i===n}function nO(i,n){for(const l in i)if(!Rv(i[l],n[l]))return!1;for(const l in n)if(!Rv(i[l],n[l]))return!1;return!0}function Du(i,n,l,u){if(!n)return i;const{add:s,remove:f}=n;return[...f?f.reduce((d,v)=>{const m=Object.assign(Object.assign({},v),{environment:l}),h=d.find(g=>nO(g,m));if(!h)throw new Error(`Cannot find rule ${JSON.stringify(m)} to remove in ${u}!`);return d.filter(g=>g!==h)},i):i,...s?s.map(d=>Object.assign({environment:l},d)):[]]}class aO extends Qg{updateCurrentEnvironmentPermissions(n,l){return tO(this,void 0,void 0,function*(){const u=this.client.config.environment||(yield this.client.environments.list()).find(m=>m.meta.primary).id,s=yield this.find(n),f=!!(l.positive_item_type_permissions||l.negative_item_type_permissions),d=!!(l.positive_upload_permissions||l.negative_upload_permissions),v=Object.assign(Object.assign({},f?{positive_item_type_permissions:Du(s.positive_item_type_permissions,l.positive_item_type_permissions,u,"positive_item_type_permissions"),negative_item_type_permissions:Du(s.negative_item_type_permissions,l.negative_item_type_permissions,u,"negative_item_type_permissions")}:{}),d?{positive_upload_permissions:Du(s.positive_upload_permissions,l.positive_upload_permissions,u,"positive_upload_permissions"),negative_upload_permissions:Du(s.negative_upload_permissions,l.negative_upload_permissions,u,"negative_upload_permissions")}:{});return this.update(n,v)})}}class Zg extends ve{update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"user",attributes:["is_active"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/users/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/users"})}find(n,l){return this.rawFind(B(n),l).then(u=>A(u))}rawFind(n,l){return this.client.request({method:"GET",url:`/users/${n}`,queryParams:l})}findMe(n){return this.rawFindMe(n).then(l=>A(l))}rawFindMe(n){return this.client.request({method:"GET",url:"/users/me",queryParams:n})}destroy(n,l){return this.rawDestroy(B(n),l).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/users/${n}`,queryParams:l})}}Zg.TYPE="user";class Kg extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/sso-users"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}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,l){return this.rawDestroy(B(n),l).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/sso-users/${n}`,queryParams:l})}}Kg.TYPE="sso_user";class Jg extends ve{query(n){return this.rawQuery(ae(n,{type:"audit_log_query",attributes:["filter","next_token","detailed_log"],relationships:[]})).then(l=>A(l))}rawQuery(n){return this.client.request({method:"POST",url:"/audit-log-events/query",body:n})}}Jg.TYPE="audit_log_event";class Wg extends ve{create(n){return this.rawCreate(ae(n,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/menu-items",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(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,l){return this.client.request({method:"PUT",url:`/menu-items/${n}`,body:l})}list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/menu-items",queryParams:n})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/menu-items/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/menu-items/${n}`})}reorder(n){return this.rawReorder(ae(n,{type:"menu_item",attributes:["position"],relationships:["parent"]})).then(l=>A(l))}rawReorder(n){return this.client.request({method:"POST",url:"/menu-items/reorder",body:n})}}Wg.TYPE="menu_item";class ey extends ve{create(n){return this.rawCreate(ae(n,{type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/schema-menu-items",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent","children"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/schema-menu-items/${n}`,body:l})}list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/schema-menu-items",queryParams:n})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/schema-menu-items/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/schema-menu-items/${n}`})}reorder(n){return this.rawReorder(ae(n,{type:"schema_menu_item",attributes:["position"],relationships:["parent"]})).then(l=>A(l))}rawReorder(n){return this.client.request({method:"POST",url:"/schema-menu-items/reorder",body:n})}}ey.TYPE="schema_menu_item";class ty extends ve{create(n){return this.rawCreate(ae(n,{type:"upload_collection",attributes:["label","position"],relationships:["parent"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-collections",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"upload_collection",attributes:["label","position"],relationships:["parent","children"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/upload-collections/${n}`,body:l})}list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/upload-collections",queryParams:n})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/upload-collections/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/upload-collections/${n}`})}reorder(n){return this.rawReorder(ae(n,{type:"upload_collection",attributes:["position"],relationships:["parent"]})).then(l=>A(l))}rawReorder(n){return this.client.request({method:"POST",url:"/upload-collections/reorder",body:n})}}ty.TYPE="upload_collection";class ny extends ve{create(n,l){return this.rawCreate(ae(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"]}),l).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:"/item-types",body:n,queryParams:l})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(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,l){return this.client.request({method:"PUT",url:`/item-types/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/item-types"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/item-types/${n}`})}duplicate(n){return this.rawDuplicate(B(n)).then(l=>A(l))}rawDuplicate(n){return this.client.request({method:"POST",url:`/item-types/${n}/duplicate`})}destroy(n,l){return this.rawDestroy(B(n),l).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/item-types/${n}`,queryParams:l})}referencing(n){return this.rawReferencing(B(n)).then(l=>A(l))}rawReferencing(n){return this.client.request({method:"GET",url:`/item-types/${n}/referencing`})}rawReorderFieldsAndFieldsets(n,l){return this.client.request({method:"POST",url:`/item-types/${n}/reorder-fields-and-fieldsets`,body:l})}}ny.TYPE="item_type";class ay extends ve{create(n,l){return this.rawCreate(B(n),ae(l,{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,l){return this.client.request({method:"POST",url:`/item-types/${n}/fields`,body:l})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(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,l){return this.client.request({method:"PUT",url:`/fields/${n}`,body:l})}list(n){return this.rawList(B(n)).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields`})}referencing(n){return this.rawReferencing(B(n)).then(l=>A(l))}rawReferencing(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields/referencing`})}related(n){return this.rawRelated(B(n)).then(l=>A(l))}rawRelated(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields/related`})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/fields/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/fields/${n}`})}duplicate(n){return this.rawDuplicate(B(n)).then(l=>A(l))}rawDuplicate(n){return this.client.request({method:"POST",url:`/fields/${n}/duplicate`})}}ay.TYPE="field";class iy extends ve{create(n,l){return this.rawCreate(B(n),ae(l,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/item-types/${n}/fieldsets`,body:l})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/fieldsets/${n}`,body:l})}list(n){return this.rawList(B(n)).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:`/item-types/${n}/fieldsets`})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/fieldsets/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/fieldsets/${n}`})}}iy.TYPE="fieldset";class ry extends ve{create(n){return this.rawCreate(ae(n,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/sessions",body:n})}}ry.TYPE="session";class ly extends ve{create(n){return this.rawCreate(ae(n,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/access_tokens",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/access_tokens/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/access_tokens"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/access_tokens/${n}`})}regenerateToken(n){return this.rawRegenerateToken(B(n)).then(l=>A(l))}rawRegenerateToken(n){return this.client.request({method:"POST",url:`/access_tokens/${n}/regenerate_token`})}destroy(n,l){return this.rawDestroy(B(n),l).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/access_tokens/${n}`,queryParams:l})}}ly.TYPE="access_token";class uy extends ve{create(n){return this.rawCreate(ae(n,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/plugins",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/plugins/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/plugins"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/plugins/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/plugins/${n}`})}fields(n){return this.rawFields(B(n)).then(l=>A(l))}rawFields(n){return this.client.request({method:"GET",url:`/plugins/${n}/fields`})}}uy.TYPE="plugin";class sy extends ve{find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/job-results/${n}`})}}sy.TYPE="job_result";class oy extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/subscription-limits"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/subscription-limits/${n}`})}}oy.TYPE="subscription_limit";class cy extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/subscription-features"})}}cy.TYPE="subscription_feature";var iO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,m){d=i[f](d),s(v,m,d.done,d.value)})}}function s(f,d,v,m){Promise.resolve(m).then(function(h){f({value:h,done:v})},d)}},zi=function(i){return this instanceof zi?(this.v=i,this):new zi(i)},rO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{m(u[b](S))}catch(E){y(f[0][3],E)}}function m(b){b.value instanceof zi?Promise.resolve(b.value.v).then(h,g):y(f[0][2],b)}function h(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class fy extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/build-events",queryParams:n})}listPagedIterator(n,l){return rO(this,arguments,function*(){var s,f,d,v;try{for(var m=!0,h=iO(this.rawListPagedIterator(n,l)),g;g=yield zi(h.next()),s=g.done,!s;){v=g.value,m=!1;try{yield yield zi(tn(v))}finally{m=!0}}}catch(y){f={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield zi(d.call(h)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/build-events/${n}`})}}fy.TYPE="build_event";var lO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,m){d=i[f](d),s(v,m,d.done,d.value)})}}function s(f,d,v,m){Promise.resolve(m).then(function(h){f({value:h,done:v})},d)}},Mi=function(i){return this instanceof Mi?(this.v=i,this):new Mi(i)},uO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{m(u[b](S))}catch(E){y(f[0][3],E)}}function m(b){b.value instanceof Mi?Promise.resolve(b.value.v).then(h,g):y(f[0][2],b)}function h(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class dy extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/search-index-events",queryParams:n})}listPagedIterator(n,l){return uO(this,arguments,function*(){var s,f,d,v;try{for(var m=!0,h=lO(this.rawListPagedIterator(n,l)),g;g=yield Mi(h.next()),s=g.done,!s;){v=g.value,m=!1;try{yield yield Mi(tn(v))}finally{m=!0}}}catch(y){f={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield Mi(d.call(h)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/search-index-events/${n}`})}}dy.TYPE="search_index_event";var sO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,m){d=i[f](d),s(v,m,d.done,d.value)})}}function s(f,d,v,m){Promise.resolve(m).then(function(h){f({value:h,done:v})},d)}},Di=function(i){return this instanceof Di?(this.v=i,this):new Di(i)},oO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{m(u[b](S))}catch(E){y(f[0][3],E)}}function m(b){b.value instanceof Di?Promise.resolve(b.value.v).then(h,g):y(f[0][2],b)}function h(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class hy extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/items",queryParams:n}).then(Zt)}listPagedIterator(n,l){return oO(this,arguments,function*(){var s,f,d,v;try{for(var m=!0,h=sO(this.rawListPagedIterator(n,l)),g;g=yield Di(h.next()),s=g.done,!s;){v=g.value,m=!1;try{yield yield Di(tn(v))}finally{m=!0}}}catch(y){f={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield Di(d.call(h)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l,!0)}validateExisting(n,l){return this.rawValidateExisting(B(n),ae(l,{id:B(n),type:"item",attributes:"*",relationships:["item_type","creator"]}))}rawValidateExisting(n,l){return this.client.request({method:"POST",url:`/items/${n}/validate`,body:Mu(l)})}validateNew(n){return this.rawValidateNew(ae(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(ae(n,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/items",body:Mu(n)}).then(Zt)}duplicate(n){return this.rawDuplicate(B(n)).then(l=>A(l))}rawDuplicate(n){return this.client.request({method:"POST",url:`/items/${n}/duplicate`}).then(Zt)}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"item",attributes:"*",relationships:["item_type","creator"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/items/${n}`,body:Mu(l)}).then(Zt)}references(n,l){return this.rawReferences(B(n),l).then(u=>A(u))}rawReferences(n,l){return this.client.request({method:"GET",url:`/items/${n}/references`,queryParams:l}).then(Zt)}find(n,l){return this.rawFind(B(n),l).then(u=>A(u))}rawFind(n,l){return this.client.request({method:"GET",url:`/items/${n}`,queryParams:l}).then(Zt)}currentVsPublishedState(n){return this.rawCurrentVsPublishedState(B(n)).then(l=>A(l))}rawCurrentVsPublishedState(n){return this.client.request({method:"GET",url:`/items/${n}/current-vs-published-state`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}`}).then(Zt)}publish(n,l,u){return this.rawPublish(B(n),l?ae(l,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,u).then(s=>A(s))}rawPublish(n,l,u){return this.client.request({method:"PUT",url:`/items/${n}/publish`,body:l,queryParams:u}).then(Zt)}unpublish(n,l,u){return this.rawUnpublish(B(n),l?ae(l,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,u).then(s=>A(s))}rawUnpublish(n,l,u){return this.client.request({method:"PUT",url:`/items/${n}/unpublish`,body:l,queryParams:u}).then(Zt)}bulkPublish(n){return this.rawBulkPublish(ae(n,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then(l=>A(l))}rawBulkPublish(n){return this.client.request({method:"POST",url:"/items/bulk/publish",body:n})}bulkUnpublish(n){return this.rawBulkUnpublish(ae(n,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then(l=>A(l))}rawBulkUnpublish(n){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:n})}bulkDestroy(n){return this.rawBulkDestroy(ae(n,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then(l=>A(l))}rawBulkDestroy(n){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:n})}bulkMoveToStage(n){return this.rawBulkMoveToStage(ae(n,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then(l=>A(l))}rawBulkMoveToStage(n){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:n})}}hy.TYPE="item";var cO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,m){d=i[f](d),s(v,m,d.done,d.value)})}}function s(f,d,v,m){Promise.resolve(m).then(function(h){f({value:h,done:v})},d)}},Ri=function(i){return this instanceof Ri?(this.v=i,this):new Ri(i)},fO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{m(u[b](S))}catch(E){y(f[0][3],E)}}function m(b){b.value instanceof Ri?Promise.resolve(b.value.v).then(h,g):y(f[0][2],b)}function h(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class my extends ve{restore(n){return this.rawRestore(B(n)).then(l=>A(l))}rawRestore(n){return this.client.request({method:"POST",url:`/versions/${n}/restore`})}list(n,l){return this.rawList(B(n),l).then(u=>A(u))}rawList(n,l){return this.client.request({method:"GET",url:`/items/${n}/versions`,queryParams:l})}listPagedIterator(n,l,u){return fO(this,arguments,function*(){var f,d,v,m;try{for(var h=!0,g=cO(this.rawListPagedIterator(B(n),l,u)),y;y=yield Ri(g.next()),f=y.done,!f;){m=y.value,h=!1;try{yield yield Ri(tn(m))}finally{h=!0}}}catch(b){d={error:b}}finally{try{!h&&!f&&(v=g.return)&&(yield Ri(v.call(g)))}finally{if(d)throw d.error}}})}rawListPagedIterator(n,l,u){return Hn(l),Vn({defaultLimit:15,maxLimit:50},s=>this.rawList(n,Object.assign(Object.assign({},l),{page:s})),u)}find(n,l){return this.rawFind(B(n),l).then(u=>A(u))}rawFind(n,l){return this.client.request({method:"GET",url:`/versions/${n}`,queryParams:l})}}my.TYPE="item_version";var dO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,m){d=i[f](d),s(v,m,d.done,d.value)})}}function s(f,d,v,m){Promise.resolve(m).then(function(h){f({value:h,done:v})},d)}},Li=function(i){return this instanceof Li?(this.v=i,this):new Li(i)},hO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{m(u[b](S))}catch(E){y(f[0][3],E)}}function m(b){b.value instanceof Li?Promise.resolve(b.value.v).then(h,g):y(f[0][2],b)}function h(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};let Ef=class extends ve{create(n){return this.rawCreate(ae(n,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:["upload_collection"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/uploads",body:n})}list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/uploads",queryParams:n})}listPagedIterator(n,l){return hO(this,arguments,function*(){var s,f,d,v;try{for(var m=!0,h=dO(this.rawListPagedIterator(n,l)),g;g=yield Li(h.next()),s=g.done,!s;){v=g.value,m=!1;try{yield yield Li(tn(v))}finally{m=!0}}}catch(y){f={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield Li(d.call(h)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/uploads/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/uploads/${n}`})}update(n,l,u){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator","upload_collection"]}),u).then(s=>A(s))}rawUpdate(n,l,u){return this.client.request({method:"PUT",url:`/uploads/${n}`,body:l,queryParams:u})}references(n,l){return this.rawReferences(B(n),l).then(u=>A(u))}rawReferences(n,l){return this.client.request({method:"GET",url:`/uploads/${n}/references`,queryParams:l}).then(Zt)}bulkTag(n){return this.rawBulkTag(ae(n,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then(l=>A(l))}rawBulkTag(n){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:n})}bulkSetUploadCollection(n){return this.rawBulkSetUploadCollection(ae(n,{type:"upload_bulk_set_upload_collection_operation",attributes:[],relationships:["upload_collection","uploads"]})).then(l=>A(l))}rawBulkSetUploadCollection(n){return this.client.request({method:"POST",url:"/uploads/bulk/set-upload-collection",body:n})}bulkDestroy(n){return this.rawBulkDestroy(ae(n,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then(l=>A(l))}rawBulkDestroy(n){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:n})}};Ef.TYPE="upload";class py extends ve{create(n){return this.rawCreate(ae(n,{type:"upload_request",attributes:["filename"],relationships:["upload_collection"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-requests",body:n})}}py.TYPE="upload_request";class vy extends ve{create(n,l){return this.rawCreate(B(n),ae(l,{type:"upload_track",attributes:["url_or_upload_request_id","type","name","language_code","closed_captions"],relationships:[]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/uploads/${n}/tracks`,body:l})}list(n){return this.rawList(B(n)).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:`/uploads/${n}/tracks`})}destroy(n,l){return this.rawDestroy(B(n),B(l)).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/uploads/${n}/tracks/${l}`})}generateSubtitles(n,l){return this.rawGenerateSubtitles(B(n),ae(l,{type:"upload_track",attributes:["name","language_code"],relationships:[]})).then(u=>A(u))}rawGenerateSubtitles(n,l){return this.client.request({method:"POST",url:`/uploads/${n}/tracks/generate-subtitles`,body:l})}}vy.TYPE="upload_track";class gy extends ve{create(n,l){return this.rawCreate(B(n),ae(l,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/items/${n}/scheduled-publication`,body:l})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}/scheduled-publication`}).then(Zt)}}gy.TYPE="scheduled_publication";class yy extends ve{create(n,l){return this.rawCreate(B(n),ae(l,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/items/${n}/scheduled-unpublishing`,body:l})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}/scheduled-unpublishing`}).then(Zt)}}yy.TYPE="scheduled_unpublishing";var mO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,m){d=i[f](d),s(v,m,d.done,d.value)})}}function s(f,d,v,m){Promise.resolve(m).then(function(h){f({value:h,done:v})},d)}},ji=function(i){return this instanceof ji?(this.v=i,this):new ji(i)},pO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{m(u[b](S))}catch(E){y(f[0][3],E)}}function m(b){b.value instanceof ji?Promise.resolve(b.value.v).then(h,g):y(f[0][2],b)}function h(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class by extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/search-results",queryParams:n})}listPagedIterator(n,l){return pO(this,arguments,function*(){var s,f,d,v;try{for(var m=!0,h=mO(this.rawListPagedIterator(n,l)),g;g=yield ji(h.next()),s=g.done,!s;){v=g.value,m=!1;try{yield yield ji(tn(v))}finally{m=!0}}}catch(y){f={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield ji(d.call(h)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:20,maxLimit:100},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}}by.TYPE="search_result";class _y extends ve{fork(n,l,u){return this.rawFork(B(n),ae(l,{id:B(n),type:"environment",attributes:[],relationships:[]}),u).then(s=>A(s))}rawFork(n,l,u){return this.client.request({method:"POST",url:`/environments/${n}/fork`,body:l,queryParams:u})}promote(n){return this.rawPromote(B(n)).then(l=>A(l))}rawPromote(n){return this.client.request({method:"PUT",url:`/environments/${n}/promote`})}rename(n,l){return this.rawRename(B(n),ae(l,{id:B(n),type:"environment",attributes:[],relationships:[]})).then(u=>A(u))}rawRename(n,l){return this.client.request({method:"PUT",url:`/environments/${n}/rename`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/environments"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/environments/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/environments/${n}`})}}_y.TYPE="environment";class Sy extends ve{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(l=>A(l))}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"})}}Sy.TYPE="maintenance_mode";class Ey extends ve{create(n){return this.rawCreate(ae(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(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/webhooks",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(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,l){return this.client.request({method:"PUT",url:`/webhooks/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/webhooks"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/webhooks/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/webhooks/${n}`})}}Ey.TYPE="webhook";var vO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,m){d=i[f](d),s(v,m,d.done,d.value)})}}function s(f,d,v,m){Promise.resolve(m).then(function(h){f({value:h,done:v})},d)}},Ni=function(i){return this instanceof Ni?(this.v=i,this):new Ni(i)},gO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{m(u[b](S))}catch(E){y(f[0][3],E)}}function m(b){b.value instanceof Ni?Promise.resolve(b.value.v).then(h,g):y(f[0][2],b)}function h(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class wy extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:n})}listPagedIterator(n,l){return gO(this,arguments,function*(){var s,f,d,v;try{for(var m=!0,h=vO(this.rawListPagedIterator(n,l)),g;g=yield Ni(h.next()),s=g.done,!s;){v=g.value,m=!1;try{yield yield Ni(tn(v))}finally{m=!0}}}catch(y){f={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield Ni(d.call(h)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/webhook_calls/${n}`})}resendWebhook(n){return this.rawResendWebhook(B(n))}rawResendWebhook(n){return this.client.request({method:"POST",url:`/webhook_calls/${n}/resend_webhook`})}}wy.TYPE="webhook_call";class Ty extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/build-triggers"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/build-triggers/${n}`})}create(n){return this.rawCreate(ae(n,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/build-triggers",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(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,l){return this.client.request({method:"PUT",url:`/build-triggers/${n}`,body:l})}trigger(n){return this.rawTrigger(B(n))}rawTrigger(n){return this.client.request({method:"POST",url:`/build-triggers/${n}/trigger`})}abort(n){return this.rawAbort(B(n))}rawAbort(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}/abort`})}abortIndexing(n){return this.rawAbortIndexing(B(n))}rawAbortIndexing(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}/abort_indexing`})}reindex(n){return this.rawReindex(B(n))}rawReindex(n){return this.client.request({method:"PUT",url:`/build-triggers/${n}/reindex`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}`})}}Ty.TYPE="build_trigger";class Oy extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/search-indexes"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/search-indexes/${n}`})}create(n){return this.rawCreate(ae(n,{type:"search_index",attributes:["name","enabled","frontend_url","user_agent_suffix"],relationships:["build_triggers"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/search-indexes",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"search_index",attributes:["name","enabled","frontend_url","user_agent_suffix"],relationships:["build_triggers"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/search-indexes/${n}`,body:l})}trigger(n){return this.rawTrigger(B(n))}rawTrigger(n){return this.client.request({method:"POST",url:`/search-indexes/${n}/trigger`})}abort(n){return this.rawAbort(B(n))}rawAbort(n){return this.client.request({method:"DELETE",url:`/search-indexes/${n}/abort`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/search-indexes/${n}`})}}Oy.TYPE="search_index";class Cy extends ve{create(n){return this.rawCreate(ae(n,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/item-type-filters",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/item-type-filters/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/item-type-filters"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/item-type-filters/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/item-type-filters/${n}`})}}Cy.TYPE="item_type_filter";class xy extends ve{create(n){return this.rawCreate(ae(n,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-filters",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/upload-filters/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/upload-filters"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/upload-filters/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/upload-filters/${n}`})}}xy.TYPE="upload_filter";class Ay extends ve{create(n){return this.rawCreate(ae(n,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/site-invitations",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"site_invitation",attributes:[],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/site-invitations/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/site-invitations"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/site-invitations/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/site-invitations/${n}`})}resend(n){return this.rawResend(B(n)).then(l=>A(l))}rawResend(n){return this.client.request({method:"POST",url:`/site-invitations/${n}/resend`})}}Ay.TYPE="site_invitation";class zy extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/editing-sessions"})}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/editing-sessions/${n}`,body:l})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/editing-sessions/${n}`})}}zy.TYPE="editing_session";class My extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/sso-groups"})}copyRoles(n){return this.rawCopyRoles(B(n)).then(l=>A(l))}rawCopyRoles(n){return this.client.request({method:"POST",url:`/sso-groups/${n}/copy-roles`})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"sso_group",attributes:["priority"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/sso-groups/${n}`,body:l})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/sso-groups/${n}`})}}My.TYPE="sso_group";class Dy extends ve{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(ae(n,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then(l=>A(l))}rawUpdate(n){return this.client.request({method:"PUT",url:"/sso-settings",body:n})}}Dy.TYPE="sso_settings";class Ry extends ve{find(n){return this.rawFind(n).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:"/emoji-suggestions",queryParams:n})}}Ry.TYPE="emoji_suggestions";class Ly extends ve{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/white-label-settings"})}update(n){return this.rawUpdate(ae(n,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then(l=>A(l))}rawUpdate(n){return this.client.request({method:"PUT",url:"/white-label-settings",body:n})}}Ly.TYPE="white_label_settings";class jy extends ve{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/public-info"})}}jy.TYPE="public_info";class Ny extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/daily-site-usages"})}}Ny.TYPE="daily_usage";class qy extends ve{find(n,l){return this.rawFind(B(n),l).then(u=>A(u))}rawFind(n,l){return this.client.request({method:"GET",url:`/usage-log-counters/${n}`,queryParams:l})}}qy.TYPE="usage_counter";var yO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,m){d=i[f](d),s(v,m,d.done,d.value)})}}function s(f,d,v,m){Promise.resolve(m).then(function(h){f({value:h,done:v})},d)}},qi=function(i){return this instanceof qi?(this.v=i,this):new qi(i)},bO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{m(u[b](S))}catch(E){y(f[0][3],E)}}function m(b){b.value instanceof qi?Promise.resolve(b.value.v).then(h,g):y(f[0][2],b)}function h(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class Uy extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/upload-tags",queryParams:n})}listPagedIterator(n,l){return bO(this,arguments,function*(){var s,f,d,v;try{for(var m=!0,h=yO(this.rawListPagedIterator(n,l)),g;g=yield qi(h.next()),s=g.done,!s;){v=g.value,m=!1;try{yield yield qi(tn(v))}finally{m=!0}}}catch(y){f={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield qi(d.call(h)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:50,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}create(n){return this.rawCreate(ae(n,{type:"upload_tag",attributes:["name"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-tags",body:n})}}Uy.TYPE="upload_tag";var _O=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,m){d=i[f](d),s(v,m,d.done,d.value)})}}function s(f,d,v,m){Promise.resolve(m).then(function(h){f({value:h,done:v})},d)}},Ui=function(i){return this instanceof Ui?(this.v=i,this):new Ui(i)},SO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{m(u[b](S))}catch(E){y(f[0][3],E)}}function m(b){b.value instanceof Ui?Promise.resolve(b.value.v).then(h,g):y(f[0][2],b)}function h(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class Vy extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:n})}listPagedIterator(n,l){return SO(this,arguments,function*(){var s,f,d,v;try{for(var m=!0,h=_O(this.rawListPagedIterator(n,l)),g;g=yield Ui(h.next()),s=g.done,!s;){v=g.value,m=!1;try{yield yield Ui(tn(v))}finally{m=!0}}}catch(y){f={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield Ui(d.call(h)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:50,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}}Vy.TYPE="upload_smart_tag";class Hy extends ve{find(n){return this.rawFind(n).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:"/site",queryParams:n})}update(n){return this.rawUpdate(ae(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(l=>A(l))}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"})}updateAssetsCdnDefaultSettings(n){return this.rawUpdateAssetsCdnDefaultSettings(ae(n,{type:"assets-cdn-default-settings",attributes:["assets_cdn_default_settings"],relationships:[]})).then(l=>A(l))}rawUpdateAssetsCdnDefaultSettings(n){return this.client.request({method:"PUT",url:"/site/assets-cdn-default-settings",body:n})}}Hy.TYPE="site";class By extends ve{create(n){return this.rawCreate(ae(n,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/workflows",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/workflows/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/workflows"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/workflows/${n}`})}destroy(n){return this.rawDestroy(B(n))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/workflows/${n}`})}}By.TYPE="workflow";var EO=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{h(u.next(g))}catch(y){d(y)}}function m(g){try{h(u.throw(g))}catch(y){d(y)}}function h(g){g.done?f(g.value):s(g.value).then(v,m)}h((u=u.apply(i,n||[])).next())})};let Gy=class Iy{constructor(n){this.config=n,this.roles=new aO(this),this.users=new Zg(this),this.ssoUsers=new Kg(this),this.auditLogEvents=new Jg(this),this.menuItems=new Wg(this),this.schemaMenuItems=new ey(this),this.uploadCollections=new ty(this),this.itemTypes=new ny(this),this.fields=new ay(this),this.fieldsets=new iy(this),this.session=new ry(this),this.accessTokens=new ly(this),this.plugins=new uy(this),this.jobResults=new sy(this),this.subscriptionLimits=new oy(this),this.subscriptionFeatures=new cy(this),this.buildEvents=new fy(this),this.searchIndexEvents=new dy(this),this.items=new hy(this),this.itemVersions=new my(this),this.uploads=new Ef(this),this.uploadRequest=new py(this),this.uploadTracks=new vy(this),this.scheduledPublication=new gy(this),this.scheduledUnpublishing=new yy(this),this.searchResults=new by(this),this.environments=new _y(this),this.maintenanceMode=new Sy(this),this.webhooks=new Ey(this),this.webhookCalls=new wy(this),this.buildTriggers=new Ty(this),this.searchIndexes=new Oy(this),this.itemTypeFilters=new Cy(this),this.uploadFilters=new xy(this),this.siteInvitations=new Ay(this),this.editingSessions=new zy(this),this.ssoGroups=new My(this),this.ssoSettings=new Dy(this),this.emojiSuggestions=new Ry(this),this.whiteLabelSettings=new Ly(this),this.publicInfo=new jy(this),this.dailyUsages=new Ny(this),this.usageCounters=new qy(this),this.uploadTags=new Uy(this),this.uploadSmartTags=new Vy(this),this.site=new Hy(this),this.workflows=new By(this)}get baseUrl(){return this.config.baseUrl||Iy.defaultBaseUrl}request(n){return Uu(Object.assign(Object.assign(Object.assign({},this.config),n),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v5.3.0",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:l=>this.jobResultsFetcher?this.jobResultsFetcher(l):VT(()=>this.jobResults.find(l))}))}eventsChannelName(){return EO(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})}};Gy.defaultBaseUrl="https://site-api.datocms.com";function wO(i,n,{onProgress:l,additionalHeaders:u}={}){const s=new XMLHttpRequest;return Fr(new Promise((f,d)=>{if(l&&s.upload&&(s.upload.onprogress=v=>{v.lengthComputable&&l({type:"UPLOADING_FILE",payload:{progress:Math.round(v.loaded/v.total*100)}})}),s.onreadystatechange=()=>{s.readyState===4&&(s.status===200?f():d(new Error(`Status ${s.status}`)))},s.addEventListener("error",d,!1),s.open("PUT",n,!0),u)for(const[v,m]of Object.entries(u))s.setRequestHeader(v,m);s.send(i)}),()=>{s.onreadystatechange=null,s.abort()})}var TO=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{h(u.next(g))}catch(y){d(y)}}function m(g){try{h(u.throw(g))}catch(y){d(y)}}function h(g){g.done?f(g.value):s(g.value).then(v,m)}h((u=u.apply(i,n||[])).next())})};function Lv(i,n,l={}){const u=l.filename||("name"in n?n.name:void 0);if(!u)throw new Error("Missing filename, please provide it as an option!");let s=!1,f;return Fr(()=>TO(this,void 0,void 0,function*(){l.onProgress&&l?.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:u}});const{id:d,url:v,request_headers:m}=yield i.uploadRequest.create({filename:u});if(s)throw new Pr;return l.onProgress&&l.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),f=wO(n,v,Object.assign(Object.assign({},l),{additionalHeaders:m})),yield f,d}),()=>{f?f.cancel():s=!0})}var jv=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{h(u.next(g))}catch(y){d(y)}}function m(g){try{h(u.throw(g))}catch(y){d(y)}}function h(g){g.done?f(g.value):s(g.value).then(v,m)}h((u=u.apply(i,n||[])).next())})},Nv=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l};class OO extends Ef{createFromFileOrBlob(n){let l=!1,u;return Fr(()=>jv(this,void 0,void 0,function*(){if(l)throw new Pr;const{fileOrBlob:s,filename:f,onProgress:d}=n,v=Nv(n,["fileOrBlob","filename","onProgress"]);u=Lv(this.client,s,{filename:f,onProgress:d});const m=yield u;return d&&d({type:"CREATING_UPLOAD_OBJECT"}),this.create(Object.assign(Object.assign({},v),{path:m}))}),()=>{u?u.cancel():l=!0})}updateFromFileOrBlob(n,l){let u=!1,s;return Fr(()=>jv(this,void 0,void 0,function*(){if(u)throw new Pr;const{fileOrBlob:f,filename:d,onProgress:v}=l,m=Nv(l,["fileOrBlob","filename","onProgress"]);s=Lv(this.client,f,{filename:d,onProgress:v});const h=yield s;return v&&v({type:"CREATING_UPLOAD_OBJECT"}),this.update(n,Object.assign(Object.assign({},m),{path:h}))}),()=>{s?s.cancel():u=!0})}}class CO extends Gy{constructor(n){super(n),this.uploads=new OO(this)}}function qv(i){return new CO(i)}const xO="_assetListCard_1bgya_23",AO="_assetListHeader_1bgya_49",zO="_assetListHeaderTitle_1bgya_58",MO="_categoryBadge_1bgya_73",DO="_badgeGreen_1bgya_87",RO="_badgeRed_1bgya_91",LO="_badgeGray_1bgya_95",jO="_badgeBlue_1bgya_99",NO="_noAssetsMessage_1bgya_103",qO="_assetList_1bgya_23",UO="_assetListItem_1bgya_118",VO="_assetItemContent_1bgya_132",HO="_assetIcon_1bgya_138",BO="_fileIconWrapper_1bgya_142",GO="_assetDetails_1bgya_155",IO="_assetPath_1bgya_160",YO="_optimizationStats_1bgya_167",$O="_sizeInfo_1bgya_175",PO="_sizeBefore_1bgya_182",FO="_sizeAfter_1bgya_183",kO="_sizeLabel_1bgya_189",XO="_sizeValue_1bgya_194",QO="_sizeArrow_1bgya_207",ZO="_savingsBadge_1bgya_212",KO="_assetActions_1bgya_222",JO="_container_1bgya_233",WO="_optimizingContainer_1bgya_297",e2="_statusText_1bgya_309",t2="_percentageText_1bgya_315",n2="_progressBar_1bgya_322",a2="_progressBarFill_1bgya_333",i2="_logWrapper_1bgya_370",r2="_logHeader_1bgya_380",l2="_logsContainer_1bgya_392",u2="_logs_1bgya_392",s2="_logEntry_1bgya_408",o2="_sizeComparison_1bgya_421",c2="_originalSize_1bgya_581",f2="_optimizedSize_1bgya_591",d2="_sizeSavings_1bgya_596",h2="_settingsContainer_1bgya_643",m2="_settingsForm_1bgya_649",p2="_fieldRow_1bgya_674",v2="_field_1bgya_674",g2="_formActionContainer_1bgya_685",y2="_buttonGroup_1bgya_689",b2="_resultsContainer_1bgya_739",_2="_optimizationSummaryTitle_1bgya_748",S2="_statsCardGrid_1bgya_756",E2="_statsCard_1bgya_756",w2="_clickableStatsCard_1bgya_773",T2="_statsCardTitle_1bgya_813",O2="_statsCardValue_1bgya_821",C2="_optimizedValue_1bgya_827",x2="_skippedValue_1bgya_831",A2="_failedValue_1bgya_835",z2="_statsCardLabel_1bgya_839",M2="_savingsSummary_1bgya_844",D2="_savingsCard_1bgya_848",R2="_savingsRow_1bgya_855",L2="_savingsLabel_1bgya_867",j2="_savingsValue_1bgya_872",N2="_actionsContainer_1bgya_878",q2="_infoText_1bgya_887",U2="_hintWithDoc_1bgya_903",V2="_plainHint_1bgya_917",H2="_docLinkIcon_1bgya_930",B2="_currentAssetPreview_1bgya_994",G2="_assetPreviewImage_1bgya_1005",I2="_assetPreviewInfo_1bgya_1022",Y2="_assetPreviewTitle_1bgya_1027",$2="_assetPreviewMeta_1bgya_1037",P2="_advancedOptionsGroup_1bgya_1046",F2="_optionsGrid_1bgya_1056",k2="_optionItem_1bgya_1063",X2="_paramTooltip_1bgya_1070",Q2="_tooltipText_1bgya_1075",Z2="_buttonTooltip_1bgya_1115",K2="_previewInfoBox_1bgya_1158",k={assetListCard:xO,assetListHeader:AO,assetListHeaderTitle:zO,categoryBadge:MO,badgeGreen:DO,badgeRed:RO,badgeGray:LO,badgeBlue:jO,noAssetsMessage:NO,assetList:qO,assetListItem:UO,assetItemContent:VO,assetIcon:HO,fileIconWrapper:BO,assetDetails:GO,assetPath:IO,optimizationStats:YO,sizeInfo:$O,sizeBefore:PO,sizeAfter:FO,sizeLabel:kO,sizeValue:XO,sizeArrow:QO,savingsBadge:ZO,assetActions:KO,container:JO,optimizingContainer:WO,statusText:e2,percentageText:t2,progressBar:n2,progressBarFill:a2,logWrapper:i2,logHeader:r2,logsContainer:l2,logs:u2,logEntry:s2,sizeComparison:o2,originalSize:c2,optimizedSize:f2,sizeSavings:d2,settingsContainer:h2,settingsForm:m2,fieldRow:p2,field:v2,formActionContainer:g2,buttonGroup:y2,resultsContainer:b2,optimizationSummaryTitle:_2,statsCardGrid:S2,statsCard:E2,clickableStatsCard:w2,statsCardTitle:T2,statsCardValue:O2,optimizedValue:C2,skippedValue:x2,failedValue:A2,statsCardLabel:z2,savingsSummary:M2,savingsCard:D2,savingsRow:R2,savingsLabel:L2,savingsValue:j2,actionsContainer:N2,infoText:q2,hintWithDoc:U2,plainHint:V2,docLinkIcon:H2,currentAssetPreview:B2,assetPreviewImage:G2,assetPreviewInfo:I2,assetPreviewTitle:Y2,assetPreviewMeta:$2,advancedOptionsGroup:P2,optionsGrid:F2,optionItem:k2,paramTooltip:X2,tooltipText:Q2,buttonTooltip:Z2,previewInfoBox:K2};function Ba(i){return i<1024?`${i} bytes`:i<1024*1024?`${(i/1024).toFixed(1)} KB`:`${(i/(1024*1024)).toFixed(1)} MB`}const J2=i=>{const n=i.originalSize!==void 0&&i.optimizedSize!==void 0?`${i.originalSize}-${i.optimizedSize}`:"no-size";return`${i.text}-${n}`},W2=({log:i})=>{const n=F.useRef(null);return F.useEffect(()=>{if(n.current){const{scrollHeight:l,clientHeight:u}=n.current;n.current.scrollTop=l-u}},[]),i.length===0?null:T.jsxs("div",{className:k.logWrapper,children:[T.jsxs("div",{className:k.logHeader,children:[T.jsx("h3",{children:"Activity Log"}),T.jsxs("span",{children:[i.length," entries"]})]}),T.jsx("div",{className:k.logsContainer,ref:n,children:T.jsx("div",{className:k.logs,children:i.map(l=>T.jsxs("div",{className:k.logEntry,children:[T.jsx("span",{children:l.text}),l.originalSize&&l.optimizedSize&&T.jsxs("span",{className:k.sizeComparison,children:[T.jsx("span",{className:k.originalSize,children:Ba(l.originalSize)}),T.jsx("span",{className:k.sizeArrow,children:"→"}),T.jsx("span",{className:k.optimizedSize,children:Ba(l.optimizedSize)}),T.jsxs("span",{className:k.sizeSavings,children:["(-",l.savingsPercentage,"%)"]})]})]},J2(l)))})})]})},eC=i=>{switch(i){case"optimized":return k.badgeGreen;case"failed":return k.badgeRed;case"skipped":return k.badgeGray;default:return k.badgeBlue}},tC=i=>{const n="originalSize"in i?i.originalSize:void 0,l="optimizedSize"in i?i.optimizedSize:void 0,u="size"in i?i.size:n??0,s="basename"in i?i.basename:"";return{id:i.id,path:i.path,url:i.url,is_image:!0,size:u,basename:s,originalSize:n,optimizedSize:l}},nC=(i,n)=>!i||!n?null:Math.round((i-n)/i*100),aC=({asset:i,category:n,ctx:l})=>{const u=tC(i),s=nC(u.originalSize,u.optimizedSize),f=u.path.split(".").pop()??"",d=n==="optimized"&&!!u.originalSize&&!!u.optimizedSize;return T.jsx("li",{className:k.assetListItem,children:T.jsxs("div",{className:k.assetItemContent,children:[T.jsx("div",{className:k.assetIcon,children:T.jsx("div",{className:k.fileIconWrapper,children:f.toUpperCase()})}),T.jsxs("div",{className:k.assetDetails,children:[T.jsx("p",{className:k.assetPath,children:u.path}),d&&T.jsxs("div",{className:k.optimizationStats,children:[T.jsxs("div",{className:k.sizeInfo,children:[T.jsxs("div",{className:k.sizeBefore,children:[T.jsx("span",{className:k.sizeLabel,children:"Original:"}),T.jsx("span",{className:k.sizeValue,children:Ba(u.originalSize??0)})]}),T.jsx("div",{className:k.sizeArrow,children:"→"}),T.jsxs("div",{className:k.sizeAfter,children:[T.jsx("span",{className:k.sizeLabel,children:"Optimized:"}),T.jsx("span",{className:k.sizeValue,children:Ba(u.optimizedSize??0)})]})]}),s&&T.jsxs("div",{className:`${k.savingsBadge} ${k.badgeGreen}`,children:[s,"% savings"]})]})]}),T.jsxs("div",{className:k.assetActions,children:[T.jsx(da,{buttonSize:"xxs",buttonType:"primary",onClick:()=>window.open(u.url,"_blank"),children:"View Asset"}),T.jsx(da,{buttonSize:"xxs",buttonType:"muted",style:{marginLeft:"8px"},onClick:()=>window.open(`https://${l.site.attributes.internal_domain}/environments/${l.environment}/media/assets/${u.id}`,"_blank"),children:"Media Area"})]})]})},u.id)},iC=({assets:i,category:n,onClose:l,ctx:u})=>{const s=eC(n),f=n.charAt(0).toUpperCase()+n.slice(1);return T.jsxs("div",{className:k.assetListCard,children:[T.jsxs("div",{className:k.assetListHeader,children:[T.jsxs("div",{className:k.assetListHeaderTitle,children:[T.jsx("div",{className:`${k.categoryBadge} ${s}`,children:i.length}),T.jsxs("h3",{children:[f," Assets"]})]}),l&&T.jsx(da,{buttonType:"negative",buttonSize:"xs",onClick:l,children:"Close"})]}),i.length===0?T.jsxs("div",{className:k.noAssetsMessage,children:["No ",n," assets to display."]}):T.jsx("ul",{className:k.assetList,children:i.map(d=>T.jsx(aC,{asset:d,category:n,ctx:u},d.id))})]})},rC=({current:i,total:n,isVisible:l,assetSizeCategory:u="large",currentAsset:s,isPreview:f})=>{if(!l)return null;const d=n>0?Math.min(100,Math.max(0,Math.round(i/n*100))):0;return T.jsxs("div",{className:k.optimizingContainer,children:[f&&T.jsxs("div",{className:k.previewInfoBox,children:[T.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[T.jsx("title",{children:"Information"}),T.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"currentColor"})]}),T.jsxs("p",{children:[T.jsx("strong",{children:"Preview Mode"})," - This will calculate potential savings without modifying any assets."]})]}),s&&T.jsxs("div",{className:k.currentAssetPreview,children:[T.jsx("div",{className:k.assetPreviewImage,children:T.jsx("img",{src:`${s.url}?w=120&h=80&fit=crop&auto=format`,alt:s.basename})}),T.jsxs("div",{className:k.assetPreviewInfo,children:[T.jsx("div",{className:k.assetPreviewTitle,children:s.basename}),T.jsxs("div",{className:k.assetPreviewMeta,children:[s.path.split(".").pop()?.toUpperCase()," •"," ",(s.size/(1024*1024)).toFixed(2)," MB •"," ",s.width,"×",s.height,"px"]})]})]}),T.jsxs("div",{className:k.statusText,children:[T.jsx(vT,{size:16})," ",T.jsxs("span",{children:["Processing ",u," assets: ",i," of ",n]})]}),T.jsx("div",{className:k.percentageText,children:T.jsxs("span",{children:[d,"%"]})}),T.jsx("div",{className:k.progressBar,children:T.jsx("div",{className:k.progressBarFill,style:{width:`${d}%`}})})]})},lC=i=>i<1024?`${i} bytes`:i<1024*1024?`${(i/1024).toFixed(1)} KB`:`${(i/(1024*1024)).toFixed(1)} MB`,uC=i=>i.reduce((n,l)=>n+(l.originalSize-l.optimizedSize),0),sC=i=>{if(i.length===0)return 0;const n=i.reduce((l,u)=>l+(u.originalSize-u.optimizedSize)/u.originalSize*100,0);return Math.round(n/i.length)},Uc=({title:i,count:n,valueClassName:l,category:u,onSelect:s})=>{const f=n>0,d=()=>{f&&s(u)},v=m=>{f&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),s(u))};return T.jsxs("div",{className:`${k.statsCard} ${f?k.clickableStatsCard:""}`,onClick:d,onKeyDown:v,role:f?"button":void 0,tabIndex:f?0:void 0,children:[T.jsx("h3",{className:k.statsCardTitle,children:i}),T.jsx("div",{className:`${k.statsCardValue} ${l}`,children:n}),T.jsx("div",{className:k.statsCardLabel,children:f?"Click to view":`No ${i.toLowerCase()} assets`})]})},oC=({result:i,setSelectedCategory:n,resetState:l,largeAssetThreshold:u,isPreview:s})=>{if(!i)return null;const{optimized:f,skipped:d,failed:v,totalAssets:m,optimizedAssets:h}=i,g=uC(h),y=sC(h),b=()=>{l?l():n(null)},S=m===0&&!!u;return T.jsxs("div",{className:k.resultsContainer,children:[T.jsx("h2",{className:k.optimizationSummaryTitle,children:s?"Preview Summary":"Optimization Summary"}),s&&T.jsxs("div",{className:k.previewInfoBox,children:[T.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[T.jsx("title",{children:"Information"}),T.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"currentColor"})]}),T.jsxs("p",{children:[T.jsx("strong",{children:"Preview Mode"})," - This is an estimation of potential savings. No assets have been modified."]})]}),S&&T.jsx("div",{className:`${k.infoBox}`,style:{margin:"0 0 16px 0",padding:"16px",backgroundColor:"var(--light-bg-color)",borderRadius:"4px"},children:T.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[T.jsx("div",{style:{marginRight:"8px",color:"var(--accent-color)",display:"flex"},children:T.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[T.jsx("title",{children:"Information"}),T.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"currentColor"})]})}),T.jsxs("p",{style:{margin:0,color:"var(--base-body-color)"},children:["No images in your project are larger than"," ",T.jsxs("strong",{children:[u,"MB"]}),". Try lowering the minimum size threshold to optimize more assets."]})]})}),T.jsxs("div",{className:k.statsCardGrid,children:[T.jsxs("div",{className:k.statsCard,children:[T.jsx("h3",{className:k.statsCardTitle,children:"Total Assets"}),T.jsx("div",{className:k.statsCardValue,children:m}),T.jsx("div",{className:k.statsCardLabel,children:m>0?"Total":"No assets found"})]}),T.jsx(Uc,{title:"Optimized",count:f,valueClassName:k.optimizedValue,category:"optimized",onSelect:n}),T.jsx(Uc,{title:"Skipped",count:d,valueClassName:k.skippedValue,category:"skipped",onSelect:n}),T.jsx(Uc,{title:"Failed",count:v,valueClassName:k.failedValue,category:"failed",onSelect:n})]}),T.jsx("div",{className:k.savingsSummary,children:T.jsxs("div",{className:k.savingsCard,children:[T.jsxs("div",{className:k.savingsRow,children:[T.jsx("div",{className:k.savingsLabel,children:"Total Storage Saved"}),T.jsx("div",{className:k.savingsValue,children:lC(g)})]}),T.jsxs("div",{className:k.savingsRow,children:[T.jsx("div",{className:k.savingsLabel,children:"Average Optimization per Asset"}),T.jsxs("div",{className:k.savingsValue,children:[y,"%"]})]})]})}),T.jsx("div",{className:k.actionsContainer,children:T.jsx(da,{buttonType:"primary",buttonSize:"l",onClick:b,fullWidth:!0,children:s?"New Preview":"New Optimization"})})]})};var Vc,Uv;function cC(){if(Uv)return Vc;Uv=1;var i="Expected a function",n=NaN,l="[object Symbol]",u=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,d=/^0o[0-7]+$/i,v=parseInt,m=typeof hu=="object"&&hu&&hu.Object===Object&&hu,h=typeof self=="object"&&self&&self.Object===Object&&self,g=m||h||Function("return this")(),y=Object.prototype,b=y.toString,S=Math.max,E=Math.min,O=function(){return g.Date.now()};function R(M,G,U){var J,de,ze,be,W,ne,le=0,ge=!1,D=!1,Z=!0;if(typeof M!="function")throw new TypeError(i);G=Q(G)||0,j(U)&&(ge=!!U.leading,D="maxWait"in U,ze=D?S(Q(U.maxWait)||0,G):ze,Z="trailing"in U?!!U.trailing:Z);function ee(ue){var De=J,Re=de;return J=de=void 0,le=ue,be=M.apply(Re,De),be}function Ee(ue){return le=ue,W=setTimeout(V,G),ge?ee(ue):be}function we(ue){var De=ue-ne,Re=ue-le,nn=G-De;return D?E(nn,ze-Re):nn}function C(ue){var De=ue-ne,Re=ue-le;return ne===void 0||De>=G||De<0||D&&Re>=ze}function V(){var ue=O();if(C(ue))return K(ue);W=setTimeout(V,we(ue))}function K(ue){return W=void 0,Z&&J?ee(ue):(J=de=void 0,be)}function te(){W!==void 0&&clearTimeout(W),le=0,J=ne=de=W=void 0}function ce(){return W===void 0?be:K(O())}function fe(){var ue=O(),De=C(ue);if(J=arguments,de=this,ne=ue,De){if(W===void 0)return Ee(ne);if(D)return W=setTimeout(V,G),ee(ne)}return W===void 0&&(W=setTimeout(V,G)),be}return fe.cancel=te,fe.flush=ce,fe}function j(M){var G=typeof M;return!!M&&(G=="object"||G=="function")}function X(M){return!!M&&typeof M=="object"}function Y(M){return typeof M=="symbol"||X(M)&&b.call(M)==l}function Q(M){if(typeof M=="number")return M;if(Y(M))return n;if(j(M)){var G=typeof M.valueOf=="function"?M.valueOf():M;M=j(G)?G+"":G}if(typeof M!="string")return M===0?M:+M;M=M.replace(u,"");var U=f.test(M);return U||d.test(M)?v(M.slice(2),U?2:8):s.test(M)?n:+M}return Vc=R,Vc}var fC=cC();const dC=Qu(fC),Yy={largeAssetThreshold:3,veryLargeAssetThreshold:8,qualityLarge:85,qualityVeryLarge:80,resizeDimensionLarge:2400,resizeDimensionVeryLarge:2e3,minimumReduction:10,targetFormat:"avif",preserveOriginalFormat:!1,resizeLargeImages:!0,useAutoCompress:!0,useDpr:!0,useLossless:!1,useChromaSubsampling:!1,preserveColorProfile:!0},hC=(i,n)=>{const l=n.veryLargeAssetThreshold*1024*1024,u=n.largeAssetThreshold*1024*1024;return i>=l?"very-large":i>=u?"large":"small"},mC=(i,n,l)=>{if(!l.resizeLargeImages||!i.width||!i.height)return null;const u=n==="very-large"?l.resizeDimensionVeryLarge:l.resizeDimensionLarge;return Math.max(i.width,i.height)<=u?null:i.width>=i.height?`max-w=${u}`:`h=${u}`},pC=(i,n,l)=>{const u=[];n.useAutoCompress&&u.push("auto=compress");const s=l==="very-large"?n.qualityVeryLarge:n.qualityLarge;u.push(`q=${s}`);const f=mC(i,l,n);return f&&u.push(f),n.targetFormat&&!n.preserveOriginalFormat&&u.push(`fm=${n.targetFormat}`),l==="very-large"&&n.useDpr&&u.push("dpr=2"),n.useLossless&&u.push("lossless=1"),n.useChromaSubsampling&&u.push("chromasub=444"),n.preserveColorProfile&&u.push("cs=origin"),u};function vC(i,n){if(!i.is_image)return null;const l=hC(i.size,n);return l==="small"?null:`?${pC(i,n,l).join("&")}`}const gC=({children:i,tooltip:n})=>n?T.jsxs("div",{className:k.buttonTooltip,children:[i,T.jsx("span",{className:k.tooltipText,children:n})]}):T.jsx(T.Fragment,{children:i}),kt=({children:i,paramName:n,paramValue:l})=>{const s=l==null?`${n}`:typeof l=="boolean"?l?`${n}=1`:"":`${n}=${l}`;return s?T.jsxs("div",{className:k.paramTooltip,children:[i,T.jsx("span",{className:k.tooltipText,children:s})]}):T.jsx(T.Fragment,{children:i})},Rn=({hint:i,url:n})=>{const l=`Learn more about ${i}`,u=()=>{window.open(n,"_blank","noopener,noreferrer")};return T.jsxs("button",{className:k.hintWithDoc,onClick:u,type:"button","aria-label":l,children:[T.jsx("span",{children:i}),T.jsx("span",{className:k.docLinkIcon,children:"ℹ"})]})},xi=({hint:i})=>T.jsx("div",{className:k.plainHint,children:T.jsx("span",{children:i})}),yC=(i,n)=>{const l=i==="qualityLarge"||i==="qualityVeryLarge",u=i==="minimumReduction",s=i==="largeAssetThreshold"||i==="veryLargeAssetThreshold",f=i==="resizeDimensionLarge"||i==="resizeDimensionVeryLarge";return l||u?Math.min(Math.max(0,n),100):s?Math.max(.1,n):f?Math.max(1,n):n},bC=i=>i&&typeof i=="object"&&!Array.isArray(i)&&"value"in i?i.value:null,Ln={format:"https://docs.imgix.com/apis/rendering/format/fm",auto:"https://docs.imgix.com/apis/rendering/automatic",resize:"https://docs.imgix.com/apis/rendering/size/w",quality:"https://docs.imgix.com/apis/rendering/format/q",dpr:"https://docs.imgix.com/apis/rendering/pixel-density/dpr",lossless:"https://docs.imgix.com/apis/rendering/format/lossless",chroma:"https://docs.imgix.com/apis/rendering/format/chroma-subsampling",colorSpace:"https://docs.imgix.com/apis/rendering/format/color-space"},_C=({settings:i,onSettingsChange:n,onStartOptimization:l,onPreviewOptimization:u,ctx:s})=>{const f=F.useRef(null);F.useEffect(()=>(f.current=dC(async y=>{try{await s.updatePluginParameters({optimization_settings:JSON.stringify(y)}),console.log("Settings saved to plugin parameters:",y)}catch(b){console.error("Error saving settings:",b)}},500),()=>{f.current&&f.current.cancel()}),[s]),F.useEffect(()=>{f.current&&f.current(i)},[i]);const d=y=>b=>{const S=Number.parseFloat(b);if(!Number.isNaN(S)){const E=yC(y,S);n({...i,[y]:E})}},v=y=>b=>{n({...i,[y]:b})},m=y=>(b,S)=>{const E=bC(b);E!==null&&n({...i,[y]:E})},h=[{label:"WebP",value:"webp"},{label:"AVIF",value:"avif"}],g=h.find(y=>y.value===i.targetFormat)||h[0];return T.jsxs(m1,{className:k.settingsForm,children:[T.jsxs(jr,{children:[T.jsx("h4",{children:"Size Thresholds"}),T.jsxs("div",{className:k.fieldRow,children:[T.jsxs("div",{className:k.field,children:[T.jsx(Na,{id:"largeAssetThreshold",name:"largeAssetThreshold",label:"Large Asset (MB)",value:i.largeAssetThreshold.toString(),onChange:d("largeAssetThreshold")}),T.jsx(xi,{hint:`Assets above ${i.largeAssetThreshold}MB will be optimized`})]}),T.jsxs("div",{className:k.field,children:[T.jsx(Na,{id:"veryLargeAssetThreshold",name:"veryLargeAssetThreshold",label:"Very Large Asset (MB)",value:i.veryLargeAssetThreshold.toString(),onChange:d("veryLargeAssetThreshold")}),T.jsx(xi,{hint:`Assets above ${i.veryLargeAssetThreshold}MB get stronger optimization`})]})]}),T.jsxs("div",{className:k.field,children:[T.jsx(Na,{id:"minimumReduction",name:"minimumReduction",label:"Minimum Size Reduction (%)",value:i.minimumReduction.toString(),onChange:d("minimumReduction")}),T.jsx(xi,{hint:"Only replace if reduced by at least this percentage"})]})]}),T.jsxs(jr,{children:[T.jsx("h4",{children:"Basic Optimization"}),T.jsxs("div",{className:k.fieldRow,children:[T.jsxs("div",{className:k.field,children:[T.jsx(kt,{paramName:"fm",paramValue:i.preserveOriginalFormat?void 0:i.targetFormat,children:T.jsx(ja,{id:"preserveOriginalFormat",name:"preserveOriginalFormat",label:"Preserve Original Format",value:i.preserveOriginalFormat,onChange:v("preserveOriginalFormat")})}),T.jsx(Rn,{hint:"Keep original image format (JPG, PNG, etc.)",url:Ln.format})]}),T.jsxs("div",{className:k.field,children:[T.jsx(kt,{paramName:"auto",paramValue:"compress",children:T.jsx(ja,{id:"useAutoCompress",name:"useAutoCompress",label:"Auto Compress",value:i.useAutoCompress,onChange:v("useAutoCompress")})}),T.jsx(Rn,{hint:"Use Imgix's auto compression features",url:Ln.auto})]})]}),!i.preserveOriginalFormat&&T.jsxs("div",{className:k.field,children:[T.jsx(kt,{paramName:"fm",paramValue:i.targetFormat,children:T.jsx(_1,{id:"targetFormat",name:"targetFormat",label:"Target Format",value:g,onChange:m("targetFormat"),selectInputProps:{options:h}})}),T.jsx(xi,{hint:"Format to convert images to"})]}),T.jsxs("p",{className:k.infoText,children:[T.jsx("strong",{children:"Format Settings:"})," ",i.preserveOriginalFormat?"Original image formats will be preserved while optimizing quality and file size.":`Images will be converted to ${i.targetFormat.toUpperCase()} format for better compression.`,i.useAutoCompress&&T.jsxs("span",{children:[" ","Auto compression is enabled, letting Imgix automatically optimize each image."]})]}),T.jsx("div",{className:k.fieldRow,children:T.jsxs("div",{className:k.field,children:[T.jsx(kt,{paramName:"max-w",paramValue:i.resizeLargeImages?"value":void 0,children:T.jsx(ja,{id:"resizeLargeImages",name:"resizeLargeImages",label:"Resize Large Images",value:i.resizeLargeImages,onChange:v("resizeLargeImages")})}),T.jsx(Rn,{hint:"Reduce image dimensions to save space",url:Ln.resize})]})})]}),i.resizeLargeImages&&T.jsxs(jr,{children:[T.jsx("h4",{children:"Resize Dimensions"}),T.jsxs("div",{className:k.fieldRow,children:[T.jsxs("div",{className:k.field,children:[T.jsx(kt,{paramName:"max-w",paramValue:i.resizeDimensionLarge,children:T.jsx(Na,{id:"resizeDimensionLarge",name:"resizeDimensionLarge",label:"Large Image Max Width (px)",value:i.resizeDimensionLarge.toString(),onChange:d("resizeDimensionLarge")})}),T.jsx(xi,{hint:"Max dimension for large images"})]}),T.jsxs("div",{className:k.field,children:[T.jsx(kt,{paramName:"max-w",paramValue:i.resizeDimensionVeryLarge,children:T.jsx(Na,{id:"resizeDimensionVeryLarge",name:"resizeDimensionVeryLarge",label:"Very Large Image Max Width (px)",value:i.resizeDimensionVeryLarge.toString(),onChange:d("resizeDimensionVeryLarge")})}),T.jsx(xi,{hint:"Max dimension for very large images"})]})]})]}),T.jsxs(jr,{children:[T.jsx("h4",{children:"Compression Settings"}),!i.useLossless&&T.jsxs("div",{className:k.fieldRow,children:[T.jsxs("div",{className:k.field,children:[T.jsx(kt,{paramName:"q",paramValue:i.qualityLarge,children:T.jsx(Na,{id:"qualityLarge",name:"qualityLarge",label:"Large Image Quality",value:i.qualityLarge.toString(),onChange:d("qualityLarge")})}),T.jsx(Rn,{hint:"Quality for large images (0-100)",url:Ln.quality})]}),T.jsxs("div",{className:k.field,children:[T.jsx(kt,{paramName:"q",paramValue:i.qualityVeryLarge,children:T.jsx(Na,{id:"qualityVeryLarge",name:"qualityVeryLarge",label:"Very Large Image Quality",value:i.qualityVeryLarge.toString(),onChange:d("qualityVeryLarge")})}),T.jsx(Rn,{hint:"Quality for very large images (0-100)",url:Ln.quality})]})]}),i.useLossless&&T.jsxs("p",{className:k.infoText,style:{marginBottom:0},children:[T.jsx("strong",{children:"Lossless Mode:"})," Standard quality settings are disabled when using Lossless Mode."]})]}),T.jsxs(jr,{className:k.advancedOptionsGroup,children:[T.jsx("h4",{children:"Advanced Options"}),T.jsxs("div",{className:k.optionsGrid,children:[T.jsxs("div",{className:k.optionItem,children:[T.jsx(kt,{paramName:"lossless",paramValue:i.useLossless?1:void 0,children:T.jsx(ja,{id:"useLossless",name:"useLossless",label:"Use Lossless Compression",value:i.useLossless,onChange:v("useLossless")})}),T.jsx(Rn,{hint:"Use lossless compression when possible",url:Ln.lossless})]}),T.jsxs("div",{className:k.optionItem,children:[T.jsx(kt,{paramName:"dpr",paramValue:i.useDpr?2:void 0,children:T.jsx(ja,{id:"useDpr",name:"useDpr",label:"Use DPR Optimization",value:i.useDpr,onChange:v("useDpr")})}),T.jsx(Rn,{hint:"Optimize for high-resolution displays (Retina)",url:Ln.dpr})]}),T.jsxs("div",{className:k.optionItem,children:[T.jsx(kt,{paramName:"chromasub",paramValue:i.useChromaSubsampling?444:void 0,children:T.jsx(ja,{id:"useChromaSubsampling",name:"useChromaSubsampling",label:"Enhanced Chroma Sampling",value:i.useChromaSubsampling,onChange:v("useChromaSubsampling")})}),T.jsx(Rn,{hint:"Use higher quality chroma subsampling (444) for JPEGs",url:Ln.chroma})]}),T.jsxs("div",{className:k.optionItem,children:[T.jsx(kt,{paramName:"cs",paramValue:i.preserveColorProfile?"origin":void 0,children:T.jsx(ja,{id:"preserveColorProfile",name:"preserveColorProfile",label:"Preserve Color Profiles",value:i.preserveColorProfile,onChange:v("preserveColorProfile")})}),T.jsx(Rn,{hint:"Maintain accurate colors from original image",url:Ln.colorSpace})]})]})]}),T.jsx("div",{className:k.formActionContainer,children:T.jsxs("div",{className:k.buttonGroup,children:[T.jsx(da,{buttonType:"muted",buttonSize:"l",onClick:()=>n({...Yy}),children:"Restore Defaults"}),T.jsx(gC,{tooltip:"Calculate potential improvements with current settings without replacing any assets",children:T.jsx(da,{buttonType:"muted",buttonSize:"l",onClick:u,children:"Preview Optimization"})}),T.jsx(da,{buttonType:"primary",buttonSize:"l",onClick:l,fullWidth:!0,children:"Start Optimization"})]})})]})};function SC(i){return{id:i.id,is_image:i.is_image||!1,size:i.size||0,url:i.url||"",path:i.path||"",basename:i.basename||"",width:i.width||void 0,height:i.height||void 0,alt:i.default_field_metadata?.en?.alt||void 0,title:i.default_field_metadata?.en?.title||void 0,customData:i.default_field_metadata?.en?.custom_data||{},tags:i.tags||[]}}function Vv(i){return{id:i.id,path:i.path,url:i.url}}function EC(i,n,l){return{id:i.id,path:i.path,url:i.url,originalSize:n,optimizedSize:l}}const wC=i=>new Promise(n=>setTimeout(n,i));async function TC(i,n,l,u,s,f,d){try{l(`Processing asset: ${i.path} (${Ba(i.size)})`);const v=vC(i,n);if(!v)return l(`Skipping asset ${i.path}: No suitable optimization parameters found.`),{status:"skipped",asset:i};const m=`${i.url}${v}`;l(`Optimizing with parameters: ${v}`);const h=await fetch(m);if(!h.ok)throw new Error(`Failed to fetch optimized image: ${h.statusText}`);const g=await h.blob();l(`Optimized image size: ${Ba(g.size)}`);const y=i.size*(1-n.minimumReduction/100);if(g.size>y)return l(`Optimization not significant enough for ${i.path}. Skipping.`),{status:"skipped",asset:i};if(s)return u(i.path,i.size,g.size),{status:"optimized",asset:i,optimizedSize:g.size};if(!f)throw new Error("API token is required for asset replacement");l(`Replacing asset ${i.path}...`);const{default:b}=await LT(async()=>{const{default:S}=await import("./assetReplacer-I8NsIZnm.js");return{default:S}},[],import.meta.url);return await b(i.id,m,f,d||"master",i.basename),u(i.path,i.size,g.size),l(`Successfully replaced asset ${i.path}`),{status:"optimized",asset:i,optimizedSize:g.size}}catch(v){return l(`Error ${s?"optimizing":"replacing"} asset ${i.path}: ${v instanceof Error?v.message:String(v)}`),{status:"failed",asset:i,error:v instanceof Error?v.message:String(v)}}}const Hv=(i,n)=>{if(i.optimized<=0)return;const l=i.originalSizeTotal-i.optimizedSizeTotal,u=Math.round(l/i.originalSizeTotal*100);n(`Total size savings: ${Ba(l)} (${u}%)`)};async function Bv(i,n){const l=[];let u=0;for await(const s of i.uploads.listPagedIterator({filter:{fields:{type:{eq:"image"},size:{gte:n}}}}))u++,l.push(SC(s));return{assets:l,count:u}}async function OC({asset:i,settings:n,addLog:l,addSizeComparisonLog:u,isPreview:s,apiToken:f,environment:d,acc:v,shouldDelay:m}){try{m&&await wC(300);const h=await TC(i,n,l,u,s,f||void 0,d),g=Vv(i);h.status==="optimized"&&h.optimizedSize?(v.optimizedAssets.push(EC(i,i.size,h.optimizedSize)),v.optimizedSizeTotal+=h.optimizedSize,v.optimized++):h.status==="skipped"?(v.skippedAssets.push(g),v.skipped++):(v.failedAssets.push(g),v.failed++)}catch(h){l(`Unexpected error processing ${i.path}: ${h instanceof Error?h.message:String(h)}`),v.failedAssets.push(Vv(i)),v.failed++}}const CC=({ctx:i})=>{const[n,l]=F.useState(!1),[u,s]=F.useState(!1),[f,d]=F.useState(!1),[v,m]=F.useState(0),[h,g]=F.useState(0),[y,b]=F.useState(null),[S,E]=F.useState([]),[O,R]=F.useState({...Yy}),[j,X]=F.useState(void 0),[Y,Q]=F.useState(null),M=10;F.useEffect(()=>{(async()=>{try{const ne=i.plugin.attributes.parameters;if(ne&&typeof ne.optimization_settings=="string")try{const le=JSON.parse(ne.optimization_settings);R(le),console.log("Loaded settings from plugin parameters:",le)}catch(le){console.error("Error parsing saved settings:",le)}else console.log("No saved settings found, using defaults")}catch(ne){console.error("Error accessing plugin parameters:",ne)}})()},[i]),F.useEffect(()=>{const W=ne=>{if(n){const le="Optimization is in progress. Leaving the page now may cause you to lose assets! Are you sure you want to leave?";return ne.preventDefault(),ne.returnValue=le,le}};return window.addEventListener("beforeunload",W),()=>{window.removeEventListener("beforeunload",W)}},[n]);const G=W=>{E(ne=>[{text:`[${new Date().toISOString()}] ${W}`},...ne])},U=(W,ne,le)=>{const ge=ne-le,D=Math.round(ge/ne*100);E(Z=>[{text:`[${new Date().toISOString()}] Successfully optimized asset: ${W} `,originalSize:ne,optimizedSize:le,savingsPercentage:D},...Z])},J=async(W,ne)=>{const le={optimized:0,skipped:0,failed:0,originalSizeTotal:0,optimizedSizeTotal:0,optimizedAssets:[],skippedAssets:[],failedAssets:[]};let ge=0;g(W.length),m(0);const D=[...W];let Z=0;const ee=ne?void 0:i.currentUserAccessToken,Ee=()=>{ge++,m(ge)},we=async()=>{const C=[];for(;D.length>0&&Z<M;){const V=D.shift();if(!V)continue;Z++,le.originalSizeTotal+=V.size,X(V);const K=OC({asset:V,settings:O,addLog:G,addSizeComparisonLog:U,isPreview:ne,apiToken:ee,environment:i.environment,acc:le,shouldDelay:Z>1}).then(()=>{Ee(),Z--});C.push(K)}if(await Promise.all(C),D.length>0)return we()};return await we(),{optimized:le.optimized,skipped:le.skipped,failed:le.failed,totalAssets:W.length,optimizedAssets:le.optimizedAssets,skippedAssets:le.skippedAssets,failedAssets:le.failedAssets,originalSizeTotal:le.originalSizeTotal,optimizedSizeTotal:le.optimizedSizeTotal}},de=async()=>{try{be(),s(!0),d(!0),G("Starting asset optimization preview...");const W=qv({apiToken:i.currentUserAccessToken??"",environment:i.environment});G("Fetching assets from DatoCMS for preview...");const ne=O.largeAssetThreshold*1024*1024,{assets:le,count:ge}=await Bv(W,ne);G(`Found ${ge} assets larger than ${O.largeAssetThreshold}MB.`),G(`Found ${le.length} optimizable images.`);const D=await J(le,!0);b({optimized:D.optimized,skipped:D.skipped,failed:D.failed,totalAssets:ge,optimizedAssets:D.optimizedAssets,skippedAssets:D.skippedAssets,failedAssets:D.failedAssets}),G(`Optimization preview complete. Optimized: ${D.optimized}, Skipped: ${D.skipped}, Failed: ${D.failed}`),Hv(D,G),G("Asset optimization preview completed!"),i.notice("Asset optimization preview completed!")}catch(W){G(`Error during optimization preview: ${W instanceof Error?W.message:String(W)}`),i.alert(`Error during optimization preview: ${W instanceof Error?W.message:String(W)}`),s(!1)}finally{d(!1)}},ze=async()=>{try{if(await i.openConfirm({title:"Confirm Asset Optimization",content:"WARNING: This is a destructive action that will permanently replace all assets that fall into the optimization thresholds. This action is non-reversible and original assets cannot be recovered once replaced. Are you sure you want to proceed?",choices:[{label:"Proceed to Final Confirmation",value:"confirm",intent:"positive"}],cancel:{label:"Cancel",value:!1}})!=="confirm"||await i.openConfirm({title:"Final Confirmation Required",content:`ARE YOU ABSOLUTELY SURE? This will immediately replace your original assets with optimized versions. Your original assets will be PERMANENTLY DELETED and CANNOT be recovered. This may affect the visual quality of your images if not configured correctly.
12
+ ${this.preCallStack}`)}get errors(){return qw(this.response.body)?this.response.body.data:[]}findError(n,l){const u=Array.isArray(n)?n:[n];return this.errors.find(s=>u.includes(s.attributes.code)&&(!l||(typeof l=="function"?l(s.attributes.details):Object.entries(l).every(([f,d])=>s.attributes.details[f]===d))))}}class Pr extends Error{constructor(){super("Promise canceled!"),Object.setPrototypeOf(this,new.target.prototype)}}function Fr(i,n){let l=null;const u=new Promise((s,f)=>{l=()=>{try{n&&n(),f(new Pr)}catch(v){f(v)}},(typeof i=="function"?i():i).then(s,f)});return l&&(u.cancel=l),u}function qu(i){return new Promise(n=>{setTimeout(n,i)})}var Vw=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})};function Hw(i){return Vw(this,void 0,void 0,function*(){let n,l=0;do try{l+=1,yield qu(l*1e3),n=yield i()}catch(u){if(!(u instanceof Va)||u.response.status!==404)throw u}while(!n);return n})}var Vr={},fa={},qc={},wv;function Pg(){return wv||(wv=1,(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.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"})(i.TaskCollisionStrategy||(i.TaskCollisionStrategy={}))})(qc)),qc}var Au={},Ov;function Fg(){if(Ov)return Au;Ov=1,Object.defineProperty(Au,"__esModule",{value:!0});let i=class{constructor(l,u){this._code=l,this._message=u}get code(){return this._code}get message(){return this._message}};return Au.default=i,Au}var qa={},Cv;function kg(){if(Cv)return qa;Cv=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.mutexEquality=qa.mutexBitwiseAnd=void 0;function i(l,u){return(l&u)!==0}qa.mutexBitwiseAnd=i;function n(l,u){return l===u}return qa.mutexEquality=n,qa}var zu={},xv;function Bw(){if(xv)return zu;xv=1,Object.defineProperty(zu,"__esModule",{value:!0});let i=class{constructor(l,u){this._meta=void 0,this._task=l,this._scheduler=u}withDescriptor(l){return this._descriptor=l,this}withMutex(l){return this._mutex=l,this}withMeta(l){return this._meta=l,this}runBeforeExecuting(l){return this._onPreExecute=l,this}handleCollisions(l){return this._onTaskCollision=l,this}execute(l){return this._scheduler.enqueue({priority:l,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}};return zu.default=i,zu}var Av;function Gw(){if(Av)return fa;Av=1;var i=fa&&fa.__awaiter||function(m,g,y,b){function S(E){return E instanceof y?E:new y(function(O){O(E)})}return new(y||(y=Promise))(function(E,O){function R(Y){try{X(b.next(Y))}catch(Q){O(Q)}}function j(Y){try{X(b.throw(Y))}catch(Q){O(Q)}}function X(Y){Y.done?E(Y.value):S(Y.value).then(R,j)}X((b=b.apply(m,g||[])).next())})},n=fa&&fa.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(fa,"__esModule",{value:!0});const l=Pg(),u=n(Fg()),s=kg(),f=n(Bw());var d;(function(m){m[m.PENDING=0]="PENDING",m[m.EXECUTING=1]="EXECUTING",m[m.TERMINATED=2]="TERMINATED"})(d||(d={}));function v(m,g){for(let y of m.listeners)y.reject(g)}let h=class{constructor(g,y={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=g,this._samePriorityMutex=!!y.samePriorityMutex,this._mutexStrategy=y.mutexStrategy||s.mutexEquality,y.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(g){return new Promise((y,b)=>{typeof g=="function"&&(g={priority:0,execute:g});const S=this._checkMutexes(g,y,b);S.task?this._addTask(S.task):S.canceled&&b(this.createCanceledError())})}prepare(g){return new f.default(g,this)}_addTask(g){this._queue.push(g),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce((g,y)=>y.state===d.EXECUTING?g+1:g,0)}createCanceledError(){return new u.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find(g=>g.state===d.PENDING)}_isIdle(){return this._queue.length===0||!this._queue.find(g=>g.state!==d.TERMINATED)}_removeTaskAt(g){this._queue.splice(g,1)}_executeTask(g){return i(this,void 0,void 0,function*(){try{return g.task.onPreExecute&&g.task.onPreExecute(),yield g.task.execute()}catch(y){throw y}finally{g.state=d.TERMINATED;let y=this._queue.indexOf(g);this._removeTaskAt(y),this._executeNextTasks()}})}_executeNextTasks(){let g=this.executingTasks;if(g>=this._maxConcurrentTasks)return;let y=this._maxConcurrentTasks-g;for(let b=0;b<y;b++){const S=this._findFirstPendingTask();if(!S){this._isIdle()&&this._switchToIdle();return}S.state=d.EXECUTING,this._executeTask(S).then(E=>{for(const{resolve:O}of S.listeners)try{O(E)}catch(R){this._errorLog("An error occurred while resolving listener",R)}}).catch(E=>{for(const{reject:O}of S.listeners)try{O(E)}catch(R){this._errorLog("An error occurred while rejecting listener",R)}})}}_switchToIdle(){this._isExecuting=!1;const g=this._idleListeners;this._idleListeners=[];for(const{resolve:y}of g)try{y()}catch{}}waitForIdle(){return this._isExecuting?new Promise((g,y)=>{this._idleListeners.push({resolve:g,reject:y})}):Promise.resolve()}_applyPriorities(){this._queue.sort((g,y)=>y.task.priority-g.task.priority)}_checkMutexes(g,y,b){for(let S=0;S<this._queue.length;S++){let E=this._queue[S];if(E.state===d.TERMINATED||this._samePriorityMutex&&E.task.priority!=g.priority||!E.task.mutex||!g.mutex||!this._mutexStrategy(E.task.mutex,g.mutex))continue;let O,R;if(E.task.onTaskCollision)if(O=E.task.onTaskCollision(g),O===l.TaskCollisionStrategy.KEEP_OTHER&&E.state!==d.EXECUTING){this._removeTaskAt(S--),v(E,this.createCanceledError());continue}else{if(O===l.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(O===l.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(S--),{canceled:!1,task:{task:g,state:d.PENDING,listeners:[{resolve:y,reject:b},...E.listeners]}};if(O===l.TaskCollisionStrategy.RESOLVE_THIS)return E.listeners=[...E.listeners,{resolve:y,reject:b}],{canceled:!1}}if(g.onTaskCollision){if(R=g.onTaskCollision(E.task),R===l.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(R===l.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(S--),v(E,this.createCanceledError());continue}else{if(R===l.TaskCollisionStrategy.RESOLVE_OTHER)return E.listeners=[...E.listeners,{resolve:y,reject:b}],{canceled:!1};if(R===l.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(S--),{canceled:!1,task:{task:g,state:d.PENDING,listeners:[{resolve:y,reject:b},...E.listeners]}}}}if(!(O===l.TaskCollisionStrategy.KEEP_BOTH&&R===l.TaskCollisionStrategy.KEEP_BOTH))return{canceled:!0}}return{canceled:!1,task:{task:g,state:d.PENDING,listeners:[{resolve:y,reject:b}]}}}};return fa.default=h,fa}var zv;function Iw(){return zv||(zv=1,(function(i){var n=Vr&&Vr.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(i,"__esModule",{value:!0}),i.mutexEquality=i.mutexBitwiseAnd=i.SchedulerError=i.TaskCollisionStrategy=i.Scheduler=void 0;const l=n(Gw());i.Scheduler=l.default;const u=Pg();Object.defineProperty(i,"TaskCollisionStrategy",{enumerable:!0,get:function(){return u.TaskCollisionStrategy}});const s=n(Fg());i.SchedulerError=s.default;const f=kg();Object.defineProperty(i,"mutexBitwiseAnd",{enumerable:!0,get:function(){return f.mutexBitwiseAnd}}),Object.defineProperty(i,"mutexEquality",{enumerable:!0,get:function(){return f.mutexEquality}})})(Vr)),Vr}var Yw=Iw(),Ua=function(i){return this instanceof Ua?(this.v=i,this):new Ua(i)},$w=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Ua?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};function Vn(i,n,l,u){return $w(this,arguments,function*(){const f=l?.perPage||i.defaultLimit;if(f>i.maxLimit)throw new Error(`perPage option cannot exceed maximum value of ${i.maxLimit}`);const d=l?.concurrency||1;if(d>10)throw new Error("concurrency option cannot exceed maximum value of 10");const v=yield Ua(n({limit:f,offset:0}));for(const y of v.data)yield yield Ua(y);const h=v.meta.total_count,m=new Yw.Scheduler(d),g=[];for(let y=f;y<h;y+=f)g.push(m.enqueue(()=>n({limit:f,offset:y})));for(;g.length>0;){const y=yield Ua(g.shift());for(const b of y.data)yield yield Ua(u?Gr(b):b)}})}function Hn(i){i&&"page"in i&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}const Xg="__ARRAY_INDEX__";function Pw(i){return i.reduce((n,l,u)=>u===0?l:l===Xg?`${n}[]`:`${n}[${l}]`,"")}function Fw(i){if(typeof i=="number"||typeof i=="string")return i.toString();if(i===!0)return"true";if(i===!1)return"false";throw`Don't know how to serialize param value ${JSON.stringify(i)}`}function uf(i,n=[]){const l=[];if(typeof i=="number"||typeof i=="string"||typeof i=="boolean")l.push([Pw(n),Fw(i)]);else if(typeof i=="object"){if(Array.isArray(i))for(const u of i)for(const s of uf(u,[...n,Xg]))l.push(s);else if(i)for(const[u,s]of Object.entries(i))for(const f of uf(s,[...n,u]))l.push(f)}return l}var kw=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})};const Xw=typeof window<"u"&&typeof window.document<"u",Qw=5;var Qt;(function(i){i[i.NONE=0]="NONE",i[i.BASIC=1]="BASIC",i[i.BODY=2]="BODY",i[i.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"})(Qt||(Qt={}));function Zw(i){const n={};return i.forEach((l,u)=>{n[u]=l}),n}function Mv(i,n,l,u,s,f,d){return{request:{url:n,method:i,headers:l,body:u},response:{status:s.status,statusText:s.statusText,headers:Zw(s.headers),body:f},preCallStack:d}}function Kw(i,n,l,u,s){return{request:{url:n,method:i,headers:l,body:u},preCallStack:s}}function Jw(i,n,l,u,s,f,d){return{request:{url:n,method:i,headers:l,body:u},response:{status:s,statusText:"N/A",headers:{},body:f},preCallStack:d}}function Ww(i){return typeof i=="object"&&!!i&&"code"in i}function eO(i){return Object.fromEntries(Object.entries(i).map(([n,l])=>[n.toLowerCase(),l]))}let Dv=1;function tO(i){const n=i||(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 Uu(i){var n;return kw(this,void 0,void 0,function*(){const l=Dv;Dv+=1;const u=tO(i.fetchFn),s=i.preCallStack,f=i.userAgent||"@datocms/rest-client-utils",d=i.retryCount||1,v=i.logLevel||Qt.NONE,h="autoRetry"in i?i.autoRetry:!0,m=i.logFn||(()=>!0),g=Object.assign({"content-type":"application/json",accept:"application/json",authorization:`Bearer ${i.apiToken}`,"user-agent":f},i.extraHeaders?eO(i.extraHeaders):{});Xw&&delete g["user-agent"];const y=i.baseUrl.replace(/\/$/,""),b=i.body?JSON.stringify(i.body,null,2):void 0,S=i.queryParams&&Object.keys(i.queryParams).length>0?`?${new URLSearchParams(uf(i.queryParams)).toString()}`:"",E=`${y}${i.url}${S}`;if(v>=Qt.BASIC){if(m(`[${l}] ${i.method} ${E}`),v>=Qt.BODY_AND_HEADERS)for(const[O,R]of Object.entries(g||{}))m(`[${l}] ${O}: ${R}`);v>=Qt.BODY&&b&&m(`[${l}] ${b}`)}try{const O=Fr(u(E,{method:i.method,headers:g,body:b})),R=setTimeout(()=>{O.cancel()},i.requestTimeout||3e4),j=yield O;clearTimeout(R);const X=j.headers.get("Content-Type"),Y=X&&!X.includes("application/json");if(j.status===429||Y){if(!h||Y&&i.method!=="GET")throw new Va(Mv(i.method,E,g,i.body,j,void 0,s));const U=j.headers.has("X-RateLimit-Reset")?Number.parseInt(j.headers.get("X-RateLimit-Reset"),10):d;return v>=Qt.BASIC&&(j.status===429?m(`[${l}] Rate limit exceeded, wait ${U} seconds then retry...`):m(`[${l}] Invalid response content type "${X}" (status ${j.status}). Wait ${U} seconds then retry...`)),yield qu(U*1e3),Uu(Object.assign(Object.assign({},i),{retryCount:d+1}))}if(v>=Qt.BASIC&&(m(`[${l}] Status: ${j.status} (${j.statusText})`),v>=Qt.BODY_AND_HEADERS))for(const U of["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"]){const J=j.headers.get(U);J&&m(`[${l}] ${U}: ${J}`)}let Q=j.status===204?void 0:yield j.json();if(v>=Qt.BODY&&Q&&m(`[${l}] ${JSON.stringify(Q,null,2)}`),j.status===202){const U=yield i.fetchJobResult(Q.data.id);if(U.status<200||U.status>=300)throw new Va(Jw(i.method,E,g,i.body,U.status,U.payload,s));Q=U.payload}if(j.status>=200&&j.status<300)return Q;const M=new Va(Mv(i.method,E,g,i.body,j,Q,s)),G=(n=M.errors.find(U=>U.attributes.transient))===null||n===void 0?void 0:n.attributes.code;if(h&&G)return v>=Qt.BASIC&&m(`[${l}] ${G}, wait ${d} seconds then retry...`),yield qu(d*1e3),Uu(Object.assign(Object.assign({},i),{retryCount:d+1}));throw M}catch(O){if(O instanceof Pr||Ww(O)&&O.code.includes("ETIMEDOUT")){if(h&&d<Qw)return v>=Qt.BASIC&&m(`[${l}] Timeout error, wait ${d} seconds then retry...`),yield qu(d*1e3),Uu(Object.assign(Object.assign({},i),{retryCount:d+1}));throw new Uw(Kw(i.method,E,g,i.body,s))}throw O}})}var Qg=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l};function Vu(i){return typeof i=="object"&&!!i&&"id"in i&&"type"in i}function Uc(i){return Array.isArray(i)&&i.every(Vu)}function ae(i,n){if(typeof i!="object"||!i)throw new Error("Invalid body!");if(Array.isArray(i))return{data:i.map(m=>{var g;return(g=ae(m,n))===null||g===void 0?void 0:g.data})};const l=i,{id:u,type:s,meta:f}=l,d=Qg(l,["id","type","meta"]),v={},h={};if(n.attributes==="*")for(const[m,g]of Object.entries(d))if(n.relationships.includes(m))if(Vu(g)){const{id:y,type:b}=g;h[m]={data:{id:y,type:b}}}else Uc(g)?h[m]={data:g.map(({id:y,type:b})=>({id:y,type:b}))}:h[m]={data:null};else v[m]=g;else if(n.relationships==="*")for(const[m,g]of Object.entries(d))if(n.attributes.includes(m))v[m]=g;else if(Vu(g)){const{id:y,type:b}=g;h[m]={data:{id:y,type:b}}}else Uc(g)?h[m]={data:g.map(({id:y,type:b})=>({id:y,type:b}))}:h[m]={data:null};else{for(const[m,g]of Object.entries(d))if(n.attributes.includes(m))v[m]=g;else if(n.relationships.includes(m))if(Vu(g)){const{id:y,type:b}=g;h[m]={data:{id:y,type:b}}}else Uc(g)?h[m]={data:g.map(({id:y,type:b})=>({id:y,type:b}))}:h[m]={data:null};n.attributes.includes("type")&&(v.type=s)}return{data:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u||n.id?{id:u||n.id}:{}),{type:n.type}),Object.keys(v).length>0?{attributes:v}:{}),Object.keys(h).length>0?{relationships:h}:{}),f?{meta:f}:{})}}function sf(i){if(Array.isArray(i))return i.map(sf);if(i&&typeof i=="object"){const n={};for(const[l,u]of Object.entries(i))l!=="__itemTypeId"&&(n[l]=sf(u));return n}return i}function Rv(i){if(!i||typeof i!="object")return i;const{__itemTypeId:n}=i,l=Qg(i,["__itemTypeId"]),u={};for(const[s,f]of Object.entries(l))u[s]=sf(f);return u}function Mu(i){return!i||!("data"in i)?i:Array.isArray(i.data)?Object.assign(Object.assign({},i),{data:i.data.map(Rv)}):Object.assign(Object.assign({},i),{data:Rv(i.data)})}function B(i){return typeof i=="string"?i:i.id}class ve{constructor(n){this.client=n}}class Zg extends ve{create(n){return this.rawCreate(ae(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(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/roles",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(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,l){return this.client.request({method:"PUT",url:`/roles/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/roles"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/roles/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/roles/${n}`})}duplicate(n){return this.rawDuplicate(B(n)).then(l=>A(l))}rawDuplicate(n){return this.client.request({method:"POST",url:`/roles/${n}/duplicate`})}}Zg.TYPE="role";var nO=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})};function Lv(i,n){return i==null&&n==null?!0:i===n}function aO(i,n){for(const l in i)if(!Lv(i[l],n[l]))return!1;for(const l in n)if(!Lv(i[l],n[l]))return!1;return!0}function Du(i,n,l,u){if(!n)return i;const{add:s,remove:f}=n;return[...f?f.reduce((d,v)=>{const h=Object.assign(Object.assign({},v),{environment:l}),m=d.find(g=>aO(g,h));if(!m)throw new Error(`Cannot find rule ${JSON.stringify(h)} to remove in ${u}!`);return d.filter(g=>g!==m)},i):i,...s?s.map(d=>Object.assign({environment:l},d)):[]]}class iO extends Zg{updateCurrentEnvironmentPermissions(n,l){return nO(this,void 0,void 0,function*(){const u=this.client.config.environment||(yield this.client.environments.list()).find(h=>h.meta.primary).id,s=yield this.find(n),f=!!(l.positive_item_type_permissions||l.negative_item_type_permissions),d=!!(l.positive_upload_permissions||l.negative_upload_permissions),v=Object.assign(Object.assign({},f?{positive_item_type_permissions:Du(s.positive_item_type_permissions,l.positive_item_type_permissions,u,"positive_item_type_permissions"),negative_item_type_permissions:Du(s.negative_item_type_permissions,l.negative_item_type_permissions,u,"negative_item_type_permissions")}:{}),d?{positive_upload_permissions:Du(s.positive_upload_permissions,l.positive_upload_permissions,u,"positive_upload_permissions"),negative_upload_permissions:Du(s.negative_upload_permissions,l.negative_upload_permissions,u,"negative_upload_permissions")}:{});return this.update(n,v)})}}class Kg extends ve{update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"user",attributes:["is_active"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/users/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/users"})}find(n,l){return this.rawFind(B(n),l).then(u=>A(u))}rawFind(n,l){return this.client.request({method:"GET",url:`/users/${n}`,queryParams:l})}findMe(n){return this.rawFindMe(n).then(l=>A(l))}rawFindMe(n){return this.client.request({method:"GET",url:"/users/me",queryParams:n})}destroy(n,l){return this.rawDestroy(B(n),l).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/users/${n}`,queryParams:l})}}Kg.TYPE="user";class Jg extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/sso-users"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}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,l){return this.rawDestroy(B(n),l).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/sso-users/${n}`,queryParams:l})}}Jg.TYPE="sso_user";class Wg extends ve{query(n){return this.rawQuery(ae(n,{type:"audit_log_query",attributes:["filter","next_token","detailed_log"],relationships:[]})).then(l=>A(l))}rawQuery(n){return this.client.request({method:"POST",url:"/audit-log-events/query",body:n})}}Wg.TYPE="audit_log_event";class ey extends ve{create(n){return this.rawCreate(ae(n,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/menu-items",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(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,l){return this.client.request({method:"PUT",url:`/menu-items/${n}`,body:l})}list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/menu-items",queryParams:n})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/menu-items/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/menu-items/${n}`})}reorder(n){return this.rawReorder(ae(n,{type:"menu_item",attributes:["position"],relationships:["parent"]})).then(l=>A(l))}rawReorder(n){return this.client.request({method:"POST",url:"/menu-items/reorder",body:n})}}ey.TYPE="menu_item";class ty extends ve{create(n){return this.rawCreate(ae(n,{type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/schema-menu-items",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent","children"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/schema-menu-items/${n}`,body:l})}list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/schema-menu-items",queryParams:n})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/schema-menu-items/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/schema-menu-items/${n}`})}reorder(n){return this.rawReorder(ae(n,{type:"schema_menu_item",attributes:["position"],relationships:["parent"]})).then(l=>A(l))}rawReorder(n){return this.client.request({method:"POST",url:"/schema-menu-items/reorder",body:n})}}ty.TYPE="schema_menu_item";class ny extends ve{create(n){return this.rawCreate(ae(n,{type:"upload_collection",attributes:["label","position"],relationships:["parent"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-collections",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"upload_collection",attributes:["label","position"],relationships:["parent","children"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/upload-collections/${n}`,body:l})}list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/upload-collections",queryParams:n})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/upload-collections/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/upload-collections/${n}`})}reorder(n){return this.rawReorder(ae(n,{type:"upload_collection",attributes:["position"],relationships:["parent"]})).then(l=>A(l))}rawReorder(n){return this.client.request({method:"POST",url:"/upload-collections/reorder",body:n})}}ny.TYPE="upload_collection";class ay extends ve{create(n,l){return this.rawCreate(ae(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"]}),l).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:"/item-types",body:n,queryParams:l})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(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,l){return this.client.request({method:"PUT",url:`/item-types/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/item-types"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/item-types/${n}`})}duplicate(n){return this.rawDuplicate(B(n)).then(l=>A(l))}rawDuplicate(n){return this.client.request({method:"POST",url:`/item-types/${n}/duplicate`})}destroy(n,l){return this.rawDestroy(B(n),l).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/item-types/${n}`,queryParams:l})}referencing(n){return this.rawReferencing(B(n)).then(l=>A(l))}rawReferencing(n){return this.client.request({method:"GET",url:`/item-types/${n}/referencing`})}rawReorderFieldsAndFieldsets(n,l){return this.client.request({method:"POST",url:`/item-types/${n}/reorder-fields-and-fieldsets`,body:l})}}ay.TYPE="item_type";class iy extends ve{create(n,l){return this.rawCreate(B(n),ae(l,{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,l){return this.client.request({method:"POST",url:`/item-types/${n}/fields`,body:l})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(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,l){return this.client.request({method:"PUT",url:`/fields/${n}`,body:l})}list(n){return this.rawList(B(n)).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields`})}referencing(n){return this.rawReferencing(B(n)).then(l=>A(l))}rawReferencing(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields/referencing`})}related(n){return this.rawRelated(B(n)).then(l=>A(l))}rawRelated(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields/related`})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/fields/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/fields/${n}`})}duplicate(n){return this.rawDuplicate(B(n)).then(l=>A(l))}rawDuplicate(n){return this.client.request({method:"POST",url:`/fields/${n}/duplicate`})}}iy.TYPE="field";class ry extends ve{create(n,l){return this.rawCreate(B(n),ae(l,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/item-types/${n}/fieldsets`,body:l})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/fieldsets/${n}`,body:l})}list(n){return this.rawList(B(n)).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:`/item-types/${n}/fieldsets`})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/fieldsets/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/fieldsets/${n}`})}}ry.TYPE="fieldset";class ly extends ve{create(n){return this.rawCreate(ae(n,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/sessions",body:n})}}ly.TYPE="session";class uy extends ve{create(n){return this.rawCreate(ae(n,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/access_tokens",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/access_tokens/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/access_tokens"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/access_tokens/${n}`})}regenerateToken(n){return this.rawRegenerateToken(B(n)).then(l=>A(l))}rawRegenerateToken(n){return this.client.request({method:"POST",url:`/access_tokens/${n}/regenerate_token`})}destroy(n,l){return this.rawDestroy(B(n),l).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/access_tokens/${n}`,queryParams:l})}}uy.TYPE="access_token";class sy extends ve{create(n){return this.rawCreate(ae(n,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/plugins",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/plugins/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/plugins"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/plugins/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/plugins/${n}`})}fields(n){return this.rawFields(B(n)).then(l=>A(l))}rawFields(n){return this.client.request({method:"GET",url:`/plugins/${n}/fields`})}}sy.TYPE="plugin";class oy extends ve{find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/job-results/${n}`})}}oy.TYPE="job_result";class cy extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/subscription-limits"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/subscription-limits/${n}`})}}cy.TYPE="subscription_limit";class fy extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/subscription-features"})}}fy.TYPE="subscription_feature";var rO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},zi=function(i){return this instanceof zi?(this.v=i,this):new zi(i)},lO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof zi?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class dy extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/build-events",queryParams:n})}listPagedIterator(n,l){return lO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=rO(this.rawListPagedIterator(n,l)),g;g=yield zi(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield zi(tn(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield zi(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/build-events/${n}`})}}dy.TYPE="build_event";var uO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},Mi=function(i){return this instanceof Mi?(this.v=i,this):new Mi(i)},sO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Mi?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class hy extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/search-index-events",queryParams:n})}listPagedIterator(n,l){return sO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=uO(this.rawListPagedIterator(n,l)),g;g=yield Mi(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield Mi(tn(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield Mi(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/search-index-events/${n}`})}}hy.TYPE="search_index_event";var oO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},Di=function(i){return this instanceof Di?(this.v=i,this):new Di(i)},cO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Di?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class my extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/items",queryParams:n}).then(Zt)}listPagedIterator(n,l){return cO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=oO(this.rawListPagedIterator(n,l)),g;g=yield Di(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield Di(tn(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield Di(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l,!0)}validateExisting(n,l){return this.rawValidateExisting(B(n),ae(l,{id:B(n),type:"item",attributes:"*",relationships:["item_type","creator"]}))}rawValidateExisting(n,l){return this.client.request({method:"POST",url:`/items/${n}/validate`,body:Mu(l)})}validateNew(n){return this.rawValidateNew(ae(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(ae(n,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/items",body:Mu(n)}).then(Zt)}duplicate(n){return this.rawDuplicate(B(n)).then(l=>A(l))}rawDuplicate(n){return this.client.request({method:"POST",url:`/items/${n}/duplicate`}).then(Zt)}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"item",attributes:"*",relationships:["item_type","creator"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/items/${n}`,body:Mu(l)}).then(Zt)}references(n,l){return this.rawReferences(B(n),l).then(u=>A(u))}rawReferences(n,l){return this.client.request({method:"GET",url:`/items/${n}/references`,queryParams:l}).then(Zt)}find(n,l){return this.rawFind(B(n),l).then(u=>A(u))}rawFind(n,l){return this.client.request({method:"GET",url:`/items/${n}`,queryParams:l}).then(Zt)}currentVsPublishedState(n){return this.rawCurrentVsPublishedState(B(n)).then(l=>A(l))}rawCurrentVsPublishedState(n){return this.client.request({method:"GET",url:`/items/${n}/current-vs-published-state`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}`}).then(Zt)}publish(n,l,u){return this.rawPublish(B(n),l?ae(l,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,u).then(s=>A(s))}rawPublish(n,l,u){return this.client.request({method:"PUT",url:`/items/${n}/publish`,body:l,queryParams:u}).then(Zt)}unpublish(n,l,u){return this.rawUnpublish(B(n),l?ae(l,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,u).then(s=>A(s))}rawUnpublish(n,l,u){return this.client.request({method:"PUT",url:`/items/${n}/unpublish`,body:l,queryParams:u}).then(Zt)}bulkPublish(n){return this.rawBulkPublish(ae(n,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then(l=>A(l))}rawBulkPublish(n){return this.client.request({method:"POST",url:"/items/bulk/publish",body:n})}bulkUnpublish(n){return this.rawBulkUnpublish(ae(n,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then(l=>A(l))}rawBulkUnpublish(n){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:n})}bulkDestroy(n){return this.rawBulkDestroy(ae(n,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then(l=>A(l))}rawBulkDestroy(n){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:n})}bulkMoveToStage(n){return this.rawBulkMoveToStage(ae(n,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then(l=>A(l))}rawBulkMoveToStage(n){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:n})}}my.TYPE="item";var fO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},Ri=function(i){return this instanceof Ri?(this.v=i,this):new Ri(i)},dO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Ri?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class py extends ve{restore(n){return this.rawRestore(B(n)).then(l=>A(l))}rawRestore(n){return this.client.request({method:"POST",url:`/versions/${n}/restore`})}list(n,l){return this.rawList(B(n),l).then(u=>A(u))}rawList(n,l){return this.client.request({method:"GET",url:`/items/${n}/versions`,queryParams:l})}listPagedIterator(n,l,u){return dO(this,arguments,function*(){var f,d,v,h;try{for(var m=!0,g=fO(this.rawListPagedIterator(B(n),l,u)),y;y=yield Ri(g.next()),f=y.done,!f;){h=y.value,m=!1;try{yield yield Ri(tn(h))}finally{m=!0}}}catch(b){d={error:b}}finally{try{!m&&!f&&(v=g.return)&&(yield Ri(v.call(g)))}finally{if(d)throw d.error}}})}rawListPagedIterator(n,l,u){return Hn(l),Vn({defaultLimit:15,maxLimit:50},s=>this.rawList(n,Object.assign(Object.assign({},l),{page:s})),u)}find(n,l){return this.rawFind(B(n),l).then(u=>A(u))}rawFind(n,l){return this.client.request({method:"GET",url:`/versions/${n}`,queryParams:l})}}py.TYPE="item_version";var hO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},Li=function(i){return this instanceof Li?(this.v=i,this):new Li(i)},mO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Li?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};let Ef=class extends ve{create(n){return this.rawCreate(ae(n,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:["upload_collection"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/uploads",body:n})}list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/uploads",queryParams:n})}listPagedIterator(n,l){return mO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=hO(this.rawListPagedIterator(n,l)),g;g=yield Li(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield Li(tn(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield Li(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/uploads/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/uploads/${n}`})}update(n,l,u){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator","upload_collection"]}),u).then(s=>A(s))}rawUpdate(n,l,u){return this.client.request({method:"PUT",url:`/uploads/${n}`,body:l,queryParams:u})}references(n,l){return this.rawReferences(B(n),l).then(u=>A(u))}rawReferences(n,l){return this.client.request({method:"GET",url:`/uploads/${n}/references`,queryParams:l}).then(Zt)}bulkTag(n){return this.rawBulkTag(ae(n,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then(l=>A(l))}rawBulkTag(n){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:n})}bulkSetUploadCollection(n){return this.rawBulkSetUploadCollection(ae(n,{type:"upload_bulk_set_upload_collection_operation",attributes:[],relationships:["upload_collection","uploads"]})).then(l=>A(l))}rawBulkSetUploadCollection(n){return this.client.request({method:"POST",url:"/uploads/bulk/set-upload-collection",body:n})}bulkDestroy(n){return this.rawBulkDestroy(ae(n,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then(l=>A(l))}rawBulkDestroy(n){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:n})}};Ef.TYPE="upload";class vy extends ve{create(n){return this.rawCreate(ae(n,{type:"upload_request",attributes:["filename"],relationships:["upload_collection"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-requests",body:n})}}vy.TYPE="upload_request";class gy extends ve{create(n,l){return this.rawCreate(B(n),ae(l,{type:"upload_track",attributes:["url_or_upload_request_id","type","name","language_code","closed_captions"],relationships:[]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/uploads/${n}/tracks`,body:l})}list(n){return this.rawList(B(n)).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:`/uploads/${n}/tracks`})}destroy(n,l){return this.rawDestroy(B(n),B(l)).then(u=>A(u))}rawDestroy(n,l){return this.client.request({method:"DELETE",url:`/uploads/${n}/tracks/${l}`})}generateSubtitles(n,l){return this.rawGenerateSubtitles(B(n),ae(l,{type:"upload_track",attributes:["name","language_code"],relationships:[]})).then(u=>A(u))}rawGenerateSubtitles(n,l){return this.client.request({method:"POST",url:`/uploads/${n}/tracks/generate-subtitles`,body:l})}}gy.TYPE="upload_track";class yy extends ve{create(n,l){return this.rawCreate(B(n),ae(l,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/items/${n}/scheduled-publication`,body:l})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}/scheduled-publication`}).then(Zt)}}yy.TYPE="scheduled_publication";class by extends ve{create(n,l){return this.rawCreate(B(n),ae(l,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then(u=>A(u))}rawCreate(n,l){return this.client.request({method:"POST",url:`/items/${n}/scheduled-unpublishing`,body:l})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}/scheduled-unpublishing`}).then(Zt)}}by.TYPE="scheduled_unpublishing";var pO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},ji=function(i){return this instanceof ji?(this.v=i,this):new ji(i)},vO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof ji?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class _y extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/search-results",queryParams:n})}listPagedIterator(n,l){return vO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=pO(this.rawListPagedIterator(n,l)),g;g=yield ji(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield ji(tn(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield ji(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:20,maxLimit:100},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}}_y.TYPE="search_result";class Sy extends ve{fork(n,l,u){return this.rawFork(B(n),ae(l,{id:B(n),type:"environment",attributes:[],relationships:[]}),u).then(s=>A(s))}rawFork(n,l,u){return this.client.request({method:"POST",url:`/environments/${n}/fork`,body:l,queryParams:u})}promote(n){return this.rawPromote(B(n)).then(l=>A(l))}rawPromote(n){return this.client.request({method:"PUT",url:`/environments/${n}/promote`})}rename(n,l){return this.rawRename(B(n),ae(l,{id:B(n),type:"environment",attributes:[],relationships:[]})).then(u=>A(u))}rawRename(n,l){return this.client.request({method:"PUT",url:`/environments/${n}/rename`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/environments"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/environments/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/environments/${n}`})}}Sy.TYPE="environment";class Ey extends ve{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(l=>A(l))}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"})}}Ey.TYPE="maintenance_mode";class Ty extends ve{create(n){return this.rawCreate(ae(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(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/webhooks",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(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,l){return this.client.request({method:"PUT",url:`/webhooks/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/webhooks"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/webhooks/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/webhooks/${n}`})}}Ty.TYPE="webhook";var gO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},Ni=function(i){return this instanceof Ni?(this.v=i,this):new Ni(i)},yO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Ni?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class wy extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:n})}listPagedIterator(n,l){return yO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=gO(this.rawListPagedIterator(n,l)),g;g=yield Ni(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield Ni(tn(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield Ni(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/webhook_calls/${n}`})}resendWebhook(n){return this.rawResendWebhook(B(n))}rawResendWebhook(n){return this.client.request({method:"POST",url:`/webhook_calls/${n}/resend_webhook`})}}wy.TYPE="webhook_call";class Oy extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/build-triggers"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/build-triggers/${n}`})}create(n){return this.rawCreate(ae(n,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/build-triggers",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(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,l){return this.client.request({method:"PUT",url:`/build-triggers/${n}`,body:l})}trigger(n){return this.rawTrigger(B(n))}rawTrigger(n){return this.client.request({method:"POST",url:`/build-triggers/${n}/trigger`})}abort(n){return this.rawAbort(B(n))}rawAbort(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}/abort`})}abortIndexing(n){return this.rawAbortIndexing(B(n))}rawAbortIndexing(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}/abort_indexing`})}reindex(n){return this.rawReindex(B(n))}rawReindex(n){return this.client.request({method:"PUT",url:`/build-triggers/${n}/reindex`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}`})}}Oy.TYPE="build_trigger";class Cy extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/search-indexes"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/search-indexes/${n}`})}create(n){return this.rawCreate(ae(n,{type:"search_index",attributes:["name","enabled","frontend_url","user_agent_suffix"],relationships:["build_triggers"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/search-indexes",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"search_index",attributes:["name","enabled","frontend_url","user_agent_suffix"],relationships:["build_triggers"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/search-indexes/${n}`,body:l})}trigger(n){return this.rawTrigger(B(n))}rawTrigger(n){return this.client.request({method:"POST",url:`/search-indexes/${n}/trigger`})}abort(n){return this.rawAbort(B(n))}rawAbort(n){return this.client.request({method:"DELETE",url:`/search-indexes/${n}/abort`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/search-indexes/${n}`})}}Cy.TYPE="search_index";class xy extends ve{create(n){return this.rawCreate(ae(n,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/item-type-filters",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/item-type-filters/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/item-type-filters"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/item-type-filters/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/item-type-filters/${n}`})}}xy.TYPE="item_type_filter";class Ay extends ve{create(n){return this.rawCreate(ae(n,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-filters",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/upload-filters/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/upload-filters"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/upload-filters/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/upload-filters/${n}`})}}Ay.TYPE="upload_filter";class zy extends ve{create(n){return this.rawCreate(ae(n,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/site-invitations",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"site_invitation",attributes:[],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/site-invitations/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/site-invitations"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/site-invitations/${n}`})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/site-invitations/${n}`})}resend(n){return this.rawResend(B(n)).then(l=>A(l))}rawResend(n){return this.client.request({method:"POST",url:`/site-invitations/${n}/resend`})}}zy.TYPE="site_invitation";class My extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/editing-sessions"})}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/editing-sessions/${n}`,body:l})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/editing-sessions/${n}`})}}My.TYPE="editing_session";class Dy extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/sso-groups"})}copyRoles(n){return this.rawCopyRoles(B(n)).then(l=>A(l))}rawCopyRoles(n){return this.client.request({method:"POST",url:`/sso-groups/${n}/copy-roles`})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"sso_group",attributes:["priority"],relationships:["role"]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/sso-groups/${n}`,body:l})}destroy(n){return this.rawDestroy(B(n)).then(l=>A(l))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/sso-groups/${n}`})}}Dy.TYPE="sso_group";class Ry extends ve{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(ae(n,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then(l=>A(l))}rawUpdate(n){return this.client.request({method:"PUT",url:"/sso-settings",body:n})}}Ry.TYPE="sso_settings";class Ly extends ve{find(n){return this.rawFind(n).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:"/emoji-suggestions",queryParams:n})}}Ly.TYPE="emoji_suggestions";class jy extends ve{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/white-label-settings"})}update(n){return this.rawUpdate(ae(n,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then(l=>A(l))}rawUpdate(n){return this.client.request({method:"PUT",url:"/white-label-settings",body:n})}}jy.TYPE="white_label_settings";class Ny extends ve{find(){return this.rawFind().then(n=>A(n))}rawFind(){return this.client.request({method:"GET",url:"/public-info"})}}Ny.TYPE="public_info";class qy extends ve{list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/daily-site-usages"})}}qy.TYPE="daily_usage";class Uy extends ve{find(n,l){return this.rawFind(B(n),l).then(u=>A(u))}rawFind(n,l){return this.client.request({method:"GET",url:`/usage-log-counters/${n}`,queryParams:l})}}Uy.TYPE="usage_counter";var bO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},qi=function(i){return this instanceof qi?(this.v=i,this):new qi(i)},_O=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof qi?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class Vy extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/upload-tags",queryParams:n})}listPagedIterator(n,l){return _O(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=bO(this.rawListPagedIterator(n,l)),g;g=yield qi(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield qi(tn(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield qi(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:50,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}create(n){return this.rawCreate(ae(n,{type:"upload_tag",attributes:["name"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-tags",body:n})}}Vy.TYPE="upload_tag";var SO=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],l;return n?n.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),l={},u("next"),u("throw"),u("return"),l[Symbol.asyncIterator]=function(){return this},l);function u(f){l[f]=i[f]&&function(d){return new Promise(function(v,h){d=i[f](d),s(v,h,d.done,d.value)})}}function s(f,d,v,h){Promise.resolve(h).then(function(m){f({value:m,done:v})},d)}},Ui=function(i){return this instanceof Ui?(this.v=i,this):new Ui(i)},EO=function(i,n,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=l.apply(i,n||[]),s,f=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(S){return new Promise(function(E,O){f.push([b,S,E,O])>1||v(b,S)})})}function v(b,S){try{h(u[b](S))}catch(E){y(f[0][3],E)}}function h(b){b.value instanceof Ui?Promise.resolve(b.value.v).then(m,g):y(f[0][2],b)}function m(b){v("next",b)}function g(b){v("throw",b)}function y(b,S){b(S),f.shift(),f.length&&v(f[0][0],f[0][1])}};class Hy extends ve{list(n){return this.rawList(n).then(l=>A(l))}rawList(n){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:n})}listPagedIterator(n,l){return EO(this,arguments,function*(){var s,f,d,v;try{for(var h=!0,m=SO(this.rawListPagedIterator(n,l)),g;g=yield Ui(m.next()),s=g.done,!s;){v=g.value,h=!1;try{yield yield Ui(tn(v))}finally{h=!0}}}catch(y){f={error:y}}finally{try{!h&&!s&&(d=m.return)&&(yield Ui(d.call(m)))}finally{if(f)throw f.error}}})}rawListPagedIterator(n,l){return Hn(n),Vn({defaultLimit:50,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),l)}}Hy.TYPE="upload_smart_tag";class By extends ve{find(n){return this.rawFind(n).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:"/site",queryParams:n})}update(n){return this.rawUpdate(ae(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(l=>A(l))}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"})}updateAssetsCdnDefaultSettings(n){return this.rawUpdateAssetsCdnDefaultSettings(ae(n,{type:"assets-cdn-default-settings",attributes:["assets_cdn_default_settings"],relationships:[]})).then(l=>A(l))}rawUpdateAssetsCdnDefaultSettings(n){return this.client.request({method:"PUT",url:"/site/assets-cdn-default-settings",body:n})}}By.TYPE="site";class Gy extends ve{create(n){return this.rawCreate(ae(n,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(l=>A(l))}rawCreate(n){return this.client.request({method:"POST",url:"/workflows",body:n})}update(n,l){return this.rawUpdate(B(n),ae(l,{id:B(n),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(u=>A(u))}rawUpdate(n,l){return this.client.request({method:"PUT",url:`/workflows/${n}`,body:l})}list(){return this.rawList().then(n=>A(n))}rawList(){return this.client.request({method:"GET",url:"/workflows"})}find(n){return this.rawFind(B(n)).then(l=>A(l))}rawFind(n){return this.client.request({method:"GET",url:`/workflows/${n}`})}destroy(n){return this.rawDestroy(B(n))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/workflows/${n}`})}}Gy.TYPE="workflow";var TO=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})};let Iy=class Yy{constructor(n){this.config=n,this.roles=new iO(this),this.users=new Kg(this),this.ssoUsers=new Jg(this),this.auditLogEvents=new Wg(this),this.menuItems=new ey(this),this.schemaMenuItems=new ty(this),this.uploadCollections=new ny(this),this.itemTypes=new ay(this),this.fields=new iy(this),this.fieldsets=new ry(this),this.session=new ly(this),this.accessTokens=new uy(this),this.plugins=new sy(this),this.jobResults=new oy(this),this.subscriptionLimits=new cy(this),this.subscriptionFeatures=new fy(this),this.buildEvents=new dy(this),this.searchIndexEvents=new hy(this),this.items=new my(this),this.itemVersions=new py(this),this.uploads=new Ef(this),this.uploadRequest=new vy(this),this.uploadTracks=new gy(this),this.scheduledPublication=new yy(this),this.scheduledUnpublishing=new by(this),this.searchResults=new _y(this),this.environments=new Sy(this),this.maintenanceMode=new Ey(this),this.webhooks=new Ty(this),this.webhookCalls=new wy(this),this.buildTriggers=new Oy(this),this.searchIndexes=new Cy(this),this.itemTypeFilters=new xy(this),this.uploadFilters=new Ay(this),this.siteInvitations=new zy(this),this.editingSessions=new My(this),this.ssoGroups=new Dy(this),this.ssoSettings=new Ry(this),this.emojiSuggestions=new Ly(this),this.whiteLabelSettings=new jy(this),this.publicInfo=new Ny(this),this.dailyUsages=new qy(this),this.usageCounters=new Uy(this),this.uploadTags=new Vy(this),this.uploadSmartTags=new Hy(this),this.site=new By(this),this.workflows=new Gy(this)}get baseUrl(){return this.config.baseUrl||Yy.defaultBaseUrl}request(n){return Uu(Object.assign(Object.assign(Object.assign({},this.config),n),{logFn:this.config.logFn||console.log,userAgent:"@datocms/cma-client v5.3.0",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:l=>this.jobResultsFetcher?this.jobResultsFetcher(l):Hw(()=>this.jobResults.find(l))}))}eventsChannelName(){return TO(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})}};Iy.defaultBaseUrl="https://site-api.datocms.com";function wO(i,n,{onProgress:l,additionalHeaders:u}={}){const s=new XMLHttpRequest;return Fr(new Promise((f,d)=>{if(l&&s.upload&&(s.upload.onprogress=v=>{v.lengthComputable&&l({type:"UPLOADING_FILE",payload:{progress:Math.round(v.loaded/v.total*100)}})}),s.onreadystatechange=()=>{s.readyState===4&&(s.status===200?f():d(new Error(`Status ${s.status}`)))},s.addEventListener("error",d,!1),s.open("PUT",n,!0),u)for(const[v,h]of Object.entries(u))s.setRequestHeader(v,h);s.send(i)}),()=>{s.onreadystatechange=null,s.abort()})}var OO=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})};function jv(i,n,l={}){const u=l.filename||("name"in n?n.name:void 0);if(!u)throw new Error("Missing filename, please provide it as an option!");let s=!1,f;return Fr(()=>OO(this,void 0,void 0,function*(){l.onProgress&&l?.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:u}});const{id:d,url:v,request_headers:h}=yield i.uploadRequest.create({filename:u});if(s)throw new Pr;return l.onProgress&&l.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),f=wO(n,v,Object.assign(Object.assign({},l),{additionalHeaders:h})),yield f,d}),()=>{f?f.cancel():s=!0})}var Nv=function(i,n,l,u){function s(f){return f instanceof l?f:new l(function(d){d(f)})}return new(l||(l=Promise))(function(f,d){function v(g){try{m(u.next(g))}catch(y){d(y)}}function h(g){try{m(u.throw(g))}catch(y){d(y)}}function m(g){g.done?f(g.value):s(g.value).then(v,h)}m((u=u.apply(i,n||[])).next())})},qv=function(i,n){var l={};for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&n.indexOf(u)<0&&(l[u]=i[u]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(i);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(i,u[s])&&(l[u[s]]=i[u[s]]);return l};class CO extends Ef{createFromFileOrBlob(n){let l=!1,u;return Fr(()=>Nv(this,void 0,void 0,function*(){if(l)throw new Pr;const{fileOrBlob:s,filename:f,onProgress:d}=n,v=qv(n,["fileOrBlob","filename","onProgress"]);u=jv(this.client,s,{filename:f,onProgress:d});const h=yield u;return d&&d({type:"CREATING_UPLOAD_OBJECT"}),this.create(Object.assign(Object.assign({},v),{path:h}))}),()=>{u?u.cancel():l=!0})}updateFromFileOrBlob(n,l){let u=!1,s;return Fr(()=>Nv(this,void 0,void 0,function*(){if(u)throw new Pr;const{fileOrBlob:f,filename:d,onProgress:v}=l,h=qv(l,["fileOrBlob","filename","onProgress"]);s=jv(this.client,f,{filename:d,onProgress:v});const m=yield s;return v&&v({type:"CREATING_UPLOAD_OBJECT"}),this.update(n,Object.assign(Object.assign({},h),{path:m}))}),()=>{s?s.cancel():u=!0})}}class xO extends Iy{constructor(n){super(n),this.uploads=new CO(this)}}function Uv(i){return new xO(i)}const AO="_assetListCard_1l5yg_23",zO="_assetListHeader_1l5yg_49",MO="_assetListHeaderTitle_1l5yg_58",DO="_categoryBadge_1l5yg_73",RO="_badgeGreen_1l5yg_87",LO="_badgeRed_1l5yg_91",jO="_badgeGray_1l5yg_95",NO="_badgeBlue_1l5yg_99",qO="_noAssetsMessage_1l5yg_103",UO="_assetList_1l5yg_23",VO="_assetListItem_1l5yg_118",HO="_assetItemContent_1l5yg_132",BO="_assetIcon_1l5yg_138",GO="_fileIconWrapper_1l5yg_142",IO="_assetDetails_1l5yg_155",YO="_assetPath_1l5yg_160",$O="_optimizationStats_1l5yg_167",PO="_sizeInfo_1l5yg_175",FO="_sizeBefore_1l5yg_182",kO="_sizeAfter_1l5yg_183",XO="_sizeLabel_1l5yg_189",QO="_sizeValue_1l5yg_194",ZO="_sizeArrow_1l5yg_207",KO="_savingsBadge_1l5yg_212",JO="_assetActions_1l5yg_222",WO="_container_1l5yg_233",e2="_optimizingContainer_1l5yg_297",t2="_statusText_1l5yg_309",n2="_percentageText_1l5yg_315",a2="_progressBar_1l5yg_322",i2="_progressBarFill_1l5yg_333",r2="_logWrapper_1l5yg_370",l2="_logHeader_1l5yg_380",u2="_logsContainer_1l5yg_392",s2="_logs_1l5yg_392",o2="_logEntry_1l5yg_408",c2="_sizeComparison_1l5yg_421",f2="_originalSize_1l5yg_581",d2="_optimizedSize_1l5yg_591",h2="_sizeSavings_1l5yg_596",m2="_settingsContainer_1l5yg_643",p2="_settingsForm_1l5yg_649",v2="_fieldRow_1l5yg_674",g2="_field_1l5yg_674",y2="_formActionContainer_1l5yg_685",b2="_buttonGroup_1l5yg_689",_2="_resultsContainer_1l5yg_739",S2="_optimizationSummaryTitle_1l5yg_748",E2="_statsCardGrid_1l5yg_756",T2="_statsCard_1l5yg_756",w2="_clickableStatsCard_1l5yg_773",O2="_statsCardTitle_1l5yg_813",C2="_statsCardValue_1l5yg_821",x2="_optimizedValue_1l5yg_827",A2="_skippedValue_1l5yg_831",z2="_failedValue_1l5yg_835",M2="_statsCardLabel_1l5yg_839",D2="_savingsSummary_1l5yg_844",R2="_savingsCard_1l5yg_848",L2="_savingsRow_1l5yg_855",j2="_savingsLabel_1l5yg_867",N2="_savingsValue_1l5yg_872",q2="_actionsContainer_1l5yg_878",U2="_infoText_1l5yg_887",V2="_hintWithDoc_1l5yg_903",H2="_plainHint_1l5yg_917",B2="_docLinkIcon_1l5yg_930",G2="_currentAssetPreview_1l5yg_994",I2="_assetPreviewImage_1l5yg_1005",Y2="_assetPreviewInfo_1l5yg_1022",$2="_assetPreviewTitle_1l5yg_1027",P2="_assetPreviewMeta_1l5yg_1037",F2="_advancedOptionsGroup_1l5yg_1046",k2="_optionsGrid_1l5yg_1056",X2="_optionItem_1l5yg_1063",Q2="_paramTooltip_1l5yg_1070",Z2="_tooltipText_1l5yg_1075",K2="_buttonTooltip_1l5yg_1115",J2="_previewInfoBox_1l5yg_1158",k={assetListCard:AO,assetListHeader:zO,assetListHeaderTitle:MO,categoryBadge:DO,badgeGreen:RO,badgeRed:LO,badgeGray:jO,badgeBlue:NO,noAssetsMessage:qO,assetList:UO,assetListItem:VO,assetItemContent:HO,assetIcon:BO,fileIconWrapper:GO,assetDetails:IO,assetPath:YO,optimizationStats:$O,sizeInfo:PO,sizeBefore:FO,sizeAfter:kO,sizeLabel:XO,sizeValue:QO,sizeArrow:ZO,savingsBadge:KO,assetActions:JO,container:WO,optimizingContainer:e2,statusText:t2,percentageText:n2,progressBar:a2,progressBarFill:i2,logWrapper:r2,logHeader:l2,logsContainer:u2,logs:s2,logEntry:o2,sizeComparison:c2,originalSize:f2,optimizedSize:d2,sizeSavings:h2,settingsContainer:m2,settingsForm:p2,fieldRow:v2,field:g2,formActionContainer:y2,buttonGroup:b2,resultsContainer:_2,optimizationSummaryTitle:S2,statsCardGrid:E2,statsCard:T2,clickableStatsCard:w2,statsCardTitle:O2,statsCardValue:C2,optimizedValue:x2,skippedValue:A2,failedValue:z2,statsCardLabel:M2,savingsSummary:D2,savingsCard:R2,savingsRow:L2,savingsLabel:j2,savingsValue:N2,actionsContainer:q2,infoText:U2,hintWithDoc:V2,plainHint:H2,docLinkIcon:B2,currentAssetPreview:G2,assetPreviewImage:I2,assetPreviewInfo:Y2,assetPreviewTitle:$2,assetPreviewMeta:P2,advancedOptionsGroup:F2,optionsGrid:k2,optionItem:X2,paramTooltip:Q2,tooltipText:Z2,buttonTooltip:K2,previewInfoBox:J2};function Ba(i){return i<1024?`${i} bytes`:i<1024*1024?`${(i/1024).toFixed(1)} KB`:`${(i/(1024*1024)).toFixed(1)} MB`}const W2=i=>{const n=i.originalSize!==void 0&&i.optimizedSize!==void 0?`${i.originalSize}-${i.optimizedSize}`:"no-size";return`${i.text}-${n}`},eC=({log:i})=>{const n=F.useRef(null);return F.useEffect(()=>{if(n.current){const{scrollHeight:l,clientHeight:u}=n.current;n.current.scrollTop=l-u}},[]),i.length===0?null:w.jsxs("div",{className:k.logWrapper,children:[w.jsxs("div",{className:k.logHeader,children:[w.jsx("h3",{children:"Activity Log"}),w.jsxs("span",{children:[i.length," entries"]})]}),w.jsx("div",{className:k.logsContainer,ref:n,children:w.jsx("div",{className:k.logs,children:i.map(l=>w.jsxs("div",{className:k.logEntry,children:[w.jsx("span",{children:l.text}),l.originalSize&&l.optimizedSize&&w.jsxs("span",{className:k.sizeComparison,children:[w.jsx("span",{className:k.originalSize,children:Ba(l.originalSize)}),w.jsx("span",{className:k.sizeArrow,children:"→"}),w.jsx("span",{className:k.optimizedSize,children:Ba(l.optimizedSize)}),w.jsxs("span",{className:k.sizeSavings,children:["(-",l.savingsPercentage,"%)"]})]})]},W2(l)))})})]})},tC=i=>{switch(i){case"optimized":return k.badgeGreen;case"failed":return k.badgeRed;case"skipped":return k.badgeGray;default:return k.badgeBlue}},nC=i=>{const n="originalSize"in i?i.originalSize:void 0,l="optimizedSize"in i?i.optimizedSize:void 0,u="size"in i?i.size:n??0,s="basename"in i?i.basename:"";return{id:i.id,path:i.path,url:i.url,is_image:!0,size:u,basename:s,originalSize:n,optimizedSize:l}},aC=(i,n)=>!i||!n?null:Math.round((i-n)/i*100),iC=({asset:i,category:n,ctx:l})=>{const u=nC(i),s=aC(u.originalSize,u.optimizedSize),f=u.path.split(".").pop()??"",d=n==="optimized"&&!!u.originalSize&&!!u.optimizedSize;return w.jsx("li",{className:k.assetListItem,children:w.jsxs("div",{className:k.assetItemContent,children:[w.jsx("div",{className:k.assetIcon,children:w.jsx("div",{className:k.fileIconWrapper,children:f.toUpperCase()})}),w.jsxs("div",{className:k.assetDetails,children:[w.jsx("p",{className:k.assetPath,children:u.path}),d&&w.jsxs("div",{className:k.optimizationStats,children:[w.jsxs("div",{className:k.sizeInfo,children:[w.jsxs("div",{className:k.sizeBefore,children:[w.jsx("span",{className:k.sizeLabel,children:"Original:"}),w.jsx("span",{className:k.sizeValue,children:Ba(u.originalSize??0)})]}),w.jsx("div",{className:k.sizeArrow,children:"→"}),w.jsxs("div",{className:k.sizeAfter,children:[w.jsx("span",{className:k.sizeLabel,children:"Optimized:"}),w.jsx("span",{className:k.sizeValue,children:Ba(u.optimizedSize??0)})]})]}),s&&w.jsxs("div",{className:`${k.savingsBadge} ${k.badgeGreen}`,children:[s,"% savings"]})]})]}),w.jsxs("div",{className:k.assetActions,children:[w.jsx(da,{buttonSize:"xxs",buttonType:"primary",onClick:()=>window.open(u.url,"_blank"),children:"View Asset"}),w.jsx(da,{buttonSize:"xxs",buttonType:"muted",style:{marginLeft:"8px"},onClick:()=>window.open(`https://${l.site.attributes.internal_domain}/environments/${l.environment}/media/assets/${u.id}`,"_blank"),children:"Media Area"})]})]})},u.id)},rC=({assets:i,category:n,onClose:l,ctx:u})=>{const s=tC(n),f=n.charAt(0).toUpperCase()+n.slice(1);return w.jsxs("div",{className:k.assetListCard,children:[w.jsxs("div",{className:k.assetListHeader,children:[w.jsxs("div",{className:k.assetListHeaderTitle,children:[w.jsx("div",{className:`${k.categoryBadge} ${s}`,children:i.length}),w.jsxs("h3",{children:[f," Assets"]})]}),l&&w.jsx(da,{buttonType:"negative",buttonSize:"xs",onClick:l,children:"Close"})]}),i.length===0?w.jsxs("div",{className:k.noAssetsMessage,children:["No ",n," assets to display."]}):w.jsx("ul",{className:k.assetList,children:i.map(d=>w.jsx(iC,{asset:d,category:n,ctx:u},d.id))})]})},lC=({current:i,total:n,isVisible:l,assetSizeCategory:u="large",currentAsset:s,isPreview:f})=>{if(!l)return null;const d=n>0?Math.min(100,Math.max(0,Math.round(i/n*100))):0;return w.jsxs("div",{className:k.optimizingContainer,children:[f&&w.jsxs("div",{className:k.previewInfoBox,children:[w.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[w.jsx("title",{children:"Information"}),w.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"currentColor"})]}),w.jsxs("p",{children:[w.jsx("strong",{children:"Preview Mode"})," - This will calculate potential savings without modifying any assets."]})]}),s&&w.jsxs("div",{className:k.currentAssetPreview,children:[w.jsx("div",{className:k.assetPreviewImage,children:w.jsx("img",{src:`${s.url}?w=120&h=80&fit=crop&auto=format`,alt:s.basename})}),w.jsxs("div",{className:k.assetPreviewInfo,children:[w.jsx("div",{className:k.assetPreviewTitle,children:s.basename}),w.jsxs("div",{className:k.assetPreviewMeta,children:[s.path.split(".").pop()?.toUpperCase()," •"," ",(s.size/(1024*1024)).toFixed(2)," MB •"," ",s.width,"×",s.height,"px"]})]})]}),w.jsxs("div",{className:k.statusText,children:[w.jsx(gw,{size:16})," ",w.jsxs("span",{children:["Processing ",u," assets: ",i," of ",n]})]}),w.jsx("div",{className:k.percentageText,children:w.jsxs("span",{children:[d,"%"]})}),w.jsx("div",{className:k.progressBar,children:w.jsx("div",{className:k.progressBarFill,style:{width:`${d}%`}})})]})},uC=i=>i<1024?`${i} bytes`:i<1024*1024?`${(i/1024).toFixed(1)} KB`:`${(i/(1024*1024)).toFixed(1)} MB`,sC=i=>i.reduce((n,l)=>n+(l.originalSize-l.optimizedSize),0),oC=i=>{if(i.length===0)return 0;const n=i.reduce((l,u)=>l+(u.originalSize-u.optimizedSize)/u.originalSize*100,0);return Math.round(n/i.length)},Vc=({title:i,count:n,valueClassName:l,category:u,onSelect:s})=>{const f=n>0,d=()=>{f&&s(u)},v=h=>{f&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),s(u))};return w.jsxs("div",{className:`${k.statsCard} ${f?k.clickableStatsCard:""}`,onClick:d,onKeyDown:v,role:f?"button":void 0,tabIndex:f?0:void 0,children:[w.jsx("h3",{className:k.statsCardTitle,children:i}),w.jsx("div",{className:`${k.statsCardValue} ${l}`,children:n}),w.jsx("div",{className:k.statsCardLabel,children:f?"Click to view":`No ${i.toLowerCase()} assets`})]})},cC=({result:i,setSelectedCategory:n,resetState:l,largeAssetThreshold:u,isPreview:s})=>{if(!i)return null;const{optimized:f,skipped:d,failed:v,totalAssets:h,optimizedAssets:m}=i,g=sC(m),y=oC(m),b=()=>{l?l():n(null)},S=h===0&&!!u;return w.jsxs("div",{className:k.resultsContainer,children:[w.jsx("h2",{className:k.optimizationSummaryTitle,children:s?"Preview Summary":"Optimization Summary"}),s&&w.jsxs("div",{className:k.previewInfoBox,children:[w.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[w.jsx("title",{children:"Information"}),w.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"currentColor"})]}),w.jsxs("p",{children:[w.jsx("strong",{children:"Preview Mode"})," - This is an estimation of potential savings. No assets have been modified."]})]}),S&&w.jsx("div",{className:`${k.infoBox}`,style:{margin:"0 0 16px 0",padding:"16px",backgroundColor:"var(--color--surface-muted)",borderRadius:"4px"},children:w.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[w.jsx("div",{style:{marginRight:"8px",color:"var(--color--ink-link)",display:"flex"},children:w.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[w.jsx("title",{children:"Information"}),w.jsx("path",{d:"M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z",fill:"currentColor"})]})}),w.jsxs("p",{style:{margin:0,color:"var(--color--ink)"},children:["No images in your project are larger than"," ",w.jsxs("strong",{children:[u,"MB"]}),". Try lowering the minimum size threshold to optimize more assets."]})]})}),w.jsxs("div",{className:k.statsCardGrid,children:[w.jsxs("div",{className:k.statsCard,children:[w.jsx("h3",{className:k.statsCardTitle,children:"Total Assets"}),w.jsx("div",{className:k.statsCardValue,children:h}),w.jsx("div",{className:k.statsCardLabel,children:h>0?"Total":"No assets found"})]}),w.jsx(Vc,{title:"Optimized",count:f,valueClassName:k.optimizedValue,category:"optimized",onSelect:n}),w.jsx(Vc,{title:"Skipped",count:d,valueClassName:k.skippedValue,category:"skipped",onSelect:n}),w.jsx(Vc,{title:"Failed",count:v,valueClassName:k.failedValue,category:"failed",onSelect:n})]}),w.jsx("div",{className:k.savingsSummary,children:w.jsxs("div",{className:k.savingsCard,children:[w.jsxs("div",{className:k.savingsRow,children:[w.jsx("div",{className:k.savingsLabel,children:"Total Storage Saved"}),w.jsx("div",{className:k.savingsValue,children:uC(g)})]}),w.jsxs("div",{className:k.savingsRow,children:[w.jsx("div",{className:k.savingsLabel,children:"Average Optimization per Asset"}),w.jsxs("div",{className:k.savingsValue,children:[y,"%"]})]})]})}),w.jsx("div",{className:k.actionsContainer,children:w.jsx(da,{buttonType:"primary",buttonSize:"l",onClick:b,fullWidth:!0,children:s?"New Preview":"New Optimization"})})]})};var Hc,Vv;function fC(){if(Vv)return Hc;Vv=1;var i="Expected a function",n=NaN,l="[object Symbol]",u=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,d=/^0o[0-7]+$/i,v=parseInt,h=typeof hu=="object"&&hu&&hu.Object===Object&&hu,m=typeof self=="object"&&self&&self.Object===Object&&self,g=h||m||Function("return this")(),y=Object.prototype,b=y.toString,S=Math.max,E=Math.min,O=function(){return g.Date.now()};function R(M,G,U){var J,de,ze,be,W,ne,le=0,ge=!1,D=!1,Z=!0;if(typeof M!="function")throw new TypeError(i);G=Q(G)||0,j(U)&&(ge=!!U.leading,D="maxWait"in U,ze=D?S(Q(U.maxWait)||0,G):ze,Z="trailing"in U?!!U.trailing:Z);function ee(ue){var De=J,Re=de;return J=de=void 0,le=ue,be=M.apply(Re,De),be}function Ee(ue){return le=ue,W=setTimeout(V,G),ge?ee(ue):be}function Te(ue){var De=ue-ne,Re=ue-le,nn=G-De;return D?E(nn,ze-Re):nn}function C(ue){var De=ue-ne,Re=ue-le;return ne===void 0||De>=G||De<0||D&&Re>=ze}function V(){var ue=O();if(C(ue))return K(ue);W=setTimeout(V,Te(ue))}function K(ue){return W=void 0,Z&&J?ee(ue):(J=de=void 0,be)}function te(){W!==void 0&&clearTimeout(W),le=0,J=ne=de=W=void 0}function ce(){return W===void 0?be:K(O())}function fe(){var ue=O(),De=C(ue);if(J=arguments,de=this,ne=ue,De){if(W===void 0)return Ee(ne);if(D)return W=setTimeout(V,G),ee(ne)}return W===void 0&&(W=setTimeout(V,G)),be}return fe.cancel=te,fe.flush=ce,fe}function j(M){var G=typeof M;return!!M&&(G=="object"||G=="function")}function X(M){return!!M&&typeof M=="object"}function Y(M){return typeof M=="symbol"||X(M)&&b.call(M)==l}function Q(M){if(typeof M=="number")return M;if(Y(M))return n;if(j(M)){var G=typeof M.valueOf=="function"?M.valueOf():M;M=j(G)?G+"":G}if(typeof M!="string")return M===0?M:+M;M=M.replace(u,"");var U=f.test(M);return U||d.test(M)?v(M.slice(2),U?2:8):s.test(M)?n:+M}return Hc=R,Hc}var dC=fC();const hC=Zu(dC),$y={largeAssetThreshold:3,veryLargeAssetThreshold:8,qualityLarge:85,qualityVeryLarge:80,resizeDimensionLarge:2400,resizeDimensionVeryLarge:2e3,minimumReduction:10,targetFormat:"avif",preserveOriginalFormat:!1,resizeLargeImages:!0,useAutoCompress:!0,useDpr:!0,useLossless:!1,useChromaSubsampling:!1,preserveColorProfile:!0},mC=(i,n)=>{const l=n.veryLargeAssetThreshold*1024*1024,u=n.largeAssetThreshold*1024*1024;return i>=l?"very-large":i>=u?"large":"small"},pC=(i,n,l)=>{if(!l.resizeLargeImages||!i.width||!i.height)return null;const u=n==="very-large"?l.resizeDimensionVeryLarge:l.resizeDimensionLarge;return Math.max(i.width,i.height)<=u?null:i.width>=i.height?`max-w=${u}`:`h=${u}`},vC=(i,n,l)=>{const u=[];n.useAutoCompress&&u.push("auto=compress");const s=l==="very-large"?n.qualityVeryLarge:n.qualityLarge;u.push(`q=${s}`);const f=pC(i,l,n);return f&&u.push(f),n.targetFormat&&!n.preserveOriginalFormat&&u.push(`fm=${n.targetFormat}`),l==="very-large"&&n.useDpr&&u.push("dpr=2"),n.useLossless&&u.push("lossless=1"),n.useChromaSubsampling&&u.push("chromasub=444"),n.preserveColorProfile&&u.push("cs=origin"),u};function gC(i,n){if(!i.is_image)return null;const l=mC(i.size,n);return l==="small"?null:`?${vC(i,n,l).join("&")}`}const yC=({children:i,tooltip:n})=>n?w.jsxs("div",{className:k.buttonTooltip,children:[i,w.jsx("span",{className:k.tooltipText,children:n})]}):w.jsx(w.Fragment,{children:i}),kt=({children:i,paramName:n,paramValue:l})=>{const s=l==null?`${n}`:typeof l=="boolean"?l?`${n}=1`:"":`${n}=${l}`;return s?w.jsxs("div",{className:k.paramTooltip,children:[i,w.jsx("span",{className:k.tooltipText,children:s})]}):w.jsx(w.Fragment,{children:i})},Rn=({hint:i,url:n})=>{const l=`Learn more about ${i}`,u=()=>{window.open(n,"_blank","noopener,noreferrer")};return w.jsxs("button",{className:k.hintWithDoc,onClick:u,type:"button","aria-label":l,children:[w.jsx("span",{children:i}),w.jsx("span",{className:k.docLinkIcon,children:"ℹ"})]})},xi=({hint:i})=>w.jsx("div",{className:k.plainHint,children:w.jsx("span",{children:i})}),bC=(i,n)=>{const l=i==="qualityLarge"||i==="qualityVeryLarge",u=i==="minimumReduction",s=i==="largeAssetThreshold"||i==="veryLargeAssetThreshold",f=i==="resizeDimensionLarge"||i==="resizeDimensionVeryLarge";return l||u?Math.min(Math.max(0,n),100):s?Math.max(.1,n):f?Math.max(1,n):n},_C=i=>i&&typeof i=="object"&&!Array.isArray(i)&&"value"in i?i.value:null,Ln={format:"https://docs.imgix.com/apis/rendering/format/fm",auto:"https://docs.imgix.com/apis/rendering/automatic",resize:"https://docs.imgix.com/apis/rendering/size/w",quality:"https://docs.imgix.com/apis/rendering/format/q",dpr:"https://docs.imgix.com/apis/rendering/pixel-density/dpr",lossless:"https://docs.imgix.com/apis/rendering/format/lossless",chroma:"https://docs.imgix.com/apis/rendering/format/chroma-subsampling",colorSpace:"https://docs.imgix.com/apis/rendering/format/color-space"},SC=({settings:i,onSettingsChange:n,onStartOptimization:l,onPreviewOptimization:u,ctx:s})=>{const f=F.useRef(null);F.useEffect(()=>(f.current=hC(async y=>{try{await s.updatePluginParameters({optimization_settings:JSON.stringify(y)}),console.log("Settings saved to plugin parameters:",y)}catch(b){console.error("Error saving settings:",b)}},500),()=>{f.current&&f.current.cancel()}),[s]),F.useEffect(()=>{f.current&&f.current(i)},[i]);const d=y=>b=>{const S=Number.parseFloat(b);if(!Number.isNaN(S)){const E=bC(y,S);n({...i,[y]:E})}},v=y=>b=>{n({...i,[y]:b})},h=y=>(b,S)=>{const E=_C(b);E!==null&&n({...i,[y]:E})},m=[{label:"WebP",value:"webp"},{label:"AVIF",value:"avif"}],g=m.find(y=>y.value===i.targetFormat)||m[0];return w.jsxs(p1,{className:k.settingsForm,children:[w.jsxs(jr,{children:[w.jsx("h4",{children:"Size Thresholds"}),w.jsxs("div",{className:k.fieldRow,children:[w.jsxs("div",{className:k.field,children:[w.jsx(Na,{id:"largeAssetThreshold",name:"largeAssetThreshold",label:"Large Asset (MB)",value:i.largeAssetThreshold.toString(),onChange:d("largeAssetThreshold")}),w.jsx(xi,{hint:`Assets above ${i.largeAssetThreshold}MB will be optimized`})]}),w.jsxs("div",{className:k.field,children:[w.jsx(Na,{id:"veryLargeAssetThreshold",name:"veryLargeAssetThreshold",label:"Very Large Asset (MB)",value:i.veryLargeAssetThreshold.toString(),onChange:d("veryLargeAssetThreshold")}),w.jsx(xi,{hint:`Assets above ${i.veryLargeAssetThreshold}MB get stronger optimization`})]})]}),w.jsxs("div",{className:k.field,children:[w.jsx(Na,{id:"minimumReduction",name:"minimumReduction",label:"Minimum Size Reduction (%)",value:i.minimumReduction.toString(),onChange:d("minimumReduction")}),w.jsx(xi,{hint:"Only replace if reduced by at least this percentage"})]})]}),w.jsxs(jr,{children:[w.jsx("h4",{children:"Basic Optimization"}),w.jsxs("div",{className:k.fieldRow,children:[w.jsxs("div",{className:k.field,children:[w.jsx(kt,{paramName:"fm",paramValue:i.preserveOriginalFormat?void 0:i.targetFormat,children:w.jsx(ja,{id:"preserveOriginalFormat",name:"preserveOriginalFormat",label:"Preserve Original Format",value:i.preserveOriginalFormat,onChange:v("preserveOriginalFormat")})}),w.jsx(Rn,{hint:"Keep original image format (JPG, PNG, etc.)",url:Ln.format})]}),w.jsxs("div",{className:k.field,children:[w.jsx(kt,{paramName:"auto",paramValue:"compress",children:w.jsx(ja,{id:"useAutoCompress",name:"useAutoCompress",label:"Auto Compress",value:i.useAutoCompress,onChange:v("useAutoCompress")})}),w.jsx(Rn,{hint:"Use Imgix's auto compression features",url:Ln.auto})]})]}),!i.preserveOriginalFormat&&w.jsxs("div",{className:k.field,children:[w.jsx(kt,{paramName:"fm",paramValue:i.targetFormat,children:w.jsx(S1,{id:"targetFormat",name:"targetFormat",label:"Target Format",value:g,onChange:h("targetFormat"),selectInputProps:{options:m}})}),w.jsx(xi,{hint:"Format to convert images to"})]}),w.jsxs("p",{className:k.infoText,children:[w.jsx("strong",{children:"Format Settings:"})," ",i.preserveOriginalFormat?"Original image formats will be preserved while optimizing quality and file size.":`Images will be converted to ${i.targetFormat.toUpperCase()} format for better compression.`,i.useAutoCompress&&w.jsxs("span",{children:[" ","Auto compression is enabled, letting Imgix automatically optimize each image."]})]}),w.jsx("div",{className:k.fieldRow,children:w.jsxs("div",{className:k.field,children:[w.jsx(kt,{paramName:"max-w",paramValue:i.resizeLargeImages?"value":void 0,children:w.jsx(ja,{id:"resizeLargeImages",name:"resizeLargeImages",label:"Resize Large Images",value:i.resizeLargeImages,onChange:v("resizeLargeImages")})}),w.jsx(Rn,{hint:"Reduce image dimensions to save space",url:Ln.resize})]})})]}),i.resizeLargeImages&&w.jsxs(jr,{children:[w.jsx("h4",{children:"Resize Dimensions"}),w.jsxs("div",{className:k.fieldRow,children:[w.jsxs("div",{className:k.field,children:[w.jsx(kt,{paramName:"max-w",paramValue:i.resizeDimensionLarge,children:w.jsx(Na,{id:"resizeDimensionLarge",name:"resizeDimensionLarge",label:"Large Image Max Width (px)",value:i.resizeDimensionLarge.toString(),onChange:d("resizeDimensionLarge")})}),w.jsx(xi,{hint:"Max dimension for large images"})]}),w.jsxs("div",{className:k.field,children:[w.jsx(kt,{paramName:"max-w",paramValue:i.resizeDimensionVeryLarge,children:w.jsx(Na,{id:"resizeDimensionVeryLarge",name:"resizeDimensionVeryLarge",label:"Very Large Image Max Width (px)",value:i.resizeDimensionVeryLarge.toString(),onChange:d("resizeDimensionVeryLarge")})}),w.jsx(xi,{hint:"Max dimension for very large images"})]})]})]}),w.jsxs(jr,{children:[w.jsx("h4",{children:"Compression Settings"}),!i.useLossless&&w.jsxs("div",{className:k.fieldRow,children:[w.jsxs("div",{className:k.field,children:[w.jsx(kt,{paramName:"q",paramValue:i.qualityLarge,children:w.jsx(Na,{id:"qualityLarge",name:"qualityLarge",label:"Large Image Quality",value:i.qualityLarge.toString(),onChange:d("qualityLarge")})}),w.jsx(Rn,{hint:"Quality for large images (0-100)",url:Ln.quality})]}),w.jsxs("div",{className:k.field,children:[w.jsx(kt,{paramName:"q",paramValue:i.qualityVeryLarge,children:w.jsx(Na,{id:"qualityVeryLarge",name:"qualityVeryLarge",label:"Very Large Image Quality",value:i.qualityVeryLarge.toString(),onChange:d("qualityVeryLarge")})}),w.jsx(Rn,{hint:"Quality for very large images (0-100)",url:Ln.quality})]})]}),i.useLossless&&w.jsxs("p",{className:k.infoText,style:{marginBottom:0},children:[w.jsx("strong",{children:"Lossless Mode:"})," Standard quality settings are disabled when using Lossless Mode."]})]}),w.jsxs(jr,{className:k.advancedOptionsGroup,children:[w.jsx("h4",{children:"Advanced Options"}),w.jsxs("div",{className:k.optionsGrid,children:[w.jsxs("div",{className:k.optionItem,children:[w.jsx(kt,{paramName:"lossless",paramValue:i.useLossless?1:void 0,children:w.jsx(ja,{id:"useLossless",name:"useLossless",label:"Use Lossless Compression",value:i.useLossless,onChange:v("useLossless")})}),w.jsx(Rn,{hint:"Use lossless compression when possible",url:Ln.lossless})]}),w.jsxs("div",{className:k.optionItem,children:[w.jsx(kt,{paramName:"dpr",paramValue:i.useDpr?2:void 0,children:w.jsx(ja,{id:"useDpr",name:"useDpr",label:"Use DPR Optimization",value:i.useDpr,onChange:v("useDpr")})}),w.jsx(Rn,{hint:"Optimize for high-resolution displays (Retina)",url:Ln.dpr})]}),w.jsxs("div",{className:k.optionItem,children:[w.jsx(kt,{paramName:"chromasub",paramValue:i.useChromaSubsampling?444:void 0,children:w.jsx(ja,{id:"useChromaSubsampling",name:"useChromaSubsampling",label:"Enhanced Chroma Sampling",value:i.useChromaSubsampling,onChange:v("useChromaSubsampling")})}),w.jsx(Rn,{hint:"Use higher quality chroma subsampling (444) for JPEGs",url:Ln.chroma})]}),w.jsxs("div",{className:k.optionItem,children:[w.jsx(kt,{paramName:"cs",paramValue:i.preserveColorProfile?"origin":void 0,children:w.jsx(ja,{id:"preserveColorProfile",name:"preserveColorProfile",label:"Preserve Color Profiles",value:i.preserveColorProfile,onChange:v("preserveColorProfile")})}),w.jsx(Rn,{hint:"Maintain accurate colors from original image",url:Ln.colorSpace})]})]})]}),w.jsx("div",{className:k.formActionContainer,children:w.jsxs("div",{className:k.buttonGroup,children:[w.jsx(da,{buttonType:"muted",buttonSize:"l",onClick:()=>n({...$y}),children:"Restore Defaults"}),w.jsx(yC,{tooltip:"Calculate potential improvements with current settings without replacing any assets",children:w.jsx(da,{buttonType:"muted",buttonSize:"l",onClick:u,children:"Preview Optimization"})}),w.jsx(da,{buttonType:"primary",buttonSize:"l",onClick:l,fullWidth:!0,children:"Start Optimization"})]})})]})};function EC(i){return{id:i.id,is_image:i.is_image||!1,size:i.size||0,url:i.url||"",path:i.path||"",basename:i.basename||"",width:i.width||void 0,height:i.height||void 0,alt:i.default_field_metadata?.en?.alt||void 0,title:i.default_field_metadata?.en?.title||void 0,customData:i.default_field_metadata?.en?.custom_data||{},tags:i.tags||[]}}function Hv(i){return{id:i.id,path:i.path,url:i.url}}function TC(i,n,l){return{id:i.id,path:i.path,url:i.url,originalSize:n,optimizedSize:l}}const wC=i=>new Promise(n=>setTimeout(n,i));async function OC(i,n,l,u,s,f,d,v){try{l(`Processing asset: ${i.path} (${Ba(i.size)})`);const h=gC(i,n);if(!h)return l(`Skipping asset ${i.path}: No suitable optimization parameters found.`),{status:"skipped",asset:i};const m=`${i.url}${h}`;l(`Optimizing with parameters: ${h}`);const g=await fetch(m);if(!g.ok)throw new Error(`Failed to fetch optimized image: ${g.statusText}`);const y=await g.blob();l(`Optimized image size: ${Ba(y.size)}`);const b=i.size*(1-n.minimumReduction/100);if(y.size>b)return l(`Optimization not significant enough for ${i.path}. Skipping.`),{status:"skipped",asset:i};if(s)return u(i.path,i.size,y.size),{status:"optimized",asset:i,optimizedSize:y.size};if(!f)throw new Error("API token is required for asset replacement");l(`Replacing asset ${i.path}...`);const{default:S}=await jw(async()=>{const{default:E}=await import("./assetReplacer-DhwFMV6v.js");return{default:E}},[],import.meta.url);return await S(i.id,m,f,d||"master",v,i.basename),u(i.path,i.size,y.size),l(`Successfully replaced asset ${i.path}`),{status:"optimized",asset:i,optimizedSize:y.size}}catch(h){return l(`Error ${s?"optimizing":"replacing"} asset ${i.path}: ${h instanceof Error?h.message:String(h)}`),{status:"failed",asset:i,error:h instanceof Error?h.message:String(h)}}}const Bv=(i,n)=>{if(i.optimized<=0)return;const l=i.originalSizeTotal-i.optimizedSizeTotal,u=Math.round(l/i.originalSizeTotal*100);n(`Total size savings: ${Ba(l)} (${u}%)`)};async function Gv(i,n){const l=[];let u=0;for await(const s of i.uploads.listPagedIterator({filter:{fields:{type:{eq:"image"},size:{gte:n}}}}))u++,l.push(EC(s));return{assets:l,count:u}}async function CC({asset:i,settings:n,addLog:l,addSizeComparisonLog:u,isPreview:s,apiToken:f,environment:d,baseUrl:v,acc:h,shouldDelay:m}){try{m&&await wC(300);const g=await OC(i,n,l,u,s,f||void 0,d,v),y=Hv(i);g.status==="optimized"&&g.optimizedSize?(h.optimizedAssets.push(TC(i,i.size,g.optimizedSize)),h.optimizedSizeTotal+=g.optimizedSize,h.optimized++):g.status==="skipped"?(h.skippedAssets.push(y),h.skipped++):(h.failedAssets.push(y),h.failed++)}catch(g){l(`Unexpected error processing ${i.path}: ${g instanceof Error?g.message:String(g)}`),h.failedAssets.push(Hv(i)),h.failed++}}const xC=({ctx:i})=>{const[n,l]=F.useState(!1),[u,s]=F.useState(!1),[f,d]=F.useState(!1),[v,h]=F.useState(0),[m,g]=F.useState(0),[y,b]=F.useState(null),[S,E]=F.useState([]),[O,R]=F.useState({...$y}),[j,X]=F.useState(void 0),[Y,Q]=F.useState(null),M=10;F.useEffect(()=>{(async()=>{try{const ne=i.plugin.attributes.parameters;if(ne&&typeof ne.optimization_settings=="string")try{const le=JSON.parse(ne.optimization_settings);R(le),console.log("Loaded settings from plugin parameters:",le)}catch(le){console.error("Error parsing saved settings:",le)}else console.log("No saved settings found, using defaults")}catch(ne){console.error("Error accessing plugin parameters:",ne)}})()},[i]),F.useEffect(()=>{const W=ne=>{if(n){const le="Optimization is in progress. Leaving the page now may cause you to lose assets! Are you sure you want to leave?";return ne.preventDefault(),ne.returnValue=le,le}};return window.addEventListener("beforeunload",W),()=>{window.removeEventListener("beforeunload",W)}},[n]);const G=W=>{E(ne=>[{text:`[${new Date().toISOString()}] ${W}`},...ne])},U=(W,ne,le)=>{const ge=ne-le,D=Math.round(ge/ne*100);E(Z=>[{text:`[${new Date().toISOString()}] Successfully optimized asset: ${W} `,originalSize:ne,optimizedSize:le,savingsPercentage:D},...Z])},J=async(W,ne)=>{const le={optimized:0,skipped:0,failed:0,originalSizeTotal:0,optimizedSizeTotal:0,optimizedAssets:[],skippedAssets:[],failedAssets:[]};let ge=0;g(W.length),h(0);const D=[...W];let Z=0;const ee=ne?void 0:i.currentUserAccessToken,Ee=()=>{ge++,h(ge)},Te=async()=>{const C=[];for(;D.length>0&&Z<M;){const V=D.shift();if(!V)continue;Z++,le.originalSizeTotal+=V.size,X(V);const K=CC({asset:V,settings:O,addLog:G,addSizeComparisonLog:U,isPreview:ne,apiToken:ee,environment:i.environment,baseUrl:i.cmaBaseUrl,acc:le,shouldDelay:Z>1}).then(()=>{Ee(),Z--});C.push(K)}if(await Promise.all(C),D.length>0)return Te()};return await Te(),{optimized:le.optimized,skipped:le.skipped,failed:le.failed,totalAssets:W.length,optimizedAssets:le.optimizedAssets,skippedAssets:le.skippedAssets,failedAssets:le.failedAssets,originalSizeTotal:le.originalSizeTotal,optimizedSizeTotal:le.optimizedSizeTotal}},de=async()=>{try{be(),s(!0),d(!0),G("Starting asset optimization preview...");const W=Uv({apiToken:i.currentUserAccessToken??"",environment:i.environment,baseUrl:i.cmaBaseUrl});G("Fetching assets from DatoCMS for preview...");const ne=O.largeAssetThreshold*1024*1024,{assets:le,count:ge}=await Gv(W,ne);G(`Found ${ge} assets larger than ${O.largeAssetThreshold}MB.`),G(`Found ${le.length} optimizable images.`);const D=await J(le,!0);b({optimized:D.optimized,skipped:D.skipped,failed:D.failed,totalAssets:ge,optimizedAssets:D.optimizedAssets,skippedAssets:D.skippedAssets,failedAssets:D.failedAssets}),G(`Optimization preview complete. Optimized: ${D.optimized}, Skipped: ${D.skipped}, Failed: ${D.failed}`),Bv(D,G),G("Asset optimization preview completed!"),i.notice("Asset optimization preview completed!")}catch(W){G(`Error during optimization preview: ${W instanceof Error?W.message:String(W)}`),i.alert(`Error during optimization preview: ${W instanceof Error?W.message:String(W)}`),s(!1)}finally{d(!1)}},ze=async()=>{try{if(await i.openConfirm({title:"Confirm Asset Optimization",content:"WARNING: This is a destructive action that will permanently replace all assets that fall into the optimization thresholds. This action is non-reversible and original assets cannot be recovered once replaced. Are you sure you want to proceed?",choices:[{label:"Proceed to Final Confirmation",value:"confirm",intent:"positive"}],cancel:{label:"Cancel",value:!1}})!=="confirm"||await i.openConfirm({title:"Final Confirmation Required",content:`ARE YOU ABSOLUTELY SURE? This will immediately replace your original assets with optimized versions. Your original assets will be PERMANENTLY DELETED and CANNOT be recovered. This may affect the visual quality of your images if not configured correctly.
13
13
 
14
- We STRONGLY RECOMMEND testing this first in a sandbox environment, so you can fine-tune the thresholds and optimization settings to your liking, make sure everything works with your project, and then promote the sandbox environment once you are satisfied with the results.`,choices:[{label:"Yes, Replace My Assets",value:"confirm",intent:"positive"}],cancel:{label:"No, Cancel Operation",value:!1}})!=="confirm")return;be(),l(!0),d(!0),G("Starting asset optimization process...");const le=qv({apiToken:i.currentUserAccessToken??"",environment:i.environment});G("Fetching assets from DatoCMS...");const ge=O.largeAssetThreshold*1024*1024,{assets:D,count:Z}=await Bv(le,ge);G(`Found ${Z} assets larger than ${O.largeAssetThreshold}MB.`),G(`Found ${D.length} optimizable images.`);const ee=await J(D,!1);b({optimized:ee.optimized,skipped:ee.skipped,failed:ee.failed,totalAssets:Z,optimizedAssets:ee.optimizedAssets,skippedAssets:ee.skippedAssets,failedAssets:ee.failedAssets}),G(`Optimization complete. Optimized: ${ee.optimized}, Skipped: ${ee.skipped}, Failed: ${ee.failed}`),Hv(ee,G),G("Asset optimization process completed!"),i.notice("Asset optimization process completed!")}catch(W){G(`Error during optimization process: ${W instanceof Error?W.message:String(W)}`),i.alert(`Error during optimization process: ${W instanceof Error?W.message:String(W)}`)}finally{l(!1),d(!1)}},be=()=>{l(!1),s(!1),d(!1),b(null),E([]),m(0),g(0),X(void 0)};return T.jsx(Xv,{ctx:i,children:T.jsxs("div",{className:k.container,children:[T.jsx("h1",{className:k.title,children:"Asset Optimization"}),!f&&!y&&T.jsx("div",{className:k.settingsContainer,children:T.jsx(_C,{settings:O,onSettingsChange:R,onStartOptimization:ze,onPreviewOptimization:de,ctx:i})}),T.jsx(rC,{current:v,total:h,isVisible:f,assetSizeCategory:O.veryLargeAssetThreshold>0?"large and very large":"large",currentAsset:j,isPreview:u}),y&&T.jsxs(T.Fragment,{children:[T.jsx(oC,{result:y,setSelectedCategory:Q,resetState:be,largeAssetThreshold:O.largeAssetThreshold,isPreview:u}),Y&&T.jsx(iC,{assets:Y==="optimized"?y.optimizedAssets:Y==="skipped"?y.skippedAssets:y.failedAssets,category:Y,onClose:()=>Q(null),ctx:i})]}),T.jsx(W2,{log:S})]})})};var Hc={exports:{}},Hr={},Bc={exports:{}},Gc={};var Gv;function xC(){return Gv||(Gv=1,(function(i){function n(D,Z){var ee=D.length;D.push(Z);e:for(;0<ee;){var Ee=ee-1>>>1,we=D[Ee];if(0<s(we,Z))D[Ee]=Z,D[ee]=we,ee=Ee;else break e}}function l(D){return D.length===0?null:D[0]}function u(D){if(D.length===0)return null;var Z=D[0],ee=D.pop();if(ee!==Z){D[0]=ee;e:for(var Ee=0,we=D.length,C=we>>>1;Ee<C;){var V=2*(Ee+1)-1,K=D[V],te=V+1,ce=D[te];if(0>s(K,ee))te<we&&0>s(ce,K)?(D[Ee]=ce,D[te]=ee,Ee=te):(D[Ee]=K,D[V]=ee,Ee=V);else if(te<we&&0>s(ce,ee))D[Ee]=ce,D[te]=ee,Ee=te;else break e}}return Z}function s(D,Z){var ee=D.sortIndex-Z.sortIndex;return ee!==0?ee:D.id-Z.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,v=d.now();i.unstable_now=function(){return d.now()-v}}var m=[],h=[],g=1,y=null,b=3,S=!1,E=!1,O=!1,R=!1,j=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function Q(D){for(var Z=l(h);Z!==null;){if(Z.callback===null)u(h);else if(Z.startTime<=D)u(h),Z.sortIndex=Z.expirationTime,n(m,Z);else break;Z=l(h)}}function M(D){if(O=!1,Q(D),!E)if(l(m)!==null)E=!0,G||(G=!0,W());else{var Z=l(h);Z!==null&&ge(M,Z.startTime-D)}}var G=!1,U=-1,J=5,de=-1;function ze(){return R?!0:!(i.unstable_now()-de<J)}function be(){if(R=!1,G){var D=i.unstable_now();de=D;var Z=!0;try{e:{E=!1,O&&(O=!1,X(U),U=-1),S=!0;var ee=b;try{t:{for(Q(D),y=l(m);y!==null&&!(y.expirationTime>D&&ze());){var Ee=y.callback;if(typeof Ee=="function"){y.callback=null,b=y.priorityLevel;var we=Ee(y.expirationTime<=D);if(D=i.unstable_now(),typeof we=="function"){y.callback=we,Q(D),Z=!0;break t}y===l(m)&&u(m),Q(D)}else u(m);y=l(m)}if(y!==null)Z=!0;else{var C=l(h);C!==null&&ge(M,C.startTime-D),Z=!1}}break e}finally{y=null,b=ee,S=!1}Z=void 0}}finally{Z?W():G=!1}}}var W;if(typeof Y=="function")W=function(){Y(be)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,le=ne.port2;ne.port1.onmessage=be,W=function(){le.postMessage(null)}}else W=function(){j(be,0)};function ge(D,Z){U=j(function(){D(i.unstable_now())},Z)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_next=function(D){switch(b){case 1:case 2:case 3:var Z=3;break;default:Z=b}var ee=b;b=Z;try{return D()}finally{b=ee}},i.unstable_requestPaint=function(){R=!0},i.unstable_runWithPriority=function(D,Z){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ee=b;b=D;try{return Z()}finally{b=ee}},i.unstable_scheduleCallback=function(D,Z,ee){var Ee=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Ee+ee:Ee):ee=Ee,D){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=ee+we,D={id:g++,callback:Z,priorityLevel:D,startTime:ee,expirationTime:we,sortIndex:-1},ee>Ee?(D.sortIndex=ee,n(h,D),l(m)===null&&D===l(h)&&(O?(X(U),U=-1):O=!0,ge(M,ee-Ee))):(D.sortIndex=we,n(m,D),E||S||(E=!0,G||(G=!0,W()))),D},i.unstable_shouldYield=ze,i.unstable_wrapCallback=function(D){var Z=b;return function(){var ee=b;b=Z;try{return D.apply(this,arguments)}finally{b=ee}}}})(Gc)),Gc}var Iv;function AC(){return Iv||(Iv=1,Bc.exports=xC()),Bc.exports}var Yv;function zC(){if(Yv)return Hr;Yv=1;var i=AC(),n=cf(),l=Qv();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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(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 v(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 m(e){if(f(e)!==e)throw Error(u(188))}function h(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return m(o),e;if(c===r)return m(o),t;c=c.sibling}throw Error(u(188))}if(a.return!==r.return)a=o,r=c;else{for(var p=!1,_=o.child;_;){if(_===a){p=!0,a=o,r=c;break}if(_===r){p=!0,r=o,a=c;break}_=_.sibling}if(!p){for(_=c.child;_;){if(_===a){p=!0,a=c,r=o;break}if(_===r){p=!0,r=c,a=o;break}_=_.sibling}if(!p)throw Error(u(189))}}if(a.alternate!==r)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),ze=Symbol.for("react.memo_cache_sentinel"),be=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=be&&e[be]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case j:return"Profiler";case R:return"StrictMode";case M:return"Suspense";case G:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case Y:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ge=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Ee=[],we=-1;function C(e){return{current:e}}function V(e){0>we||(e.current=Ee[we],Ee[we]=null,we--)}function K(e,t){we++,Ee[we]=e.current,e.current=t}var te=C(null),ce=C(null),fe=C(null),ue=C(null);function De(e,t){switch(K(fe,t),K(ce,e),K(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fm(t),e=km(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(te),K(te,e)}function Re(){V(te),V(ce),V(fe)}function nn(e){e.memoizedState!==null&&K(ue,e);var t=te.current,a=km(t,e.type);t!==a&&(K(ce,e),K(te,a))}function ha(e){ce.current===e&&(V(te),V(ce)),ue.current===e&&(V(ue),zr._currentValue=ee)}var Ga,Qr;function an(e){if(Ga===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ga=t&&t[1]||"",Qr=-1<a.stack.indexOf(`
14
+ We STRONGLY RECOMMEND testing this first in a sandbox environment, so you can fine-tune the thresholds and optimization settings to your liking, make sure everything works with your project, and then promote the sandbox environment once you are satisfied with the results.`,choices:[{label:"Yes, Replace My Assets",value:"confirm",intent:"positive"}],cancel:{label:"No, Cancel Operation",value:!1}})!=="confirm")return;be(),l(!0),d(!0),G("Starting asset optimization process...");const le=Uv({apiToken:i.currentUserAccessToken??"",environment:i.environment,baseUrl:i.cmaBaseUrl});G("Fetching assets from DatoCMS...");const ge=O.largeAssetThreshold*1024*1024,{assets:D,count:Z}=await Gv(le,ge);G(`Found ${Z} assets larger than ${O.largeAssetThreshold}MB.`),G(`Found ${D.length} optimizable images.`);const ee=await J(D,!1);b({optimized:ee.optimized,skipped:ee.skipped,failed:ee.failed,totalAssets:Z,optimizedAssets:ee.optimizedAssets,skippedAssets:ee.skippedAssets,failedAssets:ee.failedAssets}),G(`Optimization complete. Optimized: ${ee.optimized}, Skipped: ${ee.skipped}, Failed: ${ee.failed}`),Bv(ee,G),G("Asset optimization process completed!"),i.notice("Asset optimization process completed!")}catch(W){G(`Error during optimization process: ${W instanceof Error?W.message:String(W)}`),i.alert(`Error during optimization process: ${W instanceof Error?W.message:String(W)}`)}finally{l(!1),d(!1)}},be=()=>{l(!1),s(!1),d(!1),b(null),E([]),h(0),g(0),X(void 0)};return w.jsx(Qv,{ctx:i,children:w.jsxs("div",{className:k.container,children:[w.jsx("h1",{className:k.title,children:"Asset Optimization"}),!f&&!y&&w.jsx("div",{className:k.settingsContainer,children:w.jsx(SC,{settings:O,onSettingsChange:R,onStartOptimization:ze,onPreviewOptimization:de,ctx:i})}),w.jsx(lC,{current:v,total:m,isVisible:f,assetSizeCategory:O.veryLargeAssetThreshold>0?"large and very large":"large",currentAsset:j,isPreview:u}),y&&w.jsxs(w.Fragment,{children:[w.jsx(cC,{result:y,setSelectedCategory:Q,resetState:be,largeAssetThreshold:O.largeAssetThreshold,isPreview:u}),Y&&w.jsx(rC,{assets:Y==="optimized"?y.optimizedAssets:Y==="skipped"?y.skippedAssets:y.failedAssets,category:Y,onClose:()=>Q(null),ctx:i})]}),w.jsx(eC,{log:S})]})})};var Bc={exports:{}},Hr={},Gc={exports:{}},Ic={};var Iv;function AC(){return Iv||(Iv=1,(function(i){function n(D,Z){var ee=D.length;D.push(Z);e:for(;0<ee;){var Ee=ee-1>>>1,Te=D[Ee];if(0<s(Te,Z))D[Ee]=Z,D[ee]=Te,ee=Ee;else break e}}function l(D){return D.length===0?null:D[0]}function u(D){if(D.length===0)return null;var Z=D[0],ee=D.pop();if(ee!==Z){D[0]=ee;e:for(var Ee=0,Te=D.length,C=Te>>>1;Ee<C;){var V=2*(Ee+1)-1,K=D[V],te=V+1,ce=D[te];if(0>s(K,ee))te<Te&&0>s(ce,K)?(D[Ee]=ce,D[te]=ee,Ee=te):(D[Ee]=K,D[V]=ee,Ee=V);else if(te<Te&&0>s(ce,ee))D[Ee]=ce,D[te]=ee,Ee=te;else break e}}return Z}function s(D,Z){var ee=D.sortIndex-Z.sortIndex;return ee!==0?ee:D.id-Z.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,v=d.now();i.unstable_now=function(){return d.now()-v}}var h=[],m=[],g=1,y=null,b=3,S=!1,E=!1,O=!1,R=!1,j=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function Q(D){for(var Z=l(m);Z!==null;){if(Z.callback===null)u(m);else if(Z.startTime<=D)u(m),Z.sortIndex=Z.expirationTime,n(h,Z);else break;Z=l(m)}}function M(D){if(O=!1,Q(D),!E)if(l(h)!==null)E=!0,G||(G=!0,W());else{var Z=l(m);Z!==null&&ge(M,Z.startTime-D)}}var G=!1,U=-1,J=5,de=-1;function ze(){return R?!0:!(i.unstable_now()-de<J)}function be(){if(R=!1,G){var D=i.unstable_now();de=D;var Z=!0;try{e:{E=!1,O&&(O=!1,X(U),U=-1),S=!0;var ee=b;try{t:{for(Q(D),y=l(h);y!==null&&!(y.expirationTime>D&&ze());){var Ee=y.callback;if(typeof Ee=="function"){y.callback=null,b=y.priorityLevel;var Te=Ee(y.expirationTime<=D);if(D=i.unstable_now(),typeof Te=="function"){y.callback=Te,Q(D),Z=!0;break t}y===l(h)&&u(h),Q(D)}else u(h);y=l(h)}if(y!==null)Z=!0;else{var C=l(m);C!==null&&ge(M,C.startTime-D),Z=!1}}break e}finally{y=null,b=ee,S=!1}Z=void 0}}finally{Z?W():G=!1}}}var W;if(typeof Y=="function")W=function(){Y(be)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,le=ne.port2;ne.port1.onmessage=be,W=function(){le.postMessage(null)}}else W=function(){j(be,0)};function ge(D,Z){U=j(function(){D(i.unstable_now())},Z)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_next=function(D){switch(b){case 1:case 2:case 3:var Z=3;break;default:Z=b}var ee=b;b=Z;try{return D()}finally{b=ee}},i.unstable_requestPaint=function(){R=!0},i.unstable_runWithPriority=function(D,Z){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ee=b;b=D;try{return Z()}finally{b=ee}},i.unstable_scheduleCallback=function(D,Z,ee){var Ee=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Ee+ee:Ee):ee=Ee,D){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=ee+Te,D={id:g++,callback:Z,priorityLevel:D,startTime:ee,expirationTime:Te,sortIndex:-1},ee>Ee?(D.sortIndex=ee,n(m,D),l(h)===null&&D===l(m)&&(O?(X(U),U=-1):O=!0,ge(M,ee-Ee))):(D.sortIndex=Te,n(h,D),E||S||(E=!0,G||(G=!0,W()))),D},i.unstable_shouldYield=ze,i.unstable_wrapCallback=function(D){var Z=b;return function(){var ee=b;b=Z;try{return D.apply(this,arguments)}finally{b=ee}}}})(Ic)),Ic}var Yv;function zC(){return Yv||(Yv=1,Gc.exports=AC()),Gc.exports}var $v;function MC(){if($v)return Hr;$v=1;var i=zC(),n=cf(),l=Zv();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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(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 v(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(f(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return h(o),e;if(c===r)return h(o),t;c=c.sibling}throw Error(u(188))}if(a.return!==r.return)a=o,r=c;else{for(var p=!1,_=o.child;_;){if(_===a){p=!0,a=o,r=c;break}if(_===r){p=!0,r=o,a=c;break}_=_.sibling}if(!p){for(_=c.child;_;){if(_===a){p=!0,a=c,r=o;break}if(_===r){p=!0,r=c,a=o;break}_=_.sibling}if(!p)throw Error(u(189))}}if(a.alternate!==r)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),ze=Symbol.for("react.memo_cache_sentinel"),be=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=be&&e[be]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case j:return"Profiler";case R:return"StrictMode";case M:return"Suspense";case G:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case Y:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ge=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Ee=[],Te=-1;function C(e){return{current:e}}function V(e){0>Te||(e.current=Ee[Te],Ee[Te]=null,Te--)}function K(e,t){Te++,Ee[Te]=e.current,e.current=t}var te=C(null),ce=C(null),fe=C(null),ue=C(null);function De(e,t){switch(K(fe,t),K(ce,e),K(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fm(t),e=km(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(te),K(te,e)}function Re(){V(te),V(ce),V(fe)}function nn(e){e.memoizedState!==null&&K(ue,e);var t=te.current,a=km(t,e.type);t!==a&&(K(ce,e),K(te,a))}function ha(e){ce.current===e&&(V(te),V(ce)),ue.current===e&&(V(ue),zr._currentValue=ee)}var Ga,Qr;function an(e){if(Ga===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ga=t&&t[1]||"",Qr=-1<a.stack.indexOf(`
15
15
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
16
- `+Ga+e+Qr}var Bi=!1;function ts(e,t){if(!e||Bi)return"";Bi=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={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(H){var q=H}Reflect.construct(e,[],P)}else{try{P.call()}catch(H){q=H}e.call(P.prototype)}}else{try{throw Error()}catch(H){q=H}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(H){if(H&&q&&typeof H.stack=="string")return[H.stack,q.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),p=c[0],_=c[1];if(p&&_){var w=p.split(`
16
+ `+Ga+e+Qr}var Bi=!1;function ns(e,t){if(!e||Bi)return"";Bi=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={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(H){var q=H}Reflect.construct(e,[],P)}else{try{P.call()}catch(H){q=H}e.call(P.prototype)}}else{try{throw Error()}catch(H){q=H}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(H){if(H&&q&&typeof H.stack=="string")return[H.stack,q.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),p=c[0],_=c[1];if(p&&_){var T=p.split(`
17
17
  `),N=_.split(`
18
- `);for(o=r=0;r<w.length&&!w[r].includes("DetermineComponentFrameRoot");)r++;for(;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;if(r===w.length||o===N.length)for(r=w.length-1,o=N.length-1;1<=r&&0<=o&&w[r]!==N[o];)o--;for(;1<=r&&0<=o;r--,o--)if(w[r]!==N[o]){if(r!==1||o!==1)do if(r--,o--,0>o||w[r]!==N[o]){var I=`
19
- `+w[r].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=r&&0<=o);break}}}finally{Bi=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?an(a):""}function Py(e,t){switch(e.tag){case 26:case 27:case 5:return an(e.type);case 16:return an("Lazy");case 13:return e.child!==t&&t!==null?an("Suspense Fallback"):an("Suspense");case 19:return an("SuspenseList");case 0:case 15:return ts(e.type,!1);case 11:return ts(e.type.render,!1);case 1:return ts(e.type,!0);case 31:return an("Activity");default:return""}}function wf(e){try{var t="",a=null;do t+=Py(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
18
+ `);for(o=r=0;r<T.length&&!T[r].includes("DetermineComponentFrameRoot");)r++;for(;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;if(r===T.length||o===N.length)for(r=T.length-1,o=N.length-1;1<=r&&0<=o&&T[r]!==N[o];)o--;for(;1<=r&&0<=o;r--,o--)if(T[r]!==N[o]){if(r!==1||o!==1)do if(r--,o--,0>o||T[r]!==N[o]){var I=`
19
+ `+T[r].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=r&&0<=o);break}}}finally{Bi=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?an(a):""}function Fy(e,t){switch(e.tag){case 26:case 27:case 5:return an(e.type);case 16:return an("Lazy");case 13:return e.child!==t&&t!==null?an("Suspense Fallback"):an("Suspense");case 19:return an("SuspenseList");case 0:case 15:return ns(e.type,!1);case 11:return ns(e.type.render,!1);case 1:return ns(e.type,!0);case 31:return an("Activity");default:return""}}function Tf(e){try{var t="",a=null;do t+=Fy(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
20
20
  Error generating stack: `+r.message+`
21
- `+r.stack}}var ns=Object.prototype.hasOwnProperty,as=i.unstable_scheduleCallback,is=i.unstable_cancelCallback,Fy=i.unstable_shouldYield,ky=i.unstable_requestPaint,Ct=i.unstable_now,Xy=i.unstable_getCurrentPriorityLevel,Tf=i.unstable_ImmediatePriority,Of=i.unstable_UserBlockingPriority,Zr=i.unstable_NormalPriority,Qy=i.unstable_LowPriority,Cf=i.unstable_IdlePriority,Zy=i.log,Ky=i.unstable_setDisableYieldValue,Gi=null,xt=null;function Bn(e){if(typeof Zy=="function"&&Ky(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Gi,e)}catch{}}var At=Math.clz32?Math.clz32:eb,Jy=Math.log,Wy=Math.LN2;function eb(e){return e>>>=0,e===0?32:31-(Jy(e)/Wy|0)|0}var Kr=256,Jr=262144,Wr=4194304;function ma(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 r=e.pendingLanes;if(r===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var _=r&134217727;return _!==0?(r=_&~c,r!==0?o=ma(r):(p&=_,p!==0?o=ma(p):a||(a=_&~e,a!==0&&(o=ma(a))))):(_=r&~c,_!==0?o=ma(_):p!==0?o=ma(p):a||(a=r&~e,a!==0&&(o=ma(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function Ii(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tb(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 xf(){var e=Wr;return Wr<<=1,(Wr&62914560)===0&&(Wr=4194304),e}function rs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Yi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nb(e,t,a,r,o,c){var p=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,w=e.expirationTimes,N=e.hiddenUpdates;for(a=p&~a;0<a;){var I=31-At(a),P=1<<I;_[I]=0,w[I]=-1;var q=N[I];if(q!==null)for(N[I]=null,I=0;I<q.length;I++){var H=q[I];H!==null&&(H.lane&=-536870913)}a&=~P}r!==0&&Af(e,r,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function Af(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-At(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function zf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-At(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}function Mf(e,t){var a=t&-t;return a=(a&42)!==0?1:ls(a),(a&(e.suspendedLanes|t))!==0?0:a}function ls(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 us(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Df(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:vp(e.type))}function Rf(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var Gn=Math.random().toString(36).slice(2),ot="__reactFiber$"+Gn,yt="__reactProps$"+Gn,Ia="__reactContainer$"+Gn,ss="__reactEvents$"+Gn,ab="__reactListeners$"+Gn,ib="__reactHandles$"+Gn,Lf="__reactResources$"+Gn,$i="__reactMarker$"+Gn;function os(e){delete e[ot],delete e[yt],delete e[ss],delete e[ab],delete e[ib]}function Ya(e){var t=e[ot];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ia]||a[ot]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ep(e);e!==null;){if(a=e[ot])return a;e=ep(e)}return t}e=a,a=e.parentNode}return null}function $a(e){if(e=e[ot]||e[Ia]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Pa(e){var t=e[Lf];return t||(t=e[Lf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[$i]=!0}var jf=new Set,Nf={};function pa(e,t){Fa(e,t),Fa(e+"Capture",t)}function Fa(e,t){for(Nf[e]=t,e=0;e<t.length;e++)jf.add(t[e])}var rb=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]*$"),qf={},Uf={};function lb(e){return ns.call(Uf,e)?!0:ns.call(qf,e)?!1:rb.test(e)?Uf[e]=!0:(qf[e]=!0,!1)}function tl(e,t,a){if(lb(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="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,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ub(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){a=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(p){a=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cs(e){if(!e._valueTracker){var t=Vf(e)?"checked":"value";e._valueTracker=ub(e,t,""+e[t])}}function Hf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Vf(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function al(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 sb=/[\n"\\]/g;function Vt(e){return e.replace(sb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fs(e,t,a,r,o,c,p,_){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?ds(e,p,Ut(t)):a!=null?ds(e,p,Ut(a)):r!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+Ut(_):e.removeAttribute("name")}function Bf(e,t,a,r,o,c,p,_){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){cs(e);return}a=a!=null?""+Ut(a):"",t=t!=null?""+Ut(t):a,_||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=_?e.checked:!!r,e.defaultChecked=!!r,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),cs(e)}function ds(e,t,a){t==="number"&&al(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ka(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Ut(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Gf(e,t,a){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ut(a):""}function If(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(u(92));if(ge(r)){if(1<r.length)throw Error(u(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=Ut(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),cs(e)}function Xa(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ob=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 Yf(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||ob.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function $f(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&a[o]!==r&&Yf(e,o,r)}else for(var c in t)t.hasOwnProperty(c)&&Yf(e,c,t[c])}function hs(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 cb=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"]]),fb=/^[\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 il(e){return fb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function pn(){}var ms=null;function ps(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,Za=null;function Pf(e){var t=$a(e);if(t&&(e=t.stateNode)){var a=e[yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(fs(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="'+Vt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=r[yt]||null;if(!o)throw Error(u(90));fs(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&Hf(r)}break e;case"textarea":Gf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ka(e,!!a.multiple,t,!1)}}}var vs=!1;function Ff(e,t,a){if(vs)return e(t,a);vs=!0;try{var r=e(t);return r}finally{if(vs=!1,(Qa!==null||Za!==null)&&(Pl(),Qa&&(t=Qa,e=Za,Za=Qa=null,Pf(t),e)))for(t=0;t<e.length;t++)Pf(e[t])}}function Fi(e,t){var a=e.stateNode;if(a===null)return null;var r=a[yt]||null;if(r===null)return null;a=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;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"),gs=!1;if(vn)try{var ki={};Object.defineProperty(ki,"passive",{get:function(){gs=!0}}),window.addEventListener("test",ki,ki),window.removeEventListener("test",ki,ki)}catch{gs=!1}var In=null,ys=null,rl=null;function kf(){if(rl)return rl;var e,t=ys,a=t.length,r,o="value"in In?In.value:In.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(r=1;r<=p&&t[a-r]===o[c-r];r++);return rl=o.slice(e,1<r?1-r: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 Xf(){return!1}function bt(e){function t(a,r,o,c,p){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(a=e[_],this[_]=a?a(c):c[_]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ul:Xf,this.isPropagationStopped=Xf,this}return y(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 va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sl=bt(va),Xi=y({},va,{view:0,detail:0}),db=bt(Xi),bs,_s,Qi,ol=y({},Xi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Es,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!==Qi&&(Qi&&e.type==="mousemove"?(bs=e.screenX-Qi.screenX,_s=e.screenY-Qi.screenY):_s=bs=0,Qi=e),bs)},movementY:function(e){return"movementY"in e?e.movementY:_s}}),Qf=bt(ol),hb=y({},ol,{dataTransfer:0}),mb=bt(hb),pb=y({},Xi,{relatedTarget:0}),Ss=bt(pb),vb=y({},va,{animationName:0,elapsedTime:0,pseudoElement:0}),gb=bt(vb),yb=y({},va,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bb=bt(yb),_b=y({},va,{data:0}),Zf=bt(_b),Sb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Eb={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"},wb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wb[e])?!!t[e]:!1}function Es(){return Tb}var Ob=y({},Xi,{key:function(e){if(e.key){var t=Sb[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"?Eb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Es,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}}),Cb=bt(Ob),xb=y({},ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kf=bt(xb),Ab=y({},Xi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Es}),zb=bt(Ab),Mb=y({},va,{propertyName:0,elapsedTime:0,pseudoElement:0}),Db=bt(Mb),Rb=y({},ol,{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}),Lb=bt(Rb),jb=y({},va,{newState:0,oldState:0}),Nb=bt(jb),qb=[9,13,27,32],ws=vn&&"CompositionEvent"in window,Zi=null;vn&&"documentMode"in document&&(Zi=document.documentMode);var Ub=vn&&"TextEvent"in window&&!Zi,Jf=vn&&(!ws||Zi&&8<Zi&&11>=Zi),Wf=" ",ed=!1;function td(e,t){switch(e){case"keyup":return qb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function Vb(e,t){switch(e){case"compositionend":return nd(t);case"keypress":return t.which!==32?null:(ed=!0,Wf);case"textInput":return e=t.data,e===Wf&&ed?null:e;default:return null}}function Hb(e,t){if(Ka)return e==="compositionend"||!ws&&td(e,t)?(e=kf(),rl=ys=In=null,Ka=!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 Jf&&t.locale!=="ko"?null:t.data;default:return null}}var Bb={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 ad(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bb[e.type]:t==="textarea"}function id(e,t,a,r){Qa?Za?Za.push(r):Za=[r]:Qa=r,t=Jl(t,"onChange"),0<t.length&&(a=new sl("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Ki=null,Ji=null;function Gb(e){Bm(e,0)}function cl(e){var t=Pi(e);if(Hf(t))return e}function rd(e,t){if(e==="change")return t}var ld=!1;if(vn){var Ts;if(vn){var Os="oninput"in document;if(!Os){var ud=document.createElement("div");ud.setAttribute("oninput","return;"),Os=typeof ud.oninput=="function"}Ts=Os}else Ts=!1;ld=Ts&&(!document.documentMode||9<document.documentMode)}function sd(){Ki&&(Ki.detachEvent("onpropertychange",od),Ji=Ki=null)}function od(e){if(e.propertyName==="value"&&cl(Ji)){var t=[];id(t,Ji,e,ps(e)),Ff(Gb,t)}}function Ib(e,t,a){e==="focusin"?(sd(),Ki=t,Ji=a,Ki.attachEvent("onpropertychange",od)):e==="focusout"&&sd()}function Yb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cl(Ji)}function $b(e,t){if(e==="click")return cl(t)}function Pb(e,t){if(e==="input"||e==="change")return cl(t)}function Fb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:Fb;function Wi(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!ns.call(t,o)||!zt(e[o],t[o]))return!1}return!0}function cd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fd(e,t){var a=cd(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=cd(a)}}function dd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=al(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=al(e.document)}return t}function Cs(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 kb=vn&&"documentMode"in document&&11>=document.documentMode,Ja=null,xs=null,er=null,As=!1;function md(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;As||Ja==null||Ja!==al(r)||(r=Ja,"selectionStart"in r&&Cs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),er&&Wi(er,r)||(er=r,r=Jl(xs,"onSelect"),0<r.length&&(t=new sl("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Ja)))}function ga(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Wa={animationend:ga("Animation","AnimationEnd"),animationiteration:ga("Animation","AnimationIteration"),animationstart:ga("Animation","AnimationStart"),transitionrun:ga("Transition","TransitionRun"),transitionstart:ga("Transition","TransitionStart"),transitioncancel:ga("Transition","TransitionCancel"),transitionend:ga("Transition","TransitionEnd")},zs={},pd={};vn&&(pd=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function ya(e){if(zs[e])return zs[e];if(!Wa[e])return e;var t=Wa[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in pd)return zs[e]=t[a];return e}var vd=ya("animationend"),gd=ya("animationiteration"),yd=ya("animationstart"),Xb=ya("transitionrun"),Qb=ya("transitionstart"),Zb=ya("transitioncancel"),bd=ya("transitionend"),_d=new Map,Ms="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(" ");Ms.push("scrollEnd");function Kt(e,t){_d.set(e,t),pa(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)},Ht=[],ei=0,Ds=0;function dl(){for(var e=ei,t=Ds=ei=0;t<e;){var a=Ht[t];Ht[t++]=null;var r=Ht[t];Ht[t++]=null;var o=Ht[t];Ht[t++]=null;var c=Ht[t];if(Ht[t++]=null,r!==null&&o!==null){var p=r.pending;p===null?o.next=o:(o.next=p.next,p.next=o),r.pending=o}c!==0&&Sd(a,o,c)}}function hl(e,t,a,r){Ht[ei++]=e,Ht[ei++]=t,Ht[ei++]=a,Ht[ei++]=r,Ds|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Rs(e,t,a,r){return hl(e,t,a,r),ml(e)}function ba(e,t){return hl(e,null,null,t),ml(e)}function Sd(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,r=c.alternate,r!==null&&(r.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-At(a),e=c.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=a|536870912),c):null}function ml(e){if(50<Er)throw Er=0,Io=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ti={};function Kb(e,t,a,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,a,r){return new Kb(e,t,a,r)}function Ls(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gn(e,t){var a=e.alternate;return a===null?(a=Mt(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 Ed(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,r,o,c){var p=0;if(r=e,typeof e=="function")Ls(e)&&(p=1);else if(typeof e=="string")p=n_(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=Mt(31,a,t,o),e.elementType=de,e.lanes=c,e;case O:return _a(a.children,o,c,t);case R:p=8,o|=24;break;case j:return e=Mt(12,a,t,o|2),e.elementType=j,e.lanes=c,e;case M:return e=Mt(13,a,t,o),e.elementType=M,e.lanes=c,e;case G:return e=Mt(19,a,t,o),e.elementType=G,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:p=10;break e;case X:p=9;break e;case Q:p=11;break e;case U:p=14;break e;case J:p=16,r=null;break e}p=29,a=Error(u(130,e===null?"null":typeof e,"")),r=null}return t=Mt(p,a,t,o),t.elementType=e,t.type=r,t.lanes=c,t}function _a(e,t,a,r){return e=Mt(7,e,r,t),e.lanes=a,e}function js(e,t,a){return e=Mt(6,e,null,t),e.lanes=a,e}function wd(e){var t=Mt(18,null,null,0);return t.stateNode=e,t}function Ns(e,t,a){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Td=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var a=Td.get(e);return a!==void 0?a:(t={value:e,source:t,stack:wf(t)},Td.set(e,t),t)}return{value:e,source:t,stack:wf(t)}}var ni=[],ai=0,vl=null,tr=0,Gt=[],It=0,Yn=null,rn=1,ln="";function yn(e,t){ni[ai++]=tr,ni[ai++]=vl,vl=e,tr=t}function Od(e,t,a){Gt[It++]=rn,Gt[It++]=ln,Gt[It++]=Yn,Yn=e;var r=rn;e=ln;var o=32-At(r)-1;r&=~(1<<o),a+=1;var c=32-At(t)+o;if(30<c){var p=o-o%5;c=(r&(1<<p)-1).toString(32),r>>=p,o-=p,rn=1<<32-At(t)+o|a<<o|r,ln=c+e}else rn=1<<c|a<<o|r,ln=e}function qs(e){e.return!==null&&(yn(e,1),Od(e,1,0))}function Us(e){for(;e===vl;)vl=ni[--ai],ni[ai]=null,tr=ni[--ai],ni[ai]=null;for(;e===Yn;)Yn=Gt[--It],Gt[It]=null,ln=Gt[--It],Gt[It]=null,rn=Gt[--It],Gt[It]=null}function Cd(e,t){Gt[It++]=rn,Gt[It++]=ln,Gt[It++]=Yn,rn=t.id,ln=t.overflow,Yn=e}var ct=null,Fe=null,Me=!1,$n=null,Yt=!1,Vs=Error(u(519));function Pn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nr(Bt(t,e)),Vs}function xd(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[ot]=e,t[yt]=r,a){case"dialog":Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":case"embed":Ce("load",t);break;case"video":case"audio":for(a=0;a<Tr.length;a++)Ce(Tr[a],t);break;case"source":Ce("error",t);break;case"img":case"image":case"link":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"input":Ce("invalid",t),Bf(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ce("invalid",t);break;case"textarea":Ce("invalid",t),If(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||$m(t.textContent,a)?(r.popover!=null&&(Ce("beforetoggle",t),Ce("toggle",t)),r.onScroll!=null&&Ce("scroll",t),r.onScrollEnd!=null&&Ce("scrollend",t),r.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||Pn(e,!0)}function Ad(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:ct=ct.return}}function ii(e){if(e!==ct)return!1;if(!Me)return Ad(e),Me=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ac(e.type,e.memoizedProps)),a=!a),a&&Fe&&Pn(e),Ad(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Fe=Wm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Fe=Wm(e)}else t===27?(t=Fe,ra(e.type)?(e=sc,sc=null,Fe=e):Fe=t):Fe=ct?Pt(e.stateNode.nextSibling):null;return!0}function Sa(){Fe=ct=null,Me=!1}function Hs(){var e=$n;return e!==null&&(wt===null?wt=e:wt.push.apply(wt,e),$n=null),e}function nr(e){$n===null?$n=[e]:$n.push(e)}var Bs=C(null),Ea=null,bn=null;function Fn(e,t,a){K(Bs,t._currentValue),t._currentValue=a}function _n(e){e._currentValue=Bs.current,V(Bs)}function Gs(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Is(e,t,a,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var _=c;c=o;for(var w=0;w<t.length;w++)if(_.context===t[w]){c.lanes|=a,_=c.alternate,_!==null&&(_.lanes|=a),Gs(c.return,a,e),r||(p=null);break e}c=_.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(u(341));p.lanes|=a,c=p.alternate,c!==null&&(c.lanes|=a),Gs(p,a,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function ri(e,t,a,r){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(u(387));if(p=p.memoizedProps,p!==null){var _=o.type;zt(o.pendingProps.value,p.value)||(e!==null?e.push(_):e=[_])}}else if(o===ue.current){if(p=o.alternate,p===null)throw Error(u(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(zr):e=[zr])}o=o.return}e!==null&&Is(t,e,a,r),t.flags|=262144}function gl(e){for(e=e.firstContext;e!==null;){if(!zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wa(e){Ea=e,bn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return zd(Ea,e)}function yl(e,t){return Ea===null&&wa(e),zd(e,t)}function zd(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 Jb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Wb=i.unstable_scheduleCallback,e0=i.unstable_NormalPriority,et={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ys(){return{controller:new Jb,data:new Map,refCount:0}}function ar(e){e.refCount--,e.refCount===0&&Wb(e0,function(){e.controller.abort()})}var ir=null,$s=0,li=0,ui=null;function t0(e,t){if(ir===null){var a=ir=[];$s=0,li=Xo(),ui={status:"pending",value:void 0,then:function(r){a.push(r)}}}return $s++,t.then(Md,Md),t}function Md(){if(--$s===0&&ir!==null){ui!==null&&(ui.status="fulfilled");var e=ir;ir=null,li=0,ui=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function n0(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),r}var Dd=D.S;D.S=function(e,t){mm=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&t0(e,t),Dd!==null&&Dd(e,t)};var Ta=C(null);function Ps(){var e=Ta.current;return e!==null?e:$e.pooledCache}function bl(e,t){t===null?K(Ta,Ta.current):K(Ta,t.pool)}function Rd(){var e=Ps();return e===null?null:{parent:et._currentValue,pool:e}}var si=Error(u(460)),Fs=Error(u(474)),_l=Error(u(542)),Sl={then:function(){}};function Ld(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jd(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,qd(e),e;default:if(typeof t.status=="string")t.then(pn,pn);else{if(e=$e,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qd(e),e}throw Ca=t,si}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ca=a,si):a}}var Ca=null;function Nd(){if(Ca===null)throw Error(u(459));var e=Ca;return Ca=null,e}function qd(e){if(e===si||e===_l)throw Error(u(483))}var oi=null,rr=0;function El(e){var t=rr;return rr+=1,oi===null&&(oi=[]),jd(oi,e,t)}function lr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wl(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 Ud(e){function t(z,x){if(e){var L=z.deletions;L===null?(z.deletions=[x],z.flags|=16):L.push(x)}}function a(z,x){if(!e)return null;for(;x!==null;)t(z,x),x=x.sibling;return null}function r(z){for(var x=new Map;z!==null;)z.key!==null?x.set(z.key,z):x.set(z.index,z),z=z.sibling;return x}function o(z,x){return z=gn(z,x),z.index=0,z.sibling=null,z}function c(z,x,L){return z.index=L,e?(L=z.alternate,L!==null?(L=L.index,L<x?(z.flags|=67108866,x):L):(z.flags|=67108866,x)):(z.flags|=1048576,x)}function p(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function _(z,x,L,$){return x===null||x.tag!==6?(x=js(L,z.mode,$),x.return=z,x):(x=o(x,L),x.return=z,x)}function w(z,x,L,$){var se=L.type;return se===O?I(z,x,L.props.children,$,L.key):x!==null&&(x.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===J&&Oa(se)===x.type)?(x=o(x,L.props),lr(x,L),x.return=z,x):(x=pl(L.type,L.key,L.props,null,z.mode,$),lr(x,L),x.return=z,x)}function N(z,x,L,$){return x===null||x.tag!==4||x.stateNode.containerInfo!==L.containerInfo||x.stateNode.implementation!==L.implementation?(x=Ns(L,z.mode,$),x.return=z,x):(x=o(x,L.children||[]),x.return=z,x)}function I(z,x,L,$,se){return x===null||x.tag!==7?(x=_a(L,z.mode,$,se),x.return=z,x):(x=o(x,L),x.return=z,x)}function P(z,x,L){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=js(""+x,z.mode,L),x.return=z,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case S:return L=pl(x.type,x.key,x.props,null,z.mode,L),lr(L,x),L.return=z,L;case E:return x=Ns(x,z.mode,L),x.return=z,x;case J:return x=Oa(x),P(z,x,L)}if(ge(x)||W(x))return x=_a(x,z.mode,L,null),x.return=z,x;if(typeof x.then=="function")return P(z,El(x),L);if(x.$$typeof===Y)return P(z,yl(z,x),L);wl(z,x)}return null}function q(z,x,L,$){var se=x!==null?x.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return se!==null?null:_(z,x,""+L,$);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case S:return L.key===se?w(z,x,L,$):null;case E:return L.key===se?N(z,x,L,$):null;case J:return L=Oa(L),q(z,x,L,$)}if(ge(L)||W(L))return se!==null?null:I(z,x,L,$,null);if(typeof L.then=="function")return q(z,x,El(L),$);if(L.$$typeof===Y)return q(z,x,yl(z,L),$);wl(z,L)}return null}function H(z,x,L,$,se){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return z=z.get(L)||null,_(x,z,""+$,se);if(typeof $=="object"&&$!==null){switch($.$$typeof){case S:return z=z.get($.key===null?L:$.key)||null,w(x,z,$,se);case E:return z=z.get($.key===null?L:$.key)||null,N(x,z,$,se);case J:return $=Oa($),H(z,x,L,$,se)}if(ge($)||W($))return z=z.get(L)||null,I(x,z,$,se,null);if(typeof $.then=="function")return H(z,x,L,El($),se);if($.$$typeof===Y)return H(z,x,L,yl(x,$),se);wl(x,$)}return null}function ie(z,x,L,$){for(var se=null,Le=null,re=x,Te=x=0,Ae=null;re!==null&&Te<L.length;Te++){re.index>Te?(Ae=re,re=null):Ae=re.sibling;var je=q(z,re,L[Te],$);if(je===null){re===null&&(re=Ae);break}e&&re&&je.alternate===null&&t(z,re),x=c(je,x,Te),Le===null?se=je:Le.sibling=je,Le=je,re=Ae}if(Te===L.length)return a(z,re),Me&&yn(z,Te),se;if(re===null){for(;Te<L.length;Te++)re=P(z,L[Te],$),re!==null&&(x=c(re,x,Te),Le===null?se=re:Le.sibling=re,Le=re);return Me&&yn(z,Te),se}for(re=r(re);Te<L.length;Te++)Ae=H(re,z,Te,L[Te],$),Ae!==null&&(e&&Ae.alternate!==null&&re.delete(Ae.key===null?Te:Ae.key),x=c(Ae,x,Te),Le===null?se=Ae:Le.sibling=Ae,Le=Ae);return e&&re.forEach(function(ca){return t(z,ca)}),Me&&yn(z,Te),se}function me(z,x,L,$){if(L==null)throw Error(u(151));for(var se=null,Le=null,re=x,Te=x=0,Ae=null,je=L.next();re!==null&&!je.done;Te++,je=L.next()){re.index>Te?(Ae=re,re=null):Ae=re.sibling;var ca=q(z,re,je.value,$);if(ca===null){re===null&&(re=Ae);break}e&&re&&ca.alternate===null&&t(z,re),x=c(ca,x,Te),Le===null?se=ca:Le.sibling=ca,Le=ca,re=Ae}if(je.done)return a(z,re),Me&&yn(z,Te),se;if(re===null){for(;!je.done;Te++,je=L.next())je=P(z,je.value,$),je!==null&&(x=c(je,x,Te),Le===null?se=je:Le.sibling=je,Le=je);return Me&&yn(z,Te),se}for(re=r(re);!je.done;Te++,je=L.next())je=H(re,z,Te,je.value,$),je!==null&&(e&&je.alternate!==null&&re.delete(je.key===null?Te:je.key),x=c(je,x,Te),Le===null?se=je:Le.sibling=je,Le=je);return e&&re.forEach(function(h_){return t(z,h_)}),Me&&yn(z,Te),se}function Ye(z,x,L,$){if(typeof L=="object"&&L!==null&&L.type===O&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case S:e:{for(var se=L.key;x!==null;){if(x.key===se){if(se=L.type,se===O){if(x.tag===7){a(z,x.sibling),$=o(x,L.props.children),$.return=z,z=$;break e}}else if(x.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===J&&Oa(se)===x.type){a(z,x.sibling),$=o(x,L.props),lr($,L),$.return=z,z=$;break e}a(z,x);break}else t(z,x);x=x.sibling}L.type===O?($=_a(L.props.children,z.mode,$,L.key),$.return=z,z=$):($=pl(L.type,L.key,L.props,null,z.mode,$),lr($,L),$.return=z,z=$)}return p(z);case E:e:{for(se=L.key;x!==null;){if(x.key===se)if(x.tag===4&&x.stateNode.containerInfo===L.containerInfo&&x.stateNode.implementation===L.implementation){a(z,x.sibling),$=o(x,L.children||[]),$.return=z,z=$;break e}else{a(z,x);break}else t(z,x);x=x.sibling}$=Ns(L,z.mode,$),$.return=z,z=$}return p(z);case J:return L=Oa(L),Ye(z,x,L,$)}if(ge(L))return ie(z,x,L,$);if(W(L)){if(se=W(L),typeof se!="function")throw Error(u(150));return L=se.call(L),me(z,x,L,$)}if(typeof L.then=="function")return Ye(z,x,El(L),$);if(L.$$typeof===Y)return Ye(z,x,yl(z,L),$);wl(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,x!==null&&x.tag===6?(a(z,x.sibling),$=o(x,L),$.return=z,z=$):(a(z,x),$=js(L,z.mode,$),$.return=z,z=$),p(z)):a(z,x)}return function(z,x,L,$){try{rr=0;var se=Ye(z,x,L,$);return oi=null,se}catch(re){if(re===si||re===_l)throw re;var Le=Mt(29,re,null,z.mode);return Le.lanes=$,Le.return=z,Le}}}var xa=Ud(!0),Vd=Ud(!1),kn=!1;function ks(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xs(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 Xn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qn(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ne&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=ml(e),Sd(e,null,a),t}return hl(e,r,t,a),ml(e)}function ur(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,zf(e,a)}}function Qs(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Zs=!1;function sr(){if(Zs){var e=ui;if(e!==null)throw e}}function or(e,t,a,r){Zs=!1;var o=e.updateQueue;kn=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var w=_,N=w.next;w.next=null,p===null?c=N:p.next=N,p=w;var I=e.alternate;I!==null&&(I=I.updateQueue,_=I.lastBaseUpdate,_!==p&&(_===null?I.firstBaseUpdate=N:_.next=N,I.lastBaseUpdate=w))}if(c!==null){var P=o.baseState;p=0,I=N=w=null,_=c;do{var q=_.lane&-536870913,H=q!==_.lane;if(H?(xe&q)===q:(r&q)===q){q!==0&&q===li&&(Zs=!0),I!==null&&(I=I.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var ie=e,me=_;q=t;var Ye=a;switch(me.tag){case 1:if(ie=me.payload,typeof ie=="function"){P=ie.call(Ye,P,q);break e}P=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=me.payload,q=typeof ie=="function"?ie.call(Ye,P,q):ie,q==null)break e;P=y({},P,q);break e;case 2:kn=!0}}q=_.callback,q!==null&&(e.flags|=64,H&&(e.flags|=8192),H=o.callbacks,H===null?o.callbacks=[q]:H.push(q))}else H={lane:q,tag:_.tag,payload:_.payload,callback:_.callback,next:null},I===null?(N=I=H,w=P):I=I.next=H,p|=q;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;H=_,_=H.next,H.next=null,o.lastBaseUpdate=H,o.shared.pending=null}}while(!0);I===null&&(w=P),o.baseState=w,o.firstBaseUpdate=N,o.lastBaseUpdate=I,c===null&&(o.shared.lanes=0),ea|=p,e.lanes=p,e.memoizedState=P}}function Hd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Bd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Hd(a[e],t)}var ci=C(null),Tl=C(0);function Gd(e,t){e=zn,K(Tl,e),K(ci,t),zn=e|t.baseLanes}function Ks(){K(Tl,zn),K(ci,ci.current)}function Js(){zn=Tl.current,V(ci),V(Tl)}var Dt=C(null),$t=null;function Zn(e){var t=e.alternate;K(Je,Je.current&1),K(Dt,e),$t===null&&(t===null||ci.current!==null||t.memoizedState!==null)&&($t=e)}function Ws(e){K(Je,Je.current),K(Dt,e),$t===null&&($t=e)}function Id(e){e.tag===22?(K(Je,Je.current),K(Dt,e),$t===null&&($t=e)):Kn()}function Kn(){K(Je,Je.current),K(Dt,Dt.current)}function Rt(e){V(Dt),$t===e&&($t=null),V(Je)}var Je=C(0);function Ol(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||lc(a)||uc(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,_e=null,Ge=null,tt=null,Cl=!1,fi=!1,Aa=!1,xl=0,cr=0,di=null,a0=0;function Qe(){throw Error(u(321))}function eo(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!zt(e[a],t[a]))return!1;return!0}function to(e,t,a,r,o,c){return Sn=c,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Oh:go,Aa=!1,c=a(r,o),Aa=!1,fi&&(c=$d(t,a,r,o)),Yd(e),c}function Yd(e){D.H=hr;var t=Ge!==null&&Ge.next!==null;if(Sn=0,tt=Ge=_e=null,Cl=!1,cr=0,di=null,t)throw Error(u(300));e===null||nt||(e=e.dependencies,e!==null&&gl(e)&&(nt=!0))}function $d(e,t,a,r){_e=e;var o=0;do{if(fi&&(di=null),cr=0,fi=!1,25<=o)throw Error(u(301));if(o+=1,tt=Ge=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Ch,c=t(a,r)}while(fi);return c}function i0(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?fr(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(_e.flags|=1024),t}function no(){var e=xl!==0;return xl=0,e}function ao(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function io(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,tt=Ge=_e=null,fi=!1,cr=xl=0,di=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?_e.memoizedState=tt=e:tt=tt.next=e,tt}function We(){if(Ge===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=tt===null?_e.memoizedState:tt.next;if(t!==null)tt=t,Ge=e;else{if(e===null)throw _e.alternate===null?Error(u(467)):Error(u(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},tt===null?_e.memoizedState=tt=e:tt=tt.next=e}return tt}function Al(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fr(e){var t=cr;return cr+=1,di===null&&(di=[]),e=jd(di,e,t),t=_e,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Oh:go),e}function zl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fr(e);if(e.$$typeof===Y)return ft(e)}throw Error(u(438,String(e)))}function ro(e){var t=null,a=_e.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=_e.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Al(),_e.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=ze;return t.index++,a}function En(e,t){return typeof t=="function"?t(e):t}function Ml(e){var t=We();return lo(t,Ge,e)}function lo(e,t,a){var r=e.queue;if(r===null)throw Error(u(311));r.lastRenderedReducer=a;var o=e.baseQueue,c=r.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,r.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var _=p=null,w=null,N=t,I=!1;do{var P=N.lane&-536870913;if(P!==N.lane?(xe&P)===P:(Sn&P)===P){var q=N.revertLane;if(q===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),P===li&&(I=!0);else if((Sn&q)===q){N=N.next,q===li&&(I=!0);continue}else P={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(_=w=P,p=c):w=w.next=P,_e.lanes|=q,ea|=q;P=N.action,Aa&&a(c,P),c=N.hasEagerState?N.eagerState:a(c,P)}else q={lane:P,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(_=w=q,p=c):w=w.next=q,_e.lanes|=P,ea|=P;N=N.next}while(N!==null&&N!==t);if(w===null?p=c:w.next=_,!zt(c,e.memoizedState)&&(nt=!0,I&&(a=ui,a!==null)))throw a;e.memoizedState=c,e.baseState=p,e.baseQueue=w,r.lastRenderedState=c}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function uo(e){var t=We(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);zt(c,t.memoizedState)||(nt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,r]}function Pd(e,t,a){var r=_e,o=We(),c=Me;if(c){if(a===void 0)throw Error(u(407));a=a()}else a=t();var p=!zt((Ge||o).memoizedState,a);if(p&&(o.memoizedState=a,nt=!0),o=o.queue,co(Xd.bind(null,r,o,e),[e]),o.getSnapshot!==t||p||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,hi(9,{destroy:void 0},kd.bind(null,r,o,a,t),null),$e===null)throw Error(u(349));c||(Sn&127)!==0||Fd(r,t,a)}return a}function Fd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=_e.updateQueue,t===null?(t=Al(),_e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function kd(e,t,a,r){t.value=a,t.getSnapshot=r,Qd(t)&&Zd(e)}function Xd(e,t,a){return a(function(){Qd(t)&&Zd(e)})}function Qd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!zt(e,a)}catch{return!0}}function Zd(e){var t=ba(e,2);t!==null&&Tt(t,e,2)}function so(e){var t=gt();if(typeof e=="function"){var a=e;if(e=a(),Aa){Bn(!0);try{a()}finally{Bn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},t}function Kd(e,t,a,r){return e.baseState=a,lo(e,Ge,typeof r=="function"?r:En)}function r0(e,t,a,r,o){if(Ll(e))throw Error(u(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};D.T!==null?a(!0):c.isTransition=!1,r(c),a=t.pending,a===null?(c.next=t.pending=c,Jd(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Jd(e,t){var a=t.action,r=t.payload,o=e.state;if(t.isTransition){var c=D.T,p={};D.T=p;try{var _=a(o,r),w=D.S;w!==null&&w(p,_),Wd(e,t,_)}catch(N){oo(e,t,N)}finally{c!==null&&p.types!==null&&(c.types=p.types),D.T=c}}else try{c=a(o,r),Wd(e,t,c)}catch(N){oo(e,t,N)}}function Wd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){eh(e,t,r)},function(r){return oo(e,t,r)}):eh(e,t,a)}function eh(e,t,a){t.status="fulfilled",t.value=a,th(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Jd(e,a)))}function oo(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,th(t),t=t.next;while(t!==r)}e.action=null}function th(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function nh(e,t){return t}function ah(e,t){if(Me){var a=$e.formState;if(a!==null){e:{var r=_e;if(Me){if(Fe){t:{for(var o=Fe,c=Yt;o.nodeType!==8;){if(!c){o=null;break t}if(o=Pt(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Fe=Pt(o.nextSibling),r=o.data==="F!";break e}}Pn(r)}r=!1}r&&(t=a[0])}}return a=gt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nh,lastRenderedState:t},a.queue=r,a=Eh.bind(null,_e,r),r.dispatch=a,r=so(!1),c=vo.bind(null,_e,!1,r.queue),r=gt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,a=r0.bind(null,_e,o,c,a),o.dispatch=a,r.memoizedState=e,[t,a,!1]}function ih(e){var t=We();return rh(t,Ge,e)}function rh(e,t,a){if(t=lo(e,t,nh)[0],e=Ml(En)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=fr(t)}catch(p){throw p===si?_l:p}else r=t;t=We();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(_e.flags|=2048,hi(9,{destroy:void 0},l0.bind(null,o,a),null)),[r,c,e]}function l0(e,t){e.action=t}function lh(e){var t=We(),a=Ge;if(a!==null)return rh(t,a,e);We(),t=t.memoizedState,a=We();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function hi(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Al(),_e.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function uh(){return We().memoizedState}function Dl(e,t,a,r){var o=gt();_e.flags|=e,o.memoizedState=hi(1|t,{destroy:void 0},a,r===void 0?null:r)}function Rl(e,t,a,r){var o=We();r=r===void 0?null:r;var c=o.memoizedState.inst;Ge!==null&&r!==null&&eo(r,Ge.memoizedState.deps)?o.memoizedState=hi(t,c,a,r):(_e.flags|=e,o.memoizedState=hi(1|t,c,a,r))}function sh(e,t){Dl(8390656,8,e,t)}function co(e,t){Rl(2048,8,e,t)}function u0(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Al(),_e.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function oh(e){var t=We().memoizedState;return u0({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function ch(e,t){return Rl(4,2,e,t)}function fh(e,t){return Rl(4,4,e,t)}function dh(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 hh(e,t,a){a=a!=null?a.concat([e]):null,Rl(4,4,dh.bind(null,t,e),a)}function fo(){}function mh(e,t){var a=We();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&eo(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function ph(e,t){var a=We();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&eo(t,r[1]))return r[0];if(r=e(),Aa){Bn(!0);try{e()}finally{Bn(!1)}}return a.memoizedState=[r,t],r}function ho(e,t,a){return a===void 0||(Sn&1073741824)!==0&&(xe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=vm(),_e.lanes|=e,ea|=e,a)}function vh(e,t,a,r){return zt(a,t)?a:ci.current!==null?(e=ho(e,a,r),zt(e,t)||(nt=!0),e):(Sn&42)===0||(Sn&1073741824)!==0&&(xe&261930)===0?(nt=!0,e.memoizedState=a):(e=vm(),_e.lanes|=e,ea|=e,t)}function gh(e,t,a,r,o){var c=Z.p;Z.p=c!==0&&8>c?c:8;var p=D.T,_={};D.T=_,vo(e,!1,t,a);try{var w=o(),N=D.S;if(N!==null&&N(_,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var I=n0(w,r);dr(e,t,I,Nt(e))}else dr(e,t,r,Nt(e))}catch(P){dr(e,t,{then:function(){},status:"rejected",reason:P},Nt())}finally{Z.p=c,p!==null&&_.types!==null&&(p.types=_.types),D.T=p}}function s0(){}function mo(e,t,a,r){if(e.tag!==5)throw Error(u(476));var o=yh(e).queue;gh(e,o,t,ee,a===null?s0:function(){return bh(e),a(r)})}function yh(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 bh(e){var t=yh(e);t.next===null&&(t=e.alternate.memoizedState),dr(e,t.next.queue,{},Nt())}function po(){return ft(zr)}function _h(){return We().memoizedState}function Sh(){return We().memoizedState}function o0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Nt();e=Xn(a);var r=Qn(t,e,a);r!==null&&(Tt(r,t,a),ur(r,t,a)),t={cache:Ys()},e.payload=t;return}t=t.return}}function c0(e,t,a){var r=Nt();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ll(e)?wh(t,a):(a=Rs(e,t,a,r),a!==null&&(Tt(a,e,r),Th(a,t,r)))}function Eh(e,t,a){var r=Nt();dr(e,t,a,r)}function dr(e,t,a,r){var o={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ll(e))wh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,_=c(p,a);if(o.hasEagerState=!0,o.eagerState=_,zt(_,p))return hl(e,t,o,0),$e===null&&dl(),!1}catch{}if(a=Rs(e,t,o,r),a!==null)return Tt(a,e,r),Th(a,t,r),!0}return!1}function vo(e,t,a,r){if(r={lane:2,revertLane:Xo(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ll(e)){if(t)throw Error(u(479))}else t=Rs(e,a,r,2),t!==null&&Tt(t,e,2)}function Ll(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function wh(e,t){fi=Cl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Th(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,zf(e,a)}}var hr={readContext:ft,use:zl,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};hr.useEffectEvent=Qe;var Oh={readContext:ft,use:zl,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:sh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Dl(4194308,4,dh.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 r=e();if(Aa){Bn(!0);try{e()}finally{Bn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=gt();if(a!==void 0){var o=a(t);if(Aa){Bn(!0);try{a(t)}finally{Bn(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=c0.bind(null,_e,e),[r.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=so(e);var t=e.queue,a=Eh.bind(null,_e,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:fo,useDeferredValue:function(e,t){var a=gt();return ho(a,e,t)},useTransition:function(){var e=so(!1);return e=gh.bind(null,_e,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=_e,o=gt();if(Me){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),$e===null)throw Error(u(349));(xe&127)!==0||Fd(r,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,sh(Xd.bind(null,r,c,e),[e]),r.flags|=2048,hi(9,{destroy:void 0},kd.bind(null,r,c,a,t),null),a},useId:function(){var e=gt(),t=$e.identifierPrefix;if(Me){var a=ln,r=rn;a=(r&~(1<<32-At(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=xl++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=a0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:po,useFormState:ah,useActionState:ah,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=vo.bind(null,_e,!0,a),a.dispatch=t,[e,t]},useMemoCache:ro,useCacheRefresh:function(){return gt().memoizedState=o0.bind(null,_e)},useEffectEvent:function(e){var t=gt(),a={impl:e};return t.memoizedState=a,function(){if((Ne&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},go={readContext:ft,use:zl,useCallback:mh,useContext:ft,useEffect:co,useImperativeHandle:hh,useInsertionEffect:ch,useLayoutEffect:fh,useMemo:ph,useReducer:Ml,useRef:uh,useState:function(){return Ml(En)},useDebugValue:fo,useDeferredValue:function(e,t){var a=We();return vh(a,Ge.memoizedState,e,t)},useTransition:function(){var e=Ml(En)[0],t=We().memoizedState;return[typeof e=="boolean"?e:fr(e),t]},useSyncExternalStore:Pd,useId:_h,useHostTransitionStatus:po,useFormState:ih,useActionState:ih,useOptimistic:function(e,t){var a=We();return Kd(a,Ge,e,t)},useMemoCache:ro,useCacheRefresh:Sh};go.useEffectEvent=oh;var Ch={readContext:ft,use:zl,useCallback:mh,useContext:ft,useEffect:co,useImperativeHandle:hh,useInsertionEffect:ch,useLayoutEffect:fh,useMemo:ph,useReducer:uo,useRef:uh,useState:function(){return uo(En)},useDebugValue:fo,useDeferredValue:function(e,t){var a=We();return Ge===null?ho(a,e,t):vh(a,Ge.memoizedState,e,t)},useTransition:function(){var e=uo(En)[0],t=We().memoizedState;return[typeof e=="boolean"?e:fr(e),t]},useSyncExternalStore:Pd,useId:_h,useHostTransitionStatus:po,useFormState:lh,useActionState:lh,useOptimistic:function(e,t){var a=We();return Ge!==null?Kd(a,Ge,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ro,useCacheRefresh:Sh};Ch.useEffectEvent=oh;function yo(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var bo={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Nt(),o=Xn(r);o.payload=t,a!=null&&(o.callback=a),t=Qn(e,o,r),t!==null&&(Tt(t,e,r),ur(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Nt(),o=Xn(r);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Qn(e,o,r),t!==null&&(Tt(t,e,r),ur(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Nt(),r=Xn(a);r.tag=2,t!=null&&(r.callback=t),t=Qn(e,r,a),t!==null&&(Tt(t,e,a),ur(t,e,a))}};function xh(e,t,a,r,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,c,p):t.prototype&&t.prototype.isPureReactComponent?!Wi(a,r)||!Wi(o,c):!0}function Ah(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&bo.enqueueReplaceState(t,t.state,null)}function za(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function zh(e){fl(e)}function Mh(e){console.error(e)}function Dh(e){fl(e)}function jl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Rh(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function _o(e,t,a){return a=Xn(a),a.tag=3,a.payload={element:null},a.callback=function(){jl(e,t)},a}function Lh(e){return e=Xn(e),e.tag=3,e}function jh(e,t,a,r){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=r.value;e.payload=function(){return o(c)},e.callback=function(){Rh(t,a,r)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Rh(t,a,r),typeof o!="function"&&(ta===null?ta=new Set([this]):ta.add(this));var _=r.stack;this.componentDidCatch(r.value,{componentStack:_!==null?_:""})})}function f0(e,t,a,r,o){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&ri(t,a,o,!0),a=Dt.current,a!==null){switch(a.tag){case 31:case 13:return $t===null?Fl():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=o,r===Sl?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Po(e,r,o)),!1;case 22:return a.flags|=65536,r===Sl?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Po(e,r,o)),!1}throw Error(u(435,a.tag))}return Po(e,r,o),Fl(),!1}if(Me)return t=Dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==Vs&&(e=Error(u(422),{cause:r}),nr(Bt(e,a)))):(r!==Vs&&(t=Error(u(423),{cause:r}),nr(Bt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Bt(r,a),o=_o(e.stateNode,r,o),Qs(e,o),Ze!==4&&(Ze=2)),!1;var c=Error(u(520),{cause:r});if(c=Bt(c,a),Sr===null?Sr=[c]:Sr.push(c),Ze!==4&&(Ze=2),t===null)return!0;r=Bt(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=_o(a.stateNode,r,e),Qs(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ta===null||!ta.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Lh(o),jh(o,e,a,r),Qs(a,o),!1}a=a.return}while(a!==null);return!1}var So=Error(u(461)),nt=!1;function dt(e,t,a,r){t.child=e===null?Vd(t,null,a,r):xa(t,e.child,a,r)}function Nh(e,t,a,r,o){a=a.render;var c=t.ref;if("ref"in r){var p={};for(var _ in r)_!=="ref"&&(p[_]=r[_])}else p=r;return wa(t),r=to(e,t,a,p,c,o),_=no(),e!==null&&!nt?(ao(e,t,o),wn(e,t,o)):(Me&&_&&qs(t),t.flags|=1,dt(e,t,r,o),t.child)}function qh(e,t,a,r,o){if(e===null){var c=a.type;return typeof c=="function"&&!Ls(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Uh(e,t,c,r,o)):(e=pl(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!zo(e,o)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:Wi,a(p,r)&&e.ref===t.ref)return wn(e,t,o)}return t.flags|=1,e=gn(c,r),e.ref=t.ref,e.return=t,t.child=e}function Uh(e,t,a,r,o){if(e!==null){var c=e.memoizedProps;if(Wi(c,r)&&e.ref===t.ref)if(nt=!1,t.pendingProps=r=c,zo(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,wn(e,t,o)}return Eo(e,t,a,r,o)}function Vh(e,t,a,r){var o=r.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~c}else r=0,t.child=null;return Hh(e,t,c,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bl(t,c!==null?c.cachePool:null),c!==null?Gd(t,c):Ks(),Id(t);else return r=t.lanes=536870912,Hh(e,t,c!==null?c.baseLanes|a:a,a,r)}else c!==null?(bl(t,c.cachePool),Gd(t,c),Kn(),t.memoizedState=null):(e!==null&&bl(t,null),Ks(),Kn());return dt(e,t,o,a),t.child}function mr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Hh(e,t,a,r,o){var c=Ps();return c=c===null?null:{parent:et._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&bl(t,null),Ks(),Id(t),e!==null&&ri(e,t,r,!0),t.childLanes=o,null}function Nl(e,t){return t=Ul({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bh(e,t,a){return xa(t,e.child,null,a),e=Nl(t,t.pendingProps),e.flags|=2,Rt(t),t.memoizedState=null,e}function d0(e,t,a){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(r.mode==="hidden")return e=Nl(t,r),t.lanes=536870912,mr(null,e);if(Ws(t),(e=Fe)?(e=Jm(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yn!==null?{id:rn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},a=wd(e),a.return=t,t.child=a,ct=t,Fe=null)):e=null,e===null)throw Pn(t);return t.lanes=536870912,null}return Nl(t,r)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(Ws(t),o)if(t.flags&256)t.flags&=-257,t=Bh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(nt||ri(e,t,a,!1),o=(a&e.childLanes)!==0,nt||o){if(r=$e,r!==null&&(p=Mf(r,a),p!==0&&p!==c.retryLane))throw c.retryLane=p,ba(e,p),Tt(r,e,p),So;Fl(),t=Bh(e,t,a)}else e=c.treeContext,Fe=Pt(p.nextSibling),ct=t,Me=!0,$n=null,Yt=!1,e!==null&&Cd(t,e),t=Nl(t,r),t.flags|=4096;return t}return e=gn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ql(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 Eo(e,t,a,r,o){return wa(t),a=to(e,t,a,r,void 0,o),r=no(),e!==null&&!nt?(ao(e,t,o),wn(e,t,o)):(Me&&r&&qs(t),t.flags|=1,dt(e,t,a,o),t.child)}function Gh(e,t,a,r,o,c){return wa(t),t.updateQueue=null,a=$d(t,r,a,o),Yd(e),r=no(),e!==null&&!nt?(ao(e,t,c),wn(e,t,c)):(Me&&r&&qs(t),t.flags|=1,dt(e,t,a,c),t.child)}function Ih(e,t,a,r,o){if(wa(t),t.stateNode===null){var c=ti,p=a.contextType;typeof p=="object"&&p!==null&&(c=ft(p)),c=new a(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=bo,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},ks(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?ft(p):ti,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(yo(t,a,p,r),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&bo.enqueueReplaceState(c,c.state,null),or(t,r,c,o),sr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var _=t.memoizedProps,w=za(a,_);c.props=w;var N=c.context,I=a.contextType;p=ti,typeof I=="object"&&I!==null&&(p=ft(I));var P=a.getDerivedStateFromProps;I=typeof P=="function"||typeof c.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,I||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(_||N!==p)&&Ah(t,c,r,p),kn=!1;var q=t.memoizedState;c.state=q,or(t,r,c,o),sr(),N=t.memoizedState,_||q!==N||kn?(typeof P=="function"&&(yo(t,a,P,r),N=t.memoizedState),(w=kn||xh(t,a,w,r,q,N,p))?(I||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=N),c.props=r,c.state=N,c.context=p,r=w):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,Xs(e,t),p=t.memoizedProps,I=za(a,p),c.props=I,P=t.pendingProps,q=c.context,N=a.contextType,w=ti,typeof N=="object"&&N!==null&&(w=ft(N)),_=a.getDerivedStateFromProps,(N=typeof _=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==P||q!==w)&&Ah(t,c,r,w),kn=!1,q=t.memoizedState,c.state=q,or(t,r,c,o),sr();var H=t.memoizedState;p!==P||q!==H||kn||e!==null&&e.dependencies!==null&&gl(e.dependencies)?(typeof _=="function"&&(yo(t,a,_,r),H=t.memoizedState),(I=kn||xh(t,a,I,r,q,H,w)||e!==null&&e.dependencies!==null&&gl(e.dependencies))?(N||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,H,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,H,w)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=H),c.props=r,c.state=H,c.context=w,r=I):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),r=!1)}return c=r,ql(e,t),r=(t.flags&128)!==0,c||r?(c=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&r?(t.child=xa(t,e.child,null,o),t.child=xa(t,null,a,o)):dt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=wn(e,t,o),e}function Yh(e,t,a,r){return Sa(),t.flags|=256,dt(e,t,a,r),t.child}var wo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function To(e){return{baseLanes:e,cachePool:Rd()}}function Oo(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=jt),e}function $h(e,t,a){var r=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(o?Zn(t):Kn(),(e=Fe)?(e=Jm(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yn!==null?{id:rn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},a=wd(e),a.return=t,t.child=a,ct=t,Fe=null)):e=null,e===null)throw Pn(t);return uc(e)?t.lanes=32:t.lanes=536870912,null}var _=r.children;return r=r.fallback,o?(Kn(),o=t.mode,_=Ul({mode:"hidden",children:_},o),r=_a(r,o,a,null),_.return=t,r.return=t,_.sibling=r,t.child=_,r=t.child,r.memoizedState=To(a),r.childLanes=Oo(e,p,a),t.memoizedState=wo,mr(null,r)):(Zn(t),Co(t,_))}var w=e.memoizedState;if(w!==null&&(_=w.dehydrated,_!==null)){if(c)t.flags&256?(Zn(t),t.flags&=-257,t=xo(e,t,a)):t.memoizedState!==null?(Kn(),t.child=e.child,t.flags|=128,t=null):(Kn(),_=r.fallback,o=t.mode,r=Ul({mode:"visible",children:r.children},o),_=_a(_,o,a,null),_.flags|=2,r.return=t,_.return=t,r.sibling=_,t.child=r,xa(t,e.child,null,a),r=t.child,r.memoizedState=To(a),r.childLanes=Oo(e,p,a),t.memoizedState=wo,t=mr(null,r));else if(Zn(t),uc(_)){if(p=_.nextSibling&&_.nextSibling.dataset,p)var N=p.dgst;p=N,r=Error(u(419)),r.stack="",r.digest=p,nr({value:r,source:null,stack:null}),t=xo(e,t,a)}else if(nt||ri(e,t,a,!1),p=(a&e.childLanes)!==0,nt||p){if(p=$e,p!==null&&(r=Mf(p,a),r!==0&&r!==w.retryLane))throw w.retryLane=r,ba(e,r),Tt(p,e,r),So;lc(_)||Fl(),t=xo(e,t,a)}else lc(_)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Fe=Pt(_.nextSibling),ct=t,Me=!0,$n=null,Yt=!1,e!==null&&Cd(t,e),t=Co(t,r.children),t.flags|=4096);return t}return o?(Kn(),_=r.fallback,o=t.mode,w=e.child,N=w.sibling,r=gn(w,{mode:"hidden",children:r.children}),r.subtreeFlags=w.subtreeFlags&65011712,N!==null?_=gn(N,_):(_=_a(_,o,a,null),_.flags|=2),_.return=t,r.return=t,r.sibling=_,t.child=r,mr(null,r),r=t.child,_=e.child.memoizedState,_===null?_=To(a):(o=_.cachePool,o!==null?(w=et._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Rd(),_={baseLanes:_.baseLanes|a,cachePool:o}),r.memoizedState=_,r.childLanes=Oo(e,p,a),t.memoizedState=wo,mr(e.child,r)):(Zn(t),a=e.child,e=a.sibling,a=gn(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function Co(e,t){return t=Ul({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ul(e,t){return e=Mt(22,e,null,t),e.lanes=0,e}function xo(e,t,a){return xa(t,e.child,null,a),e=Co(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ph(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gs(e.return,t,a)}function Ao(e,t,a,r,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=r,p.tail=a,p.tailMode=o,p.treeForkCount=c)}function Fh(e,t,a){var r=t.pendingProps,o=r.revealOrder,c=r.tail;r=r.children;var p=Je.current,_=(p&2)!==0;if(_?(p=p&1|2,t.flags|=128):p&=1,K(Je,p),dt(e,t,r,a),r=Me?tr:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ph(e,a,t);else if(e.tag===19)Ph(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(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Ol(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Ao(t,!1,o,a,c,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ol(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Ao(t,!0,a,null,c,r);break;case"together":Ao(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function wn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ea|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ri(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=gn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=gn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function zo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&gl(e)))}function h0(e,t,a){switch(t.tag){case 3:De(t,t.stateNode.containerInfo),Fn(t,et,e.memoizedState.cache),Sa();break;case 27:case 5:nn(t);break;case 4:De(t,t.stateNode.containerInfo);break;case 10:Fn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ws(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Zn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?$h(e,t,a):(Zn(t),e=wn(e,t,a),e!==null?e.sibling:null);Zn(t);break;case 19:var o=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(ri(e,t,a,!1),r=(a&t.childLanes)!==0),o){if(r)return Fh(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(Je,Je.current),r)break;return null;case 22:return t.lanes=0,Vh(e,t,a,t.pendingProps);case 24:Fn(t,et,e.memoizedState.cache)}return wn(e,t,a)}function kh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!zo(e,a)&&(t.flags&128)===0)return nt=!1,h0(e,t,a);nt=(e.flags&131072)!==0}else nt=!1,Me&&(t.flags&1048576)!==0&&Od(t,tr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e=="function")Ls(e)?(r=za(e,r),t.tag=1,t=Ih(null,t,e,r,a)):(t.tag=0,t=Eo(null,t,e,r,a));else{if(e!=null){var o=e.$$typeof;if(o===Q){t.tag=11,t=Nh(null,t,e,r,a);break e}else if(o===U){t.tag=14,t=qh(null,t,e,r,a);break e}}throw t=le(e)||e,Error(u(306,t,""))}}return t;case 0:return Eo(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,o=za(r,t.pendingProps),Ih(e,t,r,o,a);case 3:e:{if(De(t,t.stateNode.containerInfo),e===null)throw Error(u(387));r=t.pendingProps;var c=t.memoizedState;o=c.element,Xs(e,t),or(t,r,null,a);var p=t.memoizedState;if(r=p.cache,Fn(t,et,r),r!==c.cache&&Is(t,[et],a,!0),sr(),r=p.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Yh(e,t,r,a);break e}else if(r!==o){o=Bt(Error(u(424)),t),nr(o),t=Yh(e,t,r,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Fe=Pt(e.firstChild),ct=t,Me=!0,$n=null,Yt=!0,a=Vd(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Sa(),r===o){t=wn(e,t,a);break e}dt(e,t,r,a)}t=t.child}return t;case 26:return ql(e,t),e===null?(a=ip(t.type,null,t.pendingProps,null))?t.memoizedState=a:Me||(a=t.type,e=t.pendingProps,r=Wl(fe.current).createElement(a),r[ot]=t,r[yt]=e,ht(r,a,e),ut(r),t.stateNode=r):t.memoizedState=ip(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return nn(t),e===null&&Me&&(r=t.stateNode=tp(t.type,t.pendingProps,fe.current),ct=t,Yt=!0,o=Fe,ra(t.type)?(sc=o,Fe=Pt(r.firstChild)):Fe=o),dt(e,t,t.pendingProps.children,a),ql(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((o=r=Fe)&&(r=Y0(r,t.type,t.pendingProps,Yt),r!==null?(t.stateNode=r,ct=t,Fe=Pt(r.firstChild),Yt=!1,o=!0):o=!1),o||Pn(t)),nn(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,r=c.children,ac(o,c)?r=null:p!==null&&ac(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=to(e,t,i0,null,null,a),zr._currentValue=o),ql(e,t),dt(e,t,r,a),t.child;case 6:return e===null&&Me&&((e=a=Fe)&&(a=$0(a,t.pendingProps,Yt),a!==null?(t.stateNode=a,ct=t,Fe=null,e=!0):e=!1),e||Pn(t)),null;case 13:return $h(e,t,a);case 4:return De(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xa(t,null,r,a):dt(e,t,r,a),t.child;case 11:return Nh(e,t,t.type,t.pendingProps,a);case 7:return dt(e,t,t.pendingProps,a),t.child;case 8:return dt(e,t,t.pendingProps.children,a),t.child;case 12:return dt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,Fn(t,t.type,r.value),dt(e,t,r.children,a),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,wa(t),o=ft(o),r=r(o),t.flags|=1,dt(e,t,r,a),t.child;case 14:return qh(e,t,t.type,t.pendingProps,a);case 15:return Uh(e,t,t.type,t.pendingProps,a);case 19:return Fh(e,t,a);case 31:return d0(e,t,a);case 22:return Vh(e,t,a,t.pendingProps);case 24:return wa(t),r=ft(et),e===null?(o=Ps(),o===null&&(o=$e,c=Ys(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:r,cache:o},ks(t),Fn(t,et,o)):((e.lanes&a)!==0&&(Xs(e,t),or(t,null,null,a),sr()),o=e.memoizedState,c=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Fn(t,et,r)):(r=c.cache,Fn(t,et,r),r!==o.cache&&Is(t,[et],a,!0))),dt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Tn(e){e.flags|=4}function Mo(e,t,a,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(_m())e.flags|=8192;else throw Ca=Sl,Fs}else e.flags&=-16777217}function Xh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!op(t))if(_m())e.flags|=8192;else throw Ca=Sl,Fs}function Vl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?xf():536870912,e.lanes|=t,gi|=t)}function pr(e,t){if(!Me)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 r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function m0(e,t,a){var r=t.pendingProps;switch(Us(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_n(et),Re(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ii(t)?Tn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hs())),ke(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Tn(t),c!==null?(ke(t),Xh(t,c)):(ke(t),Mo(t,o,null,r,a))):c?c!==e.memoizedState?(Tn(t),ke(t),Xh(t,c)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Tn(t),ke(t),Mo(t,o,e,r,a)),null;case 27:if(ha(t),a=fe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Tn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return ke(t),null}e=te.current,ii(t)?xd(t):(e=tp(o,r,a),t.stateNode=e,Tn(t))}return ke(t),null;case 5:if(ha(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Tn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return ke(t),null}if(c=te.current,ii(t))xd(t);else{var p=Wl(fe.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof r.is=="string"?p.createElement("select",{is:r.is}):p.createElement("select"),r.multiple?c.multiple=!0:r.size&&(c.size=r.size);break;default:c=typeof r.is=="string"?p.createElement(o,{is:r.is}):p.createElement(o)}}c[ot]=t,c[yt]=r;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(ht(c,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Tn(t)}}return ke(t),Mo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Tn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,ii(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,o=ct,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[ot]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||$m(e.nodeValue,a)),e||Pn(t,!0)}else e=Wl(e).createTextNode(r),e[ot]=t,t.stateNode=e}return ke(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=ii(t),a!==null){if(e===null){if(!r)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ot]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else a=Hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Rt(t),t):(Rt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return ke(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[ot]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),o=!1}else o=Hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Rt(t),t):(Rt(t),null)}return Rt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==o&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Vl(t,t.updateQueue),ke(t),null);case 4:return Re(),e===null&&Jo(t.stateNode.containerInfo),ke(t),null;case 10:return _n(t.type),ke(t),null;case 19:if(V(Je),r=t.memoizedState,r===null)return ke(t),null;if(o=(t.flags&128)!==0,c=r.rendering,c===null)if(o)pr(r,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ol(e),c!==null){for(t.flags|=128,pr(r,!1),e=c.updateQueue,t.updateQueue=e,Vl(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Ed(a,e),a=a.sibling;return K(Je,Je.current&1|2),Me&&yn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ct()>Yl&&(t.flags|=128,o=!0,pr(r,!1),t.lanes=4194304)}else{if(!o)if(e=Ol(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Vl(t,e),pr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!Me)return ke(t),null}else 2*Ct()-r.renderingStartTime>Yl&&a!==536870912&&(t.flags|=128,o=!0,pr(r,!1),t.lanes=4194304);r.isBackwards?(c.sibling=t.child,t.child=c):(e=r.last,e!==null?e.sibling=c:t.child=c,r.last=c)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ct(),e.sibling=null,a=Je.current,K(Je,o?a&1|2:a&1),Me&&yn(t,r.treeForkCount),e):(ke(t),null);case 22:case 23:return Rt(t),Js(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),a=t.updateQueue,a!==null&&Vl(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&V(Ta),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),_n(et),ke(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function p0(e,t){switch(Us(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(et),Re(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ha(t),null;case 31:if(t.memoizedState!==null){if(Rt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Rt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Je),null;case 4:return Re(),null;case 10:return _n(t.type),null;case 22:case 23:return Rt(t),Js(),e!==null&&V(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(et),null;case 25:return null;default:return null}}function Qh(e,t){switch(Us(t),t.tag){case 3:_n(et),Re();break;case 26:case 27:case 5:ha(t);break;case 4:Re();break;case 31:t.memoizedState!==null&&Rt(t);break;case 13:Rt(t);break;case 19:V(Je);break;case 10:_n(t.type);break;case 22:case 23:Rt(t),Js(),e!==null&&V(Ta);break;case 24:_n(et)}}function vr(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){r=void 0;var c=a.create,p=a.inst;r=c(),p.destroy=r}a=a.next}while(a!==o)}}catch(_){Be(t,t.return,_)}}function Jn(e,t,a){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var c=o.next;r=c;do{if((r.tag&e)===e){var p=r.inst,_=p.destroy;if(_!==void 0){p.destroy=void 0,o=t;var w=a,N=_;try{N()}catch(I){Be(o,w,I)}}}r=r.next}while(r!==c)}}catch(I){Be(t,t.return,I)}}function Zh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Bd(t,a)}catch(r){Be(e,e.return,r)}}}function Kh(e,t,a){a.props=za(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Be(e,t,r)}}function gr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(o){Be(e,t,o)}}function un(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(o){Be(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Be(e,t,o)}else a.current=null}function Jh(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(o){Be(e,e.return,o)}}function Do(e,t,a){try{var r=e.stateNode;U0(r,e.type,a,t),r[yt]=t}catch(o){Be(e,e.return,o)}}function Wh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ra(e.type)||e.tag===4}function Ro(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wh(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&&ra(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 Lo(e,t,a){var r=e.tag;if(r===5||r===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(r!==4&&(r===27&&ra(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Lo(e,t,a),e=e.sibling;e!==null;)Lo(e,t,a),e=e.sibling}function Hl(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&ra(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hl(e,t,a),e=e.sibling;e!==null;)Hl(e,t,a),e=e.sibling}function em(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ht(t,r,a),t[ot]=e,t[yt]=a}catch(c){Be(e,e.return,c)}}var On=!1,at=!1,jo=!1,tm=typeof WeakSet=="function"?WeakSet:Set,st=null;function v0(e,t){if(e=e.containerInfo,tc=lu,e=hd(e),Cs(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var p=0,_=-1,w=-1,N=0,I=0,P=e,q=null;t:for(;;){for(var H;P!==a||o!==0&&P.nodeType!==3||(_=p+o),P!==c||r!==0&&P.nodeType!==3||(w=p+r),P.nodeType===3&&(p+=P.nodeValue.length),(H=P.firstChild)!==null;)q=P,P=H;for(;;){if(P===e)break t;if(q===a&&++N===o&&(_=p),q===c&&++I===r&&(w=p),(H=P.nextSibling)!==null)break;P=q,q=P.parentNode}P=H}a=_===-1||w===-1?null:{start:_,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(nc={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,c=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++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,r=a.stateNode;try{var ie=za(a.type,o);e=r.getSnapshotBeforeUpdate(ie,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(me){Be(a,a.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)rc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rc(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 nm(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:xn(e,a),r&4&&vr(5,a);break;case 1:if(xn(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){Be(a,a.return,p)}else{var o=za(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Be(a,a.return,p)}}r&64&&Zh(a),r&512&&gr(a,a.return);break;case 3:if(xn(e,a),r&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{Bd(e,t)}catch(p){Be(a,a.return,p)}}break;case 27:t===null&&r&4&&em(a);case 26:case 5:xn(e,a),t===null&&r&4&&Jh(a),r&512&&gr(a,a.return);break;case 12:xn(e,a);break;case 31:xn(e,a),r&4&&rm(e,a);break;case 13:xn(e,a),r&4&&lm(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=O0.bind(null,a),P0(e,a))));break;case 22:if(r=a.memoizedState!==null||On,!r){t=t!==null&&t.memoizedState!==null||at,o=On;var c=at;On=r,(at=t)&&!c?An(e,a,(a.subtreeFlags&8772)!==0):xn(e,a),On=o,at=c}break;case 30:break;default:xn(e,a)}}function am(e){var t=e.alternate;t!==null&&(e.alternate=null,am(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&os(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 Xe=null,_t=!1;function Cn(e,t,a){for(a=a.child;a!==null;)im(e,t,a),a=a.sibling}function im(e,t,a){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Gi,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 r=Xe,o=_t;ra(a.type)&&(Xe=a.stateNode,_t=!1),Cn(e,t,a),Cr(a.stateNode),Xe=r,_t=o;break;case 5:at||un(a,t);case 6:if(r=Xe,o=_t,Xe=null,Cn(e,t,a),Xe=r,_t=o,Xe!==null)if(_t)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(a.stateNode)}catch(c){Be(a,t,c)}else try{Xe.removeChild(a.stateNode)}catch(c){Be(a,t,c)}break;case 18:Xe!==null&&(_t?(e=Xe,Zm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Oi(e)):Zm(Xe,a.stateNode));break;case 4:r=Xe,o=_t,Xe=a.stateNode.containerInfo,_t=!0,Cn(e,t,a),Xe=r,_t=o;break;case 0:case 11:case 14:case 15:Jn(2,a,t),at||Jn(4,a,t),Cn(e,t,a);break;case 1:at||(un(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&Kh(a,t,r)),Cn(e,t,a);break;case 21:Cn(e,t,a);break;case 22:at=(r=at)||a.memoizedState!==null,Cn(e,t,a),at=r;break;default:Cn(e,t,a)}}function rm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oi(e)}catch(a){Be(t,t.return,a)}}}function lm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oi(e)}catch(a){Be(t,t.return,a)}}function g0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tm),t;default:throw Error(u(435,e.tag))}}function Bl(e,t){var a=g0(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var o=C0.bind(null,e,r);r.then(o,o)}})}function St(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r],c=e,p=t,_=p;e:for(;_!==null;){switch(_.tag){case 27:if(ra(_.type)){Xe=_.stateNode,_t=!1;break e}break;case 5:Xe=_.stateNode,_t=!1;break e;case 3:case 4:Xe=_.stateNode.containerInfo,_t=!0;break e}_=_.return}if(Xe===null)throw Error(u(160));im(c,p,o),Xe=null,_t=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)um(t,e),t=t.sibling}var Jt=null;function um(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),Et(e),r&4&&(Jn(3,e,e.return),vr(3,e),Jn(5,e,e.return));break;case 1:St(t,e),Et(e),r&512&&(at||a===null||un(a,a.return)),r&64&&On&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var o=Jt;if(St(t,e),Et(e),r&512&&(at||a===null||un(a,a.return)),r&4){var c=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":c=o.getElementsByTagName("title")[0],(!c||c[$i]||c[ot]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(r),o.head.insertBefore(c,o.querySelector("head > title"))),ht(c,r,a),c[ot]=e,ut(c),r=c;break e;case"link":var p=up("link","href",o).get(r+(a.href||""));if(p){for(var _=0;_<p.length;_++)if(c=p[_],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(_,1);break t}}c=o.createElement(r),ht(c,r,a),o.head.appendChild(c);break;case"meta":if(p=up("meta","content",o).get(r+(a.content||""))){for(_=0;_<p.length;_++)if(c=p[_],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(_,1);break t}}c=o.createElement(r),ht(c,r,a),o.head.appendChild(c);break;default:throw Error(u(468,r))}c[ot]=e,ut(c),r=c}e.stateNode=r}else sp(o,e.type,e.stateNode);else e.stateNode=lp(o,r,e.memoizedProps);else c!==r?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,r===null?sp(o,e.type,e.stateNode):lp(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Do(e,e.memoizedProps,a.memoizedProps)}break;case 27:St(t,e),Et(e),r&512&&(at||a===null||un(a,a.return)),a!==null&&r&4&&Do(e,e.memoizedProps,a.memoizedProps);break;case 5:if(St(t,e),Et(e),r&512&&(at||a===null||un(a,a.return)),e.flags&32){o=e.stateNode;try{Xa(o,"")}catch(ie){Be(e,e.return,ie)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,Do(e,o,a!==null?a.memoizedProps:o)),r&1024&&(jo=!0);break;case 6:if(St(t,e),Et(e),r&4){if(e.stateNode===null)throw Error(u(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(ie){Be(e,e.return,ie)}}break;case 3:if(nu=null,o=Jt,Jt=eu(t.containerInfo),St(t,e),Jt=o,Et(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Oi(t.containerInfo)}catch(ie){Be(e,e.return,ie)}jo&&(jo=!1,sm(e));break;case 4:r=Jt,Jt=eu(e.stateNode.containerInfo),St(t,e),Et(e),Jt=r;break;case 12:St(t,e),Et(e);break;case 31:St(t,e),Et(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Bl(e,r)));break;case 13:St(t,e),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Il=Ct()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Bl(e,r)));break;case 22:o=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,N=On,I=at;if(On=N||o,at=I||w,St(t,e),at=I,On=N,Et(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||w||On||at||Ma(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(c=w.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{_=w.stateNode;var P=w.memoizedProps.style,q=P!=null&&P.hasOwnProperty("display")?P.display:null;_.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(ie){Be(w,w.return,ie)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(ie){Be(w,w.return,ie)}}}else if(t.tag===18){if(a===null){w=t;try{var H=w.stateNode;o?Km(H,!0):Km(w.stateNode,!1)}catch(ie){Be(w,w.return,ie)}}}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}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Bl(e,a))));break;case 19:St(t,e),Et(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Bl(e,r)));break;case 30:break;case 21:break;default:St(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(Wh(r)){a=r;break}r=r.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var o=a.stateNode,c=Ro(e);Hl(e,c,o);break;case 5:var p=a.stateNode;a.flags&32&&(Xa(p,""),a.flags&=-33);var _=Ro(e);Hl(e,_,p);break;case 3:case 4:var w=a.stateNode.containerInfo,N=Ro(e);Lo(e,N,w);break;default:throw Error(u(161))}}catch(I){Be(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;sm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)nm(e,t.alternate,t),t=t.sibling}function Ma(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Jn(4,t,t.return),Ma(t);break;case 1:un(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Kh(t,t.return,a),Ma(t);break;case 27:Cr(t.stateNode);case 26:case 5:un(t,t.return),Ma(t);break;case 22:t.memoizedState===null&&Ma(t);break;case 30:Ma(t);break;default:Ma(t)}e=e.sibling}}function An(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:An(o,c,a),vr(4,c);break;case 1:if(An(o,c,a),r=c,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){Be(r,r.return,N)}if(r=c,o=r.updateQueue,o!==null){var _=r.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Hd(w[o],_)}catch(N){Be(r,r.return,N)}}a&&p&64&&Zh(c),gr(c,c.return);break;case 27:em(c);case 26:case 5:An(o,c,a),a&&r===null&&p&4&&Jh(c),gr(c,c.return);break;case 12:An(o,c,a);break;case 31:An(o,c,a),a&&p&4&&rm(o,c);break;case 13:An(o,c,a),a&&p&4&&lm(o,c);break;case 22:c.memoizedState===null&&An(o,c,a),gr(c,c.return);break;case 30:break;default:An(o,c,a)}t=t.sibling}}function No(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&&ar(a))}function qo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ar(e))}function Wt(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)om(e,t,a,r),t=t.sibling}function om(e,t,a,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Wt(e,t,a,r),o&2048&&vr(9,t);break;case 1:Wt(e,t,a,r);break;case 3:Wt(e,t,a,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ar(e)));break;case 12:if(o&2048){Wt(e,t,a,r),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,_=c.onPostCommit;typeof _=="function"&&_(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Be(t,t.return,w)}}else Wt(e,t,a,r);break;case 31:Wt(e,t,a,r);break;case 13:Wt(e,t,a,r);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?Wt(e,t,a,r):yr(e,t):c._visibility&2?Wt(e,t,a,r):(c._visibility|=2,mi(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&No(p,t);break;case 24:Wt(e,t,a,r),o&2048&&qo(t.alternate,t);break;default:Wt(e,t,a,r)}}function mi(e,t,a,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,_=a,w=r,N=p.flags;switch(p.tag){case 0:case 11:case 15:mi(c,p,_,w,o),vr(8,p);break;case 23:break;case 22:var I=p.stateNode;p.memoizedState!==null?I._visibility&2?mi(c,p,_,w,o):yr(c,p):(I._visibility|=2,mi(c,p,_,w,o)),o&&N&2048&&No(p.alternate,p);break;case 24:mi(c,p,_,w,o),o&&N&2048&&qo(p.alternate,p);break;default:mi(c,p,_,w,o)}t=t.sibling}}function yr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,o=r.flags;switch(r.tag){case 22:yr(a,r),o&2048&&No(r.alternate,r);break;case 24:yr(a,r),o&2048&&qo(r.alternate,r);break;default:yr(a,r)}t=t.sibling}}var br=8192;function pi(e,t,a){if(e.subtreeFlags&br)for(e=e.child;e!==null;)cm(e,t,a),e=e.sibling}function cm(e,t,a){switch(e.tag){case 26:pi(e,t,a),e.flags&br&&e.memoizedState!==null&&a_(a,Jt,e.memoizedState,e.memoizedProps);break;case 5:pi(e,t,a);break;case 3:case 4:var r=Jt;Jt=eu(e.stateNode.containerInfo),pi(e,t,a),Jt=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=br,br=16777216,pi(e,t,a),br=r):pi(e,t,a));break;default:pi(e,t,a)}}function fm(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 _r(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];st=r,hm(r,e)}fm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)dm(e),e=e.sibling}function dm(e){switch(e.tag){case 0:case 11:case 15:_r(e),e.flags&2048&&Jn(9,e,e.return);break;case 3:_r(e);break;case 12:_r(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gl(e)):_r(e);break;default:_r(e)}}function Gl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];st=r,hm(r,e)}fm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Jn(8,t,t.return),Gl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Gl(t));break;default:Gl(t)}e=e.sibling}}function hm(e,t){for(;st!==null;){var a=st;switch(a.tag){case 0:case 11:case 15:Jn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ar(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,st=r;else e:for(a=e;st!==null;){r=st;var o=r.sibling,c=r.return;if(am(r),r===a){st=null;break e}if(o!==null){o.return=c,st=o;break e}st=c}}}var y0={getCacheForType:function(e){var t=ft(et),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ft(et).controller.signal}},b0=typeof WeakMap=="function"?WeakMap:Map,Ne=0,$e=null,Oe=null,xe=0,He=0,Lt=null,Wn=!1,vi=!1,Uo=!1,zn=0,Ze=0,ea=0,Da=0,Vo=0,jt=0,gi=0,Sr=null,wt=null,Ho=!1,Il=0,mm=0,Yl=1/0,$l=null,ta=null,rt=0,na=null,yi=null,Mn=0,Bo=0,Go=null,pm=null,Er=0,Io=null;function Nt(){return(Ne&2)!==0&&xe!==0?xe&-xe:D.T!==null?Xo():Df()}function vm(){if(jt===0)if((xe&536870912)===0||Me){var e=Jr;Jr<<=1,(Jr&3932160)===0&&(Jr=262144),jt=e}else jt=536870912;return e=Dt.current,e!==null&&(e.flags|=32),jt}function Tt(e,t,a){(e===$e&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(bi(e,0),aa(e,xe,jt,!1)),Yi(e,a),((Ne&2)===0||e!==$e)&&(e===$e&&((Ne&2)===0&&(Da|=a),Ze===4&&aa(e,xe,jt,!1)),sn(e))}function gm(e,t,a){if((Ne&6)!==0)throw Error(u(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Ii(e,t),o=r?E0(e,t):$o(e,t,!0),c=r;do{if(o===0){vi&&!r&&aa(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!_0(a)){o=$o(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var _=e;o=Sr;var w=_.current.memoizedState.isDehydrated;if(w&&(bi(_,p).flags|=256),p=$o(_,p,!1),p!==2){if(Uo&&!w){_.errorRecoveryDisabledLanes|=c,Da|=c,o=4;break e}c=wt,wt=o,c!==null&&(wt===null?wt=c:wt.push.apply(wt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){bi(e,0),aa(e,t,0,!0);break}e:{switch(r=e,c=o,c){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:aa(r,t,jt,!Wn);break e;case 2:wt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Il+300-Ct(),10<o)){if(aa(r,t,jt,!Wn),el(r,0,!0)!==0)break e;Mn=t,r.timeoutHandle=Xm(ym.bind(null,r,a,wt,$l,Ho,t,jt,Da,gi,Wn,c,"Throttled",-0,0),o);break e}ym(r,a,wt,$l,Ho,t,jt,Da,gi,Wn,c,null,-0,0)}}break}while(!0);sn(e)}function ym(e,t,a,r,o,c,p,_,w,N,I,P,q,H){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},cm(t,c,P);var ie=(c&62914560)===c?Il-Ct():(c&4194048)===c?mm-Ct():0;if(ie=i_(P,ie),ie!==null){Mn=c,e.cancelPendingCommit=ie(Cm.bind(null,e,t,c,a,r,o,p,_,w,I,P,null,q,H)),aa(e,c,p,!N);return}}Cm(e,t,c,a,r,o,p,_,w)}function _0(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 r=0;r<a.length;r++){var o=a[r],c=o.getSnapshot;o=o.value;try{if(!zt(c(),o))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 aa(e,t,a,r){t&=~Vo,t&=~Da,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var c=31-At(o),p=1<<c;r[c]=-1,o&=~p}a!==0&&Af(e,a,t)}function Pl(){return(Ne&6)===0?(wr(0),!1):!0}function Yo(){if(Oe!==null){if(He===0)var e=Oe.return;else e=Oe,bn=Ea=null,io(e),oi=null,rr=0,e=Oe;for(;e!==null;)Qh(e.alternate,e),e=e.return;Oe=null}}function bi(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,B0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Mn=0,Yo(),$e=e,Oe=a=gn(e.current,null),xe=t,He=0,Lt=null,Wn=!1,vi=Ii(e,t),Uo=!1,gi=jt=Vo=Da=ea=Ze=0,wt=Sr=null,Ho=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-At(r),c=1<<o;t|=e[o],r&=~c}return zn=t,dl(),a}function bm(e,t){_e=null,D.H=hr,t===si||t===_l?(t=Nd(),He=3):t===Fs?(t=Nd(),He=4):He=t===So?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,Oe===null&&(Ze=1,jl(e,Bt(t,e.current)))}function _m(){var e=Dt.current;return e===null?!0:(xe&4194048)===xe?$t===null:(xe&62914560)===xe||(xe&536870912)!==0?e===$t:!1}function Sm(){var e=D.H;return D.H=hr,e===null?hr:e}function Em(){var e=D.A;return D.A=y0,e}function Fl(){Ze=4,Wn||(xe&4194048)!==xe&&Dt.current!==null||(vi=!0),(ea&134217727)===0&&(Da&134217727)===0||$e===null||aa($e,xe,jt,!1)}function $o(e,t,a){var r=Ne;Ne|=2;var o=Sm(),c=Em();($e!==e||xe!==t)&&($l=null,bi(e,t)),t=!1;var p=Ze;e:do try{if(He!==0&&Oe!==null){var _=Oe,w=Lt;switch(He){case 8:Yo(),p=6;break e;case 3:case 2:case 9:case 6:Dt.current===null&&(t=!0);var N=He;if(He=0,Lt=null,_i(e,_,w,N),a&&vi){p=0;break e}break;default:N=He,He=0,Lt=null,_i(e,_,w,N)}}S0(),p=Ze;break}catch(I){bm(e,I)}while(!0);return t&&e.shellSuspendCounter++,bn=Ea=null,Ne=r,D.H=o,D.A=c,Oe===null&&($e=null,xe=0,dl()),p}function S0(){for(;Oe!==null;)wm(Oe)}function E0(e,t){var a=Ne;Ne|=2;var r=Sm(),o=Em();$e!==e||xe!==t?($l=null,Yl=Ct()+500,bi(e,t)):vi=Ii(e,t);e:do try{if(He!==0&&Oe!==null){t=Oe;var c=Lt;t:switch(He){case 1:He=0,Lt=null,_i(e,t,c,1);break;case 2:case 9:if(Ld(c)){He=0,Lt=null,Tm(t);break}t=function(){He!==2&&He!==9||$e!==e||(He=7),sn(e)},c.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Ld(c)?(He=0,Lt=null,Tm(t)):(He=0,Lt=null,_i(e,t,c,7));break;case 5:var p=null;switch(Oe.tag){case 26:p=Oe.memoizedState;case 5:case 27:var _=Oe;if(p?op(p):_.stateNode.complete){He=0,Lt=null;var w=_.sibling;if(w!==null)Oe=w;else{var N=_.return;N!==null?(Oe=N,kl(N)):Oe=null}break t}}He=0,Lt=null,_i(e,t,c,5);break;case 6:He=0,Lt=null,_i(e,t,c,6);break;case 8:Yo(),Ze=6;break e;default:throw Error(u(462))}}w0();break}catch(I){bm(e,I)}while(!0);return bn=Ea=null,D.H=r,D.A=o,Ne=a,Oe!==null?0:($e=null,xe=0,dl(),Ze)}function w0(){for(;Oe!==null&&!Fy();)wm(Oe)}function wm(e){var t=kh(e.alternate,e,zn);e.memoizedProps=e.pendingProps,t===null?kl(e):Oe=t}function Tm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Gh(a,t,t.pendingProps,t.type,void 0,xe);break;case 11:t=Gh(a,t,t.pendingProps,t.type.render,t.ref,xe);break;case 5:io(t);default:Qh(a,t),t=Oe=Ed(t,zn),t=kh(a,t,zn)}e.memoizedProps=e.pendingProps,t===null?kl(e):Oe=t}function _i(e,t,a,r){bn=Ea=null,io(t),oi=null,rr=0;var o=t.return;try{if(f0(e,o,t,a,xe)){Ze=1,jl(e,Bt(a,e.current)),Oe=null;return}}catch(c){if(o!==null)throw Oe=o,c;Ze=1,jl(e,Bt(a,e.current)),Oe=null;return}t.flags&32768?(Me||r===1?e=!0:vi||(xe&536870912)!==0?e=!1:(Wn=e=!0,(r===2||r===9||r===3||r===6)&&(r=Dt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Om(t,e)):kl(t)}function kl(e){var t=e;do{if((t.flags&32768)!==0){Om(t,Wn);return}e=t.return;var a=m0(t.alternate,t,zn);if(a!==null){Oe=a;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);Ze===0&&(Ze=5)}function Om(e,t){do{var a=p0(e.alternate,e);if(a!==null){a.flags&=32767,Oe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=a}while(e!==null);Ze=6,Oe=null}function Cm(e,t,a,r,o,c,p,_,w){e.cancelPendingCommit=null;do Xl();while(rt!==0);if((Ne&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(c=t.lanes|t.childLanes,c|=Ds,nb(e,a,c,p,_,w),e===$e&&(Oe=$e=null,xe=0),yi=t,na=e,Mn=a,Bo=c,Go=o,pm=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,x0(Zr,function(){return Dm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=D.T,D.T=null,o=Z.p,Z.p=2,p=Ne,Ne|=4;try{v0(e,t,a)}finally{Ne=p,Z.p=o,D.T=r}}rt=1,xm(),Am(),zm()}}function xm(){if(rt===1){rt=0;var e=na,t=yi,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var r=Z.p;Z.p=2;var o=Ne;Ne|=4;try{um(t,e);var c=nc,p=hd(e.containerInfo),_=c.focusedElem,w=c.selectionRange;if(p!==_&&_&&_.ownerDocument&&dd(_.ownerDocument.documentElement,_)){if(w!==null&&Cs(_)){var N=w.start,I=w.end;if(I===void 0&&(I=N),"selectionStart"in _)_.selectionStart=N,_.selectionEnd=Math.min(I,_.value.length);else{var P=_.ownerDocument||document,q=P&&P.defaultView||window;if(q.getSelection){var H=q.getSelection(),ie=_.textContent.length,me=Math.min(w.start,ie),Ye=w.end===void 0?me:Math.min(w.end,ie);!H.extend&&me>Ye&&(p=Ye,Ye=me,me=p);var z=fd(_,me),x=fd(_,Ye);if(z&&x&&(H.rangeCount!==1||H.anchorNode!==z.node||H.anchorOffset!==z.offset||H.focusNode!==x.node||H.focusOffset!==x.offset)){var L=P.createRange();L.setStart(z.node,z.offset),H.removeAllRanges(),me>Ye?(H.addRange(L),H.extend(x.node,x.offset)):(L.setEnd(x.node,x.offset),H.addRange(L))}}}}for(P=[],H=_;H=H.parentNode;)H.nodeType===1&&P.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<P.length;_++){var $=P[_];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}lu=!!tc,nc=tc=null}finally{Ne=o,Z.p=r,D.T=a}}e.current=t,rt=2}}function Am(){if(rt===2){rt=0;var e=na,t=yi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var r=Z.p;Z.p=2;var o=Ne;Ne|=4;try{nm(e,t.alternate,t)}finally{Ne=o,Z.p=r,D.T=a}}rt=3}}function zm(){if(rt===4||rt===3){rt=0,ky();var e=na,t=yi,a=Mn,r=pm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,yi=na=null,Mm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ta=null),us(a),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Gi,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=D.T,o=Z.p,Z.p=2,D.T=null;try{for(var c=e.onRecoverableError,p=0;p<r.length;p++){var _=r[p];c(_.value,{componentStack:_.stack})}}finally{D.T=t,Z.p=o}}(Mn&3)!==0&&Xl(),sn(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Io?Er++:(Er=0,Io=e):Er=0,wr(0)}}function Mm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ar(t)))}function Xl(){return xm(),Am(),zm(),Dm()}function Dm(){if(rt!==5)return!1;var e=na,t=Bo;Bo=0;var a=us(Mn),r=D.T,o=Z.p;try{Z.p=32>a?32:a,D.T=null,a=Go,Go=null;var c=na,p=Mn;if(rt=0,yi=na=null,Mn=0,(Ne&6)!==0)throw Error(u(331));var _=Ne;if(Ne|=4,dm(c.current),om(c,c.current,p,a),Ne=_,wr(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Gi,c)}catch{}return!0}finally{Z.p=o,D.T=r,Mm(e,t)}}function Rm(e,t,a){t=Bt(a,t),t=_o(e.stateNode,t,2),e=Qn(e,t,2),e!==null&&(Yi(e,2),sn(e))}function Be(e,t,a){if(e.tag===3)Rm(e,e,a);else for(;t!==null;){if(t.tag===3){Rm(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ta===null||!ta.has(r))){e=Bt(a,e),a=Lh(2),r=Qn(t,a,2),r!==null&&(jh(a,r,t,e),Yi(r,2),sn(r));break}}t=t.return}}function Po(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new b0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(Uo=!0,o.add(a),e=T0.bind(null,e,t,a),t.then(e,e))}function T0(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,$e===e&&(xe&a)===a&&(Ze===4||Ze===3&&(xe&62914560)===xe&&300>Ct()-Il?(Ne&2)===0&&bi(e,0):Vo|=a,gi===xe&&(gi=0)),sn(e)}function Lm(e,t){t===0&&(t=xf()),e=ba(e,t),e!==null&&(Yi(e,t),sn(e))}function O0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Lm(e,a)}function C0(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}r!==null&&r.delete(t),Lm(e,a)}function x0(e,t){return as(e,t)}var Ql=null,Si=null,Fo=!1,Zl=!1,ko=!1,ia=0;function sn(e){e!==Si&&e.next===null&&(Si===null?Ql=Si=e:Si=Si.next=e),Zl=!0,Fo||(Fo=!0,z0())}function wr(e,t){if(!ko&&Zl){ko=!0;do for(var a=!1,r=Ql;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var c=0;else{var p=r.suspendedLanes,_=r.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=o&~(p&~_),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Um(r,c))}else c=xe,c=el(r,r===$e?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||Ii(r,c)||(a=!0,Um(r,c));r=r.next}while(a);ko=!1}}function A0(){jm()}function jm(){Zl=Fo=!1;var e=0;ia!==0&&H0()&&(e=ia);for(var t=Ct(),a=null,r=Ql;r!==null;){var o=r.next,c=Nm(r,t);c===0?(r.next=null,a===null?Ql=o:a.next=o,o===null&&(Si=a)):(a=r,(e!==0||(c&3)!==0)&&(Zl=!0)),r=o}rt!==0&&rt!==5||wr(e),ia!==0&&(ia=0)}function Nm(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-At(c),_=1<<p,w=o[p];w===-1?((_&a)===0||(_&r)!==0)&&(o[p]=tb(_,t)):w<=t&&(e.expiredLanes|=_),c&=~_}if(t=$e,a=xe,a=el(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&is(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ii(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&is(r),us(a)){case 2:case 8:a=Of;break;case 32:a=Zr;break;case 268435456:a=Cf;break;default:a=Zr}return r=qm.bind(null,e),a=as(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&is(r),e.callbackPriority=2,e.callbackNode=null,2}function qm(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Xl()&&e.callbackNode!==a)return null;var r=xe;return r=el(e,e===$e?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gm(e,r,t),Nm(e,Ct()),e.callbackNode!=null&&e.callbackNode===a?qm.bind(null,e):null)}function Um(e,t){if(Xl())return null;gm(e,t,!0)}function z0(){G0(function(){(Ne&6)!==0?as(Tf,A0):jm()})}function Xo(){if(ia===0){var e=li;e===0&&(e=Kr,Kr<<=1,(Kr&261888)===0&&(Kr=256)),ia=e}return ia}function Vm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:il(""+e)}function Hm(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 M0(e,t,a,r,o){if(t==="submit"&&a&&a.stateNode===o){var c=Vm((o[yt]||null).action),p=r.submitter;p&&(t=(t=p[yt]||null)?Vm(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var _=new sl("action","action",null,r,o);e.push({event:_,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ia!==0){var w=p?Hm(o,p):new FormData(o);mo(a,{pending:!0,data:w,method:o.method,action:c},null,w)}}else typeof c=="function"&&(_.preventDefault(),w=p?Hm(o,p):new FormData(o),mo(a,{pending:!0,data:w,method:o.method,action:c},c,w))},currentTarget:o}]})}}for(var Qo=0;Qo<Ms.length;Qo++){var Zo=Ms[Qo],D0=Zo.toLowerCase(),R0=Zo[0].toUpperCase()+Zo.slice(1);Kt(D0,"on"+R0)}Kt(vd,"onAnimationEnd"),Kt(gd,"onAnimationIteration"),Kt(yd,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(Xb,"onTransitionRun"),Kt(Qb,"onTransitionStart"),Kt(Zb,"onTransitionCancel"),Kt(bd,"onTransitionEnd"),Fa("onMouseEnter",["mouseout","mouseover"]),Fa("onMouseLeave",["mouseout","mouseover"]),Fa("onPointerEnter",["pointerout","pointerover"]),Fa("onPointerLeave",["pointerout","pointerover"]),pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pa("onBeforeInput",["compositionend","keypress","textInput","paste"]),pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="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(" "),L0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Tr));function Bm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var c=void 0;if(t)for(var p=r.length-1;0<=p;p--){var _=r[p],w=_.instance,N=_.currentTarget;if(_=_.listener,w!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=N;try{c(o)}catch(I){fl(I)}o.currentTarget=null,c=w}else for(p=0;p<r.length;p++){if(_=r[p],w=_.instance,N=_.currentTarget,_=_.listener,w!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=N;try{c(o)}catch(I){fl(I)}o.currentTarget=null,c=w}}}}function Ce(e,t){var a=t[ss];a===void 0&&(a=t[ss]=new Set);var r=e+"__bubble";a.has(r)||(Gm(t,e,2,!1),a.add(r))}function Ko(e,t,a){var r=0;t&&(r|=4),Gm(a,e,r,t)}var Kl="_reactListening"+Math.random().toString(36).slice(2);function Jo(e){if(!e[Kl]){e[Kl]=!0,jf.forEach(function(a){a!=="selectionchange"&&(L0.has(a)||Ko(a,!1,e),Ko(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kl]||(t[Kl]=!0,Ko("selectionchange",!1,t))}}function Gm(e,t,a,r){switch(vp(t)){case 2:var o=u_;break;case 8:o=s_;break;default:o=hc}a=o.bind(null,t,a,e),o=void 0,!gs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Wo(e,t,a,r,o){var c=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var p=r.tag;if(p===3||p===4){var _=r.stateNode.containerInfo;if(_===o)break;if(p===4)for(p=r.return;p!==null;){var w=p.tag;if((w===3||w===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;_!==null;){if(p=Ya(_),p===null)return;if(w=p.tag,w===5||w===6||w===26||w===27){r=c=p;continue e}_=_.parentNode}}r=r.return}Ff(function(){var N=c,I=ps(a),P=[];e:{var q=_d.get(e);if(q!==void 0){var H=sl,ie=e;switch(e){case"keypress":if(ll(a)===0)break e;case"keydown":case"keyup":H=Cb;break;case"focusin":ie="focus",H=Ss;break;case"focusout":ie="blur",H=Ss;break;case"beforeblur":case"afterblur":H=Ss;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":H=Qf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=mb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=zb;break;case vd:case gd:case yd:H=gb;break;case bd:H=Db;break;case"scroll":case"scrollend":H=db;break;case"wheel":H=Lb;break;case"copy":case"cut":case"paste":H=bb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Kf;break;case"toggle":case"beforetoggle":H=Nb}var me=(t&4)!==0,Ye=!me&&(e==="scroll"||e==="scrollend"),z=me?q!==null?q+"Capture":null:q;me=[];for(var x=N,L;x!==null;){var $=x;if(L=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||L===null||z===null||($=Fi(x,z),$!=null&&me.push(Or(x,$,L))),Ye)break;x=x.return}0<me.length&&(q=new H(q,ie,null,a,I),P.push({event:q,listeners:me}))}}if((t&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",q&&a!==ms&&(ie=a.relatedTarget||a.fromElement)&&(Ya(ie)||ie[Ia]))break e;if((H||q)&&(q=I.window===I?I:(q=I.ownerDocument)?q.defaultView||q.parentWindow:window,H?(ie=a.relatedTarget||a.toElement,H=N,ie=ie?Ya(ie):null,ie!==null&&(Ye=f(ie),me=ie.tag,ie!==Ye||me!==5&&me!==27&&me!==6)&&(ie=null)):(H=null,ie=N),H!==ie)){if(me=Qf,$="onMouseLeave",z="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(me=Kf,$="onPointerLeave",z="onPointerEnter",x="pointer"),Ye=H==null?q:Pi(H),L=ie==null?q:Pi(ie),q=new me($,x+"leave",H,a,I),q.target=Ye,q.relatedTarget=L,$=null,Ya(I)===N&&(me=new me(z,x+"enter",ie,a,I),me.target=L,me.relatedTarget=Ye,$=me),Ye=$,H&&ie)t:{for(me=j0,z=H,x=ie,L=0,$=z;$;$=me($))L++;$=0;for(var se=x;se;se=me(se))$++;for(;0<L-$;)z=me(z),L--;for(;0<$-L;)x=me(x),$--;for(;L--;){if(z===x||x!==null&&z===x.alternate){me=z;break t}z=me(z),x=me(x)}me=null}else me=null;H!==null&&Im(P,q,H,me,!1),ie!==null&&Ye!==null&&Im(P,Ye,ie,me,!0)}}e:{if(q=N?Pi(N):window,H=q.nodeName&&q.nodeName.toLowerCase(),H==="select"||H==="input"&&q.type==="file")var Le=rd;else if(ad(q))if(ld)Le=Pb;else{Le=Yb;var re=Ib}else H=q.nodeName,!H||H.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?N&&hs(N.elementType)&&(Le=rd):Le=$b;if(Le&&(Le=Le(e,N))){id(P,Le,a,I);break e}re&&re(e,q,N),e==="focusout"&&N&&q.type==="number"&&N.memoizedProps.value!=null&&ds(q,"number",q.value)}switch(re=N?Pi(N):window,e){case"focusin":(ad(re)||re.contentEditable==="true")&&(Ja=re,xs=N,er=null);break;case"focusout":er=xs=Ja=null;break;case"mousedown":As=!0;break;case"contextmenu":case"mouseup":case"dragend":As=!1,md(P,a,I);break;case"selectionchange":if(kb)break;case"keydown":case"keyup":md(P,a,I)}var Te;if(ws)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Ka?td(e,a)&&(Ae="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ae="onCompositionStart");Ae&&(Jf&&a.locale!=="ko"&&(Ka||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Ka&&(Te=kf()):(In=I,ys="value"in In?In.value:In.textContent,Ka=!0)),re=Jl(N,Ae),0<re.length&&(Ae=new Zf(Ae,e,null,a,I),P.push({event:Ae,listeners:re}),Te?Ae.data=Te:(Te=nd(a),Te!==null&&(Ae.data=Te)))),(Te=Ub?Vb(e,a):Hb(e,a))&&(Ae=Jl(N,"onBeforeInput"),0<Ae.length&&(re=new Zf("onBeforeInput","beforeinput",null,a,I),P.push({event:re,listeners:Ae}),re.data=Te)),M0(P,e,N,a,I)}Bm(P,t)})}function Or(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Jl(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Fi(e,a),o!=null&&r.unshift(Or(e,o,c)),o=Fi(e,t),o!=null&&r.push(Or(e,o,c))),e.tag===3)return r;e=e.return}return[]}function j0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Im(e,t,a,r,o){for(var c=t._reactName,p=[];a!==null&&a!==r;){var _=a,w=_.alternate,N=_.stateNode;if(_=_.tag,w!==null&&w===r)break;_!==5&&_!==26&&_!==27||N===null||(w=N,o?(N=Fi(a,c),N!=null&&p.unshift(Or(a,N,w))):o||(N=Fi(a,c),N!=null&&p.push(Or(a,N,w)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var N0=/\r\n?/g,q0=/\u0000|\uFFFD/g;function Ym(e){return(typeof e=="string"?e:""+e).replace(N0,`
22
- `).replace(q0,"")}function $m(e,t){return t=Ym(t),Ym(e)===t}function Ie(e,t,a,r,o,c){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Xa(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Xa(e,""+r);break;case"className":nl(e,"class",r);break;case"tabIndex":nl(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":nl(e,a,r);break;case"style":$f(e,r,c);break;case"data":if(t!=="object"){nl(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=il(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="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 c=="function"&&(a==="formAction"?(t!=="input"&&Ie(e,t,"name",o.name,o,null),Ie(e,t,"formEncType",o.formEncType,o,null),Ie(e,t,"formMethod",o.formMethod,o,null),Ie(e,t,"formTarget",o.formTarget,o,null)):(Ie(e,t,"encType",o.encType,o,null),Ie(e,t,"method",o.method,o,null),Ie(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=il(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=pn);break;case"onScroll":r!=null&&Ce("scroll",e);break;case"onScrollEnd":r!=null&&Ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=il(""+r),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":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":Ce("beforetoggle",e),Ce("toggle",e),tl(e,"popover",r);break;case"xlinkActuate":mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":mn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":mn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":mn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":mn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":tl(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=cb.get(a)||a,tl(e,a,r))}}function ec(e,t,a,r,o,c){switch(a){case"style":$f(e,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof r=="string"?Xa(e,r):(typeof r=="number"||typeof r=="bigint")&&Xa(e,""+r);break;case"onScroll":r!=null&&Ce("scroll",e);break;case"onScrollEnd":r!=null&&Ce("scrollend",e);break;case"onClick":r!=null&&(e.onclick=pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[yt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof r=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,o);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):tl(e,a,r)}}}function ht(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("load",e);var r=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var p=a[c];if(p!=null)switch(c){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ie(e,t,c,p,a,null)}}o&&Ie(e,t,"srcSet",a.srcSet,a,null),r&&Ie(e,t,"src",a.src,a,null);return;case"input":Ce("invalid",e);var _=c=p=o=null,w=null,N=null;for(r in a)if(a.hasOwnProperty(r)){var I=a[r];if(I!=null)switch(r){case"name":o=I;break;case"type":p=I;break;case"checked":w=I;break;case"defaultChecked":N=I;break;case"value":c=I;break;case"defaultValue":_=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(u(137,t));break;default:Ie(e,t,r,I,a,null)}}Bf(e,c,_,w,N,p,o,!1);return;case"select":Ce("invalid",e),r=p=c=null;for(o in a)if(a.hasOwnProperty(o)&&(_=a[o],_!=null))switch(o){case"value":c=_;break;case"defaultValue":p=_;break;case"multiple":r=_;default:Ie(e,t,o,_,a,null)}t=c,a=p,e.multiple=!!r,t!=null?ka(e,!!r,t,!1):a!=null&&ka(e,!!r,a,!0);return;case"textarea":Ce("invalid",e),c=o=r=null;for(p in a)if(a.hasOwnProperty(p)&&(_=a[p],_!=null))switch(p){case"value":r=_;break;case"defaultValue":o=_;break;case"children":c=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(91));break;default:Ie(e,t,p,_,a,null)}If(e,r,o,c);return;case"option":for(w in a)a.hasOwnProperty(w)&&(r=a[w],r!=null)&&(w==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Ie(e,t,w,r,a,null));return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(r=0;r<Tr.length;r++)Ce(Tr[r],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("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(N in a)if(a.hasOwnProperty(N)&&(r=a[N],r!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ie(e,t,N,r,a,null)}return;default:if(hs(t)){for(I in a)a.hasOwnProperty(I)&&(r=a[I],r!==void 0&&ec(e,t,I,r,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(r=a[_],r!=null&&Ie(e,t,_,r,a,null))}function U0(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,_=null,w=null,N=null,I=null;for(H in a){var P=a[H];if(a.hasOwnProperty(H)&&P!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":w=P;default:r.hasOwnProperty(H)||Ie(e,t,H,null,r,P)}}for(var q in r){var H=r[q];if(P=a[q],r.hasOwnProperty(q)&&(H!=null||P!=null))switch(q){case"type":c=H;break;case"name":o=H;break;case"checked":N=H;break;case"defaultChecked":I=H;break;case"value":p=H;break;case"defaultValue":_=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,t));break;default:H!==P&&Ie(e,t,q,H,r,P)}}fs(e,p,_,w,N,I,c,o);return;case"select":H=p=_=q=null;for(c in a)if(w=a[c],a.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":H=w;default:r.hasOwnProperty(c)||Ie(e,t,c,null,r,w)}for(o in r)if(c=r[o],w=a[o],r.hasOwnProperty(o)&&(c!=null||w!=null))switch(o){case"value":q=c;break;case"defaultValue":_=c;break;case"multiple":p=c;default:c!==w&&Ie(e,t,o,c,r,w)}t=_,a=p,r=H,q!=null?ka(e,!!a,q,!1):!!r!=!!a&&(t!=null?ka(e,!!a,t,!0):ka(e,!!a,a?[]:"",!1));return;case"textarea":H=q=null;for(_ in a)if(o=a[_],a.hasOwnProperty(_)&&o!=null&&!r.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Ie(e,t,_,null,r,o)}for(p in r)if(o=r[p],c=a[p],r.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":q=o;break;case"defaultValue":H=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==c&&Ie(e,t,p,o,r,c)}Gf(e,q,H);return;case"option":for(var ie in a)q=a[ie],a.hasOwnProperty(ie)&&q!=null&&!r.hasOwnProperty(ie)&&(ie==="selected"?e.selected=!1:Ie(e,t,ie,null,r,q));for(w in r)q=r[w],H=a[w],r.hasOwnProperty(w)&&q!==H&&(q!=null||H!=null)&&(w==="selected"?e.selected=q&&typeof q!="function"&&typeof q!="symbol":Ie(e,t,w,q,r,H));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 me in a)q=a[me],a.hasOwnProperty(me)&&q!=null&&!r.hasOwnProperty(me)&&Ie(e,t,me,null,r,q);for(N in r)if(q=r[N],H=a[N],r.hasOwnProperty(N)&&q!==H&&(q!=null||H!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:Ie(e,t,N,q,r,H)}return;default:if(hs(t)){for(var Ye in a)q=a[Ye],a.hasOwnProperty(Ye)&&q!==void 0&&!r.hasOwnProperty(Ye)&&ec(e,t,Ye,void 0,r,q);for(I in r)q=r[I],H=a[I],!r.hasOwnProperty(I)||q===H||q===void 0&&H===void 0||ec(e,t,I,q,r,H);return}}for(var z in a)q=a[z],a.hasOwnProperty(z)&&q!=null&&!r.hasOwnProperty(z)&&Ie(e,t,z,null,r,q);for(P in r)q=r[P],H=a[P],!r.hasOwnProperty(P)||q===H||q==null&&H==null||Ie(e,t,P,q,r,H)}function Pm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function V0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var o=a[r],c=o.transferSize,p=o.initiatorType,_=o.duration;if(c&&_&&Pm(p)){for(p=0,_=o.responseEnd,r+=1;r<a.length;r++){var w=a[r],N=w.startTime;if(N>_)break;var I=w.transferSize,P=w.initiatorType;I&&Pm(P)&&(w=w.responseEnd,p+=I*(w<_?1:(_-N)/(w-N)))}if(--r,t+=8*(c+p)/(o.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 tc=null,nc=null;function Wl(e){return e.nodeType===9?e:e.ownerDocument}function Fm(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 km(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 ac(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 ic=null;function H0(){var e=window.event;return e&&e.type==="popstate"?e===ic?!1:(ic=e,!0):(ic=null,!1)}var Xm=typeof setTimeout=="function"?setTimeout:void 0,B0=typeof clearTimeout=="function"?clearTimeout:void 0,Qm=typeof Promise=="function"?Promise:void 0,G0=typeof queueMicrotask=="function"?queueMicrotask:typeof Qm<"u"?function(e){return Qm.resolve(null).then(e).catch(I0)}:Xm;function I0(e){setTimeout(function(){throw e})}function ra(e){return e==="head"}function Zm(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(o),Oi(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")Cr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Cr(a);for(var c=a.firstChild;c;){var p=c.nextSibling,_=c.nodeName;c[$i]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=p}}else a==="body"&&Cr(e.ownerDocument.body);a=o}while(a);Oi(t)}function Km(e,t){var a=e;e=0;do{var r=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||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function rc(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":rc(a),os(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Y0(e,t,a,r){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[$i])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Pt(e.nextSibling),e===null)break}return null}function $0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Pt(e.nextSibling),e===null))return null;return e}function Jm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pt(e.nextSibling),e===null))return null;return e}function lc(e){return e.data==="$?"||e.data==="$~"}function uc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function P0(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Pt(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 sc=null;function Wm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Pt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function ep(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 tp(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 Cr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);os(e)}var Ft=new Map,np=new Set;function eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=Z.d;Z.d={f:F0,r:k0,D:X0,C:Q0,L:Z0,m:K0,X:W0,S:J0,M:e_};function F0(){var e=Dn.f(),t=Pl();return e||t}function k0(e){var t=$a(e);t!==null&&t.tag===5&&t.type==="form"?bh(t):Dn.r(e)}var Ei=typeof document>"u"?null:document;function ap(e,t,a){var r=Ei;if(r&&typeof t=="string"&&t){var o=Vt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),np.has(o)||(np.add(o),e={rel:e,crossOrigin:a,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),ht(t,"link",e),ut(t),r.head.appendChild(t)))}}function X0(e){Dn.D(e),ap("dns-prefetch",e,null)}function Q0(e,t){Dn.C(e,t),ap("preconnect",e,t)}function Z0(e,t,a){Dn.L(e,t,a);var r=Ei;if(r&&e&&t){var o='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Vt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Vt(a.imageSizes)+'"]')):o+='[href="'+Vt(e)+'"]';var c=o;switch(t){case"style":c=wi(e);break;case"script":c=Ti(e)}Ft.has(c)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ft.set(c,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(xr(c))||t==="script"&&r.querySelector(Ar(c))||(t=r.createElement("link"),ht(t,"link",e),ut(t),r.head.appendChild(t)))}}function K0(e,t){Dn.m(e,t);var a=Ei;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Vt(r)+'"][href="'+Vt(e)+'"]',c=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ti(e)}if(!Ft.has(c)&&(e=y({rel:"modulepreload",href:e},t),Ft.set(c,e),a.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ar(c)))return}r=a.createElement("link"),ht(r,"link",e),ut(r),a.head.appendChild(r)}}}function J0(e,t,a){Dn.S(e,t,a);var r=Ei;if(r&&e){var o=Pa(r).hoistableStyles,c=wi(e);t=t||"default";var p=o.get(c);if(!p){var _={loading:0,preload:null};if(p=r.querySelector(xr(c)))_.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ft.get(c))&&oc(e,a);var w=p=r.createElement("link");ut(w),ht(w,"link",e),w._p=new Promise(function(N,I){w.onload=N,w.onerror=I}),w.addEventListener("load",function(){_.loading|=1}),w.addEventListener("error",function(){_.loading|=2}),_.loading|=4,tu(p,t,r)}p={type:"stylesheet",instance:p,count:1,state:_},o.set(c,p)}}}function W0(e,t){Dn.X(e,t);var a=Ei;if(a&&e){var r=Pa(a).hoistableScripts,o=Ti(e),c=r.get(o);c||(c=a.querySelector(Ar(o)),c||(e=y({src:e,async:!0},t),(t=Ft.get(o))&&cc(e,t),c=a.createElement("script"),ut(c),ht(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(o,c))}}function e_(e,t){Dn.M(e,t);var a=Ei;if(a&&e){var r=Pa(a).hoistableScripts,o=Ti(e),c=r.get(o);c||(c=a.querySelector(Ar(o)),c||(e=y({src:e,async:!0,type:"module"},t),(t=Ft.get(o))&&cc(e,t),c=a.createElement("script"),ut(c),ht(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(o,c))}}function ip(e,t,a,r){var o=(o=fe.current)?eu(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=wi(a.href),a=Pa(o).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=wi(a.href);var c=Pa(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(xr(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Ft.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},Ft.set(e,a),c||t_(o,e,a,p.state))),t&&r===null)throw Error(u(528,""));return p}if(t&&r!==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=Ti(a),a=Pa(o).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function wi(e){return'href="'+Vt(e)+'"'}function xr(e){return'link[rel="stylesheet"]['+e+"]"}function rp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function t_(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),ht(t,"link",a),ut(t),e.head.appendChild(t))}function Ti(e){return'[src="'+Vt(e)+'"]'}function Ar(e){return"script[async]"+e}function lp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Vt(a.href)+'"]');if(r)return t.instance=r,ut(r),r;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ut(r),ht(r,"style",o),tu(r,a.precedence,e),t.instance=r;case"stylesheet":o=wi(a.href);var c=e.querySelector(xr(o));if(c)return t.state.loading|=4,t.instance=c,ut(c),c;r=rp(a),(o=Ft.get(o))&&oc(r,o),c=(e.ownerDocument||e).createElement("link"),ut(c);var p=c;return p._p=new Promise(function(_,w){p.onload=_,p.onerror=w}),ht(c,"link",r),t.state.loading|=4,tu(c,a.precedence,e),t.instance=c;case"script":return c=Ti(a.src),(o=e.querySelector(Ar(c)))?(t.instance=o,ut(o),o):(r=a,(o=Ft.get(c))&&(r=y({},a),cc(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),ht(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,tu(r,a.precedence,e));return t.instance}function tu(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,c=o,p=0;p<r.length;p++){var _=r[p];if(_.dataset.precedence===t)c=_;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function cc(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 up(e,t,a){if(nu===null){var r=new Map,o=nu=new Map;o.set(a,r)}else o=nu,r=o.get(a),r||(r=new Map,o.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[$i]||c[ot]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var _=r.get(p);_?_.push(c):r.set(p,[c])}}return r}function sp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function n_(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 op(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function a_(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=wi(r.href),c=t.querySelector(xr(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=au.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,ut(c);return}c=t.ownerDocument||t,r=rp(r),(o=Ft.get(o))&&oc(r,o),c=c.createElement("link"),ut(c);var p=c;p._p=new Promise(function(_,w){p.onload=_,p.onerror=w}),ht(c,"link",r),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=au.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var fc=0;function i_(e,t){return e.stylesheets&&e.count===0&&ru(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&ru(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&fc===0&&(fc=62500*V0());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ru(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>fc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function au(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ru(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var iu=null;function ru(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,iu=new Map,t.forEach(r_,e),iu=null,au.call(e))}function r_(e,t){if(!(t.state.loading&4)){var a=iu.get(e);if(a)var r=a.get(null);else{a=new Map,iu.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),r=p)}r&&a.set(null,r)}o=t.instance,p=o.getAttribute("data-precedence"),c=a.get(p)||r,c===r&&a.set(null,o),a.set(p,o),this.count++,r=au.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var zr={$$typeof:Y,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function l_(e,t,a,r,o,c,p,_,w){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=rs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rs(0),this.hiddenUpdates=rs(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function cp(e,t,a,r,o,c,p,_,w,N,I,P){return e=new l_(e,t,a,p,w,N,I,P,_),t=1,c===!0&&(t|=24),c=Mt(3,null,null,t),e.current=c,c.stateNode=e,t=Ys(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:a,cache:t},ks(c),e}function fp(e){return e?(e=ti,e):ti}function dp(e,t,a,r,o,c){o=fp(o),r.context===null?r.context=o:r.pendingContext=o,r=Xn(t),r.payload={element:a},c=c===void 0?null:c,c!==null&&(r.callback=c),a=Qn(e,r,t),a!==null&&(Tt(a,e,t),ur(a,e,t))}function hp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function dc(e,t){hp(e,t),(e=e.alternate)&&hp(e,t)}function mp(e){if(e.tag===13||e.tag===31){var t=ba(e,67108864);t!==null&&Tt(t,e,67108864),dc(e,67108864)}}function pp(e){if(e.tag===13||e.tag===31){var t=Nt();t=ls(t);var a=ba(e,t);a!==null&&Tt(a,e,t),dc(e,t)}}var lu=!0;function u_(e,t,a,r){var o=D.T;D.T=null;var c=Z.p;try{Z.p=2,hc(e,t,a,r)}finally{Z.p=c,D.T=o}}function s_(e,t,a,r){var o=D.T;D.T=null;var c=Z.p;try{Z.p=8,hc(e,t,a,r)}finally{Z.p=c,D.T=o}}function hc(e,t,a,r){if(lu){var o=mc(r);if(o===null)Wo(e,t,r,uu,a),gp(e,r);else if(c_(o,e,t,a,r))r.stopPropagation();else if(gp(e,r),t&4&&-1<o_.indexOf(e)){for(;o!==null;){var c=$a(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=ma(c.pendingLanes);if(p!==0){var _=c;for(_.pendingLanes|=2,_.entangledLanes|=2;p;){var w=1<<31-At(p);_.entanglements[1]|=w,p&=~w}sn(c),(Ne&6)===0&&(Yl=Ct()+500,wr(0))}}break;case 31:case 13:_=ba(c,2),_!==null&&Tt(_,c,2),Pl(),dc(c,2)}if(c=mc(r),c===null&&Wo(e,t,r,uu,a),c===o)break;o=c}o!==null&&r.stopPropagation()}else Wo(e,t,r,null,a)}}function mc(e){return e=ps(e),pc(e)}var uu=null;function pc(e){if(uu=null,e=Ya(e),e!==null){var t=f(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=v(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 vp(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(Xy()){case Tf:return 2;case Of:return 8;case Zr:case Qy:return 32;case Cf:return 268435456;default:return 32}default:return 32}}var vc=!1,la=null,ua=null,sa=null,Mr=new Map,Dr=new Map,oa=[],o_="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 gp(e,t){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":sa=null;break;case"pointerover":case"pointerout":Mr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dr.delete(t.pointerId)}}function Rr(e,t,a,r,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:c,targetContainers:[o]},t!==null&&(t=$a(t),t!==null&&mp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function c_(e,t,a,r,o){switch(t){case"focusin":return la=Rr(la,e,t,a,r,o),!0;case"dragenter":return ua=Rr(ua,e,t,a,r,o),!0;case"mouseover":return sa=Rr(sa,e,t,a,r,o),!0;case"pointerover":var c=o.pointerId;return Mr.set(c,Rr(Mr.get(c)||null,e,t,a,r,o)),!0;case"gotpointercapture":return c=o.pointerId,Dr.set(c,Rr(Dr.get(c)||null,e,t,a,r,o)),!0}return!1}function yp(e){var t=Ya(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Rf(e.priority,function(){pp(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,Rf(e.priority,function(){pp(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 su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=mc(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);ms=r,a.target.dispatchEvent(r),ms=null}else return t=$a(a),t!==null&&mp(t),e.blockedOn=a,!1;t.shift()}return!0}function bp(e,t,a){su(e)&&a.delete(t)}function f_(){vc=!1,la!==null&&su(la)&&(la=null),ua!==null&&su(ua)&&(ua=null),sa!==null&&su(sa)&&(sa=null),Mr.forEach(bp),Dr.forEach(bp)}function ou(e,t){e.blockedOn===t&&(e.blockedOn=null,vc||(vc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,f_)))}var cu=null;function _p(e){cu!==e&&(cu=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){cu===e&&(cu=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(pc(r||a)===null)continue;break}var c=$a(a);c!==null&&(e.splice(t,3),t-=3,mo(c,{pending:!0,data:o,method:a.method,action:r},r,o))}}))}function Oi(e){function t(w){return ou(w,e)}la!==null&&ou(la,e),ua!==null&&ou(ua,e),sa!==null&&ou(sa,e),Mr.forEach(t),Dr.forEach(t);for(var a=0;a<oa.length;a++){var r=oa[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<oa.length&&(a=oa[0],a.blockedOn===null);)yp(a),a.blockedOn===null&&oa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var o=a[r],c=a[r+1],p=o[yt]||null;if(typeof c=="function")p||_p(a);else if(p){var _=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[yt]||null)_=p.formAction;else if(pc(o)!==null)continue}else _=p.action;typeof _=="function"?a[r+1]=_:(a.splice(r,3),r-=3),_p(a)}}}function Sp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function gc(e){this._internalRoot=e}fu.prototype.render=gc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,r=Nt();dp(a,r,e,t,null,null)},fu.prototype.unmount=gc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dp(e.current,2,null,e,null,null),Pl(),t[Ia]=null}};function fu(e){this._internalRoot=e}fu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Df();e={blockedOn:null,target:e,priority:t};for(var a=0;a<oa.length&&t!==0&&t<oa[a].priority;a++);oa.splice(a,0,e),a===0&&yp(e)}};var Ep=n.version;if(Ep!=="19.2.4")throw Error(u(527,Ep,"19.2.4"));Z.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=h(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var d_={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!du.isDisabled&&du.supportsFiber)try{Gi=du.inject(d_),xt=du}catch{}}return Hr.createRoot=function(e,t){if(!s(e))throw Error(u(299));var a=!1,r="",o=zh,c=Mh,p=Dh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=cp(e,1,!1,null,null,a,r,null,o,c,p,Sp),e[Ia]=t.current,Jo(e),new gc(t)},Hr.hydrateRoot=function(e,t,a){if(!s(e))throw Error(u(299));var r=!1,o="",c=zh,p=Mh,_=Dh,w=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),t=cp(e,1,!0,t,a??null,r,o,w,c,p,_,Sp),t.context=fp(null),a=t.current,r=Nt(),r=ls(r),o=Xn(r),o.callback=null,Qn(a,o,r),a=r,t.current.lanes=a,Yi(t,a),sn(t),e[Ia]=t.current,Jo(e),new fu(t)},Hr.version="19.2.4",Hr}var $v;function MC(){if($v)return Hc.exports;$v=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Hc.exports=zC(),Hc.exports}var DC=MC();const $y=document.getElementById("root");if(!$y)throw new Error("Root element not found");const RC=DC.createRoot($y);function Pv(i){RC.render(T.jsx(F.StrictMode,{children:i}))}Y_({renderConfigScreen(i){return Pv(T.jsx(MT,{ctx:i}))},settingsAreaSidebarItemGroups(i){return i.currentRole.attributes.can_edit_schema?[{label:"Asset Management",items:[{label:"Optimize assets",icon:"images",pointsTo:{pageId:"optimize-assets"}}]}]:[]},renderPage(i,n){if(i==="optimize-assets")return Pv(T.jsx(CC,{ctx:n}))}});
21
+ `+r.stack}}var as=Object.prototype.hasOwnProperty,is=i.unstable_scheduleCallback,rs=i.unstable_cancelCallback,ky=i.unstable_shouldYield,Xy=i.unstable_requestPaint,Ct=i.unstable_now,Qy=i.unstable_getCurrentPriorityLevel,wf=i.unstable_ImmediatePriority,Of=i.unstable_UserBlockingPriority,Zr=i.unstable_NormalPriority,Zy=i.unstable_LowPriority,Cf=i.unstable_IdlePriority,Ky=i.log,Jy=i.unstable_setDisableYieldValue,Gi=null,xt=null;function Bn(e){if(typeof Ky=="function"&&Jy(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Gi,e)}catch{}}var At=Math.clz32?Math.clz32:tb,Wy=Math.log,eb=Math.LN2;function tb(e){return e>>>=0,e===0?32:31-(Wy(e)/eb|0)|0}var Kr=256,Jr=262144,Wr=4194304;function ma(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 r=e.pendingLanes;if(r===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var _=r&134217727;return _!==0?(r=_&~c,r!==0?o=ma(r):(p&=_,p!==0?o=ma(p):a||(a=_&~e,a!==0&&(o=ma(a))))):(_=r&~c,_!==0?o=ma(_):p!==0?o=ma(p):a||(a=r&~e,a!==0&&(o=ma(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function Ii(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nb(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 xf(){var e=Wr;return Wr<<=1,(Wr&62914560)===0&&(Wr=4194304),e}function ls(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Yi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ab(e,t,a,r,o,c){var p=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,T=e.expirationTimes,N=e.hiddenUpdates;for(a=p&~a;0<a;){var I=31-At(a),P=1<<I;_[I]=0,T[I]=-1;var q=N[I];if(q!==null)for(N[I]=null,I=0;I<q.length;I++){var H=q[I];H!==null&&(H.lane&=-536870913)}a&=~P}r!==0&&Af(e,r,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function Af(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-At(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function zf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-At(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}function Mf(e,t){var a=t&-t;return a=(a&42)!==0?1:us(a),(a&(e.suspendedLanes|t))!==0?0:a}function us(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 ss(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Df(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:vp(e.type))}function Rf(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var Gn=Math.random().toString(36).slice(2),ot="__reactFiber$"+Gn,yt="__reactProps$"+Gn,Ia="__reactContainer$"+Gn,os="__reactEvents$"+Gn,ib="__reactListeners$"+Gn,rb="__reactHandles$"+Gn,Lf="__reactResources$"+Gn,$i="__reactMarker$"+Gn;function cs(e){delete e[ot],delete e[yt],delete e[os],delete e[ib],delete e[rb]}function Ya(e){var t=e[ot];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ia]||a[ot]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ep(e);e!==null;){if(a=e[ot])return a;e=ep(e)}return t}e=a,a=e.parentNode}return null}function $a(e){if(e=e[ot]||e[Ia]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Pa(e){var t=e[Lf];return t||(t=e[Lf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[$i]=!0}var jf=new Set,Nf={};function pa(e,t){Fa(e,t),Fa(e+"Capture",t)}function Fa(e,t){for(Nf[e]=t,e=0;e<t.length;e++)jf.add(t[e])}var lb=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]*$"),qf={},Uf={};function ub(e){return as.call(Uf,e)?!0:as.call(qf,e)?!1:lb.test(e)?Uf[e]=!0:(qf[e]=!0,!1)}function tl(e,t,a){if(ub(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="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,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sb(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){a=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(p){a=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fs(e){if(!e._valueTracker){var t=Vf(e)?"checked":"value";e._valueTracker=sb(e,t,""+e[t])}}function Hf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Vf(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function al(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 ob=/[\n"\\]/g;function Vt(e){return e.replace(ob,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ds(e,t,a,r,o,c,p,_){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?hs(e,p,Ut(t)):a!=null?hs(e,p,Ut(a)):r!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+Ut(_):e.removeAttribute("name")}function Bf(e,t,a,r,o,c,p,_){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){fs(e);return}a=a!=null?""+Ut(a):"",t=t!=null?""+Ut(t):a,_||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=_?e.checked:!!r,e.defaultChecked=!!r,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),fs(e)}function hs(e,t,a){t==="number"&&al(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ka(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Ut(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Gf(e,t,a){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ut(a):""}function If(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(u(92));if(ge(r)){if(1<r.length)throw Error(u(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=Ut(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),fs(e)}function Xa(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var cb=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 Yf(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||cb.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function $f(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&a[o]!==r&&Yf(e,o,r)}else for(var c in t)t.hasOwnProperty(c)&&Yf(e,c,t[c])}function ms(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 fb=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"]]),db=/^[\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 il(e){return db.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function pn(){}var ps=null;function vs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,Za=null;function Pf(e){var t=$a(e);if(t&&(e=t.stateNode)){var a=e[yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ds(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="'+Vt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=r[yt]||null;if(!o)throw Error(u(90));ds(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&Hf(r)}break e;case"textarea":Gf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ka(e,!!a.multiple,t,!1)}}}var gs=!1;function Ff(e,t,a){if(gs)return e(t,a);gs=!0;try{var r=e(t);return r}finally{if(gs=!1,(Qa!==null||Za!==null)&&(Pl(),Qa&&(t=Qa,e=Za,Za=Qa=null,Pf(t),e)))for(t=0;t<e.length;t++)Pf(e[t])}}function Fi(e,t){var a=e.stateNode;if(a===null)return null;var r=a[yt]||null;if(r===null)return null;a=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;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"),ys=!1;if(vn)try{var ki={};Object.defineProperty(ki,"passive",{get:function(){ys=!0}}),window.addEventListener("test",ki,ki),window.removeEventListener("test",ki,ki)}catch{ys=!1}var In=null,bs=null,rl=null;function kf(){if(rl)return rl;var e,t=bs,a=t.length,r,o="value"in In?In.value:In.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(r=1;r<=p&&t[a-r]===o[c-r];r++);return rl=o.slice(e,1<r?1-r: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 Xf(){return!1}function bt(e){function t(a,r,o,c,p){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(a=e[_],this[_]=a?a(c):c[_]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ul:Xf,this.isPropagationStopped=Xf,this}return y(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 va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sl=bt(va),Xi=y({},va,{view:0,detail:0}),hb=bt(Xi),_s,Ss,Qi,ol=y({},Xi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ts,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!==Qi&&(Qi&&e.type==="mousemove"?(_s=e.screenX-Qi.screenX,Ss=e.screenY-Qi.screenY):Ss=_s=0,Qi=e),_s)},movementY:function(e){return"movementY"in e?e.movementY:Ss}}),Qf=bt(ol),mb=y({},ol,{dataTransfer:0}),pb=bt(mb),vb=y({},Xi,{relatedTarget:0}),Es=bt(vb),gb=y({},va,{animationName:0,elapsedTime:0,pseudoElement:0}),yb=bt(gb),bb=y({},va,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_b=bt(bb),Sb=y({},va,{data:0}),Zf=bt(Sb),Eb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tb={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"},wb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ob(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wb[e])?!!t[e]:!1}function Ts(){return Ob}var Cb=y({},Xi,{key:function(e){if(e.key){var t=Eb[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"?Tb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ts,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}}),xb=bt(Cb),Ab=y({},ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kf=bt(Ab),zb=y({},Xi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ts}),Mb=bt(zb),Db=y({},va,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rb=bt(Db),Lb=y({},ol,{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}),jb=bt(Lb),Nb=y({},va,{newState:0,oldState:0}),qb=bt(Nb),Ub=[9,13,27,32],ws=vn&&"CompositionEvent"in window,Zi=null;vn&&"documentMode"in document&&(Zi=document.documentMode);var Vb=vn&&"TextEvent"in window&&!Zi,Jf=vn&&(!ws||Zi&&8<Zi&&11>=Zi),Wf=" ",ed=!1;function td(e,t){switch(e){case"keyup":return Ub.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function Hb(e,t){switch(e){case"compositionend":return nd(t);case"keypress":return t.which!==32?null:(ed=!0,Wf);case"textInput":return e=t.data,e===Wf&&ed?null:e;default:return null}}function Bb(e,t){if(Ka)return e==="compositionend"||!ws&&td(e,t)?(e=kf(),rl=bs=In=null,Ka=!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 Jf&&t.locale!=="ko"?null:t.data;default:return null}}var Gb={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 ad(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gb[e.type]:t==="textarea"}function id(e,t,a,r){Qa?Za?Za.push(r):Za=[r]:Qa=r,t=Jl(t,"onChange"),0<t.length&&(a=new sl("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Ki=null,Ji=null;function Ib(e){Bm(e,0)}function cl(e){var t=Pi(e);if(Hf(t))return e}function rd(e,t){if(e==="change")return t}var ld=!1;if(vn){var Os;if(vn){var Cs="oninput"in document;if(!Cs){var ud=document.createElement("div");ud.setAttribute("oninput","return;"),Cs=typeof ud.oninput=="function"}Os=Cs}else Os=!1;ld=Os&&(!document.documentMode||9<document.documentMode)}function sd(){Ki&&(Ki.detachEvent("onpropertychange",od),Ji=Ki=null)}function od(e){if(e.propertyName==="value"&&cl(Ji)){var t=[];id(t,Ji,e,vs(e)),Ff(Ib,t)}}function Yb(e,t,a){e==="focusin"?(sd(),Ki=t,Ji=a,Ki.attachEvent("onpropertychange",od)):e==="focusout"&&sd()}function $b(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cl(Ji)}function Pb(e,t){if(e==="click")return cl(t)}function Fb(e,t){if(e==="input"||e==="change")return cl(t)}function kb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:kb;function Wi(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!as.call(t,o)||!zt(e[o],t[o]))return!1}return!0}function cd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fd(e,t){var a=cd(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=cd(a)}}function dd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=al(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=al(e.document)}return t}function xs(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 Xb=vn&&"documentMode"in document&&11>=document.documentMode,Ja=null,As=null,er=null,zs=!1;function md(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zs||Ja==null||Ja!==al(r)||(r=Ja,"selectionStart"in r&&xs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),er&&Wi(er,r)||(er=r,r=Jl(As,"onSelect"),0<r.length&&(t=new sl("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Ja)))}function ga(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Wa={animationend:ga("Animation","AnimationEnd"),animationiteration:ga("Animation","AnimationIteration"),animationstart:ga("Animation","AnimationStart"),transitionrun:ga("Transition","TransitionRun"),transitionstart:ga("Transition","TransitionStart"),transitioncancel:ga("Transition","TransitionCancel"),transitionend:ga("Transition","TransitionEnd")},Ms={},pd={};vn&&(pd=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function ya(e){if(Ms[e])return Ms[e];if(!Wa[e])return e;var t=Wa[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in pd)return Ms[e]=t[a];return e}var vd=ya("animationend"),gd=ya("animationiteration"),yd=ya("animationstart"),Qb=ya("transitionrun"),Zb=ya("transitionstart"),Kb=ya("transitioncancel"),bd=ya("transitionend"),_d=new Map,Ds="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(" ");Ds.push("scrollEnd");function Kt(e,t){_d.set(e,t),pa(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)},Ht=[],ei=0,Rs=0;function dl(){for(var e=ei,t=Rs=ei=0;t<e;){var a=Ht[t];Ht[t++]=null;var r=Ht[t];Ht[t++]=null;var o=Ht[t];Ht[t++]=null;var c=Ht[t];if(Ht[t++]=null,r!==null&&o!==null){var p=r.pending;p===null?o.next=o:(o.next=p.next,p.next=o),r.pending=o}c!==0&&Sd(a,o,c)}}function hl(e,t,a,r){Ht[ei++]=e,Ht[ei++]=t,Ht[ei++]=a,Ht[ei++]=r,Rs|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ls(e,t,a,r){return hl(e,t,a,r),ml(e)}function ba(e,t){return hl(e,null,null,t),ml(e)}function Sd(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,r=c.alternate,r!==null&&(r.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-At(a),e=c.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=a|536870912),c):null}function ml(e){if(50<Er)throw Er=0,Yo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ti={};function Jb(e,t,a,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,a,r){return new Jb(e,t,a,r)}function js(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gn(e,t){var a=e.alternate;return a===null?(a=Mt(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 Ed(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,r,o,c){var p=0;if(r=e,typeof e=="function")js(e)&&(p=1);else if(typeof e=="string")p=a_(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=Mt(31,a,t,o),e.elementType=de,e.lanes=c,e;case O:return _a(a.children,o,c,t);case R:p=8,o|=24;break;case j:return e=Mt(12,a,t,o|2),e.elementType=j,e.lanes=c,e;case M:return e=Mt(13,a,t,o),e.elementType=M,e.lanes=c,e;case G:return e=Mt(19,a,t,o),e.elementType=G,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:p=10;break e;case X:p=9;break e;case Q:p=11;break e;case U:p=14;break e;case J:p=16,r=null;break e}p=29,a=Error(u(130,e===null?"null":typeof e,"")),r=null}return t=Mt(p,a,t,o),t.elementType=e,t.type=r,t.lanes=c,t}function _a(e,t,a,r){return e=Mt(7,e,r,t),e.lanes=a,e}function Ns(e,t,a){return e=Mt(6,e,null,t),e.lanes=a,e}function Td(e){var t=Mt(18,null,null,0);return t.stateNode=e,t}function qs(e,t,a){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var wd=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var a=wd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Tf(t)},wd.set(e,t),t)}return{value:e,source:t,stack:Tf(t)}}var ni=[],ai=0,vl=null,tr=0,Gt=[],It=0,Yn=null,rn=1,ln="";function yn(e,t){ni[ai++]=tr,ni[ai++]=vl,vl=e,tr=t}function Od(e,t,a){Gt[It++]=rn,Gt[It++]=ln,Gt[It++]=Yn,Yn=e;var r=rn;e=ln;var o=32-At(r)-1;r&=~(1<<o),a+=1;var c=32-At(t)+o;if(30<c){var p=o-o%5;c=(r&(1<<p)-1).toString(32),r>>=p,o-=p,rn=1<<32-At(t)+o|a<<o|r,ln=c+e}else rn=1<<c|a<<o|r,ln=e}function Us(e){e.return!==null&&(yn(e,1),Od(e,1,0))}function Vs(e){for(;e===vl;)vl=ni[--ai],ni[ai]=null,tr=ni[--ai],ni[ai]=null;for(;e===Yn;)Yn=Gt[--It],Gt[It]=null,ln=Gt[--It],Gt[It]=null,rn=Gt[--It],Gt[It]=null}function Cd(e,t){Gt[It++]=rn,Gt[It++]=ln,Gt[It++]=Yn,rn=t.id,ln=t.overflow,Yn=e}var ct=null,Fe=null,Me=!1,$n=null,Yt=!1,Hs=Error(u(519));function Pn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nr(Bt(t,e)),Hs}function xd(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[ot]=e,t[yt]=r,a){case"dialog":Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":case"embed":Ce("load",t);break;case"video":case"audio":for(a=0;a<wr.length;a++)Ce(wr[a],t);break;case"source":Ce("error",t);break;case"img":case"image":case"link":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"input":Ce("invalid",t),Bf(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ce("invalid",t);break;case"textarea":Ce("invalid",t),If(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||$m(t.textContent,a)?(r.popover!=null&&(Ce("beforetoggle",t),Ce("toggle",t)),r.onScroll!=null&&Ce("scroll",t),r.onScrollEnd!=null&&Ce("scrollend",t),r.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||Pn(e,!0)}function Ad(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:ct=ct.return}}function ii(e){if(e!==ct)return!1;if(!Me)return Ad(e),Me=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ic(e.type,e.memoizedProps)),a=!a),a&&Fe&&Pn(e),Ad(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Fe=Wm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Fe=Wm(e)}else t===27?(t=Fe,ra(e.type)?(e=oc,oc=null,Fe=e):Fe=t):Fe=ct?Pt(e.stateNode.nextSibling):null;return!0}function Sa(){Fe=ct=null,Me=!1}function Bs(){var e=$n;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),$n=null),e}function nr(e){$n===null?$n=[e]:$n.push(e)}var Gs=C(null),Ea=null,bn=null;function Fn(e,t,a){K(Gs,t._currentValue),t._currentValue=a}function _n(e){e._currentValue=Gs.current,V(Gs)}function Is(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Ys(e,t,a,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var _=c;c=o;for(var T=0;T<t.length;T++)if(_.context===t[T]){c.lanes|=a,_=c.alternate,_!==null&&(_.lanes|=a),Is(c.return,a,e),r||(p=null);break e}c=_.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(u(341));p.lanes|=a,c=p.alternate,c!==null&&(c.lanes|=a),Is(p,a,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function ri(e,t,a,r){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(u(387));if(p=p.memoizedProps,p!==null){var _=o.type;zt(o.pendingProps.value,p.value)||(e!==null?e.push(_):e=[_])}}else if(o===ue.current){if(p=o.alternate,p===null)throw Error(u(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(zr):e=[zr])}o=o.return}e!==null&&Ys(t,e,a,r),t.flags|=262144}function gl(e){for(e=e.firstContext;e!==null;){if(!zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){Ea=e,bn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return zd(Ea,e)}function yl(e,t){return Ea===null&&Ta(e),zd(e,t)}function zd(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 Wb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},e0=i.unstable_scheduleCallback,t0=i.unstable_NormalPriority,et={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $s(){return{controller:new Wb,data:new Map,refCount:0}}function ar(e){e.refCount--,e.refCount===0&&e0(t0,function(){e.controller.abort()})}var ir=null,Ps=0,li=0,ui=null;function n0(e,t){if(ir===null){var a=ir=[];Ps=0,li=Qo(),ui={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Ps++,t.then(Md,Md),t}function Md(){if(--Ps===0&&ir!==null){ui!==null&&(ui.status="fulfilled");var e=ir;ir=null,li=0,ui=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function a0(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),r}var Dd=D.S;D.S=function(e,t){mm=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&n0(e,t),Dd!==null&&Dd(e,t)};var wa=C(null);function Fs(){var e=wa.current;return e!==null?e:Pe.pooledCache}function bl(e,t){t===null?K(wa,wa.current):K(wa,t.pool)}function Rd(){var e=Fs();return e===null?null:{parent:et._currentValue,pool:e}}var si=Error(u(460)),ks=Error(u(474)),_l=Error(u(542)),Sl={then:function(){}};function Ld(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jd(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,qd(e),e;default:if(typeof t.status=="string")t.then(pn,pn);else{if(e=Pe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qd(e),e}throw Ca=t,si}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ca=a,si):a}}var Ca=null;function Nd(){if(Ca===null)throw Error(u(459));var e=Ca;return Ca=null,e}function qd(e){if(e===si||e===_l)throw Error(u(483))}var oi=null,rr=0;function El(e){var t=rr;return rr+=1,oi===null&&(oi=[]),jd(oi,e,t)}function lr(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 Ud(e){function t(z,x){if(e){var L=z.deletions;L===null?(z.deletions=[x],z.flags|=16):L.push(x)}}function a(z,x){if(!e)return null;for(;x!==null;)t(z,x),x=x.sibling;return null}function r(z){for(var x=new Map;z!==null;)z.key!==null?x.set(z.key,z):x.set(z.index,z),z=z.sibling;return x}function o(z,x){return z=gn(z,x),z.index=0,z.sibling=null,z}function c(z,x,L){return z.index=L,e?(L=z.alternate,L!==null?(L=L.index,L<x?(z.flags|=67108866,x):L):(z.flags|=67108866,x)):(z.flags|=1048576,x)}function p(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function _(z,x,L,$){return x===null||x.tag!==6?(x=Ns(L,z.mode,$),x.return=z,x):(x=o(x,L),x.return=z,x)}function T(z,x,L,$){var se=L.type;return se===O?I(z,x,L.props.children,$,L.key):x!==null&&(x.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===J&&Oa(se)===x.type)?(x=o(x,L.props),lr(x,L),x.return=z,x):(x=pl(L.type,L.key,L.props,null,z.mode,$),lr(x,L),x.return=z,x)}function N(z,x,L,$){return x===null||x.tag!==4||x.stateNode.containerInfo!==L.containerInfo||x.stateNode.implementation!==L.implementation?(x=qs(L,z.mode,$),x.return=z,x):(x=o(x,L.children||[]),x.return=z,x)}function I(z,x,L,$,se){return x===null||x.tag!==7?(x=_a(L,z.mode,$,se),x.return=z,x):(x=o(x,L),x.return=z,x)}function P(z,x,L){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=Ns(""+x,z.mode,L),x.return=z,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case S:return L=pl(x.type,x.key,x.props,null,z.mode,L),lr(L,x),L.return=z,L;case E:return x=qs(x,z.mode,L),x.return=z,x;case J:return x=Oa(x),P(z,x,L)}if(ge(x)||W(x))return x=_a(x,z.mode,L,null),x.return=z,x;if(typeof x.then=="function")return P(z,El(x),L);if(x.$$typeof===Y)return P(z,yl(z,x),L);Tl(z,x)}return null}function q(z,x,L,$){var se=x!==null?x.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return se!==null?null:_(z,x,""+L,$);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case S:return L.key===se?T(z,x,L,$):null;case E:return L.key===se?N(z,x,L,$):null;case J:return L=Oa(L),q(z,x,L,$)}if(ge(L)||W(L))return se!==null?null:I(z,x,L,$,null);if(typeof L.then=="function")return q(z,x,El(L),$);if(L.$$typeof===Y)return q(z,x,yl(z,L),$);Tl(z,L)}return null}function H(z,x,L,$,se){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return z=z.get(L)||null,_(x,z,""+$,se);if(typeof $=="object"&&$!==null){switch($.$$typeof){case S:return z=z.get($.key===null?L:$.key)||null,T(x,z,$,se);case E:return z=z.get($.key===null?L:$.key)||null,N(x,z,$,se);case J:return $=Oa($),H(z,x,L,$,se)}if(ge($)||W($))return z=z.get(L)||null,I(x,z,$,se,null);if(typeof $.then=="function")return H(z,x,L,El($),se);if($.$$typeof===Y)return H(z,x,L,yl(x,$),se);Tl(x,$)}return null}function ie(z,x,L,$){for(var se=null,Le=null,re=x,we=x=0,Ae=null;re!==null&&we<L.length;we++){re.index>we?(Ae=re,re=null):Ae=re.sibling;var je=q(z,re,L[we],$);if(je===null){re===null&&(re=Ae);break}e&&re&&je.alternate===null&&t(z,re),x=c(je,x,we),Le===null?se=je:Le.sibling=je,Le=je,re=Ae}if(we===L.length)return a(z,re),Me&&yn(z,we),se;if(re===null){for(;we<L.length;we++)re=P(z,L[we],$),re!==null&&(x=c(re,x,we),Le===null?se=re:Le.sibling=re,Le=re);return Me&&yn(z,we),se}for(re=r(re);we<L.length;we++)Ae=H(re,z,we,L[we],$),Ae!==null&&(e&&Ae.alternate!==null&&re.delete(Ae.key===null?we:Ae.key),x=c(Ae,x,we),Le===null?se=Ae:Le.sibling=Ae,Le=Ae);return e&&re.forEach(function(ca){return t(z,ca)}),Me&&yn(z,we),se}function me(z,x,L,$){if(L==null)throw Error(u(151));for(var se=null,Le=null,re=x,we=x=0,Ae=null,je=L.next();re!==null&&!je.done;we++,je=L.next()){re.index>we?(Ae=re,re=null):Ae=re.sibling;var ca=q(z,re,je.value,$);if(ca===null){re===null&&(re=Ae);break}e&&re&&ca.alternate===null&&t(z,re),x=c(ca,x,we),Le===null?se=ca:Le.sibling=ca,Le=ca,re=Ae}if(je.done)return a(z,re),Me&&yn(z,we),se;if(re===null){for(;!je.done;we++,je=L.next())je=P(z,je.value,$),je!==null&&(x=c(je,x,we),Le===null?se=je:Le.sibling=je,Le=je);return Me&&yn(z,we),se}for(re=r(re);!je.done;we++,je=L.next())je=H(re,z,we,je.value,$),je!==null&&(e&&je.alternate!==null&&re.delete(je.key===null?we:je.key),x=c(je,x,we),Le===null?se=je:Le.sibling=je,Le=je);return e&&re.forEach(function(m_){return t(z,m_)}),Me&&yn(z,we),se}function $e(z,x,L,$){if(typeof L=="object"&&L!==null&&L.type===O&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case S:e:{for(var se=L.key;x!==null;){if(x.key===se){if(se=L.type,se===O){if(x.tag===7){a(z,x.sibling),$=o(x,L.props.children),$.return=z,z=$;break e}}else if(x.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===J&&Oa(se)===x.type){a(z,x.sibling),$=o(x,L.props),lr($,L),$.return=z,z=$;break e}a(z,x);break}else t(z,x);x=x.sibling}L.type===O?($=_a(L.props.children,z.mode,$,L.key),$.return=z,z=$):($=pl(L.type,L.key,L.props,null,z.mode,$),lr($,L),$.return=z,z=$)}return p(z);case E:e:{for(se=L.key;x!==null;){if(x.key===se)if(x.tag===4&&x.stateNode.containerInfo===L.containerInfo&&x.stateNode.implementation===L.implementation){a(z,x.sibling),$=o(x,L.children||[]),$.return=z,z=$;break e}else{a(z,x);break}else t(z,x);x=x.sibling}$=qs(L,z.mode,$),$.return=z,z=$}return p(z);case J:return L=Oa(L),$e(z,x,L,$)}if(ge(L))return ie(z,x,L,$);if(W(L)){if(se=W(L),typeof se!="function")throw Error(u(150));return L=se.call(L),me(z,x,L,$)}if(typeof L.then=="function")return $e(z,x,El(L),$);if(L.$$typeof===Y)return $e(z,x,yl(z,L),$);Tl(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,x!==null&&x.tag===6?(a(z,x.sibling),$=o(x,L),$.return=z,z=$):(a(z,x),$=Ns(L,z.mode,$),$.return=z,z=$),p(z)):a(z,x)}return function(z,x,L,$){try{rr=0;var se=$e(z,x,L,$);return oi=null,se}catch(re){if(re===si||re===_l)throw re;var Le=Mt(29,re,null,z.mode);return Le.lanes=$,Le.return=z,Le}}}var xa=Ud(!0),Vd=Ud(!1),kn=!1;function Xs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qs(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 Xn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qn(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ne&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=ml(e),Sd(e,null,a),t}return hl(e,r,t,a),ml(e)}function ur(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,zf(e,a)}}function Zs(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Ks=!1;function sr(){if(Ks){var e=ui;if(e!==null)throw e}}function or(e,t,a,r){Ks=!1;var o=e.updateQueue;kn=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var T=_,N=T.next;T.next=null,p===null?c=N:p.next=N,p=T;var I=e.alternate;I!==null&&(I=I.updateQueue,_=I.lastBaseUpdate,_!==p&&(_===null?I.firstBaseUpdate=N:_.next=N,I.lastBaseUpdate=T))}if(c!==null){var P=o.baseState;p=0,I=N=T=null,_=c;do{var q=_.lane&-536870913,H=q!==_.lane;if(H?(xe&q)===q:(r&q)===q){q!==0&&q===li&&(Ks=!0),I!==null&&(I=I.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var ie=e,me=_;q=t;var $e=a;switch(me.tag){case 1:if(ie=me.payload,typeof ie=="function"){P=ie.call($e,P,q);break e}P=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=me.payload,q=typeof ie=="function"?ie.call($e,P,q):ie,q==null)break e;P=y({},P,q);break e;case 2:kn=!0}}q=_.callback,q!==null&&(e.flags|=64,H&&(e.flags|=8192),H=o.callbacks,H===null?o.callbacks=[q]:H.push(q))}else H={lane:q,tag:_.tag,payload:_.payload,callback:_.callback,next:null},I===null?(N=I=H,T=P):I=I.next=H,p|=q;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;H=_,_=H.next,H.next=null,o.lastBaseUpdate=H,o.shared.pending=null}}while(!0);I===null&&(T=P),o.baseState=T,o.firstBaseUpdate=N,o.lastBaseUpdate=I,c===null&&(o.shared.lanes=0),ea|=p,e.lanes=p,e.memoizedState=P}}function Hd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Bd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Hd(a[e],t)}var ci=C(null),wl=C(0);function Gd(e,t){e=zn,K(wl,e),K(ci,t),zn=e|t.baseLanes}function Js(){K(wl,zn),K(ci,ci.current)}function Ws(){zn=wl.current,V(ci),V(wl)}var Dt=C(null),$t=null;function Zn(e){var t=e.alternate;K(Je,Je.current&1),K(Dt,e),$t===null&&(t===null||ci.current!==null||t.memoizedState!==null)&&($t=e)}function eo(e){K(Je,Je.current),K(Dt,e),$t===null&&($t=e)}function Id(e){e.tag===22?(K(Je,Je.current),K(Dt,e),$t===null&&($t=e)):Kn()}function Kn(){K(Je,Je.current),K(Dt,Dt.current)}function Rt(e){V(Dt),$t===e&&($t=null),V(Je)}var Je=C(0);function Ol(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||uc(a)||sc(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,_e=null,Ie=null,tt=null,Cl=!1,fi=!1,Aa=!1,xl=0,cr=0,di=null,i0=0;function Qe(){throw Error(u(321))}function to(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!zt(e[a],t[a]))return!1;return!0}function no(e,t,a,r,o,c){return Sn=c,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Oh:yo,Aa=!1,c=a(r,o),Aa=!1,fi&&(c=$d(t,a,r,o)),Yd(e),c}function Yd(e){D.H=hr;var t=Ie!==null&&Ie.next!==null;if(Sn=0,tt=Ie=_e=null,Cl=!1,cr=0,di=null,t)throw Error(u(300));e===null||nt||(e=e.dependencies,e!==null&&gl(e)&&(nt=!0))}function $d(e,t,a,r){_e=e;var o=0;do{if(fi&&(di=null),cr=0,fi=!1,25<=o)throw Error(u(301));if(o+=1,tt=Ie=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Ch,c=t(a,r)}while(fi);return c}function r0(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?fr(t):t,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(_e.flags|=1024),t}function ao(){var e=xl!==0;return xl=0,e}function io(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ro(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,tt=Ie=_e=null,fi=!1,cr=xl=0,di=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?_e.memoizedState=tt=e:tt=tt.next=e,tt}function We(){if(Ie===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=tt===null?_e.memoizedState:tt.next;if(t!==null)tt=t,Ie=e;else{if(e===null)throw _e.alternate===null?Error(u(467)):Error(u(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},tt===null?_e.memoizedState=tt=e:tt=tt.next=e}return tt}function Al(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fr(e){var t=cr;return cr+=1,di===null&&(di=[]),e=jd(di,e,t),t=_e,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Oh:yo),e}function zl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fr(e);if(e.$$typeof===Y)return ft(e)}throw Error(u(438,String(e)))}function lo(e){var t=null,a=_e.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=_e.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Al(),_e.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=ze;return t.index++,a}function En(e,t){return typeof t=="function"?t(e):t}function Ml(e){var t=We();return uo(t,Ie,e)}function uo(e,t,a){var r=e.queue;if(r===null)throw Error(u(311));r.lastRenderedReducer=a;var o=e.baseQueue,c=r.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,r.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var _=p=null,T=null,N=t,I=!1;do{var P=N.lane&-536870913;if(P!==N.lane?(xe&P)===P:(Sn&P)===P){var q=N.revertLane;if(q===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),P===li&&(I=!0);else if((Sn&q)===q){N=N.next,q===li&&(I=!0);continue}else P={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(_=T=P,p=c):T=T.next=P,_e.lanes|=q,ea|=q;P=N.action,Aa&&a(c,P),c=N.hasEagerState?N.eagerState:a(c,P)}else q={lane:P,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(_=T=q,p=c):T=T.next=q,_e.lanes|=P,ea|=P;N=N.next}while(N!==null&&N!==t);if(T===null?p=c:T.next=_,!zt(c,e.memoizedState)&&(nt=!0,I&&(a=ui,a!==null)))throw a;e.memoizedState=c,e.baseState=p,e.baseQueue=T,r.lastRenderedState=c}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function so(e){var t=We(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);zt(c,t.memoizedState)||(nt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,r]}function Pd(e,t,a){var r=_e,o=We(),c=Me;if(c){if(a===void 0)throw Error(u(407));a=a()}else a=t();var p=!zt((Ie||o).memoizedState,a);if(p&&(o.memoizedState=a,nt=!0),o=o.queue,fo(Xd.bind(null,r,o,e),[e]),o.getSnapshot!==t||p||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,hi(9,{destroy:void 0},kd.bind(null,r,o,a,t),null),Pe===null)throw Error(u(349));c||(Sn&127)!==0||Fd(r,t,a)}return a}function Fd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=_e.updateQueue,t===null?(t=Al(),_e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function kd(e,t,a,r){t.value=a,t.getSnapshot=r,Qd(t)&&Zd(e)}function Xd(e,t,a){return a(function(){Qd(t)&&Zd(e)})}function Qd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!zt(e,a)}catch{return!0}}function Zd(e){var t=ba(e,2);t!==null&&wt(t,e,2)}function oo(e){var t=gt();if(typeof e=="function"){var a=e;if(e=a(),Aa){Bn(!0);try{a()}finally{Bn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},t}function Kd(e,t,a,r){return e.baseState=a,uo(e,Ie,typeof r=="function"?r:En)}function l0(e,t,a,r,o){if(Ll(e))throw Error(u(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};D.T!==null?a(!0):c.isTransition=!1,r(c),a=t.pending,a===null?(c.next=t.pending=c,Jd(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Jd(e,t){var a=t.action,r=t.payload,o=e.state;if(t.isTransition){var c=D.T,p={};D.T=p;try{var _=a(o,r),T=D.S;T!==null&&T(p,_),Wd(e,t,_)}catch(N){co(e,t,N)}finally{c!==null&&p.types!==null&&(c.types=p.types),D.T=c}}else try{c=a(o,r),Wd(e,t,c)}catch(N){co(e,t,N)}}function Wd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){eh(e,t,r)},function(r){return co(e,t,r)}):eh(e,t,a)}function eh(e,t,a){t.status="fulfilled",t.value=a,th(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Jd(e,a)))}function co(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,th(t),t=t.next;while(t!==r)}e.action=null}function th(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function nh(e,t){return t}function ah(e,t){if(Me){var a=Pe.formState;if(a!==null){e:{var r=_e;if(Me){if(Fe){t:{for(var o=Fe,c=Yt;o.nodeType!==8;){if(!c){o=null;break t}if(o=Pt(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Fe=Pt(o.nextSibling),r=o.data==="F!";break e}}Pn(r)}r=!1}r&&(t=a[0])}}return a=gt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nh,lastRenderedState:t},a.queue=r,a=Eh.bind(null,_e,r),r.dispatch=a,r=oo(!1),c=go.bind(null,_e,!1,r.queue),r=gt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,a=l0.bind(null,_e,o,c,a),o.dispatch=a,r.memoizedState=e,[t,a,!1]}function ih(e){var t=We();return rh(t,Ie,e)}function rh(e,t,a){if(t=uo(e,t,nh)[0],e=Ml(En)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=fr(t)}catch(p){throw p===si?_l:p}else r=t;t=We();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(_e.flags|=2048,hi(9,{destroy:void 0},u0.bind(null,o,a),null)),[r,c,e]}function u0(e,t){e.action=t}function lh(e){var t=We(),a=Ie;if(a!==null)return rh(t,a,e);We(),t=t.memoizedState,a=We();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function hi(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Al(),_e.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function uh(){return We().memoizedState}function Dl(e,t,a,r){var o=gt();_e.flags|=e,o.memoizedState=hi(1|t,{destroy:void 0},a,r===void 0?null:r)}function Rl(e,t,a,r){var o=We();r=r===void 0?null:r;var c=o.memoizedState.inst;Ie!==null&&r!==null&&to(r,Ie.memoizedState.deps)?o.memoizedState=hi(t,c,a,r):(_e.flags|=e,o.memoizedState=hi(1|t,c,a,r))}function sh(e,t){Dl(8390656,8,e,t)}function fo(e,t){Rl(2048,8,e,t)}function s0(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Al(),_e.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function oh(e){var t=We().memoizedState;return s0({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function ch(e,t){return Rl(4,2,e,t)}function fh(e,t){return Rl(4,4,e,t)}function dh(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 hh(e,t,a){a=a!=null?a.concat([e]):null,Rl(4,4,dh.bind(null,t,e),a)}function ho(){}function mh(e,t){var a=We();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&to(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function ph(e,t){var a=We();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&to(t,r[1]))return r[0];if(r=e(),Aa){Bn(!0);try{e()}finally{Bn(!1)}}return a.memoizedState=[r,t],r}function mo(e,t,a){return a===void 0||(Sn&1073741824)!==0&&(xe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=vm(),_e.lanes|=e,ea|=e,a)}function vh(e,t,a,r){return zt(a,t)?a:ci.current!==null?(e=mo(e,a,r),zt(e,t)||(nt=!0),e):(Sn&42)===0||(Sn&1073741824)!==0&&(xe&261930)===0?(nt=!0,e.memoizedState=a):(e=vm(),_e.lanes|=e,ea|=e,t)}function gh(e,t,a,r,o){var c=Z.p;Z.p=c!==0&&8>c?c:8;var p=D.T,_={};D.T=_,go(e,!1,t,a);try{var T=o(),N=D.S;if(N!==null&&N(_,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var I=a0(T,r);dr(e,t,I,Nt(e))}else dr(e,t,r,Nt(e))}catch(P){dr(e,t,{then:function(){},status:"rejected",reason:P},Nt())}finally{Z.p=c,p!==null&&_.types!==null&&(p.types=_.types),D.T=p}}function o0(){}function po(e,t,a,r){if(e.tag!==5)throw Error(u(476));var o=yh(e).queue;gh(e,o,t,ee,a===null?o0:function(){return bh(e),a(r)})}function yh(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 bh(e){var t=yh(e);t.next===null&&(t=e.alternate.memoizedState),dr(e,t.next.queue,{},Nt())}function vo(){return ft(zr)}function _h(){return We().memoizedState}function Sh(){return We().memoizedState}function c0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Nt();e=Xn(a);var r=Qn(t,e,a);r!==null&&(wt(r,t,a),ur(r,t,a)),t={cache:$s()},e.payload=t;return}t=t.return}}function f0(e,t,a){var r=Nt();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ll(e)?Th(t,a):(a=Ls(e,t,a,r),a!==null&&(wt(a,e,r),wh(a,t,r)))}function Eh(e,t,a){var r=Nt();dr(e,t,a,r)}function dr(e,t,a,r){var o={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ll(e))Th(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,_=c(p,a);if(o.hasEagerState=!0,o.eagerState=_,zt(_,p))return hl(e,t,o,0),Pe===null&&dl(),!1}catch{}if(a=Ls(e,t,o,r),a!==null)return wt(a,e,r),wh(a,t,r),!0}return!1}function go(e,t,a,r){if(r={lane:2,revertLane:Qo(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ll(e)){if(t)throw Error(u(479))}else t=Ls(e,a,r,2),t!==null&&wt(t,e,2)}function Ll(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Th(e,t){fi=Cl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function wh(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,zf(e,a)}}var hr={readContext:ft,use:zl,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};hr.useEffectEvent=Qe;var Oh={readContext:ft,use:zl,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:sh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Dl(4194308,4,dh.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 r=e();if(Aa){Bn(!0);try{e()}finally{Bn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=gt();if(a!==void 0){var o=a(t);if(Aa){Bn(!0);try{a(t)}finally{Bn(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=f0.bind(null,_e,e),[r.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=oo(e);var t=e.queue,a=Eh.bind(null,_e,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ho,useDeferredValue:function(e,t){var a=gt();return mo(a,e,t)},useTransition:function(){var e=oo(!1);return e=gh.bind(null,_e,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=_e,o=gt();if(Me){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),Pe===null)throw Error(u(349));(xe&127)!==0||Fd(r,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,sh(Xd.bind(null,r,c,e),[e]),r.flags|=2048,hi(9,{destroy:void 0},kd.bind(null,r,c,a,t),null),a},useId:function(){var e=gt(),t=Pe.identifierPrefix;if(Me){var a=ln,r=rn;a=(r&~(1<<32-At(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=xl++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=i0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:vo,useFormState:ah,useActionState:ah,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=go.bind(null,_e,!0,a),a.dispatch=t,[e,t]},useMemoCache:lo,useCacheRefresh:function(){return gt().memoizedState=c0.bind(null,_e)},useEffectEvent:function(e){var t=gt(),a={impl:e};return t.memoizedState=a,function(){if((Ne&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},yo={readContext:ft,use:zl,useCallback:mh,useContext:ft,useEffect:fo,useImperativeHandle:hh,useInsertionEffect:ch,useLayoutEffect:fh,useMemo:ph,useReducer:Ml,useRef:uh,useState:function(){return Ml(En)},useDebugValue:ho,useDeferredValue:function(e,t){var a=We();return vh(a,Ie.memoizedState,e,t)},useTransition:function(){var e=Ml(En)[0],t=We().memoizedState;return[typeof e=="boolean"?e:fr(e),t]},useSyncExternalStore:Pd,useId:_h,useHostTransitionStatus:vo,useFormState:ih,useActionState:ih,useOptimistic:function(e,t){var a=We();return Kd(a,Ie,e,t)},useMemoCache:lo,useCacheRefresh:Sh};yo.useEffectEvent=oh;var Ch={readContext:ft,use:zl,useCallback:mh,useContext:ft,useEffect:fo,useImperativeHandle:hh,useInsertionEffect:ch,useLayoutEffect:fh,useMemo:ph,useReducer:so,useRef:uh,useState:function(){return so(En)},useDebugValue:ho,useDeferredValue:function(e,t){var a=We();return Ie===null?mo(a,e,t):vh(a,Ie.memoizedState,e,t)},useTransition:function(){var e=so(En)[0],t=We().memoizedState;return[typeof e=="boolean"?e:fr(e),t]},useSyncExternalStore:Pd,useId:_h,useHostTransitionStatus:vo,useFormState:lh,useActionState:lh,useOptimistic:function(e,t){var a=We();return Ie!==null?Kd(a,Ie,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:lo,useCacheRefresh:Sh};Ch.useEffectEvent=oh;function bo(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var _o={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Nt(),o=Xn(r);o.payload=t,a!=null&&(o.callback=a),t=Qn(e,o,r),t!==null&&(wt(t,e,r),ur(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Nt(),o=Xn(r);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Qn(e,o,r),t!==null&&(wt(t,e,r),ur(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Nt(),r=Xn(a);r.tag=2,t!=null&&(r.callback=t),t=Qn(e,r,a),t!==null&&(wt(t,e,a),ur(t,e,a))}};function xh(e,t,a,r,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,c,p):t.prototype&&t.prototype.isPureReactComponent?!Wi(a,r)||!Wi(o,c):!0}function Ah(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&_o.enqueueReplaceState(t,t.state,null)}function za(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function zh(e){fl(e)}function Mh(e){console.error(e)}function Dh(e){fl(e)}function jl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Rh(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function So(e,t,a){return a=Xn(a),a.tag=3,a.payload={element:null},a.callback=function(){jl(e,t)},a}function Lh(e){return e=Xn(e),e.tag=3,e}function jh(e,t,a,r){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=r.value;e.payload=function(){return o(c)},e.callback=function(){Rh(t,a,r)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Rh(t,a,r),typeof o!="function"&&(ta===null?ta=new Set([this]):ta.add(this));var _=r.stack;this.componentDidCatch(r.value,{componentStack:_!==null?_:""})})}function d0(e,t,a,r,o){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&ri(t,a,o,!0),a=Dt.current,a!==null){switch(a.tag){case 31:case 13:return $t===null?Fl():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=o,r===Sl?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Fo(e,r,o)),!1;case 22:return a.flags|=65536,r===Sl?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Fo(e,r,o)),!1}throw Error(u(435,a.tag))}return Fo(e,r,o),Fl(),!1}if(Me)return t=Dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==Hs&&(e=Error(u(422),{cause:r}),nr(Bt(e,a)))):(r!==Hs&&(t=Error(u(423),{cause:r}),nr(Bt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Bt(r,a),o=So(e.stateNode,r,o),Zs(e,o),Ze!==4&&(Ze=2)),!1;var c=Error(u(520),{cause:r});if(c=Bt(c,a),Sr===null?Sr=[c]:Sr.push(c),Ze!==4&&(Ze=2),t===null)return!0;r=Bt(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=So(a.stateNode,r,e),Zs(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ta===null||!ta.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Lh(o),jh(o,e,a,r),Zs(a,o),!1}a=a.return}while(a!==null);return!1}var Eo=Error(u(461)),nt=!1;function dt(e,t,a,r){t.child=e===null?Vd(t,null,a,r):xa(t,e.child,a,r)}function Nh(e,t,a,r,o){a=a.render;var c=t.ref;if("ref"in r){var p={};for(var _ in r)_!=="ref"&&(p[_]=r[_])}else p=r;return Ta(t),r=no(e,t,a,p,c,o),_=ao(),e!==null&&!nt?(io(e,t,o),Tn(e,t,o)):(Me&&_&&Us(t),t.flags|=1,dt(e,t,r,o),t.child)}function qh(e,t,a,r,o){if(e===null){var c=a.type;return typeof c=="function"&&!js(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Uh(e,t,c,r,o)):(e=pl(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Mo(e,o)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:Wi,a(p,r)&&e.ref===t.ref)return Tn(e,t,o)}return t.flags|=1,e=gn(c,r),e.ref=t.ref,e.return=t,t.child=e}function Uh(e,t,a,r,o){if(e!==null){var c=e.memoizedProps;if(Wi(c,r)&&e.ref===t.ref)if(nt=!1,t.pendingProps=r=c,Mo(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,Tn(e,t,o)}return To(e,t,a,r,o)}function Vh(e,t,a,r){var o=r.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~c}else r=0,t.child=null;return Hh(e,t,c,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bl(t,c!==null?c.cachePool:null),c!==null?Gd(t,c):Js(),Id(t);else return r=t.lanes=536870912,Hh(e,t,c!==null?c.baseLanes|a:a,a,r)}else c!==null?(bl(t,c.cachePool),Gd(t,c),Kn(),t.memoizedState=null):(e!==null&&bl(t,null),Js(),Kn());return dt(e,t,o,a),t.child}function mr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Hh(e,t,a,r,o){var c=Fs();return c=c===null?null:{parent:et._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&bl(t,null),Js(),Id(t),e!==null&&ri(e,t,r,!0),t.childLanes=o,null}function Nl(e,t){return t=Ul({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bh(e,t,a){return xa(t,e.child,null,a),e=Nl(t,t.pendingProps),e.flags|=2,Rt(t),t.memoizedState=null,e}function h0(e,t,a){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(r.mode==="hidden")return e=Nl(t,r),t.lanes=536870912,mr(null,e);if(eo(t),(e=Fe)?(e=Jm(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yn!==null?{id:rn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},a=Td(e),a.return=t,t.child=a,ct=t,Fe=null)):e=null,e===null)throw Pn(t);return t.lanes=536870912,null}return Nl(t,r)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(eo(t),o)if(t.flags&256)t.flags&=-257,t=Bh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(nt||ri(e,t,a,!1),o=(a&e.childLanes)!==0,nt||o){if(r=Pe,r!==null&&(p=Mf(r,a),p!==0&&p!==c.retryLane))throw c.retryLane=p,ba(e,p),wt(r,e,p),Eo;Fl(),t=Bh(e,t,a)}else e=c.treeContext,Fe=Pt(p.nextSibling),ct=t,Me=!0,$n=null,Yt=!1,e!==null&&Cd(t,e),t=Nl(t,r),t.flags|=4096;return t}return e=gn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ql(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 To(e,t,a,r,o){return Ta(t),a=no(e,t,a,r,void 0,o),r=ao(),e!==null&&!nt?(io(e,t,o),Tn(e,t,o)):(Me&&r&&Us(t),t.flags|=1,dt(e,t,a,o),t.child)}function Gh(e,t,a,r,o,c){return Ta(t),t.updateQueue=null,a=$d(t,r,a,o),Yd(e),r=ao(),e!==null&&!nt?(io(e,t,c),Tn(e,t,c)):(Me&&r&&Us(t),t.flags|=1,dt(e,t,a,c),t.child)}function Ih(e,t,a,r,o){if(Ta(t),t.stateNode===null){var c=ti,p=a.contextType;typeof p=="object"&&p!==null&&(c=ft(p)),c=new a(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=_o,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},Xs(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?ft(p):ti,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(bo(t,a,p,r),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&_o.enqueueReplaceState(c,c.state,null),or(t,r,c,o),sr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var _=t.memoizedProps,T=za(a,_);c.props=T;var N=c.context,I=a.contextType;p=ti,typeof I=="object"&&I!==null&&(p=ft(I));var P=a.getDerivedStateFromProps;I=typeof P=="function"||typeof c.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,I||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(_||N!==p)&&Ah(t,c,r,p),kn=!1;var q=t.memoizedState;c.state=q,or(t,r,c,o),sr(),N=t.memoizedState,_||q!==N||kn?(typeof P=="function"&&(bo(t,a,P,r),N=t.memoizedState),(T=kn||xh(t,a,T,r,q,N,p))?(I||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=N),c.props=r,c.state=N,c.context=p,r=T):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,Qs(e,t),p=t.memoizedProps,I=za(a,p),c.props=I,P=t.pendingProps,q=c.context,N=a.contextType,T=ti,typeof N=="object"&&N!==null&&(T=ft(N)),_=a.getDerivedStateFromProps,(N=typeof _=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==P||q!==T)&&Ah(t,c,r,T),kn=!1,q=t.memoizedState,c.state=q,or(t,r,c,o),sr();var H=t.memoizedState;p!==P||q!==H||kn||e!==null&&e.dependencies!==null&&gl(e.dependencies)?(typeof _=="function"&&(bo(t,a,_,r),H=t.memoizedState),(I=kn||xh(t,a,I,r,q,H,T)||e!==null&&e.dependencies!==null&&gl(e.dependencies))?(N||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,H,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,H,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=H),c.props=r,c.state=H,c.context=T,r=I):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),r=!1)}return c=r,ql(e,t),r=(t.flags&128)!==0,c||r?(c=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&r?(t.child=xa(t,e.child,null,o),t.child=xa(t,null,a,o)):dt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=Tn(e,t,o),e}function Yh(e,t,a,r){return Sa(),t.flags|=256,dt(e,t,a,r),t.child}var wo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oo(e){return{baseLanes:e,cachePool:Rd()}}function Co(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=jt),e}function $h(e,t,a){var r=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(o?Zn(t):Kn(),(e=Fe)?(e=Jm(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yn!==null?{id:rn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},a=Td(e),a.return=t,t.child=a,ct=t,Fe=null)):e=null,e===null)throw Pn(t);return sc(e)?t.lanes=32:t.lanes=536870912,null}var _=r.children;return r=r.fallback,o?(Kn(),o=t.mode,_=Ul({mode:"hidden",children:_},o),r=_a(r,o,a,null),_.return=t,r.return=t,_.sibling=r,t.child=_,r=t.child,r.memoizedState=Oo(a),r.childLanes=Co(e,p,a),t.memoizedState=wo,mr(null,r)):(Zn(t),xo(t,_))}var T=e.memoizedState;if(T!==null&&(_=T.dehydrated,_!==null)){if(c)t.flags&256?(Zn(t),t.flags&=-257,t=Ao(e,t,a)):t.memoizedState!==null?(Kn(),t.child=e.child,t.flags|=128,t=null):(Kn(),_=r.fallback,o=t.mode,r=Ul({mode:"visible",children:r.children},o),_=_a(_,o,a,null),_.flags|=2,r.return=t,_.return=t,r.sibling=_,t.child=r,xa(t,e.child,null,a),r=t.child,r.memoizedState=Oo(a),r.childLanes=Co(e,p,a),t.memoizedState=wo,t=mr(null,r));else if(Zn(t),sc(_)){if(p=_.nextSibling&&_.nextSibling.dataset,p)var N=p.dgst;p=N,r=Error(u(419)),r.stack="",r.digest=p,nr({value:r,source:null,stack:null}),t=Ao(e,t,a)}else if(nt||ri(e,t,a,!1),p=(a&e.childLanes)!==0,nt||p){if(p=Pe,p!==null&&(r=Mf(p,a),r!==0&&r!==T.retryLane))throw T.retryLane=r,ba(e,r),wt(p,e,r),Eo;uc(_)||Fl(),t=Ao(e,t,a)}else uc(_)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Fe=Pt(_.nextSibling),ct=t,Me=!0,$n=null,Yt=!1,e!==null&&Cd(t,e),t=xo(t,r.children),t.flags|=4096);return t}return o?(Kn(),_=r.fallback,o=t.mode,T=e.child,N=T.sibling,r=gn(T,{mode:"hidden",children:r.children}),r.subtreeFlags=T.subtreeFlags&65011712,N!==null?_=gn(N,_):(_=_a(_,o,a,null),_.flags|=2),_.return=t,r.return=t,r.sibling=_,t.child=r,mr(null,r),r=t.child,_=e.child.memoizedState,_===null?_=Oo(a):(o=_.cachePool,o!==null?(T=et._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Rd(),_={baseLanes:_.baseLanes|a,cachePool:o}),r.memoizedState=_,r.childLanes=Co(e,p,a),t.memoizedState=wo,mr(e.child,r)):(Zn(t),a=e.child,e=a.sibling,a=gn(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function xo(e,t){return t=Ul({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ul(e,t){return e=Mt(22,e,null,t),e.lanes=0,e}function Ao(e,t,a){return xa(t,e.child,null,a),e=xo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ph(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Is(e.return,t,a)}function zo(e,t,a,r,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=r,p.tail=a,p.tailMode=o,p.treeForkCount=c)}function Fh(e,t,a){var r=t.pendingProps,o=r.revealOrder,c=r.tail;r=r.children;var p=Je.current,_=(p&2)!==0;if(_?(p=p&1|2,t.flags|=128):p&=1,K(Je,p),dt(e,t,r,a),r=Me?tr:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ph(e,a,t);else if(e.tag===19)Ph(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(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Ol(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),zo(t,!1,o,a,c,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ol(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}zo(t,!0,a,null,c,r);break;case"together":zo(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Tn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ea|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ri(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=gn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=gn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Mo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&gl(e)))}function m0(e,t,a){switch(t.tag){case 3:De(t,t.stateNode.containerInfo),Fn(t,et,e.memoizedState.cache),Sa();break;case 27:case 5:nn(t);break;case 4:De(t,t.stateNode.containerInfo);break;case 10:Fn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,eo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Zn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?$h(e,t,a):(Zn(t),e=Tn(e,t,a),e!==null?e.sibling:null);Zn(t);break;case 19:var o=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(ri(e,t,a,!1),r=(a&t.childLanes)!==0),o){if(r)return Fh(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(Je,Je.current),r)break;return null;case 22:return t.lanes=0,Vh(e,t,a,t.pendingProps);case 24:Fn(t,et,e.memoizedState.cache)}return Tn(e,t,a)}function kh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!Mo(e,a)&&(t.flags&128)===0)return nt=!1,m0(e,t,a);nt=(e.flags&131072)!==0}else nt=!1,Me&&(t.flags&1048576)!==0&&Od(t,tr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e=="function")js(e)?(r=za(e,r),t.tag=1,t=Ih(null,t,e,r,a)):(t.tag=0,t=To(null,t,e,r,a));else{if(e!=null){var o=e.$$typeof;if(o===Q){t.tag=11,t=Nh(null,t,e,r,a);break e}else if(o===U){t.tag=14,t=qh(null,t,e,r,a);break e}}throw t=le(e)||e,Error(u(306,t,""))}}return t;case 0:return To(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,o=za(r,t.pendingProps),Ih(e,t,r,o,a);case 3:e:{if(De(t,t.stateNode.containerInfo),e===null)throw Error(u(387));r=t.pendingProps;var c=t.memoizedState;o=c.element,Qs(e,t),or(t,r,null,a);var p=t.memoizedState;if(r=p.cache,Fn(t,et,r),r!==c.cache&&Ys(t,[et],a,!0),sr(),r=p.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Yh(e,t,r,a);break e}else if(r!==o){o=Bt(Error(u(424)),t),nr(o),t=Yh(e,t,r,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Fe=Pt(e.firstChild),ct=t,Me=!0,$n=null,Yt=!0,a=Vd(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Sa(),r===o){t=Tn(e,t,a);break e}dt(e,t,r,a)}t=t.child}return t;case 26:return ql(e,t),e===null?(a=ip(t.type,null,t.pendingProps,null))?t.memoizedState=a:Me||(a=t.type,e=t.pendingProps,r=Wl(fe.current).createElement(a),r[ot]=t,r[yt]=e,ht(r,a,e),ut(r),t.stateNode=r):t.memoizedState=ip(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return nn(t),e===null&&Me&&(r=t.stateNode=tp(t.type,t.pendingProps,fe.current),ct=t,Yt=!0,o=Fe,ra(t.type)?(oc=o,Fe=Pt(r.firstChild)):Fe=o),dt(e,t,t.pendingProps.children,a),ql(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((o=r=Fe)&&(r=$0(r,t.type,t.pendingProps,Yt),r!==null?(t.stateNode=r,ct=t,Fe=Pt(r.firstChild),Yt=!1,o=!0):o=!1),o||Pn(t)),nn(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,r=c.children,ic(o,c)?r=null:p!==null&&ic(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=no(e,t,r0,null,null,a),zr._currentValue=o),ql(e,t),dt(e,t,r,a),t.child;case 6:return e===null&&Me&&((e=a=Fe)&&(a=P0(a,t.pendingProps,Yt),a!==null?(t.stateNode=a,ct=t,Fe=null,e=!0):e=!1),e||Pn(t)),null;case 13:return $h(e,t,a);case 4:return De(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xa(t,null,r,a):dt(e,t,r,a),t.child;case 11:return Nh(e,t,t.type,t.pendingProps,a);case 7:return dt(e,t,t.pendingProps,a),t.child;case 8:return dt(e,t,t.pendingProps.children,a),t.child;case 12:return dt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,Fn(t,t.type,r.value),dt(e,t,r.children,a),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Ta(t),o=ft(o),r=r(o),t.flags|=1,dt(e,t,r,a),t.child;case 14:return qh(e,t,t.type,t.pendingProps,a);case 15:return Uh(e,t,t.type,t.pendingProps,a);case 19:return Fh(e,t,a);case 31:return h0(e,t,a);case 22:return Vh(e,t,a,t.pendingProps);case 24:return Ta(t),r=ft(et),e===null?(o=Fs(),o===null&&(o=Pe,c=$s(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:r,cache:o},Xs(t),Fn(t,et,o)):((e.lanes&a)!==0&&(Qs(e,t),or(t,null,null,a),sr()),o=e.memoizedState,c=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Fn(t,et,r)):(r=c.cache,Fn(t,et,r),r!==o.cache&&Ys(t,[et],a,!0))),dt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function wn(e){e.flags|=4}function Do(e,t,a,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(_m())e.flags|=8192;else throw Ca=Sl,ks}else e.flags&=-16777217}function Xh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!op(t))if(_m())e.flags|=8192;else throw Ca=Sl,ks}function Vl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?xf():536870912,e.lanes|=t,gi|=t)}function pr(e,t){if(!Me)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 r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function p0(e,t,a){var r=t.pendingProps;switch(Vs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_n(et),Re(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ii(t)?wn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Bs())),ke(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(wn(t),c!==null?(ke(t),Xh(t,c)):(ke(t),Do(t,o,null,r,a))):c?c!==e.memoizedState?(wn(t),ke(t),Xh(t,c)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&wn(t),ke(t),Do(t,o,e,r,a)),null;case 27:if(ha(t),a=fe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&wn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return ke(t),null}e=te.current,ii(t)?xd(t):(e=tp(o,r,a),t.stateNode=e,wn(t))}return ke(t),null;case 5:if(ha(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&wn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return ke(t),null}if(c=te.current,ii(t))xd(t);else{var p=Wl(fe.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof r.is=="string"?p.createElement("select",{is:r.is}):p.createElement("select"),r.multiple?c.multiple=!0:r.size&&(c.size=r.size);break;default:c=typeof r.is=="string"?p.createElement(o,{is:r.is}):p.createElement(o)}}c[ot]=t,c[yt]=r;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(ht(c,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&wn(t)}}return ke(t),Do(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&wn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,ii(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,o=ct,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[ot]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||$m(e.nodeValue,a)),e||Pn(t,!0)}else e=Wl(e).createTextNode(r),e[ot]=t,t.stateNode=e}return ke(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=ii(t),a!==null){if(e===null){if(!r)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ot]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else a=Bs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Rt(t),t):(Rt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return ke(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[ot]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),o=!1}else o=Bs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Rt(t),t):(Rt(t),null)}return Rt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==o&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Vl(t,t.updateQueue),ke(t),null);case 4:return Re(),e===null&&Wo(t.stateNode.containerInfo),ke(t),null;case 10:return _n(t.type),ke(t),null;case 19:if(V(Je),r=t.memoizedState,r===null)return ke(t),null;if(o=(t.flags&128)!==0,c=r.rendering,c===null)if(o)pr(r,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ol(e),c!==null){for(t.flags|=128,pr(r,!1),e=c.updateQueue,t.updateQueue=e,Vl(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Ed(a,e),a=a.sibling;return K(Je,Je.current&1|2),Me&&yn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ct()>Yl&&(t.flags|=128,o=!0,pr(r,!1),t.lanes=4194304)}else{if(!o)if(e=Ol(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Vl(t,e),pr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!Me)return ke(t),null}else 2*Ct()-r.renderingStartTime>Yl&&a!==536870912&&(t.flags|=128,o=!0,pr(r,!1),t.lanes=4194304);r.isBackwards?(c.sibling=t.child,t.child=c):(e=r.last,e!==null?e.sibling=c:t.child=c,r.last=c)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ct(),e.sibling=null,a=Je.current,K(Je,o?a&1|2:a&1),Me&&yn(t,r.treeForkCount),e):(ke(t),null);case 22:case 23:return Rt(t),Ws(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),a=t.updateQueue,a!==null&&Vl(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&V(wa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),_n(et),ke(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function v0(e,t){switch(Vs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(et),Re(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ha(t),null;case 31:if(t.memoizedState!==null){if(Rt(t),t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Rt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Je),null;case 4:return Re(),null;case 10:return _n(t.type),null;case 22:case 23:return Rt(t),Ws(),e!==null&&V(wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(et),null;case 25:return null;default:return null}}function Qh(e,t){switch(Vs(t),t.tag){case 3:_n(et),Re();break;case 26:case 27:case 5:ha(t);break;case 4:Re();break;case 31:t.memoizedState!==null&&Rt(t);break;case 13:Rt(t);break;case 19:V(Je);break;case 10:_n(t.type);break;case 22:case 23:Rt(t),Ws(),e!==null&&V(wa);break;case 24:_n(et)}}function vr(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){r=void 0;var c=a.create,p=a.inst;r=c(),p.destroy=r}a=a.next}while(a!==o)}}catch(_){Ge(t,t.return,_)}}function Jn(e,t,a){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var c=o.next;r=c;do{if((r.tag&e)===e){var p=r.inst,_=p.destroy;if(_!==void 0){p.destroy=void 0,o=t;var T=a,N=_;try{N()}catch(I){Ge(o,T,I)}}}r=r.next}while(r!==c)}}catch(I){Ge(t,t.return,I)}}function Zh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Bd(t,a)}catch(r){Ge(e,e.return,r)}}}function Kh(e,t,a){a.props=za(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Ge(e,t,r)}}function gr(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(o){Ge(e,t,o)}}function un(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(o){Ge(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ge(e,t,o)}else a.current=null}function Jh(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(o){Ge(e,e.return,o)}}function Ro(e,t,a){try{var r=e.stateNode;V0(r,e.type,a,t),r[yt]=t}catch(o){Ge(e,e.return,o)}}function Wh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ra(e.type)||e.tag===4}function Lo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wh(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&&ra(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 jo(e,t,a){var r=e.tag;if(r===5||r===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(r!==4&&(r===27&&ra(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(jo(e,t,a),e=e.sibling;e!==null;)jo(e,t,a),e=e.sibling}function Hl(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&ra(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hl(e,t,a),e=e.sibling;e!==null;)Hl(e,t,a),e=e.sibling}function em(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ht(t,r,a),t[ot]=e,t[yt]=a}catch(c){Ge(e,e.return,c)}}var On=!1,at=!1,No=!1,tm=typeof WeakSet=="function"?WeakSet:Set,st=null;function g0(e,t){if(e=e.containerInfo,nc=lu,e=hd(e),xs(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var p=0,_=-1,T=-1,N=0,I=0,P=e,q=null;t:for(;;){for(var H;P!==a||o!==0&&P.nodeType!==3||(_=p+o),P!==c||r!==0&&P.nodeType!==3||(T=p+r),P.nodeType===3&&(p+=P.nodeValue.length),(H=P.firstChild)!==null;)q=P,P=H;for(;;){if(P===e)break t;if(q===a&&++N===o&&(_=p),q===c&&++I===r&&(T=p),(H=P.nextSibling)!==null)break;P=q,q=P.parentNode}P=H}a=_===-1||T===-1?null:{start:_,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(ac={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,c=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++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,r=a.stateNode;try{var ie=za(a.type,o);e=r.getSnapshotBeforeUpdate(ie,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(me){Ge(a,a.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)lc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":lc(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 nm(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:xn(e,a),r&4&&vr(5,a);break;case 1:if(xn(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){Ge(a,a.return,p)}else{var o=za(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Ge(a,a.return,p)}}r&64&&Zh(a),r&512&&gr(a,a.return);break;case 3:if(xn(e,a),r&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{Bd(e,t)}catch(p){Ge(a,a.return,p)}}break;case 27:t===null&&r&4&&em(a);case 26:case 5:xn(e,a),t===null&&r&4&&Jh(a),r&512&&gr(a,a.return);break;case 12:xn(e,a);break;case 31:xn(e,a),r&4&&rm(e,a);break;case 13:xn(e,a),r&4&&lm(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=C0.bind(null,a),F0(e,a))));break;case 22:if(r=a.memoizedState!==null||On,!r){t=t!==null&&t.memoizedState!==null||at,o=On;var c=at;On=r,(at=t)&&!c?An(e,a,(a.subtreeFlags&8772)!==0):xn(e,a),On=o,at=c}break;case 30:break;default:xn(e,a)}}function am(e){var t=e.alternate;t!==null&&(e.alternate=null,am(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&cs(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 Xe=null,_t=!1;function Cn(e,t,a){for(a=a.child;a!==null;)im(e,t,a),a=a.sibling}function im(e,t,a){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Gi,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 r=Xe,o=_t;ra(a.type)&&(Xe=a.stateNode,_t=!1),Cn(e,t,a),Cr(a.stateNode),Xe=r,_t=o;break;case 5:at||un(a,t);case 6:if(r=Xe,o=_t,Xe=null,Cn(e,t,a),Xe=r,_t=o,Xe!==null)if(_t)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(a.stateNode)}catch(c){Ge(a,t,c)}else try{Xe.removeChild(a.stateNode)}catch(c){Ge(a,t,c)}break;case 18:Xe!==null&&(_t?(e=Xe,Zm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Oi(e)):Zm(Xe,a.stateNode));break;case 4:r=Xe,o=_t,Xe=a.stateNode.containerInfo,_t=!0,Cn(e,t,a),Xe=r,_t=o;break;case 0:case 11:case 14:case 15:Jn(2,a,t),at||Jn(4,a,t),Cn(e,t,a);break;case 1:at||(un(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&Kh(a,t,r)),Cn(e,t,a);break;case 21:Cn(e,t,a);break;case 22:at=(r=at)||a.memoizedState!==null,Cn(e,t,a),at=r;break;default:Cn(e,t,a)}}function rm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oi(e)}catch(a){Ge(t,t.return,a)}}}function lm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oi(e)}catch(a){Ge(t,t.return,a)}}function y0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tm),t;default:throw Error(u(435,e.tag))}}function Bl(e,t){var a=y0(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var o=x0.bind(null,e,r);r.then(o,o)}})}function St(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r],c=e,p=t,_=p;e:for(;_!==null;){switch(_.tag){case 27:if(ra(_.type)){Xe=_.stateNode,_t=!1;break e}break;case 5:Xe=_.stateNode,_t=!1;break e;case 3:case 4:Xe=_.stateNode.containerInfo,_t=!0;break e}_=_.return}if(Xe===null)throw Error(u(160));im(c,p,o),Xe=null,_t=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)um(t,e),t=t.sibling}var Jt=null;function um(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),Et(e),r&4&&(Jn(3,e,e.return),vr(3,e),Jn(5,e,e.return));break;case 1:St(t,e),Et(e),r&512&&(at||a===null||un(a,a.return)),r&64&&On&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var o=Jt;if(St(t,e),Et(e),r&512&&(at||a===null||un(a,a.return)),r&4){var c=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":c=o.getElementsByTagName("title")[0],(!c||c[$i]||c[ot]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(r),o.head.insertBefore(c,o.querySelector("head > title"))),ht(c,r,a),c[ot]=e,ut(c),r=c;break e;case"link":var p=up("link","href",o).get(r+(a.href||""));if(p){for(var _=0;_<p.length;_++)if(c=p[_],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(_,1);break t}}c=o.createElement(r),ht(c,r,a),o.head.appendChild(c);break;case"meta":if(p=up("meta","content",o).get(r+(a.content||""))){for(_=0;_<p.length;_++)if(c=p[_],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(_,1);break t}}c=o.createElement(r),ht(c,r,a),o.head.appendChild(c);break;default:throw Error(u(468,r))}c[ot]=e,ut(c),r=c}e.stateNode=r}else sp(o,e.type,e.stateNode);else e.stateNode=lp(o,r,e.memoizedProps);else c!==r?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,r===null?sp(o,e.type,e.stateNode):lp(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Ro(e,e.memoizedProps,a.memoizedProps)}break;case 27:St(t,e),Et(e),r&512&&(at||a===null||un(a,a.return)),a!==null&&r&4&&Ro(e,e.memoizedProps,a.memoizedProps);break;case 5:if(St(t,e),Et(e),r&512&&(at||a===null||un(a,a.return)),e.flags&32){o=e.stateNode;try{Xa(o,"")}catch(ie){Ge(e,e.return,ie)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,Ro(e,o,a!==null?a.memoizedProps:o)),r&1024&&(No=!0);break;case 6:if(St(t,e),Et(e),r&4){if(e.stateNode===null)throw Error(u(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(ie){Ge(e,e.return,ie)}}break;case 3:if(nu=null,o=Jt,Jt=eu(t.containerInfo),St(t,e),Jt=o,Et(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Oi(t.containerInfo)}catch(ie){Ge(e,e.return,ie)}No&&(No=!1,sm(e));break;case 4:r=Jt,Jt=eu(e.stateNode.containerInfo),St(t,e),Et(e),Jt=r;break;case 12:St(t,e),Et(e);break;case 31:St(t,e),Et(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Bl(e,r)));break;case 13:St(t,e),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Il=Ct()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Bl(e,r)));break;case 22:o=e.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,N=On,I=at;if(On=N||o,at=I||T,St(t,e),at=I,On=N,Et(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||T||On||at||Ma(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){T=a=t;try{if(c=T.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{_=T.stateNode;var P=T.memoizedProps.style,q=P!=null&&P.hasOwnProperty("display")?P.display:null;_.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(ie){Ge(T,T.return,ie)}}}else if(t.tag===6){if(a===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(ie){Ge(T,T.return,ie)}}}else if(t.tag===18){if(a===null){T=t;try{var H=T.stateNode;o?Km(H,!0):Km(T.stateNode,!1)}catch(ie){Ge(T,T.return,ie)}}}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}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Bl(e,a))));break;case 19:St(t,e),Et(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Bl(e,r)));break;case 30:break;case 21:break;default:St(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(Wh(r)){a=r;break}r=r.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var o=a.stateNode,c=Lo(e);Hl(e,c,o);break;case 5:var p=a.stateNode;a.flags&32&&(Xa(p,""),a.flags&=-33);var _=Lo(e);Hl(e,_,p);break;case 3:case 4:var T=a.stateNode.containerInfo,N=Lo(e);jo(e,N,T);break;default:throw Error(u(161))}}catch(I){Ge(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;sm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)nm(e,t.alternate,t),t=t.sibling}function Ma(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Jn(4,t,t.return),Ma(t);break;case 1:un(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Kh(t,t.return,a),Ma(t);break;case 27:Cr(t.stateNode);case 26:case 5:un(t,t.return),Ma(t);break;case 22:t.memoizedState===null&&Ma(t);break;case 30:Ma(t);break;default:Ma(t)}e=e.sibling}}function An(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:An(o,c,a),vr(4,c);break;case 1:if(An(o,c,a),r=c,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){Ge(r,r.return,N)}if(r=c,o=r.updateQueue,o!==null){var _=r.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)Hd(T[o],_)}catch(N){Ge(r,r.return,N)}}a&&p&64&&Zh(c),gr(c,c.return);break;case 27:em(c);case 26:case 5:An(o,c,a),a&&r===null&&p&4&&Jh(c),gr(c,c.return);break;case 12:An(o,c,a);break;case 31:An(o,c,a),a&&p&4&&rm(o,c);break;case 13:An(o,c,a),a&&p&4&&lm(o,c);break;case 22:c.memoizedState===null&&An(o,c,a),gr(c,c.return);break;case 30:break;default:An(o,c,a)}t=t.sibling}}function qo(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&&ar(a))}function Uo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ar(e))}function Wt(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)om(e,t,a,r),t=t.sibling}function om(e,t,a,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Wt(e,t,a,r),o&2048&&vr(9,t);break;case 1:Wt(e,t,a,r);break;case 3:Wt(e,t,a,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ar(e)));break;case 12:if(o&2048){Wt(e,t,a,r),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,_=c.onPostCommit;typeof _=="function"&&_(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Ge(t,t.return,T)}}else Wt(e,t,a,r);break;case 31:Wt(e,t,a,r);break;case 13:Wt(e,t,a,r);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?Wt(e,t,a,r):yr(e,t):c._visibility&2?Wt(e,t,a,r):(c._visibility|=2,mi(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&qo(p,t);break;case 24:Wt(e,t,a,r),o&2048&&Uo(t.alternate,t);break;default:Wt(e,t,a,r)}}function mi(e,t,a,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,_=a,T=r,N=p.flags;switch(p.tag){case 0:case 11:case 15:mi(c,p,_,T,o),vr(8,p);break;case 23:break;case 22:var I=p.stateNode;p.memoizedState!==null?I._visibility&2?mi(c,p,_,T,o):yr(c,p):(I._visibility|=2,mi(c,p,_,T,o)),o&&N&2048&&qo(p.alternate,p);break;case 24:mi(c,p,_,T,o),o&&N&2048&&Uo(p.alternate,p);break;default:mi(c,p,_,T,o)}t=t.sibling}}function yr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,o=r.flags;switch(r.tag){case 22:yr(a,r),o&2048&&qo(r.alternate,r);break;case 24:yr(a,r),o&2048&&Uo(r.alternate,r);break;default:yr(a,r)}t=t.sibling}}var br=8192;function pi(e,t,a){if(e.subtreeFlags&br)for(e=e.child;e!==null;)cm(e,t,a),e=e.sibling}function cm(e,t,a){switch(e.tag){case 26:pi(e,t,a),e.flags&br&&e.memoizedState!==null&&i_(a,Jt,e.memoizedState,e.memoizedProps);break;case 5:pi(e,t,a);break;case 3:case 4:var r=Jt;Jt=eu(e.stateNode.containerInfo),pi(e,t,a),Jt=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=br,br=16777216,pi(e,t,a),br=r):pi(e,t,a));break;default:pi(e,t,a)}}function fm(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 _r(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];st=r,hm(r,e)}fm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)dm(e),e=e.sibling}function dm(e){switch(e.tag){case 0:case 11:case 15:_r(e),e.flags&2048&&Jn(9,e,e.return);break;case 3:_r(e);break;case 12:_r(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gl(e)):_r(e);break;default:_r(e)}}function Gl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];st=r,hm(r,e)}fm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Jn(8,t,t.return),Gl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Gl(t));break;default:Gl(t)}e=e.sibling}}function hm(e,t){for(;st!==null;){var a=st;switch(a.tag){case 0:case 11:case 15:Jn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ar(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,st=r;else e:for(a=e;st!==null;){r=st;var o=r.sibling,c=r.return;if(am(r),r===a){st=null;break e}if(o!==null){o.return=c,st=o;break e}st=c}}}var b0={getCacheForType:function(e){var t=ft(et),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ft(et).controller.signal}},_0=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Pe=null,Oe=null,xe=0,Be=0,Lt=null,Wn=!1,vi=!1,Vo=!1,zn=0,Ze=0,ea=0,Da=0,Ho=0,jt=0,gi=0,Sr=null,Tt=null,Bo=!1,Il=0,mm=0,Yl=1/0,$l=null,ta=null,rt=0,na=null,yi=null,Mn=0,Go=0,Io=null,pm=null,Er=0,Yo=null;function Nt(){return(Ne&2)!==0&&xe!==0?xe&-xe:D.T!==null?Qo():Df()}function vm(){if(jt===0)if((xe&536870912)===0||Me){var e=Jr;Jr<<=1,(Jr&3932160)===0&&(Jr=262144),jt=e}else jt=536870912;return e=Dt.current,e!==null&&(e.flags|=32),jt}function wt(e,t,a){(e===Pe&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(bi(e,0),aa(e,xe,jt,!1)),Yi(e,a),((Ne&2)===0||e!==Pe)&&(e===Pe&&((Ne&2)===0&&(Da|=a),Ze===4&&aa(e,xe,jt,!1)),sn(e))}function gm(e,t,a){if((Ne&6)!==0)throw Error(u(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Ii(e,t),o=r?T0(e,t):Po(e,t,!0),c=r;do{if(o===0){vi&&!r&&aa(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!S0(a)){o=Po(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var _=e;o=Sr;var T=_.current.memoizedState.isDehydrated;if(T&&(bi(_,p).flags|=256),p=Po(_,p,!1),p!==2){if(Vo&&!T){_.errorRecoveryDisabledLanes|=c,Da|=c,o=4;break e}c=Tt,Tt=o,c!==null&&(Tt===null?Tt=c:Tt.push.apply(Tt,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){bi(e,0),aa(e,t,0,!0);break}e:{switch(r=e,c=o,c){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:aa(r,t,jt,!Wn);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Il+300-Ct(),10<o)){if(aa(r,t,jt,!Wn),el(r,0,!0)!==0)break e;Mn=t,r.timeoutHandle=Xm(ym.bind(null,r,a,Tt,$l,Bo,t,jt,Da,gi,Wn,c,"Throttled",-0,0),o);break e}ym(r,a,Tt,$l,Bo,t,jt,Da,gi,Wn,c,null,-0,0)}}break}while(!0);sn(e)}function ym(e,t,a,r,o,c,p,_,T,N,I,P,q,H){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},cm(t,c,P);var ie=(c&62914560)===c?Il-Ct():(c&4194048)===c?mm-Ct():0;if(ie=r_(P,ie),ie!==null){Mn=c,e.cancelPendingCommit=ie(Cm.bind(null,e,t,c,a,r,o,p,_,T,I,P,null,q,H)),aa(e,c,p,!N);return}}Cm(e,t,c,a,r,o,p,_,T)}function S0(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 r=0;r<a.length;r++){var o=a[r],c=o.getSnapshot;o=o.value;try{if(!zt(c(),o))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 aa(e,t,a,r){t&=~Ho,t&=~Da,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var c=31-At(o),p=1<<c;r[c]=-1,o&=~p}a!==0&&Af(e,a,t)}function Pl(){return(Ne&6)===0?(Tr(0),!1):!0}function $o(){if(Oe!==null){if(Be===0)var e=Oe.return;else e=Oe,bn=Ea=null,ro(e),oi=null,rr=0,e=Oe;for(;e!==null;)Qh(e.alternate,e),e=e.return;Oe=null}}function bi(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,G0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Mn=0,$o(),Pe=e,Oe=a=gn(e.current,null),xe=t,Be=0,Lt=null,Wn=!1,vi=Ii(e,t),Vo=!1,gi=jt=Ho=Da=ea=Ze=0,Tt=Sr=null,Bo=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-At(r),c=1<<o;t|=e[o],r&=~c}return zn=t,dl(),a}function bm(e,t){_e=null,D.H=hr,t===si||t===_l?(t=Nd(),Be=3):t===ks?(t=Nd(),Be=4):Be=t===Eo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,Oe===null&&(Ze=1,jl(e,Bt(t,e.current)))}function _m(){var e=Dt.current;return e===null?!0:(xe&4194048)===xe?$t===null:(xe&62914560)===xe||(xe&536870912)!==0?e===$t:!1}function Sm(){var e=D.H;return D.H=hr,e===null?hr:e}function Em(){var e=D.A;return D.A=b0,e}function Fl(){Ze=4,Wn||(xe&4194048)!==xe&&Dt.current!==null||(vi=!0),(ea&134217727)===0&&(Da&134217727)===0||Pe===null||aa(Pe,xe,jt,!1)}function Po(e,t,a){var r=Ne;Ne|=2;var o=Sm(),c=Em();(Pe!==e||xe!==t)&&($l=null,bi(e,t)),t=!1;var p=Ze;e:do try{if(Be!==0&&Oe!==null){var _=Oe,T=Lt;switch(Be){case 8:$o(),p=6;break e;case 3:case 2:case 9:case 6:Dt.current===null&&(t=!0);var N=Be;if(Be=0,Lt=null,_i(e,_,T,N),a&&vi){p=0;break e}break;default:N=Be,Be=0,Lt=null,_i(e,_,T,N)}}E0(),p=Ze;break}catch(I){bm(e,I)}while(!0);return t&&e.shellSuspendCounter++,bn=Ea=null,Ne=r,D.H=o,D.A=c,Oe===null&&(Pe=null,xe=0,dl()),p}function E0(){for(;Oe!==null;)Tm(Oe)}function T0(e,t){var a=Ne;Ne|=2;var r=Sm(),o=Em();Pe!==e||xe!==t?($l=null,Yl=Ct()+500,bi(e,t)):vi=Ii(e,t);e:do try{if(Be!==0&&Oe!==null){t=Oe;var c=Lt;t:switch(Be){case 1:Be=0,Lt=null,_i(e,t,c,1);break;case 2:case 9:if(Ld(c)){Be=0,Lt=null,wm(t);break}t=function(){Be!==2&&Be!==9||Pe!==e||(Be=7),sn(e)},c.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:Ld(c)?(Be=0,Lt=null,wm(t)):(Be=0,Lt=null,_i(e,t,c,7));break;case 5:var p=null;switch(Oe.tag){case 26:p=Oe.memoizedState;case 5:case 27:var _=Oe;if(p?op(p):_.stateNode.complete){Be=0,Lt=null;var T=_.sibling;if(T!==null)Oe=T;else{var N=_.return;N!==null?(Oe=N,kl(N)):Oe=null}break t}}Be=0,Lt=null,_i(e,t,c,5);break;case 6:Be=0,Lt=null,_i(e,t,c,6);break;case 8:$o(),Ze=6;break e;default:throw Error(u(462))}}w0();break}catch(I){bm(e,I)}while(!0);return bn=Ea=null,D.H=r,D.A=o,Ne=a,Oe!==null?0:(Pe=null,xe=0,dl(),Ze)}function w0(){for(;Oe!==null&&!ky();)Tm(Oe)}function Tm(e){var t=kh(e.alternate,e,zn);e.memoizedProps=e.pendingProps,t===null?kl(e):Oe=t}function wm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Gh(a,t,t.pendingProps,t.type,void 0,xe);break;case 11:t=Gh(a,t,t.pendingProps,t.type.render,t.ref,xe);break;case 5:ro(t);default:Qh(a,t),t=Oe=Ed(t,zn),t=kh(a,t,zn)}e.memoizedProps=e.pendingProps,t===null?kl(e):Oe=t}function _i(e,t,a,r){bn=Ea=null,ro(t),oi=null,rr=0;var o=t.return;try{if(d0(e,o,t,a,xe)){Ze=1,jl(e,Bt(a,e.current)),Oe=null;return}}catch(c){if(o!==null)throw Oe=o,c;Ze=1,jl(e,Bt(a,e.current)),Oe=null;return}t.flags&32768?(Me||r===1?e=!0:vi||(xe&536870912)!==0?e=!1:(Wn=e=!0,(r===2||r===9||r===3||r===6)&&(r=Dt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Om(t,e)):kl(t)}function kl(e){var t=e;do{if((t.flags&32768)!==0){Om(t,Wn);return}e=t.return;var a=p0(t.alternate,t,zn);if(a!==null){Oe=a;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);Ze===0&&(Ze=5)}function Om(e,t){do{var a=v0(e.alternate,e);if(a!==null){a.flags&=32767,Oe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=a}while(e!==null);Ze=6,Oe=null}function Cm(e,t,a,r,o,c,p,_,T){e.cancelPendingCommit=null;do Xl();while(rt!==0);if((Ne&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(c=t.lanes|t.childLanes,c|=Rs,ab(e,a,c,p,_,T),e===Pe&&(Oe=Pe=null,xe=0),yi=t,na=e,Mn=a,Go=c,Io=o,pm=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,A0(Zr,function(){return Dm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=D.T,D.T=null,o=Z.p,Z.p=2,p=Ne,Ne|=4;try{g0(e,t,a)}finally{Ne=p,Z.p=o,D.T=r}}rt=1,xm(),Am(),zm()}}function xm(){if(rt===1){rt=0;var e=na,t=yi,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var r=Z.p;Z.p=2;var o=Ne;Ne|=4;try{um(t,e);var c=ac,p=hd(e.containerInfo),_=c.focusedElem,T=c.selectionRange;if(p!==_&&_&&_.ownerDocument&&dd(_.ownerDocument.documentElement,_)){if(T!==null&&xs(_)){var N=T.start,I=T.end;if(I===void 0&&(I=N),"selectionStart"in _)_.selectionStart=N,_.selectionEnd=Math.min(I,_.value.length);else{var P=_.ownerDocument||document,q=P&&P.defaultView||window;if(q.getSelection){var H=q.getSelection(),ie=_.textContent.length,me=Math.min(T.start,ie),$e=T.end===void 0?me:Math.min(T.end,ie);!H.extend&&me>$e&&(p=$e,$e=me,me=p);var z=fd(_,me),x=fd(_,$e);if(z&&x&&(H.rangeCount!==1||H.anchorNode!==z.node||H.anchorOffset!==z.offset||H.focusNode!==x.node||H.focusOffset!==x.offset)){var L=P.createRange();L.setStart(z.node,z.offset),H.removeAllRanges(),me>$e?(H.addRange(L),H.extend(x.node,x.offset)):(L.setEnd(x.node,x.offset),H.addRange(L))}}}}for(P=[],H=_;H=H.parentNode;)H.nodeType===1&&P.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<P.length;_++){var $=P[_];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}lu=!!nc,ac=nc=null}finally{Ne=o,Z.p=r,D.T=a}}e.current=t,rt=2}}function Am(){if(rt===2){rt=0;var e=na,t=yi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var r=Z.p;Z.p=2;var o=Ne;Ne|=4;try{nm(e,t.alternate,t)}finally{Ne=o,Z.p=r,D.T=a}}rt=3}}function zm(){if(rt===4||rt===3){rt=0,Xy();var e=na,t=yi,a=Mn,r=pm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,yi=na=null,Mm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ta=null),ss(a),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Gi,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=D.T,o=Z.p,Z.p=2,D.T=null;try{for(var c=e.onRecoverableError,p=0;p<r.length;p++){var _=r[p];c(_.value,{componentStack:_.stack})}}finally{D.T=t,Z.p=o}}(Mn&3)!==0&&Xl(),sn(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Yo?Er++:(Er=0,Yo=e):Er=0,Tr(0)}}function Mm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ar(t)))}function Xl(){return xm(),Am(),zm(),Dm()}function Dm(){if(rt!==5)return!1;var e=na,t=Go;Go=0;var a=ss(Mn),r=D.T,o=Z.p;try{Z.p=32>a?32:a,D.T=null,a=Io,Io=null;var c=na,p=Mn;if(rt=0,yi=na=null,Mn=0,(Ne&6)!==0)throw Error(u(331));var _=Ne;if(Ne|=4,dm(c.current),om(c,c.current,p,a),Ne=_,Tr(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Gi,c)}catch{}return!0}finally{Z.p=o,D.T=r,Mm(e,t)}}function Rm(e,t,a){t=Bt(a,t),t=So(e.stateNode,t,2),e=Qn(e,t,2),e!==null&&(Yi(e,2),sn(e))}function Ge(e,t,a){if(e.tag===3)Rm(e,e,a);else for(;t!==null;){if(t.tag===3){Rm(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ta===null||!ta.has(r))){e=Bt(a,e),a=Lh(2),r=Qn(t,a,2),r!==null&&(jh(a,r,t,e),Yi(r,2),sn(r));break}}t=t.return}}function Fo(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new _0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(Vo=!0,o.add(a),e=O0.bind(null,e,t,a),t.then(e,e))}function O0(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Pe===e&&(xe&a)===a&&(Ze===4||Ze===3&&(xe&62914560)===xe&&300>Ct()-Il?(Ne&2)===0&&bi(e,0):Ho|=a,gi===xe&&(gi=0)),sn(e)}function Lm(e,t){t===0&&(t=xf()),e=ba(e,t),e!==null&&(Yi(e,t),sn(e))}function C0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Lm(e,a)}function x0(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}r!==null&&r.delete(t),Lm(e,a)}function A0(e,t){return is(e,t)}var Ql=null,Si=null,ko=!1,Zl=!1,Xo=!1,ia=0;function sn(e){e!==Si&&e.next===null&&(Si===null?Ql=Si=e:Si=Si.next=e),Zl=!0,ko||(ko=!0,M0())}function Tr(e,t){if(!Xo&&Zl){Xo=!0;do for(var a=!1,r=Ql;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var c=0;else{var p=r.suspendedLanes,_=r.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=o&~(p&~_),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Um(r,c))}else c=xe,c=el(r,r===Pe?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||Ii(r,c)||(a=!0,Um(r,c));r=r.next}while(a);Xo=!1}}function z0(){jm()}function jm(){Zl=ko=!1;var e=0;ia!==0&&B0()&&(e=ia);for(var t=Ct(),a=null,r=Ql;r!==null;){var o=r.next,c=Nm(r,t);c===0?(r.next=null,a===null?Ql=o:a.next=o,o===null&&(Si=a)):(a=r,(e!==0||(c&3)!==0)&&(Zl=!0)),r=o}rt!==0&&rt!==5||Tr(e),ia!==0&&(ia=0)}function Nm(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-At(c),_=1<<p,T=o[p];T===-1?((_&a)===0||(_&r)!==0)&&(o[p]=nb(_,t)):T<=t&&(e.expiredLanes|=_),c&=~_}if(t=Pe,a=xe,a=el(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&rs(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ii(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&rs(r),ss(a)){case 2:case 8:a=Of;break;case 32:a=Zr;break;case 268435456:a=Cf;break;default:a=Zr}return r=qm.bind(null,e),a=is(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&rs(r),e.callbackPriority=2,e.callbackNode=null,2}function qm(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Xl()&&e.callbackNode!==a)return null;var r=xe;return r=el(e,e===Pe?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gm(e,r,t),Nm(e,Ct()),e.callbackNode!=null&&e.callbackNode===a?qm.bind(null,e):null)}function Um(e,t){if(Xl())return null;gm(e,t,!0)}function M0(){I0(function(){(Ne&6)!==0?is(wf,z0):jm()})}function Qo(){if(ia===0){var e=li;e===0&&(e=Kr,Kr<<=1,(Kr&261888)===0&&(Kr=256)),ia=e}return ia}function Vm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:il(""+e)}function Hm(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 D0(e,t,a,r,o){if(t==="submit"&&a&&a.stateNode===o){var c=Vm((o[yt]||null).action),p=r.submitter;p&&(t=(t=p[yt]||null)?Vm(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var _=new sl("action","action",null,r,o);e.push({event:_,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ia!==0){var T=p?Hm(o,p):new FormData(o);po(a,{pending:!0,data:T,method:o.method,action:c},null,T)}}else typeof c=="function"&&(_.preventDefault(),T=p?Hm(o,p):new FormData(o),po(a,{pending:!0,data:T,method:o.method,action:c},c,T))},currentTarget:o}]})}}for(var Zo=0;Zo<Ds.length;Zo++){var Ko=Ds[Zo],R0=Ko.toLowerCase(),L0=Ko[0].toUpperCase()+Ko.slice(1);Kt(R0,"on"+L0)}Kt(vd,"onAnimationEnd"),Kt(gd,"onAnimationIteration"),Kt(yd,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(Qb,"onTransitionRun"),Kt(Zb,"onTransitionStart"),Kt(Kb,"onTransitionCancel"),Kt(bd,"onTransitionEnd"),Fa("onMouseEnter",["mouseout","mouseover"]),Fa("onMouseLeave",["mouseout","mouseover"]),Fa("onPointerEnter",["pointerout","pointerover"]),Fa("onPointerLeave",["pointerout","pointerover"]),pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pa("onBeforeInput",["compositionend","keypress","textInput","paste"]),pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="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(" "),j0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wr));function Bm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var c=void 0;if(t)for(var p=r.length-1;0<=p;p--){var _=r[p],T=_.instance,N=_.currentTarget;if(_=_.listener,T!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=N;try{c(o)}catch(I){fl(I)}o.currentTarget=null,c=T}else for(p=0;p<r.length;p++){if(_=r[p],T=_.instance,N=_.currentTarget,_=_.listener,T!==c&&o.isPropagationStopped())break e;c=_,o.currentTarget=N;try{c(o)}catch(I){fl(I)}o.currentTarget=null,c=T}}}}function Ce(e,t){var a=t[os];a===void 0&&(a=t[os]=new Set);var r=e+"__bubble";a.has(r)||(Gm(t,e,2,!1),a.add(r))}function Jo(e,t,a){var r=0;t&&(r|=4),Gm(a,e,r,t)}var Kl="_reactListening"+Math.random().toString(36).slice(2);function Wo(e){if(!e[Kl]){e[Kl]=!0,jf.forEach(function(a){a!=="selectionchange"&&(j0.has(a)||Jo(a,!1,e),Jo(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kl]||(t[Kl]=!0,Jo("selectionchange",!1,t))}}function Gm(e,t,a,r){switch(vp(t)){case 2:var o=s_;break;case 8:o=o_;break;default:o=mc}a=o.bind(null,t,a,e),o=void 0,!ys||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function ec(e,t,a,r,o){var c=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var p=r.tag;if(p===3||p===4){var _=r.stateNode.containerInfo;if(_===o)break;if(p===4)for(p=r.return;p!==null;){var T=p.tag;if((T===3||T===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;_!==null;){if(p=Ya(_),p===null)return;if(T=p.tag,T===5||T===6||T===26||T===27){r=c=p;continue e}_=_.parentNode}}r=r.return}Ff(function(){var N=c,I=vs(a),P=[];e:{var q=_d.get(e);if(q!==void 0){var H=sl,ie=e;switch(e){case"keypress":if(ll(a)===0)break e;case"keydown":case"keyup":H=xb;break;case"focusin":ie="focus",H=Es;break;case"focusout":ie="blur",H=Es;break;case"beforeblur":case"afterblur":H=Es;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":H=Qf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=pb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Mb;break;case vd:case gd:case yd:H=yb;break;case bd:H=Rb;break;case"scroll":case"scrollend":H=hb;break;case"wheel":H=jb;break;case"copy":case"cut":case"paste":H=_b;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Kf;break;case"toggle":case"beforetoggle":H=qb}var me=(t&4)!==0,$e=!me&&(e==="scroll"||e==="scrollend"),z=me?q!==null?q+"Capture":null:q;me=[];for(var x=N,L;x!==null;){var $=x;if(L=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||L===null||z===null||($=Fi(x,z),$!=null&&me.push(Or(x,$,L))),$e)break;x=x.return}0<me.length&&(q=new H(q,ie,null,a,I),P.push({event:q,listeners:me}))}}if((t&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",q&&a!==ps&&(ie=a.relatedTarget||a.fromElement)&&(Ya(ie)||ie[Ia]))break e;if((H||q)&&(q=I.window===I?I:(q=I.ownerDocument)?q.defaultView||q.parentWindow:window,H?(ie=a.relatedTarget||a.toElement,H=N,ie=ie?Ya(ie):null,ie!==null&&($e=f(ie),me=ie.tag,ie!==$e||me!==5&&me!==27&&me!==6)&&(ie=null)):(H=null,ie=N),H!==ie)){if(me=Qf,$="onMouseLeave",z="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(me=Kf,$="onPointerLeave",z="onPointerEnter",x="pointer"),$e=H==null?q:Pi(H),L=ie==null?q:Pi(ie),q=new me($,x+"leave",H,a,I),q.target=$e,q.relatedTarget=L,$=null,Ya(I)===N&&(me=new me(z,x+"enter",ie,a,I),me.target=L,me.relatedTarget=$e,$=me),$e=$,H&&ie)t:{for(me=N0,z=H,x=ie,L=0,$=z;$;$=me($))L++;$=0;for(var se=x;se;se=me(se))$++;for(;0<L-$;)z=me(z),L--;for(;0<$-L;)x=me(x),$--;for(;L--;){if(z===x||x!==null&&z===x.alternate){me=z;break t}z=me(z),x=me(x)}me=null}else me=null;H!==null&&Im(P,q,H,me,!1),ie!==null&&$e!==null&&Im(P,$e,ie,me,!0)}}e:{if(q=N?Pi(N):window,H=q.nodeName&&q.nodeName.toLowerCase(),H==="select"||H==="input"&&q.type==="file")var Le=rd;else if(ad(q))if(ld)Le=Fb;else{Le=$b;var re=Yb}else H=q.nodeName,!H||H.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?N&&ms(N.elementType)&&(Le=rd):Le=Pb;if(Le&&(Le=Le(e,N))){id(P,Le,a,I);break e}re&&re(e,q,N),e==="focusout"&&N&&q.type==="number"&&N.memoizedProps.value!=null&&hs(q,"number",q.value)}switch(re=N?Pi(N):window,e){case"focusin":(ad(re)||re.contentEditable==="true")&&(Ja=re,As=N,er=null);break;case"focusout":er=As=Ja=null;break;case"mousedown":zs=!0;break;case"contextmenu":case"mouseup":case"dragend":zs=!1,md(P,a,I);break;case"selectionchange":if(Xb)break;case"keydown":case"keyup":md(P,a,I)}var we;if(ws)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Ka?td(e,a)&&(Ae="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ae="onCompositionStart");Ae&&(Jf&&a.locale!=="ko"&&(Ka||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Ka&&(we=kf()):(In=I,bs="value"in In?In.value:In.textContent,Ka=!0)),re=Jl(N,Ae),0<re.length&&(Ae=new Zf(Ae,e,null,a,I),P.push({event:Ae,listeners:re}),we?Ae.data=we:(we=nd(a),we!==null&&(Ae.data=we)))),(we=Vb?Hb(e,a):Bb(e,a))&&(Ae=Jl(N,"onBeforeInput"),0<Ae.length&&(re=new Zf("onBeforeInput","beforeinput",null,a,I),P.push({event:re,listeners:Ae}),re.data=we)),D0(P,e,N,a,I)}Bm(P,t)})}function Or(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Jl(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Fi(e,a),o!=null&&r.unshift(Or(e,o,c)),o=Fi(e,t),o!=null&&r.push(Or(e,o,c))),e.tag===3)return r;e=e.return}return[]}function N0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Im(e,t,a,r,o){for(var c=t._reactName,p=[];a!==null&&a!==r;){var _=a,T=_.alternate,N=_.stateNode;if(_=_.tag,T!==null&&T===r)break;_!==5&&_!==26&&_!==27||N===null||(T=N,o?(N=Fi(a,c),N!=null&&p.unshift(Or(a,N,T))):o||(N=Fi(a,c),N!=null&&p.push(Or(a,N,T)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var q0=/\r\n?/g,U0=/\u0000|\uFFFD/g;function Ym(e){return(typeof e=="string"?e:""+e).replace(q0,`
22
+ `).replace(U0,"")}function $m(e,t){return t=Ym(t),Ym(e)===t}function Ye(e,t,a,r,o,c){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Xa(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Xa(e,""+r);break;case"className":nl(e,"class",r);break;case"tabIndex":nl(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":nl(e,a,r);break;case"style":$f(e,r,c);break;case"data":if(t!=="object"){nl(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=il(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="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 c=="function"&&(a==="formAction"?(t!=="input"&&Ye(e,t,"name",o.name,o,null),Ye(e,t,"formEncType",o.formEncType,o,null),Ye(e,t,"formMethod",o.formMethod,o,null),Ye(e,t,"formTarget",o.formTarget,o,null)):(Ye(e,t,"encType",o.encType,o,null),Ye(e,t,"method",o.method,o,null),Ye(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=il(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=pn);break;case"onScroll":r!=null&&Ce("scroll",e);break;case"onScrollEnd":r!=null&&Ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=il(""+r),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":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":Ce("beforetoggle",e),Ce("toggle",e),tl(e,"popover",r);break;case"xlinkActuate":mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":mn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":mn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":mn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":mn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":tl(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=fb.get(a)||a,tl(e,a,r))}}function tc(e,t,a,r,o,c){switch(a){case"style":$f(e,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof r=="string"?Xa(e,r):(typeof r=="number"||typeof r=="bigint")&&Xa(e,""+r);break;case"onScroll":r!=null&&Ce("scroll",e);break;case"onScrollEnd":r!=null&&Ce("scrollend",e);break;case"onClick":r!=null&&(e.onclick=pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[yt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof r=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,o);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):tl(e,a,r)}}}function ht(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("load",e);var r=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var p=a[c];if(p!=null)switch(c){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ye(e,t,c,p,a,null)}}o&&Ye(e,t,"srcSet",a.srcSet,a,null),r&&Ye(e,t,"src",a.src,a,null);return;case"input":Ce("invalid",e);var _=c=p=o=null,T=null,N=null;for(r in a)if(a.hasOwnProperty(r)){var I=a[r];if(I!=null)switch(r){case"name":o=I;break;case"type":p=I;break;case"checked":T=I;break;case"defaultChecked":N=I;break;case"value":c=I;break;case"defaultValue":_=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(u(137,t));break;default:Ye(e,t,r,I,a,null)}}Bf(e,c,_,T,N,p,o,!1);return;case"select":Ce("invalid",e),r=p=c=null;for(o in a)if(a.hasOwnProperty(o)&&(_=a[o],_!=null))switch(o){case"value":c=_;break;case"defaultValue":p=_;break;case"multiple":r=_;default:Ye(e,t,o,_,a,null)}t=c,a=p,e.multiple=!!r,t!=null?ka(e,!!r,t,!1):a!=null&&ka(e,!!r,a,!0);return;case"textarea":Ce("invalid",e),c=o=r=null;for(p in a)if(a.hasOwnProperty(p)&&(_=a[p],_!=null))switch(p){case"value":r=_;break;case"defaultValue":o=_;break;case"children":c=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(91));break;default:Ye(e,t,p,_,a,null)}If(e,r,o,c);return;case"option":for(T in a)a.hasOwnProperty(T)&&(r=a[T],r!=null)&&(T==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Ye(e,t,T,r,a,null));return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(r=0;r<wr.length;r++)Ce(wr[r],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("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(N in a)if(a.hasOwnProperty(N)&&(r=a[N],r!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ye(e,t,N,r,a,null)}return;default:if(ms(t)){for(I in a)a.hasOwnProperty(I)&&(r=a[I],r!==void 0&&tc(e,t,I,r,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(r=a[_],r!=null&&Ye(e,t,_,r,a,null))}function V0(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,_=null,T=null,N=null,I=null;for(H in a){var P=a[H];if(a.hasOwnProperty(H)&&P!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":T=P;default:r.hasOwnProperty(H)||Ye(e,t,H,null,r,P)}}for(var q in r){var H=r[q];if(P=a[q],r.hasOwnProperty(q)&&(H!=null||P!=null))switch(q){case"type":c=H;break;case"name":o=H;break;case"checked":N=H;break;case"defaultChecked":I=H;break;case"value":p=H;break;case"defaultValue":_=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,t));break;default:H!==P&&Ye(e,t,q,H,r,P)}}ds(e,p,_,T,N,I,c,o);return;case"select":H=p=_=q=null;for(c in a)if(T=a[c],a.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":H=T;default:r.hasOwnProperty(c)||Ye(e,t,c,null,r,T)}for(o in r)if(c=r[o],T=a[o],r.hasOwnProperty(o)&&(c!=null||T!=null))switch(o){case"value":q=c;break;case"defaultValue":_=c;break;case"multiple":p=c;default:c!==T&&Ye(e,t,o,c,r,T)}t=_,a=p,r=H,q!=null?ka(e,!!a,q,!1):!!r!=!!a&&(t!=null?ka(e,!!a,t,!0):ka(e,!!a,a?[]:"",!1));return;case"textarea":H=q=null;for(_ in a)if(o=a[_],a.hasOwnProperty(_)&&o!=null&&!r.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Ye(e,t,_,null,r,o)}for(p in r)if(o=r[p],c=a[p],r.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":q=o;break;case"defaultValue":H=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==c&&Ye(e,t,p,o,r,c)}Gf(e,q,H);return;case"option":for(var ie in a)q=a[ie],a.hasOwnProperty(ie)&&q!=null&&!r.hasOwnProperty(ie)&&(ie==="selected"?e.selected=!1:Ye(e,t,ie,null,r,q));for(T in r)q=r[T],H=a[T],r.hasOwnProperty(T)&&q!==H&&(q!=null||H!=null)&&(T==="selected"?e.selected=q&&typeof q!="function"&&typeof q!="symbol":Ye(e,t,T,q,r,H));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 me in a)q=a[me],a.hasOwnProperty(me)&&q!=null&&!r.hasOwnProperty(me)&&Ye(e,t,me,null,r,q);for(N in r)if(q=r[N],H=a[N],r.hasOwnProperty(N)&&q!==H&&(q!=null||H!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:Ye(e,t,N,q,r,H)}return;default:if(ms(t)){for(var $e in a)q=a[$e],a.hasOwnProperty($e)&&q!==void 0&&!r.hasOwnProperty($e)&&tc(e,t,$e,void 0,r,q);for(I in r)q=r[I],H=a[I],!r.hasOwnProperty(I)||q===H||q===void 0&&H===void 0||tc(e,t,I,q,r,H);return}}for(var z in a)q=a[z],a.hasOwnProperty(z)&&q!=null&&!r.hasOwnProperty(z)&&Ye(e,t,z,null,r,q);for(P in r)q=r[P],H=a[P],!r.hasOwnProperty(P)||q===H||q==null&&H==null||Ye(e,t,P,q,r,H)}function Pm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function H0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var o=a[r],c=o.transferSize,p=o.initiatorType,_=o.duration;if(c&&_&&Pm(p)){for(p=0,_=o.responseEnd,r+=1;r<a.length;r++){var T=a[r],N=T.startTime;if(N>_)break;var I=T.transferSize,P=T.initiatorType;I&&Pm(P)&&(T=T.responseEnd,p+=I*(T<_?1:(_-N)/(T-N)))}if(--r,t+=8*(c+p)/(o.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 nc=null,ac=null;function Wl(e){return e.nodeType===9?e:e.ownerDocument}function Fm(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 km(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 ic(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 rc=null;function B0(){var e=window.event;return e&&e.type==="popstate"?e===rc?!1:(rc=e,!0):(rc=null,!1)}var Xm=typeof setTimeout=="function"?setTimeout:void 0,G0=typeof clearTimeout=="function"?clearTimeout:void 0,Qm=typeof Promise=="function"?Promise:void 0,I0=typeof queueMicrotask=="function"?queueMicrotask:typeof Qm<"u"?function(e){return Qm.resolve(null).then(e).catch(Y0)}:Xm;function Y0(e){setTimeout(function(){throw e})}function ra(e){return e==="head"}function Zm(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(o),Oi(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")Cr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Cr(a);for(var c=a.firstChild;c;){var p=c.nextSibling,_=c.nodeName;c[$i]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=p}}else a==="body"&&Cr(e.ownerDocument.body);a=o}while(a);Oi(t)}function Km(e,t){var a=e;e=0;do{var r=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||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function lc(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":lc(a),cs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function $0(e,t,a,r){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[$i])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Pt(e.nextSibling),e===null)break}return null}function P0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Pt(e.nextSibling),e===null))return null;return e}function Jm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pt(e.nextSibling),e===null))return null;return e}function uc(e){return e.data==="$?"||e.data==="$~"}function sc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function F0(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Pt(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 oc=null;function Wm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Pt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function ep(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 tp(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 Cr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);cs(e)}var Ft=new Map,np=new Set;function eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=Z.d;Z.d={f:k0,r:X0,D:Q0,C:Z0,L:K0,m:J0,X:e_,S:W0,M:t_};function k0(){var e=Dn.f(),t=Pl();return e||t}function X0(e){var t=$a(e);t!==null&&t.tag===5&&t.type==="form"?bh(t):Dn.r(e)}var Ei=typeof document>"u"?null:document;function ap(e,t,a){var r=Ei;if(r&&typeof t=="string"&&t){var o=Vt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),np.has(o)||(np.add(o),e={rel:e,crossOrigin:a,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),ht(t,"link",e),ut(t),r.head.appendChild(t)))}}function Q0(e){Dn.D(e),ap("dns-prefetch",e,null)}function Z0(e,t){Dn.C(e,t),ap("preconnect",e,t)}function K0(e,t,a){Dn.L(e,t,a);var r=Ei;if(r&&e&&t){var o='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Vt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Vt(a.imageSizes)+'"]')):o+='[href="'+Vt(e)+'"]';var c=o;switch(t){case"style":c=Ti(e);break;case"script":c=wi(e)}Ft.has(c)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ft.set(c,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(xr(c))||t==="script"&&r.querySelector(Ar(c))||(t=r.createElement("link"),ht(t,"link",e),ut(t),r.head.appendChild(t)))}}function J0(e,t){Dn.m(e,t);var a=Ei;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Vt(r)+'"][href="'+Vt(e)+'"]',c=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wi(e)}if(!Ft.has(c)&&(e=y({rel:"modulepreload",href:e},t),Ft.set(c,e),a.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ar(c)))return}r=a.createElement("link"),ht(r,"link",e),ut(r),a.head.appendChild(r)}}}function W0(e,t,a){Dn.S(e,t,a);var r=Ei;if(r&&e){var o=Pa(r).hoistableStyles,c=Ti(e);t=t||"default";var p=o.get(c);if(!p){var _={loading:0,preload:null};if(p=r.querySelector(xr(c)))_.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ft.get(c))&&cc(e,a);var T=p=r.createElement("link");ut(T),ht(T,"link",e),T._p=new Promise(function(N,I){T.onload=N,T.onerror=I}),T.addEventListener("load",function(){_.loading|=1}),T.addEventListener("error",function(){_.loading|=2}),_.loading|=4,tu(p,t,r)}p={type:"stylesheet",instance:p,count:1,state:_},o.set(c,p)}}}function e_(e,t){Dn.X(e,t);var a=Ei;if(a&&e){var r=Pa(a).hoistableScripts,o=wi(e),c=r.get(o);c||(c=a.querySelector(Ar(o)),c||(e=y({src:e,async:!0},t),(t=Ft.get(o))&&fc(e,t),c=a.createElement("script"),ut(c),ht(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(o,c))}}function t_(e,t){Dn.M(e,t);var a=Ei;if(a&&e){var r=Pa(a).hoistableScripts,o=wi(e),c=r.get(o);c||(c=a.querySelector(Ar(o)),c||(e=y({src:e,async:!0,type:"module"},t),(t=Ft.get(o))&&fc(e,t),c=a.createElement("script"),ut(c),ht(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(o,c))}}function ip(e,t,a,r){var o=(o=fe.current)?eu(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ti(a.href),a=Pa(o).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ti(a.href);var c=Pa(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(xr(e)))&&!c._p&&(p.instance=c,p.state.loading=5),Ft.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},Ft.set(e,a),c||n_(o,e,a,p.state))),t&&r===null)throw Error(u(528,""));return p}if(t&&r!==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=wi(a),a=Pa(o).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ti(e){return'href="'+Vt(e)+'"'}function xr(e){return'link[rel="stylesheet"]['+e+"]"}function rp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function n_(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),ht(t,"link",a),ut(t),e.head.appendChild(t))}function wi(e){return'[src="'+Vt(e)+'"]'}function Ar(e){return"script[async]"+e}function lp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Vt(a.href)+'"]');if(r)return t.instance=r,ut(r),r;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ut(r),ht(r,"style",o),tu(r,a.precedence,e),t.instance=r;case"stylesheet":o=Ti(a.href);var c=e.querySelector(xr(o));if(c)return t.state.loading|=4,t.instance=c,ut(c),c;r=rp(a),(o=Ft.get(o))&&cc(r,o),c=(e.ownerDocument||e).createElement("link"),ut(c);var p=c;return p._p=new Promise(function(_,T){p.onload=_,p.onerror=T}),ht(c,"link",r),t.state.loading|=4,tu(c,a.precedence,e),t.instance=c;case"script":return c=wi(a.src),(o=e.querySelector(Ar(c)))?(t.instance=o,ut(o),o):(r=a,(o=Ft.get(c))&&(r=y({},a),fc(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),ht(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,tu(r,a.precedence,e));return t.instance}function tu(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,c=o,p=0;p<r.length;p++){var _=r[p];if(_.dataset.precedence===t)c=_;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fc(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 up(e,t,a){if(nu===null){var r=new Map,o=nu=new Map;o.set(a,r)}else o=nu,r=o.get(a),r||(r=new Map,o.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[$i]||c[ot]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var _=r.get(p);_?_.push(c):r.set(p,[c])}}return r}function sp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function a_(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 op(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function i_(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Ti(r.href),c=t.querySelector(xr(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=au.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,ut(c);return}c=t.ownerDocument||t,r=rp(r),(o=Ft.get(o))&&cc(r,o),c=c.createElement("link"),ut(c);var p=c;p._p=new Promise(function(_,T){p.onload=_,p.onerror=T}),ht(c,"link",r),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=au.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var dc=0;function r_(e,t){return e.stylesheets&&e.count===0&&ru(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&ru(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&dc===0&&(dc=62500*H0());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ru(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>dc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function au(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ru(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var iu=null;function ru(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,iu=new Map,t.forEach(l_,e),iu=null,au.call(e))}function l_(e,t){if(!(t.state.loading&4)){var a=iu.get(e);if(a)var r=a.get(null);else{a=new Map,iu.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),r=p)}r&&a.set(null,r)}o=t.instance,p=o.getAttribute("data-precedence"),c=a.get(p)||r,c===r&&a.set(null,o),a.set(p,o),this.count++,r=au.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var zr={$$typeof:Y,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function u_(e,t,a,r,o,c,p,_,T){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=ls(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ls(0),this.hiddenUpdates=ls(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function cp(e,t,a,r,o,c,p,_,T,N,I,P){return e=new u_(e,t,a,p,T,N,I,P,_),t=1,c===!0&&(t|=24),c=Mt(3,null,null,t),e.current=c,c.stateNode=e,t=$s(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:a,cache:t},Xs(c),e}function fp(e){return e?(e=ti,e):ti}function dp(e,t,a,r,o,c){o=fp(o),r.context===null?r.context=o:r.pendingContext=o,r=Xn(t),r.payload={element:a},c=c===void 0?null:c,c!==null&&(r.callback=c),a=Qn(e,r,t),a!==null&&(wt(a,e,t),ur(a,e,t))}function hp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function hc(e,t){hp(e,t),(e=e.alternate)&&hp(e,t)}function mp(e){if(e.tag===13||e.tag===31){var t=ba(e,67108864);t!==null&&wt(t,e,67108864),hc(e,67108864)}}function pp(e){if(e.tag===13||e.tag===31){var t=Nt();t=us(t);var a=ba(e,t);a!==null&&wt(a,e,t),hc(e,t)}}var lu=!0;function s_(e,t,a,r){var o=D.T;D.T=null;var c=Z.p;try{Z.p=2,mc(e,t,a,r)}finally{Z.p=c,D.T=o}}function o_(e,t,a,r){var o=D.T;D.T=null;var c=Z.p;try{Z.p=8,mc(e,t,a,r)}finally{Z.p=c,D.T=o}}function mc(e,t,a,r){if(lu){var o=pc(r);if(o===null)ec(e,t,r,uu,a),gp(e,r);else if(f_(o,e,t,a,r))r.stopPropagation();else if(gp(e,r),t&4&&-1<c_.indexOf(e)){for(;o!==null;){var c=$a(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=ma(c.pendingLanes);if(p!==0){var _=c;for(_.pendingLanes|=2,_.entangledLanes|=2;p;){var T=1<<31-At(p);_.entanglements[1]|=T,p&=~T}sn(c),(Ne&6)===0&&(Yl=Ct()+500,Tr(0))}}break;case 31:case 13:_=ba(c,2),_!==null&&wt(_,c,2),Pl(),hc(c,2)}if(c=pc(r),c===null&&ec(e,t,r,uu,a),c===o)break;o=c}o!==null&&r.stopPropagation()}else ec(e,t,r,null,a)}}function pc(e){return e=vs(e),vc(e)}var uu=null;function vc(e){if(uu=null,e=Ya(e),e!==null){var t=f(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=v(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 vp(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(Qy()){case wf:return 2;case Of:return 8;case Zr:case Zy:return 32;case Cf:return 268435456;default:return 32}default:return 32}}var gc=!1,la=null,ua=null,sa=null,Mr=new Map,Dr=new Map,oa=[],c_="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 gp(e,t){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":sa=null;break;case"pointerover":case"pointerout":Mr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dr.delete(t.pointerId)}}function Rr(e,t,a,r,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:c,targetContainers:[o]},t!==null&&(t=$a(t),t!==null&&mp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function f_(e,t,a,r,o){switch(t){case"focusin":return la=Rr(la,e,t,a,r,o),!0;case"dragenter":return ua=Rr(ua,e,t,a,r,o),!0;case"mouseover":return sa=Rr(sa,e,t,a,r,o),!0;case"pointerover":var c=o.pointerId;return Mr.set(c,Rr(Mr.get(c)||null,e,t,a,r,o)),!0;case"gotpointercapture":return c=o.pointerId,Dr.set(c,Rr(Dr.get(c)||null,e,t,a,r,o)),!0}return!1}function yp(e){var t=Ya(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Rf(e.priority,function(){pp(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,Rf(e.priority,function(){pp(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 su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=pc(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);ps=r,a.target.dispatchEvent(r),ps=null}else return t=$a(a),t!==null&&mp(t),e.blockedOn=a,!1;t.shift()}return!0}function bp(e,t,a){su(e)&&a.delete(t)}function d_(){gc=!1,la!==null&&su(la)&&(la=null),ua!==null&&su(ua)&&(ua=null),sa!==null&&su(sa)&&(sa=null),Mr.forEach(bp),Dr.forEach(bp)}function ou(e,t){e.blockedOn===t&&(e.blockedOn=null,gc||(gc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,d_)))}var cu=null;function _p(e){cu!==e&&(cu=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){cu===e&&(cu=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(vc(r||a)===null)continue;break}var c=$a(a);c!==null&&(e.splice(t,3),t-=3,po(c,{pending:!0,data:o,method:a.method,action:r},r,o))}}))}function Oi(e){function t(T){return ou(T,e)}la!==null&&ou(la,e),ua!==null&&ou(ua,e),sa!==null&&ou(sa,e),Mr.forEach(t),Dr.forEach(t);for(var a=0;a<oa.length;a++){var r=oa[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<oa.length&&(a=oa[0],a.blockedOn===null);)yp(a),a.blockedOn===null&&oa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var o=a[r],c=a[r+1],p=o[yt]||null;if(typeof c=="function")p||_p(a);else if(p){var _=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[yt]||null)_=p.formAction;else if(vc(o)!==null)continue}else _=p.action;typeof _=="function"?a[r+1]=_:(a.splice(r,3),r-=3),_p(a)}}}function Sp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function yc(e){this._internalRoot=e}fu.prototype.render=yc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,r=Nt();dp(a,r,e,t,null,null)},fu.prototype.unmount=yc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dp(e.current,2,null,e,null,null),Pl(),t[Ia]=null}};function fu(e){this._internalRoot=e}fu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Df();e={blockedOn:null,target:e,priority:t};for(var a=0;a<oa.length&&t!==0&&t<oa[a].priority;a++);oa.splice(a,0,e),a===0&&yp(e)}};var Ep=n.version;if(Ep!=="19.2.4")throw Error(u(527,Ep,"19.2.4"));Z.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?g(e):null,e=e===null?null:e.stateNode,e};var h_={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!du.isDisabled&&du.supportsFiber)try{Gi=du.inject(h_),xt=du}catch{}}return Hr.createRoot=function(e,t){if(!s(e))throw Error(u(299));var a=!1,r="",o=zh,c=Mh,p=Dh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=cp(e,1,!1,null,null,a,r,null,o,c,p,Sp),e[Ia]=t.current,Wo(e),new yc(t)},Hr.hydrateRoot=function(e,t,a){if(!s(e))throw Error(u(299));var r=!1,o="",c=zh,p=Mh,_=Dh,T=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.formState!==void 0&&(T=a.formState)),t=cp(e,1,!0,t,a??null,r,o,T,c,p,_,Sp),t.context=fp(null),a=t.current,r=Nt(),r=us(r),o=Xn(r),o.callback=null,Qn(a,o,r),a=r,t.current.lanes=a,Yi(t,a),sn(t),e[Ia]=t.current,Wo(e),new fu(t)},Hr.version="19.2.4",Hr}var Pv;function DC(){if(Pv)return Bc.exports;Pv=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Bc.exports=MC(),Bc.exports}var RC=DC();const Py=document.getElementById("root");if(!Py)throw new Error("Root element not found");const LC=RC.createRoot(Py);function Fv(i){LC.render(w.jsx(F.StrictMode,{children:i}))}$_({renderConfigScreen(i){return Fv(w.jsx(Dw,{ctx:i}))},settingsAreaSidebarItemGroups(i){return i.currentRole.attributes.can_edit_schema?[{label:"Asset Management",items:[{label:"Optimize assets",icon:"images",pointsTo:{pageId:"optimize-assets"}}]}]:[]},renderPage(i,n){if(i==="optimize-assets")return Fv(w.jsx(xC,{ctx:n}))}});export{Va as A,Uv as b};