datocms-plugin-media-layouts 0.1.8 → 0.1.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.
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
function m1(a,n){for(var i=0;i<n.length;i++){const u=n[i];if(typeof u!="string"&&!Array.isArray(u)){for(const s in u)if(s!=="default"&&!(s in a)){const c=Object.getOwnPropertyDescriptor(u,s);c&&Object.defineProperty(a,s,c.get?c:{enumerable:!0,get:()=>u[s]})}}}return Object.freeze(Object.defineProperty(a,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 c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function i(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(s){if(s.ep)return;s.ep=!0;const c=i(s);fetch(s.href,c)}})();function ws(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var nf={exports:{}},Xi={};var hv;function p1(){if(hv)return Xi;hv=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(u,s,c){var d=null;if(c!==void 0&&(d=""+c),s.key!==void 0&&(d=""+s.key),"key"in s){c={};for(var p in s)p!=="key"&&(c[p]=s[p])}else c=s;return s=c.ref,{$$typeof:a,type:u,key:d,ref:s!==void 0?s:null,props:c}}return Xi.Fragment=n,Xi.jsx=i,Xi.jsxs=i,Xi}var mv;function v1(){return mv||(mv=1,nf.exports=p1()),nf.exports}var w=v1(),Lu={exports:{}},ct={},pv;function Kf(){if(pv)return ct;pv=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.DATA_CLONE_ERROR=ct.MESSAGE=ct.REJECTED=ct.FULFILLED=ct.REPLY=ct.CALL=ct.HANDSHAKE_REPLY=ct.HANDSHAKE=void 0;const a="handshake";ct.HANDSHAKE=a;const n="handshake-reply";ct.HANDSHAKE_REPLY=n;const i="call";ct.CALL=i;const u="reply";ct.REPLY=u;const s="fulfilled";ct.FULFILLED=s;const c="rejected";ct.REJECTED=c;const d="message";ct.MESSAGE=d;const p="DataCloneError";return ct.DATA_CLONE_ERROR=p,ct}var hn={},vv;function Vy(){if(vv)return hn;vv=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.ERR_NO_IFRAME_SRC=hn.ERR_NOT_IN_IFRAME=hn.ERR_CONNECTION_TIMEOUT=hn.ERR_CONNECTION_DESTROYED=void 0;const a="ConnectionDestroyed";hn.ERR_CONNECTION_DESTROYED=a;const n="ConnectionTimeout";hn.ERR_CONNECTION_TIMEOUT=n;const i="NotInIframe";hn.ERR_NOT_IN_IFRAME=i;const u="NoIframeSrc";return hn.ERR_NO_IFRAME_SRC=u,hn}var Nu={exports:{}},yv;function y1(){return yv||(yv=1,(function(a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=()=>{const u=[];let s=!1;return{destroy(){s=!0,u.forEach(c=>{c()})},onDestroy(c){s?c():u.push(c)}}};n.default=i,a.exports=n.default})(Nu,Nu.exports)),Nu.exports}var zu={exports:{}},Fa={},gv;function By(){if(gv)return Fa;gv=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.deserializeError=Fa.serializeError=void 0;const a=i=>{let u=i.name,s=i.message,c=i.stack;return{name:u,message:s,stack:c}};Fa.serializeError=a;const n=i=>{const u=new Error;return Object.keys(i).forEach(s=>u[s]=i[s]),u};return Fa.deserializeError=n,Fa}var bv;function g1(){return bv||(bv=1,(function(a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=Kf(),u=By(),s=(c,d,p)=>{const m=c.localName,h=c.local,v=c.remote,y=c.originForSending,b=c.originForReceiving;let _=!1;p(`${m}: Connecting call receiver`);const E=C=>{if(C.source!==v||C.data.penpal!==i.CALL)return;if(C.origin!==b){p(`${m} received message from origin ${C.origin} which did not match expected origin ${b}`);return}const T=C.data,x=T.methodName,L=T.args,U=T.id;p(`${m}: Received ${x}() call`);const R=O=>G=>{if(p(`${m}: Sending ${x}() reply`),_){p(`${m}: Unable to send ${x}() reply due to destroyed connection`);return}const N={penpal:i.REPLY,id:U,resolution:O,returnValue:G};O===i.REJECTED&&G instanceof Error&&(N.returnValue=(0,u.serializeError)(G),N.returnValueIsError=!0);try{v.postMessage(N,y)}catch(Y){throw Y.name===i.DATA_CLONE_ERROR&&v.postMessage({penpal:i.REPLY,id:U,resolution:i.REJECTED,returnValue:(0,u.serializeError)(Y),returnValueIsError:!0},y),Y}};new Promise(O=>O(d[x].apply(d,L))).then(R(i.FULFILLED),R(i.REJECTED))};return h.addEventListener(i.MESSAGE,E),()=>{_=!0,h.removeEventListener(i.MESSAGE,E)}};n.default=s,a.exports=n.default})(zu,zu.exports)),zu.exports}var qu={exports:{}},Uu={exports:{}},_v;function b1(){return _v||(_v=1,(function(a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;let i=0;var u=()=>++i;n.default=u,a.exports=n.default})(Uu,Uu.exports)),Uu.exports}var Sv;function _1(){return Sv||(Sv=1,(function(a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=Kf(),u=Vy(),s=d(b1()),c=By();function d(m){return m&&m.__esModule?m:{default:m}}var p=(m,h,v,y,b)=>{const _=h.localName,E=h.local,C=h.remote,T=h.originForSending,x=h.originForReceiving;let L=!1;b(`${_}: Connecting call sender`);const U=R=>function(){for(var O=arguments.length,G=new Array(O),N=0;N<O;N++)G[N]=arguments[N];b(`${_}: Sending ${R}() call`);let Y;try{C.closed&&(Y=!0)}catch{Y=!0}if(Y&&y(),L){const ee=new Error(`Unable to send ${R}() call due to destroyed connection`);throw ee.code=u.ERR_CONNECTION_DESTROYED,ee}return new Promise((ee,$)=>{const Q=(0,s.default)(),ie=ne=>{if(ne.source!==C||ne.data.penpal!==i.REPLY||ne.data.id!==Q)return;if(ne.origin!==x){b(`${_} received message from origin ${ne.origin} which did not match expected origin ${x}`);return}b(`${_}: Received ${R}() reply`),E.removeEventListener(i.MESSAGE,ie);let be=ne.data.returnValue;ne.data.returnValueIsError&&(be=(0,c.deserializeError)(be)),(ne.data.resolution===i.FULFILLED?ee:$)(be)};E.addEventListener(i.MESSAGE,ie),C.postMessage({penpal:i.CALL,id:Q,methodName:R,args:G},T)})};return v.reduce((R,O)=>(R[O]=U(O),R),m),()=>{L=!0}};n.default=p,a.exports=n.default})(qu,qu.exports)),qu.exports}var Hu={exports:{}},wv;function S1(){return wv||(wv=1,(function(a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=u=>function(){if(u){for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];console.log("[Penpal]",...c)}};n.default=i,a.exports=n.default})(Hu,Hu.exports)),Hu.exports}var Ev;function w1(){return Ev||(Ev=1,(function(a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=Kf(),u=Vy(),s=m(y1()),c=m(g1()),d=m(_1()),p=m(S1());function m(v){return v&&v.__esModule?v:{default:v}}var h=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=y.parentOrigin,_=b===void 0?"*":b,E=y.methods,C=E===void 0?{}:E,T=y.timeout,x=y.debug;const L=(0,p.default)(x);if(window===window.top){const ee=new Error("connectToParent() must be called within an iframe");throw ee.code=u.ERR_NOT_IN_IFRAME,ee}const U=(0,s.default)(),R=U.destroy,O=U.onDestroy,G=window,N=G.parent;return{promise:new Promise((ee,$)=>{let Q;T!==void 0&&(Q=setTimeout(()=>{const ne=new Error(`Connection to parent timed out after ${T}ms`);ne.code=u.ERR_CONNECTION_TIMEOUT,$(ne),R()},T));const ie=ne=>{try{clearTimeout()}catch{return}if(ne.source!==N||ne.data.penpal!==i.HANDSHAKE_REPLY)return;if(_!=="*"&&_!==ne.origin){L(`Child received handshake reply from origin ${ne.origin} which did not match expected origin ${_}`);return}L("Child: Received handshake reply"),G.removeEventListener(i.MESSAGE,ie);const be={localName:"Child",local:G,remote:N,originForSending:ne.origin==="null"?"*":ne.origin,originForReceiving:ne.origin},we={},H=(0,c.default)(be,C,L);O(H);const K=(0,d.default)(we,be,ne.data.methodNames,R,L);O(K),clearTimeout(Q),ee(we)};G.addEventListener(i.MESSAGE,ie),O(()=>{G.removeEventListener(i.MESSAGE,ie);const ne=new Error("Connection destroyed");ne.code=u.ERR_CONNECTION_DESTROYED,$(ne)}),L("Child: Sending handshake"),N.postMessage({penpal:i.HANDSHAKE,methodNames:Object.keys(C)},_)}),destroy:R}};n.default=h,a.exports=n.default})(Lu,Lu.exports)),Lu.exports}var E1=w1();const C1=ws(E1);var wn=function(){return wn=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},wn.apply(this,arguments)};function Cv(a,n){for(var i=wn({},a),u=0,s=n;u<s.length;u++){var c=s[u];delete i[c]}return i}function af(a){return function(n,i){if(a){for(var u={},s=0,c=n;s<c.length;s++){var d=c[s],p=i.itemTypes[d.relationships.item_type.data.id];u[d.id]=a(d,wn(wn({},i),{itemType:p}))}return u}}}function Qn(a,n){var i=function(u,s,c){if(c.mode===a){var d=T1(s),p=function(m){n(u,wn(wn(wn({},s),m),d))};return p(c),p}};return i.mode=a,i}function cl(a,n){var i=function(u,s,c){if(c.mode===a){var d=function(p){n(u,wn(wn({},s),p))};return d(c),d}};return i.mode=a,i}function O1(){for(var a=document.querySelectorAll("body *"),n=0,i=0;i<a.length;i++)n=Math.max(a[i].getBoundingClientRect().bottom,n);return n}var T1=function(a){var n=null,i=function(h){var v=h===void 0?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,O1()):h;v!==n&&(a.setHeight(v),n=v)},u=null,s=null,c=function(){return i()},d=function(){i(),u||(u=new ResizeObserver(c),u.observe(document.documentElement)),s||(s=new MutationObserver(c),s.observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))},p=function(){u&&(u.disconnect(),u=null),s&&(s.disconnect(),s=null)},m=function(){return!!u};return{updateHeight:i,startAutoResizer:d,stopAutoResizer:p,isAutoResizerActive:m}},x1=Qn("renderAssetSource",function(a,n){a.renderAssetSource&&a.renderAssetSource(n.assetSourceId,n)}),A1=Qn("renderConfigScreen",function(a,n){a.renderConfigScreen&&a.renderConfigScreen(n)}),R1=Qn("renderFieldExtension",function(a,n){a.renderFieldExtension&&a.renderFieldExtension(n.fieldExtensionId,n)}),D1=cl("renderInspector",function(a,n){a.renderInspector&&a.renderInspector(n.inspectorId,n)}),M1=cl("renderInspectorPanel",function(a,n){a.renderInspectorPanel&&a.renderInspectorPanel(n.panelId,n)}),j1=Qn("renderItemCollectionOutlet",function(a,n){a.renderItemCollectionOutlet&&a.renderItemCollectionOutlet(n.itemCollectionOutletId,n)}),L1=Qn("renderItemFormOutlet",function(a,n){a.renderItemFormOutlet&&a.renderItemFormOutlet(n.itemFormOutletId,n)}),N1=cl("renderItemFormSidebar",function(a,n){a.renderItemFormSidebar&&a.renderItemFormSidebar(n.sidebarId,n)}),z1=Qn("renderItemFormSidebarPanel",function(a,n){a.renderItemFormSidebarPanel&&a.renderItemFormSidebarPanel(n.sidebarPaneId,n)}),q1=Qn("renderManualFieldExtensionConfigScreen",function(a,n){a.renderManualFieldExtensionConfigScreen&&a.renderManualFieldExtensionConfigScreen(n.fieldExtensionId,n)}),U1=Qn("renderModal",function(a,n){a.renderModal&&a.renderModal(n.modalId,n)}),H1=cl("renderPage",function(a,n){a.renderPage&&a.renderPage(n.pageId,n)}),V1=cl("renderUploadSidebar",function(a,n){a.renderUploadSidebar&&a.renderUploadSidebar(n.sidebarId,n)}),B1=Qn("renderUploadSidebarPanel",function(a,n){a.renderUploadSidebarPanel&&a.renderUploadSidebarPanel(n.sidebarPaneId,n)}),an=function(){return an=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},an.apply(this,arguments)},G1=function(a,n,i,u){function s(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(v){try{h(u.next(v))}catch(y){d(y)}}function m(v){try{h(u.throw(v))}catch(y){d(y)}}function h(v){v.done?c(v.value):s(v.value).then(p,m)}h((u=u.apply(a,n||[])).next())})},k1=function(a,n){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},u,s,c,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=p(0),d.throw=p(1),d.return=p(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function p(h){return function(v){return m([h,v])}}function m(h){if(u)throw new TypeError("Generator is already executing.");for(;d&&(d=0,h[0]&&(i=0)),i;)try{if(u=1,s&&(c=h[0]&2?s.return:h[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,h[1])).done)return c;switch(s=0,c&&(h=[h[0]&2,c.value]),h[0]){case 0:case 1:c=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(c=i.trys,!(c=c.length>0&&c[c.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!c||h[1]>c[0]&&h[1]<c[3])){i.label=h[1];break}if(h[0]===6&&i.label<c[1]){i.label=c[1],c=h;break}if(c&&i.label<c[2]){i.label=c[2],i.ops.push(h);break}c[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(a,i)}catch(v){h=[6,v],s=0}finally{u=c=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Ov=function(a,n,i){if(i||arguments.length===2)for(var u=0,s=n.length,c;u<s;u++)(c||!(u in n))&&(c||(c=Array.prototype.slice.call(n,0,u)),c[u]=n[u]);return a.concat(c||Array.prototype.slice.call(n))};function $1(){return G1(this,arguments,void 0,function(a){var n,i,u,s,c,d,p,m,h,v,y,b;return a===void 0&&(a={}),k1(this,function(_){switch(_.label){case 0:return n=null,i=null,u=an(an({},a),{overrideFieldExtensions:af(a.overrideFieldExtensions),customMarksForStructuredTextField:af(a.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:af(a.customBlockStylesForStructuredTextField)}),s=C1({methods:an(an({sdkVersion:function(){return"0.3.0"},implementedHooks:function(){return Object.fromEntries(Object.keys(a).map(function(E){return[E,!0]}))}},Object.fromEntries(Object.entries(u).filter(function(E){var C=E[0];return!C.startsWith("render")}))),{onChange:function(E){n&&n(E)},callMethodMergingBootCtx:function(E,C,T,x,L){return i?i(E,C,T,x,L):null}})}),[4,s.promise];case 1:return c=_.sent(),[4,c.getSettings()];case 2:for(d=_.sent(),d.mode==="onBoot"&&(p=d,n=function(E){p=E},i=function(E,C,T,x,L){var U;if(E in u)return(U=u)[E].apply(U,Ov(Ov([],C,!1),[an(an(an(an({},Cv(c,["getSettings","setHeight"])),Cv(p,["mode","bodyPadding"])),Object.fromEntries(x.map(function(R){return[R,function(){for(var G=[],N=0;N<arguments.length;N++)G[N]=arguments[N];return c.callAdditionalCtxMethod(L,R,G)}]}))),T)],!1))},u.onBoot&&u.onBoot(an(an({},c),p))),m={renderAssetSource:x1,renderConfigScreen:A1,renderFieldExtension:R1,renderItemCollectionOutlet:j1,renderItemFormOutlet:L1,renderItemFormSidebar:N1,renderItemFormSidebarPanel:z1,renderManualFieldExtensionConfigScreen:q1,renderModal:U1,renderPage:H1,renderInspector:D1,renderInspectorPanel:M1,renderUploadSidebar:V1,renderUploadSidebarPanel:B1},h=0,v=Object.values(m);h<v.length;h++)if(y=v[h],b=y(u,c,d),b){n=b;break}return[2]}})})}const Tn=[{value:"original",label:"Original (no crop)",ratio:null},{value:"16:9",label:"16:9 (Widescreen)",ratio:16/9},{value:"4:3",label:"4:3 (Standard)",ratio:4/3},{value:"1:1",label:"1:1 (Square)",ratio:1},{value:"3:2",label:"3:2 (Photo)",ratio:3/2},{value:"2:3",label:"2:3 (Portrait Photo)",ratio:2/3},{value:"21:9",label:"21:9 (Ultrawide)",ratio:21/9},{value:"9:16",label:"9:16 (Portrait/Mobile)",ratio:9/16},{value:"3:4",label:"3:4 (Portrait Standard)",ratio:3/4},{value:"custom",label:"Custom...",ratio:null}],Gy=[{value:"original",label:"Original (max)"},{value:320,label:"320px (Mobile small)"},{value:640,label:"640px (Mobile)"},{value:768,label:"768px (Tablet)"},{value:1024,label:"1024px (Tablet landscape)"},{value:1280,label:"1280px (Desktop small)"},{value:1920,label:"1920px (Full HD)"},{value:2560,label:"2560px (2K)"},{value:3840,label:"3840px (4K)"}],us="16:9",St=1920,Vu="mediaLayouts",P1=[{value:"single",label:"Single asset"},{value:"multiple",label:"Multiple assets (gallery)"},{value:"layout",label:"Layout (predefined slots)"}],I1=[{value:1,label:"1 column"},{value:2,label:"2 columns"},{value:3,label:"3 columns"},{value:4,label:"4 columns"}],F1=[{value:1,label:"1 row"},{value:2,label:"2 rows"},{value:3,label:"3 rows"},{value:4,label:"4 rows"},{value:5,label:"5 rows"},{value:6,label:"6 rows"}],ky=2,$y=2;var rf={exports:{}};var Tv;function Y1(){return Tv||(Tv=1,(function(a){(function(){var n={}.hasOwnProperty;function i(){for(var c="",d=0;d<arguments.length;d++){var p=arguments[d];p&&(c=s(c,u(p)))}return c}function u(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return i.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var d="";for(var p in c)n.call(c,p)&&c[p]&&(d=s(d,p));return d}function s(c,d){return d?c?c+" "+d:c+d:c}a.exports?(i.default=i,a.exports=i):window.classNames=i})()})(rf)),rf.exports}var X1=Y1();const sn=ws(X1);var lf={exports:{}},Ce={};var xv;function Q1(){if(xv)return Ce;xv=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function _(M){return M===null||typeof M!="object"?null:(M=b&&M[b]||M["@@iterator"],typeof M=="function"?M:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,T={};function x(M,P,te){this.props=M,this.context=P,this.refs=T,this.updater=te||E}x.prototype.isReactComponent={},x.prototype.setState=function(M,P){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,P,"setState")},x.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function L(){}L.prototype=x.prototype;function U(M,P,te){this.props=M,this.context=P,this.refs=T,this.updater=te||E}var R=U.prototype=new L;R.constructor=U,C(R,x.prototype),R.isPureReactComponent=!0;var O=Array.isArray;function G(){}var N={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function ee(M,P,te){var ae=te.ref;return{$$typeof:a,type:M,key:P,ref:ae!==void 0?ae:null,props:te}}function $(M,P){return ee(M.type,P,M.props)}function Q(M){return typeof M=="object"&&M!==null&&M.$$typeof===a}function ie(M){var P={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(te){return P[te]})}var ne=/\/+/g;function be(M,P){return typeof M=="object"&&M!==null&&M.key!=null?ie(""+M.key):P.toString(36)}function we(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(G,G):(M.status="pending",M.then(function(P){M.status==="pending"&&(M.status="fulfilled",M.value=P)},function(P){M.status==="pending"&&(M.status="rejected",M.reason=P)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function H(M,P,te,ae,de){var fe=typeof M;(fe==="undefined"||fe==="boolean")&&(M=null);var _e=!1;if(M===null)_e=!0;else switch(fe){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(M.$$typeof){case a:case n:_e=!0;break;case v:return _e=M._init,H(_e(M._payload),P,te,ae,de)}}if(_e)return de=de(M),_e=ae===""?"."+be(M,0):ae,O(de)?(te="",_e!=null&&(te=_e.replace(ne,"$&/")+"/"),H(de,P,te,"",function(Ut){return Ut})):de!=null&&(Q(de)&&(de=$(de,te+(de.key==null||M&&M.key===de.key?"":(""+de.key).replace(ne,"$&/")+"/")+_e)),P.push(de)),1;_e=0;var ze=ae===""?".":ae+":";if(O(M))for(var Le=0;Le<M.length;Le++)ae=M[Le],fe=ze+be(ae,Le),_e+=H(ae,P,te,fe,de);else if(Le=_(M),typeof Le=="function")for(M=Le.call(M),Le=0;!(ae=M.next()).done;)ae=ae.value,fe=ze+be(ae,Le++),_e+=H(ae,P,te,fe,de);else if(fe==="object"){if(typeof M.then=="function")return H(we(M),P,te,ae,de);throw P=String(M),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return _e}function K(M,P,te){if(M==null)return M;var ae=[],de=0;return H(M,ae,"","",function(fe){return P.call(te,fe,de++)}),ae}function re(M){if(M._status===-1){var P=M._result;P=P(),P.then(function(te){(M._status===0||M._status===-1)&&(M._status=1,M._result=te)},function(te){(M._status===0||M._status===-1)&&(M._status=2,M._result=te)}),M._status===-1&&(M._status=0,M._result=P)}if(M._status===1)return M._result.default;throw M._result}var pe=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},ye={map:K,forEach:function(M,P,te){K(M,function(){P.apply(this,arguments)},te)},count:function(M){var P=0;return K(M,function(){P++}),P},toArray:function(M){return K(M,function(P){return P})||[]},only:function(M){if(!Q(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return Ce.Activity=y,Ce.Children=ye,Ce.Component=x,Ce.Fragment=i,Ce.Profiler=s,Ce.PureComponent=U,Ce.StrictMode=u,Ce.Suspense=m,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(M){return N.H.useMemoCache(M)}},Ce.cache=function(M){return function(){return M.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(M,P,te){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var ae=C({},M.props),de=M.key;if(P!=null)for(fe in P.key!==void 0&&(de=""+P.key),P)!Y.call(P,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&P.ref===void 0||(ae[fe]=P[fe]);var fe=arguments.length-2;if(fe===1)ae.children=te;else if(1<fe){for(var _e=Array(fe),ze=0;ze<fe;ze++)_e[ze]=arguments[ze+2];ae.children=_e}return ee(M.type,de,ae)},Ce.createContext=function(M){return M={$$typeof:d,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:c,_context:M},M},Ce.createElement=function(M,P,te){var ae,de={},fe=null;if(P!=null)for(ae in P.key!==void 0&&(fe=""+P.key),P)Y.call(P,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(de[ae]=P[ae]);var _e=arguments.length-2;if(_e===1)de.children=te;else if(1<_e){for(var ze=Array(_e),Le=0;Le<_e;Le++)ze[Le]=arguments[Le+2];de.children=ze}if(M&&M.defaultProps)for(ae in _e=M.defaultProps,_e)de[ae]===void 0&&(de[ae]=_e[ae]);return ee(M,fe,de)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(M){return{$$typeof:p,render:M}},Ce.isValidElement=Q,Ce.lazy=function(M){return{$$typeof:v,_payload:{_status:-1,_result:M},_init:re}},Ce.memo=function(M,P){return{$$typeof:h,type:M,compare:P===void 0?null:P}},Ce.startTransition=function(M){var P=N.T,te={};N.T=te;try{var ae=M(),de=N.S;de!==null&&de(te,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(G,pe)}catch(fe){pe(fe)}finally{P!==null&&te.types!==null&&(P.types=te.types),N.T=P}},Ce.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ce.use=function(M){return N.H.use(M)},Ce.useActionState=function(M,P,te){return N.H.useActionState(M,P,te)},Ce.useCallback=function(M,P){return N.H.useCallback(M,P)},Ce.useContext=function(M){return N.H.useContext(M)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(M,P){return N.H.useDeferredValue(M,P)},Ce.useEffect=function(M,P){return N.H.useEffect(M,P)},Ce.useEffectEvent=function(M){return N.H.useEffectEvent(M)},Ce.useId=function(){return N.H.useId()},Ce.useImperativeHandle=function(M,P,te){return N.H.useImperativeHandle(M,P,te)},Ce.useInsertionEffect=function(M,P){return N.H.useInsertionEffect(M,P)},Ce.useLayoutEffect=function(M,P){return N.H.useLayoutEffect(M,P)},Ce.useMemo=function(M,P){return N.H.useMemo(M,P)},Ce.useOptimistic=function(M,P){return N.H.useOptimistic(M,P)},Ce.useReducer=function(M,P,te){return N.H.useReducer(M,P,te)},Ce.useRef=function(M){return N.H.useRef(M)},Ce.useState=function(M){return N.H.useState(M)},Ce.useSyncExternalStore=function(M,P,te){return N.H.useSyncExternalStore(M,P,te)},Ce.useTransition=function(){return N.H.useTransition()},Ce.version="19.2.4",Ce}var Av;function Jf(){return Av||(Av=1,lf.exports=Q1()),lf.exports}var A=Jf();const le=ws(A),Rv=m1({__proto__:null,default:le},[A]),Z1="_button_474wk_1",W1="_disabled_474wk_30",K1="_fullWidth_474wk_118",J1="_button__leftIcon_474wk_124",eS="_button__rightIcon_474wk_125",Ya={button:Z1,disabled:W1,"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:K1,button__leftIcon:J1,button__rightIcon:eS};function ed(a){var n,i=a.children,u=a.className,s=a.disabled,c=a.buttonType,d=c===void 0?"muted":c,p=a.buttonSize,m=p===void 0?"m":p,h=a.fullWidth,v=a.onClick,y=a.style,b=a.leftIcon,_=a.rightIcon,E=a.type,C=E===void 0?"button":E;return le.createElement("button",{type:C,className:sn(Ya.button,Ya["buttonType-".concat(d)],Ya["buttonSize-".concat(m)],(n={},n[Ya.disabled]=s,n[Ya.fullWidth]=h,n),u),disabled:s,onClick:v,style:y},b&&le.createElement("span",{className:Ya.button__leftIcon},b),i&&le.createElement("span",null,i),_&&le.createElement("span",{className:Ya.button__rightIcon},_))}var Af=function(){return Af=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},Af.apply(this,arguments)};function Dv(a){return a===a.toLowerCase()?a:a.replace(/[A-Z]/g,function(n){return"-".concat(n.toLowerCase())})}function Py(a,n){return n===void 0&&(n=!1),Af({padding:n?void 0:a.bodyPadding.map(function(i){return"".concat(i,"px")}).join(" ")},Object.fromEntries(Object.entries(a.theme).flatMap(function(i){var u,s=i[0],c=i[1];return[["--".concat(Dv(s)),c],["--".concat(Dv("".concat(s,"RgbComponents"))),((u=c.match(/rgb\((\d+, \d+, \d+)\)/))===null||u===void 0?void 0:u[1])||void 0]]})))}const tS="_themeVariables_2dr1w_1",nS="_canvas_2dr1w_70",ss={themeVariables:tS,canvas:nS};var Iy=A.createContext(null);function td(){var a=A.useContext(Iy);if(!a)throw new Error("useCtx requires <Canvas />!");return a}function os(a){var n=a.ctx,i=a.children,u=a.noAutoResizer,s=n.mode;return A.useEffect(function(){if(!u&&"startAutoResizer"in n){var c=n;return c.startAutoResizer(),function(){c.stopAutoResizer()}}},[s,u]),le.createElement(Iy.Provider,{value:n},le.createElement("div",{className:sn(ss.themeVariables,ss.canvas),style:Py(n)},i))}function aS(a){var n=A.useRef(null),i=A.useCallback(function(u){u.target,!(!n.current||n.current.contains(u.target))&&a(u)},[a]);return A.useEffect(function(){return document.addEventListener("mousedown",i),document.addEventListener("touchstart",i),function(){document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i)}},[i]),n}var Es=A.createContext({closeMenu:function(){}});const rS="_Dropdown_nie0g_1",iS="_Dropdown__spacer_nie0g_5",lS="_Dropdown__menu__search_nie0g_11",uS="_Dropdown__menu__search__input_nie0g_16",sS="_Dropdown__menu_nie0g_11",oS="_Dropdown__menu__inner_nie0g_61",cS="_Dropdown__menu__group__title_nie0g_65",fS="_Dropdown__menu__group__content_nie0g_73",dS="_Dropdown__menu__option_nie0g_86",hS="_Dropdown__menu__option__content_nie0g_115",mS="_Dropdown__menu__option__icons_nie0g_194",pS="_Dropdown__menu__option__icon_nie0g_194",Ye={Dropdown:rS,Dropdown__spacer:iS,Dropdown__menu__search:lS,Dropdown__menu__search__input:uS,"Dropdown__menu-container":"_Dropdown__menu-container_nie0g_45",Dropdown__menu:sS,Dropdown__menu__inner:oS,Dropdown__menu__group__title:cS,Dropdown__menu__group__content:fS,Dropdown__menu__option:dS,"Dropdown__menu__option--is-selected":"_Dropdown__menu__option--is-selected_nie0g_108","Dropdown__menu__option--is-disabled":"_Dropdown__menu__option--is-disabled_nie0g_112",Dropdown__menu__option__content:hS,"Dropdown__menu__option--is-dangerous":"_Dropdown__menu__option--is-dangerous_nie0g_120","Dropdown__menu__option--is-active":"_Dropdown__menu__option--is-active_nie0g_138","Dropdown__menu__option--is-valid":"_Dropdown__menu__option--is-valid_nie0g_147","Dropdown__menu__option--is-invalid":"_Dropdown__menu__option--is-invalid_nie0g_151",Dropdown__menu__option__icons:mS,Dropdown__menu__option__icon:pS,"Dropdown__menu__option__icon--delete":"_Dropdown__menu__option__icon--delete_nie0g_241"};function nd(a){var n=a.renderTrigger,i=a.children,u=A.useState(!1),s=u[0],c=u[1],d=A.useCallback(function(v){!v.target.closest(".".concat(Ye.Dropdown__menu))&&s&&c(!1)},[c,s]),p=aS(d),m=A.useCallback(function(){c(!1)},[c]),h=A.useCallback(function(){c(function(v){return!v})},[c]);return le.createElement(Es.Provider,{value:{closeMenu:m}},le.createElement("div",{className:Ye.Dropdown,ref:p},n({open:s,onClick:h}),s&&i))}var vS=function(a){var n=a.children,i=a.name;return le.createElement("div",null,le.createElement("div",{className:Ye.Dropdown__menu__group__title},i),le.createElement("div",{className:Ye.Dropdown__menu__group__content},n))},Rf=new Map,Bu=new WeakMap,Mv=0,yS=void 0;function gS(a){return a?(Bu.has(a)||(Mv+=1,Bu.set(a,Mv.toString())),Bu.get(a)):"0"}function bS(a){return Object.keys(a).sort().filter(n=>a[n]!==void 0).map(n=>`${n}_${n==="root"?gS(a.root):a[n]}`).toString()}function _S(a){const n=bS(a);let i=Rf.get(n);if(!i){const u=new Map;let s;const c=new IntersectionObserver(d=>{d.forEach(p=>{var m;const h=p.isIntersecting&&s.some(v=>p.intersectionRatio>=v);a.trackVisibility&&typeof p.isVisible>"u"&&(p.isVisible=h),(m=u.get(p.target))==null||m.forEach(v=>{v(h,p)})})},a);s=c.thresholds||(Array.isArray(a.threshold)?a.threshold:[a.threshold||0]),i={id:n,observer:c,elements:u},Rf.set(n,i)}return i}function SS(a,n,i={},u=yS){if(typeof window.IntersectionObserver>"u"&&u!==void 0){const m=a.getBoundingClientRect();return n(u,{isIntersecting:u,target:a,intersectionRatio:typeof i.threshold=="number"?i.threshold:0,time:0,boundingClientRect:m,intersectionRect:m,rootBounds:m}),()=>{}}const{id:s,observer:c,elements:d}=_S(i),p=d.get(a)||[];return d.has(a)||d.set(a,p),p.push(n),c.observe(a),function(){p.splice(p.indexOf(n),1),p.length===0&&(d.delete(a),c.unobserve(a)),d.size===0&&(c.disconnect(),Rf.delete(s))}}function wS({threshold:a,delay:n,trackVisibility:i,rootMargin:u,root:s,triggerOnce:c,skip:d,initialInView:p,fallbackInView:m,onChange:h}={}){var v;const[y,b]=A.useState(null),_=A.useRef(h),[E,C]=A.useState({inView:!!p,entry:void 0});_.current=h,A.useEffect(()=>{if(d||!y)return;let U;return U=SS(y,(R,O)=>{C({inView:R,entry:O}),_.current&&_.current(R,O),O.isIntersecting&&c&&U&&(U(),U=void 0)},{root:s,rootMargin:u,threshold:a,trackVisibility:i,delay:n},m),()=>{U&&U()}},[Array.isArray(a)?a.toString():a,y,s,u,c,d,i,m,n]);const T=(v=E.entry)==null?void 0:v.target,x=A.useRef(void 0);!y&&T&&!c&&!d&&x.current!==T&&(x.current=T,C({inView:!!p,entry:void 0}));const L=[b,E.inView,E.entry];return L.ref=L[0],L.inView=L[1],L.entry=L[2],L}function jv(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function Lv(a,n){return(!n||a!=="hidden")&&a!=="visible"&&a!=="clip"}function uf(a,n){if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){var i=getComputedStyle(a,null);return Lv(i.overflowY,n)||Lv(i.overflowX,n)||(function(u){var s=(function(c){if(!c.ownerDocument||!c.ownerDocument.defaultView)return null;try{return c.ownerDocument.defaultView.frameElement}catch{return null}})(u);return!!s&&(s.clientHeight<u.scrollHeight||s.clientWidth<u.scrollWidth)})(a)}return!1}function Gu(a,n,i,u,s,c,d,p){return c<a&&d>n||c>a&&d<n?0:c<=a&&p<=i||d>=n&&p>=i?c-a-u:d>n&&p<i||c<a&&p>i?d-n+s:0}var Nv=function(a,n){var i=window,u=n.scrollMode,s=n.block,c=n.inline,d=n.boundary,p=n.skipOverflowHiddenElements,m=typeof d=="function"?d:function(xt){return xt!==d};if(!jv(a))throw new TypeError("Invalid target");for(var h,v,y=document.scrollingElement||document.documentElement,b=[],_=a;jv(_)&&m(_);){if((_=(v=(h=_).parentElement)==null?h.getRootNode().host||null:v)===y){b.push(_);break}_!=null&&_===document.body&&uf(_)&&!uf(document.documentElement)||_!=null&&uf(_,p)&&b.push(_)}for(var E=i.visualViewport?i.visualViewport.width:innerWidth,C=i.visualViewport?i.visualViewport.height:innerHeight,T=window.scrollX||pageXOffset,x=window.scrollY||pageYOffset,L=a.getBoundingClientRect(),U=L.height,R=L.width,O=L.top,G=L.right,N=L.bottom,Y=L.left,ee=s==="start"||s==="nearest"?O:s==="end"?N:O+U/2,$=c==="center"?Y+R/2:c==="end"?G:Y,Q=[],ie=0;ie<b.length;ie++){var ne=b[ie],be=ne.getBoundingClientRect(),we=be.height,H=be.width,K=be.top,re=be.right,pe=be.bottom,ye=be.left;if(u==="if-needed"&&O>=0&&Y>=0&&N<=C&&G<=E&&O>=K&&N<=pe&&Y>=ye&&G<=re)return Q;var M=getComputedStyle(ne),P=parseInt(M.borderLeftWidth,10),te=parseInt(M.borderTopWidth,10),ae=parseInt(M.borderRightWidth,10),de=parseInt(M.borderBottomWidth,10),fe=0,_e=0,ze="offsetWidth"in ne?ne.offsetWidth-ne.clientWidth-P-ae:0,Le="offsetHeight"in ne?ne.offsetHeight-ne.clientHeight-te-de:0,Ut="offsetWidth"in ne?ne.offsetWidth===0?0:H/ne.offsetWidth:0,wt="offsetHeight"in ne?ne.offsetHeight===0?0:we/ne.offsetHeight:0;if(y===ne)fe=s==="start"?ee:s==="end"?ee-C:s==="nearest"?Gu(x,x+C,C,te,de,x+ee,x+ee+U,U):ee-C/2,_e=c==="start"?$:c==="center"?$-E/2:c==="end"?$-E:Gu(T,T+E,E,P,ae,T+$,T+$+R,R),fe=Math.max(0,fe+x),_e=Math.max(0,_e+T);else{fe=s==="start"?ee-K-te:s==="end"?ee-pe+de+Le:s==="nearest"?Gu(K,pe,we,te,de+Le,ee,ee+U,U):ee-(K+we/2)+Le/2,_e=c==="start"?$-ye-P:c==="center"?$-(ye+H/2)+ze/2:c==="end"?$-re+ae+ze:Gu(ye,re,H,P,ae+ze,$,$+R,R);var on=ne.scrollLeft,xn=ne.scrollTop;ee+=xn-(fe=Math.max(0,Math.min(xn+fe/wt,ne.scrollHeight-we/wt+Le))),$+=on-(_e=Math.max(0,Math.min(on+_e/Ut,ne.scrollWidth-H/Ut+ze)))}Q.push({el:ne,top:fe,left:_e})}return Q};function Fy(a){return a===Object(a)&&Object.keys(a).length!==0}function ES(a,n){n===void 0&&(n="auto");var i="scrollBehavior"in document.body.style;a.forEach(function(u){var s=u.el,c=u.top,d=u.left;s.scroll&&i?s.scroll({top:c,left:d,behavior:n}):(s.scrollTop=c,s.scrollLeft=d)})}function CS(a){return a===!1?{block:"end",inline:"nearest"}:Fy(a)?a:{block:"start",inline:"nearest"}}function OS(a,n){var i=a.isConnected||a.ownerDocument.documentElement.contains(a);if(Fy(n)&&typeof n.behavior=="function")return n.behavior(i?Nv(a,n):[]);if(i){var u=CS(n);return ES(Nv(a,u),u.behavior)}}var TS=function(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];return function(i){for(var u=0,s=a;u<s.length;u++){var c=s[u];typeof c=="function"?c(i):c&&typeof c=="object"&&(c.current=i)}}},Yy=A.createContext({searchTerm:"",addOption:function(){},setClickHandlerForOption:function(){}}),sf={exports:{}},bt={};var zv;function xS(){if(zv)return bt;zv=1;var a=Jf();function n(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}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 i(){}var u={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(m,h,v){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:v}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,bt.createPortal=function(m,h){var v=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 c(m,h,null,v)},bt.flushSync=function(m){var h=d.T,v=u.p;try{if(d.T=null,u.p=2,m)return m()}finally{d.T=h,u.p=v,u.d.f()}},bt.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))},bt.prefetchDNS=function(m){typeof m=="string"&&u.d.D(m)},bt.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var v=h.as,y=p(v,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?u.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:_}):v==="script"&&u.d.X(m,{crossOrigin:y,integrity:b,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},bt.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=p(h.as,h.crossOrigin);u.d.M(m,{crossOrigin:v,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)},bt.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,y=p(v,h.crossOrigin);u.d.L(m,v,{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})}},bt.preloadModule=function(m,h){if(typeof m=="string")if(h){var v=p(h.as,h.crossOrigin);u.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else u.d.m(m)},bt.requestFormReset=function(m){u.d.r(m)},bt.unstable_batchedUpdates=function(m,h){return m(h)},bt.useFormState=function(m,h,v){return d.H.useFormState(m,h,v)},bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},bt.version="19.2.4",bt}var qv;function Xy(){if(qv)return sf.exports;qv=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),sf.exports=xS(),sf.exports}var Qy=Xy();const AS=ws(Qy);function RS(a){var n=a.children,i=td(),u=A.useRef(typeof document>"u"?null:document.createElement("div"));return A.useEffect(function(){if(!(!u.current||!document.body))return document.body.appendChild(u.current),function(){u.current&&document.body.removeChild(u.current)}},[]),u.current?AS.createPortal(le.createElement("div",{className:sn(ss.themeVariables,ss.canvas),style:Py(i,!0)},n),u.current):null}var cs=function(){return cs=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},cs.apply(this,arguments)},Uv=function(a,n,i){if(i||arguments.length===2)for(var u=0,s=n.length,c;u<s;u++)(c||!(u in n))&&(c||(c=Array.prototype.slice.call(n,0,u)),c[u]=n[u]);return a.concat(c||Array.prototype.slice.call(n))};function DS(a){return"isAutoResizerActive"in a}var MS=le.forwardRef(function(a,n){var i=a.children;return le.createElement(RS,null,le.createElement("div",{className:Ye["Dropdown__menu-container"],style:{zIndex:1e3},ref:n},i))});function jS(a){var n=window.getComputedStyle(a),i=Number.parseFloat(n.marginTop)+Number.parseFloat(n.marginBottom);return Math.ceil(a.offsetHeight+i)}function Hv(a){var n=window.getComputedStyle(a),i=Number.parseFloat(n.marginLeft)+Number.parseFloat(n.marginRight);return Math.ceil(a.offsetWidth+i)}function LS(a,n,i,u){var s=n.getBoundingClientRect(),c=jS(a),d=Hv(n),p=Hv(a);i==="left"?a.style.left="".concat(s.left+window.pageXOffset,"px"):a.style.left="".concat(s.left+window.pageXOffset+d-p,"px");var m=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),h=a.querySelector(".".concat(Ye.Dropdown__menu));if(h){var v=window.getComputedStyle(h),y=Number.parseFloat(v.marginTop),b=s.bottom+c<=m,_=s.top-c>0;if(!b&&_)a.style.top="".concat(s.bottom-c,"px");else if(b)a.style.top="".concat(s.bottom,"px");else{var E=s.top,C=m-s.bottom;C>E?(a.style.top="".concat(s.bottom,"px"),u||(h.style.maxHeight="".concat(m-s.bottom-y-10,"px"))):(a.style.top="0px",u||(h.style.maxHeight="".concat(s.top-y,"px")))}a.style.visibility="visible"}}var ad=function(a){var n=a.children,i=a.alignment,u=i===void 0?"left":i,s=td(),c=A.useContext(Es).closeMenu,d=le.Children.toArray(n),p=A.useState(""),m=p[0],h=p[1],v=A.useState([]),y=v[0],b=v[1],_=A.useCallback(function($){h($.target.value)},[h]),E=d.some(function($){return typeof $=="object"&&"type"in $&&$.type===vS}),C=A.useCallback(function($){return b(function(Q){return Uv(Uv([],Q,!0),[{id:$}],!1)}),function(){b(function(Q){return Q.filter(function(ie){return ie.id!==$})})}},[b]),T=A.useCallback(function($,Q){b(function(ie){return ie.map(function(ne){return ne.id!==$?ne:cs(cs({},ne),{handler:Q})})})},[b]),x=A.useRef(null),L=A.useCallback(function($){if($.key==="Escape"&&($.preventDefault(),$.stopPropagation(),c()),["ArrowDown","ArrowUp"].includes($.key)){if($.preventDefault(),$.stopPropagation(),!x.current)return;var Q=$.key==="ArrowUp"?-1:1,ie=x.current.querySelector(".".concat(Ye["Dropdown__menu__option--is-selected"])),ne=void 0;if(!ie)ne=x.current.querySelector(".".concat(Ye.Dropdown__menu__option));else{var be=Array.from(x.current.querySelectorAll(".".concat(Ye.Dropdown__menu__option))),we=be.findIndex(function(ye){return ye===ie}),H=we+Q<0?be.length-1:(we+Q)%be.length;ne=be[H],ie.classList.remove(Ye["Dropdown__menu__option--is-selected"])}ne&&(ne.classList.add(Ye["Dropdown__menu__option--is-selected"]),OS(ne,{scrollMode:"if-needed",behavior:"auto"}))}if($.key==="Enter"){if($.preventDefault(),$.stopPropagation(),!x.current)return;var K=x.current.querySelector(".".concat(Ye["Dropdown__menu__option--is-selected"]));if(K){var re=K.dataset.optionId,pe=y.find(function(ye){return ye.id===re});pe?.handler&&pe.handler($)}}},[y]),U=wS({threshold:0,rootMargin:"0px 0px 0px 0px",triggerOnce:!1}),R=U[0],O=U[1],G=U[2],N=A.createRef(),Y=A.createRef(),ee=A.useCallback(function(){if(Y.current&&N.current){var $=DS(s)&&s.isAutoResizerActive();LS(Y.current,N.current,u,$)}},[Y,N,u]);return A.useEffect(function(){ee()},[O,G?.intersectionRatio]),A.useEffect(function(){if(Y.current&&N.current){var $=new ResizeObserver(ee);return $.observe(Y.current),$.observe(N.current),function(){$.disconnect()}}},[Y,ee]),A.useEffect(function(){return window.addEventListener("resize",ee),function(){return window.removeEventListener("resize",ee)}},[ee]),le.createElement(le.Fragment,null,le.createElement("div",{ref:TS(R,N),className:Ye.Dropdown__spacer}),le.createElement(MS,{ref:Y},le.createElement("div",{className:Ye.Dropdown__menu},y.length>5&&le.createElement("div",{className:Ye.Dropdown__menu__search},le.createElement("input",{type:"text",value:m||"",onChange:_,onKeyDown:L,placeholder:"Search...",className:Ye.Dropdown__menu__search__input})),le.createElement(Yy.Provider,{value:{searchTerm:m,addOption:C,setClickHandlerForOption:T}},le.createElement("div",{className:Ye.Dropdown__menu__inner,ref:x},E?n:le.createElement("div",{className:Ye.Dropdown__menu__group__content},n))))))},Df=function(a){var n=a.icon,i=a.red,u=a.onClick,s=a.closeMenuOnClick;return le.createElement(Es.Consumer,null,function(c){var d;return le.createElement("button",{type:"button",className:sn(Ye.Dropdown__menu__option__icon,(d={},d[Ye["Dropdown__menu__option__icon--delete"]]=i,d)),onClick:function(p){p.preventDefault(),p.stopPropagation(),(s??!0)&&c.closeMenu(),u(p)}},n)})};Df.displayName="DropdownOptionAction";var nl=function(a){var n,i=a.onClick,u=a.to,s=a.active,c=a.red,d=a.valid,p=a.invalid,m=a.children,h=a.disabled,v=a.closeMenuOnClick,y=td(),b=A.useMemo(function(){return new Date().getTime().toString(36)},[]),_=A.useContext(Yy),E=_.searchTerm,C=_.addOption,T=_.setClickHandlerForOption,x=le.Children.toArray(m),L=x.filter(function(Q){return typeof Q=="object"&&"type"in Q&&Q.type===Df}),U=x.filter(function(Q){return typeof Q!="object"||!("type"in Q)||Q.type!==Df}),R=A.useRef(null),O=A.useState(""),G=O[0],N=O[1];A.useEffect(function(){R.current&&N(R.current.innerText)});var Y=A.useContext(Es).closeMenu,ee=A.useCallback(function(Q){!i&&!u||(Q.preventDefault(),Q.stopPropagation(),!h&&((v??!0)&&Y(),u&&y?.navigateTo(u),i&&i(Q)))},[v,Y,i,u]);if(A.useEffect(function(){return C(b)},[b]),A.useEffect(function(){return T(b,ee)},[b,ee,T]),G&&E&&!G.toLowerCase().includes(E.toLowerCase()))return null;var $=le.createElement(le.Fragment,null,le.createElement("button",{type:"button",className:Ye.Dropdown__menu__option__content,ref:R,onClick:ee},U),L.length>0&&le.createElement("div",{className:Ye.Dropdown__menu__option__icons},L));return le.createElement("div",{className:sn(Ye.Dropdown__menu__option,(n={},n[Ye["Dropdown__menu__option--is-active"]]=s,n[Ye["Dropdown__menu__option--is-disabled"]]=h,n[Ye["Dropdown__menu__option--is-valid"]]=d,n[Ye["Dropdown__menu__option--is-invalid"]]=p,n[Ye["Dropdown__menu__option--is-dangerous"]]=c,n)),"data-option-id":b},$)};const NS="_fieldError_qi0xk_1",zS={fieldError:NS};function Zy(a){var n=a.children;return le.createElement("div",{className:zS.fieldError},n)}const qS="_fieldHint_1avon_1",US={fieldHint:qS};function Wy(a){var n=a.children;return le.createElement("div",{className:US.fieldHint},n)}var Mf=function(){return Mf=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},Mf.apply(this,arguments)};function Ky(a){var n=a.id,i=a.label,u=a.hint,s=a.error,c=a.required,d=a.formLabelProps,p=a.children;return le.createElement(le.Fragment,null,le.createElement(eg,Mf({},d,{htmlFor:n,required:c,error:!!s}),i),p,s&&le.createElement(Zy,null,s),u&&le.createElement(Wy,null,u))}const HS="_Form_5qspp_1",VS="_Form__item_5qspp_5",of={Form:HS,Form__item:VS,"Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"};var jf=function(){return jf=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},jf.apply(this,arguments)},BS=function(a,n){var i={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&n.indexOf(u)<0&&(i[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(a);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(a,u[s])&&(i[u[s]]=a[u[s]]);return i},Jy=function(a){var n=a.children,i=a.className,u=a.onSubmit,s=a.spacing,c=s===void 0?"default":s,d=BS(a,["children","className","onSubmit","spacing"]),p=sn(of.Form,i),m=sn(of.Form__item,of["Form__item--".concat(c)]),h=A.useCallback(function(v){v.preventDefault(),u&&u(v)},[u]);return le.createElement("form",jf({className:p,onSubmit:h},d),A.Children.map(n,function(v){return v?le.createElement("div",{className:m},v):null}))};const GS="_formLabel_tcjrv_1",kS="_formLabel__code_tcjrv_8",$S="_formLabel__label_tcjrv_18",PS="_formLabel__required_tcjrv_30",Qi={formLabel:GS,formLabel__code:kS,"formLabel--error":"_formLabel--error_tcjrv_14",formLabel__label:$S,formLabel__required:PS};var Lf=function(){return Lf=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},Lf.apply(this,arguments)},IS=function(a,n){var i={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&n.indexOf(u)<0&&(i[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(a);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(a,u[s])&&(i[u[s]]=a[u[s]]);return i},eg=function(a){var n,i=a.children,u=a.className,s=a.htmlFor,c=a.code,d=a.required,p=d===void 0?!1:d,m=a.error,h=m===void 0?!1:m,v=IS(a,["children","className","htmlFor","code","required","error"]),y=sn(Qi.formLabel,u,(n={},n[Qi["formLabel--error"]]=h,n));return le.createElement("label",Lf({className:y,htmlFor:s},v),le.createElement("span",{className:Qi.formLabel__label},i,p&&le.createElement("span",{className:Qi.formLabel__required},"*")),c&&le.createElement("span",{className:Qi.formLabel__code},c))},Nf=function(){return Nf=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},Nf.apply(this,arguments)};function rl(a){var n=a.id,i=a.name,u=a.label,s=a.hint,c=a.error,d=a.required,p=a.placeholder,m=a.formLabelProps,h=a.value,v=a.onChange,y=a.selectInputProps;return le.createElement(Ky,{formLabelProps:m,id:n,required:d,error:c,hint:s,label:u},le.createElement(VO,Nf({},y,{id:n,name:i,value:h,placeholder:p,onChange:v,error:!!c})))}function Wa(a){"@babel/helpers - typeof";return Wa=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},Wa(a)}function FS(a,n){if(Wa(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var u=i.call(a,n);if(Wa(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(a)}function tg(a){var n=FS(a,"string");return Wa(n)=="symbol"?n:n+""}function tl(a,n,i){return(n=tg(n))in a?Object.defineProperty(a,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[n]=i,a}function Vv(a,n){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);n&&(u=u.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),i.push.apply(i,u)}return i}function ve(a){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Vv(Object(i),!0).forEach(function(u){tl(a,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)):Vv(Object(i)).forEach(function(u){Object.defineProperty(a,u,Object.getOwnPropertyDescriptor(i,u))})}return a}function YS(a){if(Array.isArray(a))return a}function XS(a,n){var i=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(i!=null){var u,s,c,d,p=[],m=!0,h=!1;try{if(c=(i=i.call(a)).next,n===0){if(Object(i)!==i)return;m=!1}else for(;!(m=(u=c.call(i)).done)&&(p.push(u.value),p.length!==n);m=!0);}catch(v){h=!0,s=v}finally{try{if(!m&&i.return!=null&&(d=i.return(),Object(d)!==d))return}finally{if(h)throw s}}return p}}function zf(a,n){(n==null||n>a.length)&&(n=a.length);for(var i=0,u=Array(n);i<n;i++)u[i]=a[i];return u}function ng(a,n){if(a){if(typeof a=="string")return zf(a,n);var i={}.toString.call(a).slice(8,-1);return i==="Object"&&a.constructor&&(i=a.constructor.name),i==="Map"||i==="Set"?Array.from(a):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?zf(a,n):void 0}}function QS(){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 Yn(a,n){return YS(a)||XS(a,n)||ng(a,n)||QS()}function ZS(a,n){if(a==null)return{};var i={};for(var u in a)if({}.hasOwnProperty.call(a,u)){if(n.indexOf(u)!==-1)continue;i[u]=a[u]}return i}function Zn(a,n){if(a==null)return{};var i,u,s=ZS(a,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);for(u=0;u<c.length;u++)i=c[u],n.indexOf(i)===-1&&{}.propertyIsEnumerable.call(a,i)&&(s[i]=a[i])}return s}var WS=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function KS(a){var n=a.defaultInputValue,i=n===void 0?"":n,u=a.defaultMenuIsOpen,s=u===void 0?!1:u,c=a.defaultValue,d=c===void 0?null:c,p=a.inputValue,m=a.menuIsOpen,h=a.onChange,v=a.onInputChange,y=a.onMenuClose,b=a.onMenuOpen,_=a.value,E=Zn(a,WS),C=A.useState(p!==void 0?p:i),T=Yn(C,2),x=T[0],L=T[1],U=A.useState(m!==void 0?m:s),R=Yn(U,2),O=R[0],G=R[1],N=A.useState(_!==void 0?_:d),Y=Yn(N,2),ee=Y[0],$=Y[1],Q=A.useCallback(function(re,pe){typeof h=="function"&&h(re,pe),$(re)},[h]),ie=A.useCallback(function(re,pe){var ye;typeof v=="function"&&(ye=v(re,pe)),L(ye!==void 0?ye:re)},[v]),ne=A.useCallback(function(){typeof b=="function"&&b(),G(!0)},[b]),be=A.useCallback(function(){typeof y=="function"&&y(),G(!1)},[y]),we=p!==void 0?p:x,H=m!==void 0?m:O,K=_!==void 0?_:ee;return ve(ve({},E),{},{inputValue:we,menuIsOpen:H,onChange:Q,onInputChange:ie,onMenuClose:be,onMenuOpen:ne,value:K})}function Se(){return Se=Object.assign?Object.assign.bind():function(a){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var u in i)({}).hasOwnProperty.call(i,u)&&(a[u]=i[u])}return a},Se.apply(null,arguments)}function JS(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function Bv(a,n){for(var i=0;i<n.length;i++){var u=n[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(a,tg(u.key),u)}}function ew(a,n,i){return n&&Bv(a.prototype,n),i&&Bv(a,i),Object.defineProperty(a,"prototype",{writable:!1}),a}function qf(a,n){return qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,u){return i.__proto__=u,i},qf(a,n)}function tw(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(n&&n.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),n&&qf(a,n)}function fs(a){return fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fs(a)}function ag(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ag=function(){return!!a})()}function nw(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function aw(a,n){if(n&&(Wa(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nw(a)}function rw(a){var n=ag();return function(){var i,u=fs(a);if(n){var s=fs(this).constructor;i=Reflect.construct(u,arguments,s)}else i=u.apply(this,arguments);return aw(this,i)}}function iw(a){if(Array.isArray(a))return zf(a)}function lw(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function uw(){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 rd(a){return iw(a)||lw(a)||ng(a)||uw()}function sw(a){if(a.sheet)return a.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===a)return document.styleSheets[n]}function ow(a){var n=document.createElement("style");return n.setAttribute("data-emotion",a.key),a.nonce!==void 0&&n.setAttribute("nonce",a.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var cw=(function(){function a(i){var u=this;this._insertTag=function(s){var c;u.tags.length===0?u.insertionPoint?c=u.insertionPoint.nextSibling:u.prepend?c=u.container.firstChild:c=u.before:c=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(s,c),u.tags.push(s)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var n=a.prototype;return n.hydrate=function(u){u.forEach(this._insertTag)},n.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ow(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var c=sw(s);try{c.insertRule(u,c.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},a})(),_t="-ms-",ds="-moz-",Ve="-webkit-",rg="comm",id="rule",ld="decl",fw="@import",ig="@keyframes",dw="@layer",hw=Math.abs,Cs=String.fromCharCode,mw=Object.assign;function pw(a,n){return gt(a,0)^45?(((n<<2^gt(a,0))<<2^gt(a,1))<<2^gt(a,2))<<2^gt(a,3):0}function lg(a){return a.trim()}function vw(a,n){return(a=n.exec(a))?a[0]:a}function Be(a,n,i){return a.replace(n,i)}function Uf(a,n){return a.indexOf(n)}function gt(a,n){return a.charCodeAt(n)|0}function il(a,n,i){return a.slice(n,i)}function _n(a){return a.length}function ud(a){return a.length}function ku(a,n){return n.push(a),a}function yw(a,n){return a.map(n).join("")}var Os=1,Zr=1,ug=0,qt=0,st=0,Kr="";function Ts(a,n,i,u,s,c,d){return{value:a,root:n,parent:i,type:u,props:s,children:c,line:Os,column:Zr,length:d,return:""}}function Zi(a,n){return mw(Ts("",null,null,"",null,null,0),a,{length:-a.length},n)}function gw(){return st}function bw(){return st=qt>0?gt(Kr,--qt):0,Zr--,st===10&&(Zr=1,Os--),st}function It(){return st=qt<ug?gt(Kr,qt++):0,Zr++,st===10&&(Zr=1,Os++),st}function En(){return gt(Kr,qt)}function es(){return qt}function fl(a,n){return il(Kr,a,n)}function ll(a){switch(a){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(a){return Os=Zr=1,ug=_n(Kr=a),qt=0,[]}function og(a){return Kr="",a}function ts(a){return lg(fl(qt-1,Hf(a===91?a+2:a===40?a+1:a)))}function _w(a){for(;(st=En())&&st<33;)It();return ll(a)>2||ll(st)>3?"":" "}function Sw(a,n){for(;--n&&It()&&!(st<48||st>102||st>57&&st<65||st>70&&st<97););return fl(a,es()+(n<6&&En()==32&&It()==32))}function Hf(a){for(;It();)switch(st){case a:return qt;case 34:case 39:a!==34&&a!==39&&Hf(st);break;case 40:a===41&&Hf(a);break;case 92:It();break}return qt}function ww(a,n){for(;It()&&a+st!==57;)if(a+st===84&&En()===47)break;return"/*"+fl(n,qt-1)+"*"+Cs(a===47?a:It())}function Ew(a){for(;!ll(En());)It();return fl(a,qt)}function Cw(a){return og(ns("",null,null,null,[""],a=sg(a),0,[0],a))}function ns(a,n,i,u,s,c,d,p,m){for(var h=0,v=0,y=d,b=0,_=0,E=0,C=1,T=1,x=1,L=0,U="",R=s,O=c,G=u,N=U;T;)switch(E=L,L=It()){case 40:if(E!=108&>(N,y-1)==58){Uf(N+=Be(ts(L),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:N+=ts(L);break;case 9:case 10:case 13:case 32:N+=_w(E);break;case 92:N+=Sw(es()-1,7);continue;case 47:switch(En()){case 42:case 47:ku(Ow(ww(It(),es()),n,i),m);break;default:N+="/"}break;case 123*C:p[h++]=_n(N)*x;case 125*C:case 59:case 0:switch(L){case 0:case 125:T=0;case 59+v:x==-1&&(N=Be(N,/\f/g,"")),_>0&&_n(N)-y&&ku(_>32?kv(N+";",u,i,y-1):kv(Be(N," ","")+";",u,i,y-2),m);break;case 59:N+=";";default:if(ku(G=Gv(N,n,i,h,v,s,p,U,R=[],O=[],y),c),L===123)if(v===0)ns(N,n,G,G,R,c,y,p,O);else switch(b===99&>(N,3)===110?100:b){case 100:case 108:case 109:case 115:ns(a,G,G,u&&ku(Gv(a,G,G,0,0,s,p,U,s,R=[],y),O),s,O,y,p,u?R:O);break;default:ns(N,G,G,G,[""],O,0,p,O)}}h=v=_=0,C=x=1,U=N="",y=d;break;case 58:y=1+_n(N),_=E;default:if(C<1){if(L==123)--C;else if(L==125&&C++==0&&bw()==125)continue}switch(N+=Cs(L),L*C){case 38:x=v>0?1:(N+="\f",-1);break;case 44:p[h++]=(_n(N)-1)*x,x=1;break;case 64:En()===45&&(N+=ts(It())),b=En(),v=y=_n(U=N+=Ew(es())),L++;break;case 45:E===45&&_n(N)==2&&(C=0)}}return c}function Gv(a,n,i,u,s,c,d,p,m,h,v){for(var y=s-1,b=s===0?c:[""],_=ud(b),E=0,C=0,T=0;E<u;++E)for(var x=0,L=il(a,y+1,y=hw(C=d[E])),U=a;x<_;++x)(U=lg(C>0?b[x]+" "+L:Be(L,/&\f/g,b[x])))&&(m[T++]=U);return Ts(a,n,i,s===0?id:p,m,h,v)}function Ow(a,n,i){return Ts(a,n,i,rg,Cs(gw()),il(a,2,-2),0)}function kv(a,n,i,u){return Ts(a,n,i,ld,il(a,0,u),il(a,u+1,-1),u)}function Br(a,n){for(var i="",u=ud(a),s=0;s<u;s++)i+=n(a[s],s,a,n)||"";return i}function Tw(a,n,i,u){switch(a.type){case dw:if(a.children.length)break;case fw:case ld:return a.return=a.return||a.value;case rg:return"";case ig:return a.return=a.value+"{"+Br(a.children,u)+"}";case id:a.value=a.props.join(",")}return _n(i=Br(a.children,u))?a.return=a.value+"{"+i+"}":""}function xw(a){var n=ud(a);return function(i,u,s,c){for(var d="",p=0;p<n;p++)d+=a[p](i,u,s,c)||"";return d}}function Aw(a){return function(n){n.root||(n=n.return)&&a(n)}}function Rw(a){var n=Object.create(null);return function(i){return n[i]===void 0&&(n[i]=a(i)),n[i]}}var Dw=function(n,i,u){for(var s=0,c=0;s=c,c=En(),s===38&&c===12&&(i[u]=1),!ll(c);)It();return fl(n,qt)},Mw=function(n,i){var u=-1,s=44;do switch(ll(s)){case 0:s===38&&En()===12&&(i[u]=1),n[u]+=Dw(qt-1,i,u);break;case 2:n[u]+=ts(s);break;case 4:if(s===44){n[++u]=En()===58?"&\f":"",i[u]=n[u].length;break}default:n[u]+=Cs(s)}while(s=It());return n},jw=function(n,i){return og(Mw(sg(n),i))},$v=new WeakMap,Lw=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var i=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&&i.charCodeAt(0)!==58&&!$v.get(u))&&!s){$v.set(n,!0);for(var c=[],d=jw(i,c),p=u.props,m=0,h=0;m<d.length;m++)for(var v=0;v<p.length;v++,h++)n.props[h]=c[m]?d[m].replace(/&\f/g,p[v]):p[v]+" "+d[m]}}},Nw=function(n){if(n.type==="decl"){var i=n.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(n.return="",n.value="")}};function cg(a,n){switch(pw(a,n)){case 5103:return Ve+"print-"+a+a;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 Ve+a+a;case 5349:case 4246:case 4810:case 6968:case 2756:return Ve+a+ds+a+_t+a+a;case 6828:case 4268:return Ve+a+_t+a+a;case 6165:return Ve+a+_t+"flex-"+a+a;case 5187:return Ve+a+Be(a,/(\w+).+(:[^]+)/,Ve+"box-$1$2"+_t+"flex-$1$2")+a;case 5443:return Ve+a+_t+"flex-item-"+Be(a,/flex-|-self/,"")+a;case 4675:return Ve+a+_t+"flex-line-pack"+Be(a,/align-content|flex-|-self/,"")+a;case 5548:return Ve+a+_t+Be(a,"shrink","negative")+a;case 5292:return Ve+a+_t+Be(a,"basis","preferred-size")+a;case 6060:return Ve+"box-"+Be(a,"-grow","")+Ve+a+_t+Be(a,"grow","positive")+a;case 4554:return Ve+Be(a,/([^-])(transform)/g,"$1"+Ve+"$2")+a;case 6187:return Be(Be(Be(a,/(zoom-|grab)/,Ve+"$1"),/(image-set)/,Ve+"$1"),a,"")+a;case 5495:case 3959:return Be(a,/(image-set\([^]*)/,Ve+"$1$`$1");case 4968:return Be(Be(a,/(.+:)(flex-)?(.*)/,Ve+"box-pack:$3"+_t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ve+a+a;case 4095:case 3583:case 4068:case 2532:return Be(a,/(.+)-inline(.+)/,Ve+"$1$2")+a;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(_n(a)-1-n>6)switch(gt(a,n+1)){case 109:if(gt(a,n+4)!==45)break;case 102:return Be(a,/(.+:)(.+)-([^]+)/,"$1"+Ve+"$2-$3$1"+ds+(gt(a,n+3)==108?"$3":"$2-$3"))+a;case 115:return~Uf(a,"stretch")?cg(Be(a,"stretch","fill-available"),n)+a:a}break;case 4949:if(gt(a,n+1)!==115)break;case 6444:switch(gt(a,_n(a)-3-(~Uf(a,"!important")&&10))){case 107:return Be(a,":",":"+Ve)+a;case 101:return Be(a,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ve+(gt(a,14)===45?"inline-":"")+"box$3$1"+Ve+"$2$3$1"+_t+"$2box$3")+a}break;case 5936:switch(gt(a,n+11)){case 114:return Ve+a+_t+Be(a,/[svh]\w+-[tblr]{2}/,"tb")+a;case 108:return Ve+a+_t+Be(a,/[svh]\w+-[tblr]{2}/,"tb-rl")+a;case 45:return Ve+a+_t+Be(a,/[svh]\w+-[tblr]{2}/,"lr")+a}return Ve+a+_t+a+a}return a}var zw=function(n,i,u,s){if(n.length>-1&&!n.return)switch(n.type){case ld:n.return=cg(n.value,n.length);break;case ig:return Br([Zi(n,{value:Be(n.value,"@","@"+Ve)})],s);case id:if(n.length)return yw(n.props,function(c){switch(vw(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Br([Zi(n,{props:[Be(c,/:(read-\w+)/,":"+ds+"$1")]})],s);case"::placeholder":return Br([Zi(n,{props:[Be(c,/:(plac\w+)/,":"+Ve+"input-$1")]}),Zi(n,{props:[Be(c,/:(plac\w+)/,":"+ds+"$1")]}),Zi(n,{props:[Be(c,/:(plac\w+)/,_t+"input-$1")]})],s)}return""})}},qw=[zw],Uw=function(n){var i=n.key;if(i==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(C){var T=C.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var s=n.stylisPlugins||qw,c={},d,p=[];d=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(C){for(var T=C.getAttribute("data-emotion").split(" "),x=1;x<T.length;x++)c[T[x]]=!0;p.push(C)});var m,h=[Lw,Nw];{var v,y=[Tw,Aw(function(C){v.insert(C)})],b=xw(h.concat(s,y)),_=function(T){return Br(Cw(T),b)};m=function(T,x,L,U){v=L,_(T?T+"{"+x.styles+"}":x.styles),U&&(E.inserted[x.name]=!0)}}var E={key:i,sheet:new cw({key:i,container:d,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:c,registered:{},insert:m};return E.sheet.hydrate(p),E},cf={exports:{}},Ge={};var Pv;function Hw(){if(Pv)return Ge;Pv=1;var a=typeof Symbol=="function"&&Symbol.for,n=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,u=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,d=a?Symbol.for("react.provider"):60109,p=a?Symbol.for("react.context"):60110,m=a?Symbol.for("react.async_mode"):60111,h=a?Symbol.for("react.concurrent_mode"):60111,v=a?Symbol.for("react.forward_ref"):60112,y=a?Symbol.for("react.suspense"):60113,b=a?Symbol.for("react.suspense_list"):60120,_=a?Symbol.for("react.memo"):60115,E=a?Symbol.for("react.lazy"):60116,C=a?Symbol.for("react.block"):60121,T=a?Symbol.for("react.fundamental"):60117,x=a?Symbol.for("react.responder"):60118,L=a?Symbol.for("react.scope"):60119;function U(O){if(typeof O=="object"&&O!==null){var G=O.$$typeof;switch(G){case n:switch(O=O.type,O){case m:case h:case u:case c:case s:case y:return O;default:switch(O=O&&O.$$typeof,O){case p:case v:case E:case _:case d:return O;default:return G}}case i:return G}}}function R(O){return U(O)===h}return Ge.AsyncMode=m,Ge.ConcurrentMode=h,Ge.ContextConsumer=p,Ge.ContextProvider=d,Ge.Element=n,Ge.ForwardRef=v,Ge.Fragment=u,Ge.Lazy=E,Ge.Memo=_,Ge.Portal=i,Ge.Profiler=c,Ge.StrictMode=s,Ge.Suspense=y,Ge.isAsyncMode=function(O){return R(O)||U(O)===m},Ge.isConcurrentMode=R,Ge.isContextConsumer=function(O){return U(O)===p},Ge.isContextProvider=function(O){return U(O)===d},Ge.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===n},Ge.isForwardRef=function(O){return U(O)===v},Ge.isFragment=function(O){return U(O)===u},Ge.isLazy=function(O){return U(O)===E},Ge.isMemo=function(O){return U(O)===_},Ge.isPortal=function(O){return U(O)===i},Ge.isProfiler=function(O){return U(O)===c},Ge.isStrictMode=function(O){return U(O)===s},Ge.isSuspense=function(O){return U(O)===y},Ge.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===u||O===h||O===c||O===s||O===y||O===b||typeof O=="object"&&O!==null&&(O.$$typeof===E||O.$$typeof===_||O.$$typeof===d||O.$$typeof===p||O.$$typeof===v||O.$$typeof===T||O.$$typeof===x||O.$$typeof===L||O.$$typeof===C)},Ge.typeOf=U,Ge}var Iv;function Vw(){return Iv||(Iv=1,cf.exports=Hw()),cf.exports}var ff,Fv;function Bw(){if(Fv)return ff;Fv=1;var a=Vw(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[a.ForwardRef]=u,c[a.Memo]=s;function d(E){return a.isMemo(E)?s:c[E.$$typeof]||n}var p=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,b=Object.prototype;function _(E,C,T){if(typeof C!="string"){if(b){var x=y(C);x&&x!==b&&_(E,x,T)}var L=m(C);h&&(L=L.concat(h(C)));for(var U=d(E),R=d(C),O=0;O<L.length;++O){var G=L[O];if(!i[G]&&!(T&&T[G])&&!(R&&R[G])&&!(U&&U[G])){var N=v(C,G);try{p(E,G,N)}catch{}}}}return E}return ff=_,ff}Bw();var Gw=!0;function kw(a,n,i){var u="";return i.split(" ").forEach(function(s){a[s]!==void 0?n.push(a[s]+";"):s&&(u+=s+" ")}),u}var fg=function(n,i,u){var s=n.key+"-"+i.name;(u===!1||Gw===!1)&&n.registered[s]===void 0&&(n.registered[s]=i.styles)},$w=function(n,i,u){fg(n,i,u);var s=n.key+"-"+i.name;if(n.inserted[i.name]===void 0){var c=i;do n.insert(i===c?"."+s:"",c,n.sheet,!0),c=c.next;while(c!==void 0)}};function Pw(a){for(var n=0,i,u=0,s=a.length;s>=4;++u,s-=4)i=a.charCodeAt(u)&255|(a.charCodeAt(++u)&255)<<8|(a.charCodeAt(++u)&255)<<16|(a.charCodeAt(++u)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,n=(i&65535)*1540483477+((i>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(s){case 3:n^=(a.charCodeAt(u+2)&255)<<16;case 2:n^=(a.charCodeAt(u+1)&255)<<8;case 1:n^=a.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 Iw={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},Fw=/[A-Z]|^ms/g,Yw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dg=function(n){return n.charCodeAt(1)===45},Yv=function(n){return n!=null&&typeof n!="boolean"},df=Rw(function(a){return dg(a)?a:a.replace(Fw,"-$&").toLowerCase()}),Xv=function(n,i){switch(n){case"animation":case"animationName":if(typeof i=="string")return i.replace(Yw,function(u,s,c){return Sn={name:s,styles:c,next:Sn},s})}return Iw[n]!==1&&!dg(n)&&typeof i=="number"&&i!==0?i+"px":i};function ul(a,n,i){if(i==null)return"";var u=i;if(u.__emotion_styles!==void 0)return u;switch(typeof i){case"boolean":return"";case"object":{var s=i;if(s.anim===1)return Sn={name:s.name,styles:s.styles,next:Sn},s.name;var c=i;if(c.styles!==void 0){var d=c.next;if(d!==void 0)for(;d!==void 0;)Sn={name:d.name,styles:d.styles,next:Sn},d=d.next;var p=c.styles+";";return p}return Xw(a,n,i)}case"function":{if(a!==void 0){var m=Sn,h=i(a);return Sn=m,ul(a,n,h)}break}}var v=i;return v}function Xw(a,n,i){var u="";if(Array.isArray(i))for(var s=0;s<i.length;s++)u+=ul(a,n,i[s])+";";else for(var c in i){var d=i[c];if(typeof d!="object"){var p=d;Yv(p)&&(u+=df(c)+":"+Xv(c,p)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&n==null)for(var m=0;m<d.length;m++)Yv(d[m])&&(u+=df(c)+":"+Xv(c,d[m])+";");else{var h=ul(a,n,d);switch(c){case"animation":case"animationName":{u+=df(c)+":"+h+";";break}default:u+=c+"{"+h+"}"}}}return u}var Qv=/label:\s*([^\s;{]+)\s*(;|$)/g,Sn;function hg(a,n,i){if(a.length===1&&typeof a[0]=="object"&&a[0]!==null&&a[0].styles!==void 0)return a[0];var u=!0,s="";Sn=void 0;var c=a[0];if(c==null||c.raw===void 0)u=!1,s+=ul(i,n,c);else{var d=c;s+=d[0]}for(var p=1;p<a.length;p++)if(s+=ul(i,n,a[p]),u){var m=c;s+=m[p]}Qv.lastIndex=0;for(var h="",v;(v=Qv.exec(s))!==null;)h+="-"+v[1];var y=Pw(s)+h;return{name:y,styles:s,next:Sn}}var Qw=function(n){return n()},Zw=Rv.useInsertionEffect?Rv.useInsertionEffect:!1,Ww=Zw||Qw,mg=A.createContext(typeof HTMLElement<"u"?Uw({key:"css"}):null);mg.Provider;var Kw=function(n){return A.forwardRef(function(i,u){var s=A.useContext(mg);return n(i,s,u)})},Jw=A.createContext({}),sd={}.hasOwnProperty,Vf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",eE=function(n,i){var u={};for(var s in i)sd.call(i,s)&&(u[s]=i[s]);return u[Vf]=n,u},tE=function(n){var i=n.cache,u=n.serialized,s=n.isStringTag;return fg(i,u,s),Ww(function(){return $w(i,u,s)}),null},nE=Kw(function(a,n,i){var u=a.css;typeof u=="string"&&n.registered[u]!==void 0&&(u=n.registered[u]);var s=a[Vf],c=[u],d="";typeof a.className=="string"?d=kw(n.registered,c,a.className):a.className!=null&&(d=a.className+" ");var p=hg(c,void 0,A.useContext(Jw));d+=n.key+"-"+p.name;var m={};for(var h in a)sd.call(a,h)&&h!=="css"&&h!==Vf&&(m[h]=a[h]);return m.className=d,i&&(m.ref=i),A.createElement(A.Fragment,null,A.createElement(tE,{cache:n,serialized:p,isStringTag:typeof s=="string"}),A.createElement(s,m))}),aE=nE,me=function(n,i){var u=arguments;if(i==null||!sd.call(i,"css"))return A.createElement.apply(void 0,u);var s=u.length,c=new Array(s);c[0]=aE,c[1]=eE(n,i);for(var d=2;d<s;d++)c[d]=u[d];return A.createElement.apply(null,c)};(function(a){var n;n||(n=a.JSX||(a.JSX={}))})(me||(me={}));function od(){for(var a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return hg(n)}function rE(){var a=od.apply(void 0,arguments),n="animation-"+a.name;return{name:n,styles:"@keyframes "+n+"{"+a.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function iE(a,n){return n||(n=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(n)}}))}const lE=Math.min,uE=Math.max,hs=Math.round,$u=Math.floor,ms=a=>({x:a,y:a});function sE(a){const{x:n,y:i,width:u,height:s}=a;return{width:u,height:s,top:i,left:n,right:n+u,bottom:i+s,x:n,y:i}}function xs(){return typeof window<"u"}function pg(a){return yg(a)?(a.nodeName||"").toLowerCase():"#document"}function Xn(a){var n;return(a==null||(n=a.ownerDocument)==null?void 0:n.defaultView)||window}function vg(a){var n;return(n=(yg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:n.documentElement}function yg(a){return xs()?a instanceof Node||a instanceof Xn(a).Node:!1}function oE(a){return xs()?a instanceof Element||a instanceof Xn(a).Element:!1}function cd(a){return xs()?a instanceof HTMLElement||a instanceof Xn(a).HTMLElement:!1}function Zv(a){return!xs()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Xn(a).ShadowRoot}function gg(a){const{overflow:n,overflowX:i,overflowY:u,display:s}=fd(a);return/auto|scroll|overlay|hidden|clip/.test(n+u+i)&&s!=="inline"&&s!=="contents"}let hf;function cE(){return hf==null&&(hf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hf}function fE(a){return/^(html|body|#document)$/.test(pg(a))}function fd(a){return Xn(a).getComputedStyle(a)}function dE(a){if(pg(a)==="html")return a;const n=a.assignedSlot||a.parentNode||Zv(a)&&a.host||vg(a);return Zv(n)?n.host:n}function bg(a){const n=dE(a);return fE(n)?a.ownerDocument?a.ownerDocument.body:a.body:cd(n)&&gg(n)?n:bg(n)}function ps(a,n,i){var u;n===void 0&&(n=[]),i===void 0&&(i=!0);const s=bg(a),c=s===((u=a.ownerDocument)==null?void 0:u.body),d=Xn(s);if(c){const p=Bf(d);return n.concat(d,d.visualViewport||[],gg(s)?s:[],p&&i?ps(p):[])}else return n.concat(s,ps(s,[],i))}function Bf(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function hE(a){const n=fd(a);let i=parseFloat(n.width)||0,u=parseFloat(n.height)||0;const s=cd(a),c=s?a.offsetWidth:i,d=s?a.offsetHeight:u,p=hs(i)!==c||hs(u)!==d;return p&&(i=c,u=d),{width:i,height:u,$:p}}function dd(a){return oE(a)?a:a.contextElement}function Wv(a){const n=dd(a);if(!cd(n))return ms(1);const i=n.getBoundingClientRect(),{width:u,height:s,$:c}=hE(n);let d=(c?hs(i.width):i.width)/u,p=(c?hs(i.height):i.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!p||!Number.isFinite(p))&&(p=1),{x:d,y:p}}const mE=ms(0);function pE(a){const n=Xn(a);return!cE()||!n.visualViewport?mE:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function vE(a,n,i){return!1}function Kv(a,n,i,u){n===void 0&&(n=!1);const s=a.getBoundingClientRect(),c=dd(a);let d=ms(1);n&&(d=Wv(a));const p=vE()?pE(c):ms(0);let m=(s.left+p.x)/d.x,h=(s.top+p.y)/d.y,v=s.width/d.x,y=s.height/d.y;if(c){const b=Xn(c),_=u;let E=b,C=Bf(E);for(;C&&u&&_!==E;){const T=Wv(C),x=C.getBoundingClientRect(),L=fd(C),U=x.left+(C.clientLeft+parseFloat(L.paddingLeft))*T.x,R=x.top+(C.clientTop+parseFloat(L.paddingTop))*T.y;m*=T.x,h*=T.y,v*=T.x,y*=T.y,m+=U,h+=R,E=Xn(C),C=Bf(E)}}return sE({width:v,height:y,x:m,y:h})}function _g(a,n){return a.x===n.x&&a.y===n.y&&a.width===n.width&&a.height===n.height}function yE(a,n){let i=null,u;const s=vg(a);function c(){var p;clearTimeout(u),(p=i)==null||p.disconnect(),i=null}function d(p,m){p===void 0&&(p=!1),m===void 0&&(m=1),c();const h=a.getBoundingClientRect(),{left:v,top:y,width:b,height:_}=h;if(p||n(),!b||!_)return;const E=$u(y),C=$u(s.clientWidth-(v+b)),T=$u(s.clientHeight-(y+_)),x=$u(v),U={rootMargin:-E+"px "+-C+"px "+-T+"px "+-x+"px",threshold:uE(0,lE(1,m))||1};let R=!0;function O(G){const N=G[0].intersectionRatio;if(N!==m){if(!R)return d();N?d(!1,N):u=setTimeout(()=>{d(!1,1e-7)},1e3)}N===1&&!_g(h,a.getBoundingClientRect())&&d(),R=!1}try{i=new IntersectionObserver(O,{...U,root:s.ownerDocument})}catch{i=new IntersectionObserver(O,U)}i.observe(a)}return d(!0),c}function gE(a,n,i,u){u===void 0&&(u={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:m=!1}=u,h=dd(a),v=s||c?[...h?ps(h):[],...n?ps(n):[]]:[];v.forEach(x=>{s&&x.addEventListener("scroll",i,{passive:!0}),c&&x.addEventListener("resize",i)});const y=h&&p?yE(h,i):null;let b=-1,_=null;d&&(_=new ResizeObserver(x=>{let[L]=x;L&&L.target===h&&_&&n&&(_.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var U;(U=_)==null||U.observe(n)})),i()}),h&&!m&&_.observe(h),n&&_.observe(n));let E,C=m?Kv(a):null;m&&T();function T(){const x=Kv(a);C&&!_g(C,x)&&i(),C=x,E=requestAnimationFrame(T)}return i(),()=>{var x;v.forEach(L=>{s&&L.removeEventListener("scroll",i),c&&L.removeEventListener("resize",i)}),y?.(),(x=_)==null||x.disconnect(),_=null,m&&cancelAnimationFrame(E)}}var Gf=A.useLayoutEffect,bE=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],vs=function(){};function _E(a,n){return n?n[0]==="-"?a+n:a+"__"+n:a}function SE(a,n){for(var i=arguments.length,u=new Array(i>2?i-2:0),s=2;s<i;s++)u[s-2]=arguments[s];var c=[].concat(u);if(n&&a)for(var d in n)n.hasOwnProperty(d)&&n[d]&&c.push("".concat(_E(a,d)));return c.filter(function(p){return p}).map(function(p){return String(p).trim()}).join(" ")}var Jv=function(n){return DE(n)?n.filter(Boolean):Wa(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 i=Zn(n,bE);return ve({},i)},tt=function(n,i,u){var s=n.cx,c=n.getStyles,d=n.getClassNames,p=n.className;return{css:c(i,n),className:s(u??{},d(i,n),p)}};function As(a){return[document.documentElement,document.body,window].indexOf(a)>-1}function wE(a){return As(a)?window.innerHeight:a.clientHeight}function wg(a){return As(a)?window.pageYOffset:a.scrollTop}function ys(a,n){if(As(a)){window.scrollTo(0,n);return}a.scrollTop=n}function EE(a){var n=getComputedStyle(a),i=n.position==="absolute",u=/(auto|scroll)/;if(n.position==="fixed")return document.documentElement;for(var s=a;s=s.parentElement;)if(n=getComputedStyle(s),!(i&&n.position==="static")&&u.test(n.overflow+n.overflowY+n.overflowX))return s;return document.documentElement}function CE(a,n,i,u){return i*((a=a/u-1)*a*a+1)+n}function Pu(a,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:vs,s=wg(a),c=n-s,d=10,p=0;function m(){p+=d;var h=CE(p,s,c,i);ys(a,h),p<i?window.requestAnimationFrame(m):u(a)}m()}function ey(a,n){var i=a.getBoundingClientRect(),u=n.getBoundingClientRect(),s=n.offsetHeight/3;u.bottom+s>i.bottom?ys(a,Math.min(n.offsetTop+n.clientHeight-a.offsetHeight+s,a.scrollHeight)):u.top-s<i.top&&ys(a,Math.max(n.offsetTop-s,0))}function OE(a){var n=a.getBoundingClientRect();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width}}function ty(){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,xE={get passive(){return Eg=!0}},Iu=typeof window<"u"?window:{};Iu.addEventListener&&Iu.removeEventListener&&(Iu.addEventListener("p",vs,xE),Iu.removeEventListener("p",vs,!1));var AE=Eg;function RE(a){return a!=null}function DE(a){return Array.isArray(a)}function Fu(a,n,i){return a?n:i}var ME=function(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),s=1;s<i;s++)u[s-1]=arguments[s];var c=Object.entries(n).filter(function(d){var p=Yn(d,1),m=p[0];return!u.includes(m)});return c.reduce(function(d,p){var m=Yn(p,2),h=m[0],v=m[1];return d[h]=v,d},{})},jE=["children","innerProps"],LE=["children","innerProps"];function NE(a){var n=a.maxHeight,i=a.menuEl,u=a.minHeight,s=a.placement,c=a.shouldScroll,d=a.isFixedPosition,p=a.controlHeight,m=EE(i),h={placement:"bottom",maxHeight:n};if(!i||!i.offsetParent)return h;var v=m.getBoundingClientRect(),y=v.height,b=i.getBoundingClientRect(),_=b.bottom,E=b.height,C=b.top,T=i.offsetParent.getBoundingClientRect(),x=T.top,L=d?window.innerHeight:wE(m),U=wg(m),R=parseInt(getComputedStyle(i).marginBottom,10),O=parseInt(getComputedStyle(i).marginTop,10),G=x-O,N=L-C,Y=G+U,ee=y-U-C,$=_-L+U+R,Q=U+C-O,ie=160;switch(s){case"auto":case"bottom":if(N>=E)return{placement:"bottom",maxHeight:n};if(ee>=E&&!d)return c&&Pu(m,$,ie),{placement:"bottom",maxHeight:n};if(!d&&ee>=u||d&&N>=u){c&&Pu(m,$,ie);var ne=d?N-R:ee-R;return{placement:"bottom",maxHeight:ne}}if(s==="auto"||d){var be=n,we=d?G:Y;return we>=u&&(be=Math.min(we-R-p,n)),{placement:"top",maxHeight:be}}if(s==="bottom")return c&&ys(m,$),{placement:"bottom",maxHeight:n};break;case"top":if(G>=E)return{placement:"top",maxHeight:n};if(Y>=E&&!d)return c&&Pu(m,Q,ie),{placement:"top",maxHeight:n};if(!d&&Y>=u||d&&G>=u){var H=n;return(!d&&Y>=u||d&&G>=u)&&(H=d?G-O:Y-O),c&&Pu(m,Q,ie),{placement:"top",maxHeight:H}}return{placement:"bottom",maxHeight:n};default:throw new Error('Invalid placement provided "'.concat(s,'".'))}return h}function zE(a){var n={bottom:"top",top:"bottom"};return a?n[a]:"bottom"}var Cg=function(n){return n==="auto"?"bottom":n},qE=function(n,i){var u,s=n.placement,c=n.theme,d=c.borderRadius,p=c.spacing,m=c.colors;return ve((u={label:"menu"},tl(u,zE(s),"100%"),tl(u,"position","absolute"),tl(u,"width","100%"),tl(u,"zIndex",1),u),i?{}:{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:p.menuGutter,marginTop:p.menuGutter})},Og=A.createContext(null),UE=function(n){var i=n.children,u=n.minMenuHeight,s=n.maxMenuHeight,c=n.menuPlacement,d=n.menuPosition,p=n.menuShouldScrollIntoView,m=n.theme,h=A.useContext(Og)||{},v=h.setPortalPlacement,y=A.useRef(null),b=A.useState(s),_=Yn(b,2),E=_[0],C=_[1],T=A.useState(null),x=Yn(T,2),L=x[0],U=x[1],R=m.spacing.controlHeight;return Gf(function(){var O=y.current;if(O){var G=d==="fixed",N=p&&!G,Y=NE({maxHeight:s,menuEl:O,minHeight:u,placement:c,shouldScroll:N,isFixedPosition:G,controlHeight:R});C(Y.maxHeight),U(Y.placement),v?.(Y.placement)}},[s,c,d,p,u,v,R]),i({ref:y,placerProps:ve(ve({},n),{},{placement:L||Cg(c),maxHeight:E})})},HE=function(n){var i=n.children,u=n.innerRef,s=n.innerProps;return me("div",Se({},tt(n,"menu",{menu:!0}),{ref:u},s),i)},VE=HE,BE=function(n,i){var u=n.maxHeight,s=n.theme.spacing.baseUnit;return ve({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},i?{}:{paddingBottom:s,paddingTop:s})},GE=function(n){var i=n.children,u=n.innerProps,s=n.innerRef,c=n.isMulti;return me("div",Se({},tt(n,"menuList",{"menu-list":!0,"menu-list--is-multi":c}),{ref:s},u),i)},Tg=function(n,i){var u=n.theme,s=u.spacing.baseUnit,c=u.colors;return ve({textAlign:"center"},i?{}:{color:c.neutral40,padding:"".concat(s*2,"px ").concat(s*3,"px")})},kE=Tg,$E=Tg,PE=function(n){var i=n.children,u=i===void 0?"No options":i,s=n.innerProps,c=Zn(n,jE);return me("div",Se({},tt(ve(ve({},c),{},{children:u,innerProps:s}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),s),u)},IE=function(n){var i=n.children,u=i===void 0?"Loading...":i,s=n.innerProps,c=Zn(n,LE);return me("div",Se({},tt(ve(ve({},c),{},{children:u,innerProps:s}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),s),u)},FE=function(n){var i=n.rect,u=n.offset,s=n.position;return{left:i.left,position:s,top:u,width:i.width,zIndex:1}},YE=function(n){var i=n.appendTo,u=n.children,s=n.controlElement,c=n.innerProps,d=n.menuPlacement,p=n.menuPosition,m=A.useRef(null),h=A.useRef(null),v=A.useState(Cg(d)),y=Yn(v,2),b=y[0],_=y[1],E=A.useMemo(function(){return{setPortalPlacement:_}},[]),C=A.useState(null),T=Yn(C,2),x=T[0],L=T[1],U=A.useCallback(function(){if(s){var N=OE(s),Y=p==="fixed"?0:window.pageYOffset,ee=N[b]+Y;(ee!==x?.offset||N.left!==x?.rect.left||N.width!==x?.rect.width)&&L({offset:ee,rect:N})}},[s,p,b,x?.offset,x?.rect.left,x?.rect.width]);Gf(function(){U()},[U]);var R=A.useCallback(function(){typeof h.current=="function"&&(h.current(),h.current=null),s&&m.current&&(h.current=gE(s,m.current,U,{elementResize:"ResizeObserver"in window}))},[s,U]);Gf(function(){R()},[R]);var O=A.useCallback(function(N){m.current=N,R()},[R]);if(!i&&p!=="fixed"||!x)return null;var G=me("div",Se({ref:O},tt(ve(ve({},n),{},{offset:x.offset,position:p,rect:x.rect}),"menuPortal",{"menu-portal":!0}),c),u);return me(Og.Provider,{value:E},i?Qy.createPortal(G,i):G)},XE=function(n){var i=n.isDisabled,u=n.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},QE=function(n){var i=n.children,u=n.innerProps,s=n.isDisabled,c=n.isRtl;return me("div",Se({},tt(n,"container",{"--is-disabled":s,"--is-rtl":c}),u),i)},ZE=function(n,i){var u=n.theme.spacing,s=n.isMulti,c=n.hasValue,d=n.selectProps.controlShouldRenderValue;return ve({alignItems:"center",display:s&&c&&d?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},i?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},WE=function(n){var i=n.children,u=n.innerProps,s=n.isMulti,c=n.hasValue;return me("div",Se({},tt(n,"valueContainer",{"value-container":!0,"value-container--is-multi":s,"value-container--has-value":c}),u),i)},KE=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},JE=function(n){var i=n.children,u=n.innerProps;return me("div",Se({},tt(n,"indicatorsContainer",{indicators:!0}),u),i)},ny,eC=["size"],tC=["innerProps","isRtl","size"],nC={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},xg=function(n){var i=n.size,u=Zn(n,eC);return me("svg",Se({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:nC},u))},hd=function(n){return me(xg,Se({size:20},n),me("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 me(xg,Se({size:20},n),me("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"}))},Rg=function(n,i){var u=n.isFocused,s=n.theme,c=s.spacing.baseUnit,d=s.colors;return ve({label:"indicatorContainer",display:"flex",transition:"color 150ms"},i?{}:{color:u?d.neutral60:d.neutral20,padding:c*2,":hover":{color:u?d.neutral80:d.neutral40}})},aC=Rg,rC=function(n){var i=n.children,u=n.innerProps;return me("div",Se({},tt(n,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),i||me(Ag,null))},iC=Rg,lC=function(n){var i=n.children,u=n.innerProps;return me("div",Se({},tt(n,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),i||me(hd,null))},uC=function(n,i){var u=n.isDisabled,s=n.theme,c=s.spacing.baseUnit,d=s.colors;return ve({label:"indicatorSeparator",alignSelf:"stretch",width:1},i?{}:{backgroundColor:u?d.neutral10:d.neutral20,marginBottom:c*2,marginTop:c*2})},sC=function(n){var i=n.innerProps;return me("span",Se({},i,tt(n,"indicatorSeparator",{"indicator-separator":!0})))},oC=rE(ny||(ny=iE([`
|
|
4
|
+
0%, 80%, 100% { opacity: 0; }
|
|
5
|
+
40% { opacity: 1; }
|
|
6
|
+
`]))),cC=function(n,i){var u=n.isFocused,s=n.size,c=n.theme,d=c.colors,p=c.spacing.baseUnit;return ve({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:s,lineHeight:1,marginRight:s,textAlign:"center",verticalAlign:"middle"},i?{}:{color:u?d.neutral60:d.neutral20,padding:p*2})},mf=function(n){var i=n.delay,u=n.offset;return me("span",{css:od({animation:"".concat(oC," 1s ease-in-out ").concat(i,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},fC=function(n){var i=n.innerProps,u=n.isRtl,s=n.size,c=s===void 0?4:s,d=Zn(n,tC);return me("div",Se({},tt(ve(ve({},d),{},{innerProps:i,isRtl:u,size:c}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),me(mf,{delay:0,offset:u}),me(mf,{delay:160,offset:!0}),me(mf,{delay:320,offset:!u}))},dC=function(n,i){var u=n.isDisabled,s=n.isFocused,c=n.theme,d=c.colors,p=c.borderRadius,m=c.spacing;return ve({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:m.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},i?{}:{backgroundColor:u?d.neutral5:d.neutral0,borderColor:u?d.neutral10:s?d.primary:d.neutral20,borderRadius:p,borderStyle:"solid",borderWidth:1,boxShadow:s?"0 0 0 1px ".concat(d.primary):void 0,"&:hover":{borderColor:s?d.primary:d.neutral30}})},hC=function(n){var i=n.children,u=n.isDisabled,s=n.isFocused,c=n.innerRef,d=n.innerProps,p=n.menuIsOpen;return me("div",Se({ref:c},tt(n,"control",{control:!0,"control--is-disabled":u,"control--is-focused":s,"control--menu-is-open":p}),d,{"aria-disabled":u||void 0}),i)},mC=hC,pC=["data"],vC=function(n,i){var u=n.theme.spacing;return i?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},yC=function(n){var i=n.children,u=n.cx,s=n.getStyles,c=n.getClassNames,d=n.Heading,p=n.headingProps,m=n.innerProps,h=n.label,v=n.theme,y=n.selectProps;return me("div",Se({},tt(n,"group",{group:!0}),m),me(d,Se({},p,{selectProps:y,theme:v,getStyles:s,getClassNames:c,cx:u}),h),me("div",null,i))},gC=function(n,i){var u=n.theme,s=u.colors,c=u.spacing;return ve({label:"group",cursor:"default",display:"block"},i?{}:{color:s.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:c.baseUnit*3,paddingRight:c.baseUnit*3,textTransform:"uppercase"})},bC=function(n){var i=Sg(n);i.data;var u=Zn(i,pC);return me("div",Se({},tt(n,"groupHeading",{"group-heading":!0}),u))},_C=yC,SC=["innerRef","isDisabled","isHidden","inputClassName"],wC=function(n,i){var u=n.isDisabled,s=n.value,c=n.theme,d=c.spacing,p=c.colors;return ve(ve({visibility:u?"hidden":"visible",transform:s?"translateZ(0)":""},EC),i?{}:{margin:d.baseUnit/2,paddingBottom:d.baseUnit/2,paddingTop:d.baseUnit/2,color:p.neutral80})},Dg={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},EC={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ve({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Dg)},CC=function(n){return ve({label:"input",color:"inherit",background:0,opacity:n?0:1,width:"100%"},Dg)},OC=function(n){var i=n.cx,u=n.value,s=Sg(n),c=s.innerRef,d=s.isDisabled,p=s.isHidden,m=s.inputClassName,h=Zn(s,SC);return me("div",Se({},tt(n,"input",{"input-container":!0}),{"data-value":u||""}),me("input",Se({className:i({input:!0},m),ref:c,style:CC(p),disabled:d},h)))},TC=OC,xC=function(n,i){var u=n.theme,s=u.spacing,c=u.borderRadius,d=u.colors;return ve({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:d.neutral10,borderRadius:c/2,margin:s.baseUnit/2})},AC=function(n,i){var u=n.theme,s=u.borderRadius,c=u.colors,d=n.cropWithEllipsis;return ve({overflow:"hidden",textOverflow:d||d===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:s/2,color:c.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},RC=function(n,i){var u=n.theme,s=u.spacing,c=u.borderRadius,d=u.colors,p=n.isFocused;return ve({alignItems:"center",display:"flex"},i?{}:{borderRadius:c/2,backgroundColor:p?d.dangerLight:void 0,paddingLeft:s.baseUnit,paddingRight:s.baseUnit,":hover":{backgroundColor:d.dangerLight,color:d.danger}})},Mg=function(n){var i=n.children,u=n.innerProps;return me("div",u,i)},DC=Mg,MC=Mg;function jC(a){var n=a.children,i=a.innerProps;return me("div",Se({role:"button"},i),n||me(hd,{size:14}))}var LC=function(n){var i=n.children,u=n.components,s=n.data,c=n.innerProps,d=n.isDisabled,p=n.removeProps,m=n.selectProps,h=u.Container,v=u.Label,y=u.Remove;return me(h,{data:s,innerProps:ve(ve({},tt(n,"multiValue",{"multi-value":!0,"multi-value--is-disabled":d})),c),selectProps:m},me(v,{data:s,innerProps:ve({},tt(n,"multiValueLabel",{"multi-value__label":!0})),selectProps:m},i),me(y,{data:s,innerProps:ve(ve({},tt(n,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},p),selectProps:m}))},NC=LC,zC=function(n,i){var u=n.isDisabled,s=n.isFocused,c=n.isSelected,d=n.theme,p=d.spacing,m=d.colors;return ve({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},i?{}:{backgroundColor:c?m.primary:s?m.primary25:"transparent",color:u?m.neutral20:c?m.neutral0:"inherit",padding:"".concat(p.baseUnit*2,"px ").concat(p.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:c?m.primary:m.primary50}})},qC=function(n){var i=n.children,u=n.isDisabled,s=n.isFocused,c=n.isSelected,d=n.innerRef,p=n.innerProps;return me("div",Se({},tt(n,"option",{option:!0,"option--is-disabled":u,"option--is-focused":s,"option--is-selected":c}),{ref:d,"aria-disabled":u},p),i)},UC=qC,HC=function(n,i){var u=n.theme,s=u.spacing,c=u.colors;return ve({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:c.neutral50,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},VC=function(n){var i=n.children,u=n.innerProps;return me("div",Se({},tt(n,"placeholder",{placeholder:!0}),u),i)},BC=VC,GC=function(n,i){var u=n.isDisabled,s=n.theme,c=s.spacing,d=s.colors;return ve({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i?{}:{color:u?d.neutral40:d.neutral80,marginLeft:c.baseUnit/2,marginRight:c.baseUnit/2})},kC=function(n){var i=n.children,u=n.isDisabled,s=n.innerProps;return me("div",Se({},tt(n,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),s),i)},$C=kC,PC={ClearIndicator:lC,Control:mC,DropdownIndicator:rC,DownChevron:Ag,CrossIcon:hd,Group:_C,GroupHeading:bC,IndicatorsContainer:JE,IndicatorSeparator:sC,Input:TC,LoadingIndicator:fC,Menu:VE,MenuList:GE,MenuPortal:YE,LoadingMessage:IE,NoOptionsMessage:PE,MultiValue:NC,MultiValueContainer:DC,MultiValueLabel:MC,MultiValueRemove:jC,Option:UC,Placeholder:BC,SelectContainer:QE,SingleValue:$C,ValueContainer:WE},IC=function(n){return ve(ve({},PC),n.components)},ay=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function FC(a,n){return!!(a===n||ay(a)&&ay(n))}function YC(a,n){if(a.length!==n.length)return!1;for(var i=0;i<a.length;i++)if(!FC(a[i],n[i]))return!1;return!0}function XC(a,n){n===void 0&&(n=YC);var i=null;function u(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];if(i&&i.lastThis===this&&n(s,i.lastArgs))return i.lastResult;var d=a.apply(this,s);return i={lastResult:d,lastArgs:s,lastThis:this},d}return u.clear=function(){i=null},u}var QC={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"},ZC=function(n){return me("span",Se({css:QC},n))},ry=ZC,WC={guidance:function(n){var i=n.isSearchable,u=n.isMulti,s=n.tabSelectsValue,c=n.context,d=n.isInitialFocus;switch(c){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(s?", press Tab to select the option and exit the menu":"",".");case"input":return d?"".concat(n["aria-label"]||"Select"," is focused ").concat(i?",type to refine list":"",", press Down to open the menu, ").concat(u?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(n){var i=n.action,u=n.label,s=u===void 0?"":u,c=n.labels,d=n.isDisabled;switch(i){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(c.length>1?"s":""," ").concat(c.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 i=n.context,u=n.focused,s=n.options,c=n.label,d=c===void 0?"":c,p=n.selectValue,m=n.isDisabled,h=n.isSelected,v=n.isAppleDevice,y=function(C,T){return C&&C.length?"".concat(C.indexOf(T)+1," of ").concat(C.length):""};if(i==="value"&&p)return"value ".concat(d," focused, ").concat(y(p,u),".");if(i==="menu"&&v){var b=m?" disabled":"",_="".concat(h?" selected":"").concat(b);return"".concat(d).concat(_,", ").concat(y(s,u),".")}return""},onFilter:function(n){var i=n.inputValue,u=n.resultsMessage;return"".concat(u).concat(i?" for search term "+i:"",".")}},KC=function(n){var i=n.ariaSelection,u=n.focusedOption,s=n.focusedValue,c=n.focusableOptions,d=n.isFocused,p=n.selectValue,m=n.selectProps,h=n.id,v=n.isAppleDevice,y=m.ariaLiveMessages,b=m.getOptionLabel,_=m.inputValue,E=m.isMulti,C=m.isOptionDisabled,T=m.isSearchable,x=m.menuIsOpen,L=m.options,U=m.screenReaderStatus,R=m.tabSelectsValue,O=m.isLoading,G=m["aria-label"],N=m["aria-live"],Y=A.useMemo(function(){return ve(ve({},WC),y||{})},[y]),ee=A.useMemo(function(){var we="";if(i&&Y.onChange){var H=i.option,K=i.options,re=i.removedValue,pe=i.removedValues,ye=i.value,M=function(ze){return Array.isArray(ze)?null:ze},P=re||H||M(ye),te=P?b(P):"",ae=K||pe||void 0,de=ae?ae.map(b):[],fe=ve({isDisabled:P&&C(P,p),label:te,labels:de},i);we=Y.onChange(fe)}return we},[i,Y,C,p,b]),$=A.useMemo(function(){var we="",H=u||s,K=!!(u&&p&&p.includes(u));if(H&&Y.onFocus){var re={focused:H,label:b(H),isDisabled:C(H,p),isSelected:K,options:c,context:H===u?"menu":"value",selectValue:p,isAppleDevice:v};we=Y.onFocus(re)}return we},[u,s,b,C,Y,c,p,v]),Q=A.useMemo(function(){var we="";if(x&&L.length&&!O&&Y.onFilter){var H=U({count:c.length});we=Y.onFilter({inputValue:_,resultsMessage:H})}return we},[c,_,x,Y,L,U,O]),ie=i?.action==="initial-input-focus",ne=A.useMemo(function(){var we="";if(Y.guidance){var H=s?"value":x?"menu":"input";we=Y.guidance({"aria-label":G,context:H,isDisabled:u&&C(u,p),isMulti:E,isSearchable:T,tabSelectsValue:R,isInitialFocus:ie})}return we},[G,u,s,E,C,T,x,Y,p,R,ie]),be=me(A.Fragment,null,me("span",{id:"aria-selection"},ee),me("span",{id:"aria-focused"},$),me("span",{id:"aria-results"},Q),me("span",{id:"aria-guidance"},ne));return me(A.Fragment,null,me(ry,{id:h},ie&&be),me(ry,{"aria-live":N,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},d&&!ie&&be))},JC=KC,kf=[{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źẑżžẓẕƶȥɀⱬꝣ"}],eO=new RegExp("["+kf.map(function(a){return a.letters}).join("")+"]","g"),jg={};for(var pf=0;pf<kf.length;pf++)for(var vf=kf[pf],yf=0;yf<vf.letters.length;yf++)jg[vf.letters[yf]]=vf.base;var Lg=function(n){return n.replace(eO,function(i){return jg[i]})},tO=XC(Lg),iy=function(n){return n.replace(/^\s+|\s+$/g,"")},nO=function(n){return"".concat(n.label," ").concat(n.value)},aO=function(n){return function(i,u){if(i.data.__isNew__)return!0;var s=ve({ignoreCase:!0,ignoreAccents:!0,stringify:nO,trim:!0,matchFrom:"any"},n),c=s.ignoreCase,d=s.ignoreAccents,p=s.stringify,m=s.trim,h=s.matchFrom,v=m?iy(u):u,y=m?iy(p(i)):p(i);return c&&(v=v.toLowerCase(),y=y.toLowerCase()),d&&(v=tO(v),y=Lg(y)),h==="start"?y.substr(0,v.length)===v:y.indexOf(v)>-1}},rO=["innerRef"];function iO(a){var n=a.innerRef,i=Zn(a,rO),u=ME(i,"onExited","in","enter","exit","appear");return me("input",Se({ref:n},u,{css:od({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 lO=function(n){n.cancelable&&n.preventDefault(),n.stopPropagation()};function uO(a){var n=a.isEnabled,i=a.onBottomArrive,u=a.onBottomLeave,s=a.onTopArrive,c=a.onTopLeave,d=A.useRef(!1),p=A.useRef(!1),m=A.useRef(0),h=A.useRef(null),v=A.useCallback(function(T,x){if(h.current!==null){var L=h.current,U=L.scrollTop,R=L.scrollHeight,O=L.clientHeight,G=h.current,N=x>0,Y=R-O-U,ee=!1;Y>x&&d.current&&(u&&u(T),d.current=!1),N&&p.current&&(c&&c(T),p.current=!1),N&&x>Y?(i&&!d.current&&i(T),G.scrollTop=R,ee=!0,d.current=!0):!N&&-x>U&&(s&&!p.current&&s(T),G.scrollTop=0,ee=!0,p.current=!0),ee&&lO(T)}},[i,u,s,c]),y=A.useCallback(function(T){v(T,T.deltaY)},[v]),b=A.useCallback(function(T){m.current=T.changedTouches[0].clientY},[]),_=A.useCallback(function(T){var x=m.current-T.changedTouches[0].clientY;v(T,x)},[v]),E=A.useCallback(function(T){if(T){var x=AE?{passive:!1}:!1;T.addEventListener("wheel",y,x),T.addEventListener("touchstart",b,x),T.addEventListener("touchmove",_,x)}},[_,b,y]),C=A.useCallback(function(T){T&&(T.removeEventListener("wheel",y,!1),T.removeEventListener("touchstart",b,!1),T.removeEventListener("touchmove",_,!1))},[_,b,y]);return A.useEffect(function(){if(n){var T=h.current;return E(T),function(){C(T)}}},[n,E,C]),function(T){h.current=T}}var ly=["boxSizing","height","overflow","paddingRight","position"],uy={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function sy(a){a.cancelable&&a.preventDefault()}function oy(a){a.stopPropagation()}function cy(){var a=this.scrollTop,n=this.scrollHeight,i=a+this.offsetHeight;a===0?this.scrollTop=1:i===n&&(this.scrollTop=a-1)}function fy(){return"ontouchstart"in window||navigator.maxTouchPoints}var dy=!!(typeof window<"u"&&window.document&&window.document.createElement),Wi=0,Ur={capture:!1,passive:!1};function sO(a){var n=a.isEnabled,i=a.accountForScrollbars,u=i===void 0?!0:i,s=A.useRef({}),c=A.useRef(null),d=A.useCallback(function(m){if(dy){var h=document.body,v=h&&h.style;if(u&&ly.forEach(function(E){var C=v&&v[E];s.current[E]=C}),u&&Wi<1){var y=parseInt(s.current.paddingRight,10)||0,b=document.body?document.body.clientWidth:0,_=window.innerWidth-b+y||0;Object.keys(uy).forEach(function(E){var C=uy[E];v&&(v[E]=C)}),v&&(v.paddingRight="".concat(_,"px"))}h&&fy()&&(h.addEventListener("touchmove",sy,Ur),m&&(m.addEventListener("touchstart",cy,Ur),m.addEventListener("touchmove",oy,Ur))),Wi+=1}},[u]),p=A.useCallback(function(m){if(dy){var h=document.body,v=h&&h.style;Wi=Math.max(Wi-1,0),u&&Wi<1&&ly.forEach(function(y){var b=s.current[y];v&&(v[y]=b)}),h&&fy()&&(h.removeEventListener("touchmove",sy,Ur),m&&(m.removeEventListener("touchstart",cy,Ur),m.removeEventListener("touchmove",oy,Ur)))}},[u]);return A.useEffect(function(){if(n){var m=c.current;return d(m),function(){p(m)}}},[n,d,p]),function(m){c.current=m}}var oO=function(n){var i=n.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},cO={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function fO(a){var n=a.children,i=a.lockEnabled,u=a.captureEnabled,s=u===void 0?!0:u,c=a.onBottomArrive,d=a.onBottomLeave,p=a.onTopArrive,m=a.onTopLeave,h=uO({isEnabled:s,onBottomArrive:c,onBottomLeave:d,onTopArrive:p,onTopLeave:m}),v=sO({isEnabled:i}),y=function(_){h(_),v(_)};return me(A.Fragment,null,i&&me("div",{onClick:oO,css:cO}),n(y))}var dO={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},hO=function(n){var i=n.name,u=n.onFocus;return me("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:dO,value:"",onChange:function(){}})},mO=hO;function md(a){var n;return typeof window<"u"&&window.navigator!=null?a.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function pO(){return md(/^iPhone/i)}function Ng(){return md(/^Mac/i)}function vO(){return md(/^iPad/i)||Ng()&&navigator.maxTouchPoints>1}function yO(){return pO()||vO()}function gO(){return Ng()||yO()}var bO=function(n){return n.label},_O=function(n){return n.label},SO=function(n){return n.value},wO=function(n){return!!n.isDisabled},EO={clearIndicator:iC,container:XE,control:dC,dropdownIndicator:aC,group:vC,groupHeading:gC,indicatorsContainer:KE,indicatorSeparator:uC,input:wC,loadingIndicator:cC,loadingMessage:$E,menu:qE,menuList:BE,menuPortal:FE,multiValue:xC,multiValueLabel:AC,multiValueRemove:RC,noOptionsMessage:kE,option:zC,placeholder:HC,singleValue:GC,valueContainer:ZE},CO={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%)"},OO=4,zg=4,TO=38,xO=zg*2,AO={baseUnit:zg,controlHeight:TO,menuGutter:xO},gf={borderRadius:OO,colors:CO,spacing:AO},RO={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ty(),captureMenuScroll:!ty(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:aO(),formatGroupLabel:bO,getOptionLabel:_O,getOptionValue:SO,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:wO,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 i=n.count;return"".concat(i," result").concat(i!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function hy(a,n,i,u){var s=Hg(a,n,i),c=Vg(a,n,i),d=Ug(a,n),p=gs(a,n);return{type:"option",data:n,isDisabled:s,isSelected:c,label:d,value:p,index:u}}function as(a,n){return a.options.map(function(i,u){if("options"in i){var s=i.options.map(function(d,p){return hy(a,d,n,p)}).filter(function(d){return py(a,d)});return s.length>0?{type:"group",data:i,options:s,index:u}:void 0}var c=hy(a,i,n,u);return py(a,c)?c:void 0}).filter(RE)}function qg(a){return a.reduce(function(n,i){return i.type==="group"?n.push.apply(n,rd(i.options.map(function(u){return u.data}))):n.push(i.data),n},[])}function my(a,n){return a.reduce(function(i,u){return u.type==="group"?i.push.apply(i,rd(u.options.map(function(s){return{data:s.data,id:"".concat(n,"-").concat(u.index,"-").concat(s.index)}}))):i.push({data:u.data,id:"".concat(n,"-").concat(u.index)}),i},[])}function DO(a,n){return qg(as(a,n))}function py(a,n){var i=a.inputValue,u=i===void 0?"":i,s=n.data,c=n.isSelected,d=n.label,p=n.value;return(!Gg(a)||!c)&&Bg(a,{label:d,value:p,data:s},u)}function MO(a,n){var i=a.focusedValue,u=a.selectValue,s=u.indexOf(i);if(s>-1){var c=n.indexOf(i);if(c>-1)return i;if(s<n.length)return n[s]}return null}function jO(a,n){var i=a.focusedOption;return i&&n.indexOf(i)>-1?i:n[0]}var bf=function(n,i){var u,s=(u=n.find(function(c){return c.data===i}))===null||u===void 0?void 0:u.id;return s||null},Ug=function(n,i){return n.getOptionLabel(i)},gs=function(n,i){return n.getOptionValue(i)};function Hg(a,n,i){return typeof a.isOptionDisabled=="function"?a.isOptionDisabled(n,i):!1}function Vg(a,n,i){if(i.indexOf(n)>-1)return!0;if(typeof a.isOptionSelected=="function")return a.isOptionSelected(n,i);var u=gs(a,n);return i.some(function(s){return gs(a,s)===u})}function Bg(a,n,i){return a.filterOption?a.filterOption(n,i):!0}var Gg=function(n){var i=n.hideSelectedOptions,u=n.isMulti;return i===void 0?u:i},LO=1,kg=(function(a){tw(i,a);var n=rw(i);function i(u){var s;if(JS(this,i),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 v=s.props,y=v.onChange,b=v.name;h.name=b,s.ariaOnChange(m,h),y(m,h)},s.setValue=function(m,h,v){var y=s.props,b=y.closeMenuOnSelect,_=y.isMulti,E=y.inputValue;s.onInputChange("",{action:"set-value",prevInputValue:E}),b&&(s.setState({inputIsHiddenAfterUpdate:!_}),s.onMenuClose()),s.setState({clearFocusValueOnUpdate:!0}),s.onChange(m,{action:h,option:v})},s.selectOption=function(m){var h=s.props,v=h.blurInputOnSelect,y=h.isMulti,b=h.name,_=s.state.selectValue,E=y&&s.isOptionSelected(m,_),C=s.isOptionDisabled(m,_);if(E){var T=s.getOptionValue(m);s.setValue(_.filter(function(x){return s.getOptionValue(x)!==T}),"deselect-option",m)}else if(!C)y?s.setValue([].concat(rd(_),[m]),"select-option",m):s.setValue(m,"select-option");else{s.ariaOnChange(m,{action:"select-option",option:m,name:b});return}v&&s.blurInput()},s.removeValue=function(m){var h=s.props.isMulti,v=s.state.selectValue,y=s.getOptionValue(m),b=v.filter(function(E){return s.getOptionValue(E)!==y}),_=Fu(h,b,b[0]||null);s.onChange(_,{action:"remove-value",removedValue:m}),s.focusInput()},s.clearValue=function(){var m=s.state.selectValue;s.onChange(Fu(s.props.isMulti,[],null),{action:"clear",removedValues:m})},s.popValue=function(){var m=s.props.isMulti,h=s.state.selectValue,v=h[h.length-1],y=h.slice(0,h.length-1),b=Fu(m,y,y[0]||null);v&&s.onChange(b,{action:"pop-value",removedValue:v})},s.getFocusedOptionId=function(m){return bf(s.state.focusableOptionsWithIds,m)},s.getFocusableOptionsWithIds=function(){return my(as(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),v=0;v<m;v++)h[v]=arguments[v];return SE.apply(void 0,[s.props.classNamePrefix].concat(h))},s.getOptionLabel=function(m){return Ug(s.props,m)},s.getOptionValue=function(m){return gs(s.props,m)},s.getStyles=function(m,h){var v=s.props.unstyled,y=EO[m](h,v);y.boxSizing="border-box";var b=s.props.styles[m];return b?b(y,h):y},s.getClassNames=function(m,h){var v,y;return(v=(y=s.props.classNames)[m])===null||v===void 0?void 0:v.call(y,h)},s.getElementId=function(m){return"".concat(s.state.instancePrefix,"-").concat(m)},s.getComponents=function(){return IC(s.props)},s.buildCategorizedOptions=function(){return as(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(m,h){s.setState({ariaSelection:ve({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,v=h.isMulti,y=h.menuIsOpen;s.focusInput(),y?(s.setState({inputIsHiddenAfterUpdate:!v}),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&&As(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,v=h&&h.item(0);v&&(s.initialTouchX=v.clientX,s.initialTouchY=v.clientY,s.userIsDragging=!1)},s.onTouchMove=function(m){var h=m.touches,v=h&&h.item(0);if(v){var y=Math.abs(v.clientX-s.initialTouchX),b=Math.abs(v.clientY-s.initialTouchY),_=5;s.userIsDragging=y>_||b>_}},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,v=m.currentTarget.value;s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange(v,{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(),v=h.indexOf(m);s.setState({focusedOption:m,focusedOptionId:v>-1?s.getFocusedOptionId(m):null})}},s.shouldHideSelectedOptions=function(){return Gg(s.props)},s.onValueInputFocus=function(m){m.preventDefault(),m.stopPropagation(),s.focus()},s.onKeyDown=function(m){var h=s.props,v=h.isMulti,y=h.backspaceRemovesValue,b=h.escapeClearsValue,_=h.inputValue,E=h.isClearable,C=h.isDisabled,T=h.menuIsOpen,x=h.onKeyDown,L=h.tabSelectsValue,U=h.openMenuOnFocus,R=s.state,O=R.focusedOption,G=R.focusedValue,N=R.selectValue;if(!C&&!(typeof x=="function"&&(x(m),m.defaultPrevented))){switch(s.blockOptionHover=!0,m.key){case"ArrowLeft":if(!v||_)return;s.focusValue("previous");break;case"ArrowRight":if(!v||_)return;s.focusValue("next");break;case"Delete":case"Backspace":if(_)return;if(G)s.removeValue(G);else{if(!y)return;v?s.popValue():E&&s.clearValue()}break;case"Tab":if(s.isComposing||m.shiftKey||!T||!L||!O||U&&s.isOptionSelected(O,N))return;s.selectOption(O);break;case"Enter":if(m.keyCode===229)break;if(T){if(!O||s.isComposing)return;s.selectOption(O);break}return;case"Escape":T?(s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange("",{action:"menu-close",prevInputValue:_}),s.onMenuClose()):E&&b&&s.clearValue();break;case" ":if(_)return;if(!T){s.openMenu("first");break}if(!O)return;s.selectOption(O);break;case"ArrowUp":T?s.focusOption("up"):s.openMenu("last");break;case"ArrowDown":T?s.focusOption("down"):s.openMenu("first");break;case"PageUp":if(!T)return;s.focusOption("pageup");break;case"PageDown":if(!T)return;s.focusOption("pagedown");break;case"Home":if(!T)return;s.focusOption("first");break;case"End":if(!T)return;s.focusOption("last");break;default:return}m.preventDefault()}},s.state.instancePrefix="react-select-"+(s.props.instanceId||++LO),s.state.selectValue=Jv(u.value),u.menuIsOpen&&s.state.selectValue.length){var c=s.getFocusableOptionsWithIds(),d=s.buildFocusableOptions(),p=d.indexOf(s.state.selectValue[0]);s.state.focusableOptionsWithIds=c,s.state.focusedOption=d[p],s.state.focusedOptionId=bf(c,d[p])}return s}return ew(i,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ey(this.menuListRef,this.focusedOptionRef),gO()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(s){var c=this.props,d=c.isDisabled,p=c.menuIsOpen,m=this.state.isFocused;(m&&!d&&s.isDisabled||m&&p&&!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&&(ey(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,c){this.props.onInputChange(s,c)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(s){var c=this,d=this.state,p=d.selectValue,m=d.isFocused,h=this.buildFocusableOptions(),v=s==="first"?0:h.length-1;if(!this.props.isMulti){var y=h.indexOf(p[0]);y>-1&&(v=y)}this.scrollToFocusedOptionOnUpdate=!(m&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:h[v],focusedOptionId:this.getFocusedOptionId(h[v])},function(){return c.onMenuOpen()})}},{key:"focusValue",value:function(s){var c=this.state,d=c.selectValue,p=c.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var m=d.indexOf(p);p||(m=-1);var h=d.length-1,v=-1;if(d.length){switch(s){case"previous":m===0?v=0:m===-1?v=h:v=m-1;break;case"next":m>-1&&m<h&&(v=m+1);break}this.setState({inputIsHidden:v!==-1,focusedValue:d[v]})}}}},{key:"focusOption",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",c=this.props.pageSize,d=this.state.focusedOption,p=this.getFocusableOptions();if(p.length){var m=0,h=p.indexOf(d);d||(h=-1),s==="up"?m=h>0?h-1:p.length-1:s==="down"?m=(h+1)%p.length:s==="pageup"?(m=h-c,m<0&&(m=0)):s==="pagedown"?(m=h+c,m>p.length-1&&(m=p.length-1)):s==="last"&&(m=p.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:p[m],focusedValue:null,focusedOptionId:this.getFocusedOptionId(p[m])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(gf):ve(ve({},gf),this.props.theme):gf})},{key:"getCommonProps",value:function(){var s=this.clearValue,c=this.cx,d=this.getStyles,p=this.getClassNames,m=this.getValue,h=this.selectOption,v=this.setValue,y=this.props,b=y.isMulti,_=y.isRtl,E=y.options,C=this.hasValue();return{clearValue:s,cx:c,getStyles:d,getClassNames:p,getValue:m,hasValue:C,isMulti:b,isRtl:_,options:E,selectOption:h,selectProps:y,setValue:v,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,c=s.isClearable,d=s.isMulti;return c===void 0?d:c}},{key:"isOptionDisabled",value:function(s,c){return Hg(this.props,s,c)}},{key:"isOptionSelected",value:function(s,c){return Vg(this.props,s,c)}},{key:"filterOption",value:function(s,c){return Bg(this.props,s,c)}},{key:"formatOptionLabel",value:function(s,c){if(typeof this.props.formatOptionLabel=="function"){var d=this.props.inputValue,p=this.state.selectValue;return this.props.formatOptionLabel(s,{context:c,inputValue:d,selectValue:p})}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,c=s.isDisabled,d=s.isSearchable,p=s.inputId,m=s.inputValue,h=s.tabIndex,v=s.form,y=s.menuIsOpen,b=s.required,_=this.getComponents(),E=_.Input,C=this.state,T=C.inputIsHidden,x=C.ariaSelection,L=this.commonProps,U=p||this.getElementId("input"),R=ve(ve(ve({"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()?x?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return d?A.createElement(E,Se({},L,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:U,innerRef:this.getInputRef,isDisabled:c,isHidden:T,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:h,form:v,type:"text",value:m},R)):A.createElement(iO,Se({id:U,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:vs,onFocus:this.onInputFocus,disabled:c,tabIndex:h,inputMode:"none",form:v,value:""},R))})},{key:"renderPlaceholderOrValue",value:function(){var s=this,c=this.getComponents(),d=c.MultiValue,p=c.MultiValueContainer,m=c.MultiValueLabel,h=c.MultiValueRemove,v=c.SingleValue,y=c.Placeholder,b=this.commonProps,_=this.props,E=_.controlShouldRenderValue,C=_.isDisabled,T=_.isMulti,x=_.inputValue,L=_.placeholder,U=this.state,R=U.selectValue,O=U.focusedValue,G=U.isFocused;if(!this.hasValue()||!E)return x?null:A.createElement(y,Se({},b,{key:"placeholder",isDisabled:C,isFocused:G,innerProps:{id:this.getElementId("placeholder")}}),L);if(T)return R.map(function(Y,ee){var $=Y===O,Q="".concat(s.getOptionLabel(Y),"-").concat(s.getOptionValue(Y));return A.createElement(d,Se({},b,{components:{Container:p,Label:m,Remove:h},isFocused:$,isDisabled:C,key:Q,index:ee,removeProps:{onClick:function(){return s.removeValue(Y)},onTouchEnd:function(){return s.removeValue(Y)},onMouseDown:function(ne){ne.preventDefault()}},data:Y}),s.formatOptionLabel(Y,"value"))});if(x)return null;var N=R[0];return A.createElement(v,Se({},b,{data:N,isDisabled:C}),this.formatOptionLabel(N,"value"))}},{key:"renderClearIndicator",value:function(){var s=this.getComponents(),c=s.ClearIndicator,d=this.commonProps,p=this.props,m=p.isDisabled,h=p.isLoading,v=this.state.isFocused;if(!this.isClearable()||!c||m||!this.hasValue()||h)return null;var y={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return A.createElement(c,Se({},d,{innerProps:y,isFocused:v}))}},{key:"renderLoadingIndicator",value:function(){var s=this.getComponents(),c=s.LoadingIndicator,d=this.commonProps,p=this.props,m=p.isDisabled,h=p.isLoading,v=this.state.isFocused;if(!c||!h)return null;var y={"aria-hidden":"true"};return A.createElement(c,Se({},d,{innerProps:y,isDisabled:m,isFocused:v}))}},{key:"renderIndicatorSeparator",value:function(){var s=this.getComponents(),c=s.DropdownIndicator,d=s.IndicatorSeparator;if(!c||!d)return null;var p=this.commonProps,m=this.props.isDisabled,h=this.state.isFocused;return A.createElement(d,Se({},p,{isDisabled:m,isFocused:h}))}},{key:"renderDropdownIndicator",value:function(){var s=this.getComponents(),c=s.DropdownIndicator;if(!c)return null;var d=this.commonProps,p=this.props.isDisabled,m=this.state.isFocused,h={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return A.createElement(c,Se({},d,{innerProps:h,isDisabled:p,isFocused:m}))}},{key:"renderMenu",value:function(){var s=this,c=this.getComponents(),d=c.Group,p=c.GroupHeading,m=c.Menu,h=c.MenuList,v=c.MenuPortal,y=c.LoadingMessage,b=c.NoOptionsMessage,_=c.Option,E=this.commonProps,C=this.state.focusedOption,T=this.props,x=T.captureMenuScroll,L=T.inputValue,U=T.isLoading,R=T.loadingMessage,O=T.minMenuHeight,G=T.maxMenuHeight,N=T.menuIsOpen,Y=T.menuPlacement,ee=T.menuPosition,$=T.menuPortalTarget,Q=T.menuShouldBlockScroll,ie=T.menuShouldScrollIntoView,ne=T.noOptionsMessage,be=T.onMenuScrollToTop,we=T.onMenuScrollToBottom;if(!N)return null;var H=function(te,ae){var de=te.type,fe=te.data,_e=te.isDisabled,ze=te.isSelected,Le=te.label,Ut=te.value,wt=C===fe,on=_e?void 0:function(){return s.onOptionHover(fe)},xn=_e?void 0:function(){return s.selectOption(fe)},xt="".concat(s.getElementId("option"),"-").concat(ae),Ta={id:xt,onClick:xn,onMouseMove:on,onMouseOver:on,tabIndex:-1,role:"option","aria-selected":s.state.isAppleDevice?void 0:ze};return A.createElement(_,Se({},E,{innerProps:Ta,data:fe,isDisabled:_e,isSelected:ze,key:xt,label:Le,type:de,value:Ut,isFocused:wt,innerRef:wt?s.getFocusedOptionRef:void 0}),s.formatOptionLabel(te.data,"menu"))},K;if(this.hasOptions())K=this.getCategorizedOptions().map(function(P){if(P.type==="group"){var te=P.data,ae=P.options,de=P.index,fe="".concat(s.getElementId("group"),"-").concat(de),_e="".concat(fe,"-heading");return A.createElement(d,Se({},E,{key:fe,data:te,options:ae,Heading:p,headingProps:{id:_e,data:P.data},label:s.formatGroupLabel(P.data)}),P.options.map(function(ze){return H(ze,"".concat(de,"-").concat(ze.index))}))}else if(P.type==="option")return H(P,"".concat(P.index))});else if(U){var re=R({inputValue:L});if(re===null)return null;K=A.createElement(y,E,re)}else{var pe=ne({inputValue:L});if(pe===null)return null;K=A.createElement(b,E,pe)}var ye={minMenuHeight:O,maxMenuHeight:G,menuPlacement:Y,menuPosition:ee,menuShouldScrollIntoView:ie},M=A.createElement(UE,Se({},E,ye),function(P){var te=P.ref,ae=P.placerProps,de=ae.placement,fe=ae.maxHeight;return A.createElement(m,Se({},E,ye,{innerRef:te,innerProps:{onMouseDown:s.onMenuMouseDown,onMouseMove:s.onMenuMouseMove},isLoading:U,placement:de}),A.createElement(fO,{captureEnabled:x,onTopArrive:be,onBottomArrive:we,lockEnabled:Q},function(_e){return A.createElement(h,Se({},E,{innerRef:function(Le){s.getMenuListRef(Le),_e(Le)},innerProps:{role:"listbox","aria-multiselectable":E.isMulti,id:s.getElementId("listbox")},isLoading:U,maxHeight:fe,focusedOption:C}),K)}))});return $||ee==="fixed"?A.createElement(v,Se({},E,{appendTo:$,controlElement:this.controlRef,menuPlacement:Y,menuPosition:ee}),M):M}},{key:"renderFormField",value:function(){var s=this,c=this.props,d=c.delimiter,p=c.isDisabled,m=c.isMulti,h=c.name,v=c.required,y=this.state.selectValue;if(v&&!this.hasValue()&&!p)return A.createElement(mO,{name:h,onFocus:this.onValueInputFocus});if(!(!h||p))if(m)if(d){var b=y.map(function(C){return s.getOptionValue(C)}).join(d);return A.createElement("input",{name:h,type:"hidden",value:b})}else{var _=y.length>0?y.map(function(C,T){return A.createElement("input",{key:"i-".concat(T),name:h,type:"hidden",value:s.getOptionValue(C)})}):A.createElement("input",{name:h,type:"hidden",value:""});return A.createElement("div",null,_)}else{var E=y[0]?this.getOptionValue(y[0]):"";return A.createElement("input",{name:h,type:"hidden",value:E})}}},{key:"renderLiveRegion",value:function(){var s=this.commonProps,c=this.state,d=c.ariaSelection,p=c.focusedOption,m=c.focusedValue,h=c.isFocused,v=c.selectValue,y=this.getFocusableOptions();return A.createElement(JC,Se({},s,{id:this.getElementId("live-region"),ariaSelection:d,focusedOption:p,focusedValue:m,isFocused:h,selectValue:v,focusableOptions:y,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var s=this.getComponents(),c=s.Control,d=s.IndicatorsContainer,p=s.SelectContainer,m=s.ValueContainer,h=this.props,v=h.className,y=h.id,b=h.isDisabled,_=h.menuIsOpen,E=this.state.isFocused,C=this.commonProps=this.getCommonProps();return A.createElement(p,Se({},C,{className:v,innerProps:{id:y,onKeyDown:this.onKeyDown},isDisabled:b,isFocused:E}),this.renderLiveRegion(),A.createElement(c,Se({},C,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:b,isFocused:E,menuIsOpen:_}),A.createElement(m,Se({},C,{isDisabled:b}),this.renderPlaceholderOrValue(),this.renderInput()),A.createElement(d,Se({},C,{isDisabled:b}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(s,c){var d=c.prevProps,p=c.clearFocusValueOnUpdate,m=c.inputIsHiddenAfterUpdate,h=c.ariaSelection,v=c.isFocused,y=c.prevWasFocused,b=c.instancePrefix,_=s.options,E=s.value,C=s.menuIsOpen,T=s.inputValue,x=s.isMulti,L=Jv(E),U={};if(d&&(E!==d.value||_!==d.options||C!==d.menuIsOpen||T!==d.inputValue)){var R=C?DO(s,L):[],O=C?my(as(s,L),"".concat(b,"-option")):[],G=p?MO(c,L):null,N=jO(c,R),Y=bf(O,N);U={selectValue:L,focusedOption:N,focusedOptionId:Y,focusableOptionsWithIds:O,focusedValue:G,clearFocusValueOnUpdate:!1}}var ee=m!=null&&s!==d?{inputIsHidden:m,inputIsHiddenAfterUpdate:void 0}:{},$=h,Q=v&&y;return v&&!Q&&($={value:Fu(x,L,L[0]||null),options:L,action:"initial-input-focus"},Q=!y),h?.action==="initial-input-focus"&&($=null),ve(ve(ve({},U),ee),{},{prevProps:s,ariaSelection:$,prevWasFocused:Q})}}]),i})(A.Component);kg.defaultProps=RO;var NO=A.forwardRef(function(a,n){var i=KS(a);return A.createElement(kg,Se({ref:n},i))}),zO=NO,Qe=function(){return Qe=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},Qe.apply(this,arguments)},qO=function(a,n){var i={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&n.indexOf(u)<0&&(i[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(a);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(a,u[s])&&(i[u[s]]=a[u[s]]);return i},UO=function(a){return Qe(Qe({},a),{borderRadius:0,colors:Qe(Qe({},a.colors),{primary25:"var(--semi-transparent-accent-color)",neutral10:"var(--border-color)",neutral20:"var(--border-color)",primary:"var(--accent-color)",neutral30:"var(--darker-border-color)"})})},HO=function(a,n){return A.useMemo(function(){return{placeholder:function(i){return Qe(Qe({},i),{color:"var(--placeholder-body-color)"})},container:function(i){return Qe(Qe({},i),{fontSize:"inherit"})},control:function(i,u){var s=u.isFocused,c=i;return c=Qe(Qe({},c),{minHeight:40}),s?Qe(Qe({},c),{borderColor:n?"var(--alert-color)":"var(--accent-color)",backgroundColor:a?"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)"}}):Qe(Qe({},c),{borderColor:n?"var(--alert-color)":"var(--border-color)",backgroundColor:a?"var(--disabled-color)":"white","&:hover":{borderColor:n?"var(--alert-color)":"var(--darker-border-color)"}})},multiValueRemove:function(i){return Qe(Qe({},i),{cursor:"pointer"})},menu:function(i){return Qe(Qe({},i),{zIndex:1e3,minWidth:250})},input:function(i){var u=Qe(Qe({},i),{boxShadow:"none","input:focus":{boxShadow:"none"}});return u},multiValue:function(i){return Qe(Qe({},i),{zIndex:100,backgroundColor:"var(--light-color)",userSelect:"none"})},multiValueLabel:function(i){return Qe(Qe({},i),{fontSize:"inherit",padding:3})}}},[a,n])};function VO(a){var n=a.isDisabled,i=a.error,u=qO(a,["isDisabled","error"]),s=HO(n,i);return le.createElement(zO,Qe({},u,{isDisabled:n,theme:UO,styles:s}))}const BO="_Spinner__bar_oumod_13",_f={"Spinner--inline":"_Spinner--inline_oumod_1","Spinner--centered":"_Spinner--centered_oumod_7",Spinner__bar:BO};var bs=function(){return bs=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},bs.apply(this,arguments)};function $g(a){for(var n,i=a.size,u=i===void 0?32:i,s=a.placement,c=s===void 0?"inline":s,d=a.style,p=d===void 0?{}:d,m=[],h=0;h<12;h+=1){var v={};v.animationDelay="".concat((h-12)/10,"s"),v.transform="rotate(".concat(h*30,"deg) translate(146%)"),m.push(le.createElement("div",{style:v,className:_f.Spinner__bar,key:h}))}var y={width:u*.5,height:u*.5};return c==="inline"&&(y.marginLeft=u*.5,y.transform="translateY(33%)"),le.createElement("div",{className:sn((n={},n[_f["Spinner--inline"]]=c==="inline",n[_f["Spinner--centered"]]=c==="centered",n)),style:bs(bs({},p),y)},m)}const GO="_switchField__flex_16z4j_1",kO="_switchField__switchInput_16z4j_6",$O="_switchField__label_16z4j_10",PO="_switchField__below_16z4j_22",Yu={switchField__flex:GO,switchField__switchInput:kO,switchField__label:$O,switchField__below:PO};var _s=function(){return _s=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},_s.apply(this,arguments)};function Ss(a){var n=a.id,i=a.name,u=a.label,s=a.hint,c=a.error,d=a.required,p=a.formLabelProps,m=a.value,h=a.onChange,v=a.switchInputProps;return le.createElement(le.Fragment,null,le.createElement("div",{className:Yu.switchField__flex},le.createElement("div",{className:Yu.switchField__switchInput},le.createElement(ZO,_s({},v,{name:i,value:m,onChange:h}))),le.createElement(eg,_s({},p,{htmlFor:n,required:d,className:sn(Yu.switchField__label,p?.className),error:!!c}),u)),(s||c)&&le.createElement("div",{className:Yu.switchField__below},c&&le.createElement(Zy,null,c),s&&le.createElement(Wy,null,s)))}const IO="_switchInput__inner_1knbg_1",FO="_switchInput_1knbg_1",YO="_switchInput__checked_1knbg_47",XO="_switchInput__disabled_1knbg_60",Xu={switchInput__inner:IO,switchInput:FO,switchInput__checked:YO,switchInput__disabled:XO};var $f=function(){return $f=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},$f.apply(this,arguments)},QO=function(a,n){var i={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&n.indexOf(u)<0&&(i[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(a);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(a,u[s])&&(i[u[s]]=a[u[s]]);return i};function ZO(a){var n,i=a.className,u=a.value,s=a.disabled,c=a.onClick,d=a.onChange,p=a.onKeyDown,m=QO(a,["className","value","disabled","onClick","onChange","onKeyDown"]);function h(_,E){!s&&d&&d(_,E)}function v(_){_.key==="ArrowLeft"?h(!1,_):_.key==="ArrowRight"&&h(!0,_),p?.(_)}function y(_){h(!u,_),c?.(_)}var b=sn(Xu.switchInput,i,(n={},n[Xu.switchInput__checked]=u,n[Xu.switchInput__disabled]=s,n));return le.createElement("button",$f({},m,{type:"button",role:"switch","aria-checked":u,disabled:s,className:b,onKeyDown:v,onClick:y}),le.createElement("span",{className:Xu.switchInput__inner}))}var Pf=function(){return Pf=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},Pf.apply(this,arguments)};function Vr(a){var n=a.id,i=a.name,u=a.label,s=a.hint,c=a.error,d=a.required,p=a.placeholder,m=a.formLabelProps,h=a.value,v=a.onChange,y=a.textInputProps;return le.createElement(Ky,{formLabelProps:m,id:n,required:d,error:c,hint:s,label:u},le.createElement(JO,Pf({},y,{id:n,name:i,value:h,placeholder:p,onChange:v,error:!!c})))}const WO="_TextInput_x2oj2_1",Qu={TextInput:WO,"TextInput--monospaced":"_TextInput--monospaced_x2oj2_30","TextInput--disabled":"_TextInput--disabled_x2oj2_35","TextInput--error":"_TextInput--error_x2oj2_41"};var If=function(){return If=Object.assign||function(a){for(var n,i=1,u=arguments.length;i<u;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])}return a},If.apply(this,arguments)},KO=function(a,n){var i={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&n.indexOf(u)<0&&(i[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(a);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(a,u[s])&&(i[u[s]]=a[u[s]]);return i},JO=function(a){var n,i=a.className,u=a.disabled,s=u===void 0?!1:u,c=a.error,d=a.id,p=a.inputRef,m=a.maxLength,h=a.name,v=a.labelText,y=a.onBlur,b=a.onChange,_=a.placeholder,E=a.required,C=E===void 0?!1:E,T=a.type,x=a.value,L=a.monospaced,U=KO(a,["className","disabled","error","id","inputRef","maxLength","name","labelText","onBlur","onChange","placeholder","required","type","value","monospaced"]),R=A.useCallback(function(G){b&&b(G.target.value,G)},[b]),O=sn(Qu.TextInput,i,(n={},n[Qu["TextInput--disabled"]]=s,n[Qu["TextInput--error"]]=c,n[Qu["TextInput--monospaced"]]=L,n));return le.createElement("input",If({className:O,"aria-label":v,id:d,name:h,required:C,placeholder:_,maxLength:m,disabled:s,onBlur:y,onChange:R,value:x,type:T,ref:p},U))};const Cn=1,On=1e4;function Jr(a){return a==="original"||typeof a=="number"&&!Number.isNaN(a)}function Rs(a){return Number.isFinite(a)&&a>=Cn&&a<=On}function Wr(a){const n=a.trim();if(!n)return null;const i=Number(n);return Number.isFinite(i)?i:null}function un(a){const n=a.trim();if(!n)return"Please enter a custom width";const i=Number(n);if(!Number.isFinite(i))return"Width must be a number";if(!Rs(i))return`Width must be between ${Cn} and ${On}`}function vy(a){if(!Array.isArray(a))return[];const n=new Set,i=[];for(const u of a){if(!u||typeof u!="object")continue;const s=u,c=typeof s.label=="string"?s.label.trim():"",d=typeof s.value=="number"?s.value:Number(s.value);c&&Rs(d)&&(n.has(d)||(n.add(d),i.push({value:d,label:c})))}return i}function pd(a=[],n=!0){const i=new Set(a.map(p=>p.value)),u=Gy.filter(p=>p.value==="original"?n:!i.has(p.value)),s=u.find(p=>p.value==="original"),c=u.filter(p=>p.value!=="original"),d=a.map(p=>({value:p.value,label:p.label}));return[...s?[s]:[],...d,...c]}function Ds(a,n){return a==="original"?n??null:a}function Ms(a,n=Gy){const i=n.find(u=>u.value===a);return i?i.label:typeof a=="number"?`${a}px`:"Original"}function Ff(a){const n=Tn.find(u=>u.value===a);if(n&&n.ratio!==null)return n.ratio;const i=a.match(/^(\d+(?:\.\d+)?)[:/](\d+(?:\.\d+)?)$/);if(i){const u=parseFloat(i[1]),s=parseFloat(i[2]);if(s>0)return u/s}return null}function eT(a,n){return Math.round(a/n)}function js(a,n){const i=eT(a,n);return`${a} × ${i} px`}function Ca(a){if(!a)return"Please enter a custom aspect ratio";const n=Ff(a);if(n===null||n<=0)return"Invalid format. Use W:H (e.g., 2.35:1)"}function Oa(a,n,i,u){return a==="original"?i&&u&&u>0?i/u:null:a==="custom"?n?Ff(n):null:Ff(a)}function Ls(a,n,i,u,s){const c=Oa(n,i,u,s),d=Ds(a,u);return d&&c&&c>0?Math.round(d/c):d||(a==="original"&&s?s:0)}function Pg(a){return a&&a.paramsVersion==="1"&&typeof a.defaultAspectRatio=="string"&&Jr(a.defaultWidth)&&Array.isArray(a.widthPresets)}function Ns(a){return Pg(a)?{...a,widthPresets:vy(a.widthPresets)}:{paramsVersion:"1",defaultAspectRatio:typeof a?.defaultAspectRatio=="string"?a.defaultAspectRatio:us,defaultWidth:Jr(a?.defaultWidth)?a.defaultWidth:St,widthPresets:vy(a?.widthPresets)}}function tT(a){if(!a||typeof a!="object")return!1;const n=a;return typeof n.columns=="number"&&typeof n.rows=="number"&&(n.layoutStyle===void 0||n.layoutStyle==="grid"||n.layoutStyle==="masonry")&&(n.layoutAspectRatio===void 0||typeof n.layoutAspectRatio=="string")&&(n.layoutCustomAspectRatio===void 0||typeof n.layoutCustomAspectRatio=="string")&&(n.layoutWidth===void 0||typeof n.layoutWidth=="number")&&Array.isArray(n.slots)&&n.slots.every(i=>i&&typeof i=="object"&&typeof i.id=="string"&&typeof i.label=="string"&&typeof i.aspectRatio=="string"&&Jr(i.width)&&typeof i.row=="number"&&typeof i.col=="number"&&(i.rowSpan===void 0||typeof i.rowSpan=="number")&&(i.colSpan===void 0||typeof i.colSpan=="number")&&(i.autoSpan===void 0||typeof i.autoSpan=="boolean")&&typeof i.required=="boolean")}function Ig(a){const n=typeof a.enableCssClass=="boolean"?a.enableCssClass:!1,i=typeof a.enableLazyLoading=="boolean"?a.enableLazyLoading:!1;if(a.mode==="layout"){const s=a.layoutConfig;return{mode:"layout",layoutConfig:aT(s),enableCssClass:n,enableLazyLoading:i}}const u=a;return{mode:u.mode==="multiple"?"multiple":"single",aspectRatio:typeof u.overrideDefaultAspectRatio=="string"?u.overrideDefaultAspectRatio:null,width:Jr(u.overrideDefaultWidth)?u.overrideDefaultWidth:null,enableCssClass:n,enableLazyLoading:i}}function Yf(){return{columns:ky,rows:$y,slots:[],layoutStyle:"grid"}}function nT(a,n,i,u){const s=a&&typeof a=="object"?a:{},c=typeof s.rowSpan=="number"&&s.rowSpan>0?s.rowSpan:1,d=typeof s.colSpan=="number"&&s.colSpan>0?s.colSpan:1,p=typeof s.row=="number"?s.row:0,m=typeof s.col=="number"?s.col:0,h=typeof s.autoSpan=="boolean"?s.autoSpan:!1,v=Jr(s.width)?s.width:St,y={id:typeof s.id=="string"?s.id:`slot-${u+1}`,label:typeof s.label=="string"?s.label:`Slot ${u+1}`,aspectRatio:typeof s.aspectRatio=="string"?s.aspectRatio:us,width:v,row:p,col:m,rowSpan:Math.min(c,Math.max(1,n-p)),colSpan:Math.min(d,Math.max(1,i-m)),autoSpan:h,required:typeof s.required=="boolean"?s.required:!1};return typeof s.customAspectRatio=="string"&&(y.customAspectRatio=s.customAspectRatio),y}function aT(a){if(!a)return Yf();const n=typeof a.columns=="number"?a.columns:ky,i=typeof a.rows=="number"?a.rows:$y,u=a.layoutStyle==="masonry"?"masonry":"grid",s=typeof a.layoutAspectRatio=="string"?a.layoutAspectRatio:void 0,c=typeof a.layoutCustomAspectRatio=="string"?a.layoutCustomAspectRatio:void 0,d=typeof a.layoutWidth=="number"?a.layoutWidth:void 0,p=Array.isArray(a.slots)?a.slots.map((m,h)=>nT(m,i,n,h)):[];return{columns:n,rows:i,slots:p,layoutStyle:u,layoutAspectRatio:s,layoutCustomAspectRatio:c,layoutWidth:d}}function rT(a,n){return a.mode==="layout"?{aspectRatio:n.defaultAspectRatio,width:n.defaultWidth}:{aspectRatio:a.aspectRatio??n.defaultAspectRatio,width:a.width??n.defaultWidth}}const iT="_presetsSection_6fwws_1",lT="_presetsHeader_6fwws_8",uT="_presetsTitle_6fwws_15",sT="_presetsHint_6fwws_21",oT="_presetsEmpty_6fwws_26",cT="_presetsList_6fwws_31",fT="_presetRow_6fwws_37",dT="_presetFields_6fwws_43",hT="_removePresetButton_6fwws_50",Fn={presetsSection:iT,presetsHeader:lT,presetsTitle:uT,presetsHint:sT,presetsEmpty:oT,presetsList:cT,presetRow:fT,presetFields:dT,removePresetButton:hT};function mT({ctx:a}){const[n,i]=A.useState(()=>Ns(a.plugin.attributes.parameters)),u=A.useCallback(($,Q)=>{const ie={...n,[$]:Q};i(ie),a.updatePluginParameters(ie)},[n,a]),s=Tn.filter($=>$.value!=="custom").map($=>({value:$.value,label:$.label})),c=[...s,{value:"custom",label:"Custom..."}],d=s.map($=>$.value),p=n.defaultAspectRatio==="custom"||!d.includes(n.defaultAspectRatio),m=n.defaultAspectRatio==="custom"?"":p?n.defaultAspectRatio:"",h=p?Ca(m):void 0,v=A.useMemo(()=>pd(n.widthPresets),[n.widthPresets]),y=A.useMemo(()=>[...v,{value:"custom",label:"Custom..."}],[v]),b=A.useMemo(()=>v.map($=>$.value),[v]),_=typeof n.defaultWidth=="number"&&!b.includes(n.defaultWidth),[E,C]=A.useState(_),[T,x]=A.useState(_?String(n.defaultWidth):""),L=E?un(T):void 0;A.useEffect(()=>{if(typeof n.defaultWidth=="number"&&!b.includes(n.defaultWidth)){C(!0),x(String(n.defaultWidth));return}C(!1),x("")},[n.defaultWidth,b]);const U=c.find($=>$.value===(p?"custom":n.defaultAspectRatio)),R=y.find($=>$.value===(E?"custom":n.defaultWidth)),[O,G]=A.useState(()=>n.widthPresets.map(($,Q)=>({id:`preset-init-${Q}-${Date.now()}`,label:$.label,width:String($.value)})));A.useEffect(()=>{G($=>n.widthPresets.map((Q,ie)=>({id:$[ie]?.id??`preset-sync-${ie}-${Date.now()}`,label:Q.label,width:String(Q.value)})))},[n.widthPresets]);const N=A.useCallback(($,Q)=>{G(K=>K.map((pe,ye)=>ye===$?{...pe,...Q}:pe));const ie={...O[$],...Q},ne=ie.label.trim(),be=un(ie.width),we=Wr(ie.width);if(!ne||be||we===null)return;const H=n.widthPresets.map((K,re)=>re===$?{...K,label:ne,value:we}:K);u("widthPresets",H)},[n.widthPresets,O,u]),Y=A.useCallback(()=>{const $={label:`Preset ${n.widthPresets.length+1}`,value:St},Q=[...n.widthPresets,$];G(ie=>[...ie,{id:`preset-new-${Date.now()}`,label:$.label,width:String($.value)}]),u("widthPresets",Q)},[n.widthPresets,u]),ee=A.useCallback($=>{const Q=n.widthPresets.filter((ie,ne)=>ne!==$);G(ie=>ie.filter((ne,be)=>be!==$)),u("widthPresets",Q)},[n.widthPresets,u]);return w.jsx(os,{ctx:a,children:w.jsxs(Jy,{children:[w.jsx(rl,{id:"defaultAspectRatio",name:"defaultAspectRatio",label:"Default Aspect Ratio",hint:"The default aspect ratio for new assets",selectInputProps:{options:c},value:U,onChange:$=>{$&&"value"in $&&($.value==="custom"?u("defaultAspectRatio",m||""):u("defaultAspectRatio",$.value))}}),p&&w.jsx(Vr,{id:"defaultCustomAspectRatio",name:"defaultCustomAspectRatio",label:"Custom Aspect Ratio",hint:"Use W:H (e.g., 2.35:1)",placeholder:"2.35:1",value:m,onChange:$=>u("defaultAspectRatio",$),error:h}),w.jsx(rl,{id:"defaultWidth",name:"defaultWidth",label:"Default Width",hint:"The default width for new assets",selectInputProps:{options:y},value:R,onChange:$=>{if($&&"value"in $)if($.value==="custom"){const Q=typeof n.defaultWidth=="number"?n.defaultWidth:St;C(!0),x(String(Q)),u("defaultWidth",Q)}else C(!1),x(""),u("defaultWidth",$.value)}}),E&&w.jsx(Vr,{id:"defaultCustomWidth",name:"defaultCustomWidth",label:"Custom Width",hint:`Pixels (${Cn}–${On})`,placeholder:String(St),value:T,onChange:$=>{x($);const Q=Wr($);Q!==null&&!un($)&&u("defaultWidth",Q)},error:L,textInputProps:{type:"number",min:Cn,max:On}}),w.jsxs("div",{className:Fn.presetsSection,children:[w.jsxs("div",{className:Fn.presetsHeader,children:[w.jsxs("div",{children:[w.jsx("div",{className:Fn.presetsTitle,children:"Width presets"}),w.jsx("div",{className:Fn.presetsHint,children:"Add custom width options to guide editors with named sizes."})]}),w.jsx(ed,{type:"button",buttonSize:"xs",buttonType:"muted",onClick:Y,children:"+ Add preset"})]}),O.length===0?w.jsx("div",{className:Fn.presetsEmpty,children:"No custom presets yet."}):w.jsx("div",{className:Fn.presetsList,children:O.map(($,Q)=>{const ie=$.label.trim()?void 0:"Label is required",ne=un($.width);return w.jsxs("div",{className:Fn.presetRow,children:[w.jsxs("div",{className:Fn.presetFields,children:[w.jsx(Vr,{id:`preset-label-${Q}`,name:`preset-label-${Q}`,label:"Label",placeholder:"e.g., Hero image",value:$.label,onChange:be=>N(Q,{label:be}),error:ie}),w.jsx(Vr,{id:`preset-width-${Q}`,name:`preset-width-${Q}`,label:"Width (px)",placeholder:String(St),value:$.width,onChange:be=>N(Q,{width:be}),error:ne,textInputProps:{type:"number",min:Cn,max:On}})]}),w.jsx("button",{type:"button",className:Fn.removePresetButton,onClick:()=>ee(Q),children:"Remove"})]},$.id)})})]})]})})}const pT="_container_169u9_1",vT="_toolbar_169u9_7",yT="_gridControls_169u9_14",gT="_layoutControls_169u9_20",bT="_controlGroupColumn_169u9_27",_T="_controlGroup_169u9_27",ST="_controlLabel_169u9_40",wT="_controlSelect_169u9_46",ET="_controlInput_169u9_56",CT="_inputError_169u9_75",OT="_errorText_169u9_79",TT="_gridInfo_169u9_84",xT="_layoutMeta_169u9_92",AT="_toolbarRow_169u9_98",RT="_addSlotButton_169u9_103",DT="_gridPreview_169u9_121",MT="_grid_169u9_14",jT="_slotItem_169u9_157",LT="_isSelected_169u9_177",NT="_isDragging_169u9_183",zT="_isDragOver_169u9_189",qT="_isRequired_169u9_196",UT="_slotPreview_169u9_207",HT="_previewContent_169u9_220",VT="_ratioFrame_169u9_235",BT="_ratioShape_169u9_245",GT="_dragHandle_169u9_253",kT="_slotLabel_169u9_286",$T="_slotMeta_169u9_294",PT="_slotOverlay_169u9_301",IT="_overlayButton_169u9_321",FT="_danger_169u9_340",YT="_editPanel_169u9_350",XT="_editPanelHeader_169u9_359",QT="_editPanelTitle_169u9_368",ZT="_closeButton_169u9_374",WT="_editPanelForm_169u9_398",KT="_formRow_169u9_404",JT="_formField_169u9_409",e2="_formLabel_169u9_416",t2="_formInput_169u9_424",n2="_formSelect_169u9_439",a2="_formCheckbox_169u9_454",r2="_formHint_169u9_472",i2="_emptyCell_169u9_512",l2="_addCellButton_169u9_536",J={container:pT,toolbar:vT,gridControls:yT,layoutControls:gT,controlGroupColumn:bT,controlGroup:_T,controlLabel:ST,controlSelect:wT,controlInput:ET,inputError:CT,errorText:OT,gridInfo:TT,layoutMeta:xT,toolbarRow:AT,addSlotButton:RT,gridPreview:DT,grid:MT,slotItem:jT,isSelected:LT,isDragging:NT,isDragOver:zT,isRequired:qT,slotPreview:UT,previewContent:HT,ratioFrame:VT,ratioShape:BT,dragHandle:GT,slotLabel:kT,slotMeta:$T,slotOverlay:PT,overlayButton:IT,danger:FT,editPanel:YT,editPanelHeader:XT,editPanelTitle:QT,closeButton:ZT,editPanelForm:WT,formRow:KT,formField:JT,formLabel:e2,formInput:t2,formSelect:n2,formCheckbox:a2,formHint:r2,emptyCell:i2,addCellButton:l2};function u2({slot:a,widthOptions:n,isSelected:i,isDragging:u,isDragOver:s,style:c,showRatioFrame:d=!0,onSelect:p,onDelete:m,onDragStart:h,onDragEnd:v,onDragOver:y,onDragLeave:b,onDrop:_}){const C=Tn.find(Y=>Y.value===a.aspectRatio)?.label.split(" ")[0]||a.aspectRatio,T=Oa(a.aspectRatio,a.customAspectRatio)??1,x=T>0?T:1,L=Ds(a.width),U=T&&T>0&&L?js(L,T):Ms(a.width,n),R=x>=1?{aspectRatio:String(x),width:"100%",height:"auto"}:{aspectRatio:String(x),width:"auto",height:"100%"},O=[J.slotItem,i&&J.isSelected,a.required&&J.isRequired,u&&J.isDragging,s&&J.isDragOver].filter(Boolean).join(" "),G=Y=>{Y.stopPropagation(),m()},N=Y=>{Y.stopPropagation(),p()};return w.jsxs("div",{className:O,style:c,onClick:p,draggable:!0,onDragStart:h,onDragEnd:v,onDragOver:y,onDragLeave:b,onDrop:_,children:[w.jsxs("div",{className:J.slotPreview,children:[d&&w.jsx("div",{className:J.ratioFrame,children:w.jsx("div",{className:J.ratioShape,style:R})}),w.jsx("div",{className:J.dragHandle,children:w.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:[w.jsx("circle",{cx:"9",cy:"6",r:"1.5"}),w.jsx("circle",{cx:"15",cy:"6",r:"1.5"}),w.jsx("circle",{cx:"9",cy:"12",r:"1.5"}),w.jsx("circle",{cx:"15",cy:"12",r:"1.5"}),w.jsx("circle",{cx:"9",cy:"18",r:"1.5"}),w.jsx("circle",{cx:"15",cy:"18",r:"1.5"})]})}),w.jsxs("div",{className:J.previewContent,children:[w.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[w.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),w.jsx("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),w.jsx("polyline",{points:"21 15 16 10 5 21"})]}),w.jsx("span",{className:J.slotLabel,children:a.label||"Untitled"}),w.jsxs("span",{className:J.slotMeta,children:[C," · ",U]})]})]}),w.jsxs("div",{className:J.slotOverlay,children:[w.jsx("button",{type:"button",className:J.overlayButton,onClick:N,title:"Edit slot",children:w.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[w.jsx("path",{d:"M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"}),w.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),w.jsx("button",{type:"button",className:`${J.overlayButton} ${J.danger}`,onClick:G,title:"Delete slot",children:w.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:w.jsx("path",{d:"M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"})})})]})]})}function yy(){return`slot-${Date.now()}-${Math.random().toString(36).slice(2,7)}`}function s2(a,n){return!n||a.error<n.error-.001?!0:Math.abs(a.error-n.error)<=.001&&a.area<n.area}function o2(a,n,i,u,s,c,d){let p=null;for(let m=1;m<=s;m++)for(let h=1;h<=c;h++){if(!n(a,i,u,m,h))continue;const v=h/m,y=Math.abs(v-d),b=m*h,_={rowSpan:m,colSpan:h,error:y,area:b};s2(_,p)&&(p=_)}return p}function c2(a,n,i,u,s,c,d,p){for(let m=i;m<i+s;m++)for(let h=u;h<u+c;h++)m>=0&&m<d&&h>=0&&h<p&&(a[m][h]=n)}function f2(a,n,i,u,s,c,d){const p=[];for(let h=1;h<=c;h++)n(a,i.row,i.col,h,s)&&p.push(h);const m=[];for(let h=1;h<=d;h++)n(a,i.row,i.col,u,h)&&m.push(h);return p.includes(u)||p.unshift(u),m.includes(s)||m.unshift(s),{rowOptions:p,colOptions:m}}function d2(a,n,i){const u=[...a],s=u.findIndex(d=>d.id===n),c=u.findIndex(d=>d.id===i);if(s>=0&&c>=0&&s!==c){const[d]=u.splice(s,1),p=s<c?c-1:c;u.splice(p,0,d)}return u}function h2(a,n,i,u,s){return a.map(c=>c.id===n?{...c,row:s.row,col:s.col}:c.id===i?{...c,row:u.row,col:u.col}:c)}const Fg=8;function m2({config:a,layoutAspectRatioOptions:n,layoutAspectRatioSelection:i,layoutCustomAspectRatioValue:u,layoutCustomAspectRatioError:s,layoutWidthOptions:c,layoutWidthSelection:d,layoutCustomWidthActive:p,layoutCustomWidthInput:m,layoutCustomWidthError:h,layoutDimensions:v,onChange:y,onLayoutAspectRatioChange:b,onLayoutWidthChange:_,onLayoutCustomWidthInputChange:E}){return w.jsxs("div",{className:J.layoutControls,children:[w.jsxs("div",{className:J.controlGroup,children:[w.jsx("span",{className:J.controlLabel,children:"Layout AR:"}),w.jsx("select",{value:i,onChange:C=>b(C.target.value),className:J.controlSelect,children:n.map(C=>w.jsx("option",{value:C.value,children:C.label},C.value))})]}),i==="custom"&&w.jsxs("div",{className:J.controlGroupColumn,children:[w.jsxs("div",{className:J.controlGroup,children:[w.jsx("span",{className:J.controlLabel,children:"Custom AR:"}),w.jsx("input",{type:"text",className:s?`${J.controlInput} ${J.inputError}`:J.controlInput,value:u,placeholder:"2.35:1",onChange:C=>y({...a,layoutAspectRatio:"custom",layoutCustomAspectRatio:C.target.value})})]}),s&&w.jsx("span",{className:J.errorText,children:s})]}),w.jsxs("div",{className:J.controlGroup,children:[w.jsx("span",{className:J.controlLabel,children:"Layout width:"}),w.jsxs("select",{value:d,onChange:C=>_(C.target.value),className:J.controlSelect,children:[w.jsx("option",{value:"auto",children:"Auto"}),c.map(C=>w.jsx("option",{value:C.value,children:C.label},C.value))]})]}),p&&w.jsxs("div",{className:J.controlGroupColumn,children:[w.jsxs("div",{className:J.controlGroup,children:[w.jsx("span",{className:J.controlLabel,children:"Custom width:"}),w.jsx("input",{type:"number",min:Cn,max:On,className:h?`${J.controlInput} ${J.inputError}`:J.controlInput,value:m,placeholder:String(St),onChange:C=>E(C.target.value)})]}),h&&w.jsx("span",{className:J.errorText,children:h})]}),v&&w.jsxs("div",{className:J.layoutMeta,children:["Layout size: ",v]})]})}function p2(a,n){const i=`repeat(${a.columns}, minmax(0, 1fr))`;return n?{gridTemplateColumns:i,gridAutoRows:`${Fg}px`}:{gridTemplateColumns:i,gridTemplateRows:`repeat(${a.rows}, minmax(0, 1fr))`}}function v2(a,n){return n?`${a.slots.length} slots`:`${a.slots.length} / ${a.rows*a.columns} slots`}function y2(a){if(!a.layoutAspectRatio||!a.layoutWidth)return null;const n=Oa(a.layoutAspectRatio,a.layoutCustomAspectRatio);return n?js(a.layoutWidth,n):null}function g2(a,n,i,u,s,c){return n?{gridColumn:`span ${s}`,gridRow:`span ${c}`}:{gridColumn:`${a.col+1} / span ${i}`,gridRow:`${a.row+1} / span ${u}`}}function b2(a,n,i,u){return n?i===a.id:u?.row===a.row&&u?.col===a.col}function _2(a,n,i){if(n!=="grid"){i({...a,layoutStyle:n});return}const{columns:u,rows:s}=a,c=u*s,d=a.slots.slice(0,c).map((p,m)=>{const h=Math.floor(m/u),v=m%u;return{...p,row:h,col:v,rowSpan:1,colSpan:1,autoSpan:!1}});i({...a,layoutStyle:n,slots:d})}function S2(a,n,i,u){if(n==="auto"){u({...a,layoutAspectRatio:void 0,layoutCustomAspectRatio:void 0});return}if(n==="custom"){u({...a,layoutAspectRatio:"custom",layoutCustomAspectRatio:i||""});return}u({...a,layoutAspectRatio:n,layoutCustomAspectRatio:void 0})}function w2(a,n){return a?a==="custom"||!n.includes(a)?"custom":a:"auto"}function E2(a,n,i){return a?a==="custom"?n??"":i.includes(a)?"":a:""}function C2({config:a,layoutPresetWidthValues:n,onChange:i}){const u=typeof a.layoutWidth=="number"&&!n.includes(a.layoutWidth),[s,c]=A.useState(u),[d,p]=A.useState(u&&a.layoutWidth?String(a.layoutWidth):"");A.useEffect(()=>{if(u){c(!0),p(String(a.layoutWidth));return}a.layoutWidth===void 0&&(c(!1),p(""))},[a.layoutWidth,u]);const m=s?un(d):void 0,h=a.layoutWidth===void 0?"auto":s?"custom":String(a.layoutWidth),v=A.useCallback(b=>{if(b==="auto"){c(!1),p(""),i({...a,layoutWidth:void 0});return}if(b==="custom"){const _=typeof a.layoutWidth=="number"?a.layoutWidth:St;c(!0),p(String(_)),i({...a,layoutWidth:_});return}c(!1),p(""),i({...a,layoutWidth:Number(b)})},[a,i]),y=A.useCallback(b=>{p(b);const _=Wr(b);_!==null&&!un(b)&&i({...a,layoutWidth:_})},[a,i]);return{layoutCustomWidthActive:s,layoutCustomWidthInput:d,layoutCustomWidthError:m,layoutWidthSelection:h,handleLayoutWidthChange:v,handleLayoutCustomWidthInputChange:y}}function O2({config:a}){const n=A.useCallback((d,p,m)=>{const h=d.row,v=d.col,y=typeof d.rowSpan=="number"&&d.rowSpan>0?d.rowSpan:1,b=typeof d.colSpan=="number"&&d.colSpan>0?d.colSpan:1;return{...d,rowSpan:Math.min(y,Math.max(1,m-h)),colSpan:Math.min(b,Math.max(1,p-v))}},[]),i=A.useCallback(d=>{const p=typeof d.rowSpan=="number"&&d.rowSpan>0?d.rowSpan:1,m=typeof d.colSpan=="number"&&d.colSpan>0?d.colSpan:1;return{rowSpan:Math.min(p,Math.max(1,a.rows-d.row)),colSpan:Math.min(m,Math.max(1,a.columns-d.col))}},[a.columns,a.rows]),u=A.useCallback((d=[])=>{const p=Array.from({length:a.rows},()=>Array.from({length:a.columns},()=>null));for(const m of a.slots){if(d.includes(m.id))continue;const{rowSpan:h,colSpan:v}=i(m);c2(p,m.id,m.row,m.col,h,v,a.rows,a.columns)}return p},[a.columns,a.rows,a.slots,i]),s=A.useCallback((d,p,m,h,v)=>{if(p<0||m<0||p+h>a.rows||m+v>a.columns)return!1;for(let y=p;y<p+h;y++)for(let b=m;b<m+v;b++)if(d[y][b])return!1;return!0},[a.columns,a.rows]),c=A.useCallback(d=>{const p=Oa(d.aspectRatio,d.customAspectRatio)??null;if(!p||p<=0)return null;const m=u([d.id]),h=a.rows-d.row,v=a.columns-d.col,y=i(d),b=o2(m,s,d.row,d.col,h,v,p);return!b||b.rowSpan===y.rowSpan&&b.colSpan===y.colSpan?null:{rowSpan:b.rowSpan,colSpan:b.colSpan}},[u,s,a.columns,a.rows,i]);return{clampSlotToGrid:n,getSlotSpan:i,buildOccupancy:u,canPlaceAt:s,findBestSpanForSlot:c}}function T2({config:a,isMasonry:n,draggedSlotIdRef:i,getSlotSpan:u,buildOccupancy:s,canPlaceAt:c,onChange:d,setDraggedSlotId:p,setDragOverCell:m,setDragOverSlotId:h}){const v=A.useCallback(x=>L=>{p(x),i.current=x,L.dataTransfer.effectAllowed="move",L.dataTransfer.setData("text/plain",x)},[i,p]),y=A.useCallback(()=>{p(null),i.current=null,m(null),h(null)},[i,p,m,h]),b=A.useCallback((x,L,U)=>R=>{R.preventDefault(),R.dataTransfer.dropEffect="move";const O=i.current;if(!(!O||x===O)){if(n){h(x);return}m({row:L,col:U})}},[i,n,m,h]),_=A.useCallback((x,L)=>U=>{if(U.preventDefault(),U.dataTransfer.dropEffect="move",n)return;const R=i.current;if(!R)return;const O=a.slots.find(ee=>ee.id===R);if(!O)return;const{rowSpan:G,colSpan:N}=u(O),Y=s([O.id]);c(Y,x,L,G,N)&&m({row:x,col:L})},[s,c,a.slots,i,u,n,m]),E=A.useCallback(()=>{m(null),h(null)},[m,h]),C=A.useCallback(x=>L=>{L.preventDefault(),m(null);const U=i.current;if(!U||U===x){p(null),i.current=null;return}const R=a.slots.find(Q=>Q.id===U),O=a.slots.find(Q=>Q.id===x);if(!R||!O){p(null),i.current=null;return}if(n){const Q=d2(a.slots,U,x);d({...a,slots:Q}),p(null),i.current=null,h(null);return}const G=s([R.id,O.id]),N=u(R),Y=u(O),ee=c(G,O.row,O.col,N.rowSpan,N.colSpan),$=c(G,R.row,R.col,Y.rowSpan,Y.colSpan);if(ee&&$){const Q=h2(a.slots,U,x,R,O);d({...a,slots:Q})}p(null),i.current=null},[s,c,a,i,u,n,d,m,p,h]),T=A.useCallback((x,L)=>U=>{U.preventDefault(),m(null);const R=i.current;if(!R){p(null),i.current=null;return}if(n){p(null),i.current=null;return}const O=a.slots.find($=>$.id===R);if(!O){p(null),i.current=null;return}const{rowSpan:G,colSpan:N}=u(O),Y=s([O.id]);if(!c(Y,x,L,G,N)){p(null),i.current=null;return}const ee=a.slots.map($=>$.id===R?{...$,row:x,col:L}:$);d({...a,slots:ee}),p(null),i.current=null},[s,c,a,i,u,n,d,m,p]);return{handleDragStart:v,handleDragEnd:y,handleDragOverSlot:b,handleDragOverEmpty:_,handleDragLeave:E,handleDropOnSlot:C,handleDropOnEmpty:T}}function x2(a,n){const i=[];for(let u=0;u<a.rows;u++)for(let s=0;s<a.columns;s++)n[u][s]||i.push({row:u,col:s});return i}function A2(a,n,i,u,s,c){if(!a)return{rowOptions:[],colOptions:[],rowSpan:1,colSpan:1};if(n){const _=typeof a.colSpan=="number"&&a.colSpan>0?Math.min(a.colSpan,i.columns):1,E=Array.from({length:i.columns},(C,T)=>T+1);return{rowOptions:[1],colOptions:E,rowSpan:1,colSpan:_}}const d=u([a.id]),{rowSpan:p,colSpan:m}=s(a),h=i.rows-a.row,v=i.columns-a.col,{rowOptions:y,colOptions:b}=f2(d,c,a,p,m,h,v);return{rowOptions:y,colOptions:b,rowSpan:p,colSpan:m}}function R2({config:a,gridRef:n}){const[i,u]=A.useState({columnWidth:0,gap:0});return A.useLayoutEffect(()=>{if(!n.current)return;const c=n.current,d=()=>{const m=getComputedStyle(c),h=Number.parseFloat(m.columnGap||m.gap||"0")||0,v=c.clientWidth,y=a.columns>0?(v-h*(a.columns-1))/a.columns:0;u({columnWidth:y,gap:h})};d();const p=new ResizeObserver(()=>d());return p.observe(c),()=>p.disconnect()},[a.columns,n]),{getMasonryRowSpan:A.useCallback(c=>{const d=Oa(c.aspectRatio,c.customAspectRatio)??1,p=d>0?d:1,m=typeof c.colSpan=="number"&&c.colSpan>0?c.colSpan:1,h=i.columnWidth;if(!h||h<=0)return 1;const v=i.gap,b=(h*m+v*(m-1))/p;return Math.max(1,Math.ceil((b+v)/(Fg+v)))},[i.columnWidth,i.gap])}}function D2({config:a,isMasonry:n,selectedSlotId:i,clampSlotToGrid:u,findBestSpanForSlot:s,onChange:c,setSelectedSlotId:d}){const p=A.useCallback(_=>{const C=(n?a.slots:a.slots.filter(T=>T.col<_&&T.row<a.rows)).map(T=>{if(n){const x=typeof T.colSpan=="number"&&T.colSpan>0?Math.min(T.colSpan,_):1;return{...T,colSpan:x}}return u(T,_,a.rows)});c({...a,columns:_,slots:C})},[u,a,n,c]),m=A.useCallback(_=>{const C=a.slots.filter(T=>T.row<_&&T.col<a.columns).map(T=>u(T,a.columns,_));c({...a,rows:_,slots:C})},[u,a,c]),h=A.useCallback((_,E)=>{const C={id:yy(),label:`Slot ${a.slots.length+1}`,aspectRatio:us,width:St,row:_,col:E,rowSpan:1,colSpan:1,autoSpan:!1,required:!1};c({...a,slots:[...a.slots,C]}),d(C.id)},[a,c,d]),v=A.useCallback((_,E)=>{const C=Object.prototype.hasOwnProperty.call(E,"rowSpan")||Object.prototype.hasOwnProperty.call(E,"colSpan"),T=a.slots.map(x=>{if(x.id!==_)return x;const L=E.autoSpan??x.autoSpan??!1,U=C&&E.autoSpan===void 0,R={...x,...E,autoSpan:U?!1:L};if(R.autoSpan){const O=s(R);O&&(R.rowSpan=O.rowSpan,R.colSpan=O.colSpan)}return R});c({...a,slots:T})},[a,s,c]),y=A.useCallback(_=>{const E=a.slots.filter(C=>C.id!==_);c({...a,slots:E}),i===_&&d(null)},[a,c,i,d]),b=A.useCallback(()=>{const _={id:yy(),label:`Slot ${a.slots.length+1}`,aspectRatio:us,width:St,row:0,col:0,rowSpan:1,colSpan:1,autoSpan:!0,required:!1};c({...a,slots:[...a.slots,_]}),d(_.id)},[a,c,d]);return{handleColumnsChange:p,handleRowsChange:m,handleAddSlotAtPosition:h,handleUpdateSlot:v,handleDeleteSlot:y,handleAddSlotMasonry:b}}function M2({selectedSlot:a,presetWidthValues:n,handleUpdateSlot:i}){const u=!!a&&typeof a.width=="number"&&!n.has(a.width),[s,c]=A.useState(u),[d,p]=A.useState(u?String(a?.width??""):""),m=A.useRef(null);A.useEffect(()=>{if(!a){m.current=null,c(!1),p("");return}const b=m.current!==a.id;if(m.current=a.id,typeof a.width=="number"&&!n.has(a.width)){c(!0),p(String(a.width));return}(b||a.width==="original")&&(c(!1),p(""))},[n,a]);const h=s?un(d):void 0,v=A.useCallback((b,_,E)=>{if(_==="custom"){const C=typeof E=="number"?E:St;c(!0),p(String(C)),i(b,{width:C});return}c(!1),p(""),i(b,{width:_==="original"?"original":Number(_)})},[i]),y=A.useCallback((b,_)=>{p(_);const E=Wr(_);E!==null&&!un(_)&&i(b,{width:E})},[i]);return{slotCustomWidthActive:s,slotCustomWidthInput:d,slotCustomWidthError:h,handleSlotWidthSelectChange:v,handleSlotCustomWidthInputChange:y}}function Xf(a){return a.aspectRatio==="custom"?a.customAspectRatio??"":a.aspectRatio}function Yg(a,n){return a.aspectRatio==="custom"||!n.includes(a.aspectRatio)?"custom":a.aspectRatio}function j2({selectedSlot:a,isMasonry:n,aspectRatioOptions:i,presetAspectRatioValues:u,slotWidthOptions:s,spanOptions:c,slotCustomWidthActive:d,slotCustomWidthInput:p,slotCustomWidthError:m,slotCustomAspectRatioError:h,onClose:v,onUpdateSlot:y,onSlotWidthSelectChange:b,onSlotCustomWidthInputChange:_}){const E=a.aspectRatio==="custom"||!u.includes(a.aspectRatio),C=E?Xf(a):"",T=Yg(a,u);function x(L){const U=Xf(a);L==="custom"?y(a.id,{aspectRatio:"custom",customAspectRatio:U||""}):y(a.id,{aspectRatio:L,customAspectRatio:void 0})}return w.jsxs("div",{className:J.editPanel,children:[w.jsxs("div",{className:J.editPanelHeader,children:[w.jsx("span",{className:J.editPanelTitle,children:"Edit Slot"}),w.jsx("button",{type:"button",className:J.closeButton,onClick:v,children:w.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[w.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),w.jsxs("div",{className:J.editPanelForm,children:[w.jsxs("div",{className:J.formField,children:[w.jsx("label",{className:J.formLabel,children:"Label"}),w.jsx("input",{type:"text",className:J.formInput,value:a.label,placeholder:"Enter slot label...",onChange:L=>y(a.id,{label:L.target.value})})]}),w.jsxs("div",{className:J.formRow,children:[w.jsxs("div",{className:J.formField,children:[w.jsx("label",{className:J.formLabel,children:"Aspect Ratio"}),w.jsx("select",{className:J.formSelect,value:T,onChange:L=>x(L.target.value),children:i.map(L=>w.jsx("option",{value:L.value,children:L.label},L.value))})]}),E&&w.jsxs("div",{className:J.formField,children:[w.jsx("label",{className:J.formLabel,children:"Custom Ratio"}),w.jsx("input",{type:"text",className:h?`${J.formInput} ${J.inputError}`:J.formInput,value:C,placeholder:"2.35:1",onChange:L=>y(a.id,{aspectRatio:"custom",customAspectRatio:L.target.value})}),h&&w.jsx("span",{className:J.errorText,children:h})]}),w.jsxs("div",{className:J.formField,children:[w.jsx("label",{className:J.formLabel,children:"Width"}),w.jsx("select",{className:J.formSelect,value:d?"custom":a.width,onChange:L=>b(a.id,L.target.value,a.width),children:s.map(L=>w.jsx("option",{value:L.value,children:L.label},L.value))})]})]}),d&&w.jsx("div",{className:J.formRow,children:w.jsxs("div",{className:J.formField,children:[w.jsx("label",{className:J.formLabel,children:"Custom Width"}),w.jsx("input",{type:"number",min:Cn,max:On,className:m?`${J.formInput} ${J.inputError}`:J.formInput,value:p,placeholder:String(St),onChange:L=>_(a.id,L.target.value)}),m&&w.jsx("span",{className:J.errorText,children:m})]})}),w.jsxs("div",{className:J.formRow,children:[w.jsxs("div",{className:J.formField,children:[w.jsx("label",{className:J.formLabel,children:"Column Span"}),w.jsx("select",{className:J.formSelect,value:c.colSpan,onChange:L=>y(a.id,{colSpan:Number(L.target.value)}),children:c.colOptions.map(L=>w.jsx("option",{value:L,children:L},L))})]}),!n&&w.jsxs("div",{className:J.formField,children:[w.jsx("label",{className:J.formLabel,children:"Row Span"}),w.jsx("select",{className:J.formSelect,value:c.rowSpan,onChange:L=>y(a.id,{rowSpan:Number(L.target.value)}),children:c.rowOptions.map(L=>w.jsx("option",{value:L,children:L},L))})]})]}),!n&&w.jsxs(w.Fragment,{children:[w.jsxs("label",{className:J.formCheckbox,children:[w.jsx("input",{type:"checkbox",checked:a.autoSpan??!1,onChange:L=>y(a.id,{autoSpan:L.target.checked})}),w.jsx("span",{children:"Auto size from aspect ratio"})]}),c.rowOptions.length===1&&c.colOptions.length===1&&w.jsx("div",{className:J.formHint,children:"Add rows/columns or remove a slot to allow larger spans."})]}),w.jsxs("label",{className:J.formCheckbox,children:[w.jsx("input",{type:"checkbox",checked:a.required,onChange:L=>y(a.id,{required:L.target.checked})}),w.jsx("span",{children:"Required field"})]})]})]})}function L2({config:a,onChange:n,widthOptions:i}){const[u,s]=A.useState(null),[c,d]=A.useState(null),[p,m]=A.useState(null),[h,v]=A.useState(null),y=A.useRef(null),b=A.useRef(null),_=a.layoutStyle==="masonry",E=u?a.slots.find(oe=>oe.id===u):null,{clampSlotToGrid:C,getSlotSpan:T,buildOccupancy:x,canPlaceAt:L,findBestSpanForSlot:U}=O2({config:a}),{getMasonryRowSpan:R}=R2({config:a,gridRef:b}),{handleColumnsChange:O,handleRowsChange:G,handleAddSlotAtPosition:N,handleUpdateSlot:Y,handleDeleteSlot:ee,handleAddSlotMasonry:$}=D2({config:a,isMasonry:_,selectedSlotId:u,clampSlotToGrid:C,findBestSpanForSlot:U,onChange:n,setSelectedSlotId:s}),{handleDragStart:Q,handleDragEnd:ie,handleDragOverSlot:ne,handleDragOverEmpty:be,handleDragLeave:we,handleDropOnSlot:H,handleDropOnEmpty:K}=T2({config:a,isMasonry:_,draggedSlotIdRef:y,getSlotSpan:T,buildOccupancy:x,canPlaceAt:L,onChange:n,setDraggedSlotId:d,setDragOverCell:m,setDragOverSlotId:v}),re=A.useMemo(()=>_?[]:x(),[x,_]),pe=A.useMemo(()=>_?[]:x2(a,re),[a,_,re]),ye=A.useMemo(()=>A2(E,_,a,x,T,L),[x,L,a,T,_,E]),M=Tn.filter(oe=>oe.value!=="custom"),P=[...M,{value:"custom",label:"Custom..."}],te=M.map(oe=>oe.value),ae=Tn.filter(oe=>oe.value!=="custom"&&oe.value!=="original"),de=[{value:"auto",label:"Auto"},...ae,{value:"custom",label:"Custom..."}],fe=ae.map(oe=>oe.value),_e=i.filter(oe=>oe.value!=="original"),ze=[..._e,{value:"custom",label:"Custom..."}],Le=_e.map(oe=>oe.value),Ut=w2(a.layoutAspectRatio,fe),wt=E2(a.layoutAspectRatio,a.layoutCustomAspectRatio,fe),on=Ut==="custom"?Ca(wt):void 0,{layoutCustomWidthActive:xn,layoutCustomWidthInput:xt,layoutCustomWidthError:Ta,layoutWidthSelection:ei,handleLayoutWidthChange:qs,handleLayoutCustomWidthInputChange:dl}=C2({config:a,layoutPresetWidthValues:Le,onChange:n}),ti=y2(a),ni=(E?Yg(E,te):null)==="custom"&&E?Ca(Xf(E)):void 0,Us=A.useMemo(()=>new Set(i.map(oe=>oe.value)),[i]),Hs=[...i,{value:"custom",label:"Custom..."}],{slotCustomWidthActive:Et,slotCustomWidthInput:Vs,slotCustomWidthError:ml,handleSlotWidthSelectChange:pl,handleSlotCustomWidthInputChange:Ka}=M2({selectedSlot:E,presetWidthValues:Us,handleUpdateSlot:Y}),Bs=A.useCallback(oe=>_2(a,oe,n),[a,n]),vl=A.useCallback(oe=>S2(a,oe,wt,n),[a,wt,n]);return w.jsxs("div",{className:J.container,children:[w.jsxs("div",{className:J.toolbar,children:[w.jsxs("div",{className:J.gridControls,children:[w.jsxs("div",{className:J.controlGroup,children:[w.jsx("span",{className:J.controlLabel,children:"Layout:"}),w.jsxs("select",{value:a.layoutStyle??"grid",onChange:oe=>{const At=oe.target.value==="masonry"?"masonry":"grid";Bs(At)},className:J.controlSelect,children:[w.jsx("option",{value:"grid",children:"Grid"}),w.jsx("option",{value:"masonry",children:"Masonry"})]})]}),w.jsxs("div",{className:J.controlGroup,children:[w.jsx("span",{className:J.controlLabel,children:"Columns:"}),w.jsx("select",{value:a.columns,onChange:oe=>O(Number(oe.target.value)),className:J.controlSelect,children:I1.map(oe=>w.jsx("option",{value:oe.value,children:oe.value},oe.value))})]}),!_&&w.jsxs("div",{className:J.controlGroup,children:[w.jsx("span",{className:J.controlLabel,children:"Rows:"}),w.jsx("select",{value:a.rows,onChange:oe=>G(Number(oe.target.value)),className:J.controlSelect,children:F1.map(oe=>w.jsx("option",{value:oe.value,children:oe.value},oe.value))})]})]}),w.jsx("div",{className:J.gridInfo,children:v2(a,_)})]}),w.jsx(m2,{config:a,layoutAspectRatioOptions:de,layoutAspectRatioSelection:Ut,layoutCustomAspectRatioValue:wt,layoutCustomAspectRatioError:on,layoutWidthOptions:ze,layoutWidthSelection:ei,layoutCustomWidthActive:xn,layoutCustomWidthInput:xt,layoutCustomWidthError:Ta,layoutDimensions:ti,onChange:n,onLayoutAspectRatioChange:vl,onLayoutWidthChange:qs,onLayoutCustomWidthInputChange:dl}),_&&w.jsx("div",{className:J.toolbarRow,children:w.jsx("button",{type:"button",className:J.addSlotButton,onClick:$,children:"Add slot"})}),w.jsx("div",{className:J.gridPreview,children:w.jsxs("div",{className:J.grid,"data-layout":_?"masonry":"grid",ref:b,style:p2(a,_),children:[a.slots.map(oe=>{const{rowSpan:At,colSpan:xa}=T(oe),Ct=_?R(oe):At,Ft=oe.colSpan,Ot=typeof Ft=="number"&&Ft>0?Math.min(Ft,a.columns):1,Gs=g2(oe,_,xa,At,Ot,Ct),ks=b2(oe,_,h,p);return w.jsx(u2,{slot:oe,widthOptions:i,style:Gs,isSelected:u===oe.id,isDragging:c===oe.id,isDragOver:ks,onSelect:()=>s(oe.id),onDelete:()=>ee(oe.id),onDragStart:Q(oe.id),onDragEnd:ie,onDragOver:ne(oe.id,oe.row,oe.col),onDragLeave:we,onDrop:H(oe.id),showRatioFrame:!_},oe.id)}),!_&&pe.map(({row:oe,col:At})=>w.jsx(N2,{row:oe,col:At,style:{gridColumn:`${At+1} / span 1`,gridRow:`${oe+1} / span 1`},isDragOver:p?.row===oe&&p?.col===At,onAdd:()=>N(oe,At),onDragOver:be(oe,At),onDragLeave:we,onDrop:K(oe,At)},`empty-${oe}-${At}`))]})}),E&&w.jsx(j2,{selectedSlot:E,isMasonry:_,aspectRatioOptions:P,presetAspectRatioValues:te,slotWidthOptions:Hs,spanOptions:ye,slotCustomWidthActive:Et,slotCustomWidthInput:Vs,slotCustomWidthError:ml,slotCustomAspectRatioError:ni,onClose:()=>s(null),onUpdateSlot:Y,onSlotWidthSelectChange:pl,onSlotCustomWidthInputChange:Ka})]})}function N2({style:a,isDragOver:n,onAdd:i,onDragOver:u,onDragLeave:s,onDrop:c}){const d=[J.emptyCell,n&&J.isDragOver].filter(Boolean).join(" ");return w.jsx("div",{className:d,style:a,onDragOver:u,onDragLeave:s,onDrop:c,children:w.jsx("button",{type:"button",className:J.addCellButton,onClick:i,children:w.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[w.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),w.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})})}const z2="_fieldBlock_1s122_1",mn={fieldBlock:z2},gy=P1.map(a=>({value:a.value,label:a.label}));function q2({legacyValues:a,globalParams:n,aspectRatioOptions:i,selectedAspectRatio:u,isCustomAspectRatio:s,customAspectRatioValue:c,customAspectRatioError:d,updateLegacyMode:p}){function m(h){!h||Array.isArray(h)||!("value"in h)||(h.value==="custom"?p("aspectRatio",c||""):p("aspectRatio",h.value))}return w.jsxs(w.Fragment,{children:[w.jsx("div",{className:mn.fieldBlock,children:w.jsx(Ss,{id:"useDefaultAspectRatio",name:"useDefaultAspectRatio",label:"Use global default aspect ratio?",hint:`Global default: ${n.defaultAspectRatio}`,value:a.aspectRatio===null,onChange:h=>p("aspectRatio",h?null:n.defaultAspectRatio)})}),a.aspectRatio!==null&&w.jsx("div",{className:mn.fieldBlock,children:w.jsx(rl,{id:"aspectRatio",name:"aspectRatio",label:"Override default aspect ratio",selectInputProps:{isMulti:!1,options:i},value:u,onChange:m})}),s&&w.jsx("div",{className:mn.fieldBlock,children:w.jsx(Vr,{id:"customAspectRatio",name:"customAspectRatio",label:"Custom Aspect Ratio",hint:"Use W:H (e.g., 2.35:1)",placeholder:"2.35:1",value:c,onChange:h=>p("aspectRatio",h),error:d})})]})}function U2({legacyValues:a,globalParams:n,widthOptions:i,selectedWidth:u,presetWidthOptions:s,presetWidthValues:c,customWidthActive:d,customWidthInput:p,customWidthError:m,setCustomWidthActive:h,setCustomWidthInput:v,updateLegacyMode:y}){function b(C){if(!(!C||Array.isArray(C)||!("value"in C)))if(C.value==="custom"){const T=typeof a.width=="number"?a.width:typeof n.defaultWidth=="number"?n.defaultWidth:St;h(!0),v(String(T)),y("width",T)}else h(!1),v(""),y("width",C.value)}function _(C){const T=C?null:n.defaultWidth;y("width",T);const x=typeof T=="number"&&c.includes(T);!C&&T!==null&&T!=="original"&&!x&&typeof T=="number"?(h(!0),v(String(T))):(h(!1),v(""))}function E(C){v(C);const T=Wr(C);T!==null&&!un(C)&&y("width",T)}return w.jsxs(w.Fragment,{children:[w.jsx("div",{className:mn.fieldBlock,children:w.jsx(Ss,{id:"useDefaultWidth",name:"useDefaultWidth",label:"Use global default width?",hint:`Global default: ${Ms(n.defaultWidth,s)}`,value:a.width===null,onChange:_})}),a.width!==null&&w.jsx("div",{className:mn.fieldBlock,children:w.jsx(rl,{id:"width",name:"width",label:"Override default width",selectInputProps:{isMulti:!1,options:i},value:u,onChange:b})}),a.width!==null&&d&&w.jsx("div",{className:mn.fieldBlock,children:w.jsx(Vr,{id:"customWidth",name:"customWidth",label:"Custom Width",hint:`Pixels (${Cn}–${On})`,placeholder:String(St),value:p,onChange:E,error:m,textInputProps:{type:"number",min:Cn,max:On}})})]})}function H2({legacyValues:a,globalParams:n,aspectRatioOptions:i,selectedAspectRatio:u,isCustomAspectRatio:s,customAspectRatioValue:c,customAspectRatioError:d,widthOptions:p,selectedWidth:m,presetWidthOptions:h,presetWidthValues:v,customWidthActive:y,customWidthInput:b,customWidthError:_,setCustomWidthActive:E,setCustomWidthInput:C,updateLegacyMode:T}){return w.jsxs(w.Fragment,{children:[w.jsx(q2,{legacyValues:a,globalParams:n,aspectRatioOptions:i,selectedAspectRatio:u,isCustomAspectRatio:s,customAspectRatioValue:c,customAspectRatioError:d,updateLegacyMode:T}),w.jsx(U2,{legacyValues:a,globalParams:n,widthOptions:p,selectedWidth:m,presetWidthOptions:h,presetWidthValues:v,customWidthActive:y,customWidthInput:b,customWidthError:_,setCustomWidthActive:E,setCustomWidthInput:C,updateLegacyMode:T})]})}function V2(a){const[n,i]=A.useState(()=>Ig(a.parameters)),[u,s]=A.useState(()=>n.mode==="layout"?n.layoutConfig:Yf()),c=A.useCallback((h,v)=>{if(n.mode==="layout")return;const y={...n,[h]:v};i(y);const b={paramsVersion:"1",mode:y.mode,...y.aspectRatio!==null?{overrideDefaultAspectRatio:y.aspectRatio}:{},...y.width!==null?{overrideDefaultWidth:y.width}:{},enableCssClass:y.enableCssClass,enableLazyLoading:y.enableLazyLoading};a.setParameters(b)},[n,a]),d=A.useCallback(h=>{if(n.mode!=="layout")return;const v={mode:"layout",layoutConfig:h,enableCssClass:n.enableCssClass,enableLazyLoading:n.enableLazyLoading};i(v),s(h);const y={paramsVersion:"2",mode:"layout",layoutConfig:h,enableCssClass:v.enableCssClass,enableLazyLoading:v.enableLazyLoading};a.setParameters(y)},[n,a]),p=A.useCallback((h,v)=>{const y={...n,[h]:v};if(i(y),y.mode==="layout"){const _={paramsVersion:"2",mode:"layout",layoutConfig:y.layoutConfig,enableCssClass:y.enableCssClass,enableLazyLoading:y.enableLazyLoading};a.setParameters(_);return}const b={paramsVersion:"1",mode:y.mode,...y.aspectRatio!==null?{overrideDefaultAspectRatio:y.aspectRatio}:{},...y.width!==null?{overrideDefaultWidth:y.width}:{},enableCssClass:y.enableCssClass,enableLazyLoading:y.enableLazyLoading};a.setParameters(b)},[n,a]),m=A.useCallback(h=>{if(h==="layout"){const y={mode:"layout",layoutConfig:u??Yf(),enableCssClass:n.enableCssClass,enableLazyLoading:n.enableLazyLoading};i(y);const b={paramsVersion:"2",mode:"layout",layoutConfig:y.layoutConfig,enableCssClass:y.enableCssClass,enableLazyLoading:y.enableLazyLoading};a.setParameters(b)}else{n.mode==="layout"&&s(n.layoutConfig);const v={mode:h,aspectRatio:null,width:null,enableCssClass:n.enableCssClass,enableLazyLoading:n.enableLazyLoading};i(v);const y={paramsVersion:"1",mode:h,enableCssClass:v.enableCssClass,enableLazyLoading:v.enableLazyLoading};a.setParameters(y)}},[a,n,u]);return{formValues:n,updateLegacyMode:c,updateLayoutConfig:d,updateFieldOption:p,handleModeChange:m}}function B2(a,n){const i=a!==null,u=i&&a.width!==null&&typeof a.width=="number"&&!n.includes(a.width),[s,c]=A.useState(u),[d,p]=A.useState(u?String(a?.width??""):"");return A.useEffect(()=>{if(!i||a?.width===null){c(!1),p("");return}u&&(c(!0),p(String(a.width)))},[i,a?.width,u]),{customWidthActive:s,customWidthInput:d,setCustomWidthActive:c,setCustomWidthInput:p}}function G2(a,n){return!a||a.aspectRatio==="custom"?"":n?a.aspectRatio??"":""}function k2(a,n,i){if(!a||a.aspectRatio===null)return null;const u=n?"custom":a.aspectRatio;return i.find(s=>s.value===u)??null}function $2({ctx:a}){const n=Ns(a.plugin.attributes.parameters),{formValues:i,updateLegacyMode:u,updateLayoutConfig:s,updateFieldOption:c,handleModeChange:d}=V2(a),p=Tn.filter(Q=>Q.value!=="custom").map(Q=>({value:Q.value,label:Q.label})),m=[...p,{value:"custom",label:"Custom..."}],h=p.map(Q=>Q.value),v=A.useMemo(()=>pd(n.widthPresets),[n.widthPresets]),y=A.useMemo(()=>[...v,{value:"custom",label:"Custom..."}],[v]),b=A.useMemo(()=>v.map(Q=>Q.value),[v]),_=gy.find(Q=>Q.value===i.mode),E=i.mode==="single"||i.mode==="multiple"?i:null,C=E!==null,T=C&&E.aspectRatio!==null&&(E.aspectRatio==="custom"||!h.includes(E.aspectRatio)),x=G2(E,T),L=T?Ca(x):void 0,U=k2(E,T,m),{customWidthActive:R,customWidthInput:O,setCustomWidthActive:G,setCustomWidthInput:N}=B2(E,b),Y=R?un(O):void 0,ee=C&&E.width!==null?y.find(Q=>Q.value===(R?"custom":E.width)):null,$=a.errors;return w.jsx(os,{ctx:a,children:w.jsxs(Jy,{children:[w.jsx("div",{className:mn.fieldBlock,children:w.jsx(rl,{id:"mode",name:"mode",label:"Field Mode",hint:"Choose how this field handles assets",required:!0,selectInputProps:{isMulti:!1,options:gy},value:_,onChange:Q=>{Q&&"value"in Q&&d(Q.value)},error:$.mode})}),w.jsx("div",{className:mn.fieldBlock,children:w.jsx(Ss,{id:"enableCssClass",name:"enableCssClass",label:"Allow CSS class per asset?",hint:"Lets editors provide a custom CSS class for each image.",value:i.enableCssClass,onChange:Q=>c("enableCssClass",Q)})}),w.jsx("div",{className:mn.fieldBlock,children:w.jsx(Ss,{id:"enableLazyLoading",name:"enableLazyLoading",label:"Allow lazy loading toggle per asset?",hint:"Lets editors decide whether each image should lazy load.",value:i.enableLazyLoading,onChange:Q=>c("enableLazyLoading",Q)})}),E&&w.jsx(H2,{legacyValues:E,globalParams:n,aspectRatioOptions:m,selectedAspectRatio:U,isCustomAspectRatio:T,customAspectRatioValue:x,customAspectRatioError:L,widthOptions:y,selectedWidth:ee,presetWidthOptions:v,presetWidthValues:b,customWidthActive:R,customWidthInput:O,customWidthError:Y,setCustomWidthActive:G,setCustomWidthInput:N,updateLegacyMode:u}),i.mode==="layout"&&w.jsx("div",{className:mn.fieldBlock,children:w.jsx(L2,{config:i.layoutConfig,onChange:s,widthOptions:v})}),$.layoutConfig&&w.jsx("div",{className:mn.fieldBlock,children:w.jsx("div",{style:{color:"var(--alert-color)",fontSize:"12px"},children:$.layoutConfig})})]})})}const P2="_emptyState_1gmkv_1",I2="_icon_1gmkv_14",F2="_text_1gmkv_26",Sf={emptyState:P2,icon:I2,text:F2};function Y2({isGallery:a,onSelectAsset:n,disabled:i}){return w.jsxs("div",{className:Sf.emptyState,children:[w.jsx("div",{className:Sf.icon,children:w.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[w.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),w.jsx("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),w.jsx("polyline",{points:"21 15 16 10 5 21"})]})}),w.jsx("p",{className:Sf.text,children:a?"No assets selected":"No asset selected"}),w.jsx(ed,{onClick:n,disabled:i,buttonSize:"s",children:a?"Add assets":"Browse assets"})]})}function Xg(a){return typeof a=="object"&&!!a&&"data"in a}function X2(a){return typeof a=="object"&&!!a&&"included"in a}function pn({__itemTypeId:a,id:n,type:i,attributes:u,relationships:s,meta:c}){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},a?{__itemTypeId:a}:{}),n?{id:n}:{}),i?{type:i}:{}),u||{}),s?Object.fromEntries(Object.entries(s).map(([d,p])=>[d,p?.data])):{}),c?{meta:c}:{})}function z(a){if(!Xg(a))throw new Error("Invalid body!");return Array.isArray(a.data)?a.data.map(pn):pn(a.data)}function Qg(a){return!!(a&&typeof a=="object"&&"type"in a&&a.type==="item")}function Qf(a){if(Array.isArray(a))return a.map(Qf);if(a&&typeof a=="object"){if(Qg(a))return al(a);const n={};for(const[i,u]of Object.entries(a))n[i]=Qf(u);return n}return a}function al(a){if(!Qg(a))return a;const n=a.attributes?Qf(a.attributes):a.attributes;return Object.assign(Object.assign({},a),{attributes:n,__itemTypeId:a.relationships.item_type.data.id})}function ln(a){if(!Xg(a))throw new Error("Invalid body!");let n;Array.isArray(a.data)?n=a.data.map(al):n=al(a.data);let i;return X2(a)&&(i=a.included.map(al)),Object.assign(Object.assign(Object.assign({},a),{data:n}),i?{included:i}:{})}function Q2(a){if(typeof a!="object"||a===null||!("data"in a))return!1;const n=a;if(!Array.isArray(n.data))return!1;const i=n;if(i.data.length===0)return!1;const u=i.data[0];return!(typeof u!="object"||u===null||!("id"in u)||!("type"in u)||!("attributes"in u)||u.type!=="api_error")}class Z2 extends Error{constructor(n){super("API Error!"),Object.setPrototypeOf(this,new.target.prototype),"captureStackTrace"in Error?Error.captureStackTrace(this,Za):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
|
+
Caused By:
|
|
8
|
+
${this.preCallStack}`)}}class Za extends Error{constructor(n){super("API Error!"),Object.setPrototypeOf(this,new.target.prototype),"captureStackTrace"in Error?Error.captureStackTrace(this,Za):this.stack=new Error().stack,this.request=n.request,this.response=n.response,this.preCallStack=n.preCallStack;let i=`${n.request.method} ${n.request.url}: ${this.response.status} ${this.response.statusText}`;this.errors.length>0&&(i+=`
|
|
9
|
+
|
|
10
|
+
${JSON.stringify(this.errors,null,2)}`),this.message=i,this.preCallStack&&(this.stack+=`
|
|
11
|
+
Caused By:
|
|
12
|
+
${this.preCallStack}`)}get errors(){return Q2(this.response.body)?this.response.body.data:[]}findError(n,i){const u=Array.isArray(n)?n:[n];return this.errors.find(s=>u.includes(s.attributes.code)&&(!i||(typeof i=="function"?i(s.attributes.details):Object.entries(i).every(([c,d])=>s.attributes.details[c]===d))))}}class sl extends Error{constructor(){super("Promise canceled!"),Object.setPrototypeOf(this,new.target.prototype)}}function ol(a,n){let i=null;const u=new Promise((s,c)=>{i=()=>{try{n&&n(),c(new sl)}catch(p){c(p)}},(typeof a=="function"?a():a).then(s,c)});return i&&(u.cancel=i),u}function rs(a){return new Promise(n=>{setTimeout(n,a)})}var W2=function(a,n,i,u){function s(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(v){try{h(u.next(v))}catch(y){d(y)}}function m(v){try{h(u.throw(v))}catch(y){d(y)}}function h(v){v.done?c(v.value):s(v.value).then(p,m)}h((u=u.apply(a,n||[])).next())})};function K2(a){return W2(this,void 0,void 0,function*(){let n,i=0;do try{i+=1,yield rs(i*1e3),n=yield a()}catch(u){if(!(u instanceof Za)||u.response.status!==404)throw u}while(!n);return n})}var Ki={},Ea={},wf={},by;function Zg(){return by||(by=1,(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.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"})(a.TaskCollisionStrategy||(a.TaskCollisionStrategy={}))})(wf)),wf}var Zu={},_y;function Wg(){if(_y)return Zu;_y=1,Object.defineProperty(Zu,"__esModule",{value:!0});let a=class{constructor(i,u){this._code=i,this._message=u}get code(){return this._code}get message(){return this._message}};return Zu.default=a,Zu}var Xa={},Sy;function Kg(){if(Sy)return Xa;Sy=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.mutexEquality=Xa.mutexBitwiseAnd=void 0;function a(i,u){return(i&u)!==0}Xa.mutexBitwiseAnd=a;function n(i,u){return i===u}return Xa.mutexEquality=n,Xa}var Wu={},wy;function J2(){if(wy)return Wu;wy=1,Object.defineProperty(Wu,"__esModule",{value:!0});let a=class{constructor(i,u){this._meta=void 0,this._task=i,this._scheduler=u}withDescriptor(i){return this._descriptor=i,this}withMutex(i){return this._mutex=i,this}withMeta(i){return this._meta=i,this}runBeforeExecuting(i){return this._onPreExecute=i,this}handleCollisions(i){return this._onTaskCollision=i,this}execute(i){return this._scheduler.enqueue({priority:i,mutex:this._mutex,descriptor:this._descriptor,meta:this._meta,execute:this._task,onPreExecute:this._onPreExecute,onTaskCollision:this._onTaskCollision})}};return Wu.default=a,Wu}var Ey;function ex(){if(Ey)return Ea;Ey=1;var a=Ea&&Ea.__awaiter||function(h,v,y,b){function _(E){return E instanceof y?E:new y(function(C){C(E)})}return new(y||(y=Promise))(function(E,C){function T(U){try{L(b.next(U))}catch(R){C(R)}}function x(U){try{L(b.throw(U))}catch(R){C(R)}}function L(U){U.done?E(U.value):_(U.value).then(T,x)}L((b=b.apply(h,v||[])).next())})},n=Ea&&Ea.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(Ea,"__esModule",{value:!0});const i=Zg(),u=n(Wg()),s=Kg(),c=n(J2());var d;(function(h){h[h.PENDING=0]="PENDING",h[h.EXECUTING=1]="EXECUTING",h[h.TERMINATED=2]="TERMINATED"})(d||(d={}));function p(h,v){for(let y of h.listeners)y.reject(v)}let m=class{constructor(v,y={}){this._queue=[],this._isExecuting=!1,this._idleListeners=[],this._maxConcurrentTasks=v,this._samePriorityMutex=!!y.samePriorityMutex,this._mutexStrategy=y.mutexStrategy||s.mutexEquality,y.disableLogging?this._errorLog=()=>{}:this._errorLog=console.error}enqueue(v){return new Promise((y,b)=>{typeof v=="function"&&(v={priority:0,execute:v});const _=this._checkMutexes(v,y,b);_.task?this._addTask(_.task):_.canceled&&b(this.createCanceledError())})}prepare(v){return new c.default(v,this)}_addTask(v){this._queue.push(v),this._applyPriorities(),this._isExecuting||(this._isExecuting=!0,setTimeout(this._executeNextTasks.bind(this)))}get executingTasks(){return this._queue.reduce((v,y)=>y.state===d.EXECUTING?v+1:v,0)}createCanceledError(){return new u.default(50,"Task has been canceled in favor of another task")}_findFirstPendingTask(){return this._queue.find(v=>v.state===d.PENDING)}_isIdle(){return this._queue.length===0||!this._queue.find(v=>v.state!==d.TERMINATED)}_removeTaskAt(v){this._queue.splice(v,1)}_executeTask(v){return a(this,void 0,void 0,function*(){try{return v.task.onPreExecute&&v.task.onPreExecute(),yield v.task.execute()}catch(y){throw y}finally{v.state=d.TERMINATED;let y=this._queue.indexOf(v);this._removeTaskAt(y),this._executeNextTasks()}})}_executeNextTasks(){let v=this.executingTasks;if(v>=this._maxConcurrentTasks)return;let y=this._maxConcurrentTasks-v;for(let b=0;b<y;b++){const _=this._findFirstPendingTask();if(!_){this._isIdle()&&this._switchToIdle();return}_.state=d.EXECUTING,this._executeTask(_).then(E=>{for(const{resolve:C}of _.listeners)try{C(E)}catch(T){this._errorLog("An error occurred while resolving listener",T)}}).catch(E=>{for(const{reject:C}of _.listeners)try{C(E)}catch(T){this._errorLog("An error occurred while rejecting listener",T)}})}}_switchToIdle(){this._isExecuting=!1;const v=this._idleListeners;this._idleListeners=[];for(const{resolve:y}of v)try{y()}catch{}}waitForIdle(){return this._isExecuting?new Promise((v,y)=>{this._idleListeners.push({resolve:v,reject:y})}):Promise.resolve()}_applyPriorities(){this._queue.sort((v,y)=>y.task.priority-v.task.priority)}_checkMutexes(v,y,b){for(let _=0;_<this._queue.length;_++){let E=this._queue[_];if(E.state===d.TERMINATED||this._samePriorityMutex&&E.task.priority!=v.priority||!E.task.mutex||!v.mutex||!this._mutexStrategy(E.task.mutex,v.mutex))continue;let C,T;if(E.task.onTaskCollision)if(C=E.task.onTaskCollision(v),C===i.TaskCollisionStrategy.KEEP_OTHER&&E.state!==d.EXECUTING){this._removeTaskAt(_--),p(E,this.createCanceledError());continue}else{if(C===i.TaskCollisionStrategy.KEEP_THIS)return{canceled:!0};if(C===i.TaskCollisionStrategy.RESOLVE_OTHER)return this._removeTaskAt(_--),{canceled:!1,task:{task:v,state:d.PENDING,listeners:[{resolve:y,reject:b},...E.listeners]}};if(C===i.TaskCollisionStrategy.RESOLVE_THIS)return E.listeners=[...E.listeners,{resolve:y,reject:b}],{canceled:!1}}if(v.onTaskCollision){if(T=v.onTaskCollision(E.task),T===i.TaskCollisionStrategy.KEEP_OTHER)return{canceled:!0};if(T===i.TaskCollisionStrategy.KEEP_THIS){this._removeTaskAt(_--),p(E,this.createCanceledError());continue}else{if(T===i.TaskCollisionStrategy.RESOLVE_OTHER)return E.listeners=[...E.listeners,{resolve:y,reject:b}],{canceled:!1};if(T===i.TaskCollisionStrategy.RESOLVE_THIS)return this._removeTaskAt(_--),{canceled:!1,task:{task:v,state:d.PENDING,listeners:[{resolve:y,reject:b},...E.listeners]}}}}if(!(C===i.TaskCollisionStrategy.KEEP_BOTH&&T===i.TaskCollisionStrategy.KEEP_BOTH))return{canceled:!0}}return{canceled:!1,task:{task:v,state:d.PENDING,listeners:[{resolve:y,reject:b}]}}}};return Ea.default=m,Ea}var Cy;function tx(){return Cy||(Cy=1,(function(a){var n=Ki&&Ki.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(a,"__esModule",{value:!0}),a.mutexEquality=a.mutexBitwiseAnd=a.SchedulerError=a.TaskCollisionStrategy=a.Scheduler=void 0;const i=n(ex());a.Scheduler=i.default;const u=Zg();Object.defineProperty(a,"TaskCollisionStrategy",{enumerable:!0,get:function(){return u.TaskCollisionStrategy}});const s=n(Wg());a.SchedulerError=s.default;const c=Kg();Object.defineProperty(a,"mutexBitwiseAnd",{enumerable:!0,get:function(){return c.mutexBitwiseAnd}}),Object.defineProperty(a,"mutexEquality",{enumerable:!0,get:function(){return c.mutexEquality}})})(Ki)),Ki}var nx=tx(),Qa=function(a){return this instanceof Qa?(this.v=a,this):new Qa(a)},ax=function(a,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(a,n||[]),s,c=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(_){return new Promise(function(E,C){c.push([b,_,E,C])>1||p(b,_)})})}function p(b,_){try{m(u[b](_))}catch(E){y(c[0][3],E)}}function m(b){b.value instanceof Qa?Promise.resolve(b.value.v).then(h,v):y(c[0][2],b)}function h(b){p("next",b)}function v(b){p("throw",b)}function y(b,_){b(_),c.shift(),c.length&&p(c[0][0],c[0][1])}};function Wn(a,n,i,u){return ax(this,arguments,function*(){const c=i?.perPage||a.defaultLimit;if(c>a.maxLimit)throw new Error(`perPage option cannot exceed maximum value of ${a.maxLimit}`);const d=i?.concurrency||1;if(d>10)throw new Error("concurrency option cannot exceed maximum value of 10");const p=yield Qa(n({limit:c,offset:0}));for(const y of p.data)yield yield Qa(y);const m=p.meta.total_count,h=new nx.Scheduler(d),v=[];for(let y=c;y<m;y+=c)v.push(h.enqueue(()=>n({limit:c,offset:y})));for(;v.length>0;){const y=yield Qa(v.shift());for(const b of y.data)yield yield Qa(u?al(b):b)}})}function Kn(a){a&&"page"in a&&console.warn("Passing a `page` query param on paged iterators has no effect: use the `perPage` option instead.")}const Jg="__ARRAY_INDEX__";function rx(a){return a.reduce((n,i,u)=>u===0?i:i===Jg?`${n}[]`:`${n}[${i}]`,"")}function ix(a){if(typeof a=="number"||typeof a=="string")return a.toString();if(a===!0)return"true";if(a===!1)return"false";throw`Don't know how to serialize param value ${JSON.stringify(a)}`}function Zf(a,n=[]){const i=[];if(typeof a=="number"||typeof a=="string"||typeof a=="boolean")i.push([rx(n),ix(a)]);else if(typeof a=="object"){if(Array.isArray(a))for(const u of a)for(const s of Zf(u,[...n,Jg]))i.push(s);else if(a)for(const[u,s]of Object.entries(a))for(const c of Zf(s,[...n,u]))i.push(c)}return i}var lx=function(a,n,i,u){function s(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(v){try{h(u.next(v))}catch(y){d(y)}}function m(v){try{h(u.throw(v))}catch(y){d(y)}}function h(v){v.done?c(v.value):s(v.value).then(p,m)}h((u=u.apply(a,n||[])).next())})};const ux=typeof window<"u"&&typeof window.document<"u",sx=5;var rn;(function(a){a[a.NONE=0]="NONE",a[a.BASIC=1]="BASIC",a[a.BODY=2]="BODY",a[a.BODY_AND_HEADERS=3]="BODY_AND_HEADERS"})(rn||(rn={}));function ox(a){const n={};return a.forEach((i,u)=>{n[u]=i}),n}function Oy(a,n,i,u,s,c,d){return{request:{url:n,method:a,headers:i,body:u},response:{status:s.status,statusText:s.statusText,headers:ox(s.headers),body:c},preCallStack:d}}function cx(a,n,i,u,s){return{request:{url:n,method:a,headers:i,body:u},preCallStack:s}}function fx(a,n,i,u,s,c,d){return{request:{url:n,method:a,headers:i,body:u},response:{status:s,statusText:"N/A",headers:{},body:c},preCallStack:d}}function dx(a){return typeof a=="object"&&!!a&&"code"in a}function hx(a){return Object.fromEntries(Object.entries(a).map(([n,i])=>[n.toLowerCase(),i]))}let Ty=1;function mx(a){const n=a||(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 is(a){var n;return lx(this,void 0,void 0,function*(){const i=Ty;Ty+=1;const u=mx(a.fetchFn),s=a.preCallStack,c=a.userAgent||"@datocms/rest-client-utils",d=a.retryCount||1,p=a.logLevel||rn.NONE,m="autoRetry"in a?a.autoRetry:!0,h=a.logFn||(()=>!0),v=Object.assign({"content-type":"application/json",accept:"application/json",authorization:`Bearer ${a.apiToken}`,"user-agent":c},a.extraHeaders?hx(a.extraHeaders):{});ux&&delete v["user-agent"];const y=a.baseUrl.replace(/\/$/,""),b=a.body?JSON.stringify(a.body,null,2):void 0,_=a.queryParams&&Object.keys(a.queryParams).length>0?`?${new URLSearchParams(Zf(a.queryParams)).toString()}`:"",E=`${y}${a.url}${_}`;if(p>=rn.BASIC){if(h(`[${i}] ${a.method} ${E}`),p>=rn.BODY_AND_HEADERS)for(const[C,T]of Object.entries(v||{}))h(`[${i}] ${C}: ${T}`);p>=rn.BODY&&b&&h(`[${i}] ${b}`)}try{const C=ol(u(E,{method:a.method,headers:v,body:b})),T=setTimeout(()=>{C.cancel()},a.requestTimeout||3e4),x=yield C;clearTimeout(T);const L=x.headers.get("Content-Type"),U=L&&!L.includes("application/json");if(x.status===429||U){if(!m||U&&a.method!=="GET")throw new Za(Oy(a.method,E,v,a.body,x,void 0,s));const N=x.headers.has("X-RateLimit-Reset")?Number.parseInt(x.headers.get("X-RateLimit-Reset"),10):d;return p>=rn.BASIC&&(x.status===429?h(`[${i}] Rate limit exceeded, wait ${N} seconds then retry...`):h(`[${i}] Invalid response content type "${L}" (status ${x.status}). Wait ${N} seconds then retry...`)),yield rs(N*1e3),is(Object.assign(Object.assign({},a),{retryCount:d+1}))}if(p>=rn.BASIC&&(h(`[${i}] Status: ${x.status} (${x.statusText})`),p>=rn.BODY_AND_HEADERS))for(const N of["x-api-version","x-environment","x-queue-time","x-ratelimit-remaining","x-request-id","cf-ray"]){const Y=x.headers.get(N);Y&&h(`[${i}] ${N}: ${Y}`)}let R=x.status===204?void 0:yield x.json();if(p>=rn.BODY&&R&&h(`[${i}] ${JSON.stringify(R,null,2)}`),x.status===202){const N=yield a.fetchJobResult(R.data.id);if(N.status<200||N.status>=300)throw new Za(fx(a.method,E,v,a.body,N.status,N.payload,s));R=N.payload}if(x.status>=200&&x.status<300)return R;const O=new Za(Oy(a.method,E,v,a.body,x,R,s)),G=(n=O.errors.find(N=>N.attributes.transient))===null||n===void 0?void 0:n.attributes.code;if(m&&G)return p>=rn.BASIC&&h(`[${i}] ${G}, wait ${d} seconds then retry...`),yield rs(d*1e3),is(Object.assign(Object.assign({},a),{retryCount:d+1}));throw O}catch(C){if(C instanceof sl||dx(C)&&C.code.includes("ETIMEDOUT")){if(m&&d<sx)return p>=rn.BASIC&&h(`[${i}] Timeout error, wait ${d} seconds then retry...`),yield rs(d*1e3),is(Object.assign(Object.assign({},a),{retryCount:d+1}));throw new Z2(cx(a.method,E,v,a.body,s))}throw C}})}var eb=function(a,n){var i={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&n.indexOf(u)<0&&(i[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(a);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(a,u[s])&&(i[u[s]]=a[u[s]]);return i};function ls(a){return typeof a=="object"&&!!a&&"id"in a&&"type"in a}function Ef(a){return Array.isArray(a)&&a.every(ls)}function ue(a,n){if(typeof a!="object"||!a)throw new Error("Invalid body!");if(Array.isArray(a))return{data:a.map(h=>{var v;return(v=ue(h,n))===null||v===void 0?void 0:v.data})};const i=a,{id:u,type:s,meta:c}=i,d=eb(i,["id","type","meta"]),p={},m={};if(n.attributes==="*")for(const[h,v]of Object.entries(d))if(n.relationships.includes(h))if(ls(v)){const{id:y,type:b}=v;m[h]={data:{id:y,type:b}}}else Ef(v)?m[h]={data:v.map(({id:y,type:b})=>({id:y,type:b}))}:m[h]={data:null};else p[h]=v;else if(n.relationships==="*")for(const[h,v]of Object.entries(d))if(n.attributes.includes(h))p[h]=v;else if(ls(v)){const{id:y,type:b}=v;m[h]={data:{id:y,type:b}}}else Ef(v)?m[h]={data:v.map(({id:y,type:b})=>({id:y,type:b}))}:m[h]={data:null};else{for(const[h,v]of Object.entries(d))if(n.attributes.includes(h))p[h]=v;else if(n.relationships.includes(h))if(ls(v)){const{id:y,type:b}=v;m[h]={data:{id:y,type:b}}}else Ef(v)?m[h]={data:v.map(({id:y,type:b})=>({id:y,type:b}))}:m[h]={data:null};n.attributes.includes("type")&&(p.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(p).length>0?{attributes:p}:{}),Object.keys(m).length>0?{relationships:m}:{}),c?{meta:c}:{})}}function Wf(a){if(Array.isArray(a))return a.map(Wf);if(a&&typeof a=="object"){const n={};for(const[i,u]of Object.entries(a))i!=="__itemTypeId"&&(n[i]=Wf(u));return n}return a}function xy(a){if(!a||typeof a!="object")return a;const{__itemTypeId:n}=a,i=eb(a,["__itemTypeId"]),u={};for(const[s,c]of Object.entries(i))u[s]=Wf(c);return u}function Ku(a){return!a||!("data"in a)?a:Array.isArray(a.data)?Object.assign(Object.assign({},a),{data:a.data.map(xy)}):Object.assign(Object.assign({},a),{data:xy(a.data)})}function F(a){return typeof a=="string"?a:a.id}class Ee{constructor(n){this.client=n}}class tb extends Ee{create(n){return this.rawCreate(ue(n,{type:"role",attributes:["name","can_edit_favicon","can_edit_site","can_edit_schema","can_manage_menu","can_edit_environment","can_promote_environments","environments_access","can_manage_users","can_manage_shared_filters","can_manage_search_indexes","can_manage_upload_collections","can_manage_build_triggers","can_manage_webhooks","can_manage_environments","can_manage_sso","can_access_audit_log","can_manage_workflows","can_manage_access_tokens","can_perform_site_search","can_access_build_events_log","can_access_search_index_events_log","positive_item_type_permissions","negative_item_type_permissions","positive_upload_permissions","negative_upload_permissions","positive_build_trigger_permissions","negative_build_trigger_permissions","positive_search_index_permissions","negative_search_index_permissions"],relationships:["inherits_permissions_from"]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/roles",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(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=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/roles/${n}`,body:i})}list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/roles"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/roles/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/roles/${n}`})}duplicate(n){return this.rawDuplicate(F(n)).then(i=>z(i))}rawDuplicate(n){return this.client.request({method:"POST",url:`/roles/${n}/duplicate`})}}tb.TYPE="role";var px=function(a,n,i,u){function s(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(v){try{h(u.next(v))}catch(y){d(y)}}function m(v){try{h(u.throw(v))}catch(y){d(y)}}function h(v){v.done?c(v.value):s(v.value).then(p,m)}h((u=u.apply(a,n||[])).next())})};function Ay(a,n){return a==null&&n==null?!0:a===n}function vx(a,n){for(const i in a)if(!Ay(a[i],n[i]))return!1;for(const i in n)if(!Ay(a[i],n[i]))return!1;return!0}function Ju(a,n,i,u){if(!n)return a;const{add:s,remove:c}=n;return[...c?c.reduce((d,p)=>{const m=Object.assign(Object.assign({},p),{environment:i}),h=d.find(v=>vx(v,m));if(!h)throw new Error(`Cannot find rule ${JSON.stringify(m)} to remove in ${u}!`);return d.filter(v=>v!==h)},a):a,...s?s.map(d=>Object.assign({environment:i},d)):[]]}class yx extends tb{updateCurrentEnvironmentPermissions(n,i){return px(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),c=!!(i.positive_item_type_permissions||i.negative_item_type_permissions),d=!!(i.positive_upload_permissions||i.negative_upload_permissions),p=Object.assign(Object.assign({},c?{positive_item_type_permissions:Ju(s.positive_item_type_permissions,i.positive_item_type_permissions,u,"positive_item_type_permissions"),negative_item_type_permissions:Ju(s.negative_item_type_permissions,i.negative_item_type_permissions,u,"negative_item_type_permissions")}:{}),d?{positive_upload_permissions:Ju(s.positive_upload_permissions,i.positive_upload_permissions,u,"positive_upload_permissions"),negative_upload_permissions:Ju(s.negative_upload_permissions,i.negative_upload_permissions,u,"negative_upload_permissions")}:{});return this.update(n,p)})}}class nb extends Ee{update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"user",attributes:["is_active"],relationships:["role"]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/users/${n}`,body:i})}list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/users"})}find(n,i){return this.rawFind(F(n),i).then(u=>z(u))}rawFind(n,i){return this.client.request({method:"GET",url:`/users/${n}`,queryParams:i})}findMe(n){return this.rawFindMe(n).then(i=>z(i))}rawFindMe(n){return this.client.request({method:"GET",url:"/users/me",queryParams:n})}destroy(n,i){return this.rawDestroy(F(n),i).then(u=>z(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/users/${n}`,queryParams:i})}}nb.TYPE="user";class ab extends Ee{list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/sso-users"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/sso-users/${n}`})}copyUsers(){return this.rawCopyUsers().then(n=>z(n))}rawCopyUsers(){return this.client.request({method:"POST",url:"/sso-users/copy-users"})}destroy(n,i){return this.rawDestroy(F(n),i).then(u=>z(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/sso-users/${n}`,queryParams:i})}}ab.TYPE="sso_user";class rb extends Ee{query(n){return this.rawQuery(ue(n,{type:"audit_log_query",attributes:["filter","next_token","detailed_log"],relationships:[]})).then(i=>z(i))}rawQuery(n){return this.client.request({method:"POST",url:"/audit-log-events/query",body:n})}}rb.TYPE="audit_log_event";class ib extends Ee{create(n){return this.rawCreate(ue(n,{type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/menu-items",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"menu_item",attributes:["label","external_url","position","open_in_new_tab"],relationships:["item_type","item_type_filter","parent"]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/menu-items/${n}`,body:i})}list(n){return this.rawList(n).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:"/menu-items",queryParams:n})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/menu-items/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/menu-items/${n}`})}reorder(n){return this.rawReorder(ue(n,{type:"menu_item",attributes:["position"],relationships:["parent"]})).then(i=>z(i))}rawReorder(n){return this.client.request({method:"POST",url:"/menu-items/reorder",body:n})}}ib.TYPE="menu_item";class lb extends Ee{create(n){return this.rawCreate(ue(n,{type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent"]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/schema-menu-items",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"schema_menu_item",attributes:["label","position","kind"],relationships:["item_type","parent","children"]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/schema-menu-items/${n}`,body:i})}list(n){return this.rawList(n).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:"/schema-menu-items",queryParams:n})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/schema-menu-items/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/schema-menu-items/${n}`})}reorder(n){return this.rawReorder(ue(n,{type:"schema_menu_item",attributes:["position"],relationships:["parent"]})).then(i=>z(i))}rawReorder(n){return this.client.request({method:"POST",url:"/schema-menu-items/reorder",body:n})}}lb.TYPE="schema_menu_item";class ub extends Ee{create(n){return this.rawCreate(ue(n,{type:"upload_collection",attributes:["label","position"],relationships:["parent"]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-collections",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"upload_collection",attributes:["label","position"],relationships:["parent","children"]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/upload-collections/${n}`,body:i})}list(n){return this.rawList(n).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:"/upload-collections",queryParams:n})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/upload-collections/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/upload-collections/${n}`})}reorder(n){return this.rawReorder(ue(n,{type:"upload_collection",attributes:["position"],relationships:["parent"]})).then(i=>z(i))}rawReorder(n){return this.client.request({method:"POST",url:"/upload-collections/reorder",body:n})}}ub.TYPE="upload_collection";class sb extends Ee{create(n,i){return this.rawCreate(ue(n,{type:"item_type",attributes:["name","api_key","singleton","all_locales_required","sortable","modular_block","draft_mode_active","draft_saving_active","tree","ordering_direction","ordering_meta","collection_appeareance","collection_appearance","hint","inverse_relationships_enabled"],relationships:["ordering_field","presentation_title_field","presentation_image_field","title_field","image_preview_field","excerpt_field","workflow"]}),i).then(u=>z(u))}rawCreate(n,i){return this.client.request({method:"POST",url:"/item-types",body:n,queryParams:i})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(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=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/item-types/${n}`,body:i})}list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/item-types"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/item-types/${n}`})}duplicate(n){return this.rawDuplicate(F(n)).then(i=>z(i))}rawDuplicate(n){return this.client.request({method:"POST",url:`/item-types/${n}/duplicate`})}destroy(n,i){return this.rawDestroy(F(n),i).then(u=>z(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/item-types/${n}`,queryParams:i})}referencing(n){return this.rawReferencing(F(n)).then(i=>z(i))}rawReferencing(n){return this.client.request({method:"GET",url:`/item-types/${n}/referencing`})}rawReorderFieldsAndFieldsets(n,i){return this.client.request({method:"POST",url:`/item-types/${n}/reorder-fields-and-fieldsets`,body:i})}}sb.TYPE="item_type";class ob extends Ee{create(n,i){return this.rawCreate(F(n),ue(i,{type:"field",attributes:["label","field_type","api_key","localized","validators","appeareance","appearance","position","hint","default_value","deep_filtering_enabled"],relationships:["fieldset"]})).then(u=>z(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/item-types/${n}/fields`,body:i})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"field",attributes:["default_value","label","api_key","localized","validators","appeareance","appearance","position","field_type","hint","deep_filtering_enabled"],relationships:["fieldset"]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/fields/${n}`,body:i})}list(n){return this.rawList(F(n)).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields`})}referencing(n){return this.rawReferencing(F(n)).then(i=>z(i))}rawReferencing(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields/referencing`})}related(n){return this.rawRelated(F(n)).then(i=>z(i))}rawRelated(n){return this.client.request({method:"GET",url:`/item-types/${n}/fields/related`})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/fields/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/fields/${n}`})}duplicate(n){return this.rawDuplicate(F(n)).then(i=>z(i))}rawDuplicate(n){return this.client.request({method:"POST",url:`/fields/${n}/duplicate`})}}ob.TYPE="field";class cb extends Ee{create(n,i){return this.rawCreate(F(n),ue(i,{type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(u=>z(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/item-types/${n}/fieldsets`,body:i})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"fieldset",attributes:["title","hint","position","collapsible","start_collapsed"],relationships:[]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/fieldsets/${n}`,body:i})}list(n){return this.rawList(F(n)).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:`/item-types/${n}/fieldsets`})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/fieldsets/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/fieldsets/${n}`})}}cb.TYPE="fieldset";class fb extends Ee{create(n){return this.rawCreate(ue(n,{type:"email_credentials",attributes:["email","password","otp_code"],relationships:[]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/sessions",body:n})}}fb.TYPE="session";class db extends Ee{create(n){return this.rawCreate(ue(n,{type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/access_tokens",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"access_token",attributes:["name","can_access_cda","can_access_cda_preview","can_access_cma"],relationships:["role"]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/access_tokens/${n}`,body:i})}list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/access_tokens"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/access_tokens/${n}`})}regenerateToken(n){return this.rawRegenerateToken(F(n)).then(i=>z(i))}rawRegenerateToken(n){return this.client.request({method:"POST",url:`/access_tokens/${n}/regenerate_token`})}destroy(n,i){return this.rawDestroy(F(n),i).then(u=>z(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/access_tokens/${n}`,queryParams:i})}}db.TYPE="access_token";class hb extends Ee{create(n){return this.rawCreate(ue(n,{type:"plugin",attributes:["package_name","name","description","url","permissions","plugin_type","field_types","parameter_definitions","package_version"],relationships:[]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/plugins",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"plugin",attributes:["name","description","url","parameters","package_version","permissions"],relationships:[]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/plugins/${n}`,body:i})}list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/plugins"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/plugins/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/plugins/${n}`})}fields(n){return this.rawFields(F(n)).then(i=>z(i))}rawFields(n){return this.client.request({method:"GET",url:`/plugins/${n}/fields`})}}hb.TYPE="plugin";class mb extends Ee{find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/job-results/${n}`})}}mb.TYPE="job_result";class pb extends Ee{list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/subscription-limits"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/subscription-limits/${n}`})}}pb.TYPE="subscription_limit";class vb extends Ee{list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/subscription-features"})}}vb.TYPE="subscription_feature";var gx=function(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=a[Symbol.asyncIterator],i;return n?n.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=a[c]&&function(d){return new Promise(function(p,m){d=a[c](d),s(p,m,d.done,d.value)})}}function s(c,d,p,m){Promise.resolve(m).then(function(h){c({value:h,done:p})},d)}},Gr=function(a){return this instanceof Gr?(this.v=a,this):new Gr(a)},bx=function(a,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(a,n||[]),s,c=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(_){return new Promise(function(E,C){c.push([b,_,E,C])>1||p(b,_)})})}function p(b,_){try{m(u[b](_))}catch(E){y(c[0][3],E)}}function m(b){b.value instanceof Gr?Promise.resolve(b.value.v).then(h,v):y(c[0][2],b)}function h(b){p("next",b)}function v(b){p("throw",b)}function y(b,_){b(_),c.shift(),c.length&&p(c[0][0],c[0][1])}};class yb extends Ee{list(n){return this.rawList(n).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:"/build-events",queryParams:n})}listPagedIterator(n,i){return bx(this,arguments,function*(){var s,c,d,p;try{for(var m=!0,h=gx(this.rawListPagedIterator(n,i)),v;v=yield Gr(h.next()),s=v.done,!s;){p=v.value,m=!1;try{yield yield Gr(pn(p))}finally{m=!0}}}catch(y){c={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield Gr(d.call(h)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return Kn(n),Wn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/build-events/${n}`})}}yb.TYPE="build_event";var _x=function(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=a[Symbol.asyncIterator],i;return n?n.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=a[c]&&function(d){return new Promise(function(p,m){d=a[c](d),s(p,m,d.done,d.value)})}}function s(c,d,p,m){Promise.resolve(m).then(function(h){c({value:h,done:p})},d)}},kr=function(a){return this instanceof kr?(this.v=a,this):new kr(a)},Sx=function(a,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(a,n||[]),s,c=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(_){return new Promise(function(E,C){c.push([b,_,E,C])>1||p(b,_)})})}function p(b,_){try{m(u[b](_))}catch(E){y(c[0][3],E)}}function m(b){b.value instanceof kr?Promise.resolve(b.value.v).then(h,v):y(c[0][2],b)}function h(b){p("next",b)}function v(b){p("throw",b)}function y(b,_){b(_),c.shift(),c.length&&p(c[0][0],c[0][1])}};class gb extends Ee{list(n){return this.rawList(n).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:"/search-index-events",queryParams:n})}listPagedIterator(n,i){return Sx(this,arguments,function*(){var s,c,d,p;try{for(var m=!0,h=_x(this.rawListPagedIterator(n,i)),v;v=yield kr(h.next()),s=v.done,!s;){p=v.value,m=!1;try{yield yield kr(pn(p))}finally{m=!0}}}catch(y){c={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield kr(d.call(h)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return Kn(n),Wn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/search-index-events/${n}`})}}gb.TYPE="search_index_event";var wx=function(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=a[Symbol.asyncIterator],i;return n?n.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=a[c]&&function(d){return new Promise(function(p,m){d=a[c](d),s(p,m,d.done,d.value)})}}function s(c,d,p,m){Promise.resolve(m).then(function(h){c({value:h,done:p})},d)}},$r=function(a){return this instanceof $r?(this.v=a,this):new $r(a)},Ex=function(a,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(a,n||[]),s,c=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(_){return new Promise(function(E,C){c.push([b,_,E,C])>1||p(b,_)})})}function p(b,_){try{m(u[b](_))}catch(E){y(c[0][3],E)}}function m(b){b.value instanceof $r?Promise.resolve(b.value.v).then(h,v):y(c[0][2],b)}function h(b){p("next",b)}function v(b){p("throw",b)}function y(b,_){b(_),c.shift(),c.length&&p(c[0][0],c[0][1])}};class bb extends Ee{list(n){return this.rawList(n).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:"/items",queryParams:n}).then(ln)}listPagedIterator(n,i){return Ex(this,arguments,function*(){var s,c,d,p;try{for(var m=!0,h=wx(this.rawListPagedIterator(n,i)),v;v=yield $r(h.next()),s=v.done,!s;){p=v.value,m=!1;try{yield yield $r(pn(p))}finally{m=!0}}}catch(y){c={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield $r(d.call(h)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return Kn(n),Wn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i,!0)}validateExisting(n,i){return this.rawValidateExisting(F(n),ue(i,{id:F(n),type:"item",attributes:"*",relationships:["item_type","creator"]}))}rawValidateExisting(n,i){return this.client.request({method:"POST",url:`/items/${n}/validate`,body:Ku(i)})}validateNew(n){return this.rawValidateNew(ue(n,{type:"item",attributes:"*",relationships:["item_type","creator"]}))}rawValidateNew(n){return this.client.request({method:"POST",url:"/items/validate",body:Ku(n)})}create(n){return this.rawCreate(ue(n,{type:"item",attributes:"*",relationships:["item_type","creator"]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/items",body:Ku(n)}).then(ln)}duplicate(n){return this.rawDuplicate(F(n)).then(i=>z(i))}rawDuplicate(n){return this.client.request({method:"POST",url:`/items/${n}/duplicate`}).then(ln)}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"item",attributes:"*",relationships:["item_type","creator"]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/items/${n}`,body:Ku(i)}).then(ln)}references(n,i){return this.rawReferences(F(n),i).then(u=>z(u))}rawReferences(n,i){return this.client.request({method:"GET",url:`/items/${n}/references`,queryParams:i}).then(ln)}find(n,i){return this.rawFind(F(n),i).then(u=>z(u))}rawFind(n,i){return this.client.request({method:"GET",url:`/items/${n}`,queryParams:i}).then(ln)}currentVsPublishedState(n){return this.rawCurrentVsPublishedState(F(n)).then(i=>z(i))}rawCurrentVsPublishedState(n){return this.client.request({method:"GET",url:`/items/${n}/current-vs-published-state`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}`}).then(ln)}publish(n,i,u){return this.rawPublish(F(n),i?ue(i,{type:"selective_publish_operation",attributes:["content_in_locales","non_localized_content"],relationships:[]}):null,u).then(s=>z(s))}rawPublish(n,i,u){return this.client.request({method:"PUT",url:`/items/${n}/publish`,body:i,queryParams:u}).then(ln)}unpublish(n,i,u){return this.rawUnpublish(F(n),i?ue(i,{type:"selective_unpublish_operation",attributes:["content_in_locales"],relationships:[]}):null,u).then(s=>z(s))}rawUnpublish(n,i,u){return this.client.request({method:"PUT",url:`/items/${n}/unpublish`,body:i,queryParams:u}).then(ln)}bulkPublish(n){return this.rawBulkPublish(ue(n,{type:"item_bulk_publish_operation",attributes:[],relationships:["items"]})).then(i=>z(i))}rawBulkPublish(n){return this.client.request({method:"POST",url:"/items/bulk/publish",body:n})}bulkUnpublish(n){return this.rawBulkUnpublish(ue(n,{type:"item_bulk_unpublish_operation",attributes:[],relationships:["items"]})).then(i=>z(i))}rawBulkUnpublish(n){return this.client.request({method:"POST",url:"/items/bulk/unpublish",body:n})}bulkDestroy(n){return this.rawBulkDestroy(ue(n,{type:"item_bulk_destroy_operation",attributes:[],relationships:["items"]})).then(i=>z(i))}rawBulkDestroy(n){return this.client.request({method:"POST",url:"/items/bulk/destroy",body:n})}bulkMoveToStage(n){return this.rawBulkMoveToStage(ue(n,{type:"item_bulk_move_to_stage_operation",attributes:["stage"],relationships:["items"]})).then(i=>z(i))}rawBulkMoveToStage(n){return this.client.request({method:"POST",url:"/items/bulk/move-to-stage",body:n})}}bb.TYPE="item";var Cx=function(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=a[Symbol.asyncIterator],i;return n?n.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=a[c]&&function(d){return new Promise(function(p,m){d=a[c](d),s(p,m,d.done,d.value)})}}function s(c,d,p,m){Promise.resolve(m).then(function(h){c({value:h,done:p})},d)}},Pr=function(a){return this instanceof Pr?(this.v=a,this):new Pr(a)},Ox=function(a,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(a,n||[]),s,c=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(_){return new Promise(function(E,C){c.push([b,_,E,C])>1||p(b,_)})})}function p(b,_){try{m(u[b](_))}catch(E){y(c[0][3],E)}}function m(b){b.value instanceof Pr?Promise.resolve(b.value.v).then(h,v):y(c[0][2],b)}function h(b){p("next",b)}function v(b){p("throw",b)}function y(b,_){b(_),c.shift(),c.length&&p(c[0][0],c[0][1])}};class _b extends Ee{restore(n){return this.rawRestore(F(n)).then(i=>z(i))}rawRestore(n){return this.client.request({method:"POST",url:`/versions/${n}/restore`})}list(n,i){return this.rawList(F(n),i).then(u=>z(u))}rawList(n,i){return this.client.request({method:"GET",url:`/items/${n}/versions`,queryParams:i})}listPagedIterator(n,i,u){return Ox(this,arguments,function*(){var c,d,p,m;try{for(var h=!0,v=Cx(this.rawListPagedIterator(F(n),i,u)),y;y=yield Pr(v.next()),c=y.done,!c;){m=y.value,h=!1;try{yield yield Pr(pn(m))}finally{h=!0}}}catch(b){d={error:b}}finally{try{!h&&!c&&(p=v.return)&&(yield Pr(p.call(v)))}finally{if(d)throw d.error}}})}rawListPagedIterator(n,i,u){return Kn(i),Wn({defaultLimit:15,maxLimit:50},s=>this.rawList(n,Object.assign(Object.assign({},i),{page:s})),u)}find(n,i){return this.rawFind(F(n),i).then(u=>z(u))}rawFind(n,i){return this.client.request({method:"GET",url:`/versions/${n}`,queryParams:i})}}_b.TYPE="item_version";var Tx=function(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=a[Symbol.asyncIterator],i;return n?n.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=a[c]&&function(d){return new Promise(function(p,m){d=a[c](d),s(p,m,d.done,d.value)})}}function s(c,d,p,m){Promise.resolve(m).then(function(h){c({value:h,done:p})},d)}},Ir=function(a){return this instanceof Ir?(this.v=a,this):new Ir(a)},xx=function(a,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(a,n||[]),s,c=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(_){return new Promise(function(E,C){c.push([b,_,E,C])>1||p(b,_)})})}function p(b,_){try{m(u[b](_))}catch(E){y(c[0][3],E)}}function m(b){b.value instanceof Ir?Promise.resolve(b.value.v).then(h,v):y(c[0][2],b)}function h(b){p("next",b)}function v(b){p("throw",b)}function y(b,_){b(_),c.shift(),c.length&&p(c[0][0],c[0][1])}};let vd=class extends Ee{create(n){return this.rawCreate(ue(n,{type:"upload",attributes:["path","copyright","author","notes","default_field_metadata","tags"],relationships:["upload_collection"]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/uploads",body:n})}list(n){return this.rawList(n).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:"/uploads",queryParams:n})}listPagedIterator(n,i){return xx(this,arguments,function*(){var s,c,d,p;try{for(var m=!0,h=Tx(this.rawListPagedIterator(n,i)),v;v=yield Ir(h.next()),s=v.done,!s;){p=v.value,m=!1;try{yield yield Ir(pn(p))}finally{m=!0}}}catch(y){c={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield Ir(d.call(h)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return Kn(n),Wn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/uploads/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/uploads/${n}`})}update(n,i,u){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"upload",attributes:["path","basename","copyright","author","notes","tags","default_field_metadata"],relationships:["creator","upload_collection"]}),u).then(s=>z(s))}rawUpdate(n,i,u){return this.client.request({method:"PUT",url:`/uploads/${n}`,body:i,queryParams:u})}references(n,i){return this.rawReferences(F(n),i).then(u=>z(u))}rawReferences(n,i){return this.client.request({method:"GET",url:`/uploads/${n}/references`,queryParams:i}).then(ln)}bulkTag(n){return this.rawBulkTag(ue(n,{type:"upload_bulk_tag_operation",attributes:["tags"],relationships:["uploads"]})).then(i=>z(i))}rawBulkTag(n){return this.client.request({method:"POST",url:"/uploads/bulk/tag",body:n})}bulkSetUploadCollection(n){return this.rawBulkSetUploadCollection(ue(n,{type:"upload_bulk_set_upload_collection_operation",attributes:[],relationships:["upload_collection","uploads"]})).then(i=>z(i))}rawBulkSetUploadCollection(n){return this.client.request({method:"POST",url:"/uploads/bulk/set-upload-collection",body:n})}bulkDestroy(n){return this.rawBulkDestroy(ue(n,{type:"upload_bulk_destroy_operation",attributes:[],relationships:["uploads"]})).then(i=>z(i))}rawBulkDestroy(n){return this.client.request({method:"POST",url:"/uploads/bulk/destroy",body:n})}};vd.TYPE="upload";class Sb extends Ee{create(n){return this.rawCreate(ue(n,{type:"upload_request",attributes:["filename"],relationships:["upload_collection"]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-requests",body:n})}}Sb.TYPE="upload_request";class wb extends Ee{create(n,i){return this.rawCreate(F(n),ue(i,{type:"upload_track",attributes:["url_or_upload_request_id","type","name","language_code","closed_captions"],relationships:[]})).then(u=>z(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/uploads/${n}/tracks`,body:i})}list(n){return this.rawList(F(n)).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:`/uploads/${n}/tracks`})}destroy(n,i){return this.rawDestroy(F(n),F(i)).then(u=>z(u))}rawDestroy(n,i){return this.client.request({method:"DELETE",url:`/uploads/${n}/tracks/${i}`})}generateSubtitles(n,i){return this.rawGenerateSubtitles(F(n),ue(i,{type:"upload_track",attributes:["name","language_code"],relationships:[]})).then(u=>z(u))}rawGenerateSubtitles(n,i){return this.client.request({method:"POST",url:`/uploads/${n}/tracks/generate-subtitles`,body:i})}}wb.TYPE="upload_track";class Eb extends Ee{create(n,i){return this.rawCreate(F(n),ue(i,{type:"scheduled_publication",attributes:["publication_scheduled_at","selective_publication"],relationships:[]})).then(u=>z(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/items/${n}/scheduled-publication`,body:i})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}/scheduled-publication`}).then(ln)}}Eb.TYPE="scheduled_publication";class Cb extends Ee{create(n,i){return this.rawCreate(F(n),ue(i,{type:"scheduled_unpublishing",attributes:["unpublishing_scheduled_at","content_in_locales"],relationships:[]})).then(u=>z(u))}rawCreate(n,i){return this.client.request({method:"POST",url:`/items/${n}/scheduled-unpublishing`,body:i})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/items/${n}/scheduled-unpublishing`}).then(ln)}}Cb.TYPE="scheduled_unpublishing";var Ax=function(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=a[Symbol.asyncIterator],i;return n?n.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=a[c]&&function(d){return new Promise(function(p,m){d=a[c](d),s(p,m,d.done,d.value)})}}function s(c,d,p,m){Promise.resolve(m).then(function(h){c({value:h,done:p})},d)}},Fr=function(a){return this instanceof Fr?(this.v=a,this):new Fr(a)},Rx=function(a,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(a,n||[]),s,c=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(_){return new Promise(function(E,C){c.push([b,_,E,C])>1||p(b,_)})})}function p(b,_){try{m(u[b](_))}catch(E){y(c[0][3],E)}}function m(b){b.value instanceof Fr?Promise.resolve(b.value.v).then(h,v):y(c[0][2],b)}function h(b){p("next",b)}function v(b){p("throw",b)}function y(b,_){b(_),c.shift(),c.length&&p(c[0][0],c[0][1])}};class Ob extends Ee{list(n){return this.rawList(n).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:"/search-results",queryParams:n})}listPagedIterator(n,i){return Rx(this,arguments,function*(){var s,c,d,p;try{for(var m=!0,h=Ax(this.rawListPagedIterator(n,i)),v;v=yield Fr(h.next()),s=v.done,!s;){p=v.value,m=!1;try{yield yield Fr(pn(p))}finally{m=!0}}}catch(y){c={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield Fr(d.call(h)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return Kn(n),Wn({defaultLimit:20,maxLimit:100},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}}Ob.TYPE="search_result";class Tb extends Ee{fork(n,i,u){return this.rawFork(F(n),ue(i,{id:F(n),type:"environment",attributes:[],relationships:[]}),u).then(s=>z(s))}rawFork(n,i,u){return this.client.request({method:"POST",url:`/environments/${n}/fork`,body:i,queryParams:u})}promote(n){return this.rawPromote(F(n)).then(i=>z(i))}rawPromote(n){return this.client.request({method:"PUT",url:`/environments/${n}/promote`})}rename(n,i){return this.rawRename(F(n),ue(i,{id:F(n),type:"environment",attributes:[],relationships:[]})).then(u=>z(u))}rawRename(n,i){return this.client.request({method:"PUT",url:`/environments/${n}/rename`,body:i})}list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/environments"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/environments/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/environments/${n}`})}}Tb.TYPE="environment";class xb extends Ee{find(){return this.rawFind().then(n=>z(n))}rawFind(){return this.client.request({method:"GET",url:"/maintenance-mode"})}activate(n){return this.rawActivate(n).then(i=>z(i))}rawActivate(n){return this.client.request({method:"PUT",url:"/maintenance-mode/activate",queryParams:n})}deactivate(){return this.rawDeactivate().then(n=>z(n))}rawDeactivate(){return this.client.request({method:"PUT",url:"/maintenance-mode/deactivate"})}}xb.TYPE="maintenance_mode";class Ab extends Ee{create(n){return this.rawCreate(ue(n,{type:"webhook",attributes:["name","url","custom_payload","headers","events","http_basic_user","http_basic_password","enabled","payload_api_version","nested_items_in_payload","auto_retry"],relationships:[]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/webhooks",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(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=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/webhooks/${n}`,body:i})}list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/webhooks"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/webhooks/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/webhooks/${n}`})}}Ab.TYPE="webhook";var Dx=function(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=a[Symbol.asyncIterator],i;return n?n.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=a[c]&&function(d){return new Promise(function(p,m){d=a[c](d),s(p,m,d.done,d.value)})}}function s(c,d,p,m){Promise.resolve(m).then(function(h){c({value:h,done:p})},d)}},Yr=function(a){return this instanceof Yr?(this.v=a,this):new Yr(a)},Mx=function(a,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(a,n||[]),s,c=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(_){return new Promise(function(E,C){c.push([b,_,E,C])>1||p(b,_)})})}function p(b,_){try{m(u[b](_))}catch(E){y(c[0][3],E)}}function m(b){b.value instanceof Yr?Promise.resolve(b.value.v).then(h,v):y(c[0][2],b)}function h(b){p("next",b)}function v(b){p("throw",b)}function y(b,_){b(_),c.shift(),c.length&&p(c[0][0],c[0][1])}};class Rb extends Ee{list(n){return this.rawList(n).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:"/webhook_calls",queryParams:n})}listPagedIterator(n,i){return Mx(this,arguments,function*(){var s,c,d,p;try{for(var m=!0,h=Dx(this.rawListPagedIterator(n,i)),v;v=yield Yr(h.next()),s=v.done,!s;){p=v.value,m=!1;try{yield yield Yr(pn(p))}finally{m=!0}}}catch(y){c={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield Yr(d.call(h)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return Kn(n),Wn({defaultLimit:30,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/webhook_calls/${n}`})}resendWebhook(n){return this.rawResendWebhook(F(n))}rawResendWebhook(n){return this.client.request({method:"POST",url:`/webhook_calls/${n}/resend_webhook`})}}Rb.TYPE="webhook_call";class Db extends Ee{list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/build-triggers"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/build-triggers/${n}`})}create(n){return this.rawCreate(ue(n,{type:"build_trigger",attributes:["name","webhook_token","adapter","indexing_enabled","enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/build-triggers",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"build_trigger",attributes:["name","adapter","indexing_enabled","enabled","frontend_url","autotrigger_on_scheduled_publications","adapter_settings"],relationships:[]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/build-triggers/${n}`,body:i})}trigger(n){return this.rawTrigger(F(n))}rawTrigger(n){return this.client.request({method:"POST",url:`/build-triggers/${n}/trigger`})}abort(n){return this.rawAbort(F(n))}rawAbort(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}/abort`})}abortIndexing(n){return this.rawAbortIndexing(F(n))}rawAbortIndexing(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}/abort_indexing`})}reindex(n){return this.rawReindex(F(n))}rawReindex(n){return this.client.request({method:"PUT",url:`/build-triggers/${n}/reindex`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/build-triggers/${n}`})}}Db.TYPE="build_trigger";class Mb extends Ee{list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/search-indexes"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/search-indexes/${n}`})}create(n){return this.rawCreate(ue(n,{type:"search_index",attributes:["name","enabled","frontend_url","user_agent_suffix"],relationships:["build_triggers"]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/search-indexes",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"search_index",attributes:["name","enabled","frontend_url","user_agent_suffix"],relationships:["build_triggers"]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/search-indexes/${n}`,body:i})}trigger(n){return this.rawTrigger(F(n))}rawTrigger(n){return this.client.request({method:"POST",url:`/search-indexes/${n}/trigger`})}abort(n){return this.rawAbort(F(n))}rawAbort(n){return this.client.request({method:"DELETE",url:`/search-indexes/${n}/abort`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/search-indexes/${n}`})}}Mb.TYPE="search_index";class jb extends Ee{create(n){return this.rawCreate(ue(n,{type:"item_type_filter",attributes:["name","filter","columns","order_by","shared"],relationships:["item_type"]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/item-type-filters",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"item_type_filter",attributes:["name","columns","order_by","shared","filter"],relationships:["item_type"]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/item-type-filters/${n}`,body:i})}list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/item-type-filters"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/item-type-filters/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/item-type-filters/${n}`})}}jb.TYPE="item_type_filter";class Lb extends Ee{create(n){return this.rawCreate(ue(n,{type:"upload_filter",attributes:["name","filter","shared"],relationships:[]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-filters",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"upload_filter",attributes:["name","shared","filter"],relationships:[]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/upload-filters/${n}`,body:i})}list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/upload-filters"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/upload-filters/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/upload-filters/${n}`})}}Lb.TYPE="upload_filter";class Nb extends Ee{create(n){return this.rawCreate(ue(n,{type:"site_invitation",attributes:["email"],relationships:["role"]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/site-invitations",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"site_invitation",attributes:[],relationships:["role"]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/site-invitations/${n}`,body:i})}list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/site-invitations"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/site-invitations/${n}`})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/site-invitations/${n}`})}resend(n){return this.rawResend(F(n)).then(i=>z(i))}rawResend(n){return this.client.request({method:"POST",url:`/site-invitations/${n}/resend`})}}Nb.TYPE="site_invitation";class zb extends Ee{list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/editing-sessions"})}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/editing-sessions/${n}`,body:i})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/editing-sessions/${n}`})}}zb.TYPE="editing_session";class qb extends Ee{list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/sso-groups"})}copyRoles(n){return this.rawCopyRoles(F(n)).then(i=>z(i))}rawCopyRoles(n){return this.client.request({method:"POST",url:`/sso-groups/${n}/copy-roles`})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"sso_group",attributes:["priority"],relationships:["role"]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/sso-groups/${n}`,body:i})}destroy(n){return this.rawDestroy(F(n)).then(i=>z(i))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/sso-groups/${n}`})}}qb.TYPE="sso_group";class Ub extends Ee{find(){return this.rawFind().then(n=>z(n))}rawFind(){return this.client.request({method:"GET",url:"/sso-settings"})}generateToken(){return this.rawGenerateToken().then(n=>z(n))}rawGenerateToken(){return this.client.request({method:"PUT",url:"/sso-settings/generate-token"})}update(n){return this.rawUpdate(ue(n,{type:"sso_settings",attributes:["idp_saml_metadata_url","idp_saml_metadata_xml"],relationships:["default_role"]})).then(i=>z(i))}rawUpdate(n){return this.client.request({method:"PUT",url:"/sso-settings",body:n})}}Ub.TYPE="sso_settings";class Hb extends Ee{find(n){return this.rawFind(n).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:"/emoji-suggestions",queryParams:n})}}Hb.TYPE="emoji_suggestions";class Vb extends Ee{find(){return this.rawFind().then(n=>z(n))}rawFind(){return this.client.request({method:"GET",url:"/white-label-settings"})}update(n){return this.rawUpdate(ue(n,{type:"white_label_settings",attributes:["custom_i18n_messages_template_url"],relationships:[]})).then(i=>z(i))}rawUpdate(n){return this.client.request({method:"PUT",url:"/white-label-settings",body:n})}}Vb.TYPE="white_label_settings";class Bb extends Ee{find(){return this.rawFind().then(n=>z(n))}rawFind(){return this.client.request({method:"GET",url:"/public-info"})}}Bb.TYPE="public_info";class Gb extends Ee{list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/daily-site-usages"})}}Gb.TYPE="daily_usage";class kb extends Ee{find(n,i){return this.rawFind(F(n),i).then(u=>z(u))}rawFind(n,i){return this.client.request({method:"GET",url:`/usage-log-counters/${n}`,queryParams:i})}}kb.TYPE="usage_counter";var jx=function(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=a[Symbol.asyncIterator],i;return n?n.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=a[c]&&function(d){return new Promise(function(p,m){d=a[c](d),s(p,m,d.done,d.value)})}}function s(c,d,p,m){Promise.resolve(m).then(function(h){c({value:h,done:p})},d)}},Xr=function(a){return this instanceof Xr?(this.v=a,this):new Xr(a)},Lx=function(a,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(a,n||[]),s,c=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(_){return new Promise(function(E,C){c.push([b,_,E,C])>1||p(b,_)})})}function p(b,_){try{m(u[b](_))}catch(E){y(c[0][3],E)}}function m(b){b.value instanceof Xr?Promise.resolve(b.value.v).then(h,v):y(c[0][2],b)}function h(b){p("next",b)}function v(b){p("throw",b)}function y(b,_){b(_),c.shift(),c.length&&p(c[0][0],c[0][1])}};class $b extends Ee{list(n){return this.rawList(n).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:"/upload-tags",queryParams:n})}listPagedIterator(n,i){return Lx(this,arguments,function*(){var s,c,d,p;try{for(var m=!0,h=jx(this.rawListPagedIterator(n,i)),v;v=yield Xr(h.next()),s=v.done,!s;){p=v.value,m=!1;try{yield yield Xr(pn(p))}finally{m=!0}}}catch(y){c={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield Xr(d.call(h)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return Kn(n),Wn({defaultLimit:50,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}create(n){return this.rawCreate(ue(n,{type:"upload_tag",attributes:["name"],relationships:[]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/upload-tags",body:n})}}$b.TYPE="upload_tag";var Nx=function(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=a[Symbol.asyncIterator],i;return n?n.call(a):(a=typeof __values=="function"?__values(a):a[Symbol.iterator](),i={},u("next"),u("throw"),u("return"),i[Symbol.asyncIterator]=function(){return this},i);function u(c){i[c]=a[c]&&function(d){return new Promise(function(p,m){d=a[c](d),s(p,m,d.done,d.value)})}}function s(c,d,p,m){Promise.resolve(m).then(function(h){c({value:h,done:p})},d)}},Qr=function(a){return this instanceof Qr?(this.v=a,this):new Qr(a)},zx=function(a,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=i.apply(a,n||[]),s,c=[];return s={},d("next"),d("throw"),d("return"),s[Symbol.asyncIterator]=function(){return this},s;function d(b){u[b]&&(s[b]=function(_){return new Promise(function(E,C){c.push([b,_,E,C])>1||p(b,_)})})}function p(b,_){try{m(u[b](_))}catch(E){y(c[0][3],E)}}function m(b){b.value instanceof Qr?Promise.resolve(b.value.v).then(h,v):y(c[0][2],b)}function h(b){p("next",b)}function v(b){p("throw",b)}function y(b,_){b(_),c.shift(),c.length&&p(c[0][0],c[0][1])}};class Pb extends Ee{list(n){return this.rawList(n).then(i=>z(i))}rawList(n){return this.client.request({method:"GET",url:"/upload-smart-tags",queryParams:n})}listPagedIterator(n,i){return zx(this,arguments,function*(){var s,c,d,p;try{for(var m=!0,h=Nx(this.rawListPagedIterator(n,i)),v;v=yield Qr(h.next()),s=v.done,!s;){p=v.value,m=!1;try{yield yield Qr(pn(p))}finally{m=!0}}}catch(y){c={error:y}}finally{try{!m&&!s&&(d=h.return)&&(yield Qr(d.call(h)))}finally{if(c)throw c.error}}})}rawListPagedIterator(n,i){return Kn(n),Wn({defaultLimit:50,maxLimit:500},u=>this.rawList(Object.assign(Object.assign({},n),{page:u})),i)}}Pb.TYPE="upload_smart_tag";class Ib extends Ee{find(n){return this.rawFind(n).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:"/site",queryParams:n})}update(n){return this.rawUpdate(ue(n,{type:"site",attributes:["no_index","favicon","global_seo","name","theme","locales","timezone","require_2fa","ip_tracking_enabled","force_use_of_sandbox_environments"],relationships:["sso_default_role"]})).then(i=>z(i))}rawUpdate(n){return this.client.request({method:"PUT",url:"/site",body:n})}activateImprovedTimezoneManagement(){return this.rawActivateImprovedTimezoneManagement().then(n=>z(n))}rawActivateImprovedTimezoneManagement(){return this.client.request({method:"PUT",url:"/site/activate-improved-timezone-management"})}activateImprovedHexManagement(){return this.rawActivateImprovedHexManagement().then(n=>z(n))}rawActivateImprovedHexManagement(){return this.client.request({method:"PUT",url:"/site/activate-improved-hex-management"})}activateImprovedGqlMultilocaleFields(){return this.rawActivateImprovedGqlMultilocaleFields().then(n=>z(n))}rawActivateImprovedGqlMultilocaleFields(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-multilocale-fields"})}activateImprovedGqlVisibilityControl(){return this.rawActivateImprovedGqlVisibilityControl().then(n=>z(n))}rawActivateImprovedGqlVisibilityControl(){return this.client.request({method:"PUT",url:"/site/activate-improved-gql-visibility-control"})}activateImprovedBooleanFields(){return this.rawActivateImprovedBooleanFields().then(n=>z(n))}rawActivateImprovedBooleanFields(){return this.client.request({method:"PUT",url:"/site/activate-improved-boolean-fields"})}activateDraftModeAsDefault(){return this.rawActivateDraftModeAsDefault().then(n=>z(n))}rawActivateDraftModeAsDefault(){return this.client.request({method:"PUT",url:"/site/activate-draft-mode-as-default"})}activateImprovedValidationAtPublishing(){return this.rawActivateImprovedValidationAtPublishing().then(n=>z(n))}rawActivateImprovedValidationAtPublishing(){return this.client.request({method:"PUT",url:"/site/activate-improved-validation-at-publishing"})}activateImprovedExposureOfInlineBlocksInCda(){return this.rawActivateImprovedExposureOfInlineBlocksInCda().then(n=>z(n))}rawActivateImprovedExposureOfInlineBlocksInCda(){return this.client.request({method:"PUT",url:"/site/activate-improved-exposure-of-inline-blocks-in-cda"})}activateImprovedItemsListing(){return this.rawActivateImprovedItemsListing().then(n=>z(n))}rawActivateImprovedItemsListing(){return this.client.request({method:"PUT",url:"/site/activate-improved-items-listing"})}activateMillisecondsInDatetime(){return this.rawActivateMillisecondsInDatetime().then(n=>z(n))}rawActivateMillisecondsInDatetime(){return this.client.request({method:"PUT",url:"/site/activate-milliseconds-in-datetime"})}updateAssetsCdnDefaultSettings(n){return this.rawUpdateAssetsCdnDefaultSettings(ue(n,{type:"assets-cdn-default-settings",attributes:["assets_cdn_default_settings"],relationships:[]})).then(i=>z(i))}rawUpdateAssetsCdnDefaultSettings(n){return this.client.request({method:"PUT",url:"/site/assets-cdn-default-settings",body:n})}}Ib.TYPE="site";class Fb extends Ee{create(n){return this.rawCreate(ue(n,{type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(i=>z(i))}rawCreate(n){return this.client.request({method:"POST",url:"/workflows",body:n})}update(n,i){return this.rawUpdate(F(n),ue(i,{id:F(n),type:"workflow",attributes:["name","api_key","stages"],relationships:[]})).then(u=>z(u))}rawUpdate(n,i){return this.client.request({method:"PUT",url:`/workflows/${n}`,body:i})}list(){return this.rawList().then(n=>z(n))}rawList(){return this.client.request({method:"GET",url:"/workflows"})}find(n){return this.rawFind(F(n)).then(i=>z(i))}rawFind(n){return this.client.request({method:"GET",url:`/workflows/${n}`})}destroy(n){return this.rawDestroy(F(n))}rawDestroy(n){return this.client.request({method:"DELETE",url:`/workflows/${n}`})}}Fb.TYPE="workflow";var qx=function(a,n,i,u){function s(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(v){try{h(u.next(v))}catch(y){d(y)}}function m(v){try{h(u.throw(v))}catch(y){d(y)}}function h(v){v.done?c(v.value):s(v.value).then(p,m)}h((u=u.apply(a,n||[])).next())})};let Yb=class Xb{constructor(n){this.config=n,this.roles=new yx(this),this.users=new nb(this),this.ssoUsers=new ab(this),this.auditLogEvents=new rb(this),this.menuItems=new ib(this),this.schemaMenuItems=new lb(this),this.uploadCollections=new ub(this),this.itemTypes=new sb(this),this.fields=new ob(this),this.fieldsets=new cb(this),this.session=new fb(this),this.accessTokens=new db(this),this.plugins=new hb(this),this.jobResults=new mb(this),this.subscriptionLimits=new pb(this),this.subscriptionFeatures=new vb(this),this.buildEvents=new yb(this),this.searchIndexEvents=new gb(this),this.items=new bb(this),this.itemVersions=new _b(this),this.uploads=new vd(this),this.uploadRequest=new Sb(this),this.uploadTracks=new wb(this),this.scheduledPublication=new Eb(this),this.scheduledUnpublishing=new Cb(this),this.searchResults=new Ob(this),this.environments=new Tb(this),this.maintenanceMode=new xb(this),this.webhooks=new Ab(this),this.webhookCalls=new Rb(this),this.buildTriggers=new Db(this),this.searchIndexes=new Mb(this),this.itemTypeFilters=new jb(this),this.uploadFilters=new Lb(this),this.siteInvitations=new Nb(this),this.editingSessions=new zb(this),this.ssoGroups=new qb(this),this.ssoSettings=new Ub(this),this.emojiSuggestions=new Hb(this),this.whiteLabelSettings=new Vb(this),this.publicInfo=new Bb(this),this.dailyUsages=new Gb(this),this.usageCounters=new kb(this),this.uploadTags=new $b(this),this.uploadSmartTags=new Pb(this),this.site=new Ib(this),this.workflows=new Fb(this)}get baseUrl(){return this.config.baseUrl||Xb.defaultBaseUrl}request(n){return is(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:i=>this.jobResultsFetcher?this.jobResultsFetcher(i):K2(()=>this.jobResults.find(i))}))}eventsChannelName(){return qx(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})}};Yb.defaultBaseUrl="https://site-api.datocms.com";function Ux(a,n,{onProgress:i,additionalHeaders:u}={}){const s=new XMLHttpRequest;return ol(new Promise((c,d)=>{if(i&&s.upload&&(s.upload.onprogress=p=>{p.lengthComputable&&i({type:"UPLOADING_FILE",payload:{progress:Math.round(p.loaded/p.total*100)}})}),s.onreadystatechange=()=>{s.readyState===4&&(s.status===200?c():d(new Error(`Status ${s.status}`)))},s.addEventListener("error",d,!1),s.open("PUT",n,!0),u)for(const[p,m]of Object.entries(u))s.setRequestHeader(p,m);s.send(a)}),()=>{s.onreadystatechange=null,s.abort()})}var Hx=function(a,n,i,u){function s(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(v){try{h(u.next(v))}catch(y){d(y)}}function m(v){try{h(u.throw(v))}catch(y){d(y)}}function h(v){v.done?c(v.value):s(v.value).then(p,m)}h((u=u.apply(a,n||[])).next())})};function Ry(a,n,i={}){const u=i.filename||("name"in n?n.name:void 0);if(!u)throw new Error("Missing filename, please provide it as an option!");let s=!1,c;return ol(()=>Hx(this,void 0,void 0,function*(){i.onProgress&&i?.onProgress({type:"REQUESTING_UPLOAD_URL",payload:{filename:u}});const{id:d,url:p,request_headers:m}=yield a.uploadRequest.create({filename:u});if(s)throw new sl;return i.onProgress&&i.onProgress({type:"UPLOADING_FILE",payload:{progress:0}}),c=Ux(n,p,Object.assign(Object.assign({},i),{additionalHeaders:m})),yield c,d}),()=>{c?c.cancel():s=!0})}var Dy=function(a,n,i,u){function s(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function p(v){try{h(u.next(v))}catch(y){d(y)}}function m(v){try{h(u.throw(v))}catch(y){d(y)}}function h(v){v.done?c(v.value):s(v.value).then(p,m)}h((u=u.apply(a,n||[])).next())})},My=function(a,n){var i={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&n.indexOf(u)<0&&(i[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,u=Object.getOwnPropertySymbols(a);s<u.length;s++)n.indexOf(u[s])<0&&Object.prototype.propertyIsEnumerable.call(a,u[s])&&(i[u[s]]=a[u[s]]);return i};class Vx extends vd{createFromFileOrBlob(n){let i=!1,u;return ol(()=>Dy(this,void 0,void 0,function*(){if(i)throw new sl;const{fileOrBlob:s,filename:c,onProgress:d}=n,p=My(n,["fileOrBlob","filename","onProgress"]);u=Ry(this.client,s,{filename:c,onProgress:d});const m=yield u;return d&&d({type:"CREATING_UPLOAD_OBJECT"}),this.create(Object.assign(Object.assign({},p),{path:m}))}),()=>{u?u.cancel():i=!0})}updateFromFileOrBlob(n,i){let u=!1,s;return ol(()=>Dy(this,void 0,void 0,function*(){if(u)throw new sl;const{fileOrBlob:c,filename:d,onProgress:p}=i,m=My(i,["fileOrBlob","filename","onProgress"]);s=Ry(this.client,c,{filename:d,onProgress:p});const h=yield s;return p&&p({type:"CREATING_UPLOAD_OBJECT"}),this.update(n,Object.assign(Object.assign({},m),{path:h}))}),()=>{s?s.cancel():u=!0})}}class Bx extends Yb{constructor(n){super(n),this.uploads=new Vx(this)}}function Gx(a){return new Bx(a)}async function kx(a,n,i,u){if(!n)throw new Error("Missing current user access token");return(await Gx({apiToken:n,environment:i,baseUrl:u}).uploads.rawFind(a)).data}function Qb(a,n,i=!1){const[u,s]=A.useState(null),[c,d]=A.useState(!1),[p,m]=A.useState(null);return A.useEffect(()=>{if(!n||i){s(null),d(!1),m(null);return}let h=!1;async function v(){d(!0),m(null);try{const y=await kx(n,a.currentUserAccessToken,a.environment,a.cmaBaseUrl);h||s(y)}catch(y){h||(m("Failed to load upload data"),console.error("Upload fetch error:",y))}finally{h||d(!1)}}return v(),()=>{h=!0}},[n,a.currentUserAccessToken,a.environment,a.cmaBaseUrl,i]),{upload:u,loading:c,error:p}}function jy(a){if(!a)return null;const n=a.split("?")[0]?.split("#")[0];if(!n)return null;const i=n.split(".");return i.length<2?null:i[i.length-1]?.trim().toLowerCase()||null}function $x(a){return a&&a.trim().toLowerCase()||null}function zs({format:a,url:n,filename:i}){return $x(a)||jy(n)||jy(i)}function Zb(a){if(!a)return!1;const n=a.toLowerCase();return n.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp","avif","svg"].includes(n)}function Wb(a){if(!a)return null;const n=a.toLowerCase();if(n.startsWith("image/")){const[,i]=n.split("/");return i||n}return n}const Px="_card_36c3e_1",Ix="_thumbnail_36c3e_19",Fx="_filePlaceholder_36c3e_35",Yx="_info_36c3e_47",Xx="_filename_36c3e_55",Qx="_dimensions_36c3e_64",Zx="_controls_36c3e_69",Wx="_actionStack_36c3e_80",Kx="_extraControls_36c3e_88",Jx="_controlButton_36c3e_95",eA="_customAspectRatioInput_36c3e_119",tA="_customAspectRatioField_36c3e_129",nA="_customWidthInput_36c3e_136",aA="_customWidthField_36c3e_146",rA="_inputError_36c3e_153",iA="_errorText_36c3e_157",lA="_cssClassInput_36c3e_183",uA="_lazyToggle_36c3e_217",sA="_toggleTrack_36c3e_247",oA="_toggleLabel_36c3e_288",cA="_toggleDisabled_36c3e_293",fA="_menuButton_36c3e_302",dA="_loadingState_36c3e_327",hA="_errorState_36c3e_335",mA="_removeButton_36c3e_344",Ne={card:Px,thumbnail:Ix,filePlaceholder:Fx,info:Yx,filename:Xx,dimensions:Qx,controls:Zx,actionStack:Wx,extraControls:Kx,controlButton:Jx,customAspectRatioInput:eA,customAspectRatioField:tA,customWidthInput:nA,customWidthField:aA,inputError:rA,errorText:iA,cssClassInput:lA,lazyToggle:uA,toggleTrack:sA,toggleLabel:oA,toggleDisabled:cA,menuButton:fA,loadingState:dA,errorState:hA,removeButton:mA};function pA(a,n){const i=a.url||n?.attributes.url||"",u=a.filename||n?.attributes.filename||"",s=zs({format:a.format??n?.attributes.format??null,url:i,filename:u}),c=a.originalWidth??n?.attributes.width??null,d=a.originalHeight??n?.attributes.height??null;return{url:i,filename:u,format:s,originalWidth:c,originalHeight:d}}function vA(a){const n=Tn.filter(m=>m.value!=="custom"),i=[...n,{value:"custom",label:"Custom..."}],u=n.map(m=>m.value),s=a.aspectRatio==="custom"||!u.includes(a.aspectRatio),c=a.aspectRatio==="custom"?a.customAspectRatio??"":s?a.aspectRatio:"",d=s?Ca(c):void 0,p=s?c||"Custom":Tn.find(m=>m.value===a.aspectRatio)?.label.split(" ")[0]||a.aspectRatio;return{aspectRatioOptions:i,isCustomAspectRatio:s,customAspectRatioValue:c,customAspectRatioError:d,aspectLabel:p}}function Kb({ctx:a,item:n,widthOptions:i,onLayoutChange:u,onRemove:s,onEditMetadata:c,onReplace:d,disabled:p,enableCssClass:m,enableLazyLoading:h}){const v=zs({format:n.format,url:n.url,filename:n.filename}),y=n.width==="original"||n.aspectRatio==="original",b=n.aspectRatio==="original",_=!n.url||!n.filename||!v||y&&!n.originalWidth||b&&!n.originalHeight,{upload:E,loading:C,error:T}=Qb(a,n.uploadId,!_),x=A.useMemo(()=>new Set(i.map(Q=>Q.value)),[i]),L=A.useMemo(()=>[...i,{value:"custom",label:"Custom..."}],[i]),U=typeof n.width=="number"&&!x.has(n.width),[R,O]=A.useState(U),[G,N]=A.useState(U?String(n.width):"");if(A.useEffect(()=>{typeof n.width=="number"&&!x.has(n.width)?(O(!0),N(String(n.width))):n.width==="original"&&(O(!1),N(""))},[n.width,x]),_&&C&&!n.url)return w.jsx("div",{className:Ne.card,children:w.jsx("div",{className:Ne.loadingState,children:w.jsx($g,{size:20})})});if(_&&(T||!E)&&!n.url)return w.jsx("div",{className:Ne.card,children:w.jsxs("div",{className:Ne.errorState,children:[w.jsx("span",{children:"Failed to load"}),w.jsx("button",{type:"button",className:Ne.removeButton,onClick:s,children:"Remove"})]})});const Y=pA(n,E),ee=vA(n),$=R?un(G):void 0;return w.jsx(yA,{item:n,widthOptions:i,onLayoutChange:u,onRemove:s,onEditMetadata:c,onReplace:d,disabled:p,enableCssClass:m,enableLazyLoading:h,resolvedData:Y,aspectRatioState:ee,widthOptionsWithCustom:L,customWidthActive:R,customWidthInput:G,customWidthError:$,setCustomWidthActive:O,setCustomWidthInput:N})}function yA({item:a,widthOptions:n,onLayoutChange:i,onRemove:u,onEditMetadata:s,onReplace:c,disabled:d,enableCssClass:p,enableLazyLoading:m,resolvedData:h,aspectRatioState:v,widthOptionsWithCustom:y,customWidthActive:b,customWidthInput:_,customWidthError:E,setCustomWidthActive:C,setCustomWidthInput:T}){const{url:x,filename:L,format:U,originalWidth:R,originalHeight:O}=h,{aspectRatioOptions:G,isCustomAspectRatio:N,customAspectRatioValue:Y,customAspectRatioError:ee,aspectLabel:$}=v,Q=x?`${x}?auto=format&w=80&h=80&fit=crop`:"",ie=Zb(U),ne=Wb(U),be=a.focalPoint?a.focalPoint.x*100:50,we=a.focalPoint?a.focalPoint.y*100:50,H=Oa(a.aspectRatio,a.customAspectRatio,R,O),K=Ds(a.width,R),re=Ms(a.width,n),pe=a.cssClass??"",ye=a.lazyLoading??!1,M=p||m;return w.jsxs("div",{className:Ne.card,children:[w.jsx("div",{className:Ne.thumbnail,children:ie&&Q?w.jsx("img",{src:Q,alt:"",style:{objectPosition:`${be}% ${we}%`}}):w.jsx("div",{className:Ne.filePlaceholder,children:ne?.toUpperCase()||"FILE"})}),w.jsxs("div",{className:Ne.info,children:[w.jsx("span",{className:Ne.filename,title:L,children:L}),H&&H>0&&K&&w.jsx("span",{className:Ne.dimensions,children:js(K,H)})]}),w.jsxs("div",{className:Ne.actionStack,children:[w.jsxs("div",{className:Ne.controls,children:[w.jsx(gA,{aspectLabel:$,disabled:d,aspectRatioOptions:G,isCustomAspectRatio:N,customAspectRatioValue:Y,customAspectRatioError:ee,onLayoutChange:i}),w.jsx(bA,{widthLabel:re,disabled:d,widthOptionsWithCustom:y,customWidthActive:b,customWidthInput:_,customWidthError:E,item:a,resolvedWidth:K,setCustomWidthActive:C,setCustomWidthInput:T,onLayoutChange:i}),w.jsx(nd,{renderTrigger:({onClick:P})=>w.jsx("button",{type:"button",className:Ne.menuButton,onClick:P,disabled:d,"aria-label":"More actions",children:w.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[w.jsx("circle",{cx:"8",cy:"3",r:"1.5"}),w.jsx("circle",{cx:"8",cy:"8",r:"1.5"}),w.jsx("circle",{cx:"8",cy:"13",r:"1.5"})]})}),children:w.jsxs(ad,{children:[c&&w.jsx(nl,{onClick:c,children:"Replace"}),w.jsx(nl,{onClick:s,children:"Edit metadata"}),w.jsx(nl,{onClick:u,red:!0,children:"Remove"})]})})]}),M&&w.jsxs("div",{className:Ne.extraControls,children:[p&&w.jsx("input",{type:"text",className:Ne.cssClassInput,placeholder:"CSS class",value:pe,onChange:P=>i({cssClass:P.target.value}),disabled:d}),m&&w.jsxs("label",{className:d?`${Ne.lazyToggle} ${Ne.toggleDisabled}`:Ne.lazyToggle,children:[w.jsx("input",{type:"checkbox",checked:ye,onChange:P=>i({lazyLoading:P.target.checked}),disabled:d}),w.jsx("span",{className:Ne.toggleTrack,"aria-hidden":"true"}),w.jsx("span",{className:Ne.toggleLabel,children:"Lazy"})]})]})]})]})}function gA({aspectLabel:a,disabled:n,aspectRatioOptions:i,isCustomAspectRatio:u,customAspectRatioValue:s,customAspectRatioError:c,onLayoutChange:d}){return w.jsxs(w.Fragment,{children:[w.jsx(nd,{renderTrigger:({onClick:p})=>w.jsx("button",{type:"button",className:Ne.controlButton,onClick:p,disabled:n,children:a}),children:w.jsx(ad,{children:i.map(p=>w.jsx(nl,{onClick:()=>{p.value==="custom"?d({aspectRatio:"custom",customAspectRatio:s||""}):d({aspectRatio:p.value,customAspectRatio:void 0})},children:p.label},p.value))})}),u&&w.jsxs("div",{className:Ne.customAspectRatioField,children:[w.jsx("input",{type:"text",className:c?`${Ne.customAspectRatioInput} ${Ne.inputError}`:Ne.customAspectRatioInput,value:s,placeholder:"2.35:1",onChange:p=>d({aspectRatio:"custom",customAspectRatio:p.target.value}),disabled:n}),c&&w.jsx("span",{className:Ne.errorText,children:c})]})]})}function bA({widthLabel:a,disabled:n,widthOptionsWithCustom:i,customWidthActive:u,customWidthInput:s,customWidthError:c,item:d,resolvedWidth:p,setCustomWidthActive:m,setCustomWidthInput:h,onLayoutChange:v}){function y(_){if(_==="custom"){const E=typeof d.width=="number"?d.width:p??St;m(!0),h(String(E)),v({width:E})}else m(!1),h(""),v({width:_})}function b(_){h(_);const E=Wr(_);E!==null&&!un(_)&&v({width:E})}return w.jsxs(w.Fragment,{children:[w.jsx(nd,{renderTrigger:({onClick:_})=>w.jsx("button",{type:"button",className:Ne.controlButton,onClick:_,disabled:n,children:a}),children:w.jsx(ad,{children:i.map(_=>w.jsx(nl,{onClick:()=>y(_.value),children:_.label},_.value))})}),u&&w.jsxs("div",{className:Ne.customWidthField,children:[w.jsx("input",{type:"number",min:Cn,max:On,className:c?`${Ne.customWidthInput} ${Ne.inputError}`:Ne.customWidthInput,value:s,placeholder:String(St),onChange:_=>b(_.target.value),disabled:n}),c&&w.jsx("span",{className:Ne.errorText,children:c})]})]})}const _A="_galleryEditor_v0i03_1",SA="_header_v0i03_7",wA="_headerInfo_v0i03_15",EA="_headerTitle_v0i03_21",CA="_headerCount_v0i03_29",OA="_assetList_v0i03_38",Hr={galleryEditor:_A,header:SA,headerInfo:wA,headerTitle:EA,headerCount:CA,assetList:OA};function TA({ctx:a,items:n,onAddAsset:i,widthOptions:u,enableCssClass:s,enableLazyLoading:c}){const d=`${n.length} asset${n.length===1?"":"s"}`,p=A.useCallback((v,y)=>{const b={...n[v],...y},_=Ls(b.width,b.aspectRatio,b.customAspectRatio,b.originalWidth,b.originalHeight)||b.height,E=[...n];E[v]={...b,height:_},a.setFieldValue(a.fieldPath,JSON.stringify(E))},[n,a]),m=A.useCallback(v=>{const y=n.filter((b,_)=>_!==v);a.setFieldValue(a.fieldPath,JSON.stringify(y))},[n,a]),h=A.useCallback(async v=>{const y=n[v],b=await a.editUploadMetadata({upload_id:y.uploadId,alt:y.alt,title:y.title,focal_point:y.focalPoint,custom_data:{}},a.locale);if(b){const _=[...n];_[v]={...y,alt:b.alt,title:b.title,focalPoint:b.focal_point},a.setFieldValue(a.fieldPath,JSON.stringify(_))}},[n,a]);return w.jsxs("div",{className:Hr.galleryEditor,children:[w.jsxs("div",{className:Hr.header,children:[w.jsxs("div",{className:Hr.headerInfo,children:[w.jsx("span",{className:Hr.headerTitle,children:"Assets"}),w.jsx("span",{className:Hr.headerCount,children:d})]}),w.jsx(ed,{onClick:i,disabled:a.disabled,buttonSize:"xs",buttonType:"muted",children:"+ Add assets"})]}),w.jsx("div",{className:Hr.assetList,children:n.map((v,y)=>w.jsx(Kb,{ctx:a,item:v,onLayoutChange:b=>p(y,b),onRemove:()=>m(y),onEditMetadata:()=>h(y),widthOptions:u,enableCssClass:s,enableLazyLoading:c,disabled:a.disabled},v._itemId??v.uploadId))})]})}const xA="_singleEditor_zmv18_1",AA="_header_zmv18_7",RA="_headerInfo_zmv18_15",DA="_headerTitle_zmv18_21",MA="_headerCount_zmv18_29",Ji={singleEditor:xA,header:AA,headerInfo:RA,headerTitle:DA,headerCount:MA};function jA({ctx:a,item:n,onSelectAsset:i,onClear:u,widthOptions:s,enableCssClass:c,enableLazyLoading:d}){const p=h=>{const v={...n,...h},y=Ls(v.width,v.aspectRatio,v.customAspectRatio,v.originalWidth,v.originalHeight)||v.height,b={...v,height:y};a.setFieldValue(a.fieldPath,JSON.stringify(b))},m=async()=>{const h=await a.editUploadMetadata({upload_id:n.uploadId,alt:n.alt,title:n.title,focal_point:n.focalPoint,custom_data:{}},a.locale);if(h){const v={...n,alt:h.alt,title:h.title,focalPoint:h.focal_point};a.setFieldValue(a.fieldPath,JSON.stringify(v))}};return w.jsxs("div",{className:Ji.singleEditor,children:[w.jsx("div",{className:Ji.header,children:w.jsxs("div",{className:Ji.headerInfo,children:[w.jsx("span",{className:Ji.headerTitle,children:"Asset"}),w.jsx("span",{className:Ji.headerCount,children:"1 asset"})]})}),w.jsx(Kb,{ctx:a,item:n,onLayoutChange:p,onRemove:u,onEditMetadata:m,onReplace:i,widthOptions:s,enableCssClass:c,enableLazyLoading:d,disabled:a.disabled})]})}const LA="_container_1ciab_1",NA="_grid_1ciab_7",zA="_slotCell_1ciab_16",qA="_slotCard_1ciab_39",UA="_isEmpty_1ciab_58",HA="_isRequired_1ciab_62",VA="_slotHeader_1ciab_62",BA="_slotLabel_1ciab_74",GA="_slotMeta_1ciab_80",kA="_requiredBadge_1ciab_85",$A="_slotContent_1ciab_95",PA="_emptySlot_1ciab_102",IA="_emptyIcon_1ciab_112",FA="_emptyText_1ciab_121",YA="_selectButton_1ciab_126",XA="_filledSlot_1ciab_149",QA="_thumbnailContainer_1ciab_153",ZA="_thumbnail_1ciab_153",WA="_filePlaceholder_1ciab_165",KA="_slotOverlay_1ciab_179",JA="_overlayButton_1ciab_198",eR="_danger_1ciab_217",tR="_assetInfo_1ciab_226",nR="_assetOptions_1ciab_235",aR="_cssClassInput_1ciab_245",rR="_lazyToggle_1ciab_280",iR="_toggleTrack_1ciab_311",lR="_toggleLabel_1ciab_352",uR="_toggleDisabled_1ciab_357",sR="_filename_1ciab_366",oR="_dimensions_1ciab_376",cR="_loadingState_1ciab_384",fR="_errorState_1ciab_391",dR="_removeErrorButton_1ciab_401",hR="_emptyGrid_1ciab_416",xe={container:LA,grid:NA,slotCell:zA,slotCard:qA,isEmpty:UA,isRequired:HA,slotHeader:VA,slotLabel:BA,slotMeta:GA,requiredBadge:kA,slotContent:$A,emptySlot:PA,emptyIcon:IA,emptyText:FA,selectButton:YA,filledSlot:XA,thumbnailContainer:QA,thumbnail:ZA,filePlaceholder:WA,slotOverlay:KA,overlayButton:JA,danger:eR,assetInfo:tR,assetOptions:nR,cssClassInput:aR,lazyToggle:rR,toggleTrack:iR,toggleLabel:lR,toggleDisabled:uR,filename:sR,dimensions:oR,loadingState:cR,errorState:fR,removeErrorButton:dR,emptyGrid:hR};function mR({ctx:a,slot:n,assignment:i,widthOptions:u,enableCssClass:s,enableLazyLoading:c,disabled:d,onSelectAsset:p,onRemoveAsset:m,onEditMetadata:h,onAssignmentChange:v}){const y=n.aspectRatio==="custom"?n.customAspectRatio:Tn.find(E=>E.value===n.aspectRatio)?.label.split(" ")[0]||n.aspectRatio,b=!i,_=[xe.slotCard,b&&xe.isEmpty,n.required&&xe.isRequired].filter(Boolean).join(" ");return w.jsxs("div",{className:_,children:[w.jsxs("div",{className:xe.slotHeader,children:[w.jsxs("div",{children:[w.jsx("div",{className:xe.slotLabel,children:n.label||"Untitled"}),w.jsxs("div",{className:xe.slotMeta,children:[y," • ",Ms(n.width,u)]})]}),n.required&&w.jsx("span",{className:xe.requiredBadge,children:"Required"})]}),w.jsx("div",{className:xe.slotContent,children:b?w.jsxs("div",{className:xe.emptySlot,children:[w.jsx("div",{className:xe.emptyIcon,children:w.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[w.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),w.jsx("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),w.jsx("polyline",{points:"21 15 16 10 5 21"})]})}),w.jsx("div",{className:xe.emptyText,children:"No asset selected"}),w.jsx("button",{type:"button",className:xe.selectButton,onClick:p,disabled:d,children:"Select asset"})]}):w.jsx(_R,{ctx:a,assignment:i,slot:n,enableCssClass:s,enableLazyLoading:c,disabled:d,onSelectAsset:p,onRemoveAsset:m,onEditMetadata:h,onAssignmentChange:v})})]})}function pR(a,n){const i=a.url||n?.attributes.url||"",u=a.filename||n?.attributes.filename||"",s=a.originalWidth??n?.attributes.width??null,c=a.originalHeight??n?.attributes.height??null,d=zs({format:a.format??n?.attributes.format??null,url:i,filename:u});return{url:i,filename:u,originalWidth:s,originalHeight:c,format:d}}function vR({onSelectAsset:a,onEditMetadata:n,onRemoveAsset:i}){return w.jsxs("div",{className:xe.slotOverlay,children:[w.jsx("button",{type:"button",className:xe.overlayButton,onClick:a,title:"Replace",children:w.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:w.jsx("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"})})}),w.jsx("button",{type:"button",className:xe.overlayButton,onClick:n,title:"Edit metadata",children:w.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[w.jsx("path",{d:"M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"}),w.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),w.jsx("button",{type:"button",className:`${xe.overlayButton} ${xe.danger}`,onClick:i,title:"Remove",children:w.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:w.jsx("path",{d:"M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"})})})]})}function yR({enableCssClass:a,enableLazyLoading:n,cssClassValue:i,lazyLoadingValue:u,disabled:s,onAssignmentChange:c}){return w.jsxs("div",{className:xe.assetOptions,children:[a&&w.jsx("input",{type:"text",className:xe.cssClassInput,placeholder:"CSS class",value:i,onChange:d=>c({cssClass:d.target.value}),disabled:s}),n&&w.jsxs("label",{className:s?`${xe.lazyToggle} ${xe.toggleDisabled}`:xe.lazyToggle,children:[w.jsx("input",{type:"checkbox",checked:u,onChange:d=>c({lazyLoading:d.target.checked}),disabled:s}),w.jsx("span",{className:xe.toggleTrack,"aria-hidden":"true"}),w.jsx("span",{className:xe.toggleLabel,children:"Lazy"})]})]})}function gR(a,n){const i=zs({format:a.format,url:a.url,filename:a.filename}),u=n.width==="original"||n.aspectRatio==="original",s=n.aspectRatio==="original";return!a.url||!a.filename||!i||u&&!a.originalWidth||s&&!a.originalHeight}function bR({assignment:a,slot:n,upload:i,enableCssClass:u,enableLazyLoading:s,disabled:c,onSelectAsset:d,onRemoveAsset:p,onEditMetadata:m,onAssignmentChange:h}){const{url:v,filename:y,originalWidth:b,originalHeight:_,format:E}=pR(a,i),C=Zb(E),T=Wb(E),x=Oa(n.aspectRatio,n.customAspectRatio,b,_),L=Ds(n.width,b),U=a.cssClass??"",R=a.lazyLoading??!1,O=u||s,G=x&&x>0?{aspectRatio:String(x)}:{minHeight:"80px"};return w.jsxs("div",{className:xe.filledSlot,children:[w.jsxs("div",{className:xe.thumbnailContainer,style:G,children:[C?w.jsx("img",{src:`${v}?auto=format&w=400&fit=crop`,alt:"",className:xe.thumbnail}):w.jsx("div",{className:xe.filePlaceholder,children:T?.toUpperCase()||"FILE"}),!c&&w.jsx(vR,{onSelectAsset:d,onEditMetadata:m,onRemoveAsset:p})]}),w.jsxs("div",{className:xe.assetInfo,children:[w.jsx("span",{className:xe.filename,title:y||"Untitled",children:y||"Untitled"}),x&&x>0&&L&&w.jsx("span",{className:xe.dimensions,children:js(L,x)})]}),O&&w.jsx(yR,{enableCssClass:u,enableLazyLoading:s,cssClassValue:U,lazyLoadingValue:R,disabled:c,onAssignmentChange:h})]})}function _R({ctx:a,assignment:n,slot:i,enableCssClass:u,enableLazyLoading:s,disabled:c,onSelectAsset:d,onRemoveAsset:p,onEditMetadata:m,onAssignmentChange:h}){const v=gR(n,i),{upload:y,loading:b,error:_}=Qb(a,n.uploadId,!v);return v&&b&&!n.url?w.jsx("div",{className:xe.loadingState,children:w.jsx($g,{size:20})}):v&&(_||!y)&&!n.url?w.jsxs("div",{className:xe.errorState,children:[w.jsx("span",{children:"Failed to load asset"}),w.jsx("button",{type:"button",className:xe.removeErrorButton,onClick:p,children:"Remove"})]}):w.jsx(bR,{assignment:n,slot:i,upload:y,enableCssClass:u,enableLazyLoading:s,disabled:c,onSelectAsset:d,onRemoveAsset:p,onEditMetadata:m,onAssignmentChange:h})}const Ly=8;function SR({ctx:a,layoutConfig:n,assignments:i,widthOptions:u,enableCssClass:s,enableLazyLoading:c,onAssignmentsChange:d}){const p=n.layoutStyle==="masonry",m=A.useRef(null),[h,v]=A.useState({columnWidth:0,gap:0}),y=A.useCallback(R=>i.find(O=>O.slotId===R),[i]),b=A.useCallback(async R=>{const O=await a.selectUpload({multiple:!1});if(!O)return;const G=O,N=G.attributes,Y=N.default_field_metadata[a.locale]||{},ee=Ls(R.width,R.aspectRatio,R.customAspectRatio,N.width,N.height),$={slotId:R.id,uploadId:G.id,url:N.url,filename:N.filename,format:N.format??null,size:N.size,alt:Y.alt||null,title:Y.title||null,...s?{cssClass:""}:{},...c?{lazyLoading:!1}:{},focalPoint:Y.focal_point||null,aspectRatio:R.aspectRatio,customAspectRatio:R.customAspectRatio,width:R.width,height:ee,originalWidth:N.width,originalHeight:N.height},Q=i.filter(ie=>ie.slotId!==R.id);d([...Q,$])},[a,i,d,s,c]),_=A.useCallback((R,O)=>{const G=y(R);if(!G)return;const N=i.map(Y=>Y.slotId===R?{...G,...O}:Y);d(N)},[i,y,d]),E=A.useCallback(R=>{d(i.filter(O=>O.slotId!==R))},[i,d]),C=A.useCallback(async R=>{const O=y(R.id);if(!O)return;const G=await a.editUploadMetadata({upload_id:O.uploadId,alt:O.alt,title:O.title,focal_point:O.focalPoint,custom_data:{}},a.locale);if(G){const N=i.map(Y=>Y.slotId===R.id?{...Y,alt:G.alt,title:G.title,focalPoint:G.focal_point}:Y);d(N)}},[a,i,y,d]),T=A.useCallback(R=>{const O=typeof R.rowSpan=="number"&&R.rowSpan>0?R.rowSpan:1,G=typeof R.colSpan=="number"&&R.colSpan>0?R.colSpan:1;return{rowSpan:Math.min(O,Math.max(1,n.rows-R.row)),colSpan:Math.min(G,Math.max(1,n.columns-R.col))}},[n.columns,n.rows]);A.useLayoutEffect(()=>{if(!m.current)return;const R=m.current,O=()=>{const N=getComputedStyle(R),Y=Number.parseFloat(N.columnGap||N.gap||"0")||0,ee=R.clientWidth,$=n.columns>0?(ee-Y*(n.columns-1))/n.columns:0;v({columnWidth:$,gap:Y})};O();const G=new ResizeObserver(()=>O());return G.observe(R),()=>G.disconnect()},[n.columns]);const x=A.useCallback(R=>{const O=Oa(R.aspectRatio,R.customAspectRatio)??1,G=O>0?O:1,N=typeof R.colSpan=="number"&&R.colSpan>0?R.colSpan:1,Y=h.columnWidth;if(!Y||Y<=0)return 1;const ee=h.gap,Q=(Y*N+ee*(N-1))/G;return Math.max(1,Math.ceil((Q+ee)/(Ly+ee)))},[h.columnWidth,h.gap]),L=[...n.slots].sort((R,O)=>R.row!==O.row?R.row-O.row:R.col-O.col),U=p?n.slots:L;return L.length===0?w.jsx("div",{className:xe.emptyGrid,children:"No slots configured. Please configure slots in the field settings."}):w.jsx("div",{className:xe.container,children:w.jsx("div",{className:xe.grid,"data-layout":p?"masonry":"grid",ref:m,style:p?{gridTemplateColumns:`repeat(${n.columns}, minmax(0, 1fr))`,gridAutoRows:`${Ly}px`}:{gridTemplateColumns:`repeat(${n.columns}, minmax(0, 1fr))`},children:U.map(R=>{const{rowSpan:O,colSpan:G}=T(R),N=p?x(R):O,Y=typeof R.colSpan=="number"&&R.colSpan>0?Math.min(R.colSpan,n.columns):1;return w.jsx("div",{className:xe.slotCell,style:{gridColumn:p?`span ${Y}`:`${R.col+1} / span ${G}`,gridRow:p?`span ${N}`:`${R.row+1} / span ${O}`},children:w.jsx(mR,{ctx:a,slot:R,assignment:y(R.id),widthOptions:u,enableCssClass:s,enableLazyLoading:c,disabled:a.disabled,onSelectAsset:()=>b(R),onRemoveAsset:()=>E(R.id),onEditMetadata:()=>C(R),onAssignmentChange:ee=>_(R.id,ee)})},R.id)})})})}const wR="_mediaLayoutsField_10ftp_5",Ny={mediaLayoutsField:wR};function ER(a,n){const i=n.split(/[.[\]]+/).filter(Boolean);let u=a;for(const s of i){if(u==null)return;u=u[s]}return u}function CR({ctx:a}){const n=Ig(a.parameters),i=Ns(a.plugin.attributes.parameters),u=rT(n,i),s=pd(i.widthPresets),c=n.enableCssClass,d=n.enableLazyLoading,p=n.mode==="multiple",m=n.mode==="layout"?n:null,h=m!==null,v=ER(a.formValues,a.fieldPath),y=(()=>{if(!v)return p?[]:null;if(typeof v=="string")try{return JSON.parse(v)}catch{return p?[]:null}return v})(),b=m?(()=>{if(y&&typeof y=="object"&&!Array.isArray(y)){const R=y,O=tT(R.layout)?R.layout:m.layoutConfig,G=Array.isArray(R.assignments)?R.assignments:[];return{layout:O,assignments:G}}return Array.isArray(y)?{layout:m.layoutConfig,assignments:y}:{layout:m.layoutConfig,assignments:[]}})():null,_=A.useCallback(R=>{const O=R.attributes,G=O.default_field_metadata?.[a.locale],N=O.width??null,Y=O.height??null,ee=Ls(u.width,u.aspectRatio,void 0,N,Y);return{_itemId:`${R.id}-${Date.now()}-${Math.random().toString(36).slice(2,7)}`,uploadId:R.id,url:O.url,filename:O.filename,format:O.format??null,size:O.size,alt:G?.alt??null,title:G?.title??null,...c?{cssClass:""}:{},...d?{lazyLoading:!1}:{},focalPoint:G?.focal_point??null,aspectRatio:u.aspectRatio,width:u.width,height:ee,originalWidth:N,originalHeight:Y}},[a.locale,u,c,d]),E=A.useCallback(async()=>{const R=await a.selectUpload({multiple:!0});if(!R)return;const O=R.map(Y=>_(Y)),N=[...Array.isArray(y)?y:[],...O];a.setFieldValue(a.fieldPath,JSON.stringify(N))},[a,y,_]),C=A.useCallback(async()=>{const R=await a.selectUpload({multiple:!1});if(!R)return;const O=_(R);a.setFieldValue(a.fieldPath,JSON.stringify(O))},[a,_]),T=p?E:C,x=A.useCallback(()=>{a.setFieldValue(a.fieldPath,p?"[]":null)},[a,p]),L=A.useCallback(R=>{if(!h)return;const O=b?.layout??m.layoutConfig;a.setFieldValue(a.fieldPath,JSON.stringify({layout:O,assignments:R}))},[a,h,m,b]);if(h){const R=b?.layout??m.layoutConfig,O=b?.assignments??[];return w.jsx(os,{ctx:a,children:w.jsx("div",{className:Ny.mediaLayoutsField,children:w.jsx(SR,{ctx:a,layoutConfig:R,assignments:O,widthOptions:s,enableCssClass:c,enableLazyLoading:d,onAssignmentsChange:L})})})}const U=p?Array.isArray(y)&&y.length>0:y!==null;return w.jsx(os,{ctx:a,children:w.jsx("div",{className:Ny.mediaLayoutsField,children:U?p?w.jsx(TA,{ctx:a,items:y,onAddAsset:T,widthOptions:s,enableCssClass:c,enableLazyLoading:d}):w.jsx(jA,{ctx:a,item:y,onSelectAsset:T,onClear:x,widthOptions:s,enableCssClass:c,enableLazyLoading:d}):w.jsx(Y2,{isGallery:p,onSelectAsset:T,disabled:a.disabled})})})}var Cf={exports:{}},el={},Of={exports:{}},Tf={};var zy;function OR(){return zy||(zy=1,(function(a){function n(H,K){var re=H.length;H.push(K);e:for(;0<re;){var pe=re-1>>>1,ye=H[pe];if(0<s(ye,K))H[pe]=K,H[re]=ye,re=pe;else break e}}function i(H){return H.length===0?null:H[0]}function u(H){if(H.length===0)return null;var K=H[0],re=H.pop();if(re!==K){H[0]=re;e:for(var pe=0,ye=H.length,M=ye>>>1;pe<M;){var P=2*(pe+1)-1,te=H[P],ae=P+1,de=H[ae];if(0>s(te,re))ae<ye&&0>s(de,te)?(H[pe]=de,H[ae]=re,pe=ae):(H[pe]=te,H[P]=re,pe=P);else if(ae<ye&&0>s(de,re))H[pe]=de,H[ae]=re,pe=ae;else break e}}return K}function s(H,K){var re=H.sortIndex-K.sortIndex;return re!==0?re:H.id-K.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;a.unstable_now=function(){return c.now()}}else{var d=Date,p=d.now();a.unstable_now=function(){return d.now()-p}}var m=[],h=[],v=1,y=null,b=3,_=!1,E=!1,C=!1,T=!1,x=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function R(H){for(var K=i(h);K!==null;){if(K.callback===null)u(h);else if(K.startTime<=H)u(h),K.sortIndex=K.expirationTime,n(m,K);else break;K=i(h)}}function O(H){if(C=!1,R(H),!E)if(i(m)!==null)E=!0,G||(G=!0,ie());else{var K=i(h);K!==null&&we(O,K.startTime-H)}}var G=!1,N=-1,Y=5,ee=-1;function $(){return T?!0:!(a.unstable_now()-ee<Y)}function Q(){if(T=!1,G){var H=a.unstable_now();ee=H;var K=!0;try{e:{E=!1,C&&(C=!1,L(N),N=-1),_=!0;var re=b;try{t:{for(R(H),y=i(m);y!==null&&!(y.expirationTime>H&&$());){var pe=y.callback;if(typeof pe=="function"){y.callback=null,b=y.priorityLevel;var ye=pe(y.expirationTime<=H);if(H=a.unstable_now(),typeof ye=="function"){y.callback=ye,R(H),K=!0;break t}y===i(m)&&u(m),R(H)}else u(m);y=i(m)}if(y!==null)K=!0;else{var M=i(h);M!==null&&we(O,M.startTime-H),K=!1}}break e}finally{y=null,b=re,_=!1}K=void 0}}finally{K?ie():G=!1}}}var ie;if(typeof U=="function")ie=function(){U(Q)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,be=ne.port2;ne.port1.onmessage=Q,ie=function(){be.postMessage(null)}}else ie=function(){x(Q,0)};function we(H,K){N=x(function(){H(a.unstable_now())},K)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(H){H.callback=null},a.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<H?Math.floor(1e3/H):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(H){switch(b){case 1:case 2:case 3:var K=3;break;default:K=b}var re=b;b=K;try{return H()}finally{b=re}},a.unstable_requestPaint=function(){T=!0},a.unstable_runWithPriority=function(H,K){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var re=b;b=H;try{return K()}finally{b=re}},a.unstable_scheduleCallback=function(H,K,re){var pe=a.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?pe+re:pe):re=pe,H){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=re+ye,H={id:v++,callback:K,priorityLevel:H,startTime:re,expirationTime:ye,sortIndex:-1},re>pe?(H.sortIndex=re,n(h,H),i(m)===null&&H===i(h)&&(C?(L(N),N=-1):C=!0,we(O,re-pe))):(H.sortIndex=ye,n(m,H),E||_||(E=!0,G||(G=!0,ie()))),H},a.unstable_shouldYield=$,a.unstable_wrapCallback=function(H){var K=b;return function(){var re=b;b=K;try{return H.apply(this,arguments)}finally{b=re}}}})(Tf)),Tf}var qy;function TR(){return qy||(qy=1,Of.exports=OR()),Of.exports}var Uy;function xR(){if(Uy)return el;Uy=1;var a=TR(),n=Jf(),i=Xy();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(c(e)!==e)throw Error(u(188))}function h(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(188));return t!==e?null:e}for(var r=e,l=t;;){var o=r.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){r=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===r)return m(o),e;if(f===l)return m(o),t;f=f.sibling}throw Error(u(188))}if(r.return!==l.return)r=o,l=f;else{for(var g=!1,S=o.child;S;){if(S===r){g=!0,r=o,l=f;break}if(S===l){g=!0,l=o,r=f;break}S=S.sibling}if(!g){for(S=f.child;S;){if(S===r){g=!0,r=f,l=o;break}if(S===l){g=!0,l=f,r=o;break}S=S.sibling}if(!g)throw Error(u(189))}}if(r.alternate!==l)throw Error(u(190))}if(r.tag!==3)throw Error(u(188));return r.stateNode.current===r?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),U=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=Q&&e[Q]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function be(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 C:return"Fragment";case x:return"Profiler";case T:return"StrictMode";case O:return"Suspense";case G:return"SuspenseList";case ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case U:return e.displayName||"Context";case L:return(e._context.displayName||"Context")+".Consumer";case R:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case N:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var we=Array.isArray,H=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},pe=[],ye=-1;function M(e){return{current:e}}function P(e){0>ye||(e.current=pe[ye],pe[ye]=null,ye--)}function te(e,t){ye++,pe[ye]=e.current,e.current=t}var ae=M(null),de=M(null),fe=M(null),_e=M(null);function ze(e,t){switch(te(fe,t),te(de,e),te(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qp(t),e=Up(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}P(ae),te(ae,e)}function Le(){P(ae),P(de),P(fe)}function Ut(e){e.memoizedState!==null&&te(_e,e);var t=ae.current,r=Up(t,e.type);t!==r&&(te(de,e),te(ae,r))}function wt(e){de.current===e&&(P(ae),P(de)),_e.current===e&&(P(_e),Pi._currentValue=re)}var on,xn;function xt(e){if(on===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);on=t&&t[1]||"",xn=-1<r.stack.indexOf(`
|
|
13
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
14
|
+
`+on+e+xn}var Ta=!1;function ei(e,t){if(!e||Ta)return"";Ta=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(I){var k=I}Reflect.construct(e,[],W)}else{try{W.call()}catch(I){k=I}e.call(W.prototype)}}else{try{throw Error()}catch(I){k=I}(W=e())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(I){if(I&&k&&typeof I.stack=="string")return[I.stack,k.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),g=f[0],S=f[1];if(g&&S){var D=g.split(`
|
|
15
|
+
`),B=S.split(`
|
|
16
|
+
`);for(o=l=0;l<D.length&&!D[l].includes("DetermineComponentFrameRoot");)l++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(l===D.length||o===B.length)for(l=D.length-1,o=B.length-1;1<=l&&0<=o&&D[l]!==B[o];)o--;for(;1<=l&&0<=o;l--,o--)if(D[l]!==B[o]){if(l!==1||o!==1)do if(l--,o--,0>o||D[l]!==B[o]){var X=`
|
|
17
|
+
`+D[l].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=l&&0<=o);break}}}finally{Ta=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?xt(r):""}function qs(e,t){switch(e.tag){case 26:case 27:case 5:return xt(e.type);case 16:return xt("Lazy");case 13:return e.child!==t&&t!==null?xt("Suspense Fallback"):xt("Suspense");case 19:return xt("SuspenseList");case 0:case 15:return ei(e.type,!1);case 11:return ei(e.type.render,!1);case 1:return ei(e.type,!0);case 31:return xt("Activity");default:return""}}function dl(e){try{var t="",r=null;do t+=qs(e,r),r=e,e=e.return;while(e);return t}catch(l){return`
|
|
18
|
+
Error generating stack: `+l.message+`
|
|
19
|
+
`+l.stack}}var ti=Object.prototype.hasOwnProperty,hl=a.unstable_scheduleCallback,ni=a.unstable_cancelCallback,Us=a.unstable_shouldYield,Hs=a.unstable_requestPaint,Et=a.unstable_now,Vs=a.unstable_getCurrentPriorityLevel,ml=a.unstable_ImmediatePriority,pl=a.unstable_UserBlockingPriority,Ka=a.unstable_NormalPriority,Bs=a.unstable_LowPriority,vl=a.unstable_IdlePriority,oe=a.log,At=a.unstable_setDisableYieldValue,xa=null,Ct=null;function Ft(e){if(typeof oe=="function"&&At(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(xa,e)}catch{}}var Ot=Math.clz32?Math.clz32:e_,Gs=Math.log,ks=Math.LN2;function e_(e){return e>>>=0,e===0?32:31-(Gs(e)/ks|0)|0}var yl=256,gl=262144,bl=4194304;function Aa(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 _l(e,t,r){var l=e.pendingLanes;if(l===0)return 0;var o=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var S=l&134217727;return S!==0?(l=S&~f,l!==0?o=Aa(l):(g&=S,g!==0?o=Aa(g):r||(r=S&~e,r!==0&&(o=Aa(r))))):(S=l&~f,S!==0?o=Aa(S):g!==0?o=Aa(g):r||(r=l&~e,r!==0&&(o=Aa(r)))),o===0?0:t!==0&&t!==o&&(t&f)===0&&(f=o&-o,r=t&-t,f>=r||f===32&&(r&4194048)!==0)?t:o}function ai(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function t_(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 yd(){var e=bl;return bl<<=1,(bl&62914560)===0&&(bl=4194304),e}function $s(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ri(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function n_(e,t,r,l,o,f){var g=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var S=e.entanglements,D=e.expirationTimes,B=e.hiddenUpdates;for(r=g&~r;0<r;){var X=31-Ot(r),W=1<<X;S[X]=0,D[X]=-1;var k=B[X];if(k!==null)for(B[X]=null,X=0;X<k.length;X++){var I=k[X];I!==null&&(I.lane&=-536870913)}r&=~W}l!==0&&gd(e,l,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~t))}function gd(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ot(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|r&261930}function bd(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var l=31-Ot(r),o=1<<l;o&t|e[l]&t&&(e[l]|=t),r&=~o}}function _d(e,t){var r=t&-t;return r=(r&42)!==0?1:Ps(r),(r&(e.suspendedLanes|t))!==0?0:r}function Ps(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 Is(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Sd(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:lv(e.type))}function wd(e,t){var r=K.p;try{return K.p=e,t()}finally{K.p=r}}var Jn=Math.random().toString(36).slice(2),ht="__reactFiber$"+Jn,Rt="__reactProps$"+Jn,Ja="__reactContainer$"+Jn,Fs="__reactEvents$"+Jn,a_="__reactListeners$"+Jn,r_="__reactHandles$"+Jn,Ed="__reactResources$"+Jn,ii="__reactMarker$"+Jn;function Ys(e){delete e[ht],delete e[Rt],delete e[Fs],delete e[a_],delete e[r_]}function er(e){var t=e[ht];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ja]||r[ht]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Pp(e);e!==null;){if(r=e[ht])return r;e=Pp(e)}return t}e=r,r=e.parentNode}return null}function tr(e){if(e=e[ht]||e[Ja]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function li(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function nr(e){var t=e[Ed];return t||(t=e[Ed]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[ii]=!0}var Cd=new Set,Od={};function Ra(e,t){ar(e,t),ar(e+"Capture",t)}function ar(e,t){for(Od[e]=t,e=0;e<t.length;e++)Cd.add(t[e])}var i_=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]*$"),Td={},xd={};function l_(e){return ti.call(xd,e)?!0:ti.call(Td,e)?!1:i_.test(e)?xd[e]=!0:(Td[e]=!0,!1)}function Sl(e,t,r){if(l_(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function wl(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function An(e,t,r,l){if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+l)}}function Yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ad(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u_(e,t,r){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,f=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(g){r=""+g,f.call(this,g)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return r},setValue:function(g){r=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){if(!e._valueTracker){var t=Ad(e)?"checked":"value";e._valueTracker=u_(e,t,""+e[t])}}function Rd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=Ad(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function El(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 s_=/[\n"\\]/g;function Xt(e){return e.replace(s_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Qs(e,t,r,l,o,f,g,S){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Yt(t)):e.value!==""+Yt(t)&&(e.value=""+Yt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Zs(e,g,Yt(t)):r!=null?Zs(e,g,Yt(r)):l!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Yt(S):e.removeAttribute("name")}function Dd(e,t,r,l,o,f,g,S){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||r!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Xs(e);return}r=r!=null?""+Yt(r):"",t=t!=null?""+Yt(t):r,S||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=S?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Xs(e)}function Zs(e,t,r){t==="number"&&El(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function rr(e,t,r,l){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&l&&(e[r].defaultSelected=!0)}else{for(r=""+Yt(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Md(e,t,r){if(t!=null&&(t=""+Yt(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+Yt(r):""}function jd(e,t,r,l){if(t==null){if(l!=null){if(r!=null)throw Error(u(92));if(we(l)){if(1<l.length)throw Error(u(93));l=l[0]}r=l}r==null&&(r=""),t=r}r=Yt(t),e.defaultValue=r,l=e.textContent,l===r&&l!==""&&l!==null&&(e.value=l),Xs(e)}function ir(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var o_=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 Ld(e,t,r){var l=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,r):typeof r!="number"||r===0||o_.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function Nd(e,t,r){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,r!=null){for(var l in r)!r.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&r[o]!==l&&Ld(e,o,l)}else for(var f in t)t.hasOwnProperty(f)&&Ld(e,f,t[f])}function Ws(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 c_=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"]]),f_=/^[\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 Cl(e){return f_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rn(){}var Ks=null;function Js(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lr=null,ur=null;function zd(e){var t=tr(e);if(t&&(e=t.stateNode)){var r=e[Rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Qs(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Xt(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var l=r[t];if(l!==e&&l.form===e.form){var o=l[Rt]||null;if(!o)throw Error(u(90));Qs(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<r.length;t++)l=r[t],l.form===e.form&&Rd(l)}break e;case"textarea":Md(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&rr(e,!!r.multiple,t,!1)}}}var eo=!1;function qd(e,t,r){if(eo)return e(t,r);eo=!0;try{var l=e(t);return l}finally{if(eo=!1,(lr!==null||ur!==null)&&(fu(),lr&&(t=lr,e=ur,ur=lr=null,zd(t),e)))for(t=0;t<e.length;t++)zd(e[t])}}function ui(e,t){var r=e.stateNode;if(r===null)return null;var l=r[Rt]||null;if(l===null)return null;r=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(u(231,t,typeof r));return r}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),to=!1;if(Dn)try{var si={};Object.defineProperty(si,"passive",{get:function(){to=!0}}),window.addEventListener("test",si,si),window.removeEventListener("test",si,si)}catch{to=!1}var ea=null,no=null,Ol=null;function Ud(){if(Ol)return Ol;var e,t=no,r=t.length,l,o="value"in ea?ea.value:ea.textContent,f=o.length;for(e=0;e<r&&t[e]===o[e];e++);var g=r-e;for(l=1;l<=g&&t[r-l]===o[f-l];l++);return Ol=o.slice(e,1<l?1-l:void 0)}function Tl(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 xl(){return!0}function Hd(){return!1}function Dt(e){function t(r,l,o,f,g){this._reactName=r,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(r=e[S],this[S]=r?r(f):f[S]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?xl:Hd,this.isPropagationStopped=Hd,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=xl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=xl)},persist:function(){},isPersistent:xl}),t}var Da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Al=Dt(Da),oi=y({},Da,{view:0,detail:0}),d_=Dt(oi),ao,ro,ci,Rl=y({},oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lo,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!==ci&&(ci&&e.type==="mousemove"?(ao=e.screenX-ci.screenX,ro=e.screenY-ci.screenY):ro=ao=0,ci=e),ao)},movementY:function(e){return"movementY"in e?e.movementY:ro}}),Vd=Dt(Rl),h_=y({},Rl,{dataTransfer:0}),m_=Dt(h_),p_=y({},oi,{relatedTarget:0}),io=Dt(p_),v_=y({},Da,{animationName:0,elapsedTime:0,pseudoElement:0}),y_=Dt(v_),g_=y({},Da,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),b_=Dt(g_),__=y({},Da,{data:0}),Bd=Dt(__),S_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w_={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"},E_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function C_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=E_[e])?!!t[e]:!1}function lo(){return C_}var O_=y({},oi,{key:function(e){if(e.key){var t=S_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?w_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lo,charCode:function(e){return e.type==="keypress"?Tl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),T_=Dt(O_),x_=y({},Rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gd=Dt(x_),A_=y({},oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lo}),R_=Dt(A_),D_=y({},Da,{propertyName:0,elapsedTime:0,pseudoElement:0}),M_=Dt(D_),j_=y({},Rl,{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}),L_=Dt(j_),N_=y({},Da,{newState:0,oldState:0}),z_=Dt(N_),q_=[9,13,27,32],uo=Dn&&"CompositionEvent"in window,fi=null;Dn&&"documentMode"in document&&(fi=document.documentMode);var U_=Dn&&"TextEvent"in window&&!fi,kd=Dn&&(!uo||fi&&8<fi&&11>=fi),$d=" ",Pd=!1;function Id(e,t){switch(e){case"keyup":return q_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sr=!1;function H_(e,t){switch(e){case"compositionend":return Fd(t);case"keypress":return t.which!==32?null:(Pd=!0,$d);case"textInput":return e=t.data,e===$d&&Pd?null:e;default:return null}}function V_(e,t){if(sr)return e==="compositionend"||!uo&&Id(e,t)?(e=Ud(),Ol=no=ea=null,sr=!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 kd&&t.locale!=="ko"?null:t.data;default:return null}}var B_={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 Yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!B_[e.type]:t==="textarea"}function Xd(e,t,r,l){lr?ur?ur.push(l):ur=[l]:lr=l,t=gu(t,"onChange"),0<t.length&&(r=new Al("onChange","change",null,r,l),e.push({event:r,listeners:t}))}var di=null,hi=null;function G_(e){Dp(e,0)}function Dl(e){var t=li(e);if(Rd(t))return e}function Qd(e,t){if(e==="change")return t}var Zd=!1;if(Dn){var so;if(Dn){var oo="oninput"in document;if(!oo){var Wd=document.createElement("div");Wd.setAttribute("oninput","return;"),oo=typeof Wd.oninput=="function"}so=oo}else so=!1;Zd=so&&(!document.documentMode||9<document.documentMode)}function Kd(){di&&(di.detachEvent("onpropertychange",Jd),hi=di=null)}function Jd(e){if(e.propertyName==="value"&&Dl(hi)){var t=[];Xd(t,hi,e,Js(e)),qd(G_,t)}}function k_(e,t,r){e==="focusin"?(Kd(),di=t,hi=r,di.attachEvent("onpropertychange",Jd)):e==="focusout"&&Kd()}function $_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Dl(hi)}function P_(e,t){if(e==="click")return Dl(t)}function I_(e,t){if(e==="input"||e==="change")return Dl(t)}function F_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:F_;function mi(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var o=r[l];if(!ti.call(t,o)||!Ht(e[o],t[o]))return!1}return!0}function eh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function th(e,t){var r=eh(e);e=0;for(var l;r;){if(r.nodeType===3){if(l=e+r.textContent.length,e<=t&&l>=t)return{node:r,offset:t-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=eh(r)}}function nh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ah(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=El(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=El(e.document)}return t}function co(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 Y_=Dn&&"documentMode"in document&&11>=document.documentMode,or=null,fo=null,pi=null,ho=!1;function rh(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ho||or==null||or!==El(l)||(l=or,"selectionStart"in l&&co(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),pi&&mi(pi,l)||(pi=l,l=gu(fo,"onSelect"),0<l.length&&(t=new Al("onSelect","select",null,t,r),e.push({event:t,listeners:l}),t.target=or)))}function Ma(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var cr={animationend:Ma("Animation","AnimationEnd"),animationiteration:Ma("Animation","AnimationIteration"),animationstart:Ma("Animation","AnimationStart"),transitionrun:Ma("Transition","TransitionRun"),transitionstart:Ma("Transition","TransitionStart"),transitioncancel:Ma("Transition","TransitionCancel"),transitionend:Ma("Transition","TransitionEnd")},mo={},ih={};Dn&&(ih=document.createElement("div").style,"AnimationEvent"in window||(delete cr.animationend.animation,delete cr.animationiteration.animation,delete cr.animationstart.animation),"TransitionEvent"in window||delete cr.transitionend.transition);function ja(e){if(mo[e])return mo[e];if(!cr[e])return e;var t=cr[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in ih)return mo[e]=t[r];return e}var lh=ja("animationend"),uh=ja("animationiteration"),sh=ja("animationstart"),X_=ja("transitionrun"),Q_=ja("transitionstart"),Z_=ja("transitioncancel"),oh=ja("transitionend"),ch=new Map,po="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");po.push("scrollEnd");function cn(e,t){ch.set(e,t),Ra(t,[e])}var Ml=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)},Qt=[],fr=0,vo=0;function jl(){for(var e=fr,t=vo=fr=0;t<e;){var r=Qt[t];Qt[t++]=null;var l=Qt[t];Qt[t++]=null;var o=Qt[t];Qt[t++]=null;var f=Qt[t];if(Qt[t++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}f!==0&&fh(r,o,f)}}function Ll(e,t,r,l){Qt[fr++]=e,Qt[fr++]=t,Qt[fr++]=r,Qt[fr++]=l,vo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function yo(e,t,r,l){return Ll(e,t,r,l),Nl(e)}function La(e,t){return Ll(e,null,null,t),Nl(e)}function fh(e,t,r){e.lanes|=r;var l=e.alternate;l!==null&&(l.lanes|=r);for(var o=!1,f=e.return;f!==null;)f.childLanes|=r,l=f.alternate,l!==null&&(l.childLanes|=r),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(o=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,o&&t!==null&&(o=31-Ot(r),e=f.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=r|536870912),f):null}function Nl(e){if(50<Ui)throw Ui=0,Tc=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var dr={};function W_(e,t,r,l){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,t,r,l){return new W_(e,t,r,l)}function go(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mn(e,t){var r=e.alternate;return r===null?(r=Vt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function dh(e,t){e.flags&=65011714;var r=e.alternate;return r===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=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zl(e,t,r,l,o,f){var g=0;if(l=e,typeof e=="function")go(e)&&(g=1);else if(typeof e=="string")g=n1(e,r,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ee:return e=Vt(31,r,t,o),e.elementType=ee,e.lanes=f,e;case C:return Na(r.children,o,f,t);case T:g=8,o|=24;break;case x:return e=Vt(12,r,t,o|2),e.elementType=x,e.lanes=f,e;case O:return e=Vt(13,r,t,o),e.elementType=O,e.lanes=f,e;case G:return e=Vt(19,r,t,o),e.elementType=G,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:g=10;break e;case L:g=9;break e;case R:g=11;break e;case N:g=14;break e;case Y:g=16,l=null;break e}g=29,r=Error(u(130,e===null?"null":typeof e,"")),l=null}return t=Vt(g,r,t,o),t.elementType=e,t.type=l,t.lanes=f,t}function Na(e,t,r,l){return e=Vt(7,e,l,t),e.lanes=r,e}function bo(e,t,r){return e=Vt(6,e,null,t),e.lanes=r,e}function hh(e){var t=Vt(18,null,null,0);return t.stateNode=e,t}function _o(e,t,r){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mh=new WeakMap;function Zt(e,t){if(typeof e=="object"&&e!==null){var r=mh.get(e);return r!==void 0?r:(t={value:e,source:t,stack:dl(t)},mh.set(e,t),t)}return{value:e,source:t,stack:dl(t)}}var hr=[],mr=0,ql=null,vi=0,Wt=[],Kt=0,ta=null,vn=1,yn="";function jn(e,t){hr[mr++]=vi,hr[mr++]=ql,ql=e,vi=t}function ph(e,t,r){Wt[Kt++]=vn,Wt[Kt++]=yn,Wt[Kt++]=ta,ta=e;var l=vn;e=yn;var o=32-Ot(l)-1;l&=~(1<<o),r+=1;var f=32-Ot(t)+o;if(30<f){var g=o-o%5;f=(l&(1<<g)-1).toString(32),l>>=g,o-=g,vn=1<<32-Ot(t)+o|r<<o|l,yn=f+e}else vn=1<<f|r<<o|l,yn=e}function So(e){e.return!==null&&(jn(e,1),ph(e,1,0))}function wo(e){for(;e===ql;)ql=hr[--mr],hr[mr]=null,vi=hr[--mr],hr[mr]=null;for(;e===ta;)ta=Wt[--Kt],Wt[Kt]=null,yn=Wt[--Kt],Wt[Kt]=null,vn=Wt[--Kt],Wt[Kt]=null}function vh(e,t){Wt[Kt++]=vn,Wt[Kt++]=yn,Wt[Kt++]=ta,vn=t.id,yn=t.overflow,ta=e}var mt=null,Ze=null,je=!1,na=null,Jt=!1,Eo=Error(u(519));function aa(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yi(Zt(t,e)),Eo}function yh(e){var t=e.stateNode,r=e.type,l=e.memoizedProps;switch(t[ht]=e,t[Rt]=l,r){case"dialog":Re("cancel",t),Re("close",t);break;case"iframe":case"object":case"embed":Re("load",t);break;case"video":case"audio":for(r=0;r<Vi.length;r++)Re(Vi[r],t);break;case"source":Re("error",t);break;case"img":case"image":case"link":Re("error",t),Re("load",t);break;case"details":Re("toggle",t);break;case"input":Re("invalid",t),Dd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Re("invalid",t);break;case"textarea":Re("invalid",t),jd(t,l.value,l.defaultValue,l.children)}r=l.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||l.suppressHydrationWarning===!0||Np(t.textContent,r)?(l.popover!=null&&(Re("beforetoggle",t),Re("toggle",t)),l.onScroll!=null&&Re("scroll",t),l.onScrollEnd!=null&&Re("scrollend",t),l.onClick!=null&&(t.onclick=Rn),t=!0):t=!1,t||aa(e,!0)}function gh(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:Jt=!1;return;case 27:case 3:Jt=!0;return;default:mt=mt.return}}function pr(e){if(e!==mt)return!1;if(!je)return gh(e),je=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Gc(e.type,e.memoizedProps)),r=!r),r&&Ze&&aa(e),gh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ze=$p(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ze=$p(e)}else t===27?(t=Ze,ya(e.type)?(e=Fc,Fc=null,Ze=e):Ze=t):Ze=mt?tn(e.stateNode.nextSibling):null;return!0}function za(){Ze=mt=null,je=!1}function Co(){var e=na;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),na=null),e}function yi(e){na===null?na=[e]:na.push(e)}var Oo=M(null),qa=null,Ln=null;function ra(e,t,r){te(Oo,t._currentValue),t._currentValue=r}function Nn(e){e._currentValue=Oo.current,P(Oo)}function To(e,t,r){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===r)break;e=e.return}}function xo(e,t,r,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var f=o.dependencies;if(f!==null){var g=o.child;f=f.firstContext;e:for(;f!==null;){var S=f;f=o;for(var D=0;D<t.length;D++)if(S.context===t[D]){f.lanes|=r,S=f.alternate,S!==null&&(S.lanes|=r),To(f.return,r,e),l||(g=null);break e}f=S.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(u(341));g.lanes|=r,f=g.alternate,f!==null&&(f.lanes|=r),To(g,r,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function vr(e,t,r,l){e=null;for(var o=t,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(u(387));if(g=g.memoizedProps,g!==null){var S=o.type;Ht(o.pendingProps.value,g.value)||(e!==null?e.push(S):e=[S])}}else if(o===_e.current){if(g=o.alternate,g===null)throw Error(u(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Pi):e=[Pi])}o=o.return}e!==null&&xo(t,e,r,l),t.flags|=262144}function Ul(e){for(e=e.firstContext;e!==null;){if(!Ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ua(e){qa=e,Ln=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return bh(qa,e)}function Hl(e,t){return qa===null&&Ua(e),bh(e,t)}function bh(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},Ln===null){if(e===null)throw Error(u(308));Ln=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ln=Ln.next=t;return r}var K_=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},J_=a.unstable_scheduleCallback,e0=a.unstable_NormalPriority,rt={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ao(){return{controller:new K_,data:new Map,refCount:0}}function gi(e){e.refCount--,e.refCount===0&&J_(e0,function(){e.controller.abort()})}var bi=null,Ro=0,yr=0,gr=null;function t0(e,t){if(bi===null){var r=bi=[];Ro=0,yr=jc(),gr={status:"pending",value:void 0,then:function(l){r.push(l)}}}return Ro++,t.then(_h,_h),t}function _h(){if(--Ro===0&&bi!==null){gr!==null&&(gr.status="fulfilled");var e=bi;bi=null,yr=0,gr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function n0(e,t){var r=[],l={status:"pending",value:null,reason:null,then:function(o){r.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<r.length;o++)(0,r[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<r.length;o++)(0,r[o])(void 0)}),l}var Sh=H.S;H.S=function(e,t){rp=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&t0(e,t),Sh!==null&&Sh(e,t)};var Ha=M(null);function Do(){var e=Ha.current;return e!==null?e:Xe.pooledCache}function Vl(e,t){t===null?te(Ha,Ha.current):te(Ha,t.pool)}function wh(){var e=Do();return e===null?null:{parent:rt._currentValue,pool:e}}var br=Error(u(460)),Mo=Error(u(474)),Bl=Error(u(542)),Gl={then:function(){}};function Eh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ch(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(Rn,Rn),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Th(e),e;default:if(typeof t.status=="string")t.then(Rn,Rn);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Th(e),e}throw Ba=t,br}}function Va(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(Ba=r,br):r}}var Ba=null;function Oh(){if(Ba===null)throw Error(u(459));var e=Ba;return Ba=null,e}function Th(e){if(e===br||e===Bl)throw Error(u(483))}var _r=null,_i=0;function kl(e){var t=_i;return _i+=1,_r===null&&(_r=[]),Ch(_r,e,t)}function Si(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function $l(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 xh(e){function t(q,j){if(e){var V=q.deletions;V===null?(q.deletions=[j],q.flags|=16):V.push(j)}}function r(q,j){if(!e)return null;for(;j!==null;)t(q,j),j=j.sibling;return null}function l(q){for(var j=new Map;q!==null;)q.key!==null?j.set(q.key,q):j.set(q.index,q),q=q.sibling;return j}function o(q,j){return q=Mn(q,j),q.index=0,q.sibling=null,q}function f(q,j,V){return q.index=V,e?(V=q.alternate,V!==null?(V=V.index,V<j?(q.flags|=67108866,j):V):(q.flags|=67108866,j)):(q.flags|=1048576,j)}function g(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function S(q,j,V,Z){return j===null||j.tag!==6?(j=bo(V,q.mode,Z),j.return=q,j):(j=o(j,V),j.return=q,j)}function D(q,j,V,Z){var he=V.type;return he===C?X(q,j,V.props.children,Z,V.key):j!==null&&(j.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===Y&&Va(he)===j.type)?(j=o(j,V.props),Si(j,V),j.return=q,j):(j=zl(V.type,V.key,V.props,null,q.mode,Z),Si(j,V),j.return=q,j)}function B(q,j,V,Z){return j===null||j.tag!==4||j.stateNode.containerInfo!==V.containerInfo||j.stateNode.implementation!==V.implementation?(j=_o(V,q.mode,Z),j.return=q,j):(j=o(j,V.children||[]),j.return=q,j)}function X(q,j,V,Z,he){return j===null||j.tag!==7?(j=Na(V,q.mode,Z,he),j.return=q,j):(j=o(j,V),j.return=q,j)}function W(q,j,V){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=bo(""+j,q.mode,V),j.return=q,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case _:return V=zl(j.type,j.key,j.props,null,q.mode,V),Si(V,j),V.return=q,V;case E:return j=_o(j,q.mode,V),j.return=q,j;case Y:return j=Va(j),W(q,j,V)}if(we(j)||ie(j))return j=Na(j,q.mode,V,null),j.return=q,j;if(typeof j.then=="function")return W(q,kl(j),V);if(j.$$typeof===U)return W(q,Hl(q,j),V);$l(q,j)}return null}function k(q,j,V,Z){var he=j!==null?j.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return he!==null?null:S(q,j,""+V,Z);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case _:return V.key===he?D(q,j,V,Z):null;case E:return V.key===he?B(q,j,V,Z):null;case Y:return V=Va(V),k(q,j,V,Z)}if(we(V)||ie(V))return he!==null?null:X(q,j,V,Z,null);if(typeof V.then=="function")return k(q,j,kl(V),Z);if(V.$$typeof===U)return k(q,j,Hl(q,V),Z);$l(q,V)}return null}function I(q,j,V,Z,he){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return q=q.get(V)||null,S(j,q,""+Z,he);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case _:return q=q.get(Z.key===null?V:Z.key)||null,D(j,q,Z,he);case E:return q=q.get(Z.key===null?V:Z.key)||null,B(j,q,Z,he);case Y:return Z=Va(Z),I(q,j,V,Z,he)}if(we(Z)||ie(Z))return q=q.get(V)||null,X(j,q,Z,he,null);if(typeof Z.then=="function")return I(q,j,V,kl(Z),he);if(Z.$$typeof===U)return I(q,j,V,Hl(j,Z),he);$l(j,Z)}return null}function se(q,j,V,Z){for(var he=null,qe=null,ce=j,Te=j=0,Me=null;ce!==null&&Te<V.length;Te++){ce.index>Te?(Me=ce,ce=null):Me=ce.sibling;var Ue=k(q,ce,V[Te],Z);if(Ue===null){ce===null&&(ce=Me);break}e&&ce&&Ue.alternate===null&&t(q,ce),j=f(Ue,j,Te),qe===null?he=Ue:qe.sibling=Ue,qe=Ue,ce=Me}if(Te===V.length)return r(q,ce),je&&jn(q,Te),he;if(ce===null){for(;Te<V.length;Te++)ce=W(q,V[Te],Z),ce!==null&&(j=f(ce,j,Te),qe===null?he=ce:qe.sibling=ce,qe=ce);return je&&jn(q,Te),he}for(ce=l(ce);Te<V.length;Te++)Me=I(ce,q,Te,V[Te],Z),Me!==null&&(e&&Me.alternate!==null&&ce.delete(Me.key===null?Te:Me.key),j=f(Me,j,Te),qe===null?he=Me:qe.sibling=Me,qe=Me);return e&&ce.forEach(function(wa){return t(q,wa)}),je&&jn(q,Te),he}function ge(q,j,V,Z){if(V==null)throw Error(u(151));for(var he=null,qe=null,ce=j,Te=j=0,Me=null,Ue=V.next();ce!==null&&!Ue.done;Te++,Ue=V.next()){ce.index>Te?(Me=ce,ce=null):Me=ce.sibling;var wa=k(q,ce,Ue.value,Z);if(wa===null){ce===null&&(ce=Me);break}e&&ce&&wa.alternate===null&&t(q,ce),j=f(wa,j,Te),qe===null?he=wa:qe.sibling=wa,qe=wa,ce=Me}if(Ue.done)return r(q,ce),je&&jn(q,Te),he;if(ce===null){for(;!Ue.done;Te++,Ue=V.next())Ue=W(q,Ue.value,Z),Ue!==null&&(j=f(Ue,j,Te),qe===null?he=Ue:qe.sibling=Ue,qe=Ue);return je&&jn(q,Te),he}for(ce=l(ce);!Ue.done;Te++,Ue=V.next())Ue=I(ce,q,Te,Ue.value,Z),Ue!==null&&(e&&Ue.alternate!==null&&ce.delete(Ue.key===null?Te:Ue.key),j=f(Ue,j,Te),qe===null?he=Ue:qe.sibling=Ue,qe=Ue);return e&&ce.forEach(function(h1){return t(q,h1)}),je&&jn(q,Te),he}function Fe(q,j,V,Z){if(typeof V=="object"&&V!==null&&V.type===C&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case _:e:{for(var he=V.key;j!==null;){if(j.key===he){if(he=V.type,he===C){if(j.tag===7){r(q,j.sibling),Z=o(j,V.props.children),Z.return=q,q=Z;break e}}else if(j.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===Y&&Va(he)===j.type){r(q,j.sibling),Z=o(j,V.props),Si(Z,V),Z.return=q,q=Z;break e}r(q,j);break}else t(q,j);j=j.sibling}V.type===C?(Z=Na(V.props.children,q.mode,Z,V.key),Z.return=q,q=Z):(Z=zl(V.type,V.key,V.props,null,q.mode,Z),Si(Z,V),Z.return=q,q=Z)}return g(q);case E:e:{for(he=V.key;j!==null;){if(j.key===he)if(j.tag===4&&j.stateNode.containerInfo===V.containerInfo&&j.stateNode.implementation===V.implementation){r(q,j.sibling),Z=o(j,V.children||[]),Z.return=q,q=Z;break e}else{r(q,j);break}else t(q,j);j=j.sibling}Z=_o(V,q.mode,Z),Z.return=q,q=Z}return g(q);case Y:return V=Va(V),Fe(q,j,V,Z)}if(we(V))return se(q,j,V,Z);if(ie(V)){if(he=ie(V),typeof he!="function")throw Error(u(150));return V=he.call(V),ge(q,j,V,Z)}if(typeof V.then=="function")return Fe(q,j,kl(V),Z);if(V.$$typeof===U)return Fe(q,j,Hl(q,V),Z);$l(q,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,j!==null&&j.tag===6?(r(q,j.sibling),Z=o(j,V),Z.return=q,q=Z):(r(q,j),Z=bo(V,q.mode,Z),Z.return=q,q=Z),g(q)):r(q,j)}return function(q,j,V,Z){try{_i=0;var he=Fe(q,j,V,Z);return _r=null,he}catch(ce){if(ce===br||ce===Bl)throw ce;var qe=Vt(29,ce,null,q.mode);return qe.lanes=Z,qe.return=q,qe}}}var Ga=xh(!0),Ah=xh(!1),ia=!1;function jo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lo(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 la(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ua(e,t,r){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Nl(e),fh(e,null,r),t}return Ll(e,l,t,r),Nl(e)}function wi(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,bd(e,r)}}function No(e,t){var r=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var o=null,f=null;if(r=r.firstBaseUpdate,r!==null){do{var g={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};f===null?o=f=g:f=f.next=g,r=r.next}while(r!==null);f===null?o=f=t:f=f.next=t}else o=f=t;r={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var zo=!1;function Ei(){if(zo){var e=gr;if(e!==null)throw e}}function Ci(e,t,r,l){zo=!1;var o=e.updateQueue;ia=!1;var f=o.firstBaseUpdate,g=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var D=S,B=D.next;D.next=null,g===null?f=B:g.next=B,g=D;var X=e.alternate;X!==null&&(X=X.updateQueue,S=X.lastBaseUpdate,S!==g&&(S===null?X.firstBaseUpdate=B:S.next=B,X.lastBaseUpdate=D))}if(f!==null){var W=o.baseState;g=0,X=B=D=null,S=f;do{var k=S.lane&-536870913,I=k!==S.lane;if(I?(De&k)===k:(l&k)===k){k!==0&&k===yr&&(zo=!0),X!==null&&(X=X.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var se=e,ge=S;k=t;var Fe=r;switch(ge.tag){case 1:if(se=ge.payload,typeof se=="function"){W=se.call(Fe,W,k);break e}W=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=ge.payload,k=typeof se=="function"?se.call(Fe,W,k):se,k==null)break e;W=y({},W,k);break e;case 2:ia=!0}}k=S.callback,k!==null&&(e.flags|=64,I&&(e.flags|=8192),I=o.callbacks,I===null?o.callbacks=[k]:I.push(k))}else I={lane:k,tag:S.tag,payload:S.payload,callback:S.callback,next:null},X===null?(B=X=I,D=W):X=X.next=I,g|=k;if(S=S.next,S===null){if(S=o.shared.pending,S===null)break;I=S,S=I.next,I.next=null,o.lastBaseUpdate=I,o.shared.pending=null}}while(!0);X===null&&(D=W),o.baseState=D,o.firstBaseUpdate=B,o.lastBaseUpdate=X,f===null&&(o.shared.lanes=0),da|=g,e.lanes=g,e.memoizedState=W}}function Rh(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Dh(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)Rh(r[e],t)}var Sr=M(null),Pl=M(0);function Mh(e,t){e=$n,te(Pl,e),te(Sr,t),$n=e|t.baseLanes}function qo(){te(Pl,$n),te(Sr,Sr.current)}function Uo(){$n=Pl.current,P(Sr),P(Pl)}var Bt=M(null),en=null;function sa(e){var t=e.alternate;te(nt,nt.current&1),te(Bt,e),en===null&&(t===null||Sr.current!==null||t.memoizedState!==null)&&(en=e)}function Ho(e){te(nt,nt.current),te(Bt,e),en===null&&(en=e)}function jh(e){e.tag===22?(te(nt,nt.current),te(Bt,e),en===null&&(en=e)):oa()}function oa(){te(nt,nt.current),te(Bt,Bt.current)}function Gt(e){P(Bt),en===e&&(en=null),P(nt)}var nt=M(0);function Il(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Pc(r)||Ic(r)))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 zn=0,Oe=null,Pe=null,it=null,Fl=!1,wr=!1,ka=!1,Yl=0,Oi=0,Er=null,a0=0;function Je(){throw Error(u(321))}function Vo(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ht(e[r],t[r]))return!1;return!0}function Bo(e,t,r,l,o,f){return zn=f,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?pm:tc,ka=!1,f=r(l,o),ka=!1,wr&&(f=Nh(t,r,l,o)),Lh(e),f}function Lh(e){H.H=Ai;var t=Pe!==null&&Pe.next!==null;if(zn=0,it=Pe=Oe=null,Fl=!1,Oi=0,Er=null,t)throw Error(u(300));e===null||lt||(e=e.dependencies,e!==null&&Ul(e)&&(lt=!0))}function Nh(e,t,r,l){Oe=e;var o=0;do{if(wr&&(Er=null),Oi=0,wr=!1,25<=o)throw Error(u(301));if(o+=1,it=Pe=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}H.H=vm,f=t(r,l)}while(wr);return f}function r0(){var e=H.H,t=e.useState()[0];return t=typeof t.then=="function"?Ti(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(Oe.flags|=1024),t}function Go(){var e=Yl!==0;return Yl=0,e}function ko(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function $o(e){if(Fl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fl=!1}zn=0,it=Pe=Oe=null,wr=!1,Oi=Yl=0,Er=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?Oe.memoizedState=it=e:it=it.next=e,it}function at(){if(Pe===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=it===null?Oe.memoizedState:it.next;if(t!==null)it=t,Pe=e;else{if(e===null)throw Oe.alternate===null?Error(u(467)):Error(u(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},it===null?Oe.memoizedState=it=e:it=it.next=e}return it}function Xl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ti(e){var t=Oi;return Oi+=1,Er===null&&(Er=[]),e=Ch(Er,e,t),t=Oe,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?pm:tc),e}function Ql(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ti(e);if(e.$$typeof===U)return pt(e)}throw Error(u(438,String(e)))}function Po(e){var t=null,r=Oe.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var l=Oe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Xl(),Oe.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),l=0;l<e;l++)r[l]=$;return t.index++,r}function qn(e,t){return typeof t=="function"?t(e):t}function Zl(e){var t=at();return Io(t,Pe,e)}function Io(e,t,r){var l=e.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=r;var o=e.baseQueue,f=l.pending;if(f!==null){if(o!==null){var g=o.next;o.next=f.next,f.next=g}t.baseQueue=o=f,l.pending=null}if(f=e.baseState,o===null)e.memoizedState=f;else{t=o.next;var S=g=null,D=null,B=t,X=!1;do{var W=B.lane&-536870913;if(W!==B.lane?(De&W)===W:(zn&W)===W){var k=B.revertLane;if(k===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),W===yr&&(X=!0);else if((zn&k)===k){B=B.next,k===yr&&(X=!0);continue}else W={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},D===null?(S=D=W,g=f):D=D.next=W,Oe.lanes|=k,da|=k;W=B.action,ka&&r(f,W),f=B.hasEagerState?B.eagerState:r(f,W)}else k={lane:W,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},D===null?(S=D=k,g=f):D=D.next=k,Oe.lanes|=W,da|=W;B=B.next}while(B!==null&&B!==t);if(D===null?g=f:D.next=S,!Ht(f,e.memoizedState)&&(lt=!0,X&&(r=gr,r!==null)))throw r;e.memoizedState=f,e.baseState=g,e.baseQueue=D,l.lastRenderedState=f}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Fo(e){var t=at(),r=t.queue;if(r===null)throw Error(u(311));r.lastRenderedReducer=e;var l=r.dispatch,o=r.pending,f=t.memoizedState;if(o!==null){r.pending=null;var g=o=o.next;do f=e(f,g.action),g=g.next;while(g!==o);Ht(f,t.memoizedState)||(lt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),r.lastRenderedState=f}return[f,l]}function zh(e,t,r){var l=Oe,o=at(),f=je;if(f){if(r===void 0)throw Error(u(407));r=r()}else r=t();var g=!Ht((Pe||o).memoizedState,r);if(g&&(o.memoizedState=r,lt=!0),o=o.queue,Qo(Hh.bind(null,l,o,e),[e]),o.getSnapshot!==t||g||it!==null&&it.memoizedState.tag&1){if(l.flags|=2048,Cr(9,{destroy:void 0},Uh.bind(null,l,o,r,t),null),Xe===null)throw Error(u(349));f||(zn&127)!==0||qh(l,t,r)}return r}function qh(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Oe.updateQueue,t===null?(t=Xl(),Oe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Uh(e,t,r,l){t.value=r,t.getSnapshot=l,Vh(t)&&Bh(e)}function Hh(e,t,r){return r(function(){Vh(t)&&Bh(e)})}function Vh(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ht(e,r)}catch{return!0}}function Bh(e){var t=La(e,2);t!==null&&zt(t,e,2)}function Yo(e){var t=Tt();if(typeof e=="function"){var r=e;if(e=r(),ka){Ft(!0);try{r()}finally{Ft(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:e},t}function Gh(e,t,r,l){return e.baseState=r,Io(e,Pe,typeof l=="function"?l:qn)}function i0(e,t,r,l,o){if(Jl(e))throw Error(u(485));if(e=t.action,e!==null){var f={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};H.T!==null?r(!0):f.isTransition=!1,l(f),r=t.pending,r===null?(f.next=t.pending=f,kh(t,f)):(f.next=r.next,t.pending=r.next=f)}}function kh(e,t){var r=t.action,l=t.payload,o=e.state;if(t.isTransition){var f=H.T,g={};H.T=g;try{var S=r(o,l),D=H.S;D!==null&&D(g,S),$h(e,t,S)}catch(B){Xo(e,t,B)}finally{f!==null&&g.types!==null&&(f.types=g.types),H.T=f}}else try{f=r(o,l),$h(e,t,f)}catch(B){Xo(e,t,B)}}function $h(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(l){Ph(e,t,l)},function(l){return Xo(e,t,l)}):Ph(e,t,r)}function Ph(e,t,r){t.status="fulfilled",t.value=r,Ih(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,kh(e,r)))}function Xo(e,t,r){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=r,Ih(t),t=t.next;while(t!==l)}e.action=null}function Ih(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Fh(e,t){return t}function Yh(e,t){if(je){var r=Xe.formState;if(r!==null){e:{var l=Oe;if(je){if(Ze){t:{for(var o=Ze,f=Jt;o.nodeType!==8;){if(!f){o=null;break t}if(o=tn(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Ze=tn(o.nextSibling),l=o.data==="F!";break e}}aa(l)}l=!1}l&&(t=r[0])}}return r=Tt(),r.memoizedState=r.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fh,lastRenderedState:t},r.queue=l,r=dm.bind(null,Oe,l),l.dispatch=r,l=Yo(!1),f=ec.bind(null,Oe,!1,l.queue),l=Tt(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,r=i0.bind(null,Oe,o,f,r),o.dispatch=r,l.memoizedState=e,[t,r,!1]}function Xh(e){var t=at();return Qh(t,Pe,e)}function Qh(e,t,r){if(t=Io(e,t,Fh)[0],e=Zl(qn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Ti(t)}catch(g){throw g===br?Bl:g}else l=t;t=at();var o=t.queue,f=o.dispatch;return r!==t.memoizedState&&(Oe.flags|=2048,Cr(9,{destroy:void 0},l0.bind(null,o,r),null)),[l,f,e]}function l0(e,t){e.action=t}function Zh(e){var t=at(),r=Pe;if(r!==null)return Qh(t,r,e);at(),t=t.memoizedState,r=at();var l=r.queue.dispatch;return r.memoizedState=e,[t,l,!1]}function Cr(e,t,r,l){return e={tag:e,create:r,deps:l,inst:t,next:null},t=Oe.updateQueue,t===null&&(t=Xl(),Oe.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(l=r.next,r.next=e,e.next=l,t.lastEffect=e),e}function Wh(){return at().memoizedState}function Wl(e,t,r,l){var o=Tt();Oe.flags|=e,o.memoizedState=Cr(1|t,{destroy:void 0},r,l===void 0?null:l)}function Kl(e,t,r,l){var o=at();l=l===void 0?null:l;var f=o.memoizedState.inst;Pe!==null&&l!==null&&Vo(l,Pe.memoizedState.deps)?o.memoizedState=Cr(t,f,r,l):(Oe.flags|=e,o.memoizedState=Cr(1|t,f,r,l))}function Kh(e,t){Wl(8390656,8,e,t)}function Qo(e,t){Kl(2048,8,e,t)}function u0(e){Oe.flags|=4;var t=Oe.updateQueue;if(t===null)t=Xl(),Oe.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function Jh(e){var t=at().memoizedState;return u0({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function em(e,t){return Kl(4,2,e,t)}function tm(e,t){return Kl(4,4,e,t)}function nm(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function am(e,t,r){r=r!=null?r.concat([e]):null,Kl(4,4,nm.bind(null,t,e),r)}function Zo(){}function rm(e,t){var r=at();t=t===void 0?null:t;var l=r.memoizedState;return t!==null&&Vo(t,l[1])?l[0]:(r.memoizedState=[e,t],e)}function im(e,t){var r=at();t=t===void 0?null:t;var l=r.memoizedState;if(t!==null&&Vo(t,l[1]))return l[0];if(l=e(),ka){Ft(!0);try{e()}finally{Ft(!1)}}return r.memoizedState=[l,t],l}function Wo(e,t,r){return r===void 0||(zn&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=lp(),Oe.lanes|=e,da|=e,r)}function lm(e,t,r,l){return Ht(r,t)?r:Sr.current!==null?(e=Wo(e,r,l),Ht(e,t)||(lt=!0),e):(zn&42)===0||(zn&1073741824)!==0&&(De&261930)===0?(lt=!0,e.memoizedState=r):(e=lp(),Oe.lanes|=e,da|=e,t)}function um(e,t,r,l,o){var f=K.p;K.p=f!==0&&8>f?f:8;var g=H.T,S={};H.T=S,ec(e,!1,t,r);try{var D=o(),B=H.S;if(B!==null&&B(S,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var X=n0(D,l);xi(e,t,X,Pt(e))}else xi(e,t,l,Pt(e))}catch(W){xi(e,t,{then:function(){},status:"rejected",reason:W},Pt())}finally{K.p=f,g!==null&&S.types!==null&&(g.types=S.types),H.T=g}}function s0(){}function Ko(e,t,r,l){if(e.tag!==5)throw Error(u(476));var o=sm(e).queue;um(e,o,t,re,r===null?s0:function(){return om(e),r(l)})}function sm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:re},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function om(e){var t=sm(e);t.next===null&&(t=e.alternate.memoizedState),xi(e,t.next.queue,{},Pt())}function Jo(){return pt(Pi)}function cm(){return at().memoizedState}function fm(){return at().memoizedState}function o0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=Pt();e=la(r);var l=ua(t,e,r);l!==null&&(zt(l,t,r),wi(l,t,r)),t={cache:Ao()},e.payload=t;return}t=t.return}}function c0(e,t,r){var l=Pt();r={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Jl(e)?hm(t,r):(r=yo(e,t,r,l),r!==null&&(zt(r,e,l),mm(r,t,l)))}function dm(e,t,r){var l=Pt();xi(e,t,r,l)}function xi(e,t,r,l){var o={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Jl(e))hm(t,o);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var g=t.lastRenderedState,S=f(g,r);if(o.hasEagerState=!0,o.eagerState=S,Ht(S,g))return Ll(e,t,o,0),Xe===null&&jl(),!1}catch{}if(r=yo(e,t,o,l),r!==null)return zt(r,e,l),mm(r,t,l),!0}return!1}function ec(e,t,r,l){if(l={lane:2,revertLane:jc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Jl(e)){if(t)throw Error(u(479))}else t=yo(e,r,l,2),t!==null&&zt(t,e,2)}function Jl(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function hm(e,t){wr=Fl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function mm(e,t,r){if((r&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,bd(e,r)}}var Ai={readContext:pt,use:Ql,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};Ai.useEffectEvent=Je;var pm={readContext:pt,use:Ql,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Kh,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Wl(4194308,4,nm.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Wl(4194308,4,e,t)},useInsertionEffect:function(e,t){Wl(4,2,e,t)},useMemo:function(e,t){var r=Tt();t=t===void 0?null:t;var l=e();if(ka){Ft(!0);try{e()}finally{Ft(!1)}}return r.memoizedState=[l,t],l},useReducer:function(e,t,r){var l=Tt();if(r!==void 0){var o=r(t);if(ka){Ft(!0);try{r(t)}finally{Ft(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=c0.bind(null,Oe,e),[l.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Yo(e);var t=e.queue,r=dm.bind(null,Oe,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:Zo,useDeferredValue:function(e,t){var r=Tt();return Wo(r,e,t)},useTransition:function(){var e=Yo(!1);return e=um.bind(null,Oe,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var l=Oe,o=Tt();if(je){if(r===void 0)throw Error(u(407));r=r()}else{if(r=t(),Xe===null)throw Error(u(349));(De&127)!==0||qh(l,t,r)}o.memoizedState=r;var f={value:r,getSnapshot:t};return o.queue=f,Kh(Hh.bind(null,l,f,e),[e]),l.flags|=2048,Cr(9,{destroy:void 0},Uh.bind(null,l,f,r,t),null),r},useId:function(){var e=Tt(),t=Xe.identifierPrefix;if(je){var r=yn,l=vn;r=(l&~(1<<32-Ot(l)-1)).toString(32)+r,t="_"+t+"R_"+r,r=Yl++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=a0++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Jo,useFormState:Yh,useActionState:Yh,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=ec.bind(null,Oe,!0,r),r.dispatch=t,[e,t]},useMemoCache:Po,useCacheRefresh:function(){return Tt().memoizedState=o0.bind(null,Oe)},useEffectEvent:function(e){var t=Tt(),r={impl:e};return t.memoizedState=r,function(){if((He&2)!==0)throw Error(u(440));return r.impl.apply(void 0,arguments)}}},tc={readContext:pt,use:Ql,useCallback:rm,useContext:pt,useEffect:Qo,useImperativeHandle:am,useInsertionEffect:em,useLayoutEffect:tm,useMemo:im,useReducer:Zl,useRef:Wh,useState:function(){return Zl(qn)},useDebugValue:Zo,useDeferredValue:function(e,t){var r=at();return lm(r,Pe.memoizedState,e,t)},useTransition:function(){var e=Zl(qn)[0],t=at().memoizedState;return[typeof e=="boolean"?e:Ti(e),t]},useSyncExternalStore:zh,useId:cm,useHostTransitionStatus:Jo,useFormState:Xh,useActionState:Xh,useOptimistic:function(e,t){var r=at();return Gh(r,Pe,e,t)},useMemoCache:Po,useCacheRefresh:fm};tc.useEffectEvent=Jh;var vm={readContext:pt,use:Ql,useCallback:rm,useContext:pt,useEffect:Qo,useImperativeHandle:am,useInsertionEffect:em,useLayoutEffect:tm,useMemo:im,useReducer:Fo,useRef:Wh,useState:function(){return Fo(qn)},useDebugValue:Zo,useDeferredValue:function(e,t){var r=at();return Pe===null?Wo(r,e,t):lm(r,Pe.memoizedState,e,t)},useTransition:function(){var e=Fo(qn)[0],t=at().memoizedState;return[typeof e=="boolean"?e:Ti(e),t]},useSyncExternalStore:zh,useId:cm,useHostTransitionStatus:Jo,useFormState:Zh,useActionState:Zh,useOptimistic:function(e,t){var r=at();return Pe!==null?Gh(r,Pe,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Po,useCacheRefresh:fm};vm.useEffectEvent=Jh;function nc(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:y({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ac={enqueueSetState:function(e,t,r){e=e._reactInternals;var l=Pt(),o=la(l);o.payload=t,r!=null&&(o.callback=r),t=ua(e,o,l),t!==null&&(zt(t,e,l),wi(t,e,l))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=Pt(),o=la(l);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=ua(e,o,l),t!==null&&(zt(t,e,l),wi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Pt(),l=la(r);l.tag=2,t!=null&&(l.callback=t),t=ua(e,l,r),t!==null&&(zt(t,e,r),wi(t,e,r))}};function ym(e,t,r,l,o,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,g):t.prototype&&t.prototype.isPureReactComponent?!mi(r,l)||!mi(o,f):!0}function gm(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&ac.enqueueReplaceState(t,t.state,null)}function $a(e,t){var r=t;if("ref"in t){r={};for(var l in t)l!=="ref"&&(r[l]=t[l])}if(e=e.defaultProps){r===t&&(r=y({},r));for(var o in e)r[o]===void 0&&(r[o]=e[o])}return r}function bm(e){Ml(e)}function _m(e){console.error(e)}function Sm(e){Ml(e)}function eu(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function wm(e,t,r){try{var l=e.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function rc(e,t,r){return r=la(r),r.tag=3,r.payload={element:null},r.callback=function(){eu(e,t)},r}function Em(e){return e=la(e),e.tag=3,e}function Cm(e,t,r,l){var o=r.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;e.payload=function(){return o(f)},e.callback=function(){wm(t,r,l)}}var g=r.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){wm(t,r,l),typeof o!="function"&&(ha===null?ha=new Set([this]):ha.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function f0(e,t,r,l,o){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=r.alternate,t!==null&&vr(t,r,o,!0),r=Bt.current,r!==null){switch(r.tag){case 31:case 13:return en===null?du():r.alternate===null&&et===0&&(et=3),r.flags&=-257,r.flags|=65536,r.lanes=o,l===Gl?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([l]):t.add(l),Rc(e,l,o)),!1;case 22:return r.flags|=65536,l===Gl?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([l]):r.add(l)),Rc(e,l,o)),!1}throw Error(u(435,r.tag))}return Rc(e,l,o),du(),!1}if(je)return t=Bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Eo&&(e=Error(u(422),{cause:l}),yi(Zt(e,r)))):(l!==Eo&&(t=Error(u(423),{cause:l}),yi(Zt(t,r))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Zt(l,r),o=rc(e.stateNode,l,o),No(e,o),et!==4&&(et=2)),!1;var f=Error(u(520),{cause:l});if(f=Zt(f,r),qi===null?qi=[f]:qi.push(f),et!==4&&(et=2),t===null)return!0;l=Zt(l,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=o&-o,r.lanes|=e,e=rc(r.stateNode,l,e),No(r,e),!1;case 1:if(t=r.type,f=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(ha===null||!ha.has(f))))return r.flags|=65536,o&=-o,r.lanes|=o,o=Em(o),Cm(o,e,r,l),No(r,o),!1}r=r.return}while(r!==null);return!1}var ic=Error(u(461)),lt=!1;function vt(e,t,r,l){t.child=e===null?Ah(t,null,r,l):Ga(t,e.child,r,l)}function Om(e,t,r,l,o){r=r.render;var f=t.ref;if("ref"in l){var g={};for(var S in l)S!=="ref"&&(g[S]=l[S])}else g=l;return Ua(t),l=Bo(e,t,r,g,f,o),S=Go(),e!==null&&!lt?(ko(e,t,o),Un(e,t,o)):(je&&S&&So(t),t.flags|=1,vt(e,t,l,o),t.child)}function Tm(e,t,r,l,o){if(e===null){var f=r.type;return typeof f=="function"&&!go(f)&&f.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=f,xm(e,t,f,l,o)):(e=zl(r.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!hc(e,o)){var g=f.memoizedProps;if(r=r.compare,r=r!==null?r:mi,r(g,l)&&e.ref===t.ref)return Un(e,t,o)}return t.flags|=1,e=Mn(f,l),e.ref=t.ref,e.return=t,t.child=e}function xm(e,t,r,l,o){if(e!==null){var f=e.memoizedProps;if(mi(f,l)&&e.ref===t.ref)if(lt=!1,t.pendingProps=l=f,hc(e,o))(e.flags&131072)!==0&&(lt=!0);else return t.lanes=e.lanes,Un(e,t,o)}return lc(e,t,r,l,o)}function Am(e,t,r,l){var o=l.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|r:r,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~f}else l=0,t.child=null;return Rm(e,t,f,r,l)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vl(t,f!==null?f.cachePool:null),f!==null?Mh(t,f):qo(),jh(t);else return l=t.lanes=536870912,Rm(e,t,f!==null?f.baseLanes|r:r,r,l)}else f!==null?(Vl(t,f.cachePool),Mh(t,f),oa(),t.memoizedState=null):(e!==null&&Vl(t,null),qo(),oa());return vt(e,t,o,r),t.child}function Ri(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rm(e,t,r,l,o){var f=Do();return f=f===null?null:{parent:rt._currentValue,pool:f},t.memoizedState={baseLanes:r,cachePool:f},e!==null&&Vl(t,null),qo(),jh(t),e!==null&&vr(e,t,l,!0),t.childLanes=o,null}function tu(e,t){return t=au({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Dm(e,t,r){return Ga(t,e.child,null,r),e=tu(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function d0(e,t,r){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(l.mode==="hidden")return e=tu(t,l),t.lanes=536870912,Ri(null,e);if(Ho(t),(e=Ze)?(e=kp(e,Jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ta!==null?{id:vn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},r=hh(e),r.return=t,t.child=r,mt=t,Ze=null)):e=null,e===null)throw aa(t);return t.lanes=536870912,null}return tu(t,l)}var f=e.memoizedState;if(f!==null){var g=f.dehydrated;if(Ho(t),o)if(t.flags&256)t.flags&=-257,t=Dm(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(lt||vr(e,t,r,!1),o=(r&e.childLanes)!==0,lt||o){if(l=Xe,l!==null&&(g=_d(l,r),g!==0&&g!==f.retryLane))throw f.retryLane=g,La(e,g),zt(l,e,g),ic;du(),t=Dm(e,t,r)}else e=f.treeContext,Ze=tn(g.nextSibling),mt=t,je=!0,na=null,Jt=!1,e!==null&&vh(t,e),t=tu(t,l),t.flags|=4096;return t}return e=Mn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function nu(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(u(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function lc(e,t,r,l,o){return Ua(t),r=Bo(e,t,r,l,void 0,o),l=Go(),e!==null&&!lt?(ko(e,t,o),Un(e,t,o)):(je&&l&&So(t),t.flags|=1,vt(e,t,r,o),t.child)}function Mm(e,t,r,l,o,f){return Ua(t),t.updateQueue=null,r=Nh(t,l,r,o),Lh(e),l=Go(),e!==null&&!lt?(ko(e,t,f),Un(e,t,f)):(je&&l&&So(t),t.flags|=1,vt(e,t,r,f),t.child)}function jm(e,t,r,l,o){if(Ua(t),t.stateNode===null){var f=dr,g=r.contextType;typeof g=="object"&&g!==null&&(f=pt(g)),f=new r(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=ac,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},jo(t),g=r.contextType,f.context=typeof g=="object"&&g!==null?pt(g):dr,f.state=t.memoizedState,g=r.getDerivedStateFromProps,typeof g=="function"&&(nc(t,r,g,l),f.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&ac.enqueueReplaceState(f,f.state,null),Ci(t,l,f,o),Ei(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var S=t.memoizedProps,D=$a(r,S);f.props=D;var B=f.context,X=r.contextType;g=dr,typeof X=="object"&&X!==null&&(g=pt(X));var W=r.getDerivedStateFromProps;X=typeof W=="function"||typeof f.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,X||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(S||B!==g)&&gm(t,f,l,g),ia=!1;var k=t.memoizedState;f.state=k,Ci(t,l,f,o),Ei(),B=t.memoizedState,S||k!==B||ia?(typeof W=="function"&&(nc(t,r,W,l),B=t.memoizedState),(D=ia||ym(t,r,D,l,k,B,g))?(X||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),f.props=l,f.state=B,f.context=g,l=D):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,Lo(e,t),g=t.memoizedProps,X=$a(r,g),f.props=X,W=t.pendingProps,k=f.context,B=r.contextType,D=dr,typeof B=="object"&&B!==null&&(D=pt(B)),S=r.getDerivedStateFromProps,(B=typeof S=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==W||k!==D)&&gm(t,f,l,D),ia=!1,k=t.memoizedState,f.state=k,Ci(t,l,f,o),Ei();var I=t.memoizedState;g!==W||k!==I||ia||e!==null&&e.dependencies!==null&&Ul(e.dependencies)?(typeof S=="function"&&(nc(t,r,S,l),I=t.memoizedState),(X=ia||ym(t,r,X,l,k,I,D)||e!==null&&e.dependencies!==null&&Ul(e.dependencies))?(B||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,I,D),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,I,D)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=I),f.props=l,f.state=I,f.context=D,l=X):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,nu(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=Ga(t,e.child,null,o),t.child=Ga(t,null,r,o)):vt(e,t,r,o),t.memoizedState=f.state,e=t.child):e=Un(e,t,o),e}function Lm(e,t,r,l){return za(),t.flags|=256,vt(e,t,r,l),t.child}var uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sc(e){return{baseLanes:e,cachePool:wh()}}function oc(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=$t),e}function Nm(e,t,r){var l=t.pendingProps,o=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(nt.current&2)!==0),g&&(o=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(o?sa(t):oa(),(e=Ze)?(e=kp(e,Jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ta!==null?{id:vn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},r=hh(e),r.return=t,t.child=r,mt=t,Ze=null)):e=null,e===null)throw aa(t);return Ic(e)?t.lanes=32:t.lanes=536870912,null}var S=l.children;return l=l.fallback,o?(oa(),o=t.mode,S=au({mode:"hidden",children:S},o),l=Na(l,o,r,null),S.return=t,l.return=t,S.sibling=l,t.child=S,l=t.child,l.memoizedState=sc(r),l.childLanes=oc(e,g,r),t.memoizedState=uc,Ri(null,l)):(sa(t),cc(t,S))}var D=e.memoizedState;if(D!==null&&(S=D.dehydrated,S!==null)){if(f)t.flags&256?(sa(t),t.flags&=-257,t=fc(e,t,r)):t.memoizedState!==null?(oa(),t.child=e.child,t.flags|=128,t=null):(oa(),S=l.fallback,o=t.mode,l=au({mode:"visible",children:l.children},o),S=Na(S,o,r,null),S.flags|=2,l.return=t,S.return=t,l.sibling=S,t.child=l,Ga(t,e.child,null,r),l=t.child,l.memoizedState=sc(r),l.childLanes=oc(e,g,r),t.memoizedState=uc,t=Ri(null,l));else if(sa(t),Ic(S)){if(g=S.nextSibling&&S.nextSibling.dataset,g)var B=g.dgst;g=B,l=Error(u(419)),l.stack="",l.digest=g,yi({value:l,source:null,stack:null}),t=fc(e,t,r)}else if(lt||vr(e,t,r,!1),g=(r&e.childLanes)!==0,lt||g){if(g=Xe,g!==null&&(l=_d(g,r),l!==0&&l!==D.retryLane))throw D.retryLane=l,La(e,l),zt(g,e,l),ic;Pc(S)||du(),t=fc(e,t,r)}else Pc(S)?(t.flags|=192,t.child=e.child,t=null):(e=D.treeContext,Ze=tn(S.nextSibling),mt=t,je=!0,na=null,Jt=!1,e!==null&&vh(t,e),t=cc(t,l.children),t.flags|=4096);return t}return o?(oa(),S=l.fallback,o=t.mode,D=e.child,B=D.sibling,l=Mn(D,{mode:"hidden",children:l.children}),l.subtreeFlags=D.subtreeFlags&65011712,B!==null?S=Mn(B,S):(S=Na(S,o,r,null),S.flags|=2),S.return=t,l.return=t,l.sibling=S,t.child=l,Ri(null,l),l=t.child,S=e.child.memoizedState,S===null?S=sc(r):(o=S.cachePool,o!==null?(D=rt._currentValue,o=o.parent!==D?{parent:D,pool:D}:o):o=wh(),S={baseLanes:S.baseLanes|r,cachePool:o}),l.memoizedState=S,l.childLanes=oc(e,g,r),t.memoizedState=uc,Ri(e.child,l)):(sa(t),r=e.child,e=r.sibling,r=Mn(r,{mode:"visible",children:l.children}),r.return=t,r.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=r,t.memoizedState=null,r)}function cc(e,t){return t=au({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function au(e,t){return e=Vt(22,e,null,t),e.lanes=0,e}function fc(e,t,r){return Ga(t,e.child,null,r),e=cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zm(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),To(e.return,t,r)}function dc(e,t,r,l,o,f){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:o,treeForkCount:f}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=l,g.tail=r,g.tailMode=o,g.treeForkCount=f)}function qm(e,t,r){var l=t.pendingProps,o=l.revealOrder,f=l.tail;l=l.children;var g=nt.current,S=(g&2)!==0;if(S?(g=g&1|2,t.flags|=128):g&=1,te(nt,g),vt(e,t,l,r),l=je?vi:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zm(e,r,t);else if(e.tag===19)zm(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Il(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),dc(t,!1,o,r,f,l);break;case"backwards":case"unstable_legacy-backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Il(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}dc(t,!0,r,null,f,l);break;case"together":dc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Un(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),da|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(vr(e,t,r,!1),(r&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,r=Mn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Mn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function hc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ul(e)))}function h0(e,t,r){switch(t.tag){case 3:ze(t,t.stateNode.containerInfo),ra(t,rt,e.memoizedState.cache),za();break;case 27:case 5:Ut(t);break;case 4:ze(t,t.stateNode.containerInfo);break;case 10:ra(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ho(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(sa(t),t.flags|=128,null):(r&t.child.childLanes)!==0?Nm(e,t,r):(sa(t),e=Un(e,t,r),e!==null?e.sibling:null);sa(t);break;case 19:var o=(e.flags&128)!==0;if(l=(r&t.childLanes)!==0,l||(vr(e,t,r,!1),l=(r&t.childLanes)!==0),o){if(l)return qm(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),te(nt,nt.current),l)break;return null;case 22:return t.lanes=0,Am(e,t,r,t.pendingProps);case 24:ra(t,rt,e.memoizedState.cache)}return Un(e,t,r)}function Um(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)lt=!0;else{if(!hc(e,r)&&(t.flags&128)===0)return lt=!1,h0(e,t,r);lt=(e.flags&131072)!==0}else lt=!1,je&&(t.flags&1048576)!==0&&ph(t,vi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Va(t.elementType),t.type=e,typeof e=="function")go(e)?(l=$a(e,l),t.tag=1,t=jm(null,t,e,l,r)):(t.tag=0,t=lc(null,t,e,l,r));else{if(e!=null){var o=e.$$typeof;if(o===R){t.tag=11,t=Om(null,t,e,l,r);break e}else if(o===N){t.tag=14,t=Tm(null,t,e,l,r);break e}}throw t=be(e)||e,Error(u(306,t,""))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,r);case 1:return l=t.type,o=$a(l,t.pendingProps),jm(e,t,l,o,r);case 3:e:{if(ze(t,t.stateNode.containerInfo),e===null)throw Error(u(387));l=t.pendingProps;var f=t.memoizedState;o=f.element,Lo(e,t),Ci(t,l,null,r);var g=t.memoizedState;if(l=g.cache,ra(t,rt,l),l!==f.cache&&xo(t,[rt],r,!0),Ei(),l=g.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Lm(e,t,l,r);break e}else if(l!==o){o=Zt(Error(u(424)),t),yi(o),t=Lm(e,t,l,r);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ze=tn(e.firstChild),mt=t,je=!0,na=null,Jt=!0,r=Ah(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(za(),l===o){t=Un(e,t,r);break e}vt(e,t,l,r)}t=t.child}return t;case 26:return nu(e,t),e===null?(r=Xp(t.type,null,t.pendingProps,null))?t.memoizedState=r:je||(r=t.type,e=t.pendingProps,l=bu(fe.current).createElement(r),l[ht]=t,l[Rt]=e,yt(l,r,e),ft(l),t.stateNode=l):t.memoizedState=Xp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ut(t),e===null&&je&&(l=t.stateNode=Ip(t.type,t.pendingProps,fe.current),mt=t,Jt=!0,o=Ze,ya(t.type)?(Fc=o,Ze=tn(l.firstChild)):Ze=o),vt(e,t,t.pendingProps.children,r),nu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((o=l=Ze)&&(l=$0(l,t.type,t.pendingProps,Jt),l!==null?(t.stateNode=l,mt=t,Ze=tn(l.firstChild),Jt=!1,o=!0):o=!1),o||aa(t)),Ut(t),o=t.type,f=t.pendingProps,g=e!==null?e.memoizedProps:null,l=f.children,Gc(o,f)?l=null:g!==null&&Gc(o,g)&&(t.flags|=32),t.memoizedState!==null&&(o=Bo(e,t,r0,null,null,r),Pi._currentValue=o),nu(e,t),vt(e,t,l,r),t.child;case 6:return e===null&&je&&((e=r=Ze)&&(r=P0(r,t.pendingProps,Jt),r!==null?(t.stateNode=r,mt=t,Ze=null,e=!0):e=!1),e||aa(t)),null;case 13:return Nm(e,t,r);case 4:return ze(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ga(t,null,l,r):vt(e,t,l,r),t.child;case 11:return Om(e,t,t.type,t.pendingProps,r);case 7:return vt(e,t,t.pendingProps,r),t.child;case 8:return vt(e,t,t.pendingProps.children,r),t.child;case 12:return vt(e,t,t.pendingProps.children,r),t.child;case 10:return l=t.pendingProps,ra(t,t.type,l.value),vt(e,t,l.children,r),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Ua(t),o=pt(o),l=l(o),t.flags|=1,vt(e,t,l,r),t.child;case 14:return Tm(e,t,t.type,t.pendingProps,r);case 15:return xm(e,t,t.type,t.pendingProps,r);case 19:return qm(e,t,r);case 31:return d0(e,t,r);case 22:return Am(e,t,r,t.pendingProps);case 24:return Ua(t),l=pt(rt),e===null?(o=Do(),o===null&&(o=Xe,f=Ao(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=r),o=f),t.memoizedState={parent:l,cache:o},jo(t),ra(t,rt,o)):((e.lanes&r)!==0&&(Lo(e,t),Ci(t,null,null,r),Ei()),o=e.memoizedState,f=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),ra(t,rt,l)):(l=f.cache,ra(t,rt,l),l!==o.cache&&xo(t,[rt],r,!0))),vt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Hn(e){e.flags|=4}function mc(e,t,r,l,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(cp())e.flags|=8192;else throw Ba=Gl,Mo}else e.flags&=-16777217}function Hm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Jp(t))if(cp())e.flags|=8192;else throw Ba=Gl,Mo}function ru(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yd():536870912,e.lanes|=t,Ar|=t)}function Di(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function m0(e,t,r){var l=t.pendingProps;switch(wo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return r=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Nn(rt),Le(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pr(t)?Hn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Co())),We(t),null;case 26:var o=t.type,f=t.memoizedState;return e===null?(Hn(t),f!==null?(We(t),Hm(t,f)):(We(t),mc(t,o,null,l,r))):f?f!==e.memoizedState?(Hn(t),We(t),Hm(t,f)):(We(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Hn(t),We(t),mc(t,o,e,l,r)),null;case 27:if(wt(t),r=fe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Hn(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return We(t),null}e=ae.current,pr(t)?yh(t):(e=Ip(o,l,r),t.stateNode=e,Hn(t))}return We(t),null;case 5:if(wt(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Hn(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return We(t),null}if(f=ae.current,pr(t))yh(t);else{var g=bu(fe.current);switch(f){case 1:f=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:f=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":f=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":f=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":f=g.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?g.createElement(o,{is:l.is}):g.createElement(o)}}f[ht]=t,f[Rt]=l;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)f.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=f;e:switch(yt(f,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Hn(t)}}return We(t),mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Hn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(u(166));if(e=fe.current,pr(t)){if(e=t.stateNode,r=t.memoizedProps,l=null,o=mt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[ht]=t,e=!!(e.nodeValue===r||l!==null&&l.suppressHydrationWarning===!0||Np(e.nodeValue,r)),e||aa(t,!0)}else e=bu(e).createTextNode(l),e[ht]=t,t.stateNode=e}return We(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(l=pr(t),r!==null){if(e===null){if(!l)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ht]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),e=!1}else r=Co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return We(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=pr(t),l!==null&&l.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[ht]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),o=!1}else o=Co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),(t.flags&128)!==0?(t.lanes=r,t):(r=l!==null,e=e!==null&&e.memoizedState!==null,r&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),ru(t,t.updateQueue),We(t),null);case 4:return Le(),e===null&&qc(t.stateNode.containerInfo),We(t),null;case 10:return Nn(t.type),We(t),null;case 19:if(P(nt),l=t.memoizedState,l===null)return We(t),null;if(o=(t.flags&128)!==0,f=l.rendering,f===null)if(o)Di(l,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Il(e),f!==null){for(t.flags|=128,Di(l,!1),e=f.updateQueue,t.updateQueue=e,ru(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)dh(r,e),r=r.sibling;return te(nt,nt.current&1|2),je&&jn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Et()>ou&&(t.flags|=128,o=!0,Di(l,!1),t.lanes=4194304)}else{if(!o)if(e=Il(f),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ru(t,e),Di(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!je)return We(t),null}else 2*Et()-l.renderingStartTime>ou&&r!==536870912&&(t.flags|=128,o=!0,Di(l,!1),t.lanes=4194304);l.isBackwards?(f.sibling=t.child,t.child=f):(e=l.last,e!==null?e.sibling=f:t.child=f,l.last=f)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Et(),e.sibling=null,r=nt.current,te(nt,o?r&1|2:r&1),je&&jn(t,l.treeForkCount),e):(We(t),null);case 22:case 23:return Gt(t),Uo(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(r&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),r=t.updateQueue,r!==null&&ru(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==r&&(t.flags|=2048),e!==null&&P(Ha),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Nn(rt),We(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function p0(e,t){switch(wo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nn(rt),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return wt(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(u(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return P(nt),null;case 4:return Le(),null;case 10:return Nn(t.type),null;case 22:case 23:return Gt(t),Uo(),e!==null&&P(Ha),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Nn(rt),null;case 25:return null;default:return null}}function Vm(e,t){switch(wo(t),t.tag){case 3:Nn(rt),Le();break;case 26:case 27:case 5:wt(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:P(nt);break;case 10:Nn(t.type);break;case 22:case 23:Gt(t),Uo(),e!==null&&P(Ha);break;case 24:Nn(rt)}}function Mi(e,t){try{var r=t.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var o=l.next;r=o;do{if((r.tag&e)===e){l=void 0;var f=r.create,g=r.inst;l=f(),g.destroy=l}r=r.next}while(r!==o)}}catch(S){$e(t,t.return,S)}}function ca(e,t,r){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&e)===e){var g=l.inst,S=g.destroy;if(S!==void 0){g.destroy=void 0,o=t;var D=r,B=S;try{B()}catch(X){$e(o,D,X)}}}l=l.next}while(l!==f)}}catch(X){$e(t,t.return,X)}}function Bm(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{Dh(t,r)}catch(l){$e(e,e.return,l)}}}function Gm(e,t,r){r.props=$a(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(l){$e(e,t,l)}}function ji(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof r=="function"?e.refCleanup=r(l):r.current=l}}catch(o){$e(e,t,o)}}function gn(e,t){var r=e.ref,l=e.refCleanup;if(r!==null)if(typeof l=="function")try{l()}catch(o){$e(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(o){$e(e,t,o)}else r.current=null}function km(e){var t=e.type,r=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&l.focus();break e;case"img":r.src?l.src=r.src:r.srcSet&&(l.srcset=r.srcSet)}}catch(o){$e(e,e.return,o)}}function pc(e,t,r){try{var l=e.stateNode;U0(l,e.type,r,t),l[Rt]=t}catch(o){$e(e,e.return,o)}}function $m(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ya(e.type)||e.tag===4}function vc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$m(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&&ya(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 yc(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Rn));else if(l!==4&&(l===27&&ya(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(yc(e,t,r),e=e.sibling;e!==null;)yc(e,t,r),e=e.sibling}function iu(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(l!==4&&(l===27&&ya(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(iu(e,t,r),e=e.sibling;e!==null;)iu(e,t,r),e=e.sibling}function Pm(e){var t=e.stateNode,r=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);yt(t,l,r),t[ht]=e,t[Rt]=r}catch(f){$e(e,e.return,f)}}var Vn=!1,ut=!1,gc=!1,Im=typeof WeakSet=="function"?WeakSet:Set,dt=null;function v0(e,t){if(e=e.containerInfo,Vc=Tu,e=ah(e),co(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{r.nodeType,f.nodeType}catch{r=null;break e}var g=0,S=-1,D=-1,B=0,X=0,W=e,k=null;t:for(;;){for(var I;W!==r||o!==0&&W.nodeType!==3||(S=g+o),W!==f||l!==0&&W.nodeType!==3||(D=g+l),W.nodeType===3&&(g+=W.nodeValue.length),(I=W.firstChild)!==null;)k=W,W=I;for(;;){if(W===e)break t;if(k===r&&++B===o&&(S=g),k===f&&++X===l&&(D=g),(I=W.nextSibling)!==null)break;W=k,k=W.parentNode}W=I}r=S===-1||D===-1?null:{start:S,end:D}}else r=null}r=r||{start:0,end:0}}else r=null;for(Bc={focusedElem:e,selectionRange:r},Tu=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)o=e[r],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,r=t,o=f.memoizedProps,f=f.memoizedState,l=r.stateNode;try{var se=$a(r.type,o);e=l.getSnapshotBeforeUpdate(se,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(ge){$e(r,r.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)$c(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":$c(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,dt=e;break}dt=t.return}}function Fm(e,t,r){var l=r.flags;switch(r.tag){case 0:case 11:case 15:Gn(e,r),l&4&&Mi(5,r);break;case 1:if(Gn(e,r),l&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(g){$e(r,r.return,g)}else{var o=$a(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){$e(r,r.return,g)}}l&64&&Bm(r),l&512&&ji(r,r.return);break;case 3:if(Gn(e,r),l&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{Dh(e,t)}catch(g){$e(r,r.return,g)}}break;case 27:t===null&&l&4&&Pm(r);case 26:case 5:Gn(e,r),t===null&&l&4&&km(r),l&512&&ji(r,r.return);break;case 12:Gn(e,r);break;case 31:Gn(e,r),l&4&&Qm(e,r);break;case 13:Gn(e,r),l&4&&Zm(e,r),l&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=O0.bind(null,r),I0(e,r))));break;case 22:if(l=r.memoizedState!==null||Vn,!l){t=t!==null&&t.memoizedState!==null||ut,o=Vn;var f=ut;Vn=l,(ut=t)&&!f?kn(e,r,(r.subtreeFlags&8772)!==0):Gn(e,r),Vn=o,ut=f}break;case 30:break;default:Gn(e,r)}}function Ym(e){var t=e.alternate;t!==null&&(e.alternate=null,Ym(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ys(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ke=null,Mt=!1;function Bn(e,t,r){for(r=r.child;r!==null;)Xm(e,t,r),r=r.sibling}function Xm(e,t,r){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(xa,r)}catch{}switch(r.tag){case 26:ut||gn(r,t),Bn(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:ut||gn(r,t);var l=Ke,o=Mt;ya(r.type)&&(Ke=r.stateNode,Mt=!1),Bn(e,t,r),Gi(r.stateNode),Ke=l,Mt=o;break;case 5:ut||gn(r,t);case 6:if(l=Ke,o=Mt,Ke=null,Bn(e,t,r),Ke=l,Mt=o,Ke!==null)if(Mt)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(r.stateNode)}catch(f){$e(r,t,f)}else try{Ke.removeChild(r.stateNode)}catch(f){$e(r,t,f)}break;case 18:Ke!==null&&(Mt?(e=Ke,Bp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),qr(e)):Bp(Ke,r.stateNode));break;case 4:l=Ke,o=Mt,Ke=r.stateNode.containerInfo,Mt=!0,Bn(e,t,r),Ke=l,Mt=o;break;case 0:case 11:case 14:case 15:ca(2,r,t),ut||ca(4,r,t),Bn(e,t,r);break;case 1:ut||(gn(r,t),l=r.stateNode,typeof l.componentWillUnmount=="function"&&Gm(r,t,l)),Bn(e,t,r);break;case 21:Bn(e,t,r);break;case 22:ut=(l=ut)||r.memoizedState!==null,Bn(e,t,r),ut=l;break;default:Bn(e,t,r)}}function Qm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qr(e)}catch(r){$e(t,t.return,r)}}}function Zm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qr(e)}catch(r){$e(t,t.return,r)}}function y0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Im),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Im),t;default:throw Error(u(435,e.tag))}}function lu(e,t){var r=y0(e);t.forEach(function(l){if(!r.has(l)){r.add(l);var o=T0.bind(null,e,l);l.then(o,o)}})}function jt(e,t){var r=t.deletions;if(r!==null)for(var l=0;l<r.length;l++){var o=r[l],f=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(ya(S.type)){Ke=S.stateNode,Mt=!1;break e}break;case 5:Ke=S.stateNode,Mt=!1;break e;case 3:case 4:Ke=S.stateNode.containerInfo,Mt=!0;break e}S=S.return}if(Ke===null)throw Error(u(160));Xm(f,g,o),Ke=null,Mt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Wm(t,e),t=t.sibling}var fn=null;function Wm(e,t){var r=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jt(t,e),Lt(e),l&4&&(ca(3,e,e.return),Mi(3,e),ca(5,e,e.return));break;case 1:jt(t,e),Lt(e),l&512&&(ut||r===null||gn(r,r.return)),l&64&&Vn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?l:r.concat(l))));break;case 26:var o=fn;if(jt(t,e),Lt(e),l&512&&(ut||r===null||gn(r,r.return)),l&4){var f=r!==null?r.memoizedState:null;if(l=e.memoizedState,r===null)if(l===null)if(e.stateNode===null){e:{l=e.type,r=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[ii]||f[ht]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),yt(f,l,r),f[ht]=e,ft(f),l=f;break e;case"link":var g=Wp("link","href",o).get(l+(r.href||""));if(g){for(var S=0;S<g.length;S++)if(f=g[S],f.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&f.getAttribute("rel")===(r.rel==null?null:r.rel)&&f.getAttribute("title")===(r.title==null?null:r.title)&&f.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){g.splice(S,1);break t}}f=o.createElement(l),yt(f,l,r),o.head.appendChild(f);break;case"meta":if(g=Wp("meta","content",o).get(l+(r.content||""))){for(S=0;S<g.length;S++)if(f=g[S],f.getAttribute("content")===(r.content==null?null:""+r.content)&&f.getAttribute("name")===(r.name==null?null:r.name)&&f.getAttribute("property")===(r.property==null?null:r.property)&&f.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&f.getAttribute("charset")===(r.charSet==null?null:r.charSet)){g.splice(S,1);break t}}f=o.createElement(l),yt(f,l,r),o.head.appendChild(f);break;default:throw Error(u(468,l))}f[ht]=e,ft(f),l=f}e.stateNode=l}else Kp(o,e.type,e.stateNode);else e.stateNode=Zp(o,l,e.memoizedProps);else f!==l?(f===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):f.count--,l===null?Kp(o,e.type,e.stateNode):Zp(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&pc(e,e.memoizedProps,r.memoizedProps)}break;case 27:jt(t,e),Lt(e),l&512&&(ut||r===null||gn(r,r.return)),r!==null&&l&4&&pc(e,e.memoizedProps,r.memoizedProps);break;case 5:if(jt(t,e),Lt(e),l&512&&(ut||r===null||gn(r,r.return)),e.flags&32){o=e.stateNode;try{ir(o,"")}catch(se){$e(e,e.return,se)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,pc(e,o,r!==null?r.memoizedProps:o)),l&1024&&(gc=!0);break;case 6:if(jt(t,e),Lt(e),l&4){if(e.stateNode===null)throw Error(u(162));l=e.memoizedProps,r=e.stateNode;try{r.nodeValue=l}catch(se){$e(e,e.return,se)}}break;case 3:if(wu=null,o=fn,fn=_u(t.containerInfo),jt(t,e),fn=o,Lt(e),l&4&&r!==null&&r.memoizedState.isDehydrated)try{qr(t.containerInfo)}catch(se){$e(e,e.return,se)}gc&&(gc=!1,Km(e));break;case 4:l=fn,fn=_u(e.stateNode.containerInfo),jt(t,e),Lt(e),fn=l;break;case 12:jt(t,e),Lt(e);break;case 31:jt(t,e),Lt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,lu(e,l)));break;case 13:jt(t,e),Lt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(su=Et()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,lu(e,l)));break;case 22:o=e.memoizedState!==null;var D=r!==null&&r.memoizedState!==null,B=Vn,X=ut;if(Vn=B||o,ut=X||D,jt(t,e),ut=X,Vn=B,Lt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(r===null||D||Vn||ut||Pa(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){D=r=t;try{if(f=D.stateNode,o)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{S=D.stateNode;var W=D.memoizedProps.style,k=W!=null&&W.hasOwnProperty("display")?W.display:null;S.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(se){$e(D,D.return,se)}}}else if(t.tag===6){if(r===null){D=t;try{D.stateNode.nodeValue=o?"":D.memoizedProps}catch(se){$e(D,D.return,se)}}}else if(t.tag===18){if(r===null){D=t;try{var I=D.stateNode;o?Gp(I,!0):Gp(D.stateNode,!1)}catch(se){$e(D,D.return,se)}}}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;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(r=l.retryQueue,r!==null&&(l.retryQueue=null,lu(e,r))));break;case 19:jt(t,e),Lt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,lu(e,l)));break;case 30:break;case 21:break;default:jt(t,e),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{for(var r,l=e.return;l!==null;){if($m(l)){r=l;break}l=l.return}if(r==null)throw Error(u(160));switch(r.tag){case 27:var o=r.stateNode,f=vc(e);iu(e,f,o);break;case 5:var g=r.stateNode;r.flags&32&&(ir(g,""),r.flags&=-33);var S=vc(e);iu(e,S,g);break;case 3:case 4:var D=r.stateNode.containerInfo,B=vc(e);yc(e,B,D);break;default:throw Error(u(161))}}catch(X){$e(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Km(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Km(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Gn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Fm(e,t.alternate,t),t=t.sibling}function Pa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ca(4,t,t.return),Pa(t);break;case 1:gn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&Gm(t,t.return,r),Pa(t);break;case 27:Gi(t.stateNode);case 26:case 5:gn(t,t.return),Pa(t);break;case 22:t.memoizedState===null&&Pa(t);break;case 30:Pa(t);break;default:Pa(t)}e=e.sibling}}function kn(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,f=t,g=f.flags;switch(f.tag){case 0:case 11:case 15:kn(o,f,r),Mi(4,f);break;case 1:if(kn(o,f,r),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){$e(l,l.return,B)}if(l=f,o=l.updateQueue,o!==null){var S=l.stateNode;try{var D=o.shared.hiddenCallbacks;if(D!==null)for(o.shared.hiddenCallbacks=null,o=0;o<D.length;o++)Rh(D[o],S)}catch(B){$e(l,l.return,B)}}r&&g&64&&Bm(f),ji(f,f.return);break;case 27:Pm(f);case 26:case 5:kn(o,f,r),r&&l===null&&g&4&&km(f),ji(f,f.return);break;case 12:kn(o,f,r);break;case 31:kn(o,f,r),r&&g&4&&Qm(o,f);break;case 13:kn(o,f,r),r&&g&4&&Zm(o,f);break;case 22:f.memoizedState===null&&kn(o,f,r),ji(f,f.return);break;case 30:break;default:kn(o,f,r)}t=t.sibling}}function bc(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&gi(r))}function _c(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gi(e))}function dn(e,t,r,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Jm(e,t,r,l),t=t.sibling}function Jm(e,t,r,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:dn(e,t,r,l),o&2048&&Mi(9,t);break;case 1:dn(e,t,r,l);break;case 3:dn(e,t,r,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gi(e)));break;case 12:if(o&2048){dn(e,t,r,l),e=t.stateNode;try{var f=t.memoizedProps,g=f.id,S=f.onPostCommit;typeof S=="function"&&S(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(D){$e(t,t.return,D)}}else dn(e,t,r,l);break;case 31:dn(e,t,r,l);break;case 13:dn(e,t,r,l);break;case 23:break;case 22:f=t.stateNode,g=t.alternate,t.memoizedState!==null?f._visibility&2?dn(e,t,r,l):Li(e,t):f._visibility&2?dn(e,t,r,l):(f._visibility|=2,Or(e,t,r,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&bc(g,t);break;case 24:dn(e,t,r,l),o&2048&&_c(t.alternate,t);break;default:dn(e,t,r,l)}}function Or(e,t,r,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,g=t,S=r,D=l,B=g.flags;switch(g.tag){case 0:case 11:case 15:Or(f,g,S,D,o),Mi(8,g);break;case 23:break;case 22:var X=g.stateNode;g.memoizedState!==null?X._visibility&2?Or(f,g,S,D,o):Li(f,g):(X._visibility|=2,Or(f,g,S,D,o)),o&&B&2048&&bc(g.alternate,g);break;case 24:Or(f,g,S,D,o),o&&B&2048&&_c(g.alternate,g);break;default:Or(f,g,S,D,o)}t=t.sibling}}function Li(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,l=t,o=l.flags;switch(l.tag){case 22:Li(r,l),o&2048&&bc(l.alternate,l);break;case 24:Li(r,l),o&2048&&_c(l.alternate,l);break;default:Li(r,l)}t=t.sibling}}var Ni=8192;function Tr(e,t,r){if(e.subtreeFlags&Ni)for(e=e.child;e!==null;)ep(e,t,r),e=e.sibling}function ep(e,t,r){switch(e.tag){case 26:Tr(e,t,r),e.flags&Ni&&e.memoizedState!==null&&a1(r,fn,e.memoizedState,e.memoizedProps);break;case 5:Tr(e,t,r);break;case 3:case 4:var l=fn;fn=_u(e.stateNode.containerInfo),Tr(e,t,r),fn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Ni,Ni=16777216,Tr(e,t,r),Ni=l):Tr(e,t,r));break;default:Tr(e,t,r)}}function tp(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 zi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];dt=l,ap(l,e)}tp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)np(e),e=e.sibling}function np(e){switch(e.tag){case 0:case 11:case 15:zi(e),e.flags&2048&&ca(9,e,e.return);break;case 3:zi(e);break;case 12:zi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,uu(e)):zi(e);break;default:zi(e)}}function uu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];dt=l,ap(l,e)}tp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ca(8,t,t.return),uu(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,uu(t));break;default:uu(t)}e=e.sibling}}function ap(e,t){for(;dt!==null;){var r=dt;switch(r.tag){case 0:case 11:case 15:ca(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var l=r.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:gi(r.memoizedState.cache)}if(l=r.child,l!==null)l.return=r,dt=l;else e:for(r=e;dt!==null;){l=dt;var o=l.sibling,f=l.return;if(Ym(l),l===r){dt=null;break e}if(o!==null){o.return=f,dt=o;break e}dt=f}}}var g0={getCacheForType:function(e){var t=pt(rt),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return pt(rt).controller.signal}},b0=typeof WeakMap=="function"?WeakMap:Map,He=0,Xe=null,Ae=null,De=0,ke=0,kt=null,fa=!1,xr=!1,Sc=!1,$n=0,et=0,da=0,Ia=0,wc=0,$t=0,Ar=0,qi=null,Nt=null,Ec=!1,su=0,rp=0,ou=1/0,cu=null,ha=null,ot=0,ma=null,Rr=null,Pn=0,Cc=0,Oc=null,ip=null,Ui=0,Tc=null;function Pt(){return(He&2)!==0&&De!==0?De&-De:H.T!==null?jc():Sd()}function lp(){if($t===0)if((De&536870912)===0||je){var e=gl;gl<<=1,(gl&3932160)===0&&(gl=262144),$t=e}else $t=536870912;return e=Bt.current,e!==null&&(e.flags|=32),$t}function zt(e,t,r){(e===Xe&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(Dr(e,0),pa(e,De,$t,!1)),ri(e,r),((He&2)===0||e!==Xe)&&(e===Xe&&((He&2)===0&&(Ia|=r),et===4&&pa(e,De,$t,!1)),bn(e))}function up(e,t,r){if((He&6)!==0)throw Error(u(327));var l=!r&&(t&127)===0&&(t&e.expiredLanes)===0||ai(e,t),o=l?w0(e,t):Ac(e,t,!0),f=l;do{if(o===0){xr&&!l&&pa(e,t,0,!1);break}else{if(r=e.current.alternate,f&&!_0(r)){o=Ac(e,t,!1),f=!1;continue}if(o===2){if(f=t,e.errorRecoveryDisabledLanes&f)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var S=e;o=qi;var D=S.current.memoizedState.isDehydrated;if(D&&(Dr(S,g).flags|=256),g=Ac(S,g,!1),g!==2){if(Sc&&!D){S.errorRecoveryDisabledLanes|=f,Ia|=f,o=4;break e}f=Nt,Nt=o,f!==null&&(Nt===null?Nt=f:Nt.push.apply(Nt,f))}o=g}if(f=!1,o!==2)continue}}if(o===1){Dr(e,0),pa(e,t,0,!0);break}e:{switch(l=e,f=o,f){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:pa(l,t,$t,!fa);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=su+300-Et(),10<o)){if(pa(l,t,$t,!fa),_l(l,0,!0)!==0)break e;Pn=t,l.timeoutHandle=Hp(sp.bind(null,l,r,Nt,cu,Ec,t,$t,Ia,Ar,fa,f,"Throttled",-0,0),o);break e}sp(l,r,Nt,cu,Ec,t,$t,Ia,Ar,fa,f,null,-0,0)}}break}while(!0);bn(e)}function sp(e,t,r,l,o,f,g,S,D,B,X,W,k,I){if(e.timeoutHandle=-1,W=t.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rn},ep(t,f,W);var se=(f&62914560)===f?su-Et():(f&4194048)===f?rp-Et():0;if(se=r1(W,se),se!==null){Pn=f,e.cancelPendingCommit=se(vp.bind(null,e,t,f,r,l,o,g,S,D,X,W,null,k,I)),pa(e,f,g,!B);return}}vp(e,t,f,r,l,o,g,S,D)}function _0(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var l=0;l<r.length;l++){var o=r[l],f=o.getSnapshot;o=o.value;try{if(!Ht(f(),o))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function pa(e,t,r,l){t&=~wc,t&=~Ia,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var f=31-Ot(o),g=1<<f;l[f]=-1,o&=~g}r!==0&&gd(e,r,t)}function fu(){return(He&6)===0?(Hi(0),!1):!0}function xc(){if(Ae!==null){if(ke===0)var e=Ae.return;else e=Ae,Ln=qa=null,$o(e),_r=null,_i=0,e=Ae;for(;e!==null;)Vm(e.alternate,e),e=e.return;Ae=null}}function Dr(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,B0(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Pn=0,xc(),Xe=e,Ae=r=Mn(e.current,null),De=t,ke=0,kt=null,fa=!1,xr=ai(e,t),Sc=!1,Ar=$t=wc=Ia=da=et=0,Nt=qi=null,Ec=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-Ot(l),f=1<<o;t|=e[o],l&=~f}return $n=t,jl(),r}function op(e,t){Oe=null,H.H=Ai,t===br||t===Bl?(t=Oh(),ke=3):t===Mo?(t=Oh(),ke=4):ke=t===ic?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,kt=t,Ae===null&&(et=1,eu(e,Zt(t,e.current)))}function cp(){var e=Bt.current;return e===null?!0:(De&4194048)===De?en===null:(De&62914560)===De||(De&536870912)!==0?e===en:!1}function fp(){var e=H.H;return H.H=Ai,e===null?Ai:e}function dp(){var e=H.A;return H.A=g0,e}function du(){et=4,fa||(De&4194048)!==De&&Bt.current!==null||(xr=!0),(da&134217727)===0&&(Ia&134217727)===0||Xe===null||pa(Xe,De,$t,!1)}function Ac(e,t,r){var l=He;He|=2;var o=fp(),f=dp();(Xe!==e||De!==t)&&(cu=null,Dr(e,t)),t=!1;var g=et;e:do try{if(ke!==0&&Ae!==null){var S=Ae,D=kt;switch(ke){case 8:xc(),g=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(t=!0);var B=ke;if(ke=0,kt=null,Mr(e,S,D,B),r&&xr){g=0;break e}break;default:B=ke,ke=0,kt=null,Mr(e,S,D,B)}}S0(),g=et;break}catch(X){op(e,X)}while(!0);return t&&e.shellSuspendCounter++,Ln=qa=null,He=l,H.H=o,H.A=f,Ae===null&&(Xe=null,De=0,jl()),g}function S0(){for(;Ae!==null;)hp(Ae)}function w0(e,t){var r=He;He|=2;var l=fp(),o=dp();Xe!==e||De!==t?(cu=null,ou=Et()+500,Dr(e,t)):xr=ai(e,t);e:do try{if(ke!==0&&Ae!==null){t=Ae;var f=kt;t:switch(ke){case 1:ke=0,kt=null,Mr(e,t,f,1);break;case 2:case 9:if(Eh(f)){ke=0,kt=null,mp(t);break}t=function(){ke!==2&&ke!==9||Xe!==e||(ke=7),bn(e)},f.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:Eh(f)?(ke=0,kt=null,mp(t)):(ke=0,kt=null,Mr(e,t,f,7));break;case 5:var g=null;switch(Ae.tag){case 26:g=Ae.memoizedState;case 5:case 27:var S=Ae;if(g?Jp(g):S.stateNode.complete){ke=0,kt=null;var D=S.sibling;if(D!==null)Ae=D;else{var B=S.return;B!==null?(Ae=B,hu(B)):Ae=null}break t}}ke=0,kt=null,Mr(e,t,f,5);break;case 6:ke=0,kt=null,Mr(e,t,f,6);break;case 8:xc(),et=6;break e;default:throw Error(u(462))}}E0();break}catch(X){op(e,X)}while(!0);return Ln=qa=null,H.H=l,H.A=o,He=r,Ae!==null?0:(Xe=null,De=0,jl(),et)}function E0(){for(;Ae!==null&&!Us();)hp(Ae)}function hp(e){var t=Um(e.alternate,e,$n);e.memoizedProps=e.pendingProps,t===null?hu(e):Ae=t}function mp(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=Mm(r,t,t.pendingProps,t.type,void 0,De);break;case 11:t=Mm(r,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:$o(t);default:Vm(r,t),t=Ae=dh(t,$n),t=Um(r,t,$n)}e.memoizedProps=e.pendingProps,t===null?hu(e):Ae=t}function Mr(e,t,r,l){Ln=qa=null,$o(t),_r=null,_i=0;var o=t.return;try{if(f0(e,o,t,r,De)){et=1,eu(e,Zt(r,e.current)),Ae=null;return}}catch(f){if(o!==null)throw Ae=o,f;et=1,eu(e,Zt(r,e.current)),Ae=null;return}t.flags&32768?(je||l===1?e=!0:xr||(De&536870912)!==0?e=!1:(fa=e=!0,(l===2||l===9||l===3||l===6)&&(l=Bt.current,l!==null&&l.tag===13&&(l.flags|=16384))),pp(t,e)):hu(t)}function hu(e){var t=e;do{if((t.flags&32768)!==0){pp(t,fa);return}e=t.return;var r=m0(t.alternate,t,$n);if(r!==null){Ae=r;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);et===0&&(et=5)}function pp(e,t){do{var r=p0(e.alternate,e);if(r!==null){r.flags&=32767,Ae=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=r}while(e!==null);et=6,Ae=null}function vp(e,t,r,l,o,f,g,S,D){e.cancelPendingCommit=null;do mu();while(ot!==0);if((He&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(f=t.lanes|t.childLanes,f|=vo,n_(e,r,f,g,S,D),e===Xe&&(Ae=Xe=null,De=0),Rr=t,ma=e,Pn=r,Cc=f,Oc=o,ip=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,x0(Ka,function(){return Sp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=H.T,H.T=null,o=K.p,K.p=2,g=He,He|=4;try{v0(e,t,r)}finally{He=g,K.p=o,H.T=l}}ot=1,yp(),gp(),bp()}}function yp(){if(ot===1){ot=0;var e=ma,t=Rr,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=H.T,H.T=null;var l=K.p;K.p=2;var o=He;He|=4;try{Wm(t,e);var f=Bc,g=ah(e.containerInfo),S=f.focusedElem,D=f.selectionRange;if(g!==S&&S&&S.ownerDocument&&nh(S.ownerDocument.documentElement,S)){if(D!==null&&co(S)){var B=D.start,X=D.end;if(X===void 0&&(X=B),"selectionStart"in S)S.selectionStart=B,S.selectionEnd=Math.min(X,S.value.length);else{var W=S.ownerDocument||document,k=W&&W.defaultView||window;if(k.getSelection){var I=k.getSelection(),se=S.textContent.length,ge=Math.min(D.start,se),Fe=D.end===void 0?ge:Math.min(D.end,se);!I.extend&&ge>Fe&&(g=Fe,Fe=ge,ge=g);var q=th(S,ge),j=th(S,Fe);if(q&&j&&(I.rangeCount!==1||I.anchorNode!==q.node||I.anchorOffset!==q.offset||I.focusNode!==j.node||I.focusOffset!==j.offset)){var V=W.createRange();V.setStart(q.node,q.offset),I.removeAllRanges(),ge>Fe?(I.addRange(V),I.extend(j.node,j.offset)):(V.setEnd(j.node,j.offset),I.addRange(V))}}}}for(W=[],I=S;I=I.parentNode;)I.nodeType===1&&W.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<W.length;S++){var Z=W[S];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Tu=!!Vc,Bc=Vc=null}finally{He=o,K.p=l,H.T=r}}e.current=t,ot=2}}function gp(){if(ot===2){ot=0;var e=ma,t=Rr,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=H.T,H.T=null;var l=K.p;K.p=2;var o=He;He|=4;try{Fm(e,t.alternate,t)}finally{He=o,K.p=l,H.T=r}}ot=3}}function bp(){if(ot===4||ot===3){ot=0,Hs();var e=ma,t=Rr,r=Pn,l=ip;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Rr=ma=null,_p(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ha=null),Is(r),t=t.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(xa,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=H.T,o=K.p,K.p=2,H.T=null;try{for(var f=e.onRecoverableError,g=0;g<l.length;g++){var S=l[g];f(S.value,{componentStack:S.stack})}}finally{H.T=t,K.p=o}}(Pn&3)!==0&&mu(),bn(e),o=e.pendingLanes,(r&261930)!==0&&(o&42)!==0?e===Tc?Ui++:(Ui=0,Tc=e):Ui=0,Hi(0)}}function _p(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,gi(t)))}function mu(){return yp(),gp(),bp(),Sp()}function Sp(){if(ot!==5)return!1;var e=ma,t=Cc;Cc=0;var r=Is(Pn),l=H.T,o=K.p;try{K.p=32>r?32:r,H.T=null,r=Oc,Oc=null;var f=ma,g=Pn;if(ot=0,Rr=ma=null,Pn=0,(He&6)!==0)throw Error(u(331));var S=He;if(He|=4,np(f.current),Jm(f,f.current,g,r),He=S,Hi(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(xa,f)}catch{}return!0}finally{K.p=o,H.T=l,_p(e,t)}}function wp(e,t,r){t=Zt(r,t),t=rc(e.stateNode,t,2),e=ua(e,t,2),e!==null&&(ri(e,2),bn(e))}function $e(e,t,r){if(e.tag===3)wp(e,e,r);else for(;t!==null;){if(t.tag===3){wp(t,e,r);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ha===null||!ha.has(l))){e=Zt(r,e),r=Em(2),l=ua(t,r,2),l!==null&&(Cm(r,l,t,e),ri(l,2),bn(l));break}}t=t.return}}function Rc(e,t,r){var l=e.pingCache;if(l===null){l=e.pingCache=new b0;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(r)||(Sc=!0,o.add(r),e=C0.bind(null,e,t,r),t.then(e,e))}function C0(e,t,r){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Xe===e&&(De&r)===r&&(et===4||et===3&&(De&62914560)===De&&300>Et()-su?(He&2)===0&&Dr(e,0):wc|=r,Ar===De&&(Ar=0)),bn(e)}function Ep(e,t){t===0&&(t=yd()),e=La(e,t),e!==null&&(ri(e,t),bn(e))}function O0(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Ep(e,r)}function T0(e,t){var r=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(t),Ep(e,r)}function x0(e,t){return hl(e,t)}var pu=null,jr=null,Dc=!1,vu=!1,Mc=!1,va=0;function bn(e){e!==jr&&e.next===null&&(jr===null?pu=jr=e:jr=jr.next=e),vu=!0,Dc||(Dc=!0,R0())}function Hi(e,t){if(!Mc&&vu){Mc=!0;do for(var r=!1,l=pu;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var g=l.suspendedLanes,S=l.pingedLanes;f=(1<<31-Ot(42|e)+1)-1,f&=o&~(g&~S),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(r=!0,xp(l,f))}else f=De,f=_l(l,l===Xe?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||ai(l,f)||(r=!0,xp(l,f));l=l.next}while(r);Mc=!1}}function A0(){Cp()}function Cp(){vu=Dc=!1;var e=0;va!==0&&V0()&&(e=va);for(var t=Et(),r=null,l=pu;l!==null;){var o=l.next,f=Op(l,t);f===0?(l.next=null,r===null?pu=o:r.next=o,o===null&&(jr=r)):(r=l,(e!==0||(f&3)!==0)&&(vu=!0)),l=o}ot!==0&&ot!==5||Hi(e),va!==0&&(va=0)}function Op(e,t){for(var r=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-Ot(f),S=1<<g,D=o[g];D===-1?((S&r)===0||(S&l)!==0)&&(o[g]=t_(S,t)):D<=t&&(e.expiredLanes|=S),f&=~S}if(t=Xe,r=De,r=_l(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,r===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&ni(l),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||ai(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(l!==null&&ni(l),Is(r)){case 2:case 8:r=pl;break;case 32:r=Ka;break;case 268435456:r=vl;break;default:r=Ka}return l=Tp.bind(null,e),r=hl(r,l),e.callbackPriority=t,e.callbackNode=r,t}return l!==null&&l!==null&&ni(l),e.callbackPriority=2,e.callbackNode=null,2}function Tp(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(mu()&&e.callbackNode!==r)return null;var l=De;return l=_l(e,e===Xe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(up(e,l,t),Op(e,Et()),e.callbackNode!=null&&e.callbackNode===r?Tp.bind(null,e):null)}function xp(e,t){if(mu())return null;up(e,t,!0)}function R0(){G0(function(){(He&6)!==0?hl(ml,A0):Cp()})}function jc(){if(va===0){var e=yr;e===0&&(e=yl,yl<<=1,(yl&261888)===0&&(yl=256)),va=e}return va}function Ap(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Cl(""+e)}function Rp(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function D0(e,t,r,l,o){if(t==="submit"&&r&&r.stateNode===o){var f=Ap((o[Rt]||null).action),g=l.submitter;g&&(t=(t=g[Rt]||null)?Ap(t.formAction):g.getAttribute("formAction"),t!==null&&(f=t,g=null));var S=new Al("action","action",null,l,o);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(va!==0){var D=g?Rp(o,g):new FormData(o);Ko(r,{pending:!0,data:D,method:o.method,action:f},null,D)}}else typeof f=="function"&&(S.preventDefault(),D=g?Rp(o,g):new FormData(o),Ko(r,{pending:!0,data:D,method:o.method,action:f},f,D))},currentTarget:o}]})}}for(var Lc=0;Lc<po.length;Lc++){var Nc=po[Lc],M0=Nc.toLowerCase(),j0=Nc[0].toUpperCase()+Nc.slice(1);cn(M0,"on"+j0)}cn(lh,"onAnimationEnd"),cn(uh,"onAnimationIteration"),cn(sh,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(X_,"onTransitionRun"),cn(Q_,"onTransitionStart"),cn(Z_,"onTransitionCancel"),cn(oh,"onTransitionEnd"),ar("onMouseEnter",["mouseout","mouseover"]),ar("onMouseLeave",["mouseout","mouseover"]),ar("onPointerEnter",["pointerout","pointerover"]),ar("onPointerLeave",["pointerout","pointerover"]),Ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vi="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(Vi));function Dp(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var l=e[r],o=l.event;l=l.listeners;e:{var f=void 0;if(t)for(var g=l.length-1;0<=g;g--){var S=l[g],D=S.instance,B=S.currentTarget;if(S=S.listener,D!==f&&o.isPropagationStopped())break e;f=S,o.currentTarget=B;try{f(o)}catch(X){Ml(X)}o.currentTarget=null,f=D}else for(g=0;g<l.length;g++){if(S=l[g],D=S.instance,B=S.currentTarget,S=S.listener,D!==f&&o.isPropagationStopped())break e;f=S,o.currentTarget=B;try{f(o)}catch(X){Ml(X)}o.currentTarget=null,f=D}}}}function Re(e,t){var r=t[Fs];r===void 0&&(r=t[Fs]=new Set);var l=e+"__bubble";r.has(l)||(Mp(t,e,2,!1),r.add(l))}function zc(e,t,r){var l=0;t&&(l|=4),Mp(r,e,l,t)}var yu="_reactListening"+Math.random().toString(36).slice(2);function qc(e){if(!e[yu]){e[yu]=!0,Cd.forEach(function(r){r!=="selectionchange"&&(L0.has(r)||zc(r,!1,e),zc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yu]||(t[yu]=!0,zc("selectionchange",!1,t))}}function Mp(e,t,r,l){switch(lv(t)){case 2:var o=u1;break;case 8:o=s1;break;default:o=Wc}r=o.bind(null,t,r,e),o=void 0,!to||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Uc(e,t,r,l,o){var f=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var S=l.stateNode.containerInfo;if(S===o)break;if(g===4)for(g=l.return;g!==null;){var D=g.tag;if((D===3||D===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;S!==null;){if(g=er(S),g===null)return;if(D=g.tag,D===5||D===6||D===26||D===27){l=f=g;continue e}S=S.parentNode}}l=l.return}qd(function(){var B=f,X=Js(r),W=[];e:{var k=ch.get(e);if(k!==void 0){var I=Al,se=e;switch(e){case"keypress":if(Tl(r)===0)break e;case"keydown":case"keyup":I=T_;break;case"focusin":se="focus",I=io;break;case"focusout":se="blur",I=io;break;case"beforeblur":case"afterblur":I=io;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=Vd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=m_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=R_;break;case lh:case uh:case sh:I=y_;break;case oh:I=M_;break;case"scroll":case"scrollend":I=d_;break;case"wheel":I=L_;break;case"copy":case"cut":case"paste":I=b_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=Gd;break;case"toggle":case"beforetoggle":I=z_}var ge=(t&4)!==0,Fe=!ge&&(e==="scroll"||e==="scrollend"),q=ge?k!==null?k+"Capture":null:k;ge=[];for(var j=B,V;j!==null;){var Z=j;if(V=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||V===null||q===null||(Z=ui(j,q),Z!=null&&ge.push(Bi(j,Z,V))),Fe)break;j=j.return}0<ge.length&&(k=new I(k,se,null,r,X),W.push({event:k,listeners:ge}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",k&&r!==Ks&&(se=r.relatedTarget||r.fromElement)&&(er(se)||se[Ja]))break e;if((I||k)&&(k=X.window===X?X:(k=X.ownerDocument)?k.defaultView||k.parentWindow:window,I?(se=r.relatedTarget||r.toElement,I=B,se=se?er(se):null,se!==null&&(Fe=c(se),ge=se.tag,se!==Fe||ge!==5&&ge!==27&&ge!==6)&&(se=null)):(I=null,se=B),I!==se)){if(ge=Vd,Z="onMouseLeave",q="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Gd,Z="onPointerLeave",q="onPointerEnter",j="pointer"),Fe=I==null?k:li(I),V=se==null?k:li(se),k=new ge(Z,j+"leave",I,r,X),k.target=Fe,k.relatedTarget=V,Z=null,er(X)===B&&(ge=new ge(q,j+"enter",se,r,X),ge.target=V,ge.relatedTarget=Fe,Z=ge),Fe=Z,I&&se)t:{for(ge=N0,q=I,j=se,V=0,Z=q;Z;Z=ge(Z))V++;Z=0;for(var he=j;he;he=ge(he))Z++;for(;0<V-Z;)q=ge(q),V--;for(;0<Z-V;)j=ge(j),Z--;for(;V--;){if(q===j||j!==null&&q===j.alternate){ge=q;break t}q=ge(q),j=ge(j)}ge=null}else ge=null;I!==null&&jp(W,k,I,ge,!1),se!==null&&Fe!==null&&jp(W,Fe,se,ge,!0)}}e:{if(k=B?li(B):window,I=k.nodeName&&k.nodeName.toLowerCase(),I==="select"||I==="input"&&k.type==="file")var qe=Qd;else if(Yd(k))if(Zd)qe=I_;else{qe=$_;var ce=k_}else I=k.nodeName,!I||I.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?B&&Ws(B.elementType)&&(qe=Qd):qe=P_;if(qe&&(qe=qe(e,B))){Xd(W,qe,r,X);break e}ce&&ce(e,k,B),e==="focusout"&&B&&k.type==="number"&&B.memoizedProps.value!=null&&Zs(k,"number",k.value)}switch(ce=B?li(B):window,e){case"focusin":(Yd(ce)||ce.contentEditable==="true")&&(or=ce,fo=B,pi=null);break;case"focusout":pi=fo=or=null;break;case"mousedown":ho=!0;break;case"contextmenu":case"mouseup":case"dragend":ho=!1,rh(W,r,X);break;case"selectionchange":if(Y_)break;case"keydown":case"keyup":rh(W,r,X)}var Te;if(uo)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else sr?Id(e,r)&&(Me="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Me="onCompositionStart");Me&&(kd&&r.locale!=="ko"&&(sr||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&sr&&(Te=Ud()):(ea=X,no="value"in ea?ea.value:ea.textContent,sr=!0)),ce=gu(B,Me),0<ce.length&&(Me=new Bd(Me,e,null,r,X),W.push({event:Me,listeners:ce}),Te?Me.data=Te:(Te=Fd(r),Te!==null&&(Me.data=Te)))),(Te=U_?H_(e,r):V_(e,r))&&(Me=gu(B,"onBeforeInput"),0<Me.length&&(ce=new Bd("onBeforeInput","beforeinput",null,r,X),W.push({event:ce,listeners:Me}),ce.data=Te)),D0(W,e,B,r,X)}Dp(W,t)})}function Bi(e,t,r){return{instance:e,listener:t,currentTarget:r}}function gu(e,t){for(var r=t+"Capture",l=[];e!==null;){var o=e,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=ui(e,r),o!=null&&l.unshift(Bi(e,o,f)),o=ui(e,t),o!=null&&l.push(Bi(e,o,f))),e.tag===3)return l;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 jp(e,t,r,l,o){for(var f=t._reactName,g=[];r!==null&&r!==l;){var S=r,D=S.alternate,B=S.stateNode;if(S=S.tag,D!==null&&D===l)break;S!==5&&S!==26&&S!==27||B===null||(D=B,o?(B=ui(r,f),B!=null&&g.unshift(Bi(r,B,D))):o||(B=ui(r,f),B!=null&&g.push(Bi(r,B,D)))),r=r.return}g.length!==0&&e.push({event:t,listeners:g})}var z0=/\r\n?/g,q0=/\u0000|\uFFFD/g;function Lp(e){return(typeof e=="string"?e:""+e).replace(z0,`
|
|
20
|
+
`).replace(q0,"")}function Np(e,t){return t=Lp(t),Lp(e)===t}function Ie(e,t,r,l,o,f){switch(r){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||ir(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&ir(e,""+l);break;case"className":wl(e,"class",l);break;case"tabIndex":wl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":wl(e,r,l);break;case"style":Nd(e,l,f);break;case"data":if(t!=="object"){wl(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=Cl(""+l),e.setAttribute(r,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(r==="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(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=Cl(""+l),e.setAttribute(r,l);break;case"onClick":l!=null&&(e.onclick=Rn);break;case"onScroll":l!=null&&Re("scroll",e);break;case"onScrollEnd":l!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(r=l.__html,r!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=r}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}r=Cl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""+l):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":l===!0?e.setAttribute(r,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,l):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(r,l):e.removeAttribute(r);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(r):e.setAttribute(r,l);break;case"popover":Re("beforetoggle",e),Re("toggle",e),Sl(e,"popover",l);break;case"xlinkActuate":An(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":An(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":An(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":An(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":An(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":An(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":An(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":An(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":An(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Sl(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=c_.get(r)||r,Sl(e,r,l))}}function Hc(e,t,r,l,o,f){switch(r){case"style":Nd(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(r=l.__html,r!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=r}}break;case"children":typeof l=="string"?ir(e,l):(typeof l=="number"||typeof l=="bigint")&&ir(e,""+l);break;case"onScroll":l!=null&&Re("scroll",e);break;case"onScrollEnd":l!=null&&Re("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Od.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(o=r.endsWith("Capture"),t=r.slice(2,o?r.length-7:void 0),f=e[Rt]||null,f=f!=null?f[r]:null,typeof f=="function"&&e.removeEventListener(t,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,l,o);break e}r in e?e[r]=l:l===!0?e.setAttribute(r,""):Sl(e,r,l)}}}function yt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var l=!1,o=!1,f;for(f in r)if(r.hasOwnProperty(f)){var g=r[f];if(g!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ie(e,t,f,g,r,null)}}o&&Ie(e,t,"srcSet",r.srcSet,r,null),l&&Ie(e,t,"src",r.src,r,null);return;case"input":Re("invalid",e);var S=f=g=o=null,D=null,B=null;for(l in r)if(r.hasOwnProperty(l)){var X=r[l];if(X!=null)switch(l){case"name":o=X;break;case"type":g=X;break;case"checked":D=X;break;case"defaultChecked":B=X;break;case"value":f=X;break;case"defaultValue":S=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(u(137,t));break;default:Ie(e,t,l,X,r,null)}}Dd(e,f,S,D,B,g,o,!1);return;case"select":Re("invalid",e),l=g=f=null;for(o in r)if(r.hasOwnProperty(o)&&(S=r[o],S!=null))switch(o){case"value":f=S;break;case"defaultValue":g=S;break;case"multiple":l=S;default:Ie(e,t,o,S,r,null)}t=f,r=g,e.multiple=!!l,t!=null?rr(e,!!l,t,!1):r!=null&&rr(e,!!l,r,!0);return;case"textarea":Re("invalid",e),f=o=l=null;for(g in r)if(r.hasOwnProperty(g)&&(S=r[g],S!=null))switch(g){case"value":l=S;break;case"defaultValue":o=S;break;case"children":f=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:Ie(e,t,g,S,r,null)}jd(e,l,o,f);return;case"option":for(D in r)r.hasOwnProperty(D)&&(l=r[D],l!=null)&&(D==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ie(e,t,D,l,r,null));return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(l=0;l<Vi.length;l++)Re(Vi[l],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("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(B in r)if(r.hasOwnProperty(B)&&(l=r[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ie(e,t,B,l,r,null)}return;default:if(Ws(t)){for(X in r)r.hasOwnProperty(X)&&(l=r[X],l!==void 0&&Hc(e,t,X,l,r,void 0));return}}for(S in r)r.hasOwnProperty(S)&&(l=r[S],l!=null&&Ie(e,t,S,l,r,null))}function U0(e,t,r,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,g=null,S=null,D=null,B=null,X=null;for(I in r){var W=r[I];if(r.hasOwnProperty(I)&&W!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":D=W;default:l.hasOwnProperty(I)||Ie(e,t,I,null,l,W)}}for(var k in l){var I=l[k];if(W=r[k],l.hasOwnProperty(k)&&(I!=null||W!=null))switch(k){case"type":f=I;break;case"name":o=I;break;case"checked":B=I;break;case"defaultChecked":X=I;break;case"value":g=I;break;case"defaultValue":S=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(u(137,t));break;default:I!==W&&Ie(e,t,k,I,l,W)}}Qs(e,g,S,D,B,X,f,o);return;case"select":I=g=S=k=null;for(f in r)if(D=r[f],r.hasOwnProperty(f)&&D!=null)switch(f){case"value":break;case"multiple":I=D;default:l.hasOwnProperty(f)||Ie(e,t,f,null,l,D)}for(o in l)if(f=l[o],D=r[o],l.hasOwnProperty(o)&&(f!=null||D!=null))switch(o){case"value":k=f;break;case"defaultValue":S=f;break;case"multiple":g=f;default:f!==D&&Ie(e,t,o,f,l,D)}t=S,r=g,l=I,k!=null?rr(e,!!r,k,!1):!!l!=!!r&&(t!=null?rr(e,!!r,t,!0):rr(e,!!r,r?[]:"",!1));return;case"textarea":I=k=null;for(S in r)if(o=r[S],r.hasOwnProperty(S)&&o!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ie(e,t,S,null,l,o)}for(g in l)if(o=l[g],f=r[g],l.hasOwnProperty(g)&&(o!=null||f!=null))switch(g){case"value":k=o;break;case"defaultValue":I=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==f&&Ie(e,t,g,o,l,f)}Md(e,k,I);return;case"option":for(var se in r)k=r[se],r.hasOwnProperty(se)&&k!=null&&!l.hasOwnProperty(se)&&(se==="selected"?e.selected=!1:Ie(e,t,se,null,l,k));for(D in l)k=l[D],I=r[D],l.hasOwnProperty(D)&&k!==I&&(k!=null||I!=null)&&(D==="selected"?e.selected=k&&typeof k!="function"&&typeof k!="symbol":Ie(e,t,D,k,l,I));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 ge in r)k=r[ge],r.hasOwnProperty(ge)&&k!=null&&!l.hasOwnProperty(ge)&&Ie(e,t,ge,null,l,k);for(B in l)if(k=l[B],I=r[B],l.hasOwnProperty(B)&&k!==I&&(k!=null||I!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(u(137,t));break;default:Ie(e,t,B,k,l,I)}return;default:if(Ws(t)){for(var Fe in r)k=r[Fe],r.hasOwnProperty(Fe)&&k!==void 0&&!l.hasOwnProperty(Fe)&&Hc(e,t,Fe,void 0,l,k);for(X in l)k=l[X],I=r[X],!l.hasOwnProperty(X)||k===I||k===void 0&&I===void 0||Hc(e,t,X,k,l,I);return}}for(var q in r)k=r[q],r.hasOwnProperty(q)&&k!=null&&!l.hasOwnProperty(q)&&Ie(e,t,q,null,l,k);for(W in l)k=l[W],I=r[W],!l.hasOwnProperty(W)||k===I||k==null&&I==null||Ie(e,t,W,k,l,I)}function zp(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,r=performance.getEntriesByType("resource"),l=0;l<r.length;l++){var o=r[l],f=o.transferSize,g=o.initiatorType,S=o.duration;if(f&&S&&zp(g)){for(g=0,S=o.responseEnd,l+=1;l<r.length;l++){var D=r[l],B=D.startTime;if(B>S)break;var X=D.transferSize,W=D.initiatorType;X&&zp(W)&&(D=D.responseEnd,g+=X*(D<S?1:(S-B)/(D-B)))}if(--l,t+=8*(f+g)/(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 Vc=null,Bc=null;function bu(e){return e.nodeType===9?e:e.ownerDocument}function qp(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 Up(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 Gc(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 kc=null;function V0(){var e=window.event;return e&&e.type==="popstate"?e===kc?!1:(kc=e,!0):(kc=null,!1)}var Hp=typeof setTimeout=="function"?setTimeout:void 0,B0=typeof clearTimeout=="function"?clearTimeout:void 0,Vp=typeof Promise=="function"?Promise:void 0,G0=typeof queueMicrotask=="function"?queueMicrotask:typeof Vp<"u"?function(e){return Vp.resolve(null).then(e).catch(k0)}:Hp;function k0(e){setTimeout(function(){throw e})}function ya(e){return e==="head"}function Bp(e,t){var r=t,l=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"||r==="/&"){if(l===0){e.removeChild(o),qr(t);return}l--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")l++;else if(r==="html")Gi(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,Gi(r);for(var f=r.firstChild;f;){var g=f.nextSibling,S=f.nodeName;f[ii]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&f.rel.toLowerCase()==="stylesheet"||r.removeChild(f),f=g}}else r==="body"&&Gi(e.ownerDocument.body);r=o}while(r);qr(t)}function Gp(e,t){var r=e;e=0;do{var l=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=l}while(r)}function $c(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":$c(r),Ys(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function $0(e,t,r,l){for(;e.nodeType===1;){var o=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ii])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==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(f=e.getAttribute("src"),(f!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=tn(e.nextSibling),e===null)break}return null}function P0(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=tn(e.nextSibling),e===null))return null;return e}function kp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=tn(e.nextSibling),e===null))return null;return e}function Pc(e){return e.data==="$?"||e.data==="$~"}function Ic(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function I0(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var l=function(){t(),r.removeEventListener("DOMContentLoaded",l)};r.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function tn(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 Fc=null;function $p(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return tn(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function Pp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Ip(e,t,r){switch(t=bu(r),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 Gi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ys(e)}var nn=new Map,Fp=new Set;function _u(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var In=K.d;K.d={f:F0,r:Y0,D:X0,C:Q0,L:Z0,m:W0,X:J0,S:K0,M:e1};function F0(){var e=In.f(),t=fu();return e||t}function Y0(e){var t=tr(e);t!==null&&t.tag===5&&t.type==="form"?om(t):In.r(e)}var Lr=typeof document>"u"?null:document;function Yp(e,t,r){var l=Lr;if(l&&typeof t=="string"&&t){var o=Xt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof r=="string"&&(o+='[crossorigin="'+r+'"]'),Fp.has(o)||(Fp.add(o),e={rel:e,crossOrigin:r,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),yt(t,"link",e),ft(t),l.head.appendChild(t)))}}function X0(e){In.D(e),Yp("dns-prefetch",e,null)}function Q0(e,t){In.C(e,t),Yp("preconnect",e,t)}function Z0(e,t,r){In.L(e,t,r);var l=Lr;if(l&&e&&t){var o='link[rel="preload"][as="'+Xt(t)+'"]';t==="image"&&r&&r.imageSrcSet?(o+='[imagesrcset="'+Xt(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(o+='[imagesizes="'+Xt(r.imageSizes)+'"]')):o+='[href="'+Xt(e)+'"]';var f=o;switch(t){case"style":f=Nr(e);break;case"script":f=zr(e)}nn.has(f)||(e=y({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),nn.set(f,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(ki(f))||t==="script"&&l.querySelector($i(f))||(t=l.createElement("link"),yt(t,"link",e),ft(t),l.head.appendChild(t)))}}function W0(e,t){In.m(e,t);var r=Lr;if(r&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Xt(l)+'"][href="'+Xt(e)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=zr(e)}if(!nn.has(f)&&(e=y({rel:"modulepreload",href:e},t),nn.set(f,e),r.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector($i(f)))return}l=r.createElement("link"),yt(l,"link",e),ft(l),r.head.appendChild(l)}}}function K0(e,t,r){In.S(e,t,r);var l=Lr;if(l&&e){var o=nr(l).hoistableStyles,f=Nr(e);t=t||"default";var g=o.get(f);if(!g){var S={loading:0,preload:null};if(g=l.querySelector(ki(f)))S.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},r),(r=nn.get(f))&&Yc(e,r);var D=g=l.createElement("link");ft(D),yt(D,"link",e),D._p=new Promise(function(B,X){D.onload=B,D.onerror=X}),D.addEventListener("load",function(){S.loading|=1}),D.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Su(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:S},o.set(f,g)}}}function J0(e,t){In.X(e,t);var r=Lr;if(r&&e){var l=nr(r).hoistableScripts,o=zr(e),f=l.get(o);f||(f=r.querySelector($i(o)),f||(e=y({src:e,async:!0},t),(t=nn.get(o))&&Xc(e,t),f=r.createElement("script"),ft(f),yt(f,"link",e),r.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function e1(e,t){In.M(e,t);var r=Lr;if(r&&e){var l=nr(r).hoistableScripts,o=zr(e),f=l.get(o);f||(f=r.querySelector($i(o)),f||(e=y({src:e,async:!0,type:"module"},t),(t=nn.get(o))&&Xc(e,t),f=r.createElement("script"),ft(f),yt(f,"link",e),r.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function Xp(e,t,r,l){var o=(o=fe.current)?_u(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Nr(r.href),r=nr(o).hoistableStyles,l=r.get(t),l||(l={type:"style",instance:null,count:0,state:null},r.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Nr(r.href);var f=nr(o).hoistableStyles,g=f.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=o.querySelector(ki(e)))&&!f._p&&(g.instance=f,g.state.loading=5),nn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},nn.set(e,r),f||t1(o,e,r,g.state))),t&&l===null)throw Error(u(528,""));return g}if(t&&l!==null)throw Error(u(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=zr(r),r=nr(o).hoistableScripts,l=r.get(t),l||(l={type:"script",instance:null,count:0,state:null},r.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Nr(e){return'href="'+Xt(e)+'"'}function ki(e){return'link[rel="stylesheet"]['+e+"]"}function Qp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function t1(e,t,r,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),yt(t,"link",r),ft(t),e.head.appendChild(t))}function zr(e){return'[src="'+Xt(e)+'"]'}function $i(e){return"script[async]"+e}function Zp(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Xt(r.href)+'"]');if(l)return t.instance=l,ft(l),l;var o=y({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ft(l),yt(l,"style",o),Su(l,r.precedence,e),t.instance=l;case"stylesheet":o=Nr(r.href);var f=e.querySelector(ki(o));if(f)return t.state.loading|=4,t.instance=f,ft(f),f;l=Qp(r),(o=nn.get(o))&&Yc(l,o),f=(e.ownerDocument||e).createElement("link"),ft(f);var g=f;return g._p=new Promise(function(S,D){g.onload=S,g.onerror=D}),yt(f,"link",l),t.state.loading|=4,Su(f,r.precedence,e),t.instance=f;case"script":return f=zr(r.src),(o=e.querySelector($i(f)))?(t.instance=o,ft(o),o):(l=r,(o=nn.get(f))&&(l=y({},r),Xc(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),ft(o),yt(o,"link",l),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&&(l=t.instance,t.state.loading|=4,Su(l,r.precedence,e));return t.instance}function Su(e,t,r){for(var l=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,g=0;g<l.length;g++){var S=l[g];if(S.dataset.precedence===t)f=S;else if(f!==o)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function Yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Xc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var wu=null;function Wp(e,t,r){if(wu===null){var l=new Map,o=wu=new Map;o.set(r,l)}else o=wu,l=o.get(r),l||(l=new Map,o.set(r,l));if(l.has(e))return l;for(l.set(e,null),r=r.getElementsByTagName(e),o=0;o<r.length;o++){var f=r[o];if(!(f[ii]||f[ht]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(t)||"";g=e+g;var S=l.get(g);S?S.push(f):l.set(g,[f])}}return l}function Kp(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function n1(e,t,r){if(r===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 Jp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function a1(e,t,r,l){if(r.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var o=Nr(l.href),f=t.querySelector(ki(o));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Eu.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=f,ft(f);return}f=t.ownerDocument||t,l=Qp(l),(o=nn.get(o))&&Yc(l,o),f=f.createElement("link"),ft(f);var g=f;g._p=new Promise(function(S,D){g.onload=S,g.onerror=D}),yt(f,"link",l),r.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=Eu.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var Qc=0;function r1(e,t){return e.stylesheets&&e.count===0&&Ou(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var l=setTimeout(function(){if(e.stylesheets&&Ou(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Qc===0&&(Qc=62500*H0());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ou(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Qc?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Eu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ou(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Cu=null;function Ou(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Cu=new Map,t.forEach(i1,e),Cu=null,Eu.call(e))}function i1(e,t){if(!(t.state.loading&4)){var r=Cu.get(e);if(r)var l=r.get(null);else{r=new Map,Cu.set(e,r);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var g=o[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(r.set(g.dataset.precedence,g),l=g)}l&&r.set(null,l)}o=t.instance,g=o.getAttribute("data-precedence"),f=r.get(g)||l,f===l&&r.set(null,o),r.set(g,o),this.count++,l=Eu.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Pi={$$typeof:U,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function l1(e,t,r,l,o,f,g,S,D){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=$s(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$s(0),this.hiddenUpdates=$s(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function ev(e,t,r,l,o,f,g,S,D,B,X,W){return e=new l1(e,t,r,g,D,B,X,W,S),t=1,f===!0&&(t|=24),f=Vt(3,null,null,t),e.current=f,f.stateNode=e,t=Ao(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:l,isDehydrated:r,cache:t},jo(f),e}function tv(e){return e?(e=dr,e):dr}function nv(e,t,r,l,o,f){o=tv(o),l.context===null?l.context=o:l.pendingContext=o,l=la(t),l.payload={element:r},f=f===void 0?null:f,f!==null&&(l.callback=f),r=ua(e,l,t),r!==null&&(zt(r,e,t),wi(r,e,t))}function av(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Zc(e,t){av(e,t),(e=e.alternate)&&av(e,t)}function rv(e){if(e.tag===13||e.tag===31){var t=La(e,67108864);t!==null&&zt(t,e,67108864),Zc(e,67108864)}}function iv(e){if(e.tag===13||e.tag===31){var t=Pt();t=Ps(t);var r=La(e,t);r!==null&&zt(r,e,t),Zc(e,t)}}var Tu=!0;function u1(e,t,r,l){var o=H.T;H.T=null;var f=K.p;try{K.p=2,Wc(e,t,r,l)}finally{K.p=f,H.T=o}}function s1(e,t,r,l){var o=H.T;H.T=null;var f=K.p;try{K.p=8,Wc(e,t,r,l)}finally{K.p=f,H.T=o}}function Wc(e,t,r,l){if(Tu){var o=Kc(l);if(o===null)Uc(e,t,l,xu,r),uv(e,l);else if(c1(o,e,t,r,l))l.stopPropagation();else if(uv(e,l),t&4&&-1<o1.indexOf(e)){for(;o!==null;){var f=tr(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=Aa(f.pendingLanes);if(g!==0){var S=f;for(S.pendingLanes|=2,S.entangledLanes|=2;g;){var D=1<<31-Ot(g);S.entanglements[1]|=D,g&=~D}bn(f),(He&6)===0&&(ou=Et()+500,Hi(0))}}break;case 31:case 13:S=La(f,2),S!==null&&zt(S,f,2),fu(),Zc(f,2)}if(f=Kc(l),f===null&&Uc(e,t,l,xu,r),f===o)break;o=f}o!==null&&l.stopPropagation()}else Uc(e,t,l,null,r)}}function Kc(e){return e=Js(e),Jc(e)}var xu=null;function Jc(e){if(xu=null,e=er(e),e!==null){var t=c(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=d(t),e!==null)return e;e=null}else if(r===31){if(e=p(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xu=e,null}function lv(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(Vs()){case ml:return 2;case pl:return 8;case Ka:case Bs:return 32;case vl:return 268435456;default:return 32}default:return 32}}var ef=!1,ga=null,ba=null,_a=null,Ii=new Map,Fi=new Map,Sa=[],o1="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 uv(e,t){switch(e){case"focusin":case"focusout":ga=null;break;case"dragenter":case"dragleave":ba=null;break;case"mouseover":case"mouseout":_a=null;break;case"pointerover":case"pointerout":Ii.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fi.delete(t.pointerId)}}function Yi(e,t,r,l,o,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:r,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},t!==null&&(t=tr(t),t!==null&&rv(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function c1(e,t,r,l,o){switch(t){case"focusin":return ga=Yi(ga,e,t,r,l,o),!0;case"dragenter":return ba=Yi(ba,e,t,r,l,o),!0;case"mouseover":return _a=Yi(_a,e,t,r,l,o),!0;case"pointerover":var f=o.pointerId;return Ii.set(f,Yi(Ii.get(f)||null,e,t,r,l,o)),!0;case"gotpointercapture":return f=o.pointerId,Fi.set(f,Yi(Fi.get(f)||null,e,t,r,l,o)),!0}return!1}function sv(e){var t=er(e.target);if(t!==null){var r=c(t);if(r!==null){if(t=r.tag,t===13){if(t=d(r),t!==null){e.blockedOn=t,wd(e.priority,function(){iv(r)});return}}else if(t===31){if(t=p(r),t!==null){e.blockedOn=t,wd(e.priority,function(){iv(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Au(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Kc(e.nativeEvent);if(r===null){r=e.nativeEvent;var l=new r.constructor(r.type,r);Ks=l,r.target.dispatchEvent(l),Ks=null}else return t=tr(r),t!==null&&rv(t),e.blockedOn=r,!1;t.shift()}return!0}function ov(e,t,r){Au(e)&&r.delete(t)}function f1(){ef=!1,ga!==null&&Au(ga)&&(ga=null),ba!==null&&Au(ba)&&(ba=null),_a!==null&&Au(_a)&&(_a=null),Ii.forEach(ov),Fi.forEach(ov)}function Ru(e,t){e.blockedOn===t&&(e.blockedOn=null,ef||(ef=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,f1)))}var Du=null;function cv(e){Du!==e&&(Du=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Du===e&&(Du=null);for(var t=0;t<e.length;t+=3){var r=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(Jc(l||r)===null)continue;break}var f=tr(r);f!==null&&(e.splice(t,3),t-=3,Ko(f,{pending:!0,data:o,method:r.method,action:l},l,o))}}))}function qr(e){function t(D){return Ru(D,e)}ga!==null&&Ru(ga,e),ba!==null&&Ru(ba,e),_a!==null&&Ru(_a,e),Ii.forEach(t),Fi.forEach(t);for(var r=0;r<Sa.length;r++){var l=Sa[r];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Sa.length&&(r=Sa[0],r.blockedOn===null);)sv(r),r.blockedOn===null&&Sa.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(l=0;l<r.length;l+=3){var o=r[l],f=r[l+1],g=o[Rt]||null;if(typeof f=="function")g||cv(r);else if(g){var S=null;if(f&&f.hasAttribute("formAction")){if(o=f,g=f[Rt]||null)S=g.formAction;else if(Jc(o)!==null)continue}else S=g.action;typeof S=="function"?r[l+1]=S:(r.splice(l,3),l-=3),cv(r)}}}function fv(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(g){return o=g})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(r,20)}function r(){if(!l&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function tf(e){this._internalRoot=e}Mu.prototype.render=tf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var r=t.current,l=Pt();nv(r,l,e,t,null,null)},Mu.prototype.unmount=tf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nv(e.current,2,null,e,null,null),fu(),t[Ja]=null}};function Mu(e){this._internalRoot=e}Mu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sd();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Sa.length&&t!==0&&t<Sa[r].priority;r++);Sa.splice(r,0,e),r===0&&sv(e)}};var dv=n.version;if(dv!=="19.2.4")throw Error(u(527,dv,"19.2.4"));K.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?v(e):null,e=e===null?null:e.stateNode,e};var d1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ju.isDisabled&&ju.supportsFiber)try{xa=ju.inject(d1),Ct=ju}catch{}}return el.createRoot=function(e,t){if(!s(e))throw Error(u(299));var r=!1,l="",o=bm,f=_m,g=Sm;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=ev(e,1,!1,null,null,r,l,null,o,f,g,fv),e[Ja]=t.current,qc(e),new tf(t)},el.hydrateRoot=function(e,t,r){if(!s(e))throw Error(u(299));var l=!1,o="",f=bm,g=_m,S=Sm,D=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(f=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(S=r.onRecoverableError),r.formState!==void 0&&(D=r.formState)),t=ev(e,1,!0,t,r??null,l,o,D,f,g,S,fv),t.context=tv(null),r=t.current,l=Pt(),l=Ps(l),o=la(l),o.callback=null,ua(r,o,l),r=l,t.current.lanes=r,ri(t,r),bn(t),e[Ja]=t.current,qc(e),new Mu(t)},el.version="19.2.4",el}var Hy;function AR(){if(Hy)return Cf.exports;Hy=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),Cf.exports=xR(),Cf.exports}var RR=AR();const Jb=document.getElementById("root");if(!Jb)throw new Error("Root element not found");const DR=RR.createRoot(Jb);function xf(a){DR.render(w.jsx(A.StrictMode,{children:a}))}function MR(a,n,i){a.rowSpan!==void 0&&(typeof a.rowSpan!="number"||a.rowSpan<1)&&(i[`slot_${n}_rowSpan`]=`Slot ${n+1}: Row span must be 1 or more`),a.colSpan!==void 0&&(typeof a.colSpan!="number"||a.colSpan<1)&&(i[`slot_${n}_colSpan`]=`Slot ${n+1}: Column span must be 1 or more`),a.autoSpan!==void 0&&typeof a.autoSpan!="boolean"&&(i[`slot_${n}_autoSpan`]=`Slot ${n+1}: Auto size must be true or false`)}function jR(a,n,i,u,s,c){(!a.label||typeof a.label!="string"||!a.label.trim())&&(s[`slot_${n}_label`]=`Slot ${n+1}: Label is required`),a.id&&typeof a.id=="string"&&(i.has(a.id)&&(s.layoutConfig="Slot IDs must be unique"),i.add(a.id)),MR(a,n,s),LR(a,n,u,c),a.width!==void 0&&!Jr(a.width)&&c(`Slot ${n+1}: Width must be a number or original`)}function LR(a,n,i,u){if(typeof a.aspectRatio=="string"){if(a.aspectRatio==="custom"){const s=typeof a.customAspectRatio=="string"?a.customAspectRatio:"",c=Ca(s);c&&u(`Slot ${n+1}: ${c}`);return}if(!i.has(a.aspectRatio)){const s=Ca(a.aspectRatio);s&&u(`Slot ${n+1}: ${s}`)}}}function NR(a,n){if(a.layoutAspectRatio!==void 0&&typeof a.layoutAspectRatio!="string"){n("Layout aspect ratio must be a string");return}if(a.layoutCustomAspectRatio!==void 0&&typeof a.layoutCustomAspectRatio!="string"){n("Layout custom aspect ratio must be a string");return}if(a.layoutAspectRatio==="custom"){const i=typeof a.layoutCustomAspectRatio=="string"?a.layoutCustomAspectRatio:"",u=Ca(i);u&&n(`Layout custom aspect ratio: ${u}`)}}function zR(a,n,i,u){if(a.length===0){i.layoutConfig="At least one slot is required";return}const s=new Set;for(let c=0;c<a.length;c++){const d=a[c];jR(d,c,s,n,i,u)}}function qR(a,n,i){const u=c=>{i.layoutConfig||(i.layoutConfig=c)},s=a.layoutConfig;if(!s||!Array.isArray(s.slots)){i.layoutConfig="Layout configuration is required";return}if(zR(s.slots,n,i,u),s.layoutStyle!==void 0&&s.layoutStyle!=="grid"&&s.layoutStyle!=="masonry"&&(i.layoutConfig="Layout style must be grid or masonry"),NR(s,u),s.layoutWidth!==void 0){const c=Number(s.layoutWidth);Rs(c)||u("Layout width must be between 1 and 10000")}}function UR(a,n){if(a.overrideDefaultWidth!==void 0&&a.overrideDefaultWidth!==null){const i=Number(a.overrideDefaultWidth);a.overrideDefaultWidth!=="original"&&!Rs(i)&&(n.overrideDefaultWidth="Width must be between 1 and 10000")}}function HR(a){const n={},i=new Set(Tn.map(s=>s.value)),u=["single","multiple","layout"];return(!a.mode||!u.includes(a.mode))&&(n.mode="Please select a mode"),a.mode==="layout"?qR(a,i,n):UR(a,n),n}$1({async onBoot(a){if(!a.currentRole.meta.final_permissions.can_edit_schema||Pg(a.plugin.attributes.parameters))return;const n=Ns(a.plugin.attributes.parameters);a.updatePluginParameters(n)},renderConfigScreen(a){xf(w.jsx(mT,{ctx:a}))},manualFieldExtensions(){return[{id:Vu,name:"Media Layouts",type:"editor",fieldTypes:["json"],configurable:!0}]},renderManualFieldExtensionConfigScreen(a,n){a===Vu&&xf(w.jsx($2,{ctx:n}))},validateManualFieldExtensionParameters(a,n){return a===Vu?HR(n):{}},renderFieldExtension(a,n){a===Vu&&xf(w.jsx(CR,{ctx:n}))}});
|