datocms-plugin-frontify-asset-source 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/assets/index-D6vSh-CZ.css +237 -0
- package/dist/assets/index-DACHrXNW.js +107 -0
- package/dist/index.html +2 -2
- package/package.json +16 -16
- package/dist/assets/index-BUTImFz-.js +0 -110
- package/dist/assets/index-C8pvH6qZ.css +0 -237
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
function fS(n,l){for(var i=0;i<l.length;i++){const o=l[i];if(typeof o!="string"&&!Array.isArray(o)){for(const u in o)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(o,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>o[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();function Td(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var _f={exports:{}},Si={};var Xp;function dS(){if(Xp)return Si;Xp=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(o,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var p in u)p!=="key"&&(f[p]=u[p])}else f=u;return u=f.ref,{$$typeof:n,type:o,key:d,ref:u!==void 0?u:null,props:f}}return Si.Fragment=l,Si.jsx=i,Si.jsxs=i,Si}var $p;function vS(){return $p||($p=1,_f.exports=dS()),_f.exports}var Oe=vS(),lo={exports:{}},Tt={},Zp;function xd(){if(Zp)return Tt;Zp=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.DATA_CLONE_ERROR=Tt.MESSAGE=Tt.REJECTED=Tt.FULFILLED=Tt.REPLY=Tt.CALL=Tt.HANDSHAKE_REPLY=Tt.HANDSHAKE=void 0;const n="handshake";Tt.HANDSHAKE=n;const l="handshake-reply";Tt.HANDSHAKE_REPLY=l;const i="call";Tt.CALL=i;const o="reply";Tt.REPLY=o;const u="fulfilled";Tt.FULFILLED=u;const f="rejected";Tt.REJECTED=f;const d="message";Tt.MESSAGE=d;const p="DataCloneError";return Tt.DATA_CLONE_ERROR=p,Tt}var zn={},Kp;function Mg(){if(Kp)return zn;Kp=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.ERR_NO_IFRAME_SRC=zn.ERR_NOT_IN_IFRAME=zn.ERR_CONNECTION_TIMEOUT=zn.ERR_CONNECTION_DESTROYED=void 0;const n="ConnectionDestroyed";zn.ERR_CONNECTION_DESTROYED=n;const l="ConnectionTimeout";zn.ERR_CONNECTION_TIMEOUT=l;const i="NotInIframe";zn.ERR_NOT_IN_IFRAME=i;const o="NoIframeSrc";return zn.ERR_NO_IFRAME_SRC=o,zn}var ro={exports:{}},Jp;function hS(){return Jp||(Jp=1,(function(n,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var i=()=>{const o=[];let u=!1;return{destroy(){u=!0,o.forEach(f=>{f()})},onDestroy(f){u?f():o.push(f)}}};l.default=i,n.exports=l.default})(ro,ro.exports)),ro.exports}var io={exports:{}},gl={},Pp;function Dg(){if(Pp)return gl;Pp=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.deserializeError=gl.serializeError=void 0;const n=i=>{let o=i.name,u=i.message,f=i.stack;return{name:o,message:u,stack:f}};gl.serializeError=n;const l=i=>{const o=new Error;return Object.keys(i).forEach(u=>o[u]=i[u]),o};return gl.deserializeError=l,gl}var Wp;function mS(){return Wp||(Wp=1,(function(n,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var i=xd(),o=Dg(),u=(f,d,p)=>{const v=f.localName,h=f.local,g=f.remote,b=f.originForSending,C=f.originForReceiving;let x=!1;p(`${v}: Connecting call receiver`);const E=_=>{if(_.source!==g||_.data.penpal!==i.CALL)return;if(_.origin!==C){p(`${v} received message from origin ${_.origin} which did not match expected origin ${C}`);return}const M=_.data,L=M.methodName,A=M.args,U=M.id;p(`${v}: Received ${L}() call`);const N=D=>I=>{if(p(`${v}: Sending ${L}() reply`),x){p(`${v}: Unable to send ${L}() reply due to destroyed connection`);return}const Q={penpal:i.REPLY,id:U,resolution:D,returnValue:I};D===i.REJECTED&&I instanceof Error&&(Q.returnValue=(0,o.serializeError)(I),Q.returnValueIsError=!0);try{g.postMessage(Q,b)}catch(ae){throw ae.name===i.DATA_CLONE_ERROR&&g.postMessage({penpal:i.REPLY,id:U,resolution:i.REJECTED,returnValue:(0,o.serializeError)(ae),returnValueIsError:!0},b),ae}};new Promise(D=>D(d[L].apply(d,A))).then(N(i.FULFILLED),N(i.REJECTED))};return h.addEventListener(i.MESSAGE,E),()=>{x=!0,h.removeEventListener(i.MESSAGE,E)}};l.default=u,n.exports=l.default})(io,io.exports)),io.exports}var uo={exports:{}},oo={exports:{}},ey;function pS(){return ey||(ey=1,(function(n,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;let i=0;var o=()=>++i;l.default=o,n.exports=l.default})(oo,oo.exports)),oo.exports}var ty;function yS(){return ty||(ty=1,(function(n,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var i=xd(),o=Mg(),u=d(pS()),f=Dg();function d(v){return v&&v.__esModule?v:{default:v}}var p=(v,h,g,b,C)=>{const x=h.localName,E=h.local,_=h.remote,M=h.originForSending,L=h.originForReceiving;let A=!1;C(`${x}: Connecting call sender`);const U=N=>function(){for(var D=arguments.length,I=new Array(D),Q=0;Q<D;Q++)I[Q]=arguments[Q];C(`${x}: Sending ${N}() call`);let ae;try{_.closed&&(ae=!0)}catch{ae=!0}if(ae&&b(),A){const pe=new Error(`Unable to send ${N}() call due to destroyed connection`);throw pe.code=o.ERR_CONNECTION_DESTROYED,pe}return new Promise((pe,De)=>{const Ne=(0,u.default)(),ie=ue=>{if(ue.source!==_||ue.data.penpal!==i.REPLY||ue.data.id!==Ne)return;if(ue.origin!==L){C(`${x} received message from origin ${ue.origin} which did not match expected origin ${L}`);return}C(`${x}: Received ${N}() reply`),E.removeEventListener(i.MESSAGE,ie);let ge=ue.data.returnValue;ue.data.returnValueIsError&&(ge=(0,f.deserializeError)(ge)),(ue.data.resolution===i.FULFILLED?pe:De)(ge)};E.addEventListener(i.MESSAGE,ie),_.postMessage({penpal:i.CALL,id:Ne,methodName:N,args:I},M)})};return g.reduce((N,D)=>(N[D]=U(D),N),v),()=>{A=!0}};l.default=p,n.exports=l.default})(uo,uo.exports)),uo.exports}var so={exports:{}},ny;function gS(){return ny||(ny=1,(function(n,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var i=o=>function(){if(o){for(var u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];console.log("[Penpal]",...f)}};l.default=i,n.exports=l.default})(so,so.exports)),so.exports}var ay;function bS(){return ay||(ay=1,(function(n,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var i=xd(),o=Mg(),u=v(hS()),f=v(mS()),d=v(yS()),p=v(gS());function v(g){return g&&g.__esModule?g:{default:g}}var h=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=b.parentOrigin,x=C===void 0?"*":C,E=b.methods,_=E===void 0?{}:E,M=b.timeout,L=b.debug;const A=(0,p.default)(L);if(window===window.top){const pe=new Error("connectToParent() must be called within an iframe");throw pe.code=o.ERR_NOT_IN_IFRAME,pe}const U=(0,u.default)(),N=U.destroy,D=U.onDestroy,I=window,Q=I.parent;return{promise:new Promise((pe,De)=>{let Ne;M!==void 0&&(Ne=setTimeout(()=>{const ue=new Error(`Connection to parent timed out after ${M}ms`);ue.code=o.ERR_CONNECTION_TIMEOUT,De(ue),N()},M));const ie=ue=>{try{clearTimeout()}catch{return}if(ue.source!==Q||ue.data.penpal!==i.HANDSHAKE_REPLY)return;if(x!=="*"&&x!==ue.origin){A(`Child received handshake reply from origin ${ue.origin} which did not match expected origin ${x}`);return}A("Child: Received handshake reply"),I.removeEventListener(i.MESSAGE,ie);const ge={localName:"Child",local:I,remote:Q,originForSending:ue.origin==="null"?"*":ue.origin,originForReceiving:ue.origin},Ae={},q=(0,f.default)(ge,_,A);D(q);const K=(0,d.default)(Ae,ge,ue.data.methodNames,N,A);D(K),clearTimeout(Ne),pe(Ae)};I.addEventListener(i.MESSAGE,ie),D(()=>{I.removeEventListener(i.MESSAGE,ie);const ue=new Error("Connection destroyed");ue.code=o.ERR_CONNECTION_DESTROYED,De(ue)}),A("Child: Sending handshake"),Q.postMessage({penpal:i.HANDSHAKE,methodNames:Object.keys(_)},x)}),destroy:N}};l.default=h,n.exports=l.default})(lo,lo.exports)),lo.exports}var SS=bS();const ES=Td(SS);var $n=function(){return $n=Object.assign||function(n){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},$n.apply(this,arguments)};function ly(n,l){for(var i=$n({},n),o=0,u=l;o<u.length;o++){var f=u[o];delete i[f]}return i}function Af(n){return function(l,i){if(n){for(var o={},u=0,f=l;u<f.length;u++){var d=f[u],p=i.itemTypes[d.relationships.item_type.data.id];o[d.id]=n(d,$n($n({},i),{itemType:p}))}return o}}}function ba(n,l){var i=function(o,u,f){if(f.mode===n){var d=_S(u),p=function(v){l(o,$n($n($n({},u),v),d))};return p(f),p}};return i.mode=n,i}function Li(n,l){var i=function(o,u,f){if(f.mode===n){var d=function(p){l(o,$n($n({},u),p))};return d(f),d}};return i.mode=n,i}function OS(){for(var n=document.querySelectorAll("body *"),l=0,i=0;i<n.length;i++)l=Math.max(n[i].getBoundingClientRect().bottom,l);return l}var _S=function(n){var l=null,i=function(h){var g=h===void 0?Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.getBoundingClientRect().height,OS()):h;g!==l&&(n.setHeight(g),l=g)},o=null,u=null,f=function(){return i()},d=function(){i(),o||(o=new ResizeObserver(f),o.observe(document.documentElement)),u||(u=new MutationObserver(f),u.observe(window.document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))},p=function(){o&&(o.disconnect(),o=null),u&&(u.disconnect(),u=null)},v=function(){return!!o};return{updateHeight:i,startAutoResizer:d,stopAutoResizer:p,isAutoResizerActive:v}},AS=ba("renderAssetSource",function(n,l){n.renderAssetSource&&n.renderAssetSource(l.assetSourceId,l)}),CS=ba("renderConfigScreen",function(n,l){n.renderConfigScreen&&n.renderConfigScreen(l)}),TS=ba("renderFieldExtension",function(n,l){n.renderFieldExtension&&n.renderFieldExtension(l.fieldExtensionId,l)}),xS=Li("renderInspector",function(n,l){n.renderInspector&&n.renderInspector(l.inspectorId,l)}),MS=Li("renderInspectorPanel",function(n,l){n.renderInspectorPanel&&n.renderInspectorPanel(l.panelId,l)}),DS=ba("renderItemCollectionOutlet",function(n,l){n.renderItemCollectionOutlet&&n.renderItemCollectionOutlet(l.itemCollectionOutletId,l)}),RS=ba("renderItemFormOutlet",function(n,l){n.renderItemFormOutlet&&n.renderItemFormOutlet(l.itemFormOutletId,l)}),NS=Li("renderItemFormSidebar",function(n,l){n.renderItemFormSidebar&&n.renderItemFormSidebar(l.sidebarId,l)}),VS=ba("renderItemFormSidebarPanel",function(n,l){n.renderItemFormSidebarPanel&&n.renderItemFormSidebarPanel(l.sidebarPaneId,l)}),zS=ba("renderManualFieldExtensionConfigScreen",function(n,l){n.renderManualFieldExtensionConfigScreen&&n.renderManualFieldExtensionConfigScreen(l.fieldExtensionId,l)}),wS=ba("renderModal",function(n,l){n.renderModal&&n.renderModal(l.modalId,l)}),LS=Li("renderPage",function(n,l){n.renderPage&&n.renderPage(l.pageId,l)}),US=Li("renderUploadSidebar",function(n,l){n.renderUploadSidebar&&n.renderUploadSidebar(l.sidebarId,l)}),HS=ba("renderUploadSidebarPanel",function(n,l){n.renderUploadSidebarPanel&&n.renderUploadSidebarPanel(l.sidebarPaneId,l)}),Mn=function(){return Mn=Object.assign||function(n){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},Mn.apply(this,arguments)},qS=function(n,l,i,o){function u(f){return f instanceof i?f:new i(function(d){d(f)})}return new(i||(i=Promise))(function(f,d){function p(g){try{h(o.next(g))}catch(b){d(b)}}function v(g){try{h(o.throw(g))}catch(b){d(b)}}function h(g){g.done?f(g.value):u(g.value).then(p,v)}h((o=o.apply(n,l||[])).next())})},jS=function(n,l){var i={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,u,f,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(g){return v([h,g])}}function v(h){if(o)throw new TypeError("Generator is already executing.");for(;d&&(d=0,h[0]&&(i=0)),i;)try{if(o=1,u&&(f=h[0]&2?u.return:h[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,h[1])).done)return f;switch(u=0,f&&(h=[h[0]&2,f.value]),h[0]){case 0:case 1:f=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,u=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(f=i.trys,!(f=f.length>0&&f[f.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!f||h[1]>f[0]&&h[1]<f[3])){i.label=h[1];break}if(h[0]===6&&i.label<f[1]){i.label=f[1],f=h;break}if(f&&i.label<f[2]){i.label=f[2],i.ops.push(h);break}f[2]&&i.ops.pop(),i.trys.pop();continue}h=l.call(n,i)}catch(g){h=[6,g],u=0}finally{o=f=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},ry=function(n,l,i){if(i||arguments.length===2)for(var o=0,u=l.length,f;o<u;o++)(f||!(o in l))&&(f||(f=Array.prototype.slice.call(l,0,o)),f[o]=l[o]);return n.concat(f||Array.prototype.slice.call(l))};function iy(n){if(!(typeof document>"u")){var l=n?.colorScheme;l!=="light"&&l!=="dark"||document.documentElement.dataset.colorScheme!==l&&(document.documentElement.dataset.colorScheme=l,document.documentElement.style.colorScheme=l)}}function BS(){return qS(this,arguments,void 0,function(n){var l,i,o,u,f,d,p,v,h,g,b,C;return n===void 0&&(n={}),jS(this,function(x){switch(x.label){case 0:return l=null,i=null,o=Mn(Mn({},n),{overrideFieldExtensions:Af(n.overrideFieldExtensions),customMarksForStructuredTextField:Af(n.customMarksForStructuredTextField),customBlockStylesForStructuredTextField:Af(n.customBlockStylesForStructuredTextField)}),u=ES({methods:Mn(Mn({sdkVersion:function(){return"0.3.1"},implementedHooks:function(){return Object.fromEntries(Object.keys(n).map(function(E){return[E,!0]}))}},Object.fromEntries(Object.entries(o).filter(function(E){var _=E[0];return!_.startsWith("render")}))),{onChange:function(E){iy(E),l&&l(E)},callMethodMergingBootCtx:function(E,_,M,L,A){return i?i(E,_,M,L,A):null}})}),[4,u.promise];case 1:return f=x.sent(),[4,f.getSettings()];case 2:for(d=x.sent(),iy(d),d.mode==="onBoot"&&(p=d,l=function(E){p=E},i=function(E,_,M,L,A){var U;if(E in o)return(U=o)[E].apply(U,ry(ry([],_,!1),[Mn(Mn(Mn(Mn({},ly(f,["getSettings","setHeight"])),ly(p,["mode","bodyPadding"])),Object.fromEntries(L.map(function(N){return[N,function(){for(var I=[],Q=0;Q<arguments.length;Q++)I[Q]=arguments[Q];return f.callAdditionalCtxMethod(A,N,I)}]}))),M)],!1))},o.onBoot&&o.onBoot(Mn(Mn({},f),p))),v={renderAssetSource:AS,renderConfigScreen:CS,renderFieldExtension:TS,renderItemCollectionOutlet:DS,renderItemFormOutlet:RS,renderItemFormSidebar:NS,renderItemFormSidebarPanel:VS,renderManualFieldExtensionConfigScreen:zS,renderModal:wS,renderPage:LS,renderInspector:xS,renderInspectorPanel:MS,renderUploadSidebar:US,renderUploadSidebarPanel:HS},h=0,g=Object.values(v);h<g.length;h++)if(b=g[h],C=b(o,f,d),C){l=C;break}return[2]}})})}var Cf={exports:{}},Re={};var uy;function kS(){if(uy)return Re;uy=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function x(T){return T===null||typeof T!="object"?null:(T=C&&T[C]||T["@@iterator"],typeof T=="function"?T:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,M={};function L(T,F,te){this.props=T,this.context=F,this.refs=M,this.updater=te||E}L.prototype.isReactComponent={},L.prototype.setState=function(T,F){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,F,"setState")},L.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function A(){}A.prototype=L.prototype;function U(T,F,te){this.props=T,this.context=F,this.refs=M,this.updater=te||E}var N=U.prototype=new A;N.constructor=U,_(N,L.prototype),N.isPureReactComponent=!0;var D=Array.isArray;function I(){}var Q={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function pe(T,F,te){var oe=te.ref;return{$$typeof:n,type:T,key:F,ref:oe!==void 0?oe:null,props:te}}function De(T,F){return pe(T.type,F,T.props)}function Ne(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function ie(T){var F={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(te){return F[te]})}var ue=/\/+/g;function ge(T,F){return typeof T=="object"&&T!==null&&T.key!=null?ie(""+T.key):F.toString(36)}function Ae(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(I,I):(T.status="pending",T.then(function(F){T.status==="pending"&&(T.status="fulfilled",T.value=F)},function(F){T.status==="pending"&&(T.status="rejected",T.reason=F)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function q(T,F,te,oe,ye){var Ce=typeof T;(Ce==="undefined"||Ce==="boolean")&&(T=null);var Ve=!1;if(T===null)Ve=!0;else switch(Ce){case"bigint":case"string":case"number":Ve=!0;break;case"object":switch(T.$$typeof){case n:case l:Ve=!0;break;case g:return Ve=T._init,q(Ve(T._payload),F,te,oe,ye)}}if(Ve)return ye=ye(T),Ve=oe===""?"."+ge(T,0):oe,D(ye)?(te="",Ve!=null&&(te=Ve.replace(ue,"$&/")+"/"),q(ye,F,te,"",function(Kn){return Kn})):ye!=null&&(Ne(ye)&&(ye=De(ye,te+(ye.key==null||T&&T.key===ye.key?"":(""+ye.key).replace(ue,"$&/")+"/")+Ve)),F.push(ye)),1;Ve=0;var We=oe===""?".":oe+":";if(D(T))for(var Ze=0;Ze<T.length;Ze++)oe=T[Ze],Ce=We+ge(oe,Ze),Ve+=q(oe,F,te,Ce,ye);else if(Ze=x(T),typeof Ze=="function")for(T=Ze.call(T),Ze=0;!(oe=T.next()).done;)oe=oe.value,Ce=We+ge(oe,Ze++),Ve+=q(oe,F,te,Ce,ye);else if(Ce==="object"){if(typeof T.then=="function")return q(Ae(T),F,te,oe,ye);throw F=String(T),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Ve}function K(T,F,te){if(T==null)return T;var oe=[],ye=0;return q(T,oe,"","",function(Ce){return F.call(te,Ce,ye++)}),oe}function fe(T){if(T._status===-1){var F=T._result;F=F(),F.then(function(te){(T._status===0||T._status===-1)&&(T._status=1,T._result=te)},function(te){(T._status===0||T._status===-1)&&(T._status=2,T._result=te)}),T._status===-1&&(T._status=0,T._result=F)}if(T._status===1)return T._result.default;throw T._result}var ee=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Me={map:K,forEach:function(T,F,te){K(T,function(){F.apply(this,arguments)},te)},count:function(T){var F=0;return K(T,function(){F++}),F},toArray:function(T){return K(T,function(F){return F})||[]},only:function(T){if(!Ne(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Re.Activity=b,Re.Children=Me,Re.Component=L,Re.Fragment=i,Re.Profiler=u,Re.PureComponent=U,Re.StrictMode=o,Re.Suspense=v,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,Re.__COMPILER_RUNTIME={__proto__:null,c:function(T){return Q.H.useMemoCache(T)}},Re.cache=function(T){return function(){return T.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(T,F,te){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var oe=_({},T.props),ye=T.key;if(F!=null)for(Ce in F.key!==void 0&&(ye=""+F.key),F)!ae.call(F,Ce)||Ce==="key"||Ce==="__self"||Ce==="__source"||Ce==="ref"&&F.ref===void 0||(oe[Ce]=F[Ce]);var Ce=arguments.length-2;if(Ce===1)oe.children=te;else if(1<Ce){for(var Ve=Array(Ce),We=0;We<Ce;We++)Ve[We]=arguments[We+2];oe.children=Ve}return pe(T.type,ye,oe)},Re.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},Re.createElement=function(T,F,te){var oe,ye={},Ce=null;if(F!=null)for(oe in F.key!==void 0&&(Ce=""+F.key),F)ae.call(F,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ye[oe]=F[oe]);var Ve=arguments.length-2;if(Ve===1)ye.children=te;else if(1<Ve){for(var We=Array(Ve),Ze=0;Ze<Ve;Ze++)We[Ze]=arguments[Ze+2];ye.children=We}if(T&&T.defaultProps)for(oe in Ve=T.defaultProps,Ve)ye[oe]===void 0&&(ye[oe]=Ve[oe]);return pe(T,Ce,ye)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(T){return{$$typeof:p,render:T}},Re.isValidElement=Ne,Re.lazy=function(T){return{$$typeof:g,_payload:{_status:-1,_result:T},_init:fe}},Re.memo=function(T,F){return{$$typeof:h,type:T,compare:F===void 0?null:F}},Re.startTransition=function(T){var F=Q.T,te={};Q.T=te;try{var oe=T(),ye=Q.S;ye!==null&&ye(te,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(I,ee)}catch(Ce){ee(Ce)}finally{F!==null&&te.types!==null&&(F.types=te.types),Q.T=F}},Re.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},Re.use=function(T){return Q.H.use(T)},Re.useActionState=function(T,F,te){return Q.H.useActionState(T,F,te)},Re.useCallback=function(T,F){return Q.H.useCallback(T,F)},Re.useContext=function(T){return Q.H.useContext(T)},Re.useDebugValue=function(){},Re.useDeferredValue=function(T,F){return Q.H.useDeferredValue(T,F)},Re.useEffect=function(T,F){return Q.H.useEffect(T,F)},Re.useEffectEvent=function(T){return Q.H.useEffectEvent(T)},Re.useId=function(){return Q.H.useId()},Re.useImperativeHandle=function(T,F,te){return Q.H.useImperativeHandle(T,F,te)},Re.useInsertionEffect=function(T,F){return Q.H.useInsertionEffect(T,F)},Re.useLayoutEffect=function(T,F){return Q.H.useLayoutEffect(T,F)},Re.useMemo=function(T,F){return Q.H.useMemo(T,F)},Re.useOptimistic=function(T,F){return Q.H.useOptimistic(T,F)},Re.useReducer=function(T,F,te){return Q.H.useReducer(T,F,te)},Re.useRef=function(T){return Q.H.useRef(T)},Re.useState=function(T){return Q.H.useState(T)},Re.useSyncExternalStore=function(T,F,te){return Q.H.useSyncExternalStore(T,F,te)},Re.useTransition=function(){return Q.H.useTransition()},Re.version="19.2.8",Re}var oy;function Md(){return oy||(oy=1,Cf.exports=kS()),Cf.exports}var Y=Md();const se=Td(Y),sy=fS({__proto__:null,default:se},[Y]);var Tf={exports:{}},Ei={},xf={exports:{}},Mf={};var cy;function FS(){return cy||(cy=1,(function(n){function l(q,K){var fe=q.length;q.push(K);e:for(;0<fe;){var ee=fe-1>>>1,Me=q[ee];if(0<u(Me,K))q[ee]=K,q[fe]=Me,fe=ee;else break e}}function i(q){return q.length===0?null:q[0]}function o(q){if(q.length===0)return null;var K=q[0],fe=q.pop();if(fe!==K){q[0]=fe;e:for(var ee=0,Me=q.length,T=Me>>>1;ee<T;){var F=2*(ee+1)-1,te=q[F],oe=F+1,ye=q[oe];if(0>u(te,fe))oe<Me&&0>u(ye,te)?(q[ee]=ye,q[oe]=fe,ee=oe):(q[ee]=te,q[F]=fe,ee=F);else if(oe<Me&&0>u(ye,fe))q[ee]=ye,q[oe]=fe,ee=oe;else break e}}return K}function u(q,K){var fe=q.sortIndex-K.sortIndex;return fe!==0?fe:q.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var v=[],h=[],g=1,b=null,C=3,x=!1,E=!1,_=!1,M=!1,L=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function N(q){for(var K=i(h);K!==null;){if(K.callback===null)o(h);else if(K.startTime<=q)o(h),K.sortIndex=K.expirationTime,l(v,K);else break;K=i(h)}}function D(q){if(_=!1,N(q),!E)if(i(v)!==null)E=!0,I||(I=!0,ie());else{var K=i(h);K!==null&&Ae(D,K.startTime-q)}}var I=!1,Q=-1,ae=5,pe=-1;function De(){return M?!0:!(n.unstable_now()-pe<ae)}function Ne(){if(M=!1,I){var q=n.unstable_now();pe=q;var K=!0;try{e:{E=!1,_&&(_=!1,A(Q),Q=-1),x=!0;var fe=C;try{t:{for(N(q),b=i(v);b!==null&&!(b.expirationTime>q&&De());){var ee=b.callback;if(typeof ee=="function"){b.callback=null,C=b.priorityLevel;var Me=ee(b.expirationTime<=q);if(q=n.unstable_now(),typeof Me=="function"){b.callback=Me,N(q),K=!0;break t}b===i(v)&&o(v),N(q)}else o(v);b=i(v)}if(b!==null)K=!0;else{var T=i(h);T!==null&&Ae(D,T.startTime-q),K=!1}}break e}finally{b=null,C=fe,x=!1}K=void 0}}finally{K?ie():I=!1}}}var ie;if(typeof U=="function")ie=function(){U(Ne)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,ge=ue.port2;ue.port1.onmessage=Ne,ie=function(){ge.postMessage(null)}}else ie=function(){L(Ne,0)};function Ae(q,K){Q=L(function(){q(n.unstable_now())},K)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(q){q.callback=null},n.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<q?Math.floor(1e3/q):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_next=function(q){switch(C){case 1:case 2:case 3:var K=3;break;default:K=C}var fe=C;C=K;try{return q()}finally{C=fe}},n.unstable_requestPaint=function(){M=!0},n.unstable_runWithPriority=function(q,K){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var fe=C;C=q;try{return K()}finally{C=fe}},n.unstable_scheduleCallback=function(q,K,fe){var ee=n.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?ee+fe:ee):fe=ee,q){case 1:var Me=-1;break;case 2:Me=250;break;case 5:Me=1073741823;break;case 4:Me=1e4;break;default:Me=5e3}return Me=fe+Me,q={id:g++,callback:K,priorityLevel:q,startTime:fe,expirationTime:Me,sortIndex:-1},fe>ee?(q.sortIndex=fe,l(h,q),i(v)===null&&q===i(h)&&(_?(A(Q),Q=-1):_=!0,Ae(D,fe-ee))):(q.sortIndex=Me,l(v,q),E||x||(E=!0,I||(I=!0,ie()))),q},n.unstable_shouldYield=De,n.unstable_wrapCallback=function(q){var K=C;return function(){var fe=C;C=K;try{return q.apply(this,arguments)}finally{C=fe}}}})(Mf)),Mf}var fy;function GS(){return fy||(fy=1,xf.exports=FS()),xf.exports}var Df={exports:{}},Bt={};var dy;function YS(){if(dy)return Bt;dy=1;var n=Md();function l(v){var h="https://react.dev/errors/"+v;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+v+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var o={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(v,h,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:v,containerInfo:h,implementation:g}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(v,h){if(v==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Bt.createPortal=function(v,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(l(299));return f(v,h,null,g)},Bt.flushSync=function(v){var h=d.T,g=o.p;try{if(d.T=null,o.p=2,v)return v()}finally{d.T=h,o.p=g,o.d.f()}},Bt.preconnect=function(v,h){typeof v=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(v,h))},Bt.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},Bt.preinit=function(v,h){if(typeof v=="string"&&h&&typeof h.as=="string"){var g=h.as,b=p(g,h.crossOrigin),C=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?o.d.S(v,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:x}):g==="script"&&o.d.X(v,{crossOrigin:b,integrity:C,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Bt.preinitModule=function(v,h){if(typeof v=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=p(h.as,h.crossOrigin);o.d.M(v,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(v)},Bt.preload=function(v,h){if(typeof v=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,b=p(g,h.crossOrigin);o.d.L(v,g,{crossOrigin:b,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(v,h){if(typeof v=="string")if(h){var g=p(h.as,h.crossOrigin);o.d.m(v,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(v)},Bt.requestFormReset=function(v){o.d.r(v)},Bt.unstable_batchedUpdates=function(v,h){return v(h)},Bt.useFormState=function(v,h,g){return d.H.useFormState(v,h,g)},Bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Bt.version="19.2.8",Bt}var vy;function Rg(){if(vy)return Df.exports;vy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Df.exports=YS(),Df.exports}var hy;function QS(){if(hy)return Ei;hy=1;var n=GS(),l=Md(),i=Rg();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function 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 v(e){if(f(e)!==e)throw Error(o(188))}function h(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,r=t;;){var s=a.return;if(s===null)break;var c=s.alternate;if(c===null){if(r=s.return,r!==null){a=r;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===a)return v(s),e;if(c===r)return v(s),t;c=c.sibling}throw Error(o(188))}if(a.return!==r.return)a=s,r=c;else{for(var m=!1,y=s.child;y;){if(y===a){m=!0,a=s,r=c;break}if(y===r){m=!0,r=s,a=c;break}y=y.sibling}if(!m){for(y=c.child;y;){if(y===a){m=!0,a=c,r=s;break}if(y===r){m=!0,r=c,a=s;break}y=y.sibling}if(!m)throw Error(o(189))}}if(a.alternate!==r)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,C=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),U=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),De=Symbol.for("react.memo_cache_sentinel"),Ne=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=Ne&&e[Ne]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Symbol.for("react.client.reference");function ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case L:return"Profiler";case M:return"StrictMode";case D:return"Suspense";case I:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case U:return e.displayName||"Context";case A:return(e._context.displayName||"Context")+".Consumer";case N:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:ge(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var Ae=Array.isArray,q=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},ee=[],Me=-1;function T(e){return{current:e}}function F(e){0>Me||(e.current=ee[Me],ee[Me]=null,Me--)}function te(e,t){Me++,ee[Me]=e.current,e.current=t}var oe=T(null),ye=T(null),Ce=T(null),Ve=T(null);function We(e,t){switch(te(Ce,t),te(ye,e),te(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pp(t),e=yp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(oe),te(oe,e)}function Ze(){F(oe),F(ye),F(Ce)}function Kn(e){e.memoizedState!==null&&te(Ve,e);var t=oe.current,a=yp(t,e.type);t!==a&&(te(ye,e),te(oe,a))}function qn(e){ye.current===e&&(F(oe),F(ye)),Ve.current===e&&(F(Ve),pi._currentValue=fe)}var Jn,Pn;function yn(e){if(Jn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Jn=t&&t[1]||"",Pn=-1<a.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Jn+e+Pn}var Ea=!1;function Ar(e,t){if(!e||Ea)return"";Ea=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(k){var B=k}Reflect.construct(e,[],$)}else{try{$.call()}catch(k){B=k}e.call($.prototype)}}else{try{throw Error()}catch(k){B=k}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(k){if(k&&B&&typeof k.stack=="string")return[k.stack,B.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),m=c[0],y=c[1];if(m&&y){var O=m.split(`
|
|
4
|
-
`),j=y.split(`
|
|
5
|
-
`);for(s=r=0;r<O.length&&!O[r].includes("DetermineComponentFrameRoot");)r++;for(;s<j.length&&!j[s].includes("DetermineComponentFrameRoot");)s++;if(r===O.length||s===j.length)for(r=O.length-1,s=j.length-1;1<=r&&0<=s&&O[r]!==j[s];)s--;for(;1<=r&&0<=s;r--,s--)if(O[r]!==j[s]){if(r!==1||s!==1)do if(r--,s--,0>s||O[r]!==j[s]){var G=`
|
|
6
|
-
`+O[r].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=r&&0<=s);break}}}finally{Ea=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?yn(a):""}function Cr(e,t){switch(e.tag){case 26:case 27:case 5:return yn(e.type);case 16:return yn("Lazy");case 13:return e.child!==t&&t!==null?yn("Suspense Fallback"):yn("Suspense");case 19:return yn("SuspenseList");case 0:case 15:return Ar(e.type,!1);case 11:return Ar(e.type.render,!1);case 1:return Ar(e.type,!0);case 31:return yn("Activity");default:return""}}function Tr(e){try{var t="",a=null;do t+=Cr(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
|
|
7
|
-
Error generating stack: `+r.message+`
|
|
8
|
-
`+r.stack}}var Ja=Object.prototype.hasOwnProperty,Pa=n.unstable_scheduleCallback,xr=n.unstable_cancelCallback,ki=n.unstable_shouldYield,cs=n.unstable_requestPaint,jt=n.unstable_now,Fi=n.unstable_getCurrentPriorityLevel,Gi=n.unstable_ImmediatePriority,Yi=n.unstable_UserBlockingPriority,Mr=n.unstable_NormalPriority,Jd=n.unstable_LowPriority,Dr=n.unstable_IdlePriority,S=n.log,z=n.unstable_setDisableYieldValue,w=null,Z=null;function J(e){if(typeof S=="function"&&z(e),Z&&typeof Z.setStrictMode=="function")try{Z.setStrictMode(w,e)}catch{}}var ne=Math.clz32?Math.clz32:Ee,re=Math.log,ce=Math.LN2;function Ee(e){return e>>>=0,e===0?32:31-(re(e)/ce|0)|0}var Fe=256,ct=262144,It=4194304;function Dt(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 jn(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var s=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var y=r&134217727;return y!==0?(r=y&~c,r!==0?s=Dt(r):(m&=y,m!==0?s=Dt(m):a||(a=y&~e,a!==0&&(s=Dt(a))))):(y=r&~c,y!==0?s=Dt(y):m!==0?s=Dt(m):a||(a=r&~e,a!==0&&(s=Dt(a)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:s}function Wa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function el(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 Qi(){var e=It;return It<<=1,(It&62914560)===0&&(It=4194304),e}function xl(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Rr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function W0(e,t,a,r,s,c){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,O=e.expirationTimes,j=e.hiddenUpdates;for(a=m&~a;0<a;){var G=31-ne(a),$=1<<G;y[G]=0,O[G]=-1;var B=j[G];if(B!==null)for(j[G]=null,G=0;G<B.length;G++){var k=B[G];k!==null&&(k.lane&=-536870913)}a&=~$}r!==0&&Pd(e,r,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function Pd(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ne(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Wd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-ne(a),s=1<<r;s&t|e[r]&t&&(e[r]|=t),a&=~s}}function ev(e,t){var a=t&-t;return a=(a&42)!==0?1:fs(a),(a&(e.suspendedLanes|t))!==0?0:a}function fs(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 ds(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function tv(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Bp(e.type))}function nv(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var Oa=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Oa,Xt="__reactProps$"+Oa,Ml="__reactContainer$"+Oa,vs="__reactEvents$"+Oa,eb="__reactListeners$"+Oa,tb="__reactHandles$"+Oa,av="__reactResources$"+Oa,Nr="__reactMarker$"+Oa;function hs(e){delete e[Rt],delete e[Xt],delete e[vs],delete e[eb],delete e[tb]}function Dl(e){var t=e[Rt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ml]||a[Rt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ap(e);e!==null;){if(a=e[Rt])return a;e=Ap(e)}return t}e=a,a=e.parentNode}return null}function Rl(e){if(e=e[Rt]||e[Ml]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Nl(e){var t=e[av];return t||(t=e[av]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[Nr]=!0}var lv=new Set,rv={};function tl(e,t){Vl(e,t),Vl(e+"Capture",t)}function Vl(e,t){for(rv[e]=t,e=0;e<t.length;e++)lv.add(t[e])}var nb=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]*$"),iv={},uv={};function ab(e){return Ja.call(uv,e)?!0:Ja.call(iv,e)?!1:nb.test(e)?uv[e]=!0:(iv[e]=!0,!1)}function Ii(e,t,a){if(ab(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Xi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Wn(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function gn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ov(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lb(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ms(e){if(!e._valueTracker){var t=ov(e)?"checked":"value";e._valueTracker=lb(e,t,""+e[t])}}function sv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=ov(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function $i(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 rb=/[\n"\\]/g;function bn(e){return e.replace(rb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ps(e,t,a,r,s,c,m,y){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+gn(t)):e.value!==""+gn(t)&&(e.value=""+gn(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?ys(e,m,gn(t)):a!=null?ys(e,m,gn(a)):r!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+gn(y):e.removeAttribute("name")}function cv(e,t,a,r,s,c,m,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ms(e);return}a=a!=null?""+gn(a):"",t=t!=null?""+gn(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}r=r??s,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=y?e.checked:!!r,e.defaultChecked=!!r,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),ms(e)}function ys(e,t,a){t==="number"&&$i(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function zl(e,t,a,r){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&r&&(e[a].defaultSelected=!0)}else{for(a=""+gn(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function fv(e,t,a){if(t!=null&&(t=""+gn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+gn(a):""}function dv(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(o(92));if(Ae(r)){if(1<r.length)throw Error(o(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=gn(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),ms(e)}function wl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ib=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 vv(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||ib.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function hv(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var s in t)r=t[s],t.hasOwnProperty(s)&&a[s]!==r&&vv(e,s,r)}else for(var c in t)t.hasOwnProperty(c)&&vv(e,c,t[c])}function gs(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 ub=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"]]),ob=/^[\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 Zi(e){return ob.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ea(){}var bs=null;function Ss(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ll=null,Ul=null;function mv(e){var t=Rl(e);if(t&&(e=t.stateNode)){var a=e[Xt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ps(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+bn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var s=r[Xt]||null;if(!s)throw Error(o(90));ps(r,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&sv(r)}break e;case"textarea":fv(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&zl(e,!!a.multiple,t,!1)}}}var Es=!1;function pv(e,t,a){if(Es)return e(t,a);Es=!0;try{var r=e(t);return r}finally{if(Es=!1,(Ll!==null||Ul!==null)&&(Uu(),Ll&&(t=Ll,e=Ul,Ul=Ll=null,mv(t),e)))for(t=0;t<e.length;t++)mv(e[t])}}function zr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Xt]||null;if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var ta=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Os=!1;if(ta)try{var wr={};Object.defineProperty(wr,"passive",{get:function(){Os=!0}}),window.addEventListener("test",wr,wr),window.removeEventListener("test",wr,wr)}catch{Os=!1}var _a=null,_s=null,Ki=null;function yv(){if(Ki)return Ki;var e,t=_s,a=t.length,r,s="value"in _a?_a.value:_a.textContent,c=s.length;for(e=0;e<a&&t[e]===s[e];e++);var m=a-e;for(r=1;r<=m&&t[a-r]===s[c-r];r++);return Ki=s.slice(e,1<r?1-r:void 0)}function Ji(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 Pi(){return!0}function gv(){return!1}function $t(e){function t(a,r,s,c,m){this._reactName=a,this._targetInst=s,this.type=r,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Pi:gv,this.isPropagationStopped=gv,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Pi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Pi)},persist:function(){},isPersistent:Pi}),t}var nl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wi=$t(nl),Lr=b({},nl,{view:0,detail:0}),sb=$t(Lr),As,Cs,Ur,eu=b({},Lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xs,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!==Ur&&(Ur&&e.type==="mousemove"?(As=e.screenX-Ur.screenX,Cs=e.screenY-Ur.screenY):Cs=As=0,Ur=e),As)},movementY:function(e){return"movementY"in e?e.movementY:Cs}}),bv=$t(eu),cb=b({},eu,{dataTransfer:0}),fb=$t(cb),db=b({},Lr,{relatedTarget:0}),Ts=$t(db),vb=b({},nl,{animationName:0,elapsedTime:0,pseudoElement:0}),hb=$t(vb),mb=b({},nl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pb=$t(mb),yb=b({},nl,{data:0}),Sv=$t(yb),gb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bb={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"},Sb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Eb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sb[e])?!!t[e]:!1}function xs(){return Eb}var Ob=b({},Lr,{key:function(e){if(e.key){var t=gb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xs,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_b=$t(Ob),Ab=b({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ev=$t(Ab),Cb=b({},Lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xs}),Tb=$t(Cb),xb=b({},nl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mb=$t(xb),Db=b({},eu,{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}),Rb=$t(Db),Nb=b({},nl,{newState:0,oldState:0}),Vb=$t(Nb),zb=[9,13,27,32],Ms=ta&&"CompositionEvent"in window,Hr=null;ta&&"documentMode"in document&&(Hr=document.documentMode);var wb=ta&&"TextEvent"in window&&!Hr,Ov=ta&&(!Ms||Hr&&8<Hr&&11>=Hr),_v=" ",Av=!1;function Cv(e,t){switch(e){case"keyup":return zb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hl=!1;function Lb(e,t){switch(e){case"compositionend":return Tv(t);case"keypress":return t.which!==32?null:(Av=!0,_v);case"textInput":return e=t.data,e===_v&&Av?null:e;default:return null}}function Ub(e,t){if(Hl)return e==="compositionend"||!Ms&&Cv(e,t)?(e=yv(),Ki=_s=_a=null,Hl=!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 Ov&&t.locale!=="ko"?null:t.data;default:return null}}var Hb={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 xv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hb[e.type]:t==="textarea"}function Mv(e,t,a,r){Ll?Ul?Ul.push(r):Ul=[r]:Ll=r,t=Gu(t,"onChange"),0<t.length&&(a=new Wi("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var qr=null,jr=null;function qb(e){cp(e,0)}function tu(e){var t=Vr(e);if(sv(t))return e}function Dv(e,t){if(e==="change")return t}var Rv=!1;if(ta){var Ds;if(ta){var Rs="oninput"in document;if(!Rs){var Nv=document.createElement("div");Nv.setAttribute("oninput","return;"),Rs=typeof Nv.oninput=="function"}Ds=Rs}else Ds=!1;Rv=Ds&&(!document.documentMode||9<document.documentMode)}function Vv(){qr&&(qr.detachEvent("onpropertychange",zv),jr=qr=null)}function zv(e){if(e.propertyName==="value"&&tu(jr)){var t=[];Mv(t,jr,e,Ss(e)),pv(qb,t)}}function jb(e,t,a){e==="focusin"?(Vv(),qr=t,jr=a,qr.attachEvent("onpropertychange",zv)):e==="focusout"&&Vv()}function Bb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tu(jr)}function kb(e,t){if(e==="click")return tu(t)}function Fb(e,t){if(e==="input"||e==="change")return tu(t)}function Gb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rn=typeof Object.is=="function"?Object.is:Gb;function Br(e,t){if(rn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var s=a[r];if(!Ja.call(t,s)||!rn(e[s],t[s]))return!1}return!0}function wv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lv(e,t){var a=wv(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=wv(a)}}function Uv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=$i(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=$i(e.document)}return t}function Ns(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 Yb=ta&&"documentMode"in document&&11>=document.documentMode,ql=null,Vs=null,kr=null,zs=!1;function qv(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zs||ql==null||ql!==$i(r)||(r=ql,"selectionStart"in r&&Ns(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),kr&&Br(kr,r)||(kr=r,r=Gu(Vs,"onSelect"),0<r.length&&(t=new Wi("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=ql)))}function al(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var jl={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionrun:al("Transition","TransitionRun"),transitionstart:al("Transition","TransitionStart"),transitioncancel:al("Transition","TransitionCancel"),transitionend:al("Transition","TransitionEnd")},ws={},jv={};ta&&(jv=document.createElement("div").style,"AnimationEvent"in window||(delete jl.animationend.animation,delete jl.animationiteration.animation,delete jl.animationstart.animation),"TransitionEvent"in window||delete jl.transitionend.transition);function ll(e){if(ws[e])return ws[e];if(!jl[e])return e;var t=jl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in jv)return ws[e]=t[a];return e}var Bv=ll("animationend"),kv=ll("animationiteration"),Fv=ll("animationstart"),Qb=ll("transitionrun"),Ib=ll("transitionstart"),Xb=ll("transitioncancel"),Gv=ll("transitionend"),Yv=new Map,Ls="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(" ");Ls.push("scrollEnd");function Rn(e,t){Yv.set(e,t),tl(t,[e])}var nu=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)},Sn=[],Bl=0,Us=0;function au(){for(var e=Bl,t=Us=Bl=0;t<e;){var a=Sn[t];Sn[t++]=null;var r=Sn[t];Sn[t++]=null;var s=Sn[t];Sn[t++]=null;var c=Sn[t];if(Sn[t++]=null,r!==null&&s!==null){var m=r.pending;m===null?s.next=s:(s.next=m.next,m.next=s),r.pending=s}c!==0&&Qv(a,s,c)}}function lu(e,t,a,r){Sn[Bl++]=e,Sn[Bl++]=t,Sn[Bl++]=a,Sn[Bl++]=r,Us|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Hs(e,t,a,r){return lu(e,t,a,r),ru(e)}function rl(e,t){return lu(e,null,null,t),ru(e)}function Qv(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var s=!1,c=e.return;c!==null;)c.childLanes|=a,r=c.alternate,r!==null&&(r.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-ne(a),e=c.hiddenUpdates,r=e[s],r===null?e[s]=[t]:r.push(t),t.lane=a|536870912),c):null}function ru(e){if(50<si)throw si=0,Ic=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var kl={};function $b(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(e,t,a,r){return new $b(e,t,a,r)}function qs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function na(e,t){var a=e.alternate;return a===null?(a=un(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Iv(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function iu(e,t,a,r,s,c){var m=0;if(r=e,typeof e=="function")qs(e)&&(m=1);else if(typeof e=="string")m=W1(e,a,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=un(31,a,t,s),e.elementType=pe,e.lanes=c,e;case _:return il(a.children,s,c,t);case M:m=8,s|=24;break;case L:return e=un(12,a,t,s|2),e.elementType=L,e.lanes=c,e;case D:return e=un(13,a,t,s),e.elementType=D,e.lanes=c,e;case I:return e=un(19,a,t,s),e.elementType=I,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:m=10;break e;case A:m=9;break e;case N:m=11;break e;case Q:m=14;break e;case ae:m=16,r=null;break e}m=29,a=Error(o(130,e===null?"null":typeof e,"")),r=null}return t=un(m,a,t,s),t.elementType=e,t.type=r,t.lanes=c,t}function il(e,t,a,r){return e=un(7,e,r,t),e.lanes=a,e}function js(e,t,a){return e=un(6,e,null,t),e.lanes=a,e}function Xv(e){var t=un(18,null,null,0);return t.stateNode=e,t}function Bs(e,t,a){return t=un(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $v=new WeakMap;function En(e,t){if(typeof e=="object"&&e!==null){var a=$v.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Tr(t)},$v.set(e,t),t)}return{value:e,source:t,stack:Tr(t)}}var Fl=[],Gl=0,uu=null,Fr=0,On=[],_n=0,Aa=null,Bn=1,kn="";function aa(e,t){Fl[Gl++]=Fr,Fl[Gl++]=uu,uu=e,Fr=t}function Zv(e,t,a){On[_n++]=Bn,On[_n++]=kn,On[_n++]=Aa,Aa=e;var r=Bn;e=kn;var s=32-ne(r)-1;r&=~(1<<s),a+=1;var c=32-ne(t)+s;if(30<c){var m=s-s%5;c=(r&(1<<m)-1).toString(32),r>>=m,s-=m,Bn=1<<32-ne(t)+s|a<<s|r,kn=c+e}else Bn=1<<c|a<<s|r,kn=e}function ks(e){e.return!==null&&(aa(e,1),Zv(e,1,0))}function Fs(e){for(;e===uu;)uu=Fl[--Gl],Fl[Gl]=null,Fr=Fl[--Gl],Fl[Gl]=null;for(;e===Aa;)Aa=On[--_n],On[_n]=null,kn=On[--_n],On[_n]=null,Bn=On[--_n],On[_n]=null}function Kv(e,t){On[_n++]=Bn,On[_n++]=kn,On[_n++]=Aa,Bn=t.id,kn=t.overflow,Aa=e}var Nt=null,it=null,je=!1,Ca=null,An=!1,Gs=Error(o(519));function Ta(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gr(En(t,e)),Gs}function Jv(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[Rt]=e,t[Xt]=r,a){case"dialog":Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":case"embed":Ue("load",t);break;case"video":case"audio":for(a=0;a<fi.length;a++)Ue(fi[a],t);break;case"source":Ue("error",t);break;case"img":case"image":case"link":Ue("error",t),Ue("load",t);break;case"details":Ue("toggle",t);break;case"input":Ue("invalid",t),cv(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ue("invalid",t);break;case"textarea":Ue("invalid",t),dv(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||hp(t.textContent,a)?(r.popover!=null&&(Ue("beforetoggle",t),Ue("toggle",t)),r.onScroll!=null&&Ue("scroll",t),r.onScrollEnd!=null&&Ue("scrollend",t),r.onClick!=null&&(t.onclick=ea),t=!0):t=!1,t||Ta(e,!0)}function Pv(e){for(Nt=e.return;Nt;)switch(Nt.tag){case 5:case 31:case 13:An=!1;return;case 27:case 3:An=!0;return;default:Nt=Nt.return}}function Yl(e){if(e!==Nt)return!1;if(!je)return Pv(e),je=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||of(e.type,e.memoizedProps)),a=!a),a&&it&&Ta(e),Pv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));it=_p(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));it=_p(e)}else t===27?(t=it,Ba(e.type)?(e=vf,vf=null,it=e):it=t):it=Nt?Tn(e.stateNode.nextSibling):null;return!0}function ul(){it=Nt=null,je=!1}function Ys(){var e=Ca;return e!==null&&(Pt===null?Pt=e:Pt.push.apply(Pt,e),Ca=null),e}function Gr(e){Ca===null?Ca=[e]:Ca.push(e)}var Qs=T(null),ol=null,la=null;function xa(e,t,a){te(Qs,t._currentValue),t._currentValue=a}function ra(e){e._currentValue=Qs.current,F(Qs)}function Is(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Xs(e,t,a,r){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var m=s.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=s;for(var O=0;O<t.length;O++)if(y.context===t[O]){c.lanes|=a,y=c.alternate,y!==null&&(y.lanes|=a),Is(c.return,a,e),r||(m=null);break e}c=y.next}}else if(s.tag===18){if(m=s.return,m===null)throw Error(o(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),Is(m,a,e),m=null}else m=s.child;if(m!==null)m.return=s;else for(m=s;m!==null;){if(m===e){m=null;break}if(s=m.sibling,s!==null){s.return=m.return,m=s;break}m=m.return}s=m}}function Ql(e,t,a,r){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var m=s.alternate;if(m===null)throw Error(o(387));if(m=m.memoizedProps,m!==null){var y=s.type;rn(s.pendingProps.value,m.value)||(e!==null?e.push(y):e=[y])}}else if(s===Ve.current){if(m=s.alternate,m===null)throw Error(o(387));m.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(pi):e=[pi])}s=s.return}e!==null&&Xs(t,e,a,r),t.flags|=262144}function ou(e){for(e=e.firstContext;e!==null;){if(!rn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function sl(e){ol=e,la=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Vt(e){return Wv(ol,e)}function su(e,t){return ol===null&&sl(e),Wv(e,t)}function Wv(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},la===null){if(e===null)throw Error(o(308));la=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else la=la.next=t;return a}var Zb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Kb=n.unstable_scheduleCallback,Jb=n.unstable_NormalPriority,St={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $s(){return{controller:new Zb,data:new Map,refCount:0}}function Yr(e){e.refCount--,e.refCount===0&&Kb(Jb,function(){e.controller.abort()})}var Qr=null,Zs=0,Il=0,Xl=null;function Pb(e,t){if(Qr===null){var a=Qr=[];Zs=0,Il=Pc(),Xl={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Zs++,t.then(eh,eh),t}function eh(){if(--Zs===0&&Qr!==null){Xl!==null&&(Xl.status="fulfilled");var e=Qr;Qr=null,Il=0,Xl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Wb(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(r.status="rejected",r.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),r}var th=q.S;q.S=function(e,t){qm=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Pb(e,t),th!==null&&th(e,t)};var cl=T(null);function Ks(){var e=cl.current;return e!==null?e:at.pooledCache}function cu(e,t){t===null?te(cl,cl.current):te(cl,t.pool)}function nh(){var e=Ks();return e===null?null:{parent:St._currentValue,pool:e}}var $l=Error(o(460)),Js=Error(o(474)),fu=Error(o(542)),du={then:function(){}};function ah(e){return e=e.status,e==="fulfilled"||e==="rejected"}function lh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ea,ea),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ih(e),e;default:if(typeof t.status=="string")t.then(ea,ea);else{if(e=at,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=r}},function(r){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ih(e),e}throw dl=t,$l}}function fl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(dl=a,$l):a}}var dl=null;function rh(){if(dl===null)throw Error(o(459));var e=dl;return dl=null,e}function ih(e){if(e===$l||e===fu)throw Error(o(483))}var Zl=null,Ir=0;function vu(e){var t=Ir;return Ir+=1,Zl===null&&(Zl=[]),lh(Zl,e,t)}function Xr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hu(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function uh(e){function t(V,R){if(e){var H=V.deletions;H===null?(V.deletions=[R],V.flags|=16):H.push(R)}}function a(V,R){if(!e)return null;for(;R!==null;)t(V,R),R=R.sibling;return null}function r(V){for(var R=new Map;V!==null;)V.key!==null?R.set(V.key,V):R.set(V.index,V),V=V.sibling;return R}function s(V,R){return V=na(V,R),V.index=0,V.sibling=null,V}function c(V,R,H){return V.index=H,e?(H=V.alternate,H!==null?(H=H.index,H<R?(V.flags|=67108866,R):H):(V.flags|=67108866,R)):(V.flags|=1048576,R)}function m(V){return e&&V.alternate===null&&(V.flags|=67108866),V}function y(V,R,H,X){return R===null||R.tag!==6?(R=js(H,V.mode,X),R.return=V,R):(R=s(R,H),R.return=V,R)}function O(V,R,H,X){var be=H.type;return be===_?G(V,R,H.props.children,X,H.key):R!==null&&(R.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===ae&&fl(be)===R.type)?(R=s(R,H.props),Xr(R,H),R.return=V,R):(R=iu(H.type,H.key,H.props,null,V.mode,X),Xr(R,H),R.return=V,R)}function j(V,R,H,X){return R===null||R.tag!==4||R.stateNode.containerInfo!==H.containerInfo||R.stateNode.implementation!==H.implementation?(R=Bs(H,V.mode,X),R.return=V,R):(R=s(R,H.children||[]),R.return=V,R)}function G(V,R,H,X,be){return R===null||R.tag!==7?(R=il(H,V.mode,X,be),R.return=V,R):(R=s(R,H),R.return=V,R)}function $(V,R,H){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=js(""+R,V.mode,H),R.return=V,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case x:return H=iu(R.type,R.key,R.props,null,V.mode,H),Xr(H,R),H.return=V,H;case E:return R=Bs(R,V.mode,H),R.return=V,R;case ae:return R=fl(R),$(V,R,H)}if(Ae(R)||ie(R))return R=il(R,V.mode,H,null),R.return=V,R;if(typeof R.then=="function")return $(V,vu(R),H);if(R.$$typeof===U)return $(V,su(V,R),H);hu(V,R)}return null}function B(V,R,H,X){var be=R!==null?R.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return be!==null?null:y(V,R,""+H,X);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return H.key===be?O(V,R,H,X):null;case E:return H.key===be?j(V,R,H,X):null;case ae:return H=fl(H),B(V,R,H,X)}if(Ae(H)||ie(H))return be!==null?null:G(V,R,H,X,null);if(typeof H.then=="function")return B(V,R,vu(H),X);if(H.$$typeof===U)return B(V,R,su(V,H),X);hu(V,H)}return null}function k(V,R,H,X,be){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return V=V.get(H)||null,y(R,V,""+X,be);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case x:return V=V.get(X.key===null?H:X.key)||null,O(R,V,X,be);case E:return V=V.get(X.key===null?H:X.key)||null,j(R,V,X,be);case ae:return X=fl(X),k(V,R,H,X,be)}if(Ae(X)||ie(X))return V=V.get(H)||null,G(R,V,X,be,null);if(typeof X.then=="function")return k(V,R,H,vu(X),be);if(X.$$typeof===U)return k(V,R,H,su(R,X),be);hu(R,X)}return null}function de(V,R,H,X){for(var be=null,Ge=null,me=R,we=R=0,qe=null;me!==null&&we<H.length;we++){me.index>we?(qe=me,me=null):qe=me.sibling;var Ye=B(V,me,H[we],X);if(Ye===null){me===null&&(me=qe);break}e&&me&&Ye.alternate===null&&t(V,me),R=c(Ye,R,we),Ge===null?be=Ye:Ge.sibling=Ye,Ge=Ye,me=qe}if(we===H.length)return a(V,me),je&&aa(V,we),be;if(me===null){for(;we<H.length;we++)me=$(V,H[we],X),me!==null&&(R=c(me,R,we),Ge===null?be=me:Ge.sibling=me,Ge=me);return je&&aa(V,we),be}for(me=r(me);we<H.length;we++)qe=k(me,V,we,H[we],X),qe!==null&&(e&&qe.alternate!==null&&me.delete(qe.key===null?we:qe.key),R=c(qe,R,we),Ge===null?be=qe:Ge.sibling=qe,Ge=qe);return e&&me.forEach(function(Qa){return t(V,Qa)}),je&&aa(V,we),be}function Te(V,R,H,X){if(H==null)throw Error(o(151));for(var be=null,Ge=null,me=R,we=R=0,qe=null,Ye=H.next();me!==null&&!Ye.done;we++,Ye=H.next()){me.index>we?(qe=me,me=null):qe=me.sibling;var Qa=B(V,me,Ye.value,X);if(Qa===null){me===null&&(me=qe);break}e&&me&&Qa.alternate===null&&t(V,me),R=c(Qa,R,we),Ge===null?be=Qa:Ge.sibling=Qa,Ge=Qa,me=qe}if(Ye.done)return a(V,me),je&&aa(V,we),be;if(me===null){for(;!Ye.done;we++,Ye=H.next())Ye=$(V,Ye.value,X),Ye!==null&&(R=c(Ye,R,we),Ge===null?be=Ye:Ge.sibling=Ye,Ge=Ye);return je&&aa(V,we),be}for(me=r(me);!Ye.done;we++,Ye=H.next())Ye=k(me,V,we,Ye.value,X),Ye!==null&&(e&&Ye.alternate!==null&&me.delete(Ye.key===null?we:Ye.key),R=c(Ye,R,we),Ge===null?be=Ye:Ge.sibling=Ye,Ge=Ye);return e&&me.forEach(function(cS){return t(V,cS)}),je&&aa(V,we),be}function nt(V,R,H,X){if(typeof H=="object"&&H!==null&&H.type===_&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case x:e:{for(var be=H.key;R!==null;){if(R.key===be){if(be=H.type,be===_){if(R.tag===7){a(V,R.sibling),X=s(R,H.props.children),X.return=V,V=X;break e}}else if(R.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===ae&&fl(be)===R.type){a(V,R.sibling),X=s(R,H.props),Xr(X,H),X.return=V,V=X;break e}a(V,R);break}else t(V,R);R=R.sibling}H.type===_?(X=il(H.props.children,V.mode,X,H.key),X.return=V,V=X):(X=iu(H.type,H.key,H.props,null,V.mode,X),Xr(X,H),X.return=V,V=X)}return m(V);case E:e:{for(be=H.key;R!==null;){if(R.key===be)if(R.tag===4&&R.stateNode.containerInfo===H.containerInfo&&R.stateNode.implementation===H.implementation){a(V,R.sibling),X=s(R,H.children||[]),X.return=V,V=X;break e}else{a(V,R);break}else t(V,R);R=R.sibling}X=Bs(H,V.mode,X),X.return=V,V=X}return m(V);case ae:return H=fl(H),nt(V,R,H,X)}if(Ae(H))return de(V,R,H,X);if(ie(H)){if(be=ie(H),typeof be!="function")throw Error(o(150));return H=be.call(H),Te(V,R,H,X)}if(typeof H.then=="function")return nt(V,R,vu(H),X);if(H.$$typeof===U)return nt(V,R,su(V,H),X);hu(V,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,R!==null&&R.tag===6?(a(V,R.sibling),X=s(R,H),X.return=V,V=X):(a(V,R),X=js(H,V.mode,X),X.return=V,V=X),m(V)):a(V,R)}return function(V,R,H,X){try{Ir=0;var be=nt(V,R,H,X);return Zl=null,be}catch(me){if(me===$l||me===fu)throw me;var Ge=un(29,me,null,V.mode);return Ge.lanes=X,Ge.return=V,Ge}}}var vl=uh(!0),oh=uh(!1),Ma=!1;function Ps(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ws(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 Da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Qe&2)!==0){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,t=ru(e),Qv(e,null,a),t}return lu(e,r,t,a),ru(e)}function $r(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Wd(e,a)}}function ec(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var s=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?s=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?s=c=t:c=c.next=t}else s=c=t;a={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var tc=!1;function Zr(){if(tc){var e=Xl;if(e!==null)throw e}}function Kr(e,t,a,r){tc=!1;var s=e.updateQueue;Ma=!1;var c=s.firstBaseUpdate,m=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var O=y,j=O.next;O.next=null,m===null?c=j:m.next=j,m=O;var G=e.alternate;G!==null&&(G=G.updateQueue,y=G.lastBaseUpdate,y!==m&&(y===null?G.firstBaseUpdate=j:y.next=j,G.lastBaseUpdate=O))}if(c!==null){var $=s.baseState;m=0,G=j=O=null,y=c;do{var B=y.lane&-536870913,k=B!==y.lane;if(k?(He&B)===B:(r&B)===B){B!==0&&B===Il&&(tc=!0),G!==null&&(G=G.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var de=e,Te=y;B=t;var nt=a;switch(Te.tag){case 1:if(de=Te.payload,typeof de=="function"){$=de.call(nt,$,B);break e}$=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=Te.payload,B=typeof de=="function"?de.call(nt,$,B):de,B==null)break e;$=b({},$,B);break e;case 2:Ma=!0}}B=y.callback,B!==null&&(e.flags|=64,k&&(e.flags|=8192),k=s.callbacks,k===null?s.callbacks=[B]:k.push(B))}else k={lane:B,tag:y.tag,payload:y.payload,callback:y.callback,next:null},G===null?(j=G=k,O=$):G=G.next=k,m|=B;if(y=y.next,y===null){if(y=s.shared.pending,y===null)break;k=y,y=k.next,k.next=null,s.lastBaseUpdate=k,s.shared.pending=null}}while(!0);G===null&&(O=$),s.baseState=O,s.firstBaseUpdate=j,s.lastBaseUpdate=G,c===null&&(s.shared.lanes=0),La|=m,e.lanes=m,e.memoizedState=$}}function sh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ch(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)sh(a[e],t)}var Kl=T(null),mu=T(0);function fh(e,t){e=ha,te(mu,e),te(Kl,t),ha=e|t.baseLanes}function nc(){te(mu,ha),te(Kl,Kl.current)}function ac(){ha=mu.current,F(Kl),F(mu)}var on=T(null),Cn=null;function Na(e){var t=e.alternate;te(yt,yt.current&1),te(on,e),Cn===null&&(t===null||Kl.current!==null||t.memoizedState!==null)&&(Cn=e)}function lc(e){te(yt,yt.current),te(on,e),Cn===null&&(Cn=e)}function dh(e){e.tag===22?(te(yt,yt.current),te(on,e),Cn===null&&(Cn=e)):Va()}function Va(){te(yt,yt.current),te(on,on.current)}function sn(e){F(on),Cn===e&&(Cn=null),F(yt)}var yt=T(0);function pu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ff(a)||df(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ia=0,ze=null,et=null,Et=null,yu=!1,Jl=!1,hl=!1,gu=0,Jr=0,Pl=null,e1=0;function vt(){throw Error(o(321))}function rc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!rn(e[a],t[a]))return!1;return!0}function ic(e,t,a,r,s,c){return ia=c,ze=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e===null||e.memoizedState===null?Zh:Ec,hl=!1,c=a(r,s),hl=!1,Jl&&(c=hh(t,a,r,s)),vh(e),c}function vh(e){q.H=ei;var t=et!==null&&et.next!==null;if(ia=0,Et=et=ze=null,yu=!1,Jr=0,Pl=null,t)throw Error(o(300));e===null||Ot||(e=e.dependencies,e!==null&&ou(e)&&(Ot=!0))}function hh(e,t,a,r){ze=e;var s=0;do{if(Jl&&(Pl=null),Jr=0,Jl=!1,25<=s)throw Error(o(301));if(s+=1,Et=et=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}q.H=Kh,c=t(a,r)}while(Jl);return c}function t1(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?Pr(t):t,e=e.useState()[0],(et!==null?et.memoizedState:null)!==e&&(ze.flags|=1024),t}function uc(){var e=gu!==0;return gu=0,e}function oc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function sc(e){if(yu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yu=!1}ia=0,Et=et=ze=null,Jl=!1,Jr=gu=0,Pl=null}function Gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?ze.memoizedState=Et=e:Et=Et.next=e,Et}function gt(){if(et===null){var e=ze.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=Et===null?ze.memoizedState:Et.next;if(t!==null)Et=t,et=e;else{if(e===null)throw ze.alternate===null?Error(o(467)):Error(o(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},Et===null?ze.memoizedState=Et=e:Et=Et.next=e}return Et}function bu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pr(e){var t=Jr;return Jr+=1,Pl===null&&(Pl=[]),e=lh(Pl,e,t),t=ze,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?Zh:Ec),e}function Su(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Pr(e);if(e.$$typeof===U)return Vt(e)}throw Error(o(438,String(e)))}function cc(e){var t=null,a=ze.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=ze.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=bu(),ze.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=De;return t.index++,a}function ua(e,t){return typeof t=="function"?t(e):t}function Eu(e){var t=gt();return fc(t,et,e)}function fc(e,t,a){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=a;var s=e.baseQueue,c=r.pending;if(c!==null){if(s!==null){var m=s.next;s.next=c.next,c.next=m}t.baseQueue=s=c,r.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var y=m=null,O=null,j=t,G=!1;do{var $=j.lane&-536870913;if($!==j.lane?(He&$)===$:(ia&$)===$){var B=j.revertLane;if(B===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),$===Il&&(G=!0);else if((ia&B)===B){j=j.next,B===Il&&(G=!0);continue}else $={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},O===null?(y=O=$,m=c):O=O.next=$,ze.lanes|=B,La|=B;$=j.action,hl&&a(c,$),c=j.hasEagerState?j.eagerState:a(c,$)}else B={lane:$,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},O===null?(y=O=B,m=c):O=O.next=B,ze.lanes|=$,La|=$;j=j.next}while(j!==null&&j!==t);if(O===null?m=c:O.next=y,!rn(c,e.memoizedState)&&(Ot=!0,G&&(a=Xl,a!==null)))throw a;e.memoizedState=c,e.baseState=m,e.baseQueue=O,r.lastRenderedState=c}return s===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function dc(e){var t=gt(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var r=a.dispatch,s=a.pending,c=t.memoizedState;if(s!==null){a.pending=null;var m=s=s.next;do c=e(c,m.action),m=m.next;while(m!==s);rn(c,t.memoizedState)||(Ot=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,r]}function mh(e,t,a){var r=ze,s=gt(),c=je;if(c){if(a===void 0)throw Error(o(407));a=a()}else a=t();var m=!rn((et||s).memoizedState,a);if(m&&(s.memoizedState=a,Ot=!0),s=s.queue,mc(gh.bind(null,r,s,e),[e]),s.getSnapshot!==t||m||Et!==null&&Et.memoizedState.tag&1){if(r.flags|=2048,Wl(9,{destroy:void 0},yh.bind(null,r,s,a,t),null),at===null)throw Error(o(349));c||(ia&127)!==0||ph(r,t,a)}return a}function ph(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ze.updateQueue,t===null?(t=bu(),ze.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function yh(e,t,a,r){t.value=a,t.getSnapshot=r,bh(t)&&Sh(e)}function gh(e,t,a){return a(function(){bh(t)&&Sh(e)})}function bh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!rn(e,a)}catch{return!0}}function Sh(e){var t=rl(e,2);t!==null&&Wt(t,e,2)}function vc(e){var t=Gt();if(typeof e=="function"){var a=e;if(e=a(),hl){J(!0);try{a()}finally{J(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e},t}function Eh(e,t,a,r){return e.baseState=a,fc(e,et,typeof r=="function"?r:ua)}function n1(e,t,a,r,s){if(Au(e))throw Error(o(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};q.T!==null?a(!0):c.isTransition=!1,r(c),a=t.pending,a===null?(c.next=t.pending=c,Oh(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Oh(e,t){var a=t.action,r=t.payload,s=e.state;if(t.isTransition){var c=q.T,m={};q.T=m;try{var y=a(s,r),O=q.S;O!==null&&O(m,y),_h(e,t,y)}catch(j){hc(e,t,j)}finally{c!==null&&m.types!==null&&(c.types=m.types),q.T=c}}else try{c=a(s,r),_h(e,t,c)}catch(j){hc(e,t,j)}}function _h(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){Ah(e,t,r)},function(r){return hc(e,t,r)}):Ah(e,t,a)}function Ah(e,t,a){t.status="fulfilled",t.value=a,Ch(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Oh(e,a)))}function hc(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,Ch(t),t=t.next;while(t!==r)}e.action=null}function Ch(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Th(e,t){return t}function xh(e,t){if(je){var a=at.formState;if(a!==null){e:{var r=ze;if(je){if(it){t:{for(var s=it,c=An;s.nodeType!==8;){if(!c){s=null;break t}if(s=Tn(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){it=Tn(s.nextSibling),r=s.data==="F!";break e}}Ta(r)}r=!1}r&&(t=a[0])}}return a=Gt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Th,lastRenderedState:t},a.queue=r,a=Ih.bind(null,ze,r),r.dispatch=a,r=vc(!1),c=Sc.bind(null,ze,!1,r.queue),r=Gt(),s={state:t,dispatch:null,action:e,pending:null},r.queue=s,a=n1.bind(null,ze,s,c,a),s.dispatch=a,r.memoizedState=e,[t,a,!1]}function Mh(e){var t=gt();return Dh(t,et,e)}function Dh(e,t,a){if(t=fc(e,t,Th)[0],e=Eu(ua)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Pr(t)}catch(m){throw m===$l?fu:m}else r=t;t=gt();var s=t.queue,c=s.dispatch;return a!==t.memoizedState&&(ze.flags|=2048,Wl(9,{destroy:void 0},a1.bind(null,s,a),null)),[r,c,e]}function a1(e,t){e.action=t}function Rh(e){var t=gt(),a=et;if(a!==null)return Dh(t,a,e);gt(),t=t.memoizedState,a=gt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function Wl(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=ze.updateQueue,t===null&&(t=bu(),ze.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function Nh(){return gt().memoizedState}function Ou(e,t,a,r){var s=Gt();ze.flags|=e,s.memoizedState=Wl(1|t,{destroy:void 0},a,r===void 0?null:r)}function _u(e,t,a,r){var s=gt();r=r===void 0?null:r;var c=s.memoizedState.inst;et!==null&&r!==null&&rc(r,et.memoizedState.deps)?s.memoizedState=Wl(t,c,a,r):(ze.flags|=e,s.memoizedState=Wl(1|t,c,a,r))}function Vh(e,t){Ou(8390656,8,e,t)}function mc(e,t){_u(2048,8,e,t)}function l1(e){ze.flags|=4;var t=ze.updateQueue;if(t===null)t=bu(),ze.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function zh(e){var t=gt().memoizedState;return l1({ref:t,nextImpl:e}),function(){if((Qe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function wh(e,t){return _u(4,2,e,t)}function Lh(e,t){return _u(4,4,e,t)}function Uh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Hh(e,t,a){a=a!=null?a.concat([e]):null,_u(4,4,Uh.bind(null,t,e),a)}function pc(){}function qh(e,t){var a=gt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&rc(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function jh(e,t){var a=gt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&rc(t,r[1]))return r[0];if(r=e(),hl){J(!0);try{e()}finally{J(!1)}}return a.memoizedState=[r,t],r}function yc(e,t,a){return a===void 0||(ia&1073741824)!==0&&(He&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Bm(),ze.lanes|=e,La|=e,a)}function Bh(e,t,a,r){return rn(a,t)?a:Kl.current!==null?(e=yc(e,a,r),rn(e,t)||(Ot=!0),e):(ia&42)===0||(ia&1073741824)!==0&&(He&261930)===0?(Ot=!0,e.memoizedState=a):(e=Bm(),ze.lanes|=e,La|=e,t)}function kh(e,t,a,r,s){var c=K.p;K.p=c!==0&&8>c?c:8;var m=q.T,y={};q.T=y,Sc(e,!1,t,a);try{var O=s(),j=q.S;if(j!==null&&j(y,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var G=Wb(O,r);Wr(e,t,G,dn(e))}else Wr(e,t,r,dn(e))}catch($){Wr(e,t,{then:function(){},status:"rejected",reason:$},dn())}finally{K.p=c,m!==null&&y.types!==null&&(m.types=y.types),q.T=m}}function r1(){}function gc(e,t,a,r){if(e.tag!==5)throw Error(o(476));var s=Fh(e).queue;kh(e,s,t,fe,a===null?r1:function(){return Gh(e),a(r)})}function Fh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:fe},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Gh(e){var t=Fh(e);t.next===null&&(t=e.alternate.memoizedState),Wr(e,t.next.queue,{},dn())}function bc(){return Vt(pi)}function Yh(){return gt().memoizedState}function Qh(){return gt().memoizedState}function i1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=dn();e=Da(a);var r=Ra(t,e,a);r!==null&&(Wt(r,t,a),$r(r,t,a)),t={cache:$s()},e.payload=t;return}t=t.return}}function u1(e,t,a){var r=dn();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Au(e)?Xh(t,a):(a=Hs(e,t,a,r),a!==null&&(Wt(a,e,r),$h(a,t,r)))}function Ih(e,t,a){var r=dn();Wr(e,t,a,r)}function Wr(e,t,a,r){var s={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Au(e))Xh(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,y=c(m,a);if(s.hasEagerState=!0,s.eagerState=y,rn(y,m))return lu(e,t,s,0),at===null&&au(),!1}catch{}if(a=Hs(e,t,s,r),a!==null)return Wt(a,e,r),$h(a,t,r),!0}return!1}function Sc(e,t,a,r){if(r={lane:2,revertLane:Pc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Au(e)){if(t)throw Error(o(479))}else t=Hs(e,a,r,2),t!==null&&Wt(t,e,2)}function Au(e){var t=e.alternate;return e===ze||t!==null&&t===ze}function Xh(e,t){Jl=yu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function $h(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Wd(e,a)}}var ei={readContext:Vt,use:Su,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};ei.useEffectEvent=vt;var Zh={readContext:Vt,use:Su,useCallback:function(e,t){return Gt().memoizedState=[e,t===void 0?null:t],e},useContext:Vt,useEffect:Vh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ou(4194308,4,Uh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ou(4194308,4,e,t)},useInsertionEffect:function(e,t){Ou(4,2,e,t)},useMemo:function(e,t){var a=Gt();t=t===void 0?null:t;var r=e();if(hl){J(!0);try{e()}finally{J(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Gt();if(a!==void 0){var s=a(t);if(hl){J(!0);try{a(t)}finally{J(!1)}}}else s=t;return r.memoizedState=r.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},r.queue=e,e=e.dispatch=u1.bind(null,ze,e),[r.memoizedState,e]},useRef:function(e){var t=Gt();return e={current:e},t.memoizedState=e},useState:function(e){e=vc(e);var t=e.queue,a=Ih.bind(null,ze,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:pc,useDeferredValue:function(e,t){var a=Gt();return yc(a,e,t)},useTransition:function(){var e=vc(!1);return e=kh.bind(null,ze,e.queue,!0,!1),Gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=ze,s=Gt();if(je){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),at===null)throw Error(o(349));(He&127)!==0||ph(r,t,a)}s.memoizedState=a;var c={value:a,getSnapshot:t};return s.queue=c,Vh(gh.bind(null,r,c,e),[e]),r.flags|=2048,Wl(9,{destroy:void 0},yh.bind(null,r,c,a,t),null),a},useId:function(){var e=Gt(),t=at.identifierPrefix;if(je){var a=kn,r=Bn;a=(r&~(1<<32-ne(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=gu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=e1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bc,useFormState:xh,useActionState:xh,useOptimistic:function(e){var t=Gt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Sc.bind(null,ze,!0,a),a.dispatch=t,[e,t]},useMemoCache:cc,useCacheRefresh:function(){return Gt().memoizedState=i1.bind(null,ze)},useEffectEvent:function(e){var t=Gt(),a={impl:e};return t.memoizedState=a,function(){if((Qe&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Ec={readContext:Vt,use:Su,useCallback:qh,useContext:Vt,useEffect:mc,useImperativeHandle:Hh,useInsertionEffect:wh,useLayoutEffect:Lh,useMemo:jh,useReducer:Eu,useRef:Nh,useState:function(){return Eu(ua)},useDebugValue:pc,useDeferredValue:function(e,t){var a=gt();return Bh(a,et.memoizedState,e,t)},useTransition:function(){var e=Eu(ua)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Pr(e),t]},useSyncExternalStore:mh,useId:Yh,useHostTransitionStatus:bc,useFormState:Mh,useActionState:Mh,useOptimistic:function(e,t){var a=gt();return Eh(a,et,e,t)},useMemoCache:cc,useCacheRefresh:Qh};Ec.useEffectEvent=zh;var Kh={readContext:Vt,use:Su,useCallback:qh,useContext:Vt,useEffect:mc,useImperativeHandle:Hh,useInsertionEffect:wh,useLayoutEffect:Lh,useMemo:jh,useReducer:dc,useRef:Nh,useState:function(){return dc(ua)},useDebugValue:pc,useDeferredValue:function(e,t){var a=gt();return et===null?yc(a,e,t):Bh(a,et.memoizedState,e,t)},useTransition:function(){var e=dc(ua)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Pr(e),t]},useSyncExternalStore:mh,useId:Yh,useHostTransitionStatus:bc,useFormState:Rh,useActionState:Rh,useOptimistic:function(e,t){var a=gt();return et!==null?Eh(a,et,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:cc,useCacheRefresh:Qh};Kh.useEffectEvent=zh;function Oc(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var _c={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=dn(),s=Da(r);s.payload=t,a!=null&&(s.callback=a),t=Ra(e,s,r),t!==null&&(Wt(t,e,r),$r(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=dn(),s=Da(r);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Ra(e,s,r),t!==null&&(Wt(t,e,r),$r(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=dn(),r=Da(a);r.tag=2,t!=null&&(r.callback=t),t=Ra(e,r,a),t!==null&&(Wt(t,e,a),$r(t,e,a))}};function Jh(e,t,a,r,s,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,c,m):t.prototype&&t.prototype.isPureReactComponent?!Br(a,r)||!Br(s,c):!0}function Ph(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function ml(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function Wh(e){nu(e)}function em(e){console.error(e)}function tm(e){nu(e)}function Cu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function nm(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Ac(e,t,a){return a=Da(a),a.tag=3,a.payload={element:null},a.callback=function(){Cu(e,t)},a}function am(e){return e=Da(e),e.tag=3,e}function lm(e,t,a,r){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var c=r.value;e.payload=function(){return s(c)},e.callback=function(){nm(t,a,r)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){nm(t,a,r),typeof s!="function"&&(Ua===null?Ua=new Set([this]):Ua.add(this));var y=r.stack;this.componentDidCatch(r.value,{componentStack:y!==null?y:""})})}function o1(e,t,a,r,s){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&Ql(t,a,s,!0),a=on.current,a!==null){switch(a.tag){case 31:case 13:return Cn===null?Hu():a.alternate===null&&ht===0&&(ht=3),a.flags&=-257,a.flags|=65536,a.lanes=s,r===du?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Zc(e,r,s)),!1;case 22:return a.flags|=65536,r===du?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Zc(e,r,s)),!1}throw Error(o(435,a.tag))}return Zc(e,r,s),Hu(),!1}if(je)return t=on.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,r!==Gs&&(e=Error(o(422),{cause:r}),Gr(En(e,a)))):(r!==Gs&&(t=Error(o(423),{cause:r}),Gr(En(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,r=En(r,a),s=Ac(e.stateNode,r,s),ec(e,s),ht!==4&&(ht=2)),!1;var c=Error(o(520),{cause:r});if(c=En(c,a),oi===null?oi=[c]:oi.push(c),ht!==4&&(ht=2),t===null)return!0;r=En(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Ac(a.stateNode,r,e),ec(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ua===null||!Ua.has(c))))return a.flags|=65536,s&=-s,a.lanes|=s,s=am(s),lm(s,e,a,r),ec(a,s),!1}a=a.return}while(a!==null);return!1}var Cc=Error(o(461)),Ot=!1;function zt(e,t,a,r){t.child=e===null?oh(t,null,a,r):vl(t,e.child,a,r)}function rm(e,t,a,r,s){a=a.render;var c=t.ref;if("ref"in r){var m={};for(var y in r)y!=="ref"&&(m[y]=r[y])}else m=r;return sl(t),r=ic(e,t,a,m,c,s),y=uc(),e!==null&&!Ot?(oc(e,t,s),oa(e,t,s)):(je&&y&&ks(t),t.flags|=1,zt(e,t,r,s),t.child)}function im(e,t,a,r,s){if(e===null){var c=a.type;return typeof c=="function"&&!qs(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,um(e,t,c,r,s)):(e=iu(a.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!zc(e,s)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:Br,a(m,r)&&e.ref===t.ref)return oa(e,t,s)}return t.flags|=1,e=na(c,r),e.ref=t.ref,e.return=t,t.child=e}function um(e,t,a,r,s){if(e!==null){var c=e.memoizedProps;if(Br(c,r)&&e.ref===t.ref)if(Ot=!1,t.pendingProps=r=c,zc(e,s))(e.flags&131072)!==0&&(Ot=!0);else return t.lanes=e.lanes,oa(e,t,s)}return Tc(e,t,a,r,s)}function om(e,t,a,r){var s=r.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(r=t.child=e.child,s=0;r!==null;)s=s|r.lanes|r.childLanes,r=r.sibling;r=s&~c}else r=0,t.child=null;return sm(e,t,c,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&cu(t,c!==null?c.cachePool:null),c!==null?fh(t,c):nc(),dh(t);else return r=t.lanes=536870912,sm(e,t,c!==null?c.baseLanes|a:a,a,r)}else c!==null?(cu(t,c.cachePool),fh(t,c),Va(),t.memoizedState=null):(e!==null&&cu(t,null),nc(),Va());return zt(e,t,s,a),t.child}function ti(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sm(e,t,a,r,s){var c=Ks();return c=c===null?null:{parent:St._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&cu(t,null),nc(),dh(t),e!==null&&Ql(e,t,r,!0),t.childLanes=s,null}function Tu(e,t){return t=Mu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cm(e,t,a){return vl(t,e.child,null,a),e=Tu(t,t.pendingProps),e.flags|=2,sn(t),t.memoizedState=null,e}function s1(e,t,a){var r=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(r.mode==="hidden")return e=Tu(t,r),t.lanes=536870912,ti(null,e);if(lc(t),(e=it)?(e=Op(e,An),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Bn,overflow:kn}:null,retryLane:536870912,hydrationErrors:null},a=Xv(e),a.return=t,t.child=a,Nt=t,it=null)):e=null,e===null)throw Ta(t);return t.lanes=536870912,null}return Tu(t,r)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(lc(t),s)if(t.flags&256)t.flags&=-257,t=cm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ot||Ql(e,t,a,!1),s=(a&e.childLanes)!==0,Ot||s){if(r=at,r!==null&&(m=ev(r,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,rl(e,m),Wt(r,e,m),Cc;Hu(),t=cm(e,t,a)}else e=c.treeContext,it=Tn(m.nextSibling),Nt=t,je=!0,Ca=null,An=!1,e!==null&&Kv(t,e),t=Tu(t,r),t.flags|=4096;return t}return e=na(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function xu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Tc(e,t,a,r,s){return sl(t),a=ic(e,t,a,r,void 0,s),r=uc(),e!==null&&!Ot?(oc(e,t,s),oa(e,t,s)):(je&&r&&ks(t),t.flags|=1,zt(e,t,a,s),t.child)}function fm(e,t,a,r,s,c){return sl(t),t.updateQueue=null,a=hh(t,r,a,s),vh(e),r=uc(),e!==null&&!Ot?(oc(e,t,c),oa(e,t,c)):(je&&r&&ks(t),t.flags|=1,zt(e,t,a,c),t.child)}function dm(e,t,a,r,s){if(sl(t),t.stateNode===null){var c=kl,m=a.contextType;typeof m=="object"&&m!==null&&(c=Vt(m)),c=new a(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=_c,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},Ps(t),m=a.contextType,c.context=typeof m=="object"&&m!==null?Vt(m):kl,c.state=t.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(Oc(t,a,m,r),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&_c.enqueueReplaceState(c,c.state,null),Kr(t,r,c,s),Zr(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,O=ml(a,y);c.props=O;var j=c.context,G=a.contextType;m=kl,typeof G=="object"&&G!==null&&(m=Vt(G));var $=a.getDerivedStateFromProps;G=typeof $=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,G||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||j!==m)&&Ph(t,c,r,m),Ma=!1;var B=t.memoizedState;c.state=B,Kr(t,r,c,s),Zr(),j=t.memoizedState,y||B!==j||Ma?(typeof $=="function"&&(Oc(t,a,$,r),j=t.memoizedState),(O=Ma||Jh(t,a,O,r,B,j,m))?(G||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=j),c.props=r,c.state=j,c.context=m,r=O):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,Ws(e,t),m=t.memoizedProps,G=ml(a,m),c.props=G,$=t.pendingProps,B=c.context,j=a.contextType,O=kl,typeof j=="object"&&j!==null&&(O=Vt(j)),y=a.getDerivedStateFromProps,(j=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==$||B!==O)&&Ph(t,c,r,O),Ma=!1,B=t.memoizedState,c.state=B,Kr(t,r,c,s),Zr();var k=t.memoizedState;m!==$||B!==k||Ma||e!==null&&e.dependencies!==null&&ou(e.dependencies)?(typeof y=="function"&&(Oc(t,a,y,r),k=t.memoizedState),(G=Ma||Jh(t,a,G,r,B,k,O)||e!==null&&e.dependencies!==null&&ou(e.dependencies))?(j||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,k,O),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,k,O)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=k),c.props=r,c.state=k,c.context=O,r=G):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),r=!1)}return c=r,xu(e,t),r=(t.flags&128)!==0,c||r?(c=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&r?(t.child=vl(t,e.child,null,s),t.child=vl(t,null,a,s)):zt(e,t,a,s),t.memoizedState=c.state,e=t.child):e=oa(e,t,s),e}function vm(e,t,a,r){return ul(),t.flags|=256,zt(e,t,a,r),t.child}var xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mc(e){return{baseLanes:e,cachePool:nh()}}function Dc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=fn),e}function hm(e,t,a){var r=t.pendingProps,s=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),m&&(s=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(s?Na(t):Va(),(e=it)?(e=Op(e,An),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Bn,overflow:kn}:null,retryLane:536870912,hydrationErrors:null},a=Xv(e),a.return=t,t.child=a,Nt=t,it=null)):e=null,e===null)throw Ta(t);return df(e)?t.lanes=32:t.lanes=536870912,null}var y=r.children;return r=r.fallback,s?(Va(),s=t.mode,y=Mu({mode:"hidden",children:y},s),r=il(r,s,a,null),y.return=t,r.return=t,y.sibling=r,t.child=y,r=t.child,r.memoizedState=Mc(a),r.childLanes=Dc(e,m,a),t.memoizedState=xc,ti(null,r)):(Na(t),Rc(t,y))}var O=e.memoizedState;if(O!==null&&(y=O.dehydrated,y!==null)){if(c)t.flags&256?(Na(t),t.flags&=-257,t=Nc(e,t,a)):t.memoizedState!==null?(Va(),t.child=e.child,t.flags|=128,t=null):(Va(),y=r.fallback,s=t.mode,r=Mu({mode:"visible",children:r.children},s),y=il(y,s,a,null),y.flags|=2,r.return=t,y.return=t,r.sibling=y,t.child=r,vl(t,e.child,null,a),r=t.child,r.memoizedState=Mc(a),r.childLanes=Dc(e,m,a),t.memoizedState=xc,t=ti(null,r));else if(Na(t),df(y)){if(m=y.nextSibling&&y.nextSibling.dataset,m)var j=m.dgst;m=j,r=Error(o(419)),r.stack="",r.digest=m,Gr({value:r,source:null,stack:null}),t=Nc(e,t,a)}else if(Ot||Ql(e,t,a,!1),m=(a&e.childLanes)!==0,Ot||m){if(m=at,m!==null&&(r=ev(m,a),r!==0&&r!==O.retryLane))throw O.retryLane=r,rl(e,r),Wt(m,e,r),Cc;ff(y)||Hu(),t=Nc(e,t,a)}else ff(y)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,it=Tn(y.nextSibling),Nt=t,je=!0,Ca=null,An=!1,e!==null&&Kv(t,e),t=Rc(t,r.children),t.flags|=4096);return t}return s?(Va(),y=r.fallback,s=t.mode,O=e.child,j=O.sibling,r=na(O,{mode:"hidden",children:r.children}),r.subtreeFlags=O.subtreeFlags&65011712,j!==null?y=na(j,y):(y=il(y,s,a,null),y.flags|=2),y.return=t,r.return=t,r.sibling=y,t.child=r,ti(null,r),r=t.child,y=e.child.memoizedState,y===null?y=Mc(a):(s=y.cachePool,s!==null?(O=St._currentValue,s=s.parent!==O?{parent:O,pool:O}:s):s=nh(),y={baseLanes:y.baseLanes|a,cachePool:s}),r.memoizedState=y,r.childLanes=Dc(e,m,a),t.memoizedState=xc,ti(e.child,r)):(Na(t),a=e.child,e=a.sibling,a=na(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=a,t.memoizedState=null,a)}function Rc(e,t){return t=Mu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mu(e,t){return e=un(22,e,null,t),e.lanes=0,e}function Nc(e,t,a){return vl(t,e.child,null,a),e=Rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mm(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Is(e.return,t,a)}function Vc(e,t,a,r,s,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:s,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=r,m.tail=a,m.tailMode=s,m.treeForkCount=c)}function pm(e,t,a){var r=t.pendingProps,s=r.revealOrder,c=r.tail;r=r.children;var m=yt.current,y=(m&2)!==0;if(y?(m=m&1|2,t.flags|=128):m&=1,te(yt,m),zt(e,t,r,a),r=je?Fr:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mm(e,a,t);else if(e.tag===19)mm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&pu(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Vc(t,!1,s,a,c,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&pu(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Vc(t,!0,a,null,c,r);break;case"together":Vc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function oa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),La|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ql(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=na(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=na(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function zc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ou(e)))}function c1(e,t,a){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),xa(t,St,e.memoizedState.cache),ul();break;case 27:case 5:Kn(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:xa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lc(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Na(t),t.flags|=128,null):(a&t.child.childLanes)!==0?hm(e,t,a):(Na(t),e=oa(e,t,a),e!==null?e.sibling:null);Na(t);break;case 19:var s=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(Ql(e,t,a,!1),r=(a&t.childLanes)!==0),s){if(r)return pm(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),te(yt,yt.current),r)break;return null;case 22:return t.lanes=0,om(e,t,a,t.pendingProps);case 24:xa(t,St,e.memoizedState.cache)}return oa(e,t,a)}function ym(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ot=!0;else{if(!zc(e,a)&&(t.flags&128)===0)return Ot=!1,c1(e,t,a);Ot=(e.flags&131072)!==0}else Ot=!1,je&&(t.flags&1048576)!==0&&Zv(t,Fr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=fl(t.elementType),t.type=e,typeof e=="function")qs(e)?(r=ml(e,r),t.tag=1,t=dm(null,t,e,r,a)):(t.tag=0,t=Tc(null,t,e,r,a));else{if(e!=null){var s=e.$$typeof;if(s===N){t.tag=11,t=rm(null,t,e,r,a);break e}else if(s===Q){t.tag=14,t=im(null,t,e,r,a);break e}}throw t=ge(e)||e,Error(o(306,t,""))}}return t;case 0:return Tc(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,s=ml(r,t.pendingProps),dm(e,t,r,s,a);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var c=t.memoizedState;s=c.element,Ws(e,t),Kr(t,r,null,a);var m=t.memoizedState;if(r=m.cache,xa(t,St,r),r!==c.cache&&Xs(t,[St],a,!0),Zr(),r=m.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=vm(e,t,r,a);break e}else if(r!==s){s=En(Error(o(424)),t),Gr(s),t=vm(e,t,r,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,it=Tn(e.firstChild),Nt=t,je=!0,Ca=null,An=!0,a=oh(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ul(),r===s){t=oa(e,t,a);break e}zt(e,t,r,a)}t=t.child}return t;case 26:return xu(e,t),e===null?(a=Mp(t.type,null,t.pendingProps,null))?t.memoizedState=a:je||(a=t.type,e=t.pendingProps,r=Yu(Ce.current).createElement(a),r[Rt]=t,r[Xt]=e,wt(r,a,e),xt(r),t.stateNode=r):t.memoizedState=Mp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Kn(t),e===null&&je&&(r=t.stateNode=Cp(t.type,t.pendingProps,Ce.current),Nt=t,An=!0,s=it,Ba(t.type)?(vf=s,it=Tn(r.firstChild)):it=s),zt(e,t,t.pendingProps.children,a),xu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((s=r=it)&&(r=B1(r,t.type,t.pendingProps,An),r!==null?(t.stateNode=r,Nt=t,it=Tn(r.firstChild),An=!1,s=!0):s=!1),s||Ta(t)),Kn(t),s=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,r=c.children,of(s,c)?r=null:m!==null&&of(s,m)&&(t.flags|=32),t.memoizedState!==null&&(s=ic(e,t,t1,null,null,a),pi._currentValue=s),xu(e,t),zt(e,t,r,a),t.child;case 6:return e===null&&je&&((e=a=it)&&(a=k1(a,t.pendingProps,An),a!==null?(t.stateNode=a,Nt=t,it=null,e=!0):e=!1),e||Ta(t)),null;case 13:return hm(e,t,a);case 4:return We(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vl(t,null,r,a):zt(e,t,r,a),t.child;case 11:return rm(e,t,t.type,t.pendingProps,a);case 7:return zt(e,t,t.pendingProps,a),t.child;case 8:return zt(e,t,t.pendingProps.children,a),t.child;case 12:return zt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,xa(t,t.type,r.value),zt(e,t,r.children,a),t.child;case 9:return s=t.type._context,r=t.pendingProps.children,sl(t),s=Vt(s),r=r(s),t.flags|=1,zt(e,t,r,a),t.child;case 14:return im(e,t,t.type,t.pendingProps,a);case 15:return um(e,t,t.type,t.pendingProps,a);case 19:return pm(e,t,a);case 31:return s1(e,t,a);case 22:return om(e,t,a,t.pendingProps);case 24:return sl(t),r=Vt(St),e===null?(s=Ks(),s===null&&(s=at,c=$s(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=a),s=c),t.memoizedState={parent:r,cache:s},Ps(t),xa(t,St,s)):((e.lanes&a)!==0&&(Ws(e,t),Kr(t,null,null,a),Zr()),s=e.memoizedState,c=t.memoizedState,s.parent!==r?(s={parent:r,cache:r},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),xa(t,St,r)):(r=c.cache,xa(t,St,r),r!==s.cache&&Xs(t,[St],a,!0))),zt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function sa(e){e.flags|=4}function wc(e,t,a,r,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Ym())e.flags|=8192;else throw dl=du,Js}else e.flags&=-16777217}function gm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zp(t))if(Ym())e.flags|=8192;else throw dl=du,Js}function Du(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Qi():536870912,e.lanes|=t,ar|=t)}function ni(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,r|=s.subtreeFlags&65011712,r|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function f1(e,t,a){var r=t.pendingProps;switch(Fs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return ut(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ra(St),Ze(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Yl(t)?sa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ys())),ut(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(sa(t),c!==null?(ut(t),gm(t,c)):(ut(t),wc(t,s,null,r,a))):c?c!==e.memoizedState?(sa(t),ut(t),gm(t,c)):(ut(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&sa(t),ut(t),wc(t,s,e,r,a)),null;case 27:if(qn(t),a=Ce.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&sa(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return ut(t),null}e=oe.current,Yl(t)?Jv(t):(e=Cp(s,r,a),t.stateNode=e,sa(t))}return ut(t),null;case 5:if(qn(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&sa(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return ut(t),null}if(c=oe.current,Yl(t))Jv(t);else{var m=Yu(Ce.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof r.is=="string"?m.createElement("select",{is:r.is}):m.createElement("select"),r.multiple?c.multiple=!0:r.size&&(c.size=r.size);break;default:c=typeof r.is=="string"?m.createElement(s,{is:r.is}):m.createElement(s)}}c[Rt]=t,c[Xt]=r;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(wt(c,s,r),s){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&sa(t)}}return ut(t),wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&sa(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(o(166));if(e=Ce.current,Yl(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,s=Nt,s!==null)switch(s.tag){case 27:case 5:r=s.memoizedProps}e[Rt]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||hp(e.nodeValue,a)),e||Ta(t,!0)}else e=Yu(e).createTextNode(r),e[Rt]=t,t.stateNode=e}return ut(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=Yl(t),a!==null){if(e===null){if(!r)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Rt]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),e=!1}else a=Ys(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(sn(t),t):(sn(t),null);if((t.flags&128)!==0)throw Error(o(558))}return ut(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Yl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(o(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[Rt]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),s=!1}else s=Ys(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(sn(t),t):(sn(t),null)}return sn(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,s=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(s=r.alternate.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==s&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Du(t,t.updateQueue),ut(t),null);case 4:return Ze(),e===null&&nf(t.stateNode.containerInfo),ut(t),null;case 10:return ra(t.type),ut(t),null;case 19:if(F(yt),r=t.memoizedState,r===null)return ut(t),null;if(s=(t.flags&128)!==0,c=r.rendering,c===null)if(s)ni(r,!1);else{if(ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=pu(e),c!==null){for(t.flags|=128,ni(r,!1),e=c.updateQueue,t.updateQueue=e,Du(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Iv(a,e),a=a.sibling;return te(yt,yt.current&1|2),je&&aa(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&jt()>wu&&(t.flags|=128,s=!0,ni(r,!1),t.lanes=4194304)}else{if(!s)if(e=pu(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Du(t,e),ni(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!je)return ut(t),null}else 2*jt()-r.renderingStartTime>wu&&a!==536870912&&(t.flags|=128,s=!0,ni(r,!1),t.lanes=4194304);r.isBackwards?(c.sibling=t.child,t.child=c):(e=r.last,e!==null?e.sibling=c:t.child=c,r.last=c)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=jt(),e.sibling=null,a=yt.current,te(yt,s?a&1|2:a&1),je&&aa(t,r.treeForkCount),e):(ut(t),null);case 22:case 23:return sn(t),ac(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),a=t.updateQueue,a!==null&&Du(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&F(cl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ra(St),ut(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function d1(e,t){switch(Fs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(St),Ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qn(t),null;case 31:if(t.memoizedState!==null){if(sn(t),t.alternate===null)throw Error(o(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(sn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(yt),null;case 4:return Ze(),null;case 10:return ra(t.type),null;case 22:case 23:return sn(t),ac(),e!==null&&F(cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(St),null;case 25:return null;default:return null}}function bm(e,t){switch(Fs(t),t.tag){case 3:ra(St),Ze();break;case 26:case 27:case 5:qn(t);break;case 4:Ze();break;case 31:t.memoizedState!==null&&sn(t);break;case 13:sn(t);break;case 19:F(yt);break;case 10:ra(t.type);break;case 22:case 23:sn(t),ac(),e!==null&&F(cl);break;case 24:ra(St)}}function ai(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var s=r.next;a=s;do{if((a.tag&e)===e){r=void 0;var c=a.create,m=a.inst;r=c(),m.destroy=r}a=a.next}while(a!==s)}}catch(y){Pe(t,t.return,y)}}function za(e,t,a){try{var r=t.updateQueue,s=r!==null?r.lastEffect:null;if(s!==null){var c=s.next;r=c;do{if((r.tag&e)===e){var m=r.inst,y=m.destroy;if(y!==void 0){m.destroy=void 0,s=t;var O=a,j=y;try{j()}catch(G){Pe(s,O,G)}}}r=r.next}while(r!==c)}}catch(G){Pe(t,t.return,G)}}function Sm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ch(t,a)}catch(r){Pe(e,e.return,r)}}}function Em(e,t,a){a.props=ml(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Pe(e,t,r)}}function li(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(s){Pe(e,t,s)}}function Fn(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(s){Pe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Pe(e,t,s)}else a.current=null}function Om(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(s){Pe(e,e.return,s)}}function Lc(e,t,a){try{var r=e.stateNode;w1(r,e.type,a,t),r[Xt]=t}catch(s){Pe(e,e.return,s)}}function _m(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ba(e.type)||e.tag===4}function Uc(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&&Ba(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 Hc(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ea));else if(r!==4&&(r===27&&Ba(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Hc(e,t,a),e=e.sibling;e!==null;)Hc(e,t,a),e=e.sibling}function Ru(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&Ba(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ru(e,t,a),e=e.sibling;e!==null;)Ru(e,t,a),e=e.sibling}function Am(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);wt(t,r,a),t[Rt]=e,t[Xt]=a}catch(c){Pe(e,e.return,c)}}var ca=!1,_t=!1,qc=!1,Cm=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function v1(e,t){if(e=e.containerInfo,rf=Ju,e=Hv(e),Ns(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var s=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var m=0,y=-1,O=-1,j=0,G=0,$=e,B=null;t:for(;;){for(var k;$!==a||s!==0&&$.nodeType!==3||(y=m+s),$!==c||r!==0&&$.nodeType!==3||(O=m+r),$.nodeType===3&&(m+=$.nodeValue.length),(k=$.firstChild)!==null;)B=$,$=k;for(;;){if($===e)break t;if(B===a&&++j===s&&(y=m),B===c&&++G===r&&(O=m),(k=$.nextSibling)!==null)break;$=B,B=$.parentNode}$=k}a=y===-1||O===-1?null:{start:y,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(uf={focusedElem:e,selectionRange:a},Ju=!1,Mt=t;Mt!==null;)if(t=Mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Mt=e;else for(;Mt!==null;){switch(t=Mt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,s=c.memoizedProps,c=c.memoizedState,r=a.stateNode;try{var de=ml(a.type,s);e=r.getSnapshotBeforeUpdate(de,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(Te){Pe(a,a.return,Te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)cf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cf(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Mt=e;break}Mt=t.return}}function Tm(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:da(e,a),r&4&&ai(5,a);break;case 1:if(da(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(m){Pe(a,a.return,m)}else{var s=ml(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Pe(a,a.return,m)}}r&64&&Sm(a),r&512&&li(a,a.return);break;case 3:if(da(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{ch(e,t)}catch(m){Pe(a,a.return,m)}}break;case 27:t===null&&r&4&&Am(a);case 26:case 5:da(e,a),t===null&&r&4&&Om(a),r&512&&li(a,a.return);break;case 12:da(e,a);break;case 31:da(e,a),r&4&&Dm(e,a);break;case 13:da(e,a),r&4&&Rm(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=O1.bind(null,a),F1(e,a))));break;case 22:if(r=a.memoizedState!==null||ca,!r){t=t!==null&&t.memoizedState!==null||_t,s=ca;var c=_t;ca=r,(_t=t)&&!c?va(e,a,(a.subtreeFlags&8772)!==0):da(e,a),ca=s,_t=c}break;case 30:break;default:da(e,a)}}function xm(e){var t=e.alternate;t!==null&&(e.alternate=null,xm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&hs(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 st=null,Zt=!1;function fa(e,t,a){for(a=a.child;a!==null;)Mm(e,t,a),a=a.sibling}function Mm(e,t,a){if(Z&&typeof Z.onCommitFiberUnmount=="function")try{Z.onCommitFiberUnmount(w,a)}catch{}switch(a.tag){case 26:_t||Fn(a,t),fa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:_t||Fn(a,t);var r=st,s=Zt;Ba(a.type)&&(st=a.stateNode,Zt=!1),fa(e,t,a),vi(a.stateNode),st=r,Zt=s;break;case 5:_t||Fn(a,t);case 6:if(r=st,s=Zt,st=null,fa(e,t,a),st=r,Zt=s,st!==null)if(Zt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(a.stateNode)}catch(c){Pe(a,t,c)}else try{st.removeChild(a.stateNode)}catch(c){Pe(a,t,c)}break;case 18:st!==null&&(Zt?(e=st,Sp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),fr(e)):Sp(st,a.stateNode));break;case 4:r=st,s=Zt,st=a.stateNode.containerInfo,Zt=!0,fa(e,t,a),st=r,Zt=s;break;case 0:case 11:case 14:case 15:za(2,a,t),_t||za(4,a,t),fa(e,t,a);break;case 1:_t||(Fn(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&Em(a,t,r)),fa(e,t,a);break;case 21:fa(e,t,a);break;case 22:_t=(r=_t)||a.memoizedState!==null,fa(e,t,a),_t=r;break;default:fa(e,t,a)}}function Dm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{fr(e)}catch(a){Pe(t,t.return,a)}}}function Rm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fr(e)}catch(a){Pe(t,t.return,a)}}function h1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Cm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Cm),t;default:throw Error(o(435,e.tag))}}function Nu(e,t){var a=h1(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var s=_1.bind(null,e,r);r.then(s,s)}})}function Kt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var s=a[r],c=e,m=t,y=m;e:for(;y!==null;){switch(y.tag){case 27:if(Ba(y.type)){st=y.stateNode,Zt=!1;break e}break;case 5:st=y.stateNode,Zt=!1;break e;case 3:case 4:st=y.stateNode.containerInfo,Zt=!0;break e}y=y.return}if(st===null)throw Error(o(160));Mm(c,m,s),st=null,Zt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Nm(t,e),t=t.sibling}var Nn=null;function Nm(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kt(t,e),Jt(e),r&4&&(za(3,e,e.return),ai(3,e),za(5,e,e.return));break;case 1:Kt(t,e),Jt(e),r&512&&(_t||a===null||Fn(a,a.return)),r&64&&ca&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var s=Nn;if(Kt(t,e),Jt(e),r&512&&(_t||a===null||Fn(a,a.return)),r&4){var c=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(r){case"title":c=s.getElementsByTagName("title")[0],(!c||c[Nr]||c[Rt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(r),s.head.insertBefore(c,s.querySelector("head > title"))),wt(c,r,a),c[Rt]=e,xt(c),r=c;break e;case"link":var m=Np("link","href",s).get(r+(a.href||""));if(m){for(var y=0;y<m.length;y++)if(c=m[y],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(y,1);break t}}c=s.createElement(r),wt(c,r,a),s.head.appendChild(c);break;case"meta":if(m=Np("meta","content",s).get(r+(a.content||""))){for(y=0;y<m.length;y++)if(c=m[y],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(y,1);break t}}c=s.createElement(r),wt(c,r,a),s.head.appendChild(c);break;default:throw Error(o(468,r))}c[Rt]=e,xt(c),r=c}e.stateNode=r}else Vp(s,e.type,e.stateNode);else e.stateNode=Rp(s,r,e.memoizedProps);else c!==r?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,r===null?Vp(s,e.type,e.stateNode):Rp(s,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Lc(e,e.memoizedProps,a.memoizedProps)}break;case 27:Kt(t,e),Jt(e),r&512&&(_t||a===null||Fn(a,a.return)),a!==null&&r&4&&Lc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Kt(t,e),Jt(e),r&512&&(_t||a===null||Fn(a,a.return)),e.flags&32){s=e.stateNode;try{wl(s,"")}catch(de){Pe(e,e.return,de)}}r&4&&e.stateNode!=null&&(s=e.memoizedProps,Lc(e,s,a!==null?a.memoizedProps:s)),r&1024&&(qc=!0);break;case 6:if(Kt(t,e),Jt(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(de){Pe(e,e.return,de)}}break;case 3:if(Xu=null,s=Nn,Nn=Qu(t.containerInfo),Kt(t,e),Nn=s,Jt(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{fr(t.containerInfo)}catch(de){Pe(e,e.return,de)}qc&&(qc=!1,Vm(e));break;case 4:r=Nn,Nn=Qu(e.stateNode.containerInfo),Kt(t,e),Jt(e),Nn=r;break;case 12:Kt(t,e),Jt(e);break;case 31:Kt(t,e),Jt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Nu(e,r)));break;case 13:Kt(t,e),Jt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(zu=jt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Nu(e,r)));break;case 22:s=e.memoizedState!==null;var O=a!==null&&a.memoizedState!==null,j=ca,G=_t;if(ca=j||s,_t=G||O,Kt(t,e),_t=G,ca=j,Jt(e),r&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||O||ca||_t||pl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){O=a=t;try{if(c=O.stateNode,s)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{y=O.stateNode;var $=O.memoizedProps.style,B=$!=null&&$.hasOwnProperty("display")?$.display:null;y.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(de){Pe(O,O.return,de)}}}else if(t.tag===6){if(a===null){O=t;try{O.stateNode.nodeValue=s?"":O.memoizedProps}catch(de){Pe(O,O.return,de)}}}else if(t.tag===18){if(a===null){O=t;try{var k=O.stateNode;s?Ep(k,!0):Ep(O.stateNode,!1)}catch(de){Pe(O,O.return,de)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Nu(e,a))));break;case 19:Kt(t,e),Jt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Nu(e,r)));break;case 30:break;case 21:break;default:Kt(t,e),Jt(e)}}function Jt(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(_m(r)){a=r;break}r=r.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var s=a.stateNode,c=Uc(e);Ru(e,c,s);break;case 5:var m=a.stateNode;a.flags&32&&(wl(m,""),a.flags&=-33);var y=Uc(e);Ru(e,y,m);break;case 3:case 4:var O=a.stateNode.containerInfo,j=Uc(e);Hc(e,j,O);break;default:throw Error(o(161))}}catch(G){Pe(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function da(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Tm(e,t.alternate,t),t=t.sibling}function pl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:za(4,t,t.return),pl(t);break;case 1:Fn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Em(t,t.return,a),pl(t);break;case 27:vi(t.stateNode);case 26:case 5:Fn(t,t.return),pl(t);break;case 22:t.memoizedState===null&&pl(t);break;case 30:pl(t);break;default:pl(t)}e=e.sibling}}function va(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,s=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:va(s,c,a),ai(4,c);break;case 1:if(va(s,c,a),r=c,s=r.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(j){Pe(r,r.return,j)}if(r=c,s=r.updateQueue,s!==null){var y=r.stateNode;try{var O=s.shared.hiddenCallbacks;if(O!==null)for(s.shared.hiddenCallbacks=null,s=0;s<O.length;s++)sh(O[s],y)}catch(j){Pe(r,r.return,j)}}a&&m&64&&Sm(c),li(c,c.return);break;case 27:Am(c);case 26:case 5:va(s,c,a),a&&r===null&&m&4&&Om(c),li(c,c.return);break;case 12:va(s,c,a);break;case 31:va(s,c,a),a&&m&4&&Dm(s,c);break;case 13:va(s,c,a),a&&m&4&&Rm(s,c);break;case 22:c.memoizedState===null&&va(s,c,a),li(c,c.return);break;case 30:break;default:va(s,c,a)}t=t.sibling}}function jc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Yr(a))}function Bc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yr(e))}function Vn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zm(e,t,a,r),t=t.sibling}function zm(e,t,a,r){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Vn(e,t,a,r),s&2048&&ai(9,t);break;case 1:Vn(e,t,a,r);break;case 3:Vn(e,t,a,r),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yr(e)));break;case 12:if(s&2048){Vn(e,t,a,r),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,y=c.onPostCommit;typeof y=="function"&&y(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){Pe(t,t.return,O)}}else Vn(e,t,a,r);break;case 31:Vn(e,t,a,r);break;case 13:Vn(e,t,a,r);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?Vn(e,t,a,r):ri(e,t):c._visibility&2?Vn(e,t,a,r):(c._visibility|=2,er(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),s&2048&&jc(m,t);break;case 24:Vn(e,t,a,r),s&2048&&Bc(t.alternate,t);break;default:Vn(e,t,a,r)}}function er(e,t,a,r,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,y=a,O=r,j=m.flags;switch(m.tag){case 0:case 11:case 15:er(c,m,y,O,s),ai(8,m);break;case 23:break;case 22:var G=m.stateNode;m.memoizedState!==null?G._visibility&2?er(c,m,y,O,s):ri(c,m):(G._visibility|=2,er(c,m,y,O,s)),s&&j&2048&&jc(m.alternate,m);break;case 24:er(c,m,y,O,s),s&&j&2048&&Bc(m.alternate,m);break;default:er(c,m,y,O,s)}t=t.sibling}}function ri(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,s=r.flags;switch(r.tag){case 22:ri(a,r),s&2048&&jc(r.alternate,r);break;case 24:ri(a,r),s&2048&&Bc(r.alternate,r);break;default:ri(a,r)}t=t.sibling}}var ii=8192;function tr(e,t,a){if(e.subtreeFlags&ii)for(e=e.child;e!==null;)wm(e,t,a),e=e.sibling}function wm(e,t,a){switch(e.tag){case 26:tr(e,t,a),e.flags&ii&&e.memoizedState!==null&&eS(a,Nn,e.memoizedState,e.memoizedProps);break;case 5:tr(e,t,a);break;case 3:case 4:var r=Nn;Nn=Qu(e.stateNode.containerInfo),tr(e,t,a),Nn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=ii,ii=16777216,tr(e,t,a),ii=r):tr(e,t,a));break;default:tr(e,t,a)}}function Lm(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 ui(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Mt=r,Hm(r,e)}Lm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Um(e),e=e.sibling}function Um(e){switch(e.tag){case 0:case 11:case 15:ui(e),e.flags&2048&&za(9,e,e.return);break;case 3:ui(e);break;case 12:ui(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vu(e)):ui(e);break;default:ui(e)}}function Vu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Mt=r,Hm(r,e)}Lm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:za(8,t,t.return),Vu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Vu(t));break;default:Vu(t)}e=e.sibling}}function Hm(e,t){for(;Mt!==null;){var a=Mt;switch(a.tag){case 0:case 11:case 15:za(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Yr(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,Mt=r;else e:for(a=e;Mt!==null;){r=Mt;var s=r.sibling,c=r.return;if(xm(r),r===a){Mt=null;break e}if(s!==null){s.return=c,Mt=s;break e}Mt=c}}}var m1={getCacheForType:function(e){var t=Vt(St),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Vt(St).controller.signal}},p1=typeof WeakMap=="function"?WeakMap:Map,Qe=0,at=null,Le=null,He=0,Je=0,cn=null,wa=!1,nr=!1,kc=!1,ha=0,ht=0,La=0,yl=0,Fc=0,fn=0,ar=0,oi=null,Pt=null,Gc=!1,zu=0,qm=0,wu=1/0,Lu=null,Ua=null,Ct=0,Ha=null,lr=null,ma=0,Yc=0,Qc=null,jm=null,si=0,Ic=null;function dn(){return(Qe&2)!==0&&He!==0?He&-He:q.T!==null?Pc():tv()}function Bm(){if(fn===0)if((He&536870912)===0||je){var e=ct;ct<<=1,(ct&3932160)===0&&(ct=262144),fn=e}else fn=536870912;return e=on.current,e!==null&&(e.flags|=32),fn}function Wt(e,t,a){(e===at&&(Je===2||Je===9)||e.cancelPendingCommit!==null)&&(rr(e,0),qa(e,He,fn,!1)),Rr(e,a),((Qe&2)===0||e!==at)&&(e===at&&((Qe&2)===0&&(yl|=a),ht===4&&qa(e,He,fn,!1)),Gn(e))}function km(e,t,a){if((Qe&6)!==0)throw Error(o(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Wa(e,t),s=r?b1(e,t):$c(e,t,!0),c=r;do{if(s===0){nr&&!r&&qa(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!y1(a)){s=$c(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var y=e;s=oi;var O=y.current.memoizedState.isDehydrated;if(O&&(rr(y,m).flags|=256),m=$c(y,m,!1),m!==2){if(kc&&!O){y.errorRecoveryDisabledLanes|=c,yl|=c,s=4;break e}c=Pt,Pt=s,c!==null&&(Pt===null?Pt=c:Pt.push.apply(Pt,c))}s=m}if(c=!1,s!==2)continue}}if(s===1){rr(e,0),qa(e,t,0,!0);break}e:{switch(r=e,c=s,c){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:qa(r,t,fn,!wa);break e;case 2:Pt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(s=zu+300-jt(),10<s)){if(qa(r,t,fn,!wa),jn(r,0,!0)!==0)break e;ma=t,r.timeoutHandle=gp(Fm.bind(null,r,a,Pt,Lu,Gc,t,fn,yl,ar,wa,c,"Throttled",-0,0),s);break e}Fm(r,a,Pt,Lu,Gc,t,fn,yl,ar,wa,c,null,-0,0)}}break}while(!0);Gn(e)}function Fm(e,t,a,r,s,c,m,y,O,j,G,$,B,k){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ea},wm(t,c,$);var de=(c&62914560)===c?zu-jt():(c&4194048)===c?qm-jt():0;if(de=tS($,de),de!==null){ma=c,e.cancelPendingCommit=de(Km.bind(null,e,t,c,a,r,s,m,y,O,G,$,null,B,k)),qa(e,c,m,!j);return}}Km(e,t,c,a,r,s,m,y,O)}function y1(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var s=a[r],c=s.getSnapshot;s=s.value;try{if(!rn(c(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function qa(e,t,a,r){t&=~Fc,t&=~yl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var s=t;0<s;){var c=31-ne(s),m=1<<c;r[c]=-1,s&=~m}a!==0&&Pd(e,a,t)}function Uu(){return(Qe&6)===0?(ci(0),!1):!0}function Xc(){if(Le!==null){if(Je===0)var e=Le.return;else e=Le,la=ol=null,sc(e),Zl=null,Ir=0,e=Le;for(;e!==null;)bm(e.alternate,e),e=e.return;Le=null}}function rr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,H1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ma=0,Xc(),at=e,Le=a=na(e.current,null),He=t,Je=0,cn=null,wa=!1,nr=Wa(e,t),kc=!1,ar=fn=Fc=yl=La=ht=0,Pt=oi=null,Gc=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var s=31-ne(r),c=1<<s;t|=e[s],r&=~c}return ha=t,au(),a}function Gm(e,t){ze=null,q.H=ei,t===$l||t===fu?(t=rh(),Je=3):t===Js?(t=rh(),Je=4):Je=t===Cc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,cn=t,Le===null&&(ht=1,Cu(e,En(t,e.current)))}function Ym(){var e=on.current;return e===null?!0:(He&4194048)===He?Cn===null:(He&62914560)===He||(He&536870912)!==0?e===Cn:!1}function Qm(){var e=q.H;return q.H=ei,e===null?ei:e}function Im(){var e=q.A;return q.A=m1,e}function Hu(){ht=4,wa||(He&4194048)!==He&&on.current!==null||(nr=!0),(La&134217727)===0&&(yl&134217727)===0||at===null||qa(at,He,fn,!1)}function $c(e,t,a){var r=Qe;Qe|=2;var s=Qm(),c=Im();(at!==e||He!==t)&&(Lu=null,rr(e,t)),t=!1;var m=ht;e:do try{if(Je!==0&&Le!==null){var y=Le,O=cn;switch(Je){case 8:Xc(),m=6;break e;case 3:case 2:case 9:case 6:on.current===null&&(t=!0);var j=Je;if(Je=0,cn=null,ir(e,y,O,j),a&&nr){m=0;break e}break;default:j=Je,Je=0,cn=null,ir(e,y,O,j)}}g1(),m=ht;break}catch(G){Gm(e,G)}while(!0);return t&&e.shellSuspendCounter++,la=ol=null,Qe=r,q.H=s,q.A=c,Le===null&&(at=null,He=0,au()),m}function g1(){for(;Le!==null;)Xm(Le)}function b1(e,t){var a=Qe;Qe|=2;var r=Qm(),s=Im();at!==e||He!==t?(Lu=null,wu=jt()+500,rr(e,t)):nr=Wa(e,t);e:do try{if(Je!==0&&Le!==null){t=Le;var c=cn;t:switch(Je){case 1:Je=0,cn=null,ir(e,t,c,1);break;case 2:case 9:if(ah(c)){Je=0,cn=null,$m(t);break}t=function(){Je!==2&&Je!==9||at!==e||(Je=7),Gn(e)},c.then(t,t);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:ah(c)?(Je=0,cn=null,$m(t)):(Je=0,cn=null,ir(e,t,c,7));break;case 5:var m=null;switch(Le.tag){case 26:m=Le.memoizedState;case 5:case 27:var y=Le;if(m?zp(m):y.stateNode.complete){Je=0,cn=null;var O=y.sibling;if(O!==null)Le=O;else{var j=y.return;j!==null?(Le=j,qu(j)):Le=null}break t}}Je=0,cn=null,ir(e,t,c,5);break;case 6:Je=0,cn=null,ir(e,t,c,6);break;case 8:Xc(),ht=6;break e;default:throw Error(o(462))}}S1();break}catch(G){Gm(e,G)}while(!0);return la=ol=null,q.H=r,q.A=s,Qe=a,Le!==null?0:(at=null,He=0,au(),ht)}function S1(){for(;Le!==null&&!ki();)Xm(Le)}function Xm(e){var t=ym(e.alternate,e,ha);e.memoizedProps=e.pendingProps,t===null?qu(e):Le=t}function $m(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=fm(a,t,t.pendingProps,t.type,void 0,He);break;case 11:t=fm(a,t,t.pendingProps,t.type.render,t.ref,He);break;case 5:sc(t);default:bm(a,t),t=Le=Iv(t,ha),t=ym(a,t,ha)}e.memoizedProps=e.pendingProps,t===null?qu(e):Le=t}function ir(e,t,a,r){la=ol=null,sc(t),Zl=null,Ir=0;var s=t.return;try{if(o1(e,s,t,a,He)){ht=1,Cu(e,En(a,e.current)),Le=null;return}}catch(c){if(s!==null)throw Le=s,c;ht=1,Cu(e,En(a,e.current)),Le=null;return}t.flags&32768?(je||r===1?e=!0:nr||(He&536870912)!==0?e=!1:(wa=e=!0,(r===2||r===9||r===3||r===6)&&(r=on.current,r!==null&&r.tag===13&&(r.flags|=16384))),Zm(t,e)):qu(t)}function qu(e){var t=e;do{if((t.flags&32768)!==0){Zm(t,wa);return}e=t.return;var a=f1(t.alternate,t,ha);if(a!==null){Le=a;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);ht===0&&(ht=5)}function Zm(e,t){do{var a=d1(e.alternate,e);if(a!==null){a.flags&=32767,Le=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Le=e;return}Le=e=a}while(e!==null);ht=6,Le=null}function Km(e,t,a,r,s,c,m,y,O){e.cancelPendingCommit=null;do ju();while(Ct!==0);if((Qe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(c=t.lanes|t.childLanes,c|=Us,W0(e,a,c,m,y,O),e===at&&(Le=at=null,He=0),lr=t,Ha=e,ma=a,Yc=c,Qc=s,jm=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,A1(Mr,function(){return tp(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=q.T,q.T=null,s=K.p,K.p=2,m=Qe,Qe|=4;try{v1(e,t,a)}finally{Qe=m,K.p=s,q.T=r}}Ct=1,Jm(),Pm(),Wm()}}function Jm(){if(Ct===1){Ct=0;var e=Ha,t=lr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=q.T,q.T=null;var r=K.p;K.p=2;var s=Qe;Qe|=4;try{Nm(t,e);var c=uf,m=Hv(e.containerInfo),y=c.focusedElem,O=c.selectionRange;if(m!==y&&y&&y.ownerDocument&&Uv(y.ownerDocument.documentElement,y)){if(O!==null&&Ns(y)){var j=O.start,G=O.end;if(G===void 0&&(G=j),"selectionStart"in y)y.selectionStart=j,y.selectionEnd=Math.min(G,y.value.length);else{var $=y.ownerDocument||document,B=$&&$.defaultView||window;if(B.getSelection){var k=B.getSelection(),de=y.textContent.length,Te=Math.min(O.start,de),nt=O.end===void 0?Te:Math.min(O.end,de);!k.extend&&Te>nt&&(m=nt,nt=Te,Te=m);var V=Lv(y,Te),R=Lv(y,nt);if(V&&R&&(k.rangeCount!==1||k.anchorNode!==V.node||k.anchorOffset!==V.offset||k.focusNode!==R.node||k.focusOffset!==R.offset)){var H=$.createRange();H.setStart(V.node,V.offset),k.removeAllRanges(),Te>nt?(k.addRange(H),k.extend(R.node,R.offset)):(H.setEnd(R.node,R.offset),k.addRange(H))}}}}for($=[],k=y;k=k.parentNode;)k.nodeType===1&&$.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<$.length;y++){var X=$[y];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Ju=!!rf,uf=rf=null}finally{Qe=s,K.p=r,q.T=a}}e.current=t,Ct=2}}function Pm(){if(Ct===2){Ct=0;var e=Ha,t=lr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=q.T,q.T=null;var r=K.p;K.p=2;var s=Qe;Qe|=4;try{Tm(e,t.alternate,t)}finally{Qe=s,K.p=r,q.T=a}}Ct=3}}function Wm(){if(Ct===4||Ct===3){Ct=0,cs();var e=Ha,t=lr,a=ma,r=jm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ct=5:(Ct=0,lr=Ha=null,ep(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ua=null),ds(a),t=t.stateNode,Z&&typeof Z.onCommitFiberRoot=="function")try{Z.onCommitFiberRoot(w,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=q.T,s=K.p,K.p=2,q.T=null;try{for(var c=e.onRecoverableError,m=0;m<r.length;m++){var y=r[m];c(y.value,{componentStack:y.stack})}}finally{q.T=t,K.p=s}}(ma&3)!==0&&ju(),Gn(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===Ic?si++:(si=0,Ic=e):si=0,ci(0)}}function ep(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yr(t)))}function ju(){return Jm(),Pm(),Wm(),tp()}function tp(){if(Ct!==5)return!1;var e=Ha,t=Yc;Yc=0;var a=ds(ma),r=q.T,s=K.p;try{K.p=32>a?32:a,q.T=null,a=Qc,Qc=null;var c=Ha,m=ma;if(Ct=0,lr=Ha=null,ma=0,(Qe&6)!==0)throw Error(o(331));var y=Qe;if(Qe|=4,Um(c.current),zm(c,c.current,m,a),Qe=y,ci(0,!1),Z&&typeof Z.onPostCommitFiberRoot=="function")try{Z.onPostCommitFiberRoot(w,c)}catch{}return!0}finally{K.p=s,q.T=r,ep(e,t)}}function np(e,t,a){t=En(a,t),t=Ac(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Rr(e,2),Gn(e))}function Pe(e,t,a){if(e.tag===3)np(e,e,a);else for(;t!==null;){if(t.tag===3){np(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ua===null||!Ua.has(r))){e=En(a,e),a=am(2),r=Ra(t,a,2),r!==null&&(lm(a,r,t,e),Rr(r,2),Gn(r));break}}t=t.return}}function Zc(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new p1;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(a)||(kc=!0,s.add(a),e=E1.bind(null,e,t,a),t.then(e,e))}function E1(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,at===e&&(He&a)===a&&(ht===4||ht===3&&(He&62914560)===He&&300>jt()-zu?(Qe&2)===0&&rr(e,0):Fc|=a,ar===He&&(ar=0)),Gn(e)}function ap(e,t){t===0&&(t=Qi()),e=rl(e,t),e!==null&&(Rr(e,t),Gn(e))}function O1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ap(e,a)}function _1(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),ap(e,a)}function A1(e,t){return Pa(e,t)}var Bu=null,ur=null,Kc=!1,ku=!1,Jc=!1,ja=0;function Gn(e){e!==ur&&e.next===null&&(ur===null?Bu=ur=e:ur=ur.next=e),ku=!0,Kc||(Kc=!0,T1())}function ci(e,t){if(!Jc&&ku){Jc=!0;do for(var a=!1,r=Bu;r!==null;){if(e!==0){var s=r.pendingLanes;if(s===0)var c=0;else{var m=r.suspendedLanes,y=r.pingedLanes;c=(1<<31-ne(42|e)+1)-1,c&=s&~(m&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,up(r,c))}else c=He,c=jn(r,r===at?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||Wa(r,c)||(a=!0,up(r,c));r=r.next}while(a);Jc=!1}}function C1(){lp()}function lp(){ku=Kc=!1;var e=0;ja!==0&&U1()&&(e=ja);for(var t=jt(),a=null,r=Bu;r!==null;){var s=r.next,c=rp(r,t);c===0?(r.next=null,a===null?Bu=s:a.next=s,s===null&&(ur=a)):(a=r,(e!==0||(c&3)!==0)&&(ku=!0)),r=s}Ct!==0&&Ct!==5||ci(e),ja!==0&&(ja=0)}function rp(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-ne(c),y=1<<m,O=s[m];O===-1?((y&a)===0||(y&r)!==0)&&(s[m]=el(y,t)):O<=t&&(e.expiredLanes|=y),c&=~y}if(t=at,a=He,a=jn(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(Je===2||Je===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&xr(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Wa(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&xr(r),ds(a)){case 2:case 8:a=Yi;break;case 32:a=Mr;break;case 268435456:a=Dr;break;default:a=Mr}return r=ip.bind(null,e),a=Pa(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&xr(r),e.callbackPriority=2,e.callbackNode=null,2}function ip(e,t){if(Ct!==0&&Ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ju()&&e.callbackNode!==a)return null;var r=He;return r=jn(e,e===at?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(km(e,r,t),rp(e,jt()),e.callbackNode!=null&&e.callbackNode===a?ip.bind(null,e):null)}function up(e,t){if(ju())return null;km(e,t,!0)}function T1(){q1(function(){(Qe&6)!==0?Pa(Gi,C1):lp()})}function Pc(){if(ja===0){var e=Il;e===0&&(e=Fe,Fe<<=1,(Fe&261888)===0&&(Fe=256)),ja=e}return ja}function op(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Zi(""+e)}function sp(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function x1(e,t,a,r,s){if(t==="submit"&&a&&a.stateNode===s){var c=op((s[Xt]||null).action),m=r.submitter;m&&(t=(t=m[Xt]||null)?op(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var y=new Wi("action","action",null,r,s);e.push({event:y,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ja!==0){var O=m?sp(s,m):new FormData(s);gc(a,{pending:!0,data:O,method:s.method,action:c},null,O)}}else typeof c=="function"&&(y.preventDefault(),O=m?sp(s,m):new FormData(s),gc(a,{pending:!0,data:O,method:s.method,action:c},c,O))},currentTarget:s}]})}}for(var Wc=0;Wc<Ls.length;Wc++){var ef=Ls[Wc],M1=ef.toLowerCase(),D1=ef[0].toUpperCase()+ef.slice(1);Rn(M1,"on"+D1)}Rn(Bv,"onAnimationEnd"),Rn(kv,"onAnimationIteration"),Rn(Fv,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(Qb,"onTransitionRun"),Rn(Ib,"onTransitionStart"),Rn(Xb,"onTransitionCancel"),Rn(Gv,"onTransitionEnd"),Vl("onMouseEnter",["mouseout","mouseover"]),Vl("onMouseLeave",["mouseout","mouseover"]),Vl("onPointerEnter",["pointerout","pointerover"]),Vl("onPointerLeave",["pointerout","pointerover"]),tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tl("onBeforeInput",["compositionend","keypress","textInput","paste"]),tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fi="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(" "),R1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fi));function cp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],s=r.event;r=r.listeners;e:{var c=void 0;if(t)for(var m=r.length-1;0<=m;m--){var y=r[m],O=y.instance,j=y.currentTarget;if(y=y.listener,O!==c&&s.isPropagationStopped())break e;c=y,s.currentTarget=j;try{c(s)}catch(G){nu(G)}s.currentTarget=null,c=O}else for(m=0;m<r.length;m++){if(y=r[m],O=y.instance,j=y.currentTarget,y=y.listener,O!==c&&s.isPropagationStopped())break e;c=y,s.currentTarget=j;try{c(s)}catch(G){nu(G)}s.currentTarget=null,c=O}}}}function Ue(e,t){var a=t[vs];a===void 0&&(a=t[vs]=new Set);var r=e+"__bubble";a.has(r)||(fp(t,e,2,!1),a.add(r))}function tf(e,t,a){var r=0;t&&(r|=4),fp(a,e,r,t)}var Fu="_reactListening"+Math.random().toString(36).slice(2);function nf(e){if(!e[Fu]){e[Fu]=!0,lv.forEach(function(a){a!=="selectionchange"&&(R1.has(a)||tf(a,!1,e),tf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fu]||(t[Fu]=!0,tf("selectionchange",!1,t))}}function fp(e,t,a,r){switch(Bp(t)){case 2:var s=lS;break;case 8:s=rS;break;default:s=gf}a=s.bind(null,t,a,e),s=void 0,!Os||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function af(e,t,a,r,s){var c=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var m=r.tag;if(m===3||m===4){var y=r.stateNode.containerInfo;if(y===s)break;if(m===4)for(m=r.return;m!==null;){var O=m.tag;if((O===3||O===4)&&m.stateNode.containerInfo===s)return;m=m.return}for(;y!==null;){if(m=Dl(y),m===null)return;if(O=m.tag,O===5||O===6||O===26||O===27){r=c=m;continue e}y=y.parentNode}}r=r.return}pv(function(){var j=c,G=Ss(a),$=[];e:{var B=Yv.get(e);if(B!==void 0){var k=Wi,de=e;switch(e){case"keypress":if(Ji(a)===0)break e;case"keydown":case"keyup":k=_b;break;case"focusin":de="focus",k=Ts;break;case"focusout":de="blur",k=Ts;break;case"beforeblur":case"afterblur":k=Ts;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=bv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=fb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Tb;break;case Bv:case kv:case Fv:k=hb;break;case Gv:k=Mb;break;case"scroll":case"scrollend":k=sb;break;case"wheel":k=Rb;break;case"copy":case"cut":case"paste":k=pb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Ev;break;case"toggle":case"beforetoggle":k=Vb}var Te=(t&4)!==0,nt=!Te&&(e==="scroll"||e==="scrollend"),V=Te?B!==null?B+"Capture":null:B;Te=[];for(var R=j,H;R!==null;){var X=R;if(H=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||H===null||V===null||(X=zr(R,V),X!=null&&Te.push(di(R,X,H))),nt)break;R=R.return}0<Te.length&&(B=new k(B,de,null,a,G),$.push({event:B,listeners:Te}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",B&&a!==bs&&(de=a.relatedTarget||a.fromElement)&&(Dl(de)||de[Ml]))break e;if((k||B)&&(B=G.window===G?G:(B=G.ownerDocument)?B.defaultView||B.parentWindow:window,k?(de=a.relatedTarget||a.toElement,k=j,de=de?Dl(de):null,de!==null&&(nt=f(de),Te=de.tag,de!==nt||Te!==5&&Te!==27&&Te!==6)&&(de=null)):(k=null,de=j),k!==de)){if(Te=bv,X="onMouseLeave",V="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(Te=Ev,X="onPointerLeave",V="onPointerEnter",R="pointer"),nt=k==null?B:Vr(k),H=de==null?B:Vr(de),B=new Te(X,R+"leave",k,a,G),B.target=nt,B.relatedTarget=H,X=null,Dl(G)===j&&(Te=new Te(V,R+"enter",de,a,G),Te.target=H,Te.relatedTarget=nt,X=Te),nt=X,k&&de)t:{for(Te=N1,V=k,R=de,H=0,X=V;X;X=Te(X))H++;X=0;for(var be=R;be;be=Te(be))X++;for(;0<H-X;)V=Te(V),H--;for(;0<X-H;)R=Te(R),X--;for(;H--;){if(V===R||R!==null&&V===R.alternate){Te=V;break t}V=Te(V),R=Te(R)}Te=null}else Te=null;k!==null&&dp($,B,k,Te,!1),de!==null&&nt!==null&&dp($,nt,de,Te,!0)}}e:{if(B=j?Vr(j):window,k=B.nodeName&&B.nodeName.toLowerCase(),k==="select"||k==="input"&&B.type==="file")var Ge=Dv;else if(xv(B))if(Rv)Ge=Fb;else{Ge=Bb;var me=jb}else k=B.nodeName,!k||k.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?j&&gs(j.elementType)&&(Ge=Dv):Ge=kb;if(Ge&&(Ge=Ge(e,j))){Mv($,Ge,a,G);break e}me&&me(e,B,j),e==="focusout"&&j&&B.type==="number"&&j.memoizedProps.value!=null&&ys(B,"number",B.value)}switch(me=j?Vr(j):window,e){case"focusin":(xv(me)||me.contentEditable==="true")&&(ql=me,Vs=j,kr=null);break;case"focusout":kr=Vs=ql=null;break;case"mousedown":zs=!0;break;case"contextmenu":case"mouseup":case"dragend":zs=!1,qv($,a,G);break;case"selectionchange":if(Yb)break;case"keydown":case"keyup":qv($,a,G)}var we;if(Ms)e:{switch(e){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else Hl?Cv(e,a)&&(qe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(qe="onCompositionStart");qe&&(Ov&&a.locale!=="ko"&&(Hl||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&Hl&&(we=yv()):(_a=G,_s="value"in _a?_a.value:_a.textContent,Hl=!0)),me=Gu(j,qe),0<me.length&&(qe=new Sv(qe,e,null,a,G),$.push({event:qe,listeners:me}),we?qe.data=we:(we=Tv(a),we!==null&&(qe.data=we)))),(we=wb?Lb(e,a):Ub(e,a))&&(qe=Gu(j,"onBeforeInput"),0<qe.length&&(me=new Sv("onBeforeInput","beforeinput",null,a,G),$.push({event:me,listeners:qe}),me.data=we)),x1($,e,j,a,G)}cp($,t)})}function di(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Gu(e,t){for(var a=t+"Capture",r=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=zr(e,a),s!=null&&r.unshift(di(e,s,c)),s=zr(e,t),s!=null&&r.push(di(e,s,c))),e.tag===3)return r;e=e.return}return[]}function N1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dp(e,t,a,r,s){for(var c=t._reactName,m=[];a!==null&&a!==r;){var y=a,O=y.alternate,j=y.stateNode;if(y=y.tag,O!==null&&O===r)break;y!==5&&y!==26&&y!==27||j===null||(O=j,s?(j=zr(a,c),j!=null&&m.unshift(di(a,j,O))):s||(j=zr(a,c),j!=null&&m.push(di(a,j,O)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var V1=/\r\n?/g,z1=/\u0000|\uFFFD/g;function vp(e){return(typeof e=="string"?e:""+e).replace(V1,`
|
|
9
|
-
`).replace(z1,"")}function hp(e,t){return t=vp(t),vp(e)===t}function tt(e,t,a,r,s,c){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||wl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&wl(e,""+r);break;case"className":Xi(e,"class",r);break;case"tabIndex":Xi(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Xi(e,a,r);break;case"style":hv(e,r,c);break;case"data":if(t!=="object"){Xi(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Zi(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&tt(e,t,"name",s.name,s,null),tt(e,t,"formEncType",s.formEncType,s,null),tt(e,t,"formMethod",s.formMethod,s,null),tt(e,t,"formTarget",s.formTarget,s,null)):(tt(e,t,"encType",s.encType,s,null),tt(e,t,"method",s.method,s,null),tt(e,t,"target",s.target,s,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Zi(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=ea);break;case"onScroll":r!=null&&Ue("scroll",e);break;case"onScrollEnd":r!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(a=r.__html,a!=null){if(s.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=Zi(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),Ii(e,"popover",r);break;case"xlinkActuate":Wn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Wn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Wn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Wn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Wn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Wn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Ii(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=ub.get(a)||a,Ii(e,a,r))}}function lf(e,t,a,r,s,c){switch(a){case"style":hv(e,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(a=r.__html,a!=null){if(s.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof r=="string"?wl(e,r):(typeof r=="number"||typeof r=="bigint")&&wl(e,""+r);break;case"onScroll":r!=null&&Ue("scroll",e);break;case"onScrollEnd":r!=null&&Ue("scrollend",e);break;case"onClick":r!=null&&(e.onclick=ea);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rv.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),c=e[Xt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof r=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,s);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):Ii(e,a,r)}}}function wt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",e),Ue("load",e);var r=!1,s=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":r=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:tt(e,t,c,m,a,null)}}s&&tt(e,t,"srcSet",a.srcSet,a,null),r&&tt(e,t,"src",a.src,a,null);return;case"input":Ue("invalid",e);var y=c=m=s=null,O=null,j=null;for(r in a)if(a.hasOwnProperty(r)){var G=a[r];if(G!=null)switch(r){case"name":s=G;break;case"type":m=G;break;case"checked":O=G;break;case"defaultChecked":j=G;break;case"value":c=G;break;case"defaultValue":y=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,t));break;default:tt(e,t,r,G,a,null)}}cv(e,c,y,O,j,m,s,!1);return;case"select":Ue("invalid",e),r=m=c=null;for(s in a)if(a.hasOwnProperty(s)&&(y=a[s],y!=null))switch(s){case"value":c=y;break;case"defaultValue":m=y;break;case"multiple":r=y;default:tt(e,t,s,y,a,null)}t=c,a=m,e.multiple=!!r,t!=null?zl(e,!!r,t,!1):a!=null&&zl(e,!!r,a,!0);return;case"textarea":Ue("invalid",e),c=s=r=null;for(m in a)if(a.hasOwnProperty(m)&&(y=a[m],y!=null))switch(m){case"value":r=y;break;case"defaultValue":s=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(o(91));break;default:tt(e,t,m,y,a,null)}dv(e,r,s,c);return;case"option":for(O in a)a.hasOwnProperty(O)&&(r=a[O],r!=null)&&(O==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":tt(e,t,O,r,a,null));return;case"dialog":Ue("beforetoggle",e),Ue("toggle",e),Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(r=0;r<fi.length;r++)Ue(fi[r],e);break;case"image":Ue("error",e),Ue("load",e);break;case"details":Ue("toggle",e);break;case"embed":case"source":case"link":Ue("error",e),Ue("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(j in a)if(a.hasOwnProperty(j)&&(r=a[j],r!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:tt(e,t,j,r,a,null)}return;default:if(gs(t)){for(G in a)a.hasOwnProperty(G)&&(r=a[G],r!==void 0&&lf(e,t,G,r,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(r=a[y],r!=null&&tt(e,t,y,r,a,null))}function w1(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,m=null,y=null,O=null,j=null,G=null;for(k in a){var $=a[k];if(a.hasOwnProperty(k)&&$!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":O=$;default:r.hasOwnProperty(k)||tt(e,t,k,null,r,$)}}for(var B in r){var k=r[B];if($=a[B],r.hasOwnProperty(B)&&(k!=null||$!=null))switch(B){case"type":c=k;break;case"name":s=k;break;case"checked":j=k;break;case"defaultChecked":G=k;break;case"value":m=k;break;case"defaultValue":y=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,t));break;default:k!==$&&tt(e,t,B,k,r,$)}}ps(e,m,y,O,j,G,c,s);return;case"select":k=m=y=B=null;for(c in a)if(O=a[c],a.hasOwnProperty(c)&&O!=null)switch(c){case"value":break;case"multiple":k=O;default:r.hasOwnProperty(c)||tt(e,t,c,null,r,O)}for(s in r)if(c=r[s],O=a[s],r.hasOwnProperty(s)&&(c!=null||O!=null))switch(s){case"value":B=c;break;case"defaultValue":y=c;break;case"multiple":m=c;default:c!==O&&tt(e,t,s,c,r,O)}t=y,a=m,r=k,B!=null?zl(e,!!a,B,!1):!!r!=!!a&&(t!=null?zl(e,!!a,t,!0):zl(e,!!a,a?[]:"",!1));return;case"textarea":k=B=null;for(y in a)if(s=a[y],a.hasOwnProperty(y)&&s!=null&&!r.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:tt(e,t,y,null,r,s)}for(m in r)if(s=r[m],c=a[m],r.hasOwnProperty(m)&&(s!=null||c!=null))switch(m){case"value":B=s;break;case"defaultValue":k=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==c&&tt(e,t,m,s,r,c)}fv(e,B,k);return;case"option":for(var de in a)B=a[de],a.hasOwnProperty(de)&&B!=null&&!r.hasOwnProperty(de)&&(de==="selected"?e.selected=!1:tt(e,t,de,null,r,B));for(O in r)B=r[O],k=a[O],r.hasOwnProperty(O)&&B!==k&&(B!=null||k!=null)&&(O==="selected"?e.selected=B&&typeof B!="function"&&typeof B!="symbol":tt(e,t,O,B,r,k));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 Te in a)B=a[Te],a.hasOwnProperty(Te)&&B!=null&&!r.hasOwnProperty(Te)&&tt(e,t,Te,null,r,B);for(j in r)if(B=r[j],k=a[j],r.hasOwnProperty(j)&&B!==k&&(B!=null||k!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,t));break;default:tt(e,t,j,B,r,k)}return;default:if(gs(t)){for(var nt in a)B=a[nt],a.hasOwnProperty(nt)&&B!==void 0&&!r.hasOwnProperty(nt)&&lf(e,t,nt,void 0,r,B);for(G in r)B=r[G],k=a[G],!r.hasOwnProperty(G)||B===k||B===void 0&&k===void 0||lf(e,t,G,B,r,k);return}}for(var V in a)B=a[V],a.hasOwnProperty(V)&&B!=null&&!r.hasOwnProperty(V)&&tt(e,t,V,null,r,B);for($ in r)B=r[$],k=a[$],!r.hasOwnProperty($)||B===k||B==null&&k==null||tt(e,t,$,B,r,k)}function mp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function L1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var s=a[r],c=s.transferSize,m=s.initiatorType,y=s.duration;if(c&&y&&mp(m)){for(m=0,y=s.responseEnd,r+=1;r<a.length;r++){var O=a[r],j=O.startTime;if(j>y)break;var G=O.transferSize,$=O.initiatorType;G&&mp($)&&(O=O.responseEnd,m+=G*(O<y?1:(y-j)/(O-j)))}if(--r,t+=8*(c+m)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var rf=null,uf=null;function Yu(e){return e.nodeType===9?e:e.ownerDocument}function pp(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 yp(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 of(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 sf=null;function U1(){var e=window.event;return e&&e.type==="popstate"?e===sf?!1:(sf=e,!0):(sf=null,!1)}var gp=typeof setTimeout=="function"?setTimeout:void 0,H1=typeof clearTimeout=="function"?clearTimeout:void 0,bp=typeof Promise=="function"?Promise:void 0,q1=typeof queueMicrotask=="function"?queueMicrotask:typeof bp<"u"?function(e){return bp.resolve(null).then(e).catch(j1)}:gp;function j1(e){setTimeout(function(){throw e})}function Ba(e){return e==="head"}function Sp(e,t){var a=t,r=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(s),fr(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")vi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,vi(a);for(var c=a.firstChild;c;){var m=c.nextSibling,y=c.nodeName;c[Nr]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&vi(e.ownerDocument.body);a=s}while(a);fr(t)}function Ep(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function cf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":cf(a),hs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function B1(e,t,a,r){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Nr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Tn(e.nextSibling),e===null)break}return null}function k1(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Tn(e.nextSibling),e===null))return null;return e}function Op(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 ff(e){return e.data==="$?"||e.data==="$~"}function df(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function F1(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function 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 vf=null;function _p(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Tn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Ap(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Cp(e,t,a){switch(t=Yu(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function vi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);hs(e)}var xn=new Map,Tp=new Set;function Qu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var pa=K.d;K.d={f:G1,r:Y1,D:Q1,C:I1,L:X1,m:$1,X:K1,S:Z1,M:J1};function G1(){var e=pa.f(),t=Uu();return e||t}function Y1(e){var t=Rl(e);t!==null&&t.tag===5&&t.type==="form"?Gh(t):pa.r(e)}var or=typeof document>"u"?null:document;function xp(e,t,a){var r=or;if(r&&typeof t=="string"&&t){var s=bn(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),Tp.has(s)||(Tp.add(s),e={rel:e,crossOrigin:a,href:t},r.querySelector(s)===null&&(t=r.createElement("link"),wt(t,"link",e),xt(t),r.head.appendChild(t)))}}function Q1(e){pa.D(e),xp("dns-prefetch",e,null)}function I1(e,t){pa.C(e,t),xp("preconnect",e,t)}function X1(e,t,a){pa.L(e,t,a);var r=or;if(r&&e&&t){var s='link[rel="preload"][as="'+bn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+bn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+bn(a.imageSizes)+'"]')):s+='[href="'+bn(e)+'"]';var c=s;switch(t){case"style":c=sr(e);break;case"script":c=cr(e)}xn.has(c)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),xn.set(c,e),r.querySelector(s)!==null||t==="style"&&r.querySelector(hi(c))||t==="script"&&r.querySelector(mi(c))||(t=r.createElement("link"),wt(t,"link",e),xt(t),r.head.appendChild(t)))}}function $1(e,t){pa.m(e,t);var a=or;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+bn(r)+'"][href="'+bn(e)+'"]',c=s;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=cr(e)}if(!xn.has(c)&&(e=b({rel:"modulepreload",href:e},t),xn.set(c,e),a.querySelector(s)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(mi(c)))return}r=a.createElement("link"),wt(r,"link",e),xt(r),a.head.appendChild(r)}}}function Z1(e,t,a){pa.S(e,t,a);var r=or;if(r&&e){var s=Nl(r).hoistableStyles,c=sr(e);t=t||"default";var m=s.get(c);if(!m){var y={loading:0,preload:null};if(m=r.querySelector(hi(c)))y.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=xn.get(c))&&hf(e,a);var O=m=r.createElement("link");xt(O),wt(O,"link",e),O._p=new Promise(function(j,G){O.onload=j,O.onerror=G}),O.addEventListener("load",function(){y.loading|=1}),O.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Iu(m,t,r)}m={type:"stylesheet",instance:m,count:1,state:y},s.set(c,m)}}}function K1(e,t){pa.X(e,t);var a=or;if(a&&e){var r=Nl(a).hoistableScripts,s=cr(e),c=r.get(s);c||(c=a.querySelector(mi(s)),c||(e=b({src:e,async:!0},t),(t=xn.get(s))&&mf(e,t),c=a.createElement("script"),xt(c),wt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(s,c))}}function J1(e,t){pa.M(e,t);var a=or;if(a&&e){var r=Nl(a).hoistableScripts,s=cr(e),c=r.get(s);c||(c=a.querySelector(mi(s)),c||(e=b({src:e,async:!0,type:"module"},t),(t=xn.get(s))&&mf(e,t),c=a.createElement("script"),xt(c),wt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(s,c))}}function Mp(e,t,a,r){var s=(s=Ce.current)?Qu(s):null;if(!s)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=sr(a.href),a=Nl(s).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=sr(a.href);var c=Nl(s).hoistableStyles,m=c.get(e);if(m||(s=s.ownerDocument||s,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=s.querySelector(hi(e)))&&!c._p&&(m.instance=c,m.state.loading=5),xn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},xn.set(e,a),c||P1(s,e,a,m.state))),t&&r===null)throw Error(o(528,""));return m}if(t&&r!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=cr(a),a=Nl(s).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function sr(e){return'href="'+bn(e)+'"'}function hi(e){return'link[rel="stylesheet"]['+e+"]"}function Dp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function P1(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),wt(t,"link",a),xt(t),e.head.appendChild(t))}function cr(e){return'[src="'+bn(e)+'"]'}function mi(e){return"script[async]"+e}function Rp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+bn(a.href)+'"]');if(r)return t.instance=r,xt(r),r;var s=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),xt(r),wt(r,"style",s),Iu(r,a.precedence,e),t.instance=r;case"stylesheet":s=sr(a.href);var c=e.querySelector(hi(s));if(c)return t.state.loading|=4,t.instance=c,xt(c),c;r=Dp(a),(s=xn.get(s))&&hf(r,s),c=(e.ownerDocument||e).createElement("link"),xt(c);var m=c;return m._p=new Promise(function(y,O){m.onload=y,m.onerror=O}),wt(c,"link",r),t.state.loading|=4,Iu(c,a.precedence,e),t.instance=c;case"script":return c=cr(a.src),(s=e.querySelector(mi(c)))?(t.instance=s,xt(s),s):(r=a,(s=xn.get(c))&&(r=b({},a),mf(r,s)),e=e.ownerDocument||e,s=e.createElement("script"),xt(s),wt(s,"link",r),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Iu(r,a.precedence,e));return t.instance}function Iu(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=r.length?r[r.length-1]:null,c=s,m=0;m<r.length;m++){var y=r[m];if(y.dataset.precedence===t)c=y;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function hf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function mf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Xu=null;function Np(e,t,a){if(Xu===null){var r=new Map,s=Xu=new Map;s.set(a,r)}else s=Xu,r=s.get(a),r||(r=new Map,s.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var c=a[s];if(!(c[Nr]||c[Rt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var y=r.get(m);y?y.push(c):r.set(m,[c])}}return r}function Vp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function W1(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function zp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function eS(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=sr(r.href),c=t.querySelector(hi(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=$u.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,xt(c);return}c=t.ownerDocument||t,r=Dp(r),(s=xn.get(s))&&hf(r,s),c=c.createElement("link"),xt(c);var m=c;m._p=new Promise(function(y,O){m.onload=y,m.onerror=O}),wt(c,"link",r),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=$u.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var pf=0;function tS(e,t){return e.stylesheets&&e.count===0&&Ku(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&pf===0&&(pf=62500*L1());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>pf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(s)}}:null}function $u(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zu=null;function Ku(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zu=new Map,t.forEach(nS,e),Zu=null,$u.call(e))}function nS(e,t){if(!(t.state.loading&4)){var a=Zu.get(e);if(a)var r=a.get(null);else{a=new Map,Zu.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var m=s[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),r=m)}r&&a.set(null,r)}s=t.instance,m=s.getAttribute("data-precedence"),c=a.get(m)||r,c===r&&a.set(null,s),a.set(m,s),this.count++,r=$u.bind(this),s.addEventListener("load",r),s.addEventListener("error",r),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var pi={$$typeof:U,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function aS(e,t,a,r,s,c,m,y,O){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=xl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xl(0),this.hiddenUpdates=xl(null),this.identifierPrefix=r,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function wp(e,t,a,r,s,c,m,y,O,j,G,$){return e=new aS(e,t,a,m,O,j,G,$,y),t=1,c===!0&&(t|=24),c=un(3,null,null,t),e.current=c,c.stateNode=e,t=$s(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:a,cache:t},Ps(c),e}function Lp(e){return e?(e=kl,e):kl}function Up(e,t,a,r,s,c){s=Lp(s),r.context===null?r.context=s:r.pendingContext=s,r=Da(t),r.payload={element:a},c=c===void 0?null:c,c!==null&&(r.callback=c),a=Ra(e,r,t),a!==null&&(Wt(a,e,t),$r(a,e,t))}function Hp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function yf(e,t){Hp(e,t),(e=e.alternate)&&Hp(e,t)}function qp(e){if(e.tag===13||e.tag===31){var t=rl(e,67108864);t!==null&&Wt(t,e,67108864),yf(e,67108864)}}function jp(e){if(e.tag===13||e.tag===31){var t=dn();t=fs(t);var a=rl(e,t);a!==null&&Wt(a,e,t),yf(e,t)}}var Ju=!0;function lS(e,t,a,r){var s=q.T;q.T=null;var c=K.p;try{K.p=2,gf(e,t,a,r)}finally{K.p=c,q.T=s}}function rS(e,t,a,r){var s=q.T;q.T=null;var c=K.p;try{K.p=8,gf(e,t,a,r)}finally{K.p=c,q.T=s}}function gf(e,t,a,r){if(Ju){var s=bf(r);if(s===null)af(e,t,r,Pu,a),kp(e,r);else if(uS(s,e,t,a,r))r.stopPropagation();else if(kp(e,r),t&4&&-1<iS.indexOf(e)){for(;s!==null;){var c=Rl(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=Dt(c.pendingLanes);if(m!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;m;){var O=1<<31-ne(m);y.entanglements[1]|=O,m&=~O}Gn(c),(Qe&6)===0&&(wu=jt()+500,ci(0))}}break;case 31:case 13:y=rl(c,2),y!==null&&Wt(y,c,2),Uu(),yf(c,2)}if(c=bf(r),c===null&&af(e,t,r,Pu,a),c===s)break;s=c}s!==null&&r.stopPropagation()}else af(e,t,r,null,a)}}function bf(e){return e=Ss(e),Sf(e)}var Pu=null;function Sf(e){if(Pu=null,e=Dl(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Pu=e,null}function Bp(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(Fi()){case Gi:return 2;case Yi:return 8;case Mr:case Jd:return 32;case Dr:return 268435456;default:return 32}default:return 32}}var Ef=!1,ka=null,Fa=null,Ga=null,yi=new Map,gi=new Map,Ya=[],iS="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 kp(e,t){switch(e){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":Fa=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":yi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gi.delete(t.pointerId)}}function bi(e,t,a,r,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:c,targetContainers:[s]},t!==null&&(t=Rl(t),t!==null&&qp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function uS(e,t,a,r,s){switch(t){case"focusin":return ka=bi(ka,e,t,a,r,s),!0;case"dragenter":return Fa=bi(Fa,e,t,a,r,s),!0;case"mouseover":return Ga=bi(Ga,e,t,a,r,s),!0;case"pointerover":var c=s.pointerId;return yi.set(c,bi(yi.get(c)||null,e,t,a,r,s)),!0;case"gotpointercapture":return c=s.pointerId,gi.set(c,bi(gi.get(c)||null,e,t,a,r,s)),!0}return!1}function Fp(e){var t=Dl(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,nv(e.priority,function(){jp(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,nv(e.priority,function(){jp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=bf(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);bs=r,a.target.dispatchEvent(r),bs=null}else return t=Rl(a),t!==null&&qp(t),e.blockedOn=a,!1;t.shift()}return!0}function Gp(e,t,a){Wu(e)&&a.delete(t)}function oS(){Ef=!1,ka!==null&&Wu(ka)&&(ka=null),Fa!==null&&Wu(Fa)&&(Fa=null),Ga!==null&&Wu(Ga)&&(Ga=null),yi.forEach(Gp),gi.forEach(Gp)}function eo(e,t){e.blockedOn===t&&(e.blockedOn=null,Ef||(Ef=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,oS)))}var to=null;function Yp(e){to!==e&&(to=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){to===e&&(to=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],s=e[t+2];if(typeof r!="function"){if(Sf(r||a)===null)continue;break}var c=Rl(a);c!==null&&(e.splice(t,3),t-=3,gc(c,{pending:!0,data:s,method:a.method,action:r},r,s))}}))}function fr(e){function t(O){return eo(O,e)}ka!==null&&eo(ka,e),Fa!==null&&eo(Fa,e),Ga!==null&&eo(Ga,e),yi.forEach(t),gi.forEach(t);for(var a=0;a<Ya.length;a++){var r=Ya[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ya.length&&(a=Ya[0],a.blockedOn===null);)Fp(a),a.blockedOn===null&&Ya.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var s=a[r],c=a[r+1],m=s[Xt]||null;if(typeof c=="function")m||Yp(a);else if(m){var y=null;if(c&&c.hasAttribute("formAction")){if(s=c,m=c[Xt]||null)y=m.formAction;else if(Sf(s)!==null)continue}else y=m.action;typeof y=="function"?a[r+1]=y:(a.splice(r,3),r-=3),Yp(a)}}}function Qp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return s=m})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Of(e){this._internalRoot=e}no.prototype.render=Of.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,r=dn();Up(a,r,e,t,null,null)},no.prototype.unmount=Of.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Up(e.current,2,null,e,null,null),Uu(),t[Ml]=null}};function no(e){this._internalRoot=e}no.prototype.unstable_scheduleHydration=function(e){if(e){var t=tv();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ya.length&&t!==0&&t<Ya[a].priority;a++);Ya.splice(a,0,e),a===0&&Fp(e)}};var Ip=l.version;if(Ip!=="19.2.8")throw Error(o(527,Ip,"19.2.8"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=h(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var sS={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ao=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ao.isDisabled&&ao.supportsFiber)try{w=ao.inject(sS),Z=ao}catch{}}return Ei.createRoot=function(e,t){if(!u(e))throw Error(o(299));var a=!1,r="",s=Wh,c=em,m=tm;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=wp(e,1,!1,null,null,a,r,null,s,c,m,Qp),e[Ml]=t.current,nf(e),new Of(t)},Ei.hydrateRoot=function(e,t,a){if(!u(e))throw Error(o(299));var r=!1,s="",c=Wh,m=em,y=tm,O=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(O=a.formState)),t=wp(e,1,!0,t,a??null,r,s,O,c,m,y,Qp),t.context=Lp(null),a=t.current,r=dn(),r=fs(r),s=Da(r),s.callback=null,Ra(a,s,r),a=r,t.current.lanes=a,Rr(t,a),Gn(t),e[Ml]=t.current,nf(e),new no(t)},Ei.version="19.2.8",Ei}var my;function IS(){if(my)return Tf.exports;my=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Tf.exports=QS(),Tf.exports}var XS=IS();const $S=document.getElementById("root"),ZS=XS.createRoot($S);function py(n){ZS.render(Oe.jsx(Y.StrictMode,{children:n}))}var Rf={exports:{}};var yy;function KS(){return yy||(yy=1,(function(n){(function(){var l={}.hasOwnProperty;function i(){for(var f="",d=0;d<arguments.length;d++){var p=arguments[d];p&&(f=u(f,o(p)))}return f}function o(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return i.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var p in f)l.call(f,p)&&f[p]&&(d=u(d,p));return d}function u(f,d){return d?f?f+" "+d:f+d:f}n.exports?(i.default=i,n.exports=i):window.classNames=i})()})(Rf)),Rf.exports}var JS=KS();const Ka=Td(JS),PS="_button_nnl9b_1",WS="_disabled_nnl9b_30",eE="_fullWidth_nnl9b_127",tE="_button__leftIcon_nnl9b_133",nE="_button__rightIcon_nnl9b_134",bl={button:PS,disabled:WS,"buttonType-muted":"_buttonType-muted_nnl9b_34","buttonType-primary":"_buttonType-primary_nnl9b_50","buttonType-negative":"_buttonType-negative_nnl9b_80","buttonSize-xxs":"_buttonSize-xxs_nnl9b_97","buttonSize-xs":"_buttonSize-xs_nnl9b_102","buttonSize-s":"_buttonSize-s_nnl9b_107","buttonSize-m":"_buttonSize-m_nnl9b_112","buttonSize-l":"_buttonSize-l_nnl9b_117","buttonSize-xl":"_buttonSize-xl_nnl9b_122",fullWidth:eE,button__leftIcon:tE,button__rightIcon:nE};function Ol(n){var l,i=n.children,o=n.className,u=n.disabled,f=n.buttonType,d=f===void 0?"muted":f,p=n.buttonSize,v=p===void 0?"m":p,h=n.fullWidth,g=n.onClick,b=n.style,C=n.leftIcon,x=n.rightIcon,E=n.type,_=E===void 0?"button":E;return se.createElement("button",{type:_,className:Ka(bl.button,bl["buttonType-".concat(d)],bl["buttonSize-".concat(v)],(l={},l[bl.disabled]=u,l[bl.fullWidth]=h,l),o),disabled:u,onClick:g,style:b},C&&se.createElement("span",{className:bl.button__leftIcon},C),i&&se.createElement("span",null,i),x&&se.createElement("span",{className:bl.button__rightIcon},x))}var wo=function(){return wo=Object.assign||function(n){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},wo.apply(this,arguments)};function gy(n){return n===n.toLowerCase()?n:n.replace(/[A-Z]/g,function(l){return"-".concat(l.toLowerCase())})}function aE(n,l){return l===void 0&&(l=!1),wo(wo({padding:l?void 0:n.bodyPadding.map(function(i){return"".concat(i,"px")}).join(" ")},Object.fromEntries(Object.entries(n.theme).flatMap(function(i){var o,u=i[0],f=i[1];return[["--".concat(gy(u)),f],["--".concat(gy("".concat(u,"RgbComponents"))),((o=f.match(/rgb\((\d+, \d+, \d+)\)/))===null||o===void 0?void 0:o[1])||void 0]]}))),n.cssDesignTokens)}const lE="_themeVariables_11af8_1",rE="_canvas_11af8_85",by={themeVariables:lE,canvas:rE};var iE=Y.createContext(null);function Ng(n){var l=n.ctx,i=n.children,o=n.noAutoResizer,u=l.mode;Y.useEffect(function(){if(!o&&"startAutoResizer"in l){var d=l;return d.startAutoResizer(),function(){d.stopAutoResizer()}}},[u,o]);var f=l.cssDesignTokens["--color--scrollbar--fill"];return Y.useEffect(function(){if(!(typeof document>"u"||!f)){var d="--color--scrollbar--fill",p=document.documentElement,v=p.style.getPropertyValue(d);return p.style.setProperty(d,f),function(){v?p.style.setProperty(d,v):p.style.removeProperty(d)}}},[f]),se.createElement(iE.Provider,{value:l},se.createElement("div",{className:Ka(by.themeVariables,by.canvas),style:aE(l)},i))}var uE=Rg();const oE="_fieldError_kqzsn_1",sE={fieldError:oE};function cE(n){var l=n.children;return se.createElement("div",{className:sE.fieldError},l)}const fE="_FieldGroup_uz9ju_1",dE="_FieldGroup__item_uz9ju_5",Sy={FieldGroup:fE,FieldGroup__item:dE};var Wf=function(){return Wf=Object.assign||function(n){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},Wf.apply(this,arguments)},vE=function(n,l){var i={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&l.indexOf(o)<0&&(i[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(n);u<o.length;u++)l.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(n,o[u])&&(i[o[u]]=n[o[u]]);return i};function Ey(n){var l=n.children,i=n.className,o=vE(n,["children","className"]),u=Ka(Sy.FieldGroup,i);return se.createElement("div",Wf({},o,{className:u}),se.Children.map(l,function(f){return f&&se.createElement("div",{className:Sy.FieldGroup__item},f)}))}const hE="_fieldHint_1q1d1_1",mE={fieldHint:hE};function pE(n){var l=n.children;return se.createElement("div",{className:mE.fieldHint},l)}var ed=function(){return ed=Object.assign||function(n){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},ed.apply(this,arguments)};function Vg(n){var l=n.id,i=n.label,o=n.hint,u=n.error,f=n.required,d=n.formLabelProps,p=n.children;return se.createElement(se.Fragment,null,se.createElement(TE,ed({},d,{htmlFor:l,required:f,error:!!u}),i),p,u&&se.createElement(cE,null,u),o&&se.createElement(pE,null,o))}const yE="_Form_5qspp_1",gE="_Form__item_5qspp_5",Nf={Form:yE,Form__item:gE,"Form__item--default":"_Form__item--default_5qspp_13","Form__item--condensed":"_Form__item--condensed_5qspp_17"};var td=function(){return td=Object.assign||function(n){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},td.apply(this,arguments)},bE=function(n,l){var i={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&l.indexOf(o)<0&&(i[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(n);u<o.length;u++)l.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(n,o[u])&&(i[o[u]]=n[o[u]]);return i},SE=function(n){var l=n.children,i=n.className,o=n.onSubmit,u=n.spacing,f=u===void 0?"default":u,d=bE(n,["children","className","onSubmit","spacing"]),p=Ka(Nf.Form,i),v=Ka(Nf.Form__item,Nf["Form__item--".concat(f)]),h=Y.useCallback(function(g){g.preventDefault(),o&&o(g)},[o]);return se.createElement("form",td({className:p,onSubmit:h},d),Y.Children.map(l,function(g){return g?se.createElement("div",{className:v},g):null}))};const EE="_formLabel_12h4v_1",OE="_formLabel__code_12h4v_8",_E="_formLabel__label_12h4v_18",AE="_formLabel__required_12h4v_30",Oi={formLabel:EE,formLabel__code:OE,"formLabel--error":"_formLabel--error_12h4v_14",formLabel__label:_E,formLabel__required:AE};var nd=function(){return nd=Object.assign||function(n){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},nd.apply(this,arguments)},CE=function(n,l){var i={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&l.indexOf(o)<0&&(i[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(n);u<o.length;u++)l.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(n,o[u])&&(i[o[u]]=n[o[u]]);return i},TE=function(n){var l,i=n.children,o=n.className,u=n.htmlFor,f=n.code,d=n.required,p=d===void 0?!1:d,v=n.error,h=v===void 0?!1:v,g=CE(n,["children","className","htmlFor","code","required","error"]),b=Ka(Oi.formLabel,o,(l={},l[Oi["formLabel--error"]]=h,l));return se.createElement("label",nd({className:b,htmlFor:u},g),se.createElement("span",{className:Oi.formLabel__label},i,p&&se.createElement("span",{className:Oi.formLabel__required},"*")),f&&se.createElement("span",{className:Oi.formLabel__code},f))},ad=function(){return ad=Object.assign||function(n){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},ad.apply(this,arguments)};function xE(n){var l=n.id,i=n.name,o=n.label,u=n.hint,f=n.error,d=n.required,p=n.placeholder,v=n.formLabelProps,h=n.value,g=n.onChange,b=n.selectInputProps;return se.createElement(Vg,{formLabelProps:v,id:l,required:d,error:f,hint:u,label:o},se.createElement(Mo,ad({},b,{id:l,name:i,value:h,placeholder:p,onChange:g,error:!!f})))}function Cl(n){"@babel/helpers - typeof";return Cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Cl(n)}function ME(n,l){if(Cl(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,l);if(Cl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(n)}function zg(n){var l=ME(n,"string");return Cl(l)=="symbol"?l:l+""}function Ti(n,l,i){return(l=zg(l))in n?Object.defineProperty(n,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[l]=i,n}function Oy(n,l){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);l&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),i.push.apply(i,o)}return i}function _e(n){for(var l=1;l<arguments.length;l++){var i=arguments[l]!=null?arguments[l]:{};l%2?Oy(Object(i),!0).forEach(function(o){Ti(n,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Oy(Object(i)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(i,o))})}return n}function DE(n){if(Array.isArray(n))return n}function RE(n,l){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var o,u,f,d,p=[],v=!0,h=!1;try{if(f=(i=i.call(n)).next,l===0){if(Object(i)!==i)return;v=!1}else for(;!(v=(o=f.call(i)).done)&&(p.push(o.value),p.length!==l);v=!0);}catch(g){h=!0,u=g}finally{try{if(!v&&i.return!=null&&(d=i.return(),Object(d)!==d))return}finally{if(h)throw u}}return p}}function ld(n,l){(l==null||l>n.length)&&(l=n.length);for(var i=0,o=Array(l);i<l;i++)o[i]=n[i];return o}function wg(n,l){if(n){if(typeof n=="string")return ld(n,l);var i={}.toString.call(n).slice(8,-1);return i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set"?Array.from(n):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ld(n,l):void 0}}function NE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
10
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ga(n,l){return DE(n)||RE(n,l)||wg(n,l)||NE()}function VE(n,l){if(n==null)return{};var i={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(l.indexOf(o)!==-1)continue;i[o]=n[o]}return i}function Sa(n,l){if(n==null)return{};var i,o,u=VE(n,l);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(n);for(o=0;o<f.length;o++)i=f[o],l.indexOf(i)===-1&&{}.propertyIsEnumerable.call(n,i)&&(u[i]=n[i])}return u}var zE=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function wE(n){var l=n.defaultInputValue,i=l===void 0?"":l,o=n.defaultMenuIsOpen,u=o===void 0?!1:o,f=n.defaultValue,d=f===void 0?null:f,p=n.inputValue,v=n.menuIsOpen,h=n.onChange,g=n.onInputChange,b=n.onMenuClose,C=n.onMenuOpen,x=n.value,E=Sa(n,zE),_=Y.useState(p!==void 0?p:i),M=ga(_,2),L=M[0],A=M[1],U=Y.useState(v!==void 0?v:u),N=ga(U,2),D=N[0],I=N[1],Q=Y.useState(x!==void 0?x:d),ae=ga(Q,2),pe=ae[0],De=ae[1],Ne=Y.useCallback(function(fe,ee){typeof h=="function"&&h(fe,ee),De(fe)},[h]),ie=Y.useCallback(function(fe,ee){var Me;typeof g=="function"&&(Me=g(fe,ee)),A(Me!==void 0?Me:fe)},[g]),ue=Y.useCallback(function(){typeof C=="function"&&C(),I(!0)},[C]),ge=Y.useCallback(function(){typeof b=="function"&&b(),I(!1)},[b]),Ae=p!==void 0?p:L,q=v!==void 0?v:D,K=x!==void 0?x:pe;return _e(_e({},E),{},{inputValue:Ae,menuIsOpen:q,onChange:Ne,onInputChange:ie,onMenuClose:ge,onMenuOpen:ue,value:K})}function xe(){return xe=Object.assign?Object.assign.bind():function(n){for(var l=1;l<arguments.length;l++){var i=arguments[l];for(var o in i)({}).hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},xe.apply(null,arguments)}function LE(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}function _y(n,l){for(var i=0;i<l.length;i++){var o=l[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,zg(o.key),o)}}function UE(n,l,i){return l&&_y(n.prototype,l),i&&_y(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function rd(n,l){return rd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},rd(n,l)}function HE(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(l&&l.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),l&&rd(n,l)}function Lo(n){return Lo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)},Lo(n)}function Lg(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lg=function(){return!!n})()}function qE(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function jE(n,l){if(l&&(Cl(l)=="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qE(n)}function BE(n){var l=Lg();return function(){var i,o=Lo(n);if(l){var u=Lo(this).constructor;i=Reflect.construct(o,arguments,u)}else i=o.apply(this,arguments);return jE(this,i)}}function kE(n){if(Array.isArray(n))return ld(n)}function FE(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function GE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dd(n){return kE(n)||FE(n)||wg(n)||GE()}function YE(n){if(n.sheet)return n.sheet;for(var l=0;l<document.styleSheets.length;l++)if(document.styleSheets[l].ownerNode===n)return document.styleSheets[l]}function QE(n){var l=document.createElement("style");return l.setAttribute("data-emotion",n.key),n.nonce!==void 0&&l.setAttribute("nonce",n.nonce),l.appendChild(document.createTextNode("")),l.setAttribute("data-s",""),l}var IE=(function(){function n(i){var o=this;this._insertTag=function(u){var f;o.tags.length===0?o.insertionPoint?f=o.insertionPoint.nextSibling:o.prepend?f=o.container.firstChild:f=o.before:f=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(u,f),o.tags.push(u)},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 l=n.prototype;return l.hydrate=function(o){o.forEach(this._insertTag)},l.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(QE(this));var u=this.tags[this.tags.length-1];if(this.isSpeedy){var f=YE(u);try{f.insertRule(o,f.cssRules.length)}catch{}}else u.appendChild(document.createTextNode(o));this.ctr++},l.flush=function(){this.tags.forEach(function(o){var u;return(u=o.parentNode)==null?void 0:u.removeChild(o)}),this.tags=[],this.ctr=0},n})(),kt="-ms-",Uo="-moz-",Ie="-webkit-",Ug="comm",Rd="rule",Nd="decl",XE="@import",Hg="@keyframes",$E="@layer",ZE=Math.abs,es=String.fromCharCode,KE=Object.assign;function JE(n,l){return Ht(n,0)^45?(((l<<2^Ht(n,0))<<2^Ht(n,1))<<2^Ht(n,2))<<2^Ht(n,3):0}function qg(n){return n.trim()}function PE(n,l){return(n=l.exec(n))?n[0]:n}function $e(n,l,i){return n.replace(l,i)}function id(n,l){return n.indexOf(l)}function Ht(n,l){return n.charCodeAt(l)|0}function Di(n,l,i){return n.slice(l,i)}function In(n){return n.length}function Vd(n){return n.length}function co(n,l){return l.push(n),n}function WE(n,l){return n.map(l).join("")}var ts=1,yr=1,jg=0,ln=0,At=0,Or="";function ns(n,l,i,o,u,f,d){return{value:n,root:l,parent:i,type:o,props:u,children:f,line:ts,column:yr,length:d,return:""}}function _i(n,l){return KE(ns("",null,null,"",null,null,0),n,{length:-n.length},l)}function eO(){return At}function tO(){return At=ln>0?Ht(Or,--ln):0,yr--,At===10&&(yr=1,ts--),At}function mn(){return At=ln<jg?Ht(Or,ln++):0,yr++,At===10&&(yr=1,ts++),At}function Zn(){return Ht(Or,ln)}function Ao(){return ln}function Ui(n,l){return Di(Or,n,l)}function Ri(n){switch(n){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 Bg(n){return ts=yr=1,jg=In(Or=n),ln=0,[]}function kg(n){return Or="",n}function Co(n){return qg(Ui(ln-1,ud(n===91?n+2:n===40?n+1:n)))}function nO(n){for(;(At=Zn())&&At<33;)mn();return Ri(n)>2||Ri(At)>3?"":" "}function aO(n,l){for(;--l&&mn()&&!(At<48||At>102||At>57&&At<65||At>70&&At<97););return Ui(n,Ao()+(l<6&&Zn()==32&&mn()==32))}function ud(n){for(;mn();)switch(At){case n:return ln;case 34:case 39:n!==34&&n!==39&&ud(At);break;case 40:n===41&&ud(n);break;case 92:mn();break}return ln}function lO(n,l){for(;mn()&&n+At!==57;)if(n+At===84&&Zn()===47)break;return"/*"+Ui(l,ln-1)+"*"+es(n===47?n:mn())}function rO(n){for(;!Ri(Zn());)mn();return Ui(n,ln)}function iO(n){return kg(To("",null,null,null,[""],n=Bg(n),0,[0],n))}function To(n,l,i,o,u,f,d,p,v){for(var h=0,g=0,b=d,C=0,x=0,E=0,_=1,M=1,L=1,A=0,U="",N=u,D=f,I=o,Q=U;M;)switch(E=A,A=mn()){case 40:if(E!=108&&Ht(Q,b-1)==58){id(Q+=$e(Co(A),"&","&\f"),"&\f")!=-1&&(L=-1);break}case 34:case 39:case 91:Q+=Co(A);break;case 9:case 10:case 13:case 32:Q+=nO(E);break;case 92:Q+=aO(Ao()-1,7);continue;case 47:switch(Zn()){case 42:case 47:co(uO(lO(mn(),Ao()),l,i),v);break;default:Q+="/"}break;case 123*_:p[h++]=In(Q)*L;case 125*_:case 59:case 0:switch(A){case 0:case 125:M=0;case 59+g:L==-1&&(Q=$e(Q,/\f/g,"")),x>0&&In(Q)-b&&co(x>32?Cy(Q+";",o,i,b-1):Cy($e(Q," ","")+";",o,i,b-2),v);break;case 59:Q+=";";default:if(co(I=Ay(Q,l,i,h,g,u,p,U,N=[],D=[],b),f),A===123)if(g===0)To(Q,l,I,I,N,f,b,p,D);else switch(C===99&&Ht(Q,3)===110?100:C){case 100:case 108:case 109:case 115:To(n,I,I,o&&co(Ay(n,I,I,0,0,u,p,U,u,N=[],b),D),u,D,b,p,o?N:D);break;default:To(Q,I,I,I,[""],D,0,p,D)}}h=g=x=0,_=L=1,U=Q="",b=d;break;case 58:b=1+In(Q),x=E;default:if(_<1){if(A==123)--_;else if(A==125&&_++==0&&tO()==125)continue}switch(Q+=es(A),A*_){case 38:L=g>0?1:(Q+="\f",-1);break;case 44:p[h++]=(In(Q)-1)*L,L=1;break;case 64:Zn()===45&&(Q+=Co(mn())),C=Zn(),g=b=In(U=Q+=rO(Ao())),A++;break;case 45:E===45&&In(Q)==2&&(_=0)}}return f}function Ay(n,l,i,o,u,f,d,p,v,h,g){for(var b=u-1,C=u===0?f:[""],x=Vd(C),E=0,_=0,M=0;E<o;++E)for(var L=0,A=Di(n,b+1,b=ZE(_=d[E])),U=n;L<x;++L)(U=qg(_>0?C[L]+" "+A:$e(A,/&\f/g,C[L])))&&(v[M++]=U);return ns(n,l,i,u===0?Rd:p,v,h,g)}function uO(n,l,i){return ns(n,l,i,Ug,es(eO()),Di(n,2,-2),0)}function Cy(n,l,i,o){return ns(n,l,i,Nd,Di(n,0,o),Di(n,o+1,-1),o)}function pr(n,l){for(var i="",o=Vd(n),u=0;u<o;u++)i+=l(n[u],u,n,l)||"";return i}function oO(n,l,i,o){switch(n.type){case $E:if(n.children.length)break;case XE:case Nd:return n.return=n.return||n.value;case Ug:return"";case Hg:return n.return=n.value+"{"+pr(n.children,o)+"}";case Rd:n.value=n.props.join(",")}return In(i=pr(n.children,o))?n.return=n.value+"{"+i+"}":""}function sO(n){var l=Vd(n);return function(i,o,u,f){for(var d="",p=0;p<l;p++)d+=n[p](i,o,u,f)||"";return d}}function cO(n){return function(l){l.root||(l=l.return)&&n(l)}}function fO(n){var l=Object.create(null);return function(i){return l[i]===void 0&&(l[i]=n(i)),l[i]}}var dO=function(l,i,o){for(var u=0,f=0;u=f,f=Zn(),u===38&&f===12&&(i[o]=1),!Ri(f);)mn();return Ui(l,ln)},vO=function(l,i){var o=-1,u=44;do switch(Ri(u)){case 0:u===38&&Zn()===12&&(i[o]=1),l[o]+=dO(ln-1,i,o);break;case 2:l[o]+=Co(u);break;case 4:if(u===44){l[++o]=Zn()===58?"&\f":"",i[o]=l[o].length;break}default:l[o]+=es(u)}while(u=mn());return l},hO=function(l,i){return kg(vO(Bg(l),i))},Ty=new WeakMap,mO=function(l){if(!(l.type!=="rule"||!l.parent||l.length<1)){for(var i=l.value,o=l.parent,u=l.column===o.column&&l.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(l.props.length===1&&i.charCodeAt(0)!==58&&!Ty.get(o))&&!u){Ty.set(l,!0);for(var f=[],d=hO(i,f),p=o.props,v=0,h=0;v<d.length;v++)for(var g=0;g<p.length;g++,h++)l.props[h]=f[v]?d[v].replace(/&\f/g,p[g]):p[g]+" "+d[v]}}},pO=function(l){if(l.type==="decl"){var i=l.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(l.return="",l.value="")}};function Fg(n,l){switch(JE(n,l)){case 5103:return Ie+"print-"+n+n;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 Ie+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Ie+n+Uo+n+kt+n+n;case 6828:case 4268:return Ie+n+kt+n+n;case 6165:return Ie+n+kt+"flex-"+n+n;case 5187:return Ie+n+$e(n,/(\w+).+(:[^]+)/,Ie+"box-$1$2"+kt+"flex-$1$2")+n;case 5443:return Ie+n+kt+"flex-item-"+$e(n,/flex-|-self/,"")+n;case 4675:return Ie+n+kt+"flex-line-pack"+$e(n,/align-content|flex-|-self/,"")+n;case 5548:return Ie+n+kt+$e(n,"shrink","negative")+n;case 5292:return Ie+n+kt+$e(n,"basis","preferred-size")+n;case 6060:return Ie+"box-"+$e(n,"-grow","")+Ie+n+kt+$e(n,"grow","positive")+n;case 4554:return Ie+$e(n,/([^-])(transform)/g,"$1"+Ie+"$2")+n;case 6187:return $e($e($e(n,/(zoom-|grab)/,Ie+"$1"),/(image-set)/,Ie+"$1"),n,"")+n;case 5495:case 3959:return $e(n,/(image-set\([^]*)/,Ie+"$1$`$1");case 4968:return $e($e(n,/(.+:)(flex-)?(.*)/,Ie+"box-pack:$3"+kt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ie+n+n;case 4095:case 3583:case 4068:case 2532:return $e(n,/(.+)-inline(.+)/,Ie+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(In(n)-1-l>6)switch(Ht(n,l+1)){case 109:if(Ht(n,l+4)!==45)break;case 102:return $e(n,/(.+:)(.+)-([^]+)/,"$1"+Ie+"$2-$3$1"+Uo+(Ht(n,l+3)==108?"$3":"$2-$3"))+n;case 115:return~id(n,"stretch")?Fg($e(n,"stretch","fill-available"),l)+n:n}break;case 4949:if(Ht(n,l+1)!==115)break;case 6444:switch(Ht(n,In(n)-3-(~id(n,"!important")&&10))){case 107:return $e(n,":",":"+Ie)+n;case 101:return $e(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ie+(Ht(n,14)===45?"inline-":"")+"box$3$1"+Ie+"$2$3$1"+kt+"$2box$3")+n}break;case 5936:switch(Ht(n,l+11)){case 114:return Ie+n+kt+$e(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ie+n+kt+$e(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ie+n+kt+$e(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return Ie+n+kt+n+n}return n}var yO=function(l,i,o,u){if(l.length>-1&&!l.return)switch(l.type){case Nd:l.return=Fg(l.value,l.length);break;case Hg:return pr([_i(l,{value:$e(l.value,"@","@"+Ie)})],u);case Rd:if(l.length)return WE(l.props,function(f){switch(PE(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([_i(l,{props:[$e(f,/:(read-\w+)/,":"+Uo+"$1")]})],u);case"::placeholder":return pr([_i(l,{props:[$e(f,/:(plac\w+)/,":"+Ie+"input-$1")]}),_i(l,{props:[$e(f,/:(plac\w+)/,":"+Uo+"$1")]}),_i(l,{props:[$e(f,/:(plac\w+)/,kt+"input-$1")]})],u)}return""})}},gO=[yO],bO=function(l){var i=l.key;if(i==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(_){var M=_.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var u=l.stylisPlugins||gO,f={},d,p=[];d=l.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(_){for(var M=_.getAttribute("data-emotion").split(" "),L=1;L<M.length;L++)f[M[L]]=!0;p.push(_)});var v,h=[mO,pO];{var g,b=[oO,cO(function(_){g.insert(_)})],C=sO(h.concat(u,b)),x=function(M){return pr(iO(M),C)};v=function(M,L,A,U){g=A,x(M?M+"{"+L.styles+"}":L.styles),U&&(E.inserted[L.name]=!0)}}var E={key:i,sheet:new IE({key:i,container:d,nonce:l.nonce,speedy:l.speedy,prepend:l.prepend,insertionPoint:l.insertionPoint}),nonce:l.nonce,inserted:f,registered:{},insert:v};return E.sheet.hydrate(p),E},Vf={exports:{}},Ke={};var xy;function SO(){if(xy)return Ke;xy=1;var n=typeof Symbol=="function"&&Symbol.for,l=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,f=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,p=n?Symbol.for("react.context"):60110,v=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,g=n?Symbol.for("react.forward_ref"):60112,b=n?Symbol.for("react.suspense"):60113,C=n?Symbol.for("react.suspense_list"):60120,x=n?Symbol.for("react.memo"):60115,E=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.block"):60121,M=n?Symbol.for("react.fundamental"):60117,L=n?Symbol.for("react.responder"):60118,A=n?Symbol.for("react.scope"):60119;function U(D){if(typeof D=="object"&&D!==null){var I=D.$$typeof;switch(I){case l:switch(D=D.type,D){case v:case h:case o:case f:case u:case b:return D;default:switch(D=D&&D.$$typeof,D){case p:case g:case E:case x:case d:return D;default:return I}}case i:return I}}}function N(D){return U(D)===h}return Ke.AsyncMode=v,Ke.ConcurrentMode=h,Ke.ContextConsumer=p,Ke.ContextProvider=d,Ke.Element=l,Ke.ForwardRef=g,Ke.Fragment=o,Ke.Lazy=E,Ke.Memo=x,Ke.Portal=i,Ke.Profiler=f,Ke.StrictMode=u,Ke.Suspense=b,Ke.isAsyncMode=function(D){return N(D)||U(D)===v},Ke.isConcurrentMode=N,Ke.isContextConsumer=function(D){return U(D)===p},Ke.isContextProvider=function(D){return U(D)===d},Ke.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===l},Ke.isForwardRef=function(D){return U(D)===g},Ke.isFragment=function(D){return U(D)===o},Ke.isLazy=function(D){return U(D)===E},Ke.isMemo=function(D){return U(D)===x},Ke.isPortal=function(D){return U(D)===i},Ke.isProfiler=function(D){return U(D)===f},Ke.isStrictMode=function(D){return U(D)===u},Ke.isSuspense=function(D){return U(D)===b},Ke.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===o||D===h||D===f||D===u||D===b||D===C||typeof D=="object"&&D!==null&&(D.$$typeof===E||D.$$typeof===x||D.$$typeof===d||D.$$typeof===p||D.$$typeof===g||D.$$typeof===M||D.$$typeof===L||D.$$typeof===A||D.$$typeof===_)},Ke.typeOf=U,Ke}var My;function EO(){return My||(My=1,Vf.exports=SO()),Vf.exports}var zf,Dy;function OO(){if(Dy)return zf;Dy=1;var n=EO(),l={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},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[n.ForwardRef]=o,f[n.Memo]=u;function d(E){return n.isMemo(E)?u:f[E.$$typeof]||l}var p=Object.defineProperty,v=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,C=Object.prototype;function x(E,_,M){if(typeof _!="string"){if(C){var L=b(_);L&&L!==C&&x(E,L,M)}var A=v(_);h&&(A=A.concat(h(_)));for(var U=d(E),N=d(_),D=0;D<A.length;++D){var I=A[D];if(!i[I]&&!(M&&M[I])&&!(N&&N[I])&&!(U&&U[I])){var Q=g(_,I);try{p(E,I,Q)}catch{}}}}return E}return zf=x,zf}OO();var _O=!0;function AO(n,l,i){var o="";return i.split(" ").forEach(function(u){n[u]!==void 0?l.push(n[u]+";"):u&&(o+=u+" ")}),o}var Gg=function(l,i,o){var u=l.key+"-"+i.name;(o===!1||_O===!1)&&l.registered[u]===void 0&&(l.registered[u]=i.styles)},CO=function(l,i,o){Gg(l,i,o);var u=l.key+"-"+i.name;if(l.inserted[i.name]===void 0){var f=i;do l.insert(i===f?"."+u:"",f,l.sheet,!0),f=f.next;while(f!==void 0)}};function TO(n){for(var l=0,i,o=0,u=n.length;u>=4;++o,u-=4)i=n.charCodeAt(o)&255|(n.charCodeAt(++o)&255)<<8|(n.charCodeAt(++o)&255)<<16|(n.charCodeAt(++o)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,l=(i&65535)*1540483477+((i>>>16)*59797<<16)^(l&65535)*1540483477+((l>>>16)*59797<<16);switch(u){case 3:l^=(n.charCodeAt(o+2)&255)<<16;case 2:l^=(n.charCodeAt(o+1)&255)<<8;case 1:l^=n.charCodeAt(o)&255,l=(l&65535)*1540483477+((l>>>16)*59797<<16)}return l^=l>>>13,l=(l&65535)*1540483477+((l>>>16)*59797<<16),((l^l>>>15)>>>0).toString(36)}var xO={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},MO=/[A-Z]|^ms/g,DO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yg=function(l){return l.charCodeAt(1)===45},Ry=function(l){return l!=null&&typeof l!="boolean"},wf=fO(function(n){return Yg(n)?n:n.replace(MO,"-$&").toLowerCase()}),Ny=function(l,i){switch(l){case"animation":case"animationName":if(typeof i=="string")return i.replace(DO,function(o,u,f){return Xn={name:u,styles:f,next:Xn},u})}return xO[l]!==1&&!Yg(l)&&typeof i=="number"&&i!==0?i+"px":i};function Ni(n,l,i){if(i==null)return"";var o=i;if(o.__emotion_styles!==void 0)return o;switch(typeof i){case"boolean":return"";case"object":{var u=i;if(u.anim===1)return Xn={name:u.name,styles:u.styles,next:Xn},u.name;var f=i;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)Xn={name:d.name,styles:d.styles,next:Xn},d=d.next;var p=f.styles+";";return p}return RO(n,l,i)}case"function":{if(n!==void 0){var v=Xn,h=i(n);return Xn=v,Ni(n,l,h)}break}}var g=i;return g}function RO(n,l,i){var o="";if(Array.isArray(i))for(var u=0;u<i.length;u++)o+=Ni(n,l,i[u])+";";else for(var f in i){var d=i[f];if(typeof d!="object"){var p=d;Ry(p)&&(o+=wf(f)+":"+Ny(f,p)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&l==null)for(var v=0;v<d.length;v++)Ry(d[v])&&(o+=wf(f)+":"+Ny(f,d[v])+";");else{var h=Ni(n,l,d);switch(f){case"animation":case"animationName":{o+=wf(f)+":"+h+";";break}default:o+=f+"{"+h+"}"}}}return o}var Vy=/label:\s*([^\s;{]+)\s*(;|$)/g,Xn;function Qg(n,l,i){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var o=!0,u="";Xn=void 0;var f=n[0];if(f==null||f.raw===void 0)o=!1,u+=Ni(i,l,f);else{var d=f;u+=d[0]}for(var p=1;p<n.length;p++)if(u+=Ni(i,l,n[p]),o){var v=f;u+=v[p]}Vy.lastIndex=0;for(var h="",g;(g=Vy.exec(u))!==null;)h+="-"+g[1];var b=TO(u)+h;return{name:b,styles:u,next:Xn}}var NO=function(l){return l()},VO=sy.useInsertionEffect?sy.useInsertionEffect:!1,zO=VO||NO,Ig=Y.createContext(typeof HTMLElement<"u"?bO({key:"css"}):null);Ig.Provider;var wO=function(l){return Y.forwardRef(function(i,o){var u=Y.useContext(Ig);return l(i,u,o)})},LO=Y.createContext({}),zd={}.hasOwnProperty,od="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",UO=function(l,i){var o={};for(var u in i)zd.call(i,u)&&(o[u]=i[u]);return o[od]=l,o},HO=function(l){var i=l.cache,o=l.serialized,u=l.isStringTag;return Gg(i,o,u),zO(function(){return CO(i,o,u)}),null},qO=wO(function(n,l,i){var o=n.css;typeof o=="string"&&l.registered[o]!==void 0&&(o=l.registered[o]);var u=n[od],f=[o],d="";typeof n.className=="string"?d=AO(l.registered,f,n.className):n.className!=null&&(d=n.className+" ");var p=Qg(f,void 0,Y.useContext(LO));d+=l.key+"-"+p.name;var v={};for(var h in n)zd.call(n,h)&&h!=="css"&&h!==od&&(v[h]=n[h]);return v.className=d,i&&(v.ref=i),Y.createElement(Y.Fragment,null,Y.createElement(HO,{cache:l,serialized:p,isStringTag:typeof u=="string"}),Y.createElement(u,v))}),jO=qO,Se=function(l,i){var o=arguments;if(i==null||!zd.call(i,"css"))return Y.createElement.apply(void 0,o);var u=o.length,f=new Array(u);f[0]=jO,f[1]=UO(l,i);for(var d=2;d<u;d++)f[d]=o[d];return Y.createElement.apply(null,f)};(function(n){var l;l||(l=n.JSX||(n.JSX={}))})(Se||(Se={}));function wd(){for(var n=arguments.length,l=new Array(n),i=0;i<n;i++)l[i]=arguments[i];return Qg(l)}function BO(){var n=wd.apply(void 0,arguments),l="animation-"+n.name;return{name:l,styles:"@keyframes "+l+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function kO(n,l){return l||(l=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(l)}}))}const FO=Math.min,GO=Math.max,Ho=Math.round,fo=Math.floor,sd=n=>({x:n,y:n});function YO(n){const{x:l,y:i,width:o,height:u}=n;return{width:o,height:u,top:i,left:l,right:l+o,bottom:i+u,x:l,y:i}}function as(){return typeof window<"u"}function Xg(n){return Zg(n)?(n.nodeName||"").toLowerCase():"#document"}function Tl(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function $g(n){var l;return(l=(Zg(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Zg(n){return as()?n instanceof Node||n instanceof Tl(n).Node:!1}function QO(n){return as()?n instanceof Element||n instanceof Tl(n).Element:!1}function Ld(n){return as()?n instanceof HTMLElement||n instanceof Tl(n).HTMLElement:!1}function zy(n){return!as()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Tl(n).ShadowRoot}function Kg(n){const{overflow:l,overflowX:i,overflowY:o,display:u}=Jg(n);return/auto|scroll|overlay|hidden|clip/.test(l+o+i)&&u!=="inline"&&u!=="contents"}function IO(n){return/^(html|body|#document)$/.test(Xg(n))}function Jg(n){return Tl(n).getComputedStyle(n)}function XO(n){if(Xg(n)==="html")return n;const l=n.assignedSlot||n.parentNode||zy(n)&&n.host||$g(n);return zy(l)?l.host:l}function Pg(n){const l=XO(n);return IO(l)?(n.ownerDocument||n).body:Ld(l)&&Kg(l)?l:Pg(l)}function qo(n,l,i){var o;l===void 0&&(l=[]),i===void 0&&(i=!0);const u=Pg(n),f=u===((o=n.ownerDocument)==null?void 0:o.body),d=Tl(u);if(f){const p=$O(d);return l.concat(d,d.visualViewport||[],Kg(u)?u:[],p&&i?qo(p):[])}else return l.concat(u,qo(u,[],i))}function $O(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function ZO(n){const l=Jg(n);let i=parseFloat(l.width)||0,o=parseFloat(l.height)||0;const u=Ld(n),f=u?n.offsetWidth:i,d=u?n.offsetHeight:o,p=Ho(i)!==f||Ho(o)!==d;return p&&(i=f,o=d),{width:i,height:o,$:p}}function Ud(n){return QO(n)?n:n.contextElement}function KO(n){const l=Ud(n);if(!Ld(l))return sd(1);const i=l.getBoundingClientRect(),{width:o,height:u,$:f}=ZO(l);let d=(f?Ho(i.width):i.width)/o,p=(f?Ho(i.height):i.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!p||!Number.isFinite(p))&&(p=1),{x:d,y:p}}function wy(n,l,i,o){l===void 0&&(l=!1);const u=n.getBoundingClientRect();Ud(n);let f=sd(1);l&&(f=KO(n));const d=sd(0);let p=(u.left+d.x)/f.x,v=(u.top+d.y)/f.y,h=u.width/f.x,g=u.height/f.y;return YO({width:h,height:g,x:p,y:v})}function Wg(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function JO(n,l,i){let o=null,u;const f=$g(n);function d(){var g;clearTimeout(u),(g=o)==null||g.disconnect(),o=null}function p(g,b){g===void 0&&(g=!1),b===void 0&&(b=1),d();const C=n.getBoundingClientRect(),{left:x,top:E,width:_,height:M}=C;if(g||l(),!_||!M)return;const L=fo(E),A=fo(f.clientWidth-(x+_)),U=fo(f.clientHeight-(E+M)),N=fo(x),I={rootMargin:-L+"px "+-A+"px "+-U+"px "+-N+"px",threshold:GO(0,FO(1,b))||1};let Q=!0;function ae(pe){const De=pe[0].intersectionRatio;if(!Wg(C,n.getBoundingClientRect()))return p();if(De!==b){if(!Q)return p();De?p(!1,De):u=setTimeout(()=>{p(!1,1e-7)},1e3)}Q=!1}try{o=new IntersectionObserver(ae,{...I,root:f.ownerDocument})}catch{o=new IntersectionObserver(ae,I)}o.observe(n)}const v=Tl(n),h=()=>p(i);return v.addEventListener("resize",h),p(!0),()=>{v.removeEventListener("resize",h),d()}}function PO(n,l,i,o){o===void 0&&(o={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:v=!1}=o,h=Ud(n),g=u||f?[...h?qo(h):[],...l?qo(l):[]]:[];g.forEach(L=>{u&&L.addEventListener("scroll",i),f&&L.addEventListener("resize",i)});const b=h&&p?JO(h,i,f):null;let C=-1,x=null;d&&(x=new ResizeObserver(L=>{let[A]=L;A&&A.target===h&&x&&l&&(x.unobserve(l),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var U;(U=x)==null||U.observe(l)})),i()}),h&&!v&&x.observe(h),l&&x.observe(l));let E,_=v?wy(n):null;v&&M();function M(){const L=wy(n);_&&!Wg(_,L)&&i(),_=L,E=requestAnimationFrame(M)}return i(),()=>{var L;g.forEach(A=>{u&&A.removeEventListener("scroll",i),f&&A.removeEventListener("resize",i)}),b?.(),(L=x)==null||L.disconnect(),x=null,v&&cancelAnimationFrame(E)}}var cd=Y.useLayoutEffect,WO=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],jo=function(){};function e_(n,l){return l?l[0]==="-"?n+l:n+"__"+l:n}function t_(n,l){for(var i=arguments.length,o=new Array(i>2?i-2:0),u=2;u<i;u++)o[u-2]=arguments[u];var f=[].concat(o);if(l&&n)for(var d in l)l.hasOwnProperty(d)&&l[d]&&f.push("".concat(e_(n,d)));return f.filter(function(p){return p}).map(function(p){return String(p).trim()}).join(" ")}var Ly=function(l){return c_(l)?l.filter(Boolean):Cl(l)==="object"&&l!==null?[l]:[]},e0=function(l){l.className,l.clearValue,l.cx,l.getStyles,l.getClassNames,l.getValue,l.hasValue,l.isMulti,l.isRtl,l.options,l.selectOption,l.selectProps,l.setValue,l.theme;var i=Sa(l,WO);return _e({},i)},pt=function(l,i,o){var u=l.cx,f=l.getStyles,d=l.getClassNames,p=l.className;return{css:f(i,l),className:u(o??{},d(i,l),p)}};function ls(n){return[document.documentElement,document.body,window].indexOf(n)>-1}function n_(n){return ls(n)?window.innerHeight:n.clientHeight}function t0(n){return ls(n)?window.pageYOffset:n.scrollTop}function Bo(n,l){if(ls(n)){window.scrollTo(0,l);return}n.scrollTop=l}function a_(n){var l=getComputedStyle(n),i=l.position==="absolute",o=/(auto|scroll)/;if(l.position==="fixed")return document.documentElement;for(var u=n;u=u.parentElement;)if(l=getComputedStyle(u),!(i&&l.position==="static")&&o.test(l.overflow+l.overflowY+l.overflowX))return u;return document.documentElement}function l_(n,l,i,o){return i*((n=n/o-1)*n*n+1)+l}function vo(n,l){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:jo,u=t0(n),f=l-u,d=10,p=0;function v(){p+=d;var h=l_(p,u,f,i);Bo(n,h),p<i?window.requestAnimationFrame(v):o(n)}v()}function Uy(n,l){var i=n.getBoundingClientRect(),o=l.getBoundingClientRect(),u=l.offsetHeight/3;o.bottom+u>i.bottom?Bo(n,Math.min(l.offsetTop+l.clientHeight-n.offsetHeight+u,n.scrollHeight)):o.top-u<i.top&&Bo(n,Math.max(l.offsetTop-u,0))}function r_(n){var l=n.getBoundingClientRect();return{bottom:l.bottom,height:l.height,left:l.left,right:l.right,top:l.top,width:l.width}}function Hy(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function i_(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var n0=!1,u_={get passive(){return n0=!0}},ho=typeof window<"u"?window:{};ho.addEventListener&&ho.removeEventListener&&(ho.addEventListener("p",jo,u_),ho.removeEventListener("p",jo,!1));var o_=n0;function s_(n){return n!=null}function c_(n){return Array.isArray(n)}function mo(n,l,i){return n?l:i}var f_=function(l){for(var i=arguments.length,o=new Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];var f=Object.entries(l).filter(function(d){var p=ga(d,1),v=p[0];return!o.includes(v)});return f.reduce(function(d,p){var v=ga(p,2),h=v[0],g=v[1];return d[h]=g,d},{})},d_=["children","innerProps"],v_=["children","innerProps"];function h_(n){var l=n.maxHeight,i=n.menuEl,o=n.minHeight,u=n.placement,f=n.shouldScroll,d=n.isFixedPosition,p=n.controlHeight,v=a_(i),h={placement:"bottom",maxHeight:l};if(!i||!i.offsetParent)return h;var g=v.getBoundingClientRect(),b=g.height,C=i.getBoundingClientRect(),x=C.bottom,E=C.height,_=C.top,M=i.offsetParent.getBoundingClientRect(),L=M.top,A=d?window.innerHeight:n_(v),U=t0(v),N=parseInt(getComputedStyle(i).marginBottom,10),D=parseInt(getComputedStyle(i).marginTop,10),I=L-D,Q=A-_,ae=I+U,pe=b-U-_,De=x-A+U+N,Ne=U+_-D,ie=160;switch(u){case"auto":case"bottom":if(Q>=E)return{placement:"bottom",maxHeight:l};if(pe>=E&&!d)return f&&vo(v,De,ie),{placement:"bottom",maxHeight:l};if(!d&&pe>=o||d&&Q>=o){f&&vo(v,De,ie);var ue=d?Q-N:pe-N;return{placement:"bottom",maxHeight:ue}}if(u==="auto"||d){var ge=l,Ae=d?I:ae;return Ae>=o&&(ge=Math.min(Ae-N-p,l)),{placement:"top",maxHeight:ge}}if(u==="bottom")return f&&Bo(v,De),{placement:"bottom",maxHeight:l};break;case"top":if(I>=E)return{placement:"top",maxHeight:l};if(ae>=E&&!d)return f&&vo(v,Ne,ie),{placement:"top",maxHeight:l};if(!d&&ae>=o||d&&I>=o){var q=l;return(!d&&ae>=o||d&&I>=o)&&(q=d?I-D:ae-D),f&&vo(v,Ne,ie),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:l};default:throw new Error('Invalid placement provided "'.concat(u,'".'))}return h}function m_(n){var l={bottom:"top",top:"bottom"};return n?l[n]:"bottom"}var a0=function(l){return l==="auto"?"bottom":l},p_=function(l,i){var o,u=l.placement,f=l.theme,d=f.borderRadius,p=f.spacing,v=f.colors;return _e((o={label:"menu"},Ti(o,m_(u),"100%"),Ti(o,"position","absolute"),Ti(o,"width","100%"),Ti(o,"zIndex",1),o),i?{}:{backgroundColor:v.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})},l0=Y.createContext(null),y_=function(l){var i=l.children,o=l.minMenuHeight,u=l.maxMenuHeight,f=l.menuPlacement,d=l.menuPosition,p=l.menuShouldScrollIntoView,v=l.theme,h=Y.useContext(l0)||{},g=h.setPortalPlacement,b=Y.useRef(null),C=Y.useState(u),x=ga(C,2),E=x[0],_=x[1],M=Y.useState(null),L=ga(M,2),A=L[0],U=L[1],N=v.spacing.controlHeight;return cd(function(){var D=b.current;if(D){var I=d==="fixed",Q=p&&!I,ae=h_({maxHeight:u,menuEl:D,minHeight:o,placement:f,shouldScroll:Q,isFixedPosition:I,controlHeight:N});_(ae.maxHeight),U(ae.placement),g?.(ae.placement)}},[u,f,d,p,o,g,N]),i({ref:b,placerProps:_e(_e({},l),{},{placement:A||a0(f),maxHeight:E})})},g_=function(l){var i=l.children,o=l.innerRef,u=l.innerProps;return Se("div",xe({},pt(l,"menu",{menu:!0}),{ref:o},u),i)},b_=g_,S_=function(l,i){var o=l.maxHeight,u=l.theme.spacing.baseUnit;return _e({maxHeight:o,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},i?{}:{paddingBottom:u,paddingTop:u})},E_=function(l){var i=l.children,o=l.innerProps,u=l.innerRef,f=l.isMulti;return Se("div",xe({},pt(l,"menuList",{"menu-list":!0,"menu-list--is-multi":f}),{ref:u},o),i)},r0=function(l,i){var o=l.theme,u=o.spacing.baseUnit,f=o.colors;return _e({textAlign:"center"},i?{}:{color:f.neutral40,padding:"".concat(u*2,"px ").concat(u*3,"px")})},O_=r0,__=r0,A_=function(l){var i=l.children,o=i===void 0?"No options":i,u=l.innerProps,f=Sa(l,d_);return Se("div",xe({},pt(_e(_e({},f),{},{children:o,innerProps:u}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),u),o)},C_=function(l){var i=l.children,o=i===void 0?"Loading...":i,u=l.innerProps,f=Sa(l,v_);return Se("div",xe({},pt(_e(_e({},f),{},{children:o,innerProps:u}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),u),o)},T_=function(l){var i=l.rect,o=l.offset,u=l.position;return{left:i.left,position:u,top:o,width:i.width,zIndex:1}},x_=function(l){var i=l.appendTo,o=l.children,u=l.controlElement,f=l.innerProps,d=l.menuPlacement,p=l.menuPosition,v=Y.useRef(null),h=Y.useRef(null),g=Y.useState(a0(d)),b=ga(g,2),C=b[0],x=b[1],E=Y.useMemo(function(){return{setPortalPlacement:x}},[]),_=Y.useState(null),M=ga(_,2),L=M[0],A=M[1],U=Y.useCallback(function(){if(u){var Q=r_(u),ae=p==="fixed"?0:window.pageYOffset,pe=Q[C]+ae;(pe!==L?.offset||Q.left!==L?.rect.left||Q.width!==L?.rect.width)&&A({offset:pe,rect:Q})}},[u,p,C,L?.offset,L?.rect.left,L?.rect.width]);cd(function(){U()},[U]);var N=Y.useCallback(function(){typeof h.current=="function"&&(h.current(),h.current=null),u&&v.current&&(h.current=PO(u,v.current,U,{elementResize:"ResizeObserver"in window}))},[u,U]);cd(function(){N()},[N]);var D=Y.useCallback(function(Q){v.current=Q,N()},[N]);if(!i&&p!=="fixed"||!L)return null;var I=Se("div",xe({ref:D},pt(_e(_e({},l),{},{offset:L.offset,position:p,rect:L.rect}),"menuPortal",{"menu-portal":!0}),f),o);return Se(l0.Provider,{value:E},i?uE.createPortal(I,i):I)},M_=function(l){var i=l.isDisabled,o=l.isRtl;return{label:"container",direction:o?"rtl":void 0,pointerEvents:i?"none":void 0,position:"relative"}},D_=function(l){var i=l.children,o=l.innerProps,u=l.isDisabled,f=l.isRtl;return Se("div",xe({},pt(l,"container",{"--is-disabled":u,"--is-rtl":f}),o),i)},R_=function(l,i){var o=l.theme.spacing,u=l.isMulti,f=l.hasValue,d=l.selectProps.controlShouldRenderValue;return _e({alignItems:"center",display:u&&f&&d?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},i?{}:{padding:"".concat(o.baseUnit/2,"px ").concat(o.baseUnit*2,"px")})},N_=function(l){var i=l.children,o=l.innerProps,u=l.isMulti,f=l.hasValue;return Se("div",xe({},pt(l,"valueContainer",{"value-container":!0,"value-container--is-multi":u,"value-container--has-value":f}),o),i)},V_=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},z_=function(l){var i=l.children,o=l.innerProps;return Se("div",xe({},pt(l,"indicatorsContainer",{indicators:!0}),o),i)},qy,w_=["size"],L_=["innerProps","isRtl","size"],U_={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},i0=function(l){var i=l.size,o=Sa(l,w_);return Se("svg",xe({height:i,width:i,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:U_},o))},Hd=function(l){return Se(i0,xe({size:20},l),Se("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"}))},u0=function(l){return Se(i0,xe({size:20},l),Se("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"}))},o0=function(l,i){var o=l.isFocused,u=l.theme,f=u.spacing.baseUnit,d=u.colors;return _e({label:"indicatorContainer",display:"flex",transition:"color 150ms"},i?{}:{color:o?d.neutral60:d.neutral20,padding:f*2,":hover":{color:o?d.neutral80:d.neutral40}})},H_=o0,q_=function(l){var i=l.children,o=l.innerProps;return Se("div",xe({},pt(l,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),o),i||Se(u0,null))},j_=o0,B_=function(l){var i=l.children,o=l.innerProps;return Se("div",xe({},pt(l,"clearIndicator",{indicator:!0,"clear-indicator":!0}),o),i||Se(Hd,null))},k_=function(l,i){var o=l.isDisabled,u=l.theme,f=u.spacing.baseUnit,d=u.colors;return _e({label:"indicatorSeparator",alignSelf:"stretch",width:1},i?{}:{backgroundColor:o?d.neutral10:d.neutral20,marginBottom:f*2,marginTop:f*2})},F_=function(l){var i=l.innerProps;return Se("span",xe({},i,pt(l,"indicatorSeparator",{"indicator-separator":!0})))},G_=BO(qy||(qy=kO([`
|
|
12
|
-
0%, 80%, 100% { opacity: 0; }
|
|
13
|
-
40% { opacity: 1; }
|
|
14
|
-
`]))),Y_=function(l,i){var o=l.isFocused,u=l.size,f=l.theme,d=f.colors,p=f.spacing.baseUnit;return _e({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:u,lineHeight:1,marginRight:u,textAlign:"center",verticalAlign:"middle"},i?{}:{color:o?d.neutral60:d.neutral20,padding:p*2})},Lf=function(l){var i=l.delay,o=l.offset;return Se("span",{css:wd({animation:"".concat(G_," 1s ease-in-out ").concat(i,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Q_=function(l){var i=l.innerProps,o=l.isRtl,u=l.size,f=u===void 0?4:u,d=Sa(l,L_);return Se("div",xe({},pt(_e(_e({},d),{},{innerProps:i,isRtl:o,size:f}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),i),Se(Lf,{delay:0,offset:o}),Se(Lf,{delay:160,offset:!0}),Se(Lf,{delay:320,offset:!o}))},I_=function(l,i){var o=l.isDisabled,u=l.isFocused,f=l.theme,d=f.colors,p=f.borderRadius,v=f.spacing;return _e({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:v.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},i?{}:{backgroundColor:o?d.neutral5:d.neutral0,borderColor:o?d.neutral10:u?d.primary:d.neutral20,borderRadius:p,borderStyle:"solid",borderWidth:1,boxShadow:u?"0 0 0 1px ".concat(d.primary):void 0,"&:hover":{borderColor:u?d.primary:d.neutral30}})},X_=function(l){var i=l.children,o=l.isDisabled,u=l.isFocused,f=l.innerRef,d=l.innerProps,p=l.menuIsOpen;return Se("div",xe({ref:f},pt(l,"control",{control:!0,"control--is-disabled":o,"control--is-focused":u,"control--menu-is-open":p}),d,{"aria-disabled":o||void 0}),i)},$_=X_,Z_=["data"],K_=function(l,i){var o=l.theme.spacing;return i?{}:{paddingBottom:o.baseUnit*2,paddingTop:o.baseUnit*2}},J_=function(l){var i=l.children,o=l.cx,u=l.getStyles,f=l.getClassNames,d=l.Heading,p=l.headingProps,v=l.innerProps,h=l.label,g=l.theme,b=l.selectProps;return Se("div",xe({},pt(l,"group",{group:!0}),v),Se(d,xe({},p,{selectProps:b,theme:g,getStyles:u,getClassNames:f,cx:o}),h),Se("div",null,i))},P_=function(l,i){var o=l.theme,u=o.colors,f=o.spacing;return _e({label:"group",cursor:"default",display:"block"},i?{}:{color:u.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:f.baseUnit*3,paddingRight:f.baseUnit*3,textTransform:"uppercase"})},W_=function(l){var i=e0(l);i.data;var o=Sa(i,Z_);return Se("div",xe({},pt(l,"groupHeading",{"group-heading":!0}),o))},eA=J_,tA=["innerRef","isDisabled","isHidden","inputClassName"],nA=function(l,i){var o=l.isDisabled,u=l.value,f=l.theme,d=f.spacing,p=f.colors;return _e(_e({visibility:o?"hidden":"visible",transform:u?"translateZ(0)":""},aA),i?{}:{margin:d.baseUnit/2,paddingBottom:d.baseUnit/2,paddingTop:d.baseUnit/2,color:p.neutral80})},s0={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},aA={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_e({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},s0)},lA=function(l){return _e({label:"input",color:"inherit",background:0,opacity:l?0:1,width:"100%"},s0)},rA=function(l){var i=l.cx,o=l.value,u=e0(l),f=u.innerRef,d=u.isDisabled,p=u.isHidden,v=u.inputClassName,h=Sa(u,tA);return Se("div",xe({},pt(l,"input",{"input-container":!0}),{"data-value":o||""}),Se("input",xe({className:i({input:!0},v),ref:f,style:lA(p),disabled:d},h)))},iA=rA,uA=function(l,i){var o=l.theme,u=o.spacing,f=o.borderRadius,d=o.colors;return _e({label:"multiValue",display:"flex",minWidth:0},i?{}:{backgroundColor:d.neutral10,borderRadius:f/2,margin:u.baseUnit/2})},oA=function(l,i){var o=l.theme,u=o.borderRadius,f=o.colors,d=l.cropWithEllipsis;return _e({overflow:"hidden",textOverflow:d||d===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},i?{}:{borderRadius:u/2,color:f.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},sA=function(l,i){var o=l.theme,u=o.spacing,f=o.borderRadius,d=o.colors,p=l.isFocused;return _e({alignItems:"center",display:"flex"},i?{}:{borderRadius:f/2,backgroundColor:p?d.dangerLight:void 0,paddingLeft:u.baseUnit,paddingRight:u.baseUnit,":hover":{backgroundColor:d.dangerLight,color:d.danger}})},c0=function(l){var i=l.children,o=l.innerProps;return Se("div",o,i)},cA=c0,fA=c0;function dA(n){var l=n.children,i=n.innerProps;return Se("div",xe({role:"button"},i),l||Se(Hd,{size:14}))}var vA=function(l){var i=l.children,o=l.components,u=l.data,f=l.innerProps,d=l.isDisabled,p=l.removeProps,v=l.selectProps,h=o.Container,g=o.Label,b=o.Remove;return Se(h,{data:u,innerProps:_e(_e({},pt(l,"multiValue",{"multi-value":!0,"multi-value--is-disabled":d})),f),selectProps:v},Se(g,{data:u,innerProps:_e({},pt(l,"multiValueLabel",{"multi-value__label":!0})),selectProps:v},i),Se(b,{data:u,innerProps:_e(_e({},pt(l,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(i||"option")},p),selectProps:v}))},hA=vA,mA=function(l,i){var o=l.isDisabled,u=l.isFocused,f=l.isSelected,d=l.theme,p=d.spacing,v=d.colors;return _e({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},i?{}:{backgroundColor:f?v.primary:u?v.primary25:"transparent",color:o?v.neutral20:f?v.neutral0:"inherit",padding:"".concat(p.baseUnit*2,"px ").concat(p.baseUnit*3,"px"),":active":{backgroundColor:o?void 0:f?v.primary:v.primary50}})},pA=function(l){var i=l.children,o=l.isDisabled,u=l.isFocused,f=l.isSelected,d=l.innerRef,p=l.innerProps;return Se("div",xe({},pt(l,"option",{option:!0,"option--is-disabled":o,"option--is-focused":u,"option--is-selected":f}),{ref:d,"aria-disabled":o},p),i)},yA=pA,gA=function(l,i){var o=l.theme,u=o.spacing,f=o.colors;return _e({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},i?{}:{color:f.neutral50,marginLeft:u.baseUnit/2,marginRight:u.baseUnit/2})},bA=function(l){var i=l.children,o=l.innerProps;return Se("div",xe({},pt(l,"placeholder",{placeholder:!0}),o),i)},SA=bA,EA=function(l,i){var o=l.isDisabled,u=l.theme,f=u.spacing,d=u.colors;return _e({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i?{}:{color:o?d.neutral40:d.neutral80,marginLeft:f.baseUnit/2,marginRight:f.baseUnit/2})},OA=function(l){var i=l.children,o=l.isDisabled,u=l.innerProps;return Se("div",xe({},pt(l,"singleValue",{"single-value":!0,"single-value--is-disabled":o}),u),i)},_A=OA,AA={ClearIndicator:B_,Control:$_,DropdownIndicator:q_,DownChevron:u0,CrossIcon:Hd,Group:eA,GroupHeading:W_,IndicatorsContainer:z_,IndicatorSeparator:F_,Input:iA,LoadingIndicator:Q_,Menu:b_,MenuList:E_,MenuPortal:x_,LoadingMessage:C_,NoOptionsMessage:A_,MultiValue:hA,MultiValueContainer:cA,MultiValueLabel:fA,MultiValueRemove:dA,Option:yA,Placeholder:SA,SelectContainer:D_,SingleValue:_A,ValueContainer:N_},CA=function(l){return _e(_e({},AA),l.components)},jy=Number.isNaN||function(l){return typeof l=="number"&&l!==l};function TA(n,l){return!!(n===l||jy(n)&&jy(l))}function xA(n,l){if(n.length!==l.length)return!1;for(var i=0;i<n.length;i++)if(!TA(n[i],l[i]))return!1;return!0}function MA(n,l){l===void 0&&(l=xA);var i=null;function o(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];if(i&&i.lastThis===this&&l(u,i.lastArgs))return i.lastResult;var d=n.apply(this,u);return i={lastResult:d,lastArgs:u,lastThis:this},d}return o.clear=function(){i=null},o}var DA={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"},RA=function(l){return Se("span",xe({css:DA},l))},By=RA,NA={guidance:function(l){var i=l.isSearchable,o=l.isMulti,u=l.tabSelectsValue,f=l.context,d=l.isInitialFocus;switch(f){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(u?", press Tab to select the option and exit the menu":"",".");case"input":return d?"".concat(l["aria-label"]||"Select"," is focused ").concat(i?",type to refine list":"",", press Down to open the menu, ").concat(o?" 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(l){var i=l.action,o=l.label,u=o===void 0?"":o,f=l.labels,d=l.isDisabled;switch(i){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(u,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(f.length>1?"s":""," ").concat(f.join(","),", selected.");case"select-option":return d?"option ".concat(u," is disabled. Select another option."):"option ".concat(u,", selected.");default:return""}},onFocus:function(l){var i=l.context,o=l.focused,u=l.options,f=l.label,d=f===void 0?"":f,p=l.selectValue,v=l.isDisabled,h=l.isSelected,g=l.isAppleDevice,b=function(_,M){return _&&_.length?"".concat(_.indexOf(M)+1," of ").concat(_.length):""};if(i==="value"&&p)return"value ".concat(d," focused, ").concat(b(p,o),".");if(i==="menu"&&g){var C=v?" disabled":"",x="".concat(h?" selected":"").concat(C);return"".concat(d).concat(x,", ").concat(b(u,o),".")}return""},onFilter:function(l){var i=l.inputValue,o=l.resultsMessage;return"".concat(o).concat(i?" for search term "+i:"",".")}},VA=function(l){var i=l.ariaSelection,o=l.focusedOption,u=l.focusedValue,f=l.focusableOptions,d=l.isFocused,p=l.selectValue,v=l.selectProps,h=l.id,g=l.isAppleDevice,b=v.ariaLiveMessages,C=v.getOptionLabel,x=v.inputValue,E=v.isMulti,_=v.isOptionDisabled,M=v.isSearchable,L=v.menuIsOpen,A=v.options,U=v.screenReaderStatus,N=v.tabSelectsValue,D=v.isLoading,I=v["aria-label"],Q=v["aria-live"],ae=Y.useMemo(function(){return _e(_e({},NA),b||{})},[b]),pe=Y.useMemo(function(){var Ae="";if(i&&ae.onChange){var q=i.option,K=i.options,fe=i.removedValue,ee=i.removedValues,Me=i.value,T=function(We){return Array.isArray(We)?null:We},F=fe||q||T(Me),te=F?C(F):"",oe=K||ee||void 0,ye=oe?oe.map(C):[],Ce=_e({isDisabled:F&&_(F,p),label:te,labels:ye},i);Ae=ae.onChange(Ce)}return Ae},[i,ae,_,p,C]),De=Y.useMemo(function(){var Ae="",q=o||u,K=!!(o&&p&&p.includes(o));if(q&&ae.onFocus){var fe={focused:q,label:C(q),isDisabled:_(q,p),isSelected:K,options:f,context:q===o?"menu":"value",selectValue:p,isAppleDevice:g};Ae=ae.onFocus(fe)}return Ae},[o,u,C,_,ae,f,p,g]),Ne=Y.useMemo(function(){var Ae="";if(L&&A.length&&!D&&ae.onFilter){var q=U({count:f.length});Ae=ae.onFilter({inputValue:x,resultsMessage:q})}return Ae},[f,x,L,ae,A,U,D]),ie=i?.action==="initial-input-focus",ue=Y.useMemo(function(){var Ae="";if(ae.guidance){var q=u?"value":L?"menu":"input";Ae=ae.guidance({"aria-label":I,context:q,isDisabled:o&&_(o,p),isMulti:E,isSearchable:M,tabSelectsValue:N,isInitialFocus:ie})}return Ae},[I,o,u,E,_,M,L,ae,p,N,ie]),ge=Se(Y.Fragment,null,Se("span",{id:"aria-selection"},pe),Se("span",{id:"aria-focused"},De),Se("span",{id:"aria-results"},Ne),Se("span",{id:"aria-guidance"},ue));return Se(Y.Fragment,null,Se(By,{id:h},ie&&ge),Se(By,{"aria-live":Q,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},d&&!ie&&ge))},zA=VA,fd=[{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źẑżžẓẕƶȥɀⱬꝣ"}],wA=new RegExp("["+fd.map(function(n){return n.letters}).join("")+"]","g"),f0={};for(var Uf=0;Uf<fd.length;Uf++)for(var Hf=fd[Uf],qf=0;qf<Hf.letters.length;qf++)f0[Hf.letters[qf]]=Hf.base;var d0=function(l){return l.replace(wA,function(i){return f0[i]})},LA=MA(d0),ky=function(l){return l.replace(/^\s+|\s+$/g,"")},UA=function(l){return"".concat(l.label," ").concat(l.value)},HA=function(l){return function(i,o){if(i.data.__isNew__)return!0;var u=_e({ignoreCase:!0,ignoreAccents:!0,stringify:UA,trim:!0,matchFrom:"any"},l),f=u.ignoreCase,d=u.ignoreAccents,p=u.stringify,v=u.trim,h=u.matchFrom,g=v?ky(o):o,b=v?ky(p(i)):p(i);return f&&(g=g.toLowerCase(),b=b.toLowerCase()),d&&(g=LA(g),b=d0(b)),h==="start"?b.substr(0,g.length)===g:b.indexOf(g)>-1}},qA=["innerRef"];function jA(n){var l=n.innerRef,i=Sa(n,qA),o=f_(i,"onExited","in","enter","exit","appear");return Se("input",xe({ref:l},o,{css:wd({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 BA=function(l){l.cancelable&&l.preventDefault(),l.stopPropagation()};function kA(n){var l=n.isEnabled,i=n.onBottomArrive,o=n.onBottomLeave,u=n.onTopArrive,f=n.onTopLeave,d=Y.useRef(!1),p=Y.useRef(!1),v=Y.useRef(0),h=Y.useRef(null),g=Y.useCallback(function(M,L){if(h.current!==null){var A=h.current,U=A.scrollTop,N=A.scrollHeight,D=A.clientHeight,I=h.current,Q=L>0,ae=N-D-U,pe=!1;ae>L&&d.current&&(o&&o(M),d.current=!1),Q&&p.current&&(f&&f(M),p.current=!1),Q&&L>ae?(i&&!d.current&&i(M),I.scrollTop=N,pe=!0,d.current=!0):!Q&&-L>U&&(u&&!p.current&&u(M),I.scrollTop=0,pe=!0,p.current=!0),pe&&BA(M)}},[i,o,u,f]),b=Y.useCallback(function(M){g(M,M.deltaY)},[g]),C=Y.useCallback(function(M){v.current=M.changedTouches[0].clientY},[]),x=Y.useCallback(function(M){var L=v.current-M.changedTouches[0].clientY;g(M,L)},[g]),E=Y.useCallback(function(M){if(M){var L=o_?{passive:!1}:!1;M.addEventListener("wheel",b,L),M.addEventListener("touchstart",C,L),M.addEventListener("touchmove",x,L)}},[x,C,b]),_=Y.useCallback(function(M){M&&(M.removeEventListener("wheel",b,!1),M.removeEventListener("touchstart",C,!1),M.removeEventListener("touchmove",x,!1))},[x,C,b]);return Y.useEffect(function(){if(l){var M=h.current;return E(M),function(){_(M)}}},[l,E,_]),function(M){h.current=M}}var Fy=["boxSizing","height","overflow","paddingRight","position"],Gy={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Yy(n){n.cancelable&&n.preventDefault()}function Qy(n){n.stopPropagation()}function Iy(){var n=this.scrollTop,l=this.scrollHeight,i=n+this.offsetHeight;n===0?this.scrollTop=1:i===l&&(this.scrollTop=n-1)}function Xy(){return"ontouchstart"in window||navigator.maxTouchPoints}var $y=!!(typeof window<"u"&&window.document&&window.document.createElement),Ai=0,dr={capture:!1,passive:!1};function FA(n){var l=n.isEnabled,i=n.accountForScrollbars,o=i===void 0?!0:i,u=Y.useRef({}),f=Y.useRef(null),d=Y.useCallback(function(v){if($y){var h=document.body,g=h&&h.style;if(o&&Fy.forEach(function(E){var _=g&&g[E];u.current[E]=_}),o&&Ai<1){var b=parseInt(u.current.paddingRight,10)||0,C=document.body?document.body.clientWidth:0,x=window.innerWidth-C+b||0;Object.keys(Gy).forEach(function(E){var _=Gy[E];g&&(g[E]=_)}),g&&(g.paddingRight="".concat(x,"px"))}h&&Xy()&&(h.addEventListener("touchmove",Yy,dr),v&&(v.addEventListener("touchstart",Iy,dr),v.addEventListener("touchmove",Qy,dr))),Ai+=1}},[o]),p=Y.useCallback(function(v){if($y){var h=document.body,g=h&&h.style;Ai=Math.max(Ai-1,0),o&&Ai<1&&Fy.forEach(function(b){var C=u.current[b];g&&(g[b]=C)}),h&&Xy()&&(h.removeEventListener("touchmove",Yy,dr),v&&(v.removeEventListener("touchstart",Iy,dr),v.removeEventListener("touchmove",Qy,dr)))}},[o]);return Y.useEffect(function(){if(l){var v=f.current;return d(v),function(){p(v)}}},[l,d,p]),function(v){f.current=v}}var GA=function(l){var i=l.target;return i.ownerDocument.activeElement&&i.ownerDocument.activeElement.blur()},YA={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function QA(n){var l=n.children,i=n.lockEnabled,o=n.captureEnabled,u=o===void 0?!0:o,f=n.onBottomArrive,d=n.onBottomLeave,p=n.onTopArrive,v=n.onTopLeave,h=kA({isEnabled:u,onBottomArrive:f,onBottomLeave:d,onTopArrive:p,onTopLeave:v}),g=FA({isEnabled:i}),b=function(x){h(x),g(x)};return Se(Y.Fragment,null,i&&Se("div",{onClick:GA,css:YA}),l(b))}var IA={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},XA=function(l){var i=l.name,o=l.onFocus;return Se("input",{required:!0,name:i,tabIndex:-1,"aria-hidden":"true",onFocus:o,css:IA,value:"",onChange:function(){}})},$A=XA;function qd(n){var l;return typeof window<"u"&&window.navigator!=null?n.test(((l=window.navigator.userAgentData)===null||l===void 0?void 0:l.platform)||window.navigator.platform):!1}function ZA(){return qd(/^iPhone/i)}function v0(){return qd(/^Mac/i)}function KA(){return qd(/^iPad/i)||v0()&&navigator.maxTouchPoints>1}function JA(){return ZA()||KA()}function PA(){return v0()||JA()}var WA=function(l){return l.label},eC=function(l){return l.label},tC=function(l){return l.value},nC=function(l){return!!l.isDisabled},aC={clearIndicator:j_,container:M_,control:I_,dropdownIndicator:H_,group:K_,groupHeading:P_,indicatorsContainer:V_,indicatorSeparator:k_,input:nA,loadingIndicator:Y_,loadingMessage:__,menu:p_,menuList:S_,menuPortal:T_,multiValue:uA,multiValueLabel:oA,multiValueRemove:sA,noOptionsMessage:O_,option:mA,placeholder:gA,singleValue:EA,valueContainer:R_},lC={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%)"},rC=4,h0=4,iC=38,uC=h0*2,oC={baseUnit:h0,controlHeight:iC,menuGutter:uC},jf={borderRadius:rC,colors:lC,spacing:oC},sC={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Hy(),captureMenuScroll:!Hy(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:HA(),formatGroupLabel:WA,getOptionLabel:eC,getOptionValue:tC,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:nC,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!i_(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(l){var i=l.count;return"".concat(i," result").concat(i!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Zy(n,l,i,o){var u=y0(n,l,i),f=g0(n,l,i),d=p0(n,l),p=ko(n,l);return{type:"option",data:l,isDisabled:u,isSelected:f,label:d,value:p,index:o}}function xo(n,l){return n.options.map(function(i,o){if("options"in i){var u=i.options.map(function(d,p){return Zy(n,d,l,p)}).filter(function(d){return Jy(n,d)});return u.length>0?{type:"group",data:i,options:u,index:o}:void 0}var f=Zy(n,i,l,o);return Jy(n,f)?f:void 0}).filter(s_)}function m0(n){return n.reduce(function(l,i){return i.type==="group"?l.push.apply(l,Dd(i.options.map(function(o){return o.data}))):l.push(i.data),l},[])}function Ky(n,l){return n.reduce(function(i,o){return o.type==="group"?i.push.apply(i,Dd(o.options.map(function(u){return{data:u.data,id:"".concat(l,"-").concat(o.index,"-").concat(u.index)}}))):i.push({data:o.data,id:"".concat(l,"-").concat(o.index)}),i},[])}function cC(n,l){return m0(xo(n,l))}function Jy(n,l){var i=n.inputValue,o=i===void 0?"":i,u=l.data,f=l.isSelected,d=l.label,p=l.value;return(!S0(n)||!f)&&b0(n,{label:d,value:p,data:u},o)}function fC(n,l){var i=n.focusedValue,o=n.selectValue,u=o.indexOf(i);if(u>-1){var f=l.indexOf(i);if(f>-1)return i;if(u<l.length)return l[u]}return null}function dC(n,l){var i=n.focusedOption;return i&&l.indexOf(i)>-1?i:l[0]}var Bf=function(l,i){var o,u=(o=l.find(function(f){return f.data===i}))===null||o===void 0?void 0:o.id;return u||null},p0=function(l,i){return l.getOptionLabel(i)},ko=function(l,i){return l.getOptionValue(i)};function y0(n,l,i){return typeof n.isOptionDisabled=="function"?n.isOptionDisabled(l,i):!1}function g0(n,l,i){if(i.indexOf(l)>-1)return!0;if(typeof n.isOptionSelected=="function")return n.isOptionSelected(l,i);var o=ko(n,l);return i.some(function(u){return ko(n,u)===o})}function b0(n,l,i){return n.filterOption?n.filterOption(l,i):!0}var S0=function(l){var i=l.hideSelectedOptions,o=l.isMulti;return i===void 0?o:i},vC=1,E0=(function(n){HE(i,n);var l=BE(i);function i(o){var u;if(LE(this,i),u=l.call(this,o),u.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},u.blockOptionHover=!1,u.isComposing=!1,u.commonProps=void 0,u.initialTouchX=0,u.initialTouchY=0,u.openAfterFocus=!1,u.scrollToFocusedOptionOnUpdate=!1,u.userIsDragging=void 0,u.controlRef=null,u.getControlRef=function(v){u.controlRef=v},u.focusedOptionRef=null,u.getFocusedOptionRef=function(v){u.focusedOptionRef=v},u.menuListRef=null,u.getMenuListRef=function(v){u.menuListRef=v},u.inputRef=null,u.getInputRef=function(v){u.inputRef=v},u.focus=u.focusInput,u.blur=u.blurInput,u.onChange=function(v,h){var g=u.props,b=g.onChange,C=g.name;h.name=C,u.ariaOnChange(v,h),b(v,h)},u.setValue=function(v,h,g){var b=u.props,C=b.closeMenuOnSelect,x=b.isMulti,E=b.inputValue;u.onInputChange("",{action:"set-value",prevInputValue:E}),C&&(u.setState({inputIsHiddenAfterUpdate:!x}),u.onMenuClose()),u.setState({clearFocusValueOnUpdate:!0}),u.onChange(v,{action:h,option:g})},u.selectOption=function(v){var h=u.props,g=h.blurInputOnSelect,b=h.isMulti,C=h.name,x=u.state.selectValue,E=b&&u.isOptionSelected(v,x),_=u.isOptionDisabled(v,x);if(E){var M=u.getOptionValue(v);u.setValue(x.filter(function(L){return u.getOptionValue(L)!==M}),"deselect-option",v)}else if(!_)b?u.setValue([].concat(Dd(x),[v]),"select-option",v):u.setValue(v,"select-option");else{u.ariaOnChange(v,{action:"select-option",option:v,name:C});return}g&&u.blurInput()},u.removeValue=function(v){var h=u.props.isMulti,g=u.state.selectValue,b=u.getOptionValue(v),C=g.filter(function(E){return u.getOptionValue(E)!==b}),x=mo(h,C,C[0]||null);u.onChange(x,{action:"remove-value",removedValue:v}),u.focusInput()},u.clearValue=function(){var v=u.state.selectValue;u.onChange(mo(u.props.isMulti,[],null),{action:"clear",removedValues:v})},u.popValue=function(){var v=u.props.isMulti,h=u.state.selectValue,g=h[h.length-1],b=h.slice(0,h.length-1),C=mo(v,b,b[0]||null);g&&u.onChange(C,{action:"pop-value",removedValue:g})},u.getFocusedOptionId=function(v){return Bf(u.state.focusableOptionsWithIds,v)},u.getFocusableOptionsWithIds=function(){return Ky(xo(u.props,u.state.selectValue),u.getElementId("option"))},u.getValue=function(){return u.state.selectValue},u.cx=function(){for(var v=arguments.length,h=new Array(v),g=0;g<v;g++)h[g]=arguments[g];return t_.apply(void 0,[u.props.classNamePrefix].concat(h))},u.getOptionLabel=function(v){return p0(u.props,v)},u.getOptionValue=function(v){return ko(u.props,v)},u.getStyles=function(v,h){var g=u.props.unstyled,b=aC[v](h,g);b.boxSizing="border-box";var C=u.props.styles[v];return C?C(b,h):b},u.getClassNames=function(v,h){var g,b;return(g=(b=u.props.classNames)[v])===null||g===void 0?void 0:g.call(b,h)},u.getElementId=function(v){return"".concat(u.state.instancePrefix,"-").concat(v)},u.getComponents=function(){return CA(u.props)},u.buildCategorizedOptions=function(){return xo(u.props,u.state.selectValue)},u.getCategorizedOptions=function(){return u.props.menuIsOpen?u.buildCategorizedOptions():[]},u.buildFocusableOptions=function(){return m0(u.buildCategorizedOptions())},u.getFocusableOptions=function(){return u.props.menuIsOpen?u.buildFocusableOptions():[]},u.ariaOnChange=function(v,h){u.setState({ariaSelection:_e({value:v},h)})},u.onMenuMouseDown=function(v){v.button===0&&(v.stopPropagation(),v.preventDefault(),u.focusInput())},u.onMenuMouseMove=function(v){u.blockOptionHover=!1},u.onControlMouseDown=function(v){if(!v.defaultPrevented){var h=u.props.openMenuOnClick;u.state.isFocused?u.props.menuIsOpen?v.target.tagName!=="INPUT"&&v.target.tagName!=="TEXTAREA"&&u.onMenuClose():h&&u.openMenu("first"):(h&&(u.openAfterFocus=!0),u.focusInput()),v.target.tagName!=="INPUT"&&v.target.tagName!=="TEXTAREA"&&v.preventDefault()}},u.onDropdownIndicatorMouseDown=function(v){if(!(v&&v.type==="mousedown"&&v.button!==0)&&!u.props.isDisabled){var h=u.props,g=h.isMulti,b=h.menuIsOpen;u.focusInput(),b?(u.setState({inputIsHiddenAfterUpdate:!g}),u.onMenuClose()):u.openMenu("first"),v.preventDefault()}},u.onClearIndicatorMouseDown=function(v){v&&v.type==="mousedown"&&v.button!==0||(u.clearValue(),v.preventDefault(),u.openAfterFocus=!1,v.type==="touchend"?u.focusInput():setTimeout(function(){return u.focusInput()}))},u.onScroll=function(v){typeof u.props.closeMenuOnScroll=="boolean"?v.target instanceof HTMLElement&&ls(v.target)&&u.props.onMenuClose():typeof u.props.closeMenuOnScroll=="function"&&u.props.closeMenuOnScroll(v)&&u.props.onMenuClose()},u.onCompositionStart=function(){u.isComposing=!0},u.onCompositionEnd=function(){u.isComposing=!1},u.onTouchStart=function(v){var h=v.touches,g=h&&h.item(0);g&&(u.initialTouchX=g.clientX,u.initialTouchY=g.clientY,u.userIsDragging=!1)},u.onTouchMove=function(v){var h=v.touches,g=h&&h.item(0);if(g){var b=Math.abs(g.clientX-u.initialTouchX),C=Math.abs(g.clientY-u.initialTouchY),x=5;u.userIsDragging=b>x||C>x}},u.onTouchEnd=function(v){u.userIsDragging||(u.controlRef&&!u.controlRef.contains(v.target)&&u.menuListRef&&!u.menuListRef.contains(v.target)&&u.blurInput(),u.initialTouchX=0,u.initialTouchY=0)},u.onControlTouchEnd=function(v){u.userIsDragging||u.onControlMouseDown(v)},u.onClearIndicatorTouchEnd=function(v){u.userIsDragging||u.onClearIndicatorMouseDown(v)},u.onDropdownIndicatorTouchEnd=function(v){u.userIsDragging||u.onDropdownIndicatorMouseDown(v)},u.handleInputChange=function(v){var h=u.props.inputValue,g=v.currentTarget.value;u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange(g,{action:"input-change",prevInputValue:h}),u.props.menuIsOpen||u.onMenuOpen()},u.onInputFocus=function(v){u.props.onFocus&&u.props.onFocus(v),u.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(u.openAfterFocus||u.props.openMenuOnFocus)&&u.openMenu("first"),u.openAfterFocus=!1},u.onInputBlur=function(v){var h=u.props.inputValue;if(u.menuListRef&&u.menuListRef.contains(document.activeElement)){u.inputRef.focus();return}u.props.onBlur&&u.props.onBlur(v),u.onInputChange("",{action:"input-blur",prevInputValue:h}),u.onMenuClose(),u.setState({focusedValue:null,isFocused:!1})},u.onOptionHover=function(v){if(!(u.blockOptionHover||u.state.focusedOption===v)){var h=u.getFocusableOptions(),g=h.indexOf(v);u.setState({focusedOption:v,focusedOptionId:g>-1?u.getFocusedOptionId(v):null})}},u.shouldHideSelectedOptions=function(){return S0(u.props)},u.onValueInputFocus=function(v){v.preventDefault(),v.stopPropagation(),u.focus()},u.onKeyDown=function(v){var h=u.props,g=h.isMulti,b=h.backspaceRemovesValue,C=h.escapeClearsValue,x=h.inputValue,E=h.isClearable,_=h.isDisabled,M=h.menuIsOpen,L=h.onKeyDown,A=h.tabSelectsValue,U=h.openMenuOnFocus,N=u.state,D=N.focusedOption,I=N.focusedValue,Q=N.selectValue;if(!_&&!(typeof L=="function"&&(L(v),v.defaultPrevented))){switch(u.blockOptionHover=!0,v.key){case"ArrowLeft":if(!g||x)return;u.focusValue("previous");break;case"ArrowRight":if(!g||x)return;u.focusValue("next");break;case"Delete":case"Backspace":if(x)return;if(I)u.removeValue(I);else{if(!b)return;g?u.popValue():E&&u.clearValue()}break;case"Tab":if(u.isComposing||v.shiftKey||!M||!A||!D||U&&u.isOptionSelected(D,Q))return;u.selectOption(D);break;case"Enter":if(v.keyCode===229)break;if(M){if(!D||u.isComposing)return;u.selectOption(D);break}return;case"Escape":M?(u.setState({inputIsHiddenAfterUpdate:!1}),u.onInputChange("",{action:"menu-close",prevInputValue:x}),u.onMenuClose()):E&&C&&u.clearValue();break;case" ":if(x)return;if(!M){u.openMenu("first");break}if(!D)return;u.selectOption(D);break;case"ArrowUp":M?u.focusOption("up"):u.openMenu("last");break;case"ArrowDown":M?u.focusOption("down"):u.openMenu("first");break;case"PageUp":if(!M)return;u.focusOption("pageup");break;case"PageDown":if(!M)return;u.focusOption("pagedown");break;case"Home":if(!M)return;u.focusOption("first");break;case"End":if(!M)return;u.focusOption("last");break;default:return}v.preventDefault()}},u.state.instancePrefix="react-select-"+(u.props.instanceId||++vC),u.state.selectValue=Ly(o.value),o.menuIsOpen&&u.state.selectValue.length){var f=u.getFocusableOptionsWithIds(),d=u.buildFocusableOptions(),p=d.indexOf(u.state.selectValue[0]);u.state.focusableOptionsWithIds=f,u.state.focusedOption=d[p],u.state.focusedOptionId=Bf(f,d[p])}return u}return UE(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&&Uy(this.menuListRef,this.focusedOptionRef),PA()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(u){var f=this.props,d=f.isDisabled,p=f.menuIsOpen,v=this.state.isFocused;(v&&!d&&u.isDisabled||v&&p&&!u.menuIsOpen)&&this.focusInput(),v&&d&&!u.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!v&&!d&&u.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Uy(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(u,f){this.props.onInputChange(u,f)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(u){var f=this,d=this.state,p=d.selectValue,v=d.isFocused,h=this.buildFocusableOptions(),g=u==="first"?0:h.length-1;if(!this.props.isMulti){var b=h.indexOf(p[0]);b>-1&&(g=b)}this.scrollToFocusedOptionOnUpdate=!(v&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:h[g],focusedOptionId:this.getFocusedOptionId(h[g])},function(){return f.onMenuOpen()})}},{key:"focusValue",value:function(u){var f=this.state,d=f.selectValue,p=f.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var v=d.indexOf(p);p||(v=-1);var h=d.length-1,g=-1;if(d.length){switch(u){case"previous":v===0?g=0:v===-1?g=h:g=v-1;break;case"next":v>-1&&v<h&&(g=v+1);break}this.setState({inputIsHidden:g!==-1,focusedValue:d[g]})}}}},{key:"focusOption",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",f=this.props.pageSize,d=this.state.focusedOption,p=this.getFocusableOptions();if(p.length){var v=0,h=p.indexOf(d);d||(h=-1),u==="up"?v=h>0?h-1:p.length-1:u==="down"?v=(h+1)%p.length:u==="pageup"?(v=h-f,v<0&&(v=0)):u==="pagedown"?(v=h+f,v>p.length-1&&(v=p.length-1)):u==="last"&&(v=p.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:p[v],focusedValue:null,focusedOptionId:this.getFocusedOptionId(p[v])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(jf):_e(_e({},jf),this.props.theme):jf})},{key:"getCommonProps",value:function(){var u=this.clearValue,f=this.cx,d=this.getStyles,p=this.getClassNames,v=this.getValue,h=this.selectOption,g=this.setValue,b=this.props,C=b.isMulti,x=b.isRtl,E=b.options,_=this.hasValue();return{clearValue:u,cx:f,getStyles:d,getClassNames:p,getValue:v,hasValue:_,isMulti:C,isRtl:x,options:E,selectOption:h,selectProps:b,setValue:g,theme:this.getTheme()}}},{key:"hasValue",value:function(){var u=this.state.selectValue;return u.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var u=this.props,f=u.isClearable,d=u.isMulti;return f===void 0?d:f}},{key:"isOptionDisabled",value:function(u,f){return y0(this.props,u,f)}},{key:"isOptionSelected",value:function(u,f){return g0(this.props,u,f)}},{key:"filterOption",value:function(u,f){return b0(this.props,u,f)}},{key:"formatOptionLabel",value:function(u,f){if(typeof this.props.formatOptionLabel=="function"){var d=this.props.inputValue,p=this.state.selectValue;return this.props.formatOptionLabel(u,{context:f,inputValue:d,selectValue:p})}else return this.getOptionLabel(u)}},{key:"formatGroupLabel",value:function(u){return this.props.formatGroupLabel(u)}},{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 u=this.props,f=u.isDisabled,d=u.isSearchable,p=u.inputId,v=u.inputValue,h=u.tabIndex,g=u.form,b=u.menuIsOpen,C=u.required,x=this.getComponents(),E=x.Input,_=this.state,M=_.inputIsHidden,L=_.ariaSelection,A=this.commonProps,U=p||this.getElementId("input"),N=_e(_e(_e({"aria-autocomplete":"list","aria-expanded":b,"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":C,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},b&&{"aria-controls":this.getElementId("listbox")}),!d&&{"aria-readonly":!0}),this.hasValue()?L?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return d?Y.createElement(E,xe({},A,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:U,innerRef:this.getInputRef,isDisabled:f,isHidden:M,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:h,form:g,type:"text",value:v},N)):Y.createElement(jA,xe({id:U,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:jo,onFocus:this.onInputFocus,disabled:f,tabIndex:h,inputMode:"none",form:g,value:""},N))})},{key:"renderPlaceholderOrValue",value:function(){var u=this,f=this.getComponents(),d=f.MultiValue,p=f.MultiValueContainer,v=f.MultiValueLabel,h=f.MultiValueRemove,g=f.SingleValue,b=f.Placeholder,C=this.commonProps,x=this.props,E=x.controlShouldRenderValue,_=x.isDisabled,M=x.isMulti,L=x.inputValue,A=x.placeholder,U=this.state,N=U.selectValue,D=U.focusedValue,I=U.isFocused;if(!this.hasValue()||!E)return L?null:Y.createElement(b,xe({},C,{key:"placeholder",isDisabled:_,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),A);if(M)return N.map(function(ae,pe){var De=ae===D,Ne="".concat(u.getOptionLabel(ae),"-").concat(u.getOptionValue(ae));return Y.createElement(d,xe({},C,{components:{Container:p,Label:v,Remove:h},isFocused:De,isDisabled:_,key:Ne,index:pe,removeProps:{onClick:function(){return u.removeValue(ae)},onTouchEnd:function(){return u.removeValue(ae)},onMouseDown:function(ue){ue.preventDefault()}},data:ae}),u.formatOptionLabel(ae,"value"))});if(L)return null;var Q=N[0];return Y.createElement(g,xe({},C,{data:Q,isDisabled:_}),this.formatOptionLabel(Q,"value"))}},{key:"renderClearIndicator",value:function(){var u=this.getComponents(),f=u.ClearIndicator,d=this.commonProps,p=this.props,v=p.isDisabled,h=p.isLoading,g=this.state.isFocused;if(!this.isClearable()||!f||v||!this.hasValue()||h)return null;var b={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(f,xe({},d,{innerProps:b,isFocused:g}))}},{key:"renderLoadingIndicator",value:function(){var u=this.getComponents(),f=u.LoadingIndicator,d=this.commonProps,p=this.props,v=p.isDisabled,h=p.isLoading,g=this.state.isFocused;if(!f||!h)return null;var b={"aria-hidden":"true"};return Y.createElement(f,xe({},d,{innerProps:b,isDisabled:v,isFocused:g}))}},{key:"renderIndicatorSeparator",value:function(){var u=this.getComponents(),f=u.DropdownIndicator,d=u.IndicatorSeparator;if(!f||!d)return null;var p=this.commonProps,v=this.props.isDisabled,h=this.state.isFocused;return Y.createElement(d,xe({},p,{isDisabled:v,isFocused:h}))}},{key:"renderDropdownIndicator",value:function(){var u=this.getComponents(),f=u.DropdownIndicator;if(!f)return null;var d=this.commonProps,p=this.props.isDisabled,v=this.state.isFocused,h={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(f,xe({},d,{innerProps:h,isDisabled:p,isFocused:v}))}},{key:"renderMenu",value:function(){var u=this,f=this.getComponents(),d=f.Group,p=f.GroupHeading,v=f.Menu,h=f.MenuList,g=f.MenuPortal,b=f.LoadingMessage,C=f.NoOptionsMessage,x=f.Option,E=this.commonProps,_=this.state.focusedOption,M=this.props,L=M.captureMenuScroll,A=M.inputValue,U=M.isLoading,N=M.loadingMessage,D=M.minMenuHeight,I=M.maxMenuHeight,Q=M.menuIsOpen,ae=M.menuPlacement,pe=M.menuPosition,De=M.menuPortalTarget,Ne=M.menuShouldBlockScroll,ie=M.menuShouldScrollIntoView,ue=M.noOptionsMessage,ge=M.onMenuScrollToTop,Ae=M.onMenuScrollToBottom;if(!Q)return null;var q=function(te,oe){var ye=te.type,Ce=te.data,Ve=te.isDisabled,We=te.isSelected,Ze=te.label,Kn=te.value,qn=_===Ce,Jn=Ve?void 0:function(){return u.onOptionHover(Ce)},Pn=Ve?void 0:function(){return u.selectOption(Ce)},yn="".concat(u.getElementId("option"),"-").concat(oe),Ea={id:yn,onClick:Pn,onMouseMove:Jn,onMouseOver:Jn,tabIndex:-1,role:"option","aria-selected":u.state.isAppleDevice?void 0:We};return Y.createElement(x,xe({},E,{innerProps:Ea,data:Ce,isDisabled:Ve,isSelected:We,key:yn,label:Ze,type:ye,value:Kn,isFocused:qn,innerRef:qn?u.getFocusedOptionRef:void 0}),u.formatOptionLabel(te.data,"menu"))},K;if(this.hasOptions())K=this.getCategorizedOptions().map(function(F){if(F.type==="group"){var te=F.data,oe=F.options,ye=F.index,Ce="".concat(u.getElementId("group"),"-").concat(ye),Ve="".concat(Ce,"-heading");return Y.createElement(d,xe({},E,{key:Ce,data:te,options:oe,Heading:p,headingProps:{id:Ve,data:F.data},label:u.formatGroupLabel(F.data)}),F.options.map(function(We){return q(We,"".concat(ye,"-").concat(We.index))}))}else if(F.type==="option")return q(F,"".concat(F.index))});else if(U){var fe=N({inputValue:A});if(fe===null)return null;K=Y.createElement(b,E,fe)}else{var ee=ue({inputValue:A});if(ee===null)return null;K=Y.createElement(C,E,ee)}var Me={minMenuHeight:D,maxMenuHeight:I,menuPlacement:ae,menuPosition:pe,menuShouldScrollIntoView:ie},T=Y.createElement(y_,xe({},E,Me),function(F){var te=F.ref,oe=F.placerProps,ye=oe.placement,Ce=oe.maxHeight;return Y.createElement(v,xe({},E,Me,{innerRef:te,innerProps:{onMouseDown:u.onMenuMouseDown,onMouseMove:u.onMenuMouseMove},isLoading:U,placement:ye}),Y.createElement(QA,{captureEnabled:L,onTopArrive:ge,onBottomArrive:Ae,lockEnabled:Ne},function(Ve){return Y.createElement(h,xe({},E,{innerRef:function(Ze){u.getMenuListRef(Ze),Ve(Ze)},innerProps:{role:"listbox","aria-multiselectable":E.isMulti,id:u.getElementId("listbox")},isLoading:U,maxHeight:Ce,focusedOption:_}),K)}))});return De||pe==="fixed"?Y.createElement(g,xe({},E,{appendTo:De,controlElement:this.controlRef,menuPlacement:ae,menuPosition:pe}),T):T}},{key:"renderFormField",value:function(){var u=this,f=this.props,d=f.delimiter,p=f.isDisabled,v=f.isMulti,h=f.name,g=f.required,b=this.state.selectValue;if(g&&!this.hasValue()&&!p)return Y.createElement($A,{name:h,onFocus:this.onValueInputFocus});if(!(!h||p))if(v)if(d){var C=b.map(function(_){return u.getOptionValue(_)}).join(d);return Y.createElement("input",{name:h,type:"hidden",value:C})}else{var x=b.length>0?b.map(function(_,M){return Y.createElement("input",{key:"i-".concat(M),name:h,type:"hidden",value:u.getOptionValue(_)})}):Y.createElement("input",{name:h,type:"hidden",value:""});return Y.createElement("div",null,x)}else{var E=b[0]?this.getOptionValue(b[0]):"";return Y.createElement("input",{name:h,type:"hidden",value:E})}}},{key:"renderLiveRegion",value:function(){var u=this.commonProps,f=this.state,d=f.ariaSelection,p=f.focusedOption,v=f.focusedValue,h=f.isFocused,g=f.selectValue,b=this.getFocusableOptions();return Y.createElement(zA,xe({},u,{id:this.getElementId("live-region"),ariaSelection:d,focusedOption:p,focusedValue:v,isFocused:h,selectValue:g,focusableOptions:b,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var u=this.getComponents(),f=u.Control,d=u.IndicatorsContainer,p=u.SelectContainer,v=u.ValueContainer,h=this.props,g=h.className,b=h.id,C=h.isDisabled,x=h.menuIsOpen,E=this.state.isFocused,_=this.commonProps=this.getCommonProps();return Y.createElement(p,xe({},_,{className:g,innerProps:{id:b,onKeyDown:this.onKeyDown},isDisabled:C,isFocused:E}),this.renderLiveRegion(),Y.createElement(f,xe({},_,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:C,isFocused:E,menuIsOpen:x}),Y.createElement(v,xe({},_,{isDisabled:C}),this.renderPlaceholderOrValue(),this.renderInput()),Y.createElement(d,xe({},_,{isDisabled:C}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(u,f){var d=f.prevProps,p=f.clearFocusValueOnUpdate,v=f.inputIsHiddenAfterUpdate,h=f.ariaSelection,g=f.isFocused,b=f.prevWasFocused,C=f.instancePrefix,x=u.options,E=u.value,_=u.menuIsOpen,M=u.inputValue,L=u.isMulti,A=Ly(E),U={};if(d&&(E!==d.value||x!==d.options||_!==d.menuIsOpen||M!==d.inputValue)){var N=_?cC(u,A):[],D=_?Ky(xo(u,A),"".concat(C,"-option")):[],I=p?fC(f,A):null,Q=dC(f,N),ae=Bf(D,Q);U={selectValue:A,focusedOption:Q,focusedOptionId:ae,focusableOptionsWithIds:D,focusedValue:I,clearFocusValueOnUpdate:!1}}var pe=v!=null&&u!==d?{inputIsHidden:v,inputIsHiddenAfterUpdate:void 0}:{},De=h,Ne=g&&b;return g&&!Ne&&(De={value:mo(L,A,A[0]||null),options:A,action:"initial-input-focus"},Ne=!b),h?.action==="initial-input-focus"&&(De=null),_e(_e(_e({},U),pe),{},{prevProps:u,ariaSelection:De,prevWasFocused:Ne})}}]),i})(Y.Component);E0.defaultProps=sC;var hC=Y.forwardRef(function(n,l){var i=wE(n);return Y.createElement(E0,xe({ref:l},i))}),mC=hC,Xe=function(){return Xe=Object.assign||function(n){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},Xe.apply(this,arguments)},pC=function(n,l){var i={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&l.indexOf(o)<0&&(i[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(n);u<o.length;u++)l.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(n,o[u])&&(i[o[u]]=n[o[u]]);return i},yC=function(n){return Xe(Xe({},n),{borderRadius:0,colors:Xe(Xe({},n.colors),{primary25:"var(--color--surface-hover)",neutral10:"var(--color--border)",neutral20:"var(--color--border)",primary:"var(--color--focus--border)",neutral30:"var(--color--border-hover)"})})},gC=function(n,l){return Y.useMemo(function(){return{placeholder:function(i){return Xe(Xe({},i),{color:"var(--color--ink-placeholder)"})},container:function(i){return Xe(Xe({},i),{fontSize:"inherit"})},control:function(i,o){var u=o.isFocused,f=i;return f=Xe(Xe({},f),{minHeight:40}),u?Xe(Xe({},f),{borderColor:l?"var(--color--danger-soft--border)":"var(--color--focus--border)",backgroundColor:n?"var(--color--disabled--surface)":"var(--color--surface)",boxShadow:"0 0 0 4px ".concat(l?"var(--color--danger-soft--outline)":"var(--color--focus--outline)"),"&:hover":{borderColor:l?"var(--color--danger-soft--border)":"var(--color--focus--border)"}}):Xe(Xe({},f),{borderColor:l?"var(--color--danger-soft--border)":"var(--color--border)",backgroundColor:n?"var(--color--disabled--surface)":"var(--color--surface)","&:hover":{borderColor:l?"var(--color--danger-soft--border)":"var(--color--border-hover)"}})},multiValueRemove:function(i){return Xe(Xe({},i),{cursor:"pointer",color:"var(--color--primary-soft--ink)",":hover":{backgroundColor:"var(--color--primary-soft--surface-hover)",color:"var(--color--primary-soft--ink)"}})},menu:function(i){return Xe(Xe({},i),{zIndex:1e3,minWidth:250,backgroundColor:"var(--color--surface-raised)",boxShadow:"var(--shadow--floating)"})},singleValue:function(i){return Xe(Xe({},i),{color:"var(--color--ink)"})},input:function(i){return Xe(Xe({},i),{color:"var(--color--ink)",boxShadow:"none","input:focus":{boxShadow:"none"}})},option:function(i,o){var u=o.isFocused,f=o.isSelected;return Xe(Xe({},i),{backgroundColor:f?"var(--color--selected--surface)":u?"var(--color--surface-hover)":void 0,color:"var(--color--ink)"})},multiValue:function(i){return Xe(Xe({},i),{zIndex:100,backgroundColor:"var(--color--primary-soft--surface)",userSelect:"none"})},multiValueLabel:function(i){return Xe(Xe({},i),{fontSize:"inherit",padding:3,color:"var(--color--primary-soft--ink)"})}}},[n,l])};function Mo(n){var l=n.isDisabled,i=n.error,o=pC(n,["isDisabled","error"]),u=gC(l,i);return se.createElement(mC,Xe({},o,{isDisabled:l,theme:yC,styles:u}))}const bC="_Spinner__bar_1u42l_13",kf={"Spinner--inline":"_Spinner--inline_1u42l_1","Spinner--centered":"_Spinner--centered_1u42l_7",Spinner__bar:bC};var Fo=function(){return Fo=Object.assign||function(n){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},Fo.apply(this,arguments)};function SC(n){for(var l,i=n.size,o=i===void 0?32:i,u=n.placement,f=u===void 0?"inline":u,d=n.style,p=d===void 0?{}:d,v=[],h=0;h<12;h+=1){var g={};g.animationDelay="".concat((h-12)/10,"s"),g.transform="rotate(".concat(h*30,"deg) translate(146%)"),v.push(se.createElement("div",{style:g,className:kf.Spinner__bar,key:h}))}var b={width:o*.5,height:o*.5};return f==="inline"&&(b.marginLeft=o*.5,b.transform="translateY(33%)"),se.createElement("div",{className:Ka((l={},l[kf["Spinner--inline"]]=f==="inline",l[kf["Spinner--centered"]]=f==="centered",l)),style:Fo(Fo({},p),b)},v)}var dd=function(){return dd=Object.assign||function(n){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},dd.apply(this,arguments)};function Py(n){var l=n.id,i=n.name,o=n.label,u=n.hint,f=n.error,d=n.required,p=n.placeholder,v=n.formLabelProps,h=n.value,g=n.onChange,b=n.textInputProps;return se.createElement(Vg,{formLabelProps:v,id:l,required:d,error:f,hint:u,label:o},se.createElement(O0,dd({},b,{id:l,name:i,value:h,placeholder:p,onChange:g,error:!!f})))}const EC="_TextInput_1kqkh_1",po={TextInput:EC,"TextInput--monospaced":"_TextInput--monospaced_1kqkh_32","TextInput--disabled":"_TextInput--disabled_1kqkh_37","TextInput--error":"_TextInput--error_1kqkh_43"};var vd=function(){return vd=Object.assign||function(n){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(n[u]=l[u])}return n},vd.apply(this,arguments)},OC=function(n,l){var i={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&l.indexOf(o)<0&&(i[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(n);u<o.length;u++)l.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(n,o[u])&&(i[o[u]]=n[o[u]]);return i},O0=function(n){var l,i=n.className,o=n.disabled,u=o===void 0?!1:o,f=n.error,d=n.id,p=n.inputRef,v=n.maxLength,h=n.name,g=n.labelText,b=n.onBlur,C=n.onChange,x=n.placeholder,E=n.required,_=E===void 0?!1:E,M=n.type,L=n.value,A=n.monospaced,U=OC(n,["className","disabled","error","id","inputRef","maxLength","name","labelText","onBlur","onChange","placeholder","required","type","value","monospaced"]),N=Y.useCallback(function(I){C&&C(I.target.value,I)},[C]),D=Ka(po.TextInput,i,(l={},l[po["TextInput--disabled"]]=u,l[po["TextInput--error"]]=f,l[po["TextInput--monospaced"]]=A,l));return se.createElement("input",vd({className:D,"aria-label":g,id:d,name:h,required:_,placeholder:x,maxLength:v,disabled:u,onBlur:b,onChange:N,value:L,type:M,ref:p},U))};function _l(n,l){switch(n){case"warning":break;case"error":console.error(`${l.code}: ${l.message}`,l.error||"");break}}var _C=Object.defineProperty,AC=(n,l,i)=>l in n?_C(n,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[l]=i,CC=(n,l,i)=>AC(n,l+"",i);let rt=class extends Error{constructor(l,i){super(`${l}: ${i}`),CC(this,"code",l),this.name="AuthenticatorError",_l("error",{code:l,message:i})}};function TC(n){const l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i=new Uint8Array(n);return window.crypto.getRandomValues(i),i=i.map(o=>l.charCodeAt(o%l.length)),String.fromCharCode.apply(null,Array.from(i))}function xC(n){return btoa(n).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function MC(n){return Object.keys(n).filter(l=>n[l]).map(l=>`${l}=${encodeURIComponent(n[l])}`).join("&")}function _r(n){const l=n.replace(/^(https?:\/\/)/,"");return l.endsWith("/")?l.replace(/\/+$/,""):l}async function Hi(n,l){try{const i=await fetch(n,l);if(i.status>=200&&i.status<=299)return await i.json();throw new rt("ERR_AUTH_HTTP_REQUEST",i.statusText)}catch(i){throw i instanceof rt?i:new rt("ERR_AUTH_HTTP_REQUEST",i)}}function DC(n,l){return window.addEventListener(n,l),()=>{window.removeEventListener(n,l)}}const RC=64,NC="code",VC="S256",_0="/connection/authenticator",zC="authorization_code",wC="refresh_token",LC="SHA-256",A0="Bearer";async function UC(n){const l=new TextEncoder().encode(n),i=await window.crypto.subtle.digest(LC,l),o=String.fromCharCode.apply(null,Array.from(new Uint8Array(i)));return xC(o)}async function HC(n){try{const l=TC(RC),i=await UC(l),o=await qC(n.domain)||"";return{authorizationUrl:`https://${_r(n.domain)}/api/oauth/authorize?${MC({response_type:NC,client_id:n.clientId,scope:n.scopes.join("+"),code_challenge:i,code_challenge_method:VC,redirect_uri:_0,session_id:o})}`,codeVerifier:l,sessionId:o}}catch{throw new rt("ERR_AUTH_COMPUTE_URL","Error computing authorization url.")}}async function qC(n){try{return(await Hi(`https://${_r(n)}/api/oauth/create/session`,{method:"POST"}))?.data.key}catch{throw new rt("ERR_AUTH_SESSION","Error generating session.")}}async function jC(n,l){try{return(await Hi(`https://${_r(n.domain)}/api/oauth/poll`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({session_id:l})}).catch(()=>{throw new rt("ERR_AUTH_POLL_REQUEST","Error requesting oauth session poll.")})).data.payload.code}catch{throw new rt("ERR_AUTH_POLL","Error polling oauth session.")}}async function BC(n,l,i){try{const o=_r(n?.domain),u=await Hi(`https://${o}/api/oauth/accesstoken`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({grant_type:zC,code:l,code_verifier:i,client_id:n.clientId,redirect_uri:_0})});return{bearerToken:{tokenType:A0,expiresIn:u.expires_in,accessToken:u.access_token,refreshToken:u.refresh_token,domain:o},clientId:n.clientId,scopes:n.scopes}}catch{throw new rt("ERR_AUTH_ACCESS_TOKEN","Error retrieving token.")}}async function kC(n,l,i,o){try{const u=_r(n),f=await Hi(`https://${u}/api/oauth/refresh`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({grant_type:wC,refresh_token:l,client_id:i,scope:o.join("+")})});return{bearerToken:{tokenType:A0,expiresIn:f.expires_in,accessToken:f.access_token,refreshToken:f.refresh_token,domain:u},clientId:i,scopes:o}}catch{throw new rt("ERR_AUTH_REFRESH_TOKEN","Error refreshing token.")}}async function FC(n,l){try{await Hi(`https://${_r(n)}/api/oauth/revoke`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:l})})}catch{throw new rt("ERR_AUTH_TOKEN_REVOKE","Error revoking token.")}}var GC=Object.defineProperty,YC=(n,l,i)=>l in n?GC(n,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[l]=i,Dn=(n,l,i)=>YC(n,typeof l!="symbol"?l+"":l,i);const QC="Authorize Frontify",IC={title:QC,width:800,height:600,top:50,left:50},Sl=class Yn{constructor(l){Dn(this,"popUp"),Dn(this,"interval"),Dn(this,"unregisterEventListener"),Dn(this,"listeners",{}),Dn(this,"domain",""),Dn(this,"attachEventListeners",()=>o=>{const{data:u}=o;switch(u){case Yn.EVENT_NAME_CANCELLED:this.call(Yn.EVENT_METHOD_CANCELLED);break;case Yn.EVENT_NAME_SUCCESS:this.call(Yn.EVENT_METHOD_SUCCESS);break;default:{const f=u;f.domain?(this.setDomain(f.domain),this.call(Yn.EVENT_METHOD_DOMAIN)):f.aborted&&this.call(Yn.EVENT_METHOD_ABORTED);break}}});const i={...IC,...l};this.popUp=Yn.openPopUp(i),this.unregisterEventListener=DC("message",this.attachEventListeners()),this.interval=setInterval(()=>{this.popUp&&this.popUp.closed&&(clearInterval(this.interval),this.call(Yn.EVENT_METHOD_CANCELLED),this.call(Yn.EVENT_METHOD_ABORTED))},100)}static openPopUp(l){const i=window.open("about:blank",l.title,`width=${l.width},
|
|
15
|
-
height=${l.height},
|
|
16
|
-
left=${l.left},
|
|
17
|
-
top=${l.top},
|
|
18
|
-
toolbar=no, menubar=no,
|
|
19
|
-
location=no, status=no,
|
|
20
|
-
directories=no, titlebar=no`);if(!i)throw new rt("ERR_AUTH_POPUP_BLOCKED","Popup is blocked. Make sure to enable popups.");return i}call(l){this.listeners[l]&&this.listeners[l]()}setDomain(l){this.domain=l}getDomain(){return this.domain}onDomain(l){this.listeners.domain=l}onAborted(l){this.listeners.aborted=l}onSuccess(l){this.listeners.success=l}onCancelled(l){this.listeners.canceled=l}close(){this.listeners={},clearInterval(this.interval),this.unregisterEventListener(),this.popUp&&!this.popUp.closed&&this.popUp.close()}navigateToUrl(l){if(this.popUp&&!this.popUp.closed){this.popUp.location.replace(l);return}throw new rt("ERR_AUTH_POPUP_CLOSED","Popup is closed.")}};Dn(Sl,"EVENT_NAME_CANCELLED","frontify-oauth-authorize-cancelled"),Dn(Sl,"EVENT_NAME_SUCCESS","frontify-oauth-authorize-success"),Dn(Sl,"EVENT_METHOD_CANCELLED","cancelled"),Dn(Sl,"EVENT_METHOD_SUCCESS","success"),Dn(Sl,"EVENT_METHOD_DOMAIN","domain"),Dn(Sl,"EVENT_METHOD_ABORTED","aborted");let XC=Sl;const $C="https://app.frontify.com/finder",ZC="Authorize Frontify",Un={open:!1};let mr,yo,Ff,go;async function KC(n,l){if(Un.open&&mr.close(),mr=tT({title:ZC,width:800,height:600,top:50,left:50}),Un.open=!0,n.domain?await C0(n,mr).then(i=>{Un.open=!1,i&&(yo=i)}).catch(i=>{throw i instanceof rt?i:new rt("ERR_AUTH_FAILED","Auth failed.")}):await WC(n,mr).then(i=>{Un.open=!1,yo=i}).catch(i=>{throw i instanceof rt?i:new rt("ERR_AUTH_FAILED","Auth failed.")}),!yo)throw new rt("ERR_AUTH_NO_TOKEN","No token returned.");return yo}async function JC(n){return kC(n.bearerToken.domain,n.bearerToken.refreshToken,n.clientId,n.scopes)}async function PC(n){return await FC(n.bearerToken.domain,n.bearerToken.accessToken),n}async function C0(n,l){try{const i=await HC(n);return await eT(i.authorizationUrl,l).then(async()=>{const o=await jC(n,i.sessionId);return BC(n,o,i.codeVerifier)})}catch(i){throw l.popUp?.postMessage({domainError:"Error generating session. Make sure that the inserted domain is a valid and secure Frontify instance."},"*"),i instanceof rt&&i.code==="ERR_AUTH_COMPUTE_URL"?new rt("ERR_AUTH_SESSION","Failed generating session."):i instanceof rt?i:(Un.open=!1,new rt("ERR_AUTH","Failed retrieving access token."))}}function WC(n,l){return l.navigateToUrl($C),_l("warning",{code:"WARN_DOMAIN_POPUP_OPEN",message:"Domain popup opened."}),new Promise((i,o)=>{Ff=setTimeout(()=>{Un.open=!1,l.close(),_l("warning",{code:"WARN_DOMAIN_TIMEOUT",message:"Domain popup timed out."})},300*1e3),l.onDomain(()=>{clearTimeout(Ff),n.domain=mr.getDomain(),C0(n,mr).then(u=>{u&&i(u)}).catch(u=>{u instanceof rt&&u.code!=="ERR_AUTH_SESSION"?o(new rt("ERR_AUTH_FAILED","Auth failed.")):delete n.domain}),_l("warning",{code:"WARN_DOMAIN_SELECT",message:"Domain input submitted."})}),l.onAborted(()=>{Un.open=!1,clearTimeout(Ff),l.close(),o(new rt("ERR_AUTH_DOMAIN_POPUP_CLOSED","Domain cancelled by client."))})})}function eT(n,l){return l.navigateToUrl(n),_l("warning",{code:"WARN_AUTH_POPUP_OPEN",message:"Auth popup opened."}),new Promise((i,o)=>{go=setTimeout(()=>{Un.open=!1,l.close(),_l("warning",{code:"WARN_AUTH_TIMEOUT",message:"Auth popup timed out."})},300*1e3),l.onAborted(()=>{Un.open=!1,clearTimeout(go),l.close(),o(new rt("ERR_AUTH_POPUP_CLOSED","Auth aborted by client."))}),l.onSuccess(()=>{Un.open=!1,clearTimeout(go),l.close(),_l("warning",{code:"WARN_AUTH_SUCCESS",message:"Auth success."}),i()}),l.onCancelled(()=>{Un.open=!1,clearTimeout(go),l.close(),o(new rt("ERR_AUTH_POPUP_CLOSED","Auth cancelled by client."))})})}function tT(n){return new XC(n??{})}var qi=n=>n.type==="checkbox",rs=n=>n.type==="file",Za=n=>n instanceof Date,Ut=n=>n==null;const jd=n=>typeof n=="object";var dt=n=>!Ut(n)&&!Array.isArray(n)&&jd(n)&&!Za(n),hd=n=>dt(n)&&n.target?qi(n.target)?n.target.checked:rs(n.target)?n.target.files:n.target.value:n,T0=(n,l)=>l.split(".").some((i,o,u)=>!isNaN(Number(i))&&n.has(u.slice(0,o).join("."))),x0=n=>{const l=n.constructor&&n.constructor.prototype;return dt(l)&&l.hasOwnProperty("isPrototypeOf")},is=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ft(n){if(n instanceof Date)return new Date(n);const l=typeof FileList<"u"&&n instanceof FileList;if(is&&(n instanceof Blob||l))return n;const i=Array.isArray(n);if(!i&&!(dt(n)&&x0(n)))return n;const o=i?[]:Object.create(Object.getPrototypeOf(n));for(const u in n)Object.prototype.hasOwnProperty.call(n,u)&&(o[u]=ft(n[u]));return o}const Ia={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Ln={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},wn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},M0="root",Bd=["__proto__","constructor","prototype"],nT=/^\w*$/;var ji=n=>nT.test(n),ot=n=>n===void 0;const aT=/[.[\]'"]/;var us=n=>n.split(aT).filter(Boolean),le=(n,l,i)=>{if(!l||!dt(n))return i;const o=ji(l)?[l]:us(l);if(o.some(f=>Bd.includes(f)))return i;const u=o.reduce((f,d)=>Ut(f)?void 0:f[d],n);return ot(u)||u===n?ot(n[l])?i:n[l]:u},vn=n=>typeof n=="boolean",Ft=n=>typeof n=="function",lt=(n,l,i)=>{let o=-1;const u=ji(l)?[l]:us(l),f=u.length,d=f-1;for(;++o<f;){const p=u[o];let v=i;if(o!==d){const h=n[p];v=dt(h)||Array.isArray(h)?h:isNaN(+u[o+1])?{}:[]}if(Bd.includes(p))return;n[p]=v,n=n[p]}};const D0=se.createContext(null);D0.displayName="HookFormControlContext";const kd=()=>se.useContext(D0);var R0=(n,l,i,o=!0)=>{const u={};for(const f in n)Object.defineProperty(u,f,{get:()=>{const d=f;return l._proxyFormState[d]!==Ln.all&&(l._proxyFormState[d]=!o||Ln.all),i&&(i[d]=!0),n[d]}});return u};const Fd=is?se.useLayoutEffect:se.useEffect;function lT(n){const l=kd(),{control:i=l,disabled:o,name:u,exact:f}=n||{},[d,p]=se.useState(()=>({...i._formState,defaultValues:i._defaultValues})),v=se.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Fd(()=>i._subscribe({name:u,formState:v.current,exact:f,callback:h=>{!o&&p({...i._formState,...h,defaultValues:i._defaultValues})}}),[u,o,f]),se.useEffect(()=>{v.current.isValid&&i._setValid(!0)},[i]),se.useMemo(()=>R0(d,i,v.current,!1),[d,i])}var qt=n=>typeof n=="string",md=(n,l,i,o,u)=>qt(n)?(o&&l.watch.add(n),le(i,n,u)):Array.isArray(n)?n.map(f=>(o&&l.watch.add(f),le(i,f))):(o&&(l.watchAll=!0),i),pd=n=>Ut(n)||!jd(n);const Wy=(n,l)=>l.length===0&&!Array.isArray(n)&&!x0(n);function hn(n,l,i=new WeakMap){if(n===l)return!0;if(pd(n)||pd(l))return Object.is(n,l);if(Za(n)&&Za(l))return Object.is(n.getTime(),l.getTime());const o=Object.keys(n),u=Object.keys(l);if(o.length!==u.length)return!1;if(Wy(n,o)||Wy(l,u))return Object.is(n,l);if(!o.length&&Array.isArray(n)!==Array.isArray(l))return!1;const f=i.get(n);if(f&&f.has(l))return!0;if(f)f.add(l);else{const d=new WeakSet;d.add(l),i.set(n,d)}for(const d of o){const p=n[d];if(!(d in l))return!1;if(d!=="ref"){const v=l[d];if(Za(p)&&Za(v)||(dt(p)||Array.isArray(p))&&(dt(v)||Array.isArray(v))?!hn(p,v,i):!Object.is(p,v))return!1}}return!0}function rT(n){const l=kd(),{control:i=l,name:o,defaultValue:u,disabled:f,exact:d,compute:p}=n||{},v=se.useRef(u),h=se.useRef(p),g=se.useRef(void 0),b=se.useRef(i),C=se.useRef(o);h.current=p;const[x,E]=se.useState(()=>{const N=i._getWatch(o,v.current);return h.current?h.current(N):N}),_=se.useCallback(N=>{const D=md(o,i._names,N||i._formValues,!1,v.current);return h.current?h.current(D):D},[i._formValues,i._names,o]),M=se.useCallback(N=>{if(!f){const D=md(o,i._names,N||i._formValues,!1,v.current);if(h.current){const I=h.current(D);hn(I,g.current)||(E(I),g.current=I)}else E(D)}},[i._formValues,i._names,f,o]);Fd(()=>((b.current!==i||!hn(C.current,o))&&(b.current=i,C.current=o,M()),i._subscribe({name:o,formState:{values:!0},exact:d,callback:N=>{M(N.values)}})),[i,d,o,M]),se.useEffect(()=>i._removeUnmounted());const L=b.current!==i,A=C.current,U=se.useMemo(()=>{if(f)return null;const N=!L&&!hn(A,o);return L||N?_():null},[f,L,o,A,_]);return U!==null?U:x}function iT(n){const l=kd(),{name:i,disabled:o,control:u=l,shouldUnregister:f,defaultValue:d,exact:p=!0}=n,v=T0(u._names.array,i),h=se.useMemo(()=>le(u._formValues,i,le(u._defaultValues,i,d)),[u,i,d]),g=rT({control:u,name:i,defaultValue:h,exact:p}),b=lT({control:u,name:i,exact:p}),C=se.useRef(n),x=se.useRef(null),E=se.useRef(u.register(i,{...n.rules,value:g,...vn(n.disabled)?{disabled:n.disabled}:{}}));C.current=n;const _=se.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!le(b.errors,i)},isDirty:{enumerable:!0,get:()=>!!le(b.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!le(b.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!le(b.validatingFields,i)},error:{enumerable:!0,get:()=>le(b.errors,i)}}),[b,i]),M=se.useCallback(N=>{const D=hd(N);return le(u._fields,i)||(E.current=u.register(i,{...C.current.rules,value:D})),E.current.onChange({target:{value:hd(N),name:i},type:Ia.CHANGE})},[i,u]),L=se.useCallback(()=>E.current.onBlur({target:{value:le(u._formValues,i),name:i},type:Ia.BLUR}),[i,u._formValues]),A=se.useCallback(N=>{N&&(x.current={focus:()=>Ft(N.focus)&&N.focus(),select:()=>Ft(N.select)&&N.select(),setCustomValidity:I=>Ft(N.setCustomValidity)&&N.setCustomValidity(I),reportValidity:()=>Ft(N.reportValidity)&&N.reportValidity()});const D=le(u._fields,i);D&&D._f&&N&&(D._f.ref=x.current)},[u._fields,i]),U=se.useMemo(()=>({name:i,value:g,...vn(o)||b.disabled?{disabled:b.disabled||o}:{},onChange:M,onBlur:L,ref:A}),[i,o,b.disabled,M,L,A,g]);return se.useEffect(()=>{const N=u._options.shouldUnregister||f;E.current=u.register(i,{...C.current.rules,...vn(C.current.disabled)?{disabled:C.current.disabled}:{}});const D=(I,Q)=>{const ae=le(u._fields,I);ae&&ae._f&&(ae._f.mount=Q)};if(D(i,!0),N){const I=ft(le(f?u._defaultValues:u._options.values||u._defaultValues,i,le(u._options.defaultValues,i,C.current.defaultValue)));lt(u._defaultValues,i,I),ot(le(u._formValues,i))&<(u._formValues,i,I)}if(!v&&u.register(i),x.current){const I=le(u._fields,i);I&&I._f&&(I._f.ref=x.current)}return()=>{(v?N&&!u._state.action:N)?u.unregister(i):D(i,!1)}},[i,u,v,f]),se.useEffect(()=>{u._setDisabledField({disabled:o,name:i})},[o,i,u]),se.useMemo(()=>({field:U,formState:b,fieldState:_}),[U,b,_])}const Gf=n=>n.render(iT(n));var bo=n=>({isOnSubmit:!n||n===Ln.onSubmit,isOnBlur:n===Ln.onBlur,isOnChange:n===Ln.onChange,isOnAll:n===Ln.all,isOnTouch:n===Ln.onTouched}),Yf=(n,l,i)=>{if(i)return!1;if(l.watchAll||l.watch.has(n))return!0;for(const o of l.watch)if(n.startsWith(o)&&n.charAt(o.length)===".")return!0;return!1};const Mi=(n,l,i,o)=>{for(const u of i||Object.keys(n)){if(u==="_f")continue;const f=i?le(n,u):n[u];if(f){const{_f:d}=f;if(d){if(d.refs&&d.refs[0]&&l(d.refs[0],u)&&!o)return!0;if(d.ref&&l(d.ref,d.name)&&!o)return!0;if(Mi(f,l))break}else if((dt(f)||Array.isArray(f))&&Mi(f,l))break}}};var eg=(n,l,i)=>{const o=le(n,i),u=Array.isArray(o)?o:[];return lt(u,M0,l[i]),lt(n,i,u),n},Lt=n=>dt(n)&&!Object.keys(n).length,Go=n=>{if(!is)return!1;const l=n?n.ownerDocument:0;return n instanceof(l&&l.defaultView?l.defaultView.HTMLElement:HTMLElement)},Gd=n=>n.type==="radio",Yo=n=>n instanceof RegExp,uT=(n,l,i,o,u)=>l?{...i[n],types:{...i[n]&&i[n].types?i[n].types:{},[o]:u||!0}}:{};const tg={value:!1,isValid:!1},ng={value:!0,isValid:!0};var N0=n=>{if(Array.isArray(n)){if(n.length>1){const l=n.filter(i=>i&&i.checked&&!i.disabled).map(i=>i.value);return{value:l,isValid:!!l.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!ot(n[0].attributes.value)?ot(n[0].value)||n[0].value===""?ng:{value:n[0].value,isValid:!0}:ng:tg}return tg};const ag={isValid:!1,value:null};var V0=n=>Array.isArray(n)?n.reduce((l,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:l,ag):ag;function lg(n,l,i="validate"){if(qt(n)||Array.isArray(n)&&n.every(qt)||vn(n)&&!n)return{type:i,message:qt(n)?n:"",ref:l}}var vr=n=>dt(n)&&!Yo(n)?n:{value:n,message:""},rg=async(n,l,i,o,u,f)=>{const{ref:d,refs:p,required:v,maxLength:h,minLength:g,min:b,max:C,pattern:x,validate:E,name:_,valueAsNumber:M,mount:L}=n._f,A=le(i,_);if(!L||l.has(_))return{};const U=p?p[0]:d,N=ie=>{if(u&&U.reportValidity){const ue=vn(ie)?"":ie||"";p?p.forEach(ge=>ge.setCustomValidity(ue)):U.setCustomValidity(ue),U.reportValidity()}},D={},I=Gd(d),Q=qi(d),ae=I||Q,pe=(M||rs(d))&&ot(d.value)&&ot(A)||Go(d)&&d.value===""||A===""||Array.isArray(A)&&!A.length,De=uT.bind(null,_,o,D),Ne=(ie,ue,ge,Ae=wn.maxLength,q=wn.minLength)=>{const K=ie?ue:ge;D[_]={type:ie?Ae:q,message:K,ref:d,...De(ie?Ae:q,K)}};if(f?!Array.isArray(A)||!A.length:v&&(!ae&&(pe||Ut(A))||vn(A)&&!A||Q&&!N0(p).isValid||I&&!V0(p).isValid)){const{value:ie,message:ue}=qt(v)?{value:!!v,message:v}:vr(v);if(ie&&(D[_]={type:wn.required,message:ue,ref:U,...De(wn.required,ue)},!o))return N(ue),D}if(!pe&&(!Ut(b)||!Ut(C))){let ie,ue;const ge=vr(C),Ae=vr(b);if(!Ut(A)&&!isNaN(A)){const q=d.valueAsNumber||A&&+A;Ut(ge.value)||(ie=q>ge.value),Ut(Ae.value)||(ue=q<Ae.value)}else{const q=d.valueAsDate||new Date(A),K=Me=>new Date(new Date().toDateString()+" "+Me),fe=d.type=="time",ee=d.type=="week";qt(ge.value)&&A&&(ie=fe?K(A)>K(ge.value):ee?A>ge.value:q>new Date(ge.value)),qt(Ae.value)&&A&&(ue=fe?K(A)<K(Ae.value):ee?A<Ae.value:q<new Date(Ae.value))}if((ie||ue)&&(Ne(!!ie,ge.message,Ae.message,wn.max,wn.min),!o))return N(D[_].message),D}if((h||g)&&!pe&&(qt(A)||f&&Array.isArray(A))){const ie=vr(h),ue=vr(g),ge=!Ut(ie.value)&&A.length>+ie.value,Ae=!Ut(ue.value)&&A.length<+ue.value;if((ge||Ae)&&(Ne(ge,ie.message,ue.message),!o))return N(D[_].message),D}if(x&&!pe&&qt(A)){const{value:ie,message:ue}=vr(x);if(Yo(ie)&&!A.match(ie)&&(D[_]={type:wn.pattern,message:ue,ref:d,...De(wn.pattern,ue)},!o))return N(ue),D}if(E){if(Ft(E)){const ie=await E(A,i),ue=lg(ie,U);if(ue&&(D[_]={...ue,...De(wn.validate,ue.message)},!o))return N(ue.message),D}else if(dt(E)){let ie={};for(const ue in E){if(!Lt(ie)&&!o)break;const ge=lg(await E[ue](A,i),U,ue);ge&&(ie={...ge,...De(ue,ge.message)},N(ge.message),o&&(D[_]=ie))}if(!Lt(ie)&&(D[_]={ref:U,...ie},!o))return D}}return N(!0),D},Do=n=>Array.isArray(n)?n:[n],z0=n=>Array.isArray(n)?n.filter(Boolean):[];function oT(n,l){const i=l.length-1;let o=0;for(;o<i;){if(Ut(n)){n=void 0;break}n=n[l[o]],o++}return n}function sT(n){for(const l in n)if(n.hasOwnProperty(l)&&!ot(n[l]))return!1;return!0}function bt(n,l){if(qt(l)&&Object.prototype.hasOwnProperty.call(n,l))return delete n[l],n;const i=Array.isArray(l)?l:ji(l)?[l]:us(l);if(i.some(d=>Bd.includes(String(d))))return n;const o=i.length===1?n:oT(n,i),u=i.length-1,f=i[u];return o&&delete o[f],u!==0&&(dt(o)&&Lt(o)||Array.isArray(o)&&sT(o))&&bt(n,i.slice(0,-1)),n}const w0=n=>{const l={};for(const i of Object.keys(n))if(jd(n[i])&&n[i]!==null&&!Za(n[i])){const o=w0(n[i]);for(const u of Object.keys(o))l[`${i}.${u}`]=o[u]}else l[i]=n[i];return l},cT=se.createContext(null);cT.displayName="HookFormContext";var ig=()=>{let n=[];return{get observers(){return n},next:u=>{for(const f of n)f.next&&f.next(u)},subscribe:u=>(n.push(u),{unsubscribe:()=>{n=n.filter(f=>f!==u)}}),unsubscribe:()=>{n=[]}}};function L0(n,l){const i={};for(const o in n)if(n.hasOwnProperty(o)){const u=n[o],f=l[o];if(u&&dt(u)&&f){const d=L0(u,f);dt(d)&&(i[o]=d)}else n[o]&&(i[o]=f)}return i}var U0=n=>n.type==="select-multiple",fT=n=>Gd(n)||qi(n),Qf=n=>Go(n)&&n.isConnected;function ug(n){return Array.isArray(n)||dt(n)}function H0(n,l,i="",o=[]){for(const u in n){const f=i?`${i}.${u}`:u,d=n[u];ug(d)&&ug(le(l,f))?H0(d,l,f,o):o.push(f)}return o}var dT=n=>{for(const l in n)if(Ft(n[l]))return!0;return!1};function q0(n){return Array.isArray(n)||dt(n)&&!dT(n)}function j0(n){return!!(n&&"_f"in n)}function B0(n){return Array.isArray(n)?!n.some(l=>!ot(l)):!Object.keys(n).length}function yd(n,l){Array.isArray(n)?n[l]=void 0:delete n[l]}function gd(n,l={},i){for(const o in n){const u=n[o],f=i&&i[o];q0(u)&&(!Array.isArray(u)||!j0(f))?(l[o]=Array.isArray(u)?[]:{},gd(u,l[o],f),B0(l[o])&&yd(l,o)):ot(u)||(l[o]=!0)}return l}function El(n,l,i,o){i||(i=gd(l,{},o));for(const u in n){const f=n[u],d=o&&o[u];q0(f)&&(!Array.isArray(f)||!j0(d))?(ot(l)||pd(i[u])?i[u]=gd(f,Array.isArray(f)?[]:{},d):El(f,Ut(l)?{}:l[u],i[u],d),B0(i[u])&&yd(i,u)):hn(f,l[u])?yd(i,u):i[u]=!0}return i}var k0=(n,{valueAsNumber:l,valueAsDate:i,setValueAs:o})=>ot(n)?n:l?n===""?NaN:n&&+n:i&&qt(n)?new Date(n):o?o(n):n;function og(n){const l=n.ref;return rs(l)?l.files:Gd(l)?V0(n.refs).value:U0(l)?[...l.selectedOptions].map(({value:i})=>i):qi(l)?N0(n.refs).value:k0(l.value,n)}var vT=(n,l,i,o)=>{const u={};for(const f of n){const d=le(l,f);d&<(u,f,d._f)}return{criteriaMode:i,names:[...n],fields:u,shouldUseNativeValidation:o}},Ci=n=>ot(n)?n:Yo(n)?n.source:dt(n)?Yo(n.value)?n.value.source:n.value:n;const sg="AsyncFunction";var hT=n=>{if(!n||!n.validate)return!1;if(Ft(n.validate))return n.validate.constructor.name===sg;if(dt(n.validate)){for(const l in n.validate)if(n.validate[l].constructor.name===sg)return!0}return!1},mT=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate);function cg(n,l,i){const o=le(n,i);if(o||ji(i))return{error:o,name:i};const u=i.split(".");for(;u.length;){const f=u.join("."),d=le(l,f),p=le(n,f);if(d&&!Array.isArray(d)&&i!==f)return{name:i};if(p&&p.type)return{name:f,error:p};if(p&&p.root&&p.root.type)return{name:`${f}.root`,error:p.root};u.pop()}return{name:i}}var pT=(n,l,i,o)=>{i(n);const u=Object.keys(n).filter(f=>f!=="name");return!u.length||o&&u.length>=Object.keys(l).length||u.find(f=>l[f]===(!o||Ln.all))},yT=(n,l,i)=>!n||!l||n===l||Do(n).some(o=>o&&(i?o===l||o.startsWith(l+"."):o.startsWith(l)||l.startsWith(o))),gT=(n,l,i,o,u)=>u.isOnAll?!1:!i&&u.isOnTouch?!(l||n):(i?o.isOnBlur:u.isOnBlur)?!n:(i?o.isOnChange:u.isOnChange)?n:!0,bT=(n,l)=>!z0(le(n,l)).length&&bt(n,l);const ST={mode:Ln.onSubmit,reValidateMode:Ln.onChange,shouldFocusError:!0},If="form",ET=(n,l)=>{for(const i in n)i in l||delete n[i];Object.assign(n,l)},F0={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function OT(n={}){let l={...ST,...n},i={...ft(F0),isLoading:Ft(l.defaultValues),errors:l.errors||{},disabled:l.disabled||!1},o={},u=dt(l.defaultValues)||dt(l.values)?ft(l.defaultValues||l.values)||{}:{},f=l.shouldUnregister?{}:ft(u),d={action:!1,mount:!1,watch:!1,keepIsValid:!1},p={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set};const v={},h={};let g=0,b=bo(l.mode),C=bo(l.reValidateMode);const x={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},E={...x};let _={...E};const M={array:ig(),state:ig()};let L=0;const A=l.criteriaMode===Ln.all,U=(S,z)=>w=>{clearTimeout(h[S]),h[S]=setTimeout(z,w)},N=async S=>{if(!d.keepIsValid&&!l.disabled&&(E.isValid||_.isValid||S)){const z=++L;let w;l.resolver?(w=Lt((await ge()).errors),z===L&&D()):w=await K({fields:o,onlyCheckValid:!0,eventType:Ia.VALID}),z===L&&w!==i.isValid&&M.state.next({isValid:w})}},D=(S,z)=>{!l.disabled&&(E.isValidating||E.validatingFields||_.isValidating||_.validatingFields)&&((S||Array.from(p.mount)).forEach(w=>{w&&(z?lt(i.validatingFields,w,z):bt(i.validatingFields,w))}),M.state.next({validatingFields:i.validatingFields,isValidating:!Lt(i.validatingFields)}))},I=()=>{i.dirtyFields=El(u,f,void 0,o)},Q=(S,z=[],w,Z,J=!0,ne=!0)=>{if(Z&&w&&!l.disabled){if(d.action=!0,ne&&Array.isArray(le(o,S))){const re=w(le(o,S),Z.argA,Z.argB);J&<(o,S,re)}if(ne&&Array.isArray(le(i.errors,S))){const re=w(le(i.errors,S),Z.argA,Z.argB);J&<(i.errors,S,re),bT(i.errors,S)}if((E.touchedFields||_.touchedFields)&&ne&&Array.isArray(le(i.touchedFields,S))){const re=w(le(i.touchedFields,S),Z.argA,Z.argB);J&<(i.touchedFields,S,re)}(E.dirtyFields||_.dirtyFields)&&I(),M.state.next({name:S,isDirty:ee(S,z),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else lt(f,S,z)},ae=(S,z)=>{lt(i.errors,S,z),i.errors={...i.errors},M.state.next({errors:i.errors})},pe=S=>{i.errors=S,M.state.next({errors:i.errors,isValid:!1})},De=S=>{const z=ji(S)?[S]:us(S);let w=f,Z=u;for(let J=0;J<z.length-1;J++){const ne=z[J];if(w=Ut(w)?w:w[ne],Z=Ut(Z)?Z:Z[ne],w===null&&Z!==null)return!0}return!1},Ne=(S,z,w,Z)=>{const J=le(o,S);if(J){if(De(S))return;const ne=ot(le(f,S)),re=le(f,S,ot(w)?le(u,S):w);ot(re)||Z&&Z.defaultChecked||z?lt(f,S,z?re:og(J._f)):F(S,re),d.mount&&!d.action&&(N(),ne&&i.isDirty&&(E.isDirty||_.isDirty)&&(ee()||(i.isDirty=!1,M.state.next({...i}))),n.shouldUnregister&&ne&&!ot(le(f,S))&&Yf(S,p)&&(d.watch=!0))}},ie=(S,z,w,Z,J)=>{let ne=!1,re=!1;const ce={name:S};if(!l.disabled||Z===!0){if(!w||Z){const Ee=hn(le(u,S),z);(E.isDirty||_.isDirty)&&(re=i.isDirty,i.isDirty=ce.isDirty=!Ee||ee(),ne=re!==ce.isDirty),re=!!le(i.dirtyFields,S),Ee!==i.isDirty?ET(i.dirtyFields,El(u,f,void 0,o)):Ee?bt(i.dirtyFields,S):lt(i.dirtyFields,S,!0),ce.dirtyFields=i.dirtyFields,ne=ne||(E.dirtyFields||_.dirtyFields)&&re!==!Ee}if(w){const Ee=le(i.touchedFields,S);Ee||(lt(i.touchedFields,S,w),ce.touchedFields=i.touchedFields,ne=ne||(E.touchedFields||_.touchedFields)&&Ee!==w)}ne&&J&&M.state.next(ce)}return ne?ce:{}},ue=(S,z,w,Z)=>{const J=le(i.errors,S),ne=(E.isValid||_.isValid)&&vn(z)&&i.isValid!==z;if(l.delayError&&w?(v[S]=U(S,()=>ae(S,w)),v[S](l.delayError)):(clearTimeout(h[S]),delete v[S],w?lt(i.errors,S,w):bt(i.errors,S),i.errors={...i.errors}),(w?!hn(J,w):J)||!Lt(Z)||ne){const re={...Z,...ne&&vn(z)?{isValid:z}:{},errors:i.errors,name:S};i={...i,...re},M.state.next(re)}},ge=async S=>(D(S,!0),await l.resolver(f,l.context,vT(S||p.mount,o,l.criteriaMode,l.shouldUseNativeValidation))),Ae=async S=>{const{errors:z}=await ge(S);if(D(S),S){for(const w of S){const Z=le(z,w);Z?p.array.has(w)&&dt(Z)&&!Object.keys(Z).some(J=>!Number.isNaN(Number(J)))?eg(i.errors,{[w]:Z},w):lt(i.errors,w,Z):bt(i.errors,w)}i.errors={...i.errors}}else i.errors=z;return z},q=async({name:S,eventType:z})=>{if(n.validate){const w=await n.validate({formValues:f,formState:i,name:S,eventType:z});if(dt(w))for(const Z in w){const J=w[Z];J&&Pn(`${If}.${Z}`,{message:qt(J.message)?J.message:"",type:J.type||wn.validate})}else qt(w)||!w?Pn(If,{message:w||"",type:wn.validate}):Jn(If);return w}return!0},K=async({fields:S,onlyCheckValid:z,name:w,eventType:Z,context:J={valid:!0,runRootValidation:!1}})=>{if(n.validate&&(J.runRootValidation=!0,!await q({name:w,eventType:Z})&&(J.valid=!1,z)))return J.valid;for(const ne in S){const re=S[ne];if(re){const{_f:ce,...Ee}=re;if(ce){const Fe=p.array.has(ce.name),ct=re._f&&hT(re._f),It=E.validatingFields||E.isValidating||_.validatingFields||_.isValidating;ct&&It&&D([ce.name],!0);const Dt=await rg(re,p.disabled,f,A,l.shouldUseNativeValidation&&!z,Fe);if(ct&&It&&D([ce.name]),Dt[ce.name]&&(J.valid=!1,z)||(!z&&(le(Dt,ce.name)?Fe?eg(i.errors,Dt,ce.name):lt(i.errors,ce.name,Dt[ce.name]):bt(i.errors,ce.name)),n.shouldUseNativeValidation&&Dt[ce.name]))break}!Lt(Ee)&&await K({context:J,onlyCheckValid:z,fields:Ee,name:ne,eventType:Z})}}return J.valid},fe=()=>{for(const S of p.unMount){const z=le(o,S);z&&(z._f.refs?z._f.refs.every(w=>!Qf(w)):!Qf(z._f.ref))&&Cr(S)}p.unMount=new Set},ee=(S,z)=>(S&&z&<(f,S,z),!hn(d.mount?f:u,u)),Me=(S,z,w)=>md(S,p,{...d.mount?f:ot(z)?u:qt(S)?{[S]:z}:z},w,z),T=S=>z0(le(d.mount?f:u,S,l.shouldUnregister?le(u,S,[]):[])),F=(S,z,w={},Z=!1,J=!1)=>{const ne=le(o,S);let re=z;if(ne){const ce=ne._f;ce&&(!ce.disabled&<(f,S,k0(z,ce)),re=Go(ce.ref)&&Ut(z)?"":z,U0(ce.ref)?[...ce.ref.options].forEach(Ee=>Ee.selected=re.includes(Ee.value)):ce.refs?qi(ce.ref)?ce.refs.forEach(Ee=>{(!Ee.defaultChecked||!Ee.disabled)&&(Array.isArray(re)?Ee.checked=!!re.find(Fe=>Fe===Ee.value):Ee.checked=re===Ee.value||!!re)}):ce.refs.forEach(Ee=>Ee.checked=Ee.value===re):rs(ce.ref)?ce.ref.value="":(ce.ref.value=re,!ce.ref.type&&!J&&M.state.next({name:S,values:Z?f:ft(f)})))}(w.shouldDirty||w.shouldTouch)&&ie(S,re,w.shouldTouch,w.shouldDirty,!J),w.shouldValidate&&Ze(S,{delayError:w.delayError})},te=(S,z,w,Z=!1,J=!1)=>{p.array.has(S)&&M.array.next({name:S,values:Z?f:ft(f)});for(const ne in z){if(!z.hasOwnProperty(ne))return;const re=z[ne],ce=S+"."+ne,Ee=le(o,ce);(p.array.has(S)||dt(re)||Ee&&!Ee._f)&&!Za(re)?te(ce,re,w,Z,J):F(ce,re,w,Z,J)}},oe=(S,z,w,Z,J=!1)=>{const ne=le(o,S),re=p.array.has(S),ce=Z?z:ft(z),Ee=le(f,S),Fe=hn(Ee,ce);if(Fe||lt(f,S,ce),re)M.array.next({name:S,values:Z?f:ft(f)}),(E.isDirty||E.dirtyFields||_.isDirty||_.dirtyFields)&&w.shouldDirty&&(I(),J||M.state.next({name:S,dirtyFields:i.dirtyFields,isDirty:ee(S,ce)}));else{const ct=Array.isArray(ce)&&!ce.length||Lt(ce);!ne||ne._f||Ut(ce)||ct?F(S,ce,w,Z,J):te(S,ce,w,Z,J)}if(!Fe&&!J){const ct=Yf(S,p),It=Z?f:ft(f);M.state.next({...ct&&i,name:d.mount||ct?S:void 0,values:It})}},ye=(S,z,w={})=>oe(S,z,w,!1),Ce=(S,z={})=>{const w=Ft(S)?S(f):S;if(!hn(f,w)){f={...f,...w};const Z=w0(w);for(const J of p.mount)J in Z&&oe(J,Z[J],z,!0,!0);M.state.next({...i,name:void 0,type:void 0,...g?{values:f}:{}}),z.shouldValidate&&N()}},Ve=async S=>{d.mount=!0;const z=S.target;let w=z.name,Z=!0;const J=le(o,w),ne=re=>{Z=Number.isNaN(re)||Za(re)&&isNaN(re.getTime())||hn(re,le(f,w,re))};if(J){let re,ce;const Ee=z.type?og(J._f):hd(S),Fe=S.type===Ia.BLUR||S.type===Ia.FOCUS_OUT,ct=!mT(J._f)&&!n.validate&&!l.resolver&&!le(i.errors,w)&&!J._f.deps,It=ct||gT(Fe,le(i.touchedFields,w),i.isSubmitted,C,b),Dt=Yf(w,p,Fe);if(lt(f,w,Ee),Fe){if(!z||!z.readOnly){J._f.onBlur&&J._f.onBlur(S);const el=v[w];el&&el(0)}}else J._f.onChange&&J._f.onChange(S);const jn=ie(w,Ee,Fe),Wa=!Lt(jn)||Dt;if(!Fe&&M.state.next({name:w,type:S.type,...g?{values:ft(f)}:{}}),It)return(!ct||!i.isValid)&&(E.isValid||_.isValid)&&(l.mode==="onBlur"?Fe&&N():Fe||N()),Wa&&M.state.next({name:w,...Dt?{}:jn});if(!l.resolver&&n.validate&&await q({name:w,eventType:S.type}),!Fe&&Dt&&M.state.next({...i}),l.resolver){const{errors:el}=await ge([w]);if(D([w]),ne(Ee),!Z){!Lt(jn)&&M.state.next(jn);return}const Qi=cg(i.errors,o,w),xl=cg(el,o,Qi.name||w);re=xl.error,w=xl.name,ce=Lt(el)}else D([w],!0),re=(await rg(J,p.disabled,f,A,l.shouldUseNativeValidation))[w],D([w]),ne(Ee),Z&&(re?ce=!1:(E.isValid||_.isValid)&&(ce=await K({fields:o,onlyCheckValid:!0,name:w,eventType:S.type})));Z&&(J._f.deps&&(!Array.isArray(J._f.deps)||J._f.deps.length>0)&&Ze(J._f.deps),ue(w,ce,re,jn))}},We=(S,z)=>{if(le(i.errors,z)&&S.focus)return S.focus(),1},Ze=async(S,z={})=>{let w,Z;const J=Do(S);if(l.resolver){const ne=await Ae(ot(S)?S:J);w=Lt(ne),Z=S?!J.some(re=>le(ne,re)):w}else S?(Z=(await Promise.all(J.map(async ne=>{const re=le(o,ne);return await K({fields:re&&re._f?{[ne]:re}:re,eventType:Ia.TRIGGER})}))).every(Boolean),!(!Z&&!i.isValid)&&N()):Z=w=await K({fields:o,name:S,eventType:Ia.TRIGGER});if(z.delayError&&l.delayError&&qt(S)){const ne=le(i.errors,S);ne?(bt(i.errors,S),v[S]=U(S,()=>ae(S,ne)),v[S](l.delayError)):(clearTimeout(h[S]),delete v[S])}return M.state.next({...!qt(S)||(E.isValid||_.isValid)&&w!==i.isValid?{}:{name:S},...l.resolver||!S?{isValid:w}:{},errors:i.errors}),z.shouldFocus&&!Z&&Mi(o,We,S?J:p.mount),Z},Kn=(S,z)=>{let w={...d.mount?f:u};return z&&(w=L0(z.dirtyFields?i.dirtyFields:i.touchedFields,w)),ot(S)?w:qt(S)?le(w,S):S.map(Z=>le(w,Z))},qn=(S,z)=>({invalid:!!le((z||i).errors,S),isDirty:!!le((z||i).dirtyFields,S),error:le((z||i).errors,S),isValidating:!!le(i.validatingFields,S),isTouched:!!le((z||i).touchedFields,S)}),Jn=S=>{const z=S?Do(S):void 0;z?.forEach(w=>bt(i.errors,w)),z?z.forEach(w=>{M.state.next({name:w,errors:i.errors})}):(i.errors={},M.state.next({errors:i.errors}))},Pn=(S,z,w)=>{const Z=(le(o,S,{_f:{}})._f||{}).ref,J=le(i.errors,S)||{},{ref:ne,message:re,type:ce,...Ee}=J;lt(i.errors,S,{...Ee,...z,ref:Z}),M.state.next({name:S,errors:i.errors,isValid:!1}),w&&w.shouldFocus&&Z&&Z.focus&&Z.focus()},yn=(S,z)=>{if(Ft(S)){g++;const{unsubscribe:w}=M.state.subscribe({next:J=>"values"in J&&S(J.values||Me(void 0,z),J)});let Z=!1;return{unsubscribe:()=>{Z||(Z=!0,g--,w())}}}return Me(S,z,!0)},Ea=S=>{var z;const w=!!(!((z=S.formState)===null||z===void 0)&&z.values);w&&g++;const{unsubscribe:Z}=M.state.subscribe({next:ne=>{if(yT(S.name,ne.name,S.exact)&&pT(ne,S.formState||E,Yi,S.reRenderRoot)){const re={...f};S.callback({values:re,...i,...ne,defaultValues:u})}}});if(!w)return Z;let J=!1;return()=>{J||(J=!0,g--,Z())}},Ar=S=>(d.mount=!0,_={..._,...S.formState},Ea({...S,formState:{...x,...S.formState}})),Cr=(S,z={})=>{for(const w of S?Do(S):p.mount)p.mount.delete(w),p.array.delete(w),z.keepValue||(bt(o,w),bt(f,w)),!z.keepError&&bt(i.errors,w),!z.keepDirty&&bt(i.dirtyFields,w),!z.keepTouched&&bt(i.touchedFields,w),!z.keepIsValidating&&bt(i.validatingFields,w),!l.shouldUnregister&&!z.keepDefaultValue&&bt(u,w);M.state.next({values:ft(f)}),M.state.next({...i,...z.keepDirty?{isDirty:ee()}:{}}),!z.keepIsValid&&N()},Tr=({disabled:S,name:z})=>{if(vn(S)&&d.mount||S||p.disabled.has(z)){const J=p.disabled.has(z)!==!!S;S?p.disabled.add(z):p.disabled.delete(z),J&&d.mount&&!d.action&&N()}},Ja=(S,z={})=>{let w=le(o,S);const Z=vn(z.disabled)||vn(l.disabled),J=!p.registerName.has(S)&&w&&w._f&&!w._f.mount;return lt(o,S,{...w||{},_f:{...w&&w._f?w._f:{ref:{name:S}},name:S,mount:!0,...z}}),p.mount.add(S),w&&!J?Tr({disabled:vn(z.disabled)?z.disabled:l.disabled,name:S}):Ne(S,!0,z.value),{...Z?{disabled:z.disabled||l.disabled}:{},...l.progressive?{required:!!z.required,min:Ci(z.min),max:Ci(z.max),minLength:Ci(z.minLength),maxLength:Ci(z.maxLength),pattern:Ci(z.pattern)}:{},name:S,onChange:Ve,onBlur:Ve,ref:ne=>{if(ne){p.registerName.add(S),Ja(S,z),p.registerName.delete(S),w=le(o,S);const re=ot(ne.value)&&ne.querySelectorAll&&ne.querySelectorAll("input,select,textarea")[0]||ne,ce=fT(re),Ee=w._f.refs||[];if(ce?Ee.find(ct=>ct===re):re===w._f.ref)return;const Fe={...w._f};ce?(Fe.refs=[...Ee.filter(Qf),re,...Array.isArray(le(u,S))?[{}]:[]],Fe.ref={type:re.type,name:S}):(Fe.ref=re,delete Fe.refs),lt(o,S,{_f:Fe}),Ne(S,!1,void 0,re)}else w=le(o,S,{}),w._f&&(w._f.mount=!1),(l.shouldUnregister||z.shouldUnregister)&&!(T0(p.array,S)&&d.action)&&p.unMount.add(S)}}},Pa=()=>l.shouldFocusError&&!l.shouldUseNativeValidation&&Mi(o,We,p.mount),xr=S=>{vn(S)&&(M.state.next({disabled:S}),Mi(o,(z,w)=>{const Z=le(o,w);Z&&(z.disabled=Z._f.disabled||S,Array.isArray(Z._f.refs)&&Z._f.refs.forEach(J=>{J.disabled=Z._f.disabled||S}))},0,!1))},ki=(S,z)=>async w=>{let Z,J;w&&(w.preventDefault&&w.preventDefault(),w.persist&&w.persist());let ne=ft(f);if(M.state.next({isSubmitting:!0}),l.resolver){const{errors:re,values:ce}=await ge();D(),i.errors=re,ne=ft(ce)}else await K({fields:o,eventType:Ia.SUBMIT});if(p.disabled.size)for(const re of p.disabled)bt(ne,re);if(bt(i.errors,M0),Lt(i.errors)){M.state.next({errors:{}});try{Z=await S(ne,w)}catch(re){J=re}}else z&&await z({...i.errors},w),Pa(),setTimeout(Pa);if(M.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Lt(i.errors)&&!J,submitCount:i.submitCount+1,errors:i.errors}),J)throw J;return Z},cs=(S,z={})=>{le(o,S)&&(ot(z.defaultValue)?ye(S,ft(le(u,S))):(ye(S,z.defaultValue),lt(u,S,ft(z.defaultValue))),z.keepTouched||bt(i.touchedFields,S),z.keepDirty||(bt(i.dirtyFields,S),i.isDirty=z.defaultValue?ee(S,ft(le(u,S))):ee()),z.keepError||(bt(i.errors,S),E.isValid&&N()),M.state.next({...i}))},jt=(S,z={})=>{const w=S?ft(S):u,Z=ft(w),J=Lt(S),ne=Z,re=o;if(z.keepDefaultValues||(u=w),!z.keepValues){if(z.keepDirtyValues){const ce=new Set([...p.mount,...H0(El(u,f,void 0,re),i.dirtyFields)]);for(const Ee of Array.from(ce)){const Fe=le(i.dirtyFields,Ee),ct=le(f,Ee),It=le(ne,Ee);Fe&&!ot(ct)?lt(ne,Ee,ct):!Fe&&!ot(It)&&ye(Ee,It)}}else{if(is&&ot(S))for(const ce of p.mount){const Ee=le(o,ce);if(Ee&&Ee._f){const Fe=Array.isArray(Ee._f.refs)?Ee._f.refs[0]:Ee._f.ref;if(Go(Fe)){const ct=Fe.closest("form");if(ct){ct.reset();break}}}}if(z.keepFieldsRef)for(const ce of p.mount)ye(ce,le(ne,ce));else o={}}if(l.shouldUnregister){if(f=z.keepDefaultValues?ft(u):{},z.keepFieldsRef)for(const ce of p.mount)lt(f,ce,le(ne,ce))}else f=ft(ne);M.array.next({values:{...ne}}),M.state.next({name:void 0,type:void 0,values:{...ne}})}p={mount:z.keepDirtyValues?p.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!E.isValid||!!z.keepIsValid||!!z.keepDirtyValues||!l.shouldUnregister&&!Lt(ne),d.watch=!!l.shouldUnregister,d.keepIsValid=!!z.keepIsValid,d.action=!1,z.keepErrors||(i.errors={}),M.state.next({submitCount:z.keepSubmitCount?i.submitCount:0,isDirty:J?!1:z.keepDirty?i.isDirty:z.keepValues?ee():!!(z.keepDefaultValues&&!hn(S,u)),isSubmitted:z.keepIsSubmitted?i.isSubmitted:!1,dirtyFields:J?{}:z.keepDirtyValues?z.keepDefaultValues&&f?El(u,f,void 0,re):i.dirtyFields:z.keepDefaultValues&&S?El(u,S,void 0,re):z.keepDirty?i.dirtyFields:{},touchedFields:z.keepTouched?i.touchedFields:{},errors:z.keepErrors?i.errors:{},isSubmitSuccessful:z.keepIsSubmitSuccessful?i.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:u})},Fi=(S,z)=>jt(Ft(S)?S(f):S,{...l.resetOptions,...z}),Gi=(S,z={})=>{const w=le(o,S),Z=w&&w._f;if(Z){const J=Z.refs?Z.refs[0]:Z.ref;J.focus&&setTimeout(()=>{J.focus(),z.shouldSelect&&Ft(J.select)&&J.select()})}},Yi=S=>{const{name:z,type:w,values:Z,...J}=S;i={...i,...J}},Dr={control:{register:Ja,unregister:Cr,getFieldState:qn,handleSubmit:ki,setError:Pn,_subscribe:Ea,_runSchema:ge,_updateIsValidating:D,_focusError:Pa,_getWatch:Me,_getDirty:ee,_setValid:N,_setFieldArray:Q,_setDisabledField:Tr,_setErrors:pe,_getFieldArray:T,_reset:jt,_resetDefaultValues:()=>Ft(l.defaultValues)&&l.defaultValues().then(S=>{Fi(S,l.resetOptions),M.state.next({isLoading:!1})}),_removeUnmounted:fe,_disableForm:xr,_subjects:M,_proxyFormState:E,get _fields(){return o},get _formValues(){return f},get _state(){return d},set _state(S){d=S},get _defaultValues(){return u},get _names(){return p},set _names(S){p=S},get _formState(){return i},get _options(){return l},set _options(S){l={...l,...S},b=bo(l.mode),C=bo(l.reValidateMode)}},subscribe:Ar,trigger:Ze,register:Ja,handleSubmit:ki,watch:yn,setValue:ye,setValues:Ce,getValues:Kn,reset:Fi,resetField:cs,resetDefaultValues:(S,z={})=>{if(u=ft(S),!z.keepDirty){const w=El(u,f,void 0,o);i.dirtyFields=w,i.isDirty=!Lt(w)}z.keepIsValid||N(),M.state.next({...i,defaultValues:u})},clearErrors:Jn,unregister:Cr,setError:Pn,setFocus:Gi,getFieldState:qn};return{...Dr,formControl:Dr}}function _T(n={}){const l=se.useRef(void 0),i=se.useRef(void 0),o=se.useRef(n.formControl),[u,f]=se.useState(()=>({...ft(F0),isLoading:Ft(n.defaultValues),errors:n.errors||{},disabled:n.disabled||!1,defaultValues:Ft(n.defaultValues)?void 0:n.defaultValues}));if(!l.current||n.formControl&&o.current!==n.formControl)if(o.current=n.formControl,n.formControl)l.current={...n.formControl,formState:u},n.defaultValues&&!Ft(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:p,...v}=OT(n);l.current={...v,formState:u}}const d=l.current.control;return d._options=n,Fd(()=>{const p=d._subscribe({formState:d._proxyFormState,callback:()=>f({...d._formState,defaultValues:d._defaultValues}),reRenderRoot:!0});return f(v=>({...v,isReady:!0})),d._formState.isReady=!0,p},[d]),se.useEffect(()=>d._disableForm(n.disabled),[d,n.disabled]),se.useEffect(()=>{n.mode&&(d._options.mode=n.mode),n.reValidateMode&&(d._options.reValidateMode=n.reValidateMode)},[d,n.mode,n.reValidateMode]),se.useEffect(()=>{n.errors&&(d._setErrors(n.errors),d._focusError())},[d,n.errors]),se.useEffect(()=>{n.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,n.shouldUnregister]),se.useEffect(()=>{if(d._proxyFormState.isDirty){const p=d._getDirty();p!==u.isDirty&&d._subjects.state.next({isDirty:p})}},[d,u.isDirty]),se.useEffect(()=>{var p;n.values&&!hn(n.values,i.current)?(d._reset(n.values,{keepFieldsRef:!0,...d._options.resetOptions}),!((p=d._options.resetOptions)===null||p===void 0)&&p.keepIsValid||d._setValid(),i.current=n.values,f(v=>({...v}))):d._resetDefaultValues()},[d,n.values]),se.useEffect(()=>{d._state.mount||(d._setValid(),d._state.mount=!0),d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),l.current.formState=se.useMemo(()=>R0(u,d),[d,u]),l.current}const AT=["webp","jpeg"],Yd={importSettings:{format:"webp",maxWidth:1920,quality:80}};function Qd(n={}){return{token:n.token??null,importSettings:{format:MT(n.importSettings?.format),maxWidth:xT(n.importSettings?.maxWidth),quality:TT(n.importSettings?.quality)}}}function CT(n){const l=n?.bearerToken,i=typeof l?.domain=="string"?l.domain.trim():"",o=typeof l?.accessToken=="string"?l.accessToken.trim():"";return!i||!o?null:{domain:i,accessToken:o}}function TT(n){return typeof n!="number"||!Number.isFinite(n)?Yd.importSettings.quality:Math.min(100,Math.max(0,Math.round(n)))}function xT(n){return typeof n=="number"&&Number.isFinite(n)&&n>=0?Math.round(n):Yd.importSettings.maxWidth}function MT(n){return DT(n)?n:Yd.importSettings.format}function DT(n){return typeof n=="string"&&AT.includes(n)}const Xf=[{label:"Optimized WebP (recommended)",value:"webp"},{label:"Optimized JPEG",value:"jpeg"}];function RT({ctx:n}){const l=Qd(n.plugin.attributes.parameters),i=l.token,[o,u]=Y.useState(!1),[f,d]=Y.useState(!1),[p,v]=Y.useState(!1),{control:h,handleSubmit:g,formState:b,reset:C}=_T({defaultValues:l});return Oe.jsx(Ng,{ctx:n,children:i?Oe.jsxs(Oe.Fragment,{children:[Oe.jsxs("div",{className:"x1hq5gj4 x78zum5 x1v2ro7d",children:[Oe.jsx(Ol,{type:"button",fullWidth:!0,buttonSize:"s",buttonType:"primary",disabled:f,onClick:async()=>{d(!0);try{const x=await JC(i);await n.updatePluginParameters({...l,token:x}),n.notice("Successfully received a new token!")}catch{await n.updatePluginParameters({...l,token:null}),n.alert("Something went wrong. Please login again!")}finally{d(!1)}},children:"Refresh token"}),Oe.jsx(Ol,{type:"button",fullWidth:!0,buttonSize:"s",buttonType:"primary",disabled:p,onClick:async()=>{v(!0);try{await PC(i),await n.updatePluginParameters({...l,token:null}),n.notice("Successfully revoked your token!")}catch{n.alert("Something went wrong while revoking access.")}finally{v(!1)}},children:"Revoke access"})]}),Oe.jsxs(SE,{onSubmit:g(async x=>{try{await n.updatePluginParameters(x),C(x),n.notice("Settings updated successfully!")}catch{n.alert("Something went wrong while saving settings.")}}),children:[Oe.jsx("p",{children:"Assets are imported as a web-sized derivative from Frontify's CDN (not the raw original)"}),Oe.jsxs(Ey,{children:[Oe.jsx(Gf,{control:h,name:"importSettings.quality",render:({field:x,fieldState:E})=>Oe.jsx(Py,{...x,id:"quality",label:"Quality (1 - 100)",hint:"Default 80",error:E.error?.message,textInputProps:{min:1,max:100,step:1,type:"number"},onChange:_=>x.onChange(Number.parseInt(_,10))})}),Oe.jsx(Gf,{control:h,name:"importSettings.maxWidth",render:({field:x,fieldState:E})=>Oe.jsx(Py,{...x,id:"maxWidth",label:"Max width in pixels",hint:"Default 1920",error:E.error?.message,textInputProps:{type:"number"},onChange:_=>x.onChange(Number.parseInt(_,10))})}),Oe.jsx(Gf,{control:h,name:"importSettings.format",render:({field:x,fieldState:E})=>Oe.jsx(xE,{...x,id:"format",label:"Format",hint:"Default WebP",selectInputProps:{value:Xf.find(_=>_.value===x.value),options:Xf},error:E.error?.message,onChange:_=>{_&&"value"in _&&x.onChange(_.value)},value:Xf.find(_=>_.value===x.value)})})]}),Oe.jsx(Ey,{children:Oe.jsx(Ol,{type:"submit",fullWidth:!0,buttonSize:"l",buttonType:"primary",disabled:b.isSubmitting||!b.isDirty,children:"Save settings"})})]})]}):Oe.jsx(Ol,{type:"button",fullWidth:!0,buttonSize:"l",buttonType:"primary",disabled:o,onClick:async()=>{u(!0);try{const x=await KC({clientId:"dato-cms",scopes:["basic:read"]});await n.updatePluginParameters({...l,token:x}),n.notice("You logged in successfully")}catch{n.alert("Something went wrong")}finally{u(!1)}},children:"Authorize"})})}var xi={NAME:"Name",OPERATION_DEFINITION:"OperationDefinition",FIELD:"Field"};let bd=class extends Error{constructor(l,i,o,u,f,d,p){super(l),this.name="GraphQLError",this.message=l,f&&(this.path=f),i&&(this.nodes=Array.isArray(i)?i:[i]),o&&(this.source=o),u&&(this.positions=u),d&&(this.originalError=d);var v=p;if(!v&&d){var h=d.extensions;h&&typeof h=="object"&&(v=h)}this.extensions=v||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}};var ve,P;function Yt(n){return new bd(`Syntax Error: Unexpected token at ${P} in ${n}`)}function fg(n){if(n.lastIndex=P,n.test(ve))return ve.slice(P,P=n.lastIndex)}var So=/ +(?=[^\s])/y;function NT(n){for(var l=n.split(`
|
|
21
|
-
`),i="",o=0,u=0,f=l.length-1,d=0;d<l.length;d++)So.lastIndex=0,So.test(l[d])&&(d&&(!o||So.lastIndex<o)&&(o=So.lastIndex),u=u||d,f=d);for(var p=u;p<=f;p++)p!==u&&(i+=`
|
|
22
|
-
`),i+=l[p].slice(o).replace(/\\"""/g,'"""');return i}function Be(){for(var n=0|ve.charCodeAt(P++);n===9||n===10||n===13||n===32||n===35||n===44||n===65279;n=0|ve.charCodeAt(P++))if(n===35)for(;(n=0|ve.charCodeAt(P++))&&n!==10&&n!==13;);P--}function Id(){for(var n=P,l=0|ve.charCodeAt(P++);l>=48&&l<=57||l>=65&&l<=90||l===95||l>=97&&l<=122;l=0|ve.charCodeAt(P++));if(n===P-1)throw Yt("Name");var i=ve.slice(n,--P);return Be(),i}function tn(){return{kind:"Name",value:Id()}}var VT=/(?:"""|(?:[\s\S]*?[^\\])""")/y,zT=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function gr(n){var l;switch(ve.charCodeAt(P)){case 91:P++,Be();for(var i=[];ve.charCodeAt(P)!==93;)i.push(gr(n));return P++,Be(),{kind:"ListValue",values:i};case 123:P++,Be();for(var o=[];ve.charCodeAt(P)!==125;){var u=tn();if(ve.charCodeAt(P++)!==58)throw Yt("ObjectField");Be(),o.push({kind:"ObjectField",name:u,value:gr(n)})}return P++,Be(),{kind:"ObjectValue",fields:o};case 36:if(n)throw Yt("Variable");return P++,{kind:"Variable",name:tn()};case 34:if(ve.charCodeAt(P+1)===34&&ve.charCodeAt(P+2)===34){if(P+=3,(l=fg(VT))==null)throw Yt("StringValue");return Be(),{kind:"StringValue",value:NT(l.slice(0,-3)),block:!0}}else{var f=P,d;P++;var p=!1;for(d=0|ve.charCodeAt(P++);d===92&&(P++,p=!0)||d!==10&&d!==13&&d!==34&&d;d=0|ve.charCodeAt(P++));if(d!==34)throw Yt("StringValue");return l=ve.slice(f,P),Be(),{kind:"StringValue",value:p?JSON.parse(l):l.slice(1,-1),block:!1}}case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var v=P++,h;(h=0|ve.charCodeAt(P++))>=48&&h<=57;);var g=ve.slice(v,--P);if((h=ve.charCodeAt(P))===46||h===69||h===101){if((l=fg(zT))==null)throw Yt("FloatValue");return Be(),{kind:"FloatValue",value:g+l}}else return Be(),{kind:"IntValue",value:g};case 110:if(ve.charCodeAt(P+1)===117&&ve.charCodeAt(P+2)===108&&ve.charCodeAt(P+3)===108)return P+=4,Be(),{kind:"NullValue"};break;case 116:if(ve.charCodeAt(P+1)===114&&ve.charCodeAt(P+2)===117&&ve.charCodeAt(P+3)===101)return P+=4,Be(),{kind:"BooleanValue",value:!0};break;case 102:if(ve.charCodeAt(P+1)===97&&ve.charCodeAt(P+2)===108&&ve.charCodeAt(P+3)===115&&ve.charCodeAt(P+4)===101)return P+=5,Be(),{kind:"BooleanValue",value:!1};break}return{kind:"EnumValue",value:Id()}}function G0(n){if(ve.charCodeAt(P)===40){var l=[];P++,Be();do{var i=tn();if(ve.charCodeAt(P++)!==58)throw Yt("Argument");Be(),l.push({kind:"Argument",name:i,value:gr(n)})}while(ve.charCodeAt(P)!==41);return P++,Be(),l}}function Xa(n){if(ve.charCodeAt(P)===64){var l=[];do P++,l.push({kind:"Directive",name:tn(),arguments:G0(n)});while(ve.charCodeAt(P)===64);return l}}function wT(){for(var n=0;ve.charCodeAt(P)===91;)n++,P++,Be();var l={kind:"NamedType",name:tn()};do if(ve.charCodeAt(P)===33&&(P++,Be(),l={kind:"NonNullType",type:l}),n){if(ve.charCodeAt(P++)!==93)throw Yt("NamedType");Be(),l={kind:"ListType",type:l}}while(n--);return l}function Qo(){if(ve.charCodeAt(P++)!==123)throw Yt("SelectionSet");return Be(),Io()}function Io(){var n=[];do if(ve.charCodeAt(P)===46){if(ve.charCodeAt(++P)!==46||ve.charCodeAt(++P)!==46)throw Yt("SelectionSet");switch(P++,Be(),ve.charCodeAt(P)){case 64:n.push({kind:"InlineFragment",typeCondition:void 0,directives:Xa(!1),selectionSet:Qo()});break;case 111:ve.charCodeAt(P+1)===110?(P+=2,Be(),n.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:tn()},directives:Xa(!1),selectionSet:Qo()})):n.push({kind:"FragmentSpread",name:tn(),directives:Xa(!1)});break;case 123:P++,Be(),n.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:Io()});break;default:n.push({kind:"FragmentSpread",name:tn(),directives:Xa(!1)})}}else{var l=tn(),i=void 0;ve.charCodeAt(P)===58&&(P++,Be(),i=l,l=tn());var o=G0(!1),u=Xa(!1),f=void 0;ve.charCodeAt(P)===123&&(P++,Be(),f=Io()),n.push({kind:"Field",alias:i,name:l,arguments:o,directives:u,selectionSet:f})}while(ve.charCodeAt(P)!==125);return P++,Be(),{kind:"SelectionSet",selections:n}}function LT(){if(Be(),ve.charCodeAt(P)===40){var n=[];P++,Be();do{var l=void 0;if(ve.charCodeAt(P)===34&&(l=gr(!0)),ve.charCodeAt(P++)!==36)throw Yt("Variable");var i=tn();if(ve.charCodeAt(P++)!==58)throw Yt("VariableDefinition");Be();var o=wT(),u=void 0;ve.charCodeAt(P)===61&&(P++,Be(),u=gr(!0)),Be();var f={kind:"VariableDefinition",variable:{kind:"Variable",name:i},type:o,defaultValue:u,directives:Xa(!0)};l&&(f.description=l),n.push(f)}while(ve.charCodeAt(P)!==41);return P++,Be(),n}}function UT(n){var l=tn();if(ve.charCodeAt(P++)!==111||ve.charCodeAt(P++)!==110)throw Yt("FragmentDefinition");Be();var i={kind:"FragmentDefinition",name:l,typeCondition:{kind:"NamedType",name:tn()},directives:Xa(!1),selectionSet:Qo()};return n&&(i.description=n),i}function dg(){var n=[];do{var l=void 0;if(ve.charCodeAt(P)===34&&(l=gr(!0)),ve.charCodeAt(P)===123){if(l)throw Yt("Document");P++,Be(),n.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:Io()})}else{var i=Id();switch(i){case"fragment":n.push(UT(l));break;case"query":case"mutation":case"subscription":var o,u=void 0;(o=ve.charCodeAt(P))!==40&&o!==64&&o!==123&&(u=tn());var f={kind:"OperationDefinition",operation:i,name:u,variableDefinitions:LT(),directives:Xa(!1),selectionSet:Qo()};l&&(f.description=l),n.push(f);break;default:throw Yt("Document")}}}while(P<ve.length);return n}function HT(n,l){return ve=n.body?n.body:n,P=0,Be(),l&&l.noLocation?{kind:"Document",definitions:dg()}:{kind:"Document",definitions:dg(),loc:{start:0,end:ve.length,startToken:void 0,endToken:void 0,source:{body:ve,name:"graphql.web",locationOffset:{line:1,column:1}}}}}function en(n,l,i){for(var o="",u=0;u<n.length;u++)u&&(o+=l),o+=i(n[u]);return o}function qT(n){return JSON.stringify(n)}function jT(n){return`"""
|
|
23
|
-
`+n.replace(/"""/g,'\\"""')+`
|
|
24
|
-
"""`}var Qn=`
|
|
25
|
-
`,mt={OperationDefinition(n){var l="";n.description&&(l+=mt.StringValue(n.description)+`
|
|
26
|
-
`),l+=n.operation,n.name&&(l+=" "+n.name.value),n.variableDefinitions&&n.variableDefinitions.length&&(n.name||(l+=" "),l+="("+en(n.variableDefinitions,", ",mt.VariableDefinition)+")"),n.directives&&n.directives.length&&(l+=" "+en(n.directives," ",mt.Directive));var i=mt.SelectionSet(n.selectionSet);return l!=="query"?l+" "+i:i},VariableDefinition(n){var l="";return n.description&&(l+=mt.StringValue(n.description)+" "),l+=mt.Variable(n.variable)+": "+ya(n.type),n.defaultValue&&(l+=" = "+ya(n.defaultValue)),n.directives&&n.directives.length&&(l+=" "+en(n.directives," ",mt.Directive)),l},Field(n){var l=n.alias?n.alias.value+": "+n.name.value:n.name.value;if(n.arguments&&n.arguments.length){var i=en(n.arguments,", ",mt.Argument);l.length+i.length+2>80?l+="("+(Qn+=" ")+en(n.arguments,Qn,mt.Argument)+(Qn=Qn.slice(0,-2))+")":l+="("+i+")"}return n.directives&&n.directives.length&&(l+=" "+en(n.directives," ",mt.Directive)),n.selectionSet&&n.selectionSet.selections.length&&(l+=" "+mt.SelectionSet(n.selectionSet)),l},StringValue(n){return n.block?jT(n.value).replace(/\n/g,Qn):qT(n.value)},BooleanValue:n=>""+n.value,NullValue:n=>"null",IntValue:n=>n.value,FloatValue:n=>n.value,EnumValue:n=>n.value,Name:n=>n.value,Variable:n=>"$"+n.name.value,ListValue:n=>"["+en(n.values,", ",ya)+"]",ObjectValue:n=>"{"+en(n.fields,", ",mt.ObjectField)+"}",ObjectField:n=>n.name.value+": "+ya(n.value),Document(n){return!n.definitions||!n.definitions.length?"":en(n.definitions,`
|
|
27
|
-
|
|
28
|
-
`,ya)},SelectionSet:n=>"{"+(Qn+=" ")+en(n.selections,Qn,ya)+(Qn=Qn.slice(0,-2))+"}",Argument:n=>n.name.value+": "+ya(n.value),FragmentSpread(n){var l="..."+n.name.value;return n.directives&&n.directives.length&&(l+=" "+en(n.directives," ",mt.Directive)),l},InlineFragment(n){var l="...";return n.typeCondition&&(l+=" on "+n.typeCondition.name.value),n.directives&&n.directives.length&&(l+=" "+en(n.directives," ",mt.Directive)),l+=" "+mt.SelectionSet(n.selectionSet)},FragmentDefinition(n){var l="";return n.description&&(l+=mt.StringValue(n.description)+`
|
|
29
|
-
`),l+="fragment "+n.name.value,l+=" on "+n.typeCondition.name.value,n.directives&&n.directives.length&&(l+=" "+en(n.directives," ",mt.Directive)),l+" "+mt.SelectionSet(n.selectionSet)},Directive(n){var l="@"+n.name.value;return n.arguments&&n.arguments.length&&(l+="("+en(n.arguments,", ",mt.Argument)+")"),l},NamedType:n=>n.name.value,ListType:n=>"["+ya(n.type)+"]",NonNullType:n=>ya(n.type)+"!"},ya=n=>mt[n.kind](n);function BT(n){return Qn=`
|
|
30
|
-
`,mt[n.kind]?mt[n.kind](n):""}var Y0=()=>{},pn=Y0;function Hn(n){return{tag:0,0:n}}function Bi(n){return{tag:1,0:n}}var Sd=()=>typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator",kT=n=>n;function an(n){return l=>i=>{var o=pn;l((u=>{u===0?i(0):u.tag===0?(o=u[0],i(u)):n(u[0])?i(u):o(0)}))}}function Ro(n){return l=>i=>l((o=>{o===0||o.tag===0?i(o):i(Bi(n(o[0])))}))}function Q0(n){return l=>i=>{var o=[],u=pn,f=!1,d=!1;l((p=>{d||(p===0?(d=!0,o.length||i(0)):p.tag===0?u=p[0]:(f=!1,(function(h){var g=pn;h((b=>{if(b===0){if(o.length){var C=o.indexOf(g);C>-1&&(o=o.slice()).splice(C,1),o.length||(d?i(0):f||(f=!0,u(0)))}}else b.tag===0?(o.push(g=b[0]),g(0)):o.length&&(i(b),g(0))}))})(n(p[0])),f||(f=!0,u(0))))})),i(Hn((p=>{if(p===1){d||(d=!0,u(1));for(var v=0,h=o,g=o.length;v<g;v++)h[v](1);o.length=0}else{!d&&!f?(f=!0,u(0)):f=!1;for(var b=0,C=o,x=o.length;b<x;b++)C[b](0)}})))}}function FT(n){return Q0(kT)(n)}function Vi(n){return FT(QT(n))}function Xd(n){return l=>i=>{var o=!1;l((u=>{if(!o)if(u===0)o=!0,i(0),n();else if(u.tag===0){var f=u[0];i(Hn((d=>{d===1?(o=!0,f(1),n()):f(d)})))}else i(u)}))}}function Xo(n){return l=>i=>{var o=!1;l((u=>{if(!o)if(u===0)o=!0,i(0);else if(u.tag===0){var f=u[0];i(Hn((d=>{d===1&&(o=!0),f(d)})))}else n(u[0]),i(u)}))}}function vg(n){return l=>i=>l((o=>{o===0?i(0):o.tag===0?(i(o),n()):i(o)}))}function zi(n){var l=[],i=pn,o=!1;return u=>{l.push(u),l.length===1&&n((f=>{if(f===0){for(var d=0,p=l,v=l.length;d<v;d++)p[d](0);l.length=0}else if(f.tag===0)i=f[0];else{o=!1;for(var h=0,g=l,b=l.length;h<b;h++)g[h](f)}})),u(Hn((f=>{if(f===1){var d=l.indexOf(u);d>-1&&(l=l.slice()).splice(d,1),l.length||i(1)}else o||(o=!0,i(0))})))}}function hg(n){return l=>i=>{var o=pn,u=pn,f=!1,d=!1,p=!1,v=!1;l((h=>{v||(h===0?(v=!0,p||i(0)):h.tag===0?o=h[0]:(p&&(u(1),u=pn),f?f=!1:(f=!0,o(0)),(function(b){p=!0,b((C=>{p&&(C===0?(p=!1,v?i(0):f||(f=!0,o(0))):C.tag===0?(d=!1,(u=C[0])(0)):(i(C),d?d=!1:u(0)))}))})(n(h[0]))))})),i(Hn((h=>{h===1?(v||(v=!0,o(1)),p&&(p=!1,u(1))):(!v&&!f&&(f=!0,o(0)),p&&!d&&(d=!0,u(0)))})))}}function I0(n){return l=>i=>{var o=pn,u=!1,f=0;l((d=>{u||(d===0?(u=!0,i(0)):d.tag===0?o=d[0]:f++<n?(i(d),!u&&f>=n&&(u=!0,i(0),o(1))):i(d))})),i(Hn((d=>{d===1&&!u?(u=!0,o(1)):d===0&&!u&&f<n&&o(0)})))}}function X0(n){return l=>i=>{var o=pn,u=pn,f=!1;l((d=>{f||(d===0?(f=!0,u(1),i(0)):d.tag===0?(o=d[0],n((p=>{p===0||(p.tag===0?(u=p[0])(0):(f=!0,u(1),o(1),i(0)))}))):i(d))})),i(Hn((d=>{d===1&&!f?(f=!0,o(1),u(1)):f||o(0)})))}}function $0(n,l){return i=>o=>{var u=pn,f=!1;i((d=>{f||(d===0?(f=!0,o(0)):d.tag===0?(u=d[0],o(d)):n(d[0])?o(d):(f=!0,l&&o(d),o(0),u(1)))}))}}function GT(n){return l=>n()(l)}function Z0(n){return l=>{var i=n[Sd()]&&n[Sd()]()||n,o=!1,u=!1,f=!1,d;l(Hn((async p=>{if(p===1)o=!0,i.return&&i.return();else if(u)f=!0;else{for(f=u=!0;f&&!o;)if((d=await i.next()).done)o=!0,i.return&&await i.return(),l(0);else try{f=!1,l(Bi(d.value))}catch(v){if(i.throw)(o=!!(await i.throw(v)).done)&&l(0);else throw v}u=!1}})))}}function YT(n){return n[Sd()]?Z0(n):l=>{var i=n[Symbol.iterator](),o=!1,u=!1,f=!1,d;l(Hn((p=>{if(p===1)o=!0,i.return&&i.return();else if(u)f=!0;else{for(f=u=!0;f&&!o;)if((d=i.next()).done)o=!0,i.return&&i.return(),l(0);else try{f=!1,l(Bi(d.value))}catch(v){if(i.throw)(o=!!i.throw(v).done)&&l(0);else throw v}u=!1}})))}}var QT=YT;function $f(n){return l=>{var i=!1;l(Hn((o=>{o===1?i=!0:i||(i=!0,l(Bi(n)),l(0))})))}}function IT(n){return l=>{var i=!1,o=n({next(u){i||l(Bi(u))},complete(){i||(i=!0,l(0))}});l(Hn((u=>{u===1&&!i&&(i=!0,o())})))}}function XT(){var n,l;return{source:zi(IT((i=>(n=i.next,l=i.complete,Y0)))),next(i){n&&n(i)},complete(){l&&l()}}}function br(n){return l=>{var i=pn,o=!1;return l((u=>{u===0?o=!0:u.tag===0?(i=u[0])(0):o||(n(u[0]),i(0))})),{unsubscribe(){o||(o=!0,i(1))}}}}function $T(n){br((l=>{}))(n)}function ZT(n){return new Promise((l=>{var i=pn,o;n((u=>{u===0?Promise.resolve(o).then(l):u.tag===0?(i=u[0])(0):(o=u[0],i(0))}))}))}var KT=n=>n&&typeof n.message=="string"&&(n.extensions||n.name==="GraphQLError")?n:typeof n=="object"&&typeof n.message=="string"?new bd(n.message,n.nodes,n.source,n.positions,n.path,n,n.extensions||{}):new bd(n);class $d extends Error{constructor(l){var i=(l.graphQLErrors||[]).map(KT),o=((u,f)=>{var d="";if(u)return`[Network] ${u.message}`;if(f)for(var p=0,v=f.length;p<v;p++)d&&(d+=`
|
|
31
|
-
`),d+=`[GraphQL] ${f[p].message}`;return d})(l.networkError,i);super(o),this.name="CombinedError",this.message=o,this.graphQLErrors=i,this.networkError=l.networkError,this.response=l.response}toString(){return this.message}}var No=(n,l)=>{for(var i=0|(l||5381),o=0,u=0|n.length;o<u;o++)i=(i<<5)+i+n.charCodeAt(o);return i},Al=new Set,mg=new WeakMap,hr=(n,l)=>{if(n===null||Al.has(n))return"null";if(typeof n!="object")return JSON.stringify(n)||"";if(n.toJSON)return hr(n.toJSON(),l);if(Array.isArray(n)){for(var i="[",o=0,u=n.length;o<u;o++)i.length>1&&(i+=","),i+=hr(n[o],l)||"null";return i+="]"}else if(!l&&(Zo!==Sr&&n instanceof Zo||Ko!==Sr&&n instanceof Ko))return"null";var f=Object.keys(n).sort();if(!f.length&&n.constructor&&Object.getPrototypeOf(n).constructor!==Object.prototype.constructor){var d=mg.get(n)||Math.random().toString(36).slice(2);return mg.set(n,d),hr({__key:d},l)}Al.add(n);for(var p="{",v=0,h=f.length;v<h;v++){var g=hr(n[f[v]],l);g&&(p.length>1&&(p+=","),p+=hr(f[v],l)+":"+g)}return Al.delete(n),p+="}"},Ed=(n,l,i)=>{if(!(i==null||typeof i!="object"||i.toJSON||Al.has(i)))if(Array.isArray(i))for(var o=0,u=i.length;o<u;o++)Ed(n,`${l}.${o}`,i[o]);else if(i instanceof Zo||i instanceof Ko)n.set(l,i);else{Al.add(i);for(var f in i)Ed(n,`${l}.${f}`,i[f])}},$o=(n,l)=>(Al.clear(),hr(n,l||!1));class Sr{}var Zo=typeof File<"u"?File:Sr,Ko=typeof Blob<"u"?Blob:Sr,JT=/("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g,PT=/(?:#[^\n\r]+)?(?:[\r\n]+|$)/g,WT=(n,l)=>l%2==0?n.replace(PT,`
|
|
32
|
-
`):n,pg=n=>n.split(JT).map(WT).join("").trim(),yg=new Map,Vo=new Map,Zd=n=>{var l;return typeof n=="string"?l=pg(n):n.loc&&Vo.get(n.__key)===n?l=n.loc.source.body:(l=yg.get(n)||pg(BT(n)),yg.set(n,l)),typeof n!="string"&&!n.loc&&(n.loc={start:0,end:l.length,source:{body:l,name:"gql",locationOffset:{line:1,column:1}}}),l},gg=n=>{var l;if(n.documentId)l=No(n.documentId);else if(l=No(Zd(n)),n.definitions){var i=J0(n);i&&(l=No(`
|
|
33
|
-
# ${i}`,l))}return l},K0=n=>{var l,i;return typeof n=="string"?(l=gg(n),i=Vo.get(l)||HT(n,{noLocation:!0})):(l=n.__key||gg(n),i=Vo.get(l)||n),i.loc||Zd(i),i.__key=l,Vo.set(l,i),i},zo=(n,l,i)=>{var o=l||{},u=K0(n),f=$o(o,!0),d=u.__key;return f!=="{}"&&(d=No(f,d)),{key:d,query:u,variables:o,extensions:i}},J0=n=>{for(var l=0,i=n.definitions.length;l<i;l++){var o=n.definitions[l];if(o.kind===xi.OPERATION_DEFINITION)return o.name?o.name.value:void 0}},Od=(n,l,i)=>{var o=l.payload||l;if(!("data"in o||"errors"in o&&Array.isArray(o.errors)))throw new Error("No Content");var u=n.kind==="subscription";return{operation:n,data:o.data,error:Array.isArray(o.errors)?new $d({graphQLErrors:o.errors,response:i}):void 0,extensions:o.extensions?{...o.extensions}:void 0,hasNext:l.hasNext==null?u:l.hasNext,stale:!1}},Jo=(n,l)=>{if(typeof n=="object"&&n!=null){if(Array.isArray(n)){n=[...n];for(var i=0,o=l.length;i<o;i++)n[i]=Jo(n[i],l[i]);return n}if(!n.constructor||n.constructor===Object){n={...n};for(var u in l)n[u]=Jo(n[u],l[u]);return n}}return l},e2=(n,l,i,o)=>{var u=n.error?n.error.graphQLErrors:[],f=!!n.extensions||!!(l.payload||l).extensions,d={...n.extensions,...(l.payload||l).extensions},p=l.incremental;"path"in l&&(p=[l]);var v={data:n.data};if(p)for(var h=function(){var C=p[g];Array.isArray(C.errors)&&u.push(...C.errors),C.extensions&&(Object.assign(d,C.extensions),f=!0);var x="data",E=v,_=[];if(C.path)_=C.path;else if(o){var M=o.find((I=>I.id===C.id));C.subPath?_=[...M.path,...C.subPath]:_=M.path}for(var L=0,A=_.length;L<A;x=_[L++])E=E[x]=Array.isArray(E[x])?[...E[x]]:{...E[x]};if(C.items)for(var U=+x>=0?x:0,N=0,D=C.items.length;N<D;N++)E[U+N]=Jo(E[U+N],C.items[N]);else C.data!==void 0&&(E[x]=Jo(E[x],C.data))},g=0,b=p.length;g<b;g++)h();else v.data=(l.payload||l).data||n.data,u=l.errors||l.payload&&l.payload.errors||u;return{operation:n.operation,data:v.data,error:u.length?new $d({graphQLErrors:u,response:i}):void 0,extensions:f?d:void 0,hasNext:l.hasNext!=null?l.hasNext:n.hasNext,stale:!1}},t2=(n,l,i)=>({operation:n,data:void 0,error:new $d({networkError:l,response:i}),extensions:void 0,hasNext:!1,stale:!1});function n2(n){var l={query:void 0,documentId:void 0,operationName:J0(n.query),variables:n.variables||void 0,extensions:n.extensions};return"documentId"in n.query&&n.query.documentId&&(!n.query.definitions||!n.query.definitions.length)?l.documentId=n.query.documentId:(!n.extensions||!n.extensions.persistedQuery||n.extensions.persistedQuery.miss)&&(l.query=Zd(n.query)),l}var a2=(n,l)=>{var i=n.kind==="query"&&n.context.preferGetMethod;if(!i||!l)return n.context.url;var o=l2(n.context.url);for(var u in l){var f=l[u];f&&o[1].set(u,typeof f=="object"?$o(f):f)}var d=o.join("?");return d.length>2047&&i!=="force"?(n.context.preferGetMethod=!1,n.context.url):d},l2=n=>{var l=n.indexOf("?");return l>-1?[n.slice(0,l),new URLSearchParams(n.slice(l+1))]:[n,new URLSearchParams]},r2=(n,l)=>{if(l&&!(n.kind==="query"&&n.context.preferGetMethod)){var i=$o(l),o=(p=>{var v=new Map;return(Zo!==Sr||Ko!==Sr)&&(Al.clear(),Ed(v,"variables",p)),v})(l.variables);if(o.size){var u=new FormData;u.append("operations",i),u.append("map",$o({...[...o.keys()].map((p=>[p]))}));var f=0;for(var d of o.values())u.append(""+f++,d);return u}return i}},i2=(n,l)=>{var i={accept:n.kind==="subscription"?"text/event-stream, multipart/mixed":"application/graphql-response+json, application/graphql+json, application/json, text/event-stream, multipart/mixed"},o=(typeof n.context.fetchOptions=="function"?n.context.fetchOptions():n.context.fetchOptions)||{};if(o.headers)if((d=>"has"in d&&!Object.keys(d).length)(o.headers))o.headers.forEach(((d,p)=>{i[p]=d}));else if(Array.isArray(o.headers))o.headers.forEach(((d,p)=>{Array.isArray(d)?i[d[0]]?i[d[0]]=`${i[d[0]]},${d[1]}`:i[d[0]]=d[1]:i[p]=d}));else for(var u in o.headers)i[u.toLowerCase()]=o.headers[u];var f=r2(n,l);return typeof f=="string"&&!i["content-type"]&&(i["content-type"]="application/json"),{...o,method:f?"POST":"GET",body:f,headers:i}},u2=/boundary="?([^=";]+)"?/i,o2=/data: ?([^\n]+)/;async function*bg(n){if(n.body[Symbol.asyncIterator])for await(var l of n.body)yield l;else{var i=n.body.getReader(),o;try{for(;!(o=await i.read()).done;)yield o.value}finally{i.cancel()}}}async function*Sg(n,l){var i=typeof TextDecoder<"u"?new TextDecoder:null,o="",u;for await(var f of n)for(o+=f.constructor.name==="Buffer"?f.toString():i.decode(f,{stream:!0});(u=o.indexOf(l))>-1;)yield o.slice(0,u),o=o.slice(u+l.length)}async function*s2(n,l,i){var o=!0,u=null,f;try{yield await Promise.resolve();var d=(f=await(n.context.fetch||fetch)(l,i)).headers.get("Content-Type")||"",p;/multipart\/mixed/i.test(d)?p=(async function*(b,C){var x=b.match(u2),E="--"+(x?x[1]:"-"),_=!0,M;for await(var L of Sg(bg(C),`\r
|
|
34
|
-
`+E)){if(_){_=!1;var A=L.indexOf(E);if(A>-1)L=L.slice(A+E.length);else continue}try{yield M=JSON.parse(L.slice(L.indexOf(`\r
|
|
35
|
-
\r
|
|
36
|
-
`)+4))}catch(U){if(!M)throw U}if(M&&M.hasNext===!1)break}M&&M.hasNext!==!1&&(yield{hasNext:!1})})(d,f):/text\/event-stream/i.test(d)?p=(async function*(b){var C;for await(var x of Sg(bg(b),`
|
|
37
|
-
|
|
38
|
-
`)){var E=x.match(o2);if(E){var _=E[1];try{yield C=JSON.parse(_)}catch(M){if(!C)throw M}if(C&&C.hasNext===!1)break}}C&&C.hasNext!==!1&&(yield{hasNext:!1})})(f):/text\//i.test(d)?p=(async function*(b){var C=await b.text();try{var x=JSON.parse(C);yield x}catch{throw new Error(C)}})(f):p=(async function*(b){yield JSON.parse(await b.text())})(f);var v;for await(var h of p)h.pending&&!u?v=h.pending:h.pending&&(v=[...v,...h.pending]),u=u?e2(u,h,f,v):Od(n,h,f),o=!1,yield u,o=!0;u||(yield u=Od(n,{},f))}catch(g){if(!o)throw g;yield t2(n,f&&(f.status<200||f.status>=300)&&f.statusText?new Error(f.statusText):g,f)}}function c2(n,l,i){var o;return typeof AbortController<"u"&&(i.signal=(o=new AbortController).signal),Xd((()=>{o&&o.abort()}))(an((u=>!!u))(Z0(s2(n,l,i))))}var _d=(n,l)=>{if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)_d(n[i],l);else if(typeof n=="object"&&n!==null)for(var u in n)u==="__typename"&&typeof n[u]=="string"?l.add(n[u]):_d(n[u],l);return l},Ad=n=>{if("definitions"in n){for(var l=[],i=0,o=n.definitions.length;i<o;i++){var u=Ad(n.definitions[i]);l.push(u)}return{...n,definitions:l}}if("directives"in n&&n.directives&&n.directives.length){for(var f=[],d={},p=0,v=n.directives.length;p<v;p++){var h=n.directives[p],g=h.name.value;g[0]!=="_"?f.push(h):g=g.slice(1),d[g]=h}n={...n,directives:f,_directives:d}}if("selectionSet"in n){var b=[],C=n.kind===xi.OPERATION_DEFINITION;if(n.selectionSet){for(var x=0,E=n.selectionSet.selections.length;x<E;x++){var _=n.selectionSet.selections[x];C=C||_.kind===xi.FIELD&&_.name.value==="__typename"&&!_.alias;var M=Ad(_);b.push(M)}return C||b.push({kind:xi.FIELD,name:{kind:xi.NAME,value:"__typename"},_generated:!0}),{...n,selectionSet:{...n.selectionSet,selections:b}}}}return n},Eg=new Map,f2=n=>{var l=K0(n),i=Eg.get(l.__key);return i||(Eg.set(l.__key,i=Ad(l)),Object.defineProperty(i,"__key",{value:l.__key,enumerable:!1})),i};function Og(n){var l=i=>n(i);return l.toPromise=()=>ZT(I0(1)(an((i=>!i.stale&&!i.hasNext))(l))),l.then=(i,o)=>l.toPromise().then(i,o),l.subscribe=i=>br(i)(l),l}function wi(n,l,i){return{...l,kind:n,context:l.context?{...l.context,...i}:i||l.context}}var _g=(n,l)=>wi(n.kind,n,{meta:{...n.context.meta,...l}}),d2=()=>{},Zf=({kind:n})=>n!=="mutation"&&n!=="query",v2=n=>{var l=f2(n.query);if(l!==n.query){var i=wi(n.kind,n);return i.query=l,i}else return n},h2=({forward:n,client:l,dispatchDebug:i})=>{var o=new Map,u=new Map,f=d=>d.kind==="query"&&d.context.requestPolicy!=="network-only"&&(d.context.requestPolicy==="cache-only"||o.has(d.key));return d=>{var p=Ro((h=>{var g=o.get(h.key),b=g||Od(h,{data:null});return b={...b,operation:_g(h,{cacheOutcome:g?"hit":"miss"})},h.context.requestPolicy==="cache-and-network"&&(b.stale=!0,Ag(l,h)),b}))(an((h=>!Zf(h)&&f(h)))(d)),v=Xo((h=>{var{operation:g}=h;if(g){var b=g.context.additionalTypenames||[];if(h.operation.kind!=="subscription"&&(b=(D=>[..._d(D,new Set)])(h.data).concat(b)),h.operation.kind==="mutation"||h.operation.kind==="subscription"){for(var C=new Set,x=0;x<b.length;x++){var E=b[x],_=u.get(E);_||u.set(E,_=new Set);for(var M of _.values())C.add(M);_.clear()}for(var L of C.values())o.has(L)&&(g=o.get(L).operation,o.delete(L),Ag(l,g))}else if(g.kind==="query"&&h.data){o.set(g.key,h);for(var A=0;A<b.length;A++){var U=b[A],N=u.get(U);N||u.set(U,N=new Set),N.add(g.key)}}}}))(n(an((h=>h.kind!=="query"||h.context.requestPolicy!=="cache-only"))(Ro((h=>_g(h,{cacheOutcome:"miss"})))(Vi([Ro(v2)(an((h=>!Zf(h)&&!f(h)))(d)),an((h=>Zf(h)))(d)])))));return Vi([p,v])}},Ag=(n,l)=>n.reexecuteOperation(wi(l.kind,l,{requestPolicy:"network-only"})),m2=({forward:n,dispatchDebug:l})=>i=>{var o=Q0((f=>{var d=n2(f),p=a2(f,d),v=i2(f,d),h=X0(an((g=>g.kind==="teardown"&&g.key===f.key))(i))(c2(f,p,v));return h}))(an((f=>f.kind!=="teardown"&&(f.kind!=="subscription"||!!f.context.fetchSubscriptions)))(i)),u=n(an((f=>f.kind==="teardown"||f.kind==="subscription"&&!f.context.fetchSubscriptions))(i));return Vi([o,u])},p2=n=>({client:l,forward:i,dispatchDebug:o})=>n.reduceRight(((u,f)=>f({client:l,forward(d){return zi(u(zi(d)))},dispatchDebug(d){}})),i),y2=({dispatchDebug:n})=>l=>an((i=>!1))(l),g2=function n(l){var i=0,o=new Map,u=new Map,f=new Set,d=[],p={url:l.url,fetchSubscriptions:l.fetchSubscriptions,fetchOptions:l.fetchOptions,fetch:l.fetch,preferGetMethod:l.preferGetMethod!=null?l.preferGetMethod:"within-url-limit",requestPolicy:l.requestPolicy||"cache-first"},v=XT();function h(A){(A.kind==="mutation"||A.kind==="teardown"||!f.has(A.key))&&(A.kind==="teardown"?f.delete(A.key):A.kind!=="mutation"&&f.add(A.key),v.next(A))}var g=!1;function b(A){if(A&&h(A),!g){for(g=!0;g&&(A=d.shift());)h(A);g=!1}}var C=A=>{var U=X0(an((N=>N.kind==="teardown"&&N.key===A.key))(v.source))(an((N=>N.operation.kind===A.kind&&N.operation.key===A.key&&(!N.operation.context._instance||N.operation.context._instance===A.context._instance)))(L));return A.kind!=="query"?U=$0((N=>!!N.hasNext),!0)(U):U=hg((N=>{var D=$f(N);return N.stale||N.hasNext?D:Vi([D,Ro((()=>(N.stale=!0,N)))(I0(1)(an((I=>I.key===A.key))(v.source)))])}))(U),A.kind!=="mutation"?U=Xd((()=>{f.delete(A.key),o.delete(A.key),u.delete(A.key),g=!1;for(var N=d.length-1;N>=0;N--)d[N].key===A.key&&d.splice(N,1);h(wi("teardown",A,A.context))}))(Xo((N=>{if(N.stale)if(!N.hasNext)f.delete(A.key);else for(var D=0;D<d.length;D++){var I=d[D];if(I.key===N.operation.key){f.delete(I.key);break}}else N.hasNext||f.delete(A.key);o.set(A.key,N)}))(U)):U=vg((()=>{h(A)}))(U),zi(U)},x=this instanceof n?this:Object.create(n.prototype),E=Object.assign(x,{suspense:!!l.suspense,operations$:v.source,reexecuteOperation(A){if(A.kind==="teardown")b(A);else if(A.kind==="mutation")d.push(A),Promise.resolve().then(b);else if(u.has(A.key)){for(var U=!1,N=0;N<d.length;N++)d[N].key===A.key&&(d[N]=A,U=!0);U||f.has(A.key)&&A.context.requestPolicy!=="network-only"?(f.delete(A.key),Promise.resolve().then(b)):(d.push(A),Promise.resolve().then(b))}},createRequestOperation(A,U,N){return N||(N={}),wi(A,U,{_instance:A==="mutation"?i=i+1|0:void 0,...p,...N,requestPolicy:N.requestPolicy||p.requestPolicy,suspense:N.suspense||N.suspense!==!1&&E.suspense})},executeRequestOperation(A){return A.kind==="mutation"?Og(C(A)):Og(GT((()=>{var U=u.get(A.key);U||u.set(A.key,U=C(A)),U=vg((()=>{b(A)}))(U);var N=o.get(A.key);return A.kind==="query"&&N&&(N.stale||N.hasNext)?hg($f)(Vi([U,an((D=>D===o.get(A.key)))($f(N))])):U})))},executeQuery(A,U){var N=E.createRequestOperation("query",A,U);return E.executeRequestOperation(N)},executeSubscription(A,U){var N=E.createRequestOperation("subscription",A,U);return E.executeRequestOperation(N)},executeMutation(A,U){var N=E.createRequestOperation("mutation",A,U);return E.executeRequestOperation(N)},readQuery(A,U,N){var D=null;return br((I=>{D=I}))(E.query(A,U,N)).unsubscribe(),D},query:(A,U,N)=>E.executeQuery(zo(A,U),N),subscription:(A,U,N)=>E.executeSubscription(zo(A,U),N),mutation:(A,U,N)=>E.executeMutation(zo(A,U),N)}),_=d2,M=p2(l.exchanges),L=zi(M({client:E,dispatchDebug:_,forward:y2({dispatchDebug:_})})(v.source));return $T(L),E},b2={},os=Y.createContext(b2),S2=os.Provider;os.Consumer;os.displayName="UrqlContext";var E2=()=>{var n=Y.useContext(os);return n},O2={fetching:!1,stale:!1,hasNext:!1,error:void 0,data:void 0,extensions:void 0,operation:void 0},_2=(n,l)=>n===l||!(!n||!l||n.key!==l.key),Kf=(n,l)=>{var i={...n,...l,data:l.data!==void 0||l.error?l.data:n.data,fetching:!!l.fetching,stale:!!l.stale,error:l.fetching?n.error:l.error};return((o,u)=>{for(var f in o)if(!(f in u))return!0;for(var d in u)if(d==="operation"?!_2(o[d],u[d]):o[d]!==u[d])return!0;return!1})(n,i)?i:n},A2=(n,l)=>{for(var i=0,o=l.length;i<o;i++)if(n[i]!==l[i])return!0;return!1},Jf=!1;function Eo(n,l){if(!Jf||l===void 0)try{return Jf=!0,n(l)}finally{Jf=!1}else Promise.resolve(l).then(n)}function C2(n,l){var i=Y.useRef(void 0);return Y.useMemo((()=>{var o=zo(n,l);return i.current!==void 0&&i.current.key===o.key?i.current:(i.current=o,o)}),[n,l])}var T2=n=>{if(!n._react){var l=new Set,i=new Map;n.operations$&&br((o=>{o.kind==="teardown"&&l.has(o.key)&&(l.delete(o.key),i.delete(o.key))}))(n.operations$),n._react={get:o=>i.get(o),set(o,u){l.delete(o),i.set(o,u)},clear(o){l.delete(o),i.delete(o)},dispose(o){l.add(o)}}}return n._react},x2=(n,l)=>l&&l.suspense!==void 0?!!l.suspense:n.suspense;function Cd(n){var l=E2(),i=T2(l),o=x2(l,n.context),u=C2(n.query,n.variables),f=Y.useMemo((()=>{if(n.pause)return null;var C=l.executeQuery(u,{requestPolicy:n.requestPolicy,...n.context});return o?Xo((x=>{i.set(u.key,x)}))(C):C}),[i,l,u,o,n.pause,n.requestPolicy,n.context]),d=Y.useCallback(((C,x)=>{if(!C)return{fetching:!1};var E=i.get(u.key);if(E){if(x&&E!=null&&"then"in E)throw E}else{var _,M=br((U=>{E=U,_&&_(E)}))($0((()=>x&&!_||!E||"hasNext"in E&&E.hasNext))(C));if(E==null&&x){var L=new Promise((U=>{_=U}));throw i.set(u.key,L),L}else M.unsubscribe()}if(x&&E!=null&&!("then"in E)&&E.error){var A=E;queueMicrotask((()=>{i.get(u.key)===A&&i.clear(u.key)}))}return E||{fetching:!0}}),[i,u]),p=[l,u,n.requestPolicy,n.context,n.pause],[v,h]=Y.useState((()=>[f,Kf(O2,Eo((()=>d(f,o)))),p])),g=v[1];f!==v[0]&&A2(v[2],p)&&h([f,g=Kf(v[1],Eo((()=>d(f,o)))),p]),Y.useEffect((()=>{var C=v[0],x=v[2][1],E=!1,_=L=>{E=!0,Eo(h,(A=>{var U=Kf(A[1],L);return A[1]!==U?[A[0],U,A[2]]:A}))};if(C){var M=br(_)(Xd((()=>{_({fetching:!1})}))(C));return E||_({fetching:!0}),()=>{i.dispose(x.key),M.unsubscribe()}}else _({fetching:!1})}),[i,v[0],v[2][1]]);var b=Y.useCallback((C=>{var x={requestPolicy:n.requestPolicy,...n.context,...C};Eo(h,(E=>[o?Xo((_=>{i.set(u.key,_)}))(l.executeQuery(u,x)):l.executeQuery(u,x),E[1],p]))}),[l,i,u,o,n.requestPolicy,n.context,n.pause]);return[g,b]}var Oo={DOCUMENT:"Document",FRAGMENT_DEFINITION:"FragmentDefinition"};class M2 extends Error{constructor(l,i,o,u,f,d,p){super(l),this.name="GraphQLError",this.message=l,f&&(this.path=f),i&&(this.nodes=Array.isArray(i)?i:[i]),o&&(this.source=o),u&&(this.positions=u),d&&(this.originalError=d);var v=p;if(!v&&d){var h=d.extensions;h&&typeof h=="object"&&(v=h)}this.extensions=v||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}var he,W;function Qt(n){return new M2(`Syntax Error: Unexpected token at ${W} in ${n}`)}function Cg(n){if(n.lastIndex=W,n.test(he))return he.slice(W,W=n.lastIndex)}var _o=/ +(?=[^\s])/y;function D2(n){for(var l=n.split(`
|
|
39
|
-
`),i="",o=0,u=0,f=l.length-1,d=0;d<l.length;d++)_o.lastIndex=0,_o.test(l[d])&&(d&&(!o||_o.lastIndex<o)&&(o=_o.lastIndex),u=u||d,f=d);for(var p=u;p<=f;p++)p!==u&&(i+=`
|
|
40
|
-
`),i+=l[p].slice(o).replace(/\\"""/g,'"""');return i}function ke(){for(var n=0|he.charCodeAt(W++);n===9||n===10||n===13||n===32||n===35||n===44||n===65279;n=0|he.charCodeAt(W++))if(n===35)for(;(n=0|he.charCodeAt(W++))&&n!==10&&n!==13;);W--}function Kd(){for(var n=W,l=0|he.charCodeAt(W++);l>=48&&l<=57||l>=65&&l<=90||l===95||l>=97&&l<=122;l=0|he.charCodeAt(W++));if(n===W-1)throw Qt("Name");var i=he.slice(n,--W);return ke(),i}function nn(){return{kind:"Name",value:Kd()}}var R2=/(?:"""|(?:[\s\S]*?[^\\])""")/y,N2=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function Er(n){var l;switch(he.charCodeAt(W)){case 91:W++,ke();for(var i=[];he.charCodeAt(W)!==93;)i.push(Er(n));return W++,ke(),{kind:"ListValue",values:i};case 123:W++,ke();for(var o=[];he.charCodeAt(W)!==125;){var u=nn();if(he.charCodeAt(W++)!==58)throw Qt("ObjectField");ke(),o.push({kind:"ObjectField",name:u,value:Er(n)})}return W++,ke(),{kind:"ObjectValue",fields:o};case 36:if(n)throw Qt("Variable");return W++,{kind:"Variable",name:nn()};case 34:if(he.charCodeAt(W+1)===34&&he.charCodeAt(W+2)===34){if(W+=3,(l=Cg(R2))==null)throw Qt("StringValue");return ke(),{kind:"StringValue",value:D2(l.slice(0,-3)),block:!0}}else{var f=W,d;W++;var p=!1;for(d=0|he.charCodeAt(W++);d===92&&(W++,p=!0)||d!==10&&d!==13&&d!==34&&d;d=0|he.charCodeAt(W++));if(d!==34)throw Qt("StringValue");return l=he.slice(f,W),ke(),{kind:"StringValue",value:p?JSON.parse(l):l.slice(1,-1),block:!1}}case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var v=W++,h;(h=0|he.charCodeAt(W++))>=48&&h<=57;);var g=he.slice(v,--W);if((h=he.charCodeAt(W))===46||h===69||h===101){if((l=Cg(N2))==null)throw Qt("FloatValue");return ke(),{kind:"FloatValue",value:g+l}}else return ke(),{kind:"IntValue",value:g};case 110:if(he.charCodeAt(W+1)===117&&he.charCodeAt(W+2)===108&&he.charCodeAt(W+3)===108)return W+=4,ke(),{kind:"NullValue"};break;case 116:if(he.charCodeAt(W+1)===114&&he.charCodeAt(W+2)===117&&he.charCodeAt(W+3)===101)return W+=4,ke(),{kind:"BooleanValue",value:!0};break;case 102:if(he.charCodeAt(W+1)===97&&he.charCodeAt(W+2)===108&&he.charCodeAt(W+3)===115&&he.charCodeAt(W+4)===101)return W+=5,ke(),{kind:"BooleanValue",value:!1};break}return{kind:"EnumValue",value:Kd()}}function P0(n){if(he.charCodeAt(W)===40){var l=[];W++,ke();do{var i=nn();if(he.charCodeAt(W++)!==58)throw Qt("Argument");ke(),l.push({kind:"Argument",name:i,value:Er(n)})}while(he.charCodeAt(W)!==41);return W++,ke(),l}}function $a(n){if(he.charCodeAt(W)===64){var l=[];do W++,l.push({kind:"Directive",name:nn(),arguments:P0(n)});while(he.charCodeAt(W)===64);return l}}function V2(){for(var n=0;he.charCodeAt(W)===91;)n++,W++,ke();var l={kind:"NamedType",name:nn()};do if(he.charCodeAt(W)===33&&(W++,ke(),l={kind:"NonNullType",type:l}),n){if(he.charCodeAt(W++)!==93)throw Qt("NamedType");ke(),l={kind:"ListType",type:l}}while(n--);return l}function Po(){if(he.charCodeAt(W++)!==123)throw Qt("SelectionSet");return ke(),Wo()}function Wo(){var n=[];do if(he.charCodeAt(W)===46){if(he.charCodeAt(++W)!==46||he.charCodeAt(++W)!==46)throw Qt("SelectionSet");switch(W++,ke(),he.charCodeAt(W)){case 64:n.push({kind:"InlineFragment",typeCondition:void 0,directives:$a(!1),selectionSet:Po()});break;case 111:he.charCodeAt(W+1)===110?(W+=2,ke(),n.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:nn()},directives:$a(!1),selectionSet:Po()})):n.push({kind:"FragmentSpread",name:nn(),directives:$a(!1)});break;case 123:W++,ke(),n.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:Wo()});break;default:n.push({kind:"FragmentSpread",name:nn(),directives:$a(!1)})}}else{var l=nn(),i=void 0;he.charCodeAt(W)===58&&(W++,ke(),i=l,l=nn());var o=P0(!1),u=$a(!1),f=void 0;he.charCodeAt(W)===123&&(W++,ke(),f=Wo()),n.push({kind:"Field",alias:i,name:l,arguments:o,directives:u,selectionSet:f})}while(he.charCodeAt(W)!==125);return W++,ke(),{kind:"SelectionSet",selections:n}}function z2(){if(ke(),he.charCodeAt(W)===40){var n=[];W++,ke();do{var l=void 0;if(he.charCodeAt(W)===34&&(l=Er(!0)),he.charCodeAt(W++)!==36)throw Qt("Variable");var i=nn();if(he.charCodeAt(W++)!==58)throw Qt("VariableDefinition");ke();var o=V2(),u=void 0;he.charCodeAt(W)===61&&(W++,ke(),u=Er(!0)),ke();var f={kind:"VariableDefinition",variable:{kind:"Variable",name:i},type:o,defaultValue:u,directives:$a(!0)};l&&(f.description=l),n.push(f)}while(he.charCodeAt(W)!==41);return W++,ke(),n}}function w2(n){var l=nn();if(he.charCodeAt(W++)!==111||he.charCodeAt(W++)!==110)throw Qt("FragmentDefinition");ke();var i={kind:"FragmentDefinition",name:l,typeCondition:{kind:"NamedType",name:nn()},directives:$a(!1),selectionSet:Po()};return n&&(i.description=n),i}function L2(){var n=[];do{var l=void 0;if(he.charCodeAt(W)===34&&(l=Er(!0)),he.charCodeAt(W)===123){if(l)throw Qt("Document");W++,ke(),n.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:Wo()})}else{var i=Kd();switch(i){case"fragment":n.push(w2(l));break;case"query":case"mutation":case"subscription":var o,u=void 0;(o=he.charCodeAt(W))!==40&&o!==64&&o!==123&&(u=nn());var f={kind:"OperationDefinition",operation:i,name:u,variableDefinitions:z2(),directives:$a(!1),selectionSet:Po()};l&&(f.description=l),n.push(f);break;default:throw Qt("Document")}}}while(W<he.length);return n}function U2(n,l){if(he=n.body?n.body:n,W=0,ke(),!l)return{kind:"Document",definitions:L2(),loc:{start:0,end:he.length,startToken:void 0,endToken:void 0,source:{body:he,name:"graphql.web",locationOffset:{line:1,column:1}}}}}var Tg=0,Pf=new Set;function H2(){function n(l,i){var o=U2(l).definitions,u=new Set;for(var f of i||[])for(var d of f.definitions)d.kind===Oo.FRAGMENT_DEFINITION&&!u.has(d)&&(o.push(d),u.add(d));var p;(p=o[0].kind===Oo.FRAGMENT_DEFINITION)&&o[0].directives&&(o[0].directives=o[0].directives.filter((h=>h.name.value!=="_unmask")));var v;return{kind:Oo.DOCUMENT,definitions:o,get loc(){if(!v&&p){var h=l+(function(b){try{Tg++;var C="";for(var x of b)if(!Pf.has(x)){Pf.add(x);var{loc:E}=x;E&&(C+=E.source.body)}return C}finally{--Tg==0&&Pf.clear()}})(i||[]);return{start:0,end:h.length,source:{body:h,name:"GraphQLTada",locationOffset:{line:1,column:1}}}}return v},set loc(h){v=h}}}return n.scalar=function(i,o){return o},n.persisted=function(i,o){return{kind:Oo.DOCUMENT,definitions:o?o.definitions:[],documentId:i}},n}var ss=H2();const q2=ss(`
|
|
41
|
-
fragment LibraryAsset on Image @_unmask {
|
|
42
|
-
id
|
|
43
|
-
title
|
|
44
|
-
description
|
|
45
|
-
filename
|
|
46
|
-
previewThumb: previewUrl(width: 300, height: 300)
|
|
47
|
-
previewMaster: previewUrl(width: 2560)
|
|
48
|
-
author
|
|
49
|
-
alternativeText
|
|
50
|
-
externalId
|
|
51
|
-
expiresAt
|
|
52
|
-
focalPoint
|
|
53
|
-
tags {
|
|
54
|
-
value
|
|
55
|
-
}
|
|
56
|
-
copyright {
|
|
57
|
-
status
|
|
58
|
-
notice
|
|
59
|
-
}
|
|
60
|
-
licenses {
|
|
61
|
-
title
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
`),j2=ss(`
|
|
65
|
-
query LibraryAssets(
|
|
66
|
-
$id: ID!
|
|
67
|
-
$limit: Int
|
|
68
|
-
$page: Int
|
|
69
|
-
$search: String
|
|
70
|
-
$sortBy: AssetQueryFilterSortType
|
|
71
|
-
) {
|
|
72
|
-
library(id: $id) {
|
|
73
|
-
assets(
|
|
74
|
-
limit: $limit
|
|
75
|
-
page: $page
|
|
76
|
-
query: { search: $search, sortBy: $sortBy, types: [IMAGE] }
|
|
77
|
-
) {
|
|
78
|
-
hasNextPage
|
|
79
|
-
page
|
|
80
|
-
total
|
|
81
|
-
items {
|
|
82
|
-
__typename
|
|
83
|
-
... on Image {
|
|
84
|
-
...LibraryAsset
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
`,[q2]);function B2({libraryId:n,variables:l,searchTerm:i,sortBy:o,selectedIds:u,onToggle:f,onLoadMore:d,onFetchingChange:p,isLastPage:v}){const[{data:h,fetching:g}]=Cd({query:j2,pause:!n,requestPolicy:"cache-and-network",variables:{id:n,limit:16,page:l.page,search:i,sortBy:o}});Y.useEffect(()=>{if(v)return p(g),()=>{p(!1)}},[g,v,p]);const b=h?.library?.assets,C=b?.items;if(!C?.length&&!g)return Oe.jsxs("p",{children:["No assets found",i?` for "${i}"`:"","."]});const x=(C??[]).flatMap(E=>E?.__typename==="Image"?[E]:[]);return Oe.jsxs(Oe.Fragment,{children:[Oe.jsx("div",{className:"xrvj5dj x1sipb5g x1665zp3",children:x.map(E=>{const _=u.has(E.id),M=typeof E.previewThumb=="string"?E.previewThumb:void 0;return Oe.jsxs("div",{onClick:()=>f(E),...{0:{className:"x1n2onr6 x1ypdohk x1v57pqu xb5mbof x1lo6u58 x12oqio5 x1myaj46"},1:{className:"x1n2onr6 x1ypdohk x1v57pqu xb5mbof x1lo6u58 x12oqio5 xymlfet"}}[!!_<<0],children:[_?Oe.jsx("div",{"aria-hidden":"true",className:"x10l6tqk x1atx4j1 xclnmbr x17z2i9w x17rw0jw x16rqkct x1i9drt xfungia x78zum5 x6s0dn4 xl56j7k xif65rj xo5v014 x1vjfegm",children:"✓"}):null,Oe.jsx("div",{className:"x1f65feb x19991ni x1d8287x xcj1dhv x10l6tqk x13vifvy x1ey2m1c xu96u03 x3m8u43 xc7ga6q x1awj2ng xcpsgoo xg01cxk x1o7uuvo",children:Oe.jsx("div",{className:"x10l6tqk x1ey2m1c xu96u03 x3m8u43 xc7ga6q",children:E.title})}),Oe.jsx("img",{className:"x1y5e3q9 x5yr21d xh8yej3 xl1xv1r x14ju556",src:M,alt:E.alternativeText??void 0})]},E.id)})}),v&&b?.hasNextPage?Oe.jsx(Ol,{buttonType:"muted",fullWidth:!0,onClick:()=>d({page:l.page+1}),children:"Load more..."}):null]})}function k2(n){if(Array.isArray(n)&&n.length>=2){const[l,i]=n;if(typeof l=="number"&&typeof i=="number"&&l>=0&&l<=1&&i>=0&&i<=1)return{x:l,y:i}}}function F2(n,l){const i=!!n.isDecorative,o=i?"":n.alternativeText||n.description||null,u=n.title||null,f={frontify_asset_id:n.id};n.externalId&&(f.frontify_external_id=n.externalId),n.copyright?.status&&(f.frontify_copyright_status=n.copyright.status),i&&(f.frontify_is_decorative=!0),n.expiresAt&&(f.frontify_expires_at=n.expiresAt);const d=(n.licenses??[]).map(g=>g?.title).filter(Boolean);d.length>0&&(f.frontify_licenses=d);const p=k2(n.focalPoint),v={alt:o,title:u,custom_data:f,...p?{focal_point:p}:{}},h={};for(const g of l)h[g]=v;return h}function G2(n,l,i){return{resource:{url:X2(n.previewMaster,l),filename:Q2(n.filename,n.id,l.format)},author:n.author??void 0,notes:n.description??void 0,tags:(n.tags??[]).map(o=>o.value),copyright:n.copyright?.notice??void 0,default_field_metadata:F2(n,i)}}function Y2(n,l){const i=n;if(l.length>1&&typeof i.selectMultiple=="function"){i.selectMultiple(l);return}for(const o of l)n.select(o)}function Q2(n,l,i){return`${(n??l).replace(/\.[a-z0-9]{2,4}$/i,"")}.${I2(i)}`}function I2(n){return n==="jpeg"?"jpg":"webp"}function X2(n,l){try{const i=new URL(n);return l.maxWidth>0?i.searchParams.set("width",String(l.maxWidth)):i.searchParams.delete("width"),i.searchParams.delete("height"),i.searchParams.set("format",l.format),i.searchParams.set("quality",String(l.quality)),i.toString()}catch{return n}}const xg=[{label:"Relevance",value:"RELEVANCE"},{label:"Newest first",value:"NEWEST"},{label:"Oldest first",value:"OLDEST"},{label:"Title A-Z",value:"TITLE_ASCENDING"},{label:"Title Z-A",value:"TITLE_DESCENDING"}];function $2(n,l=300){const[i,o]=Y.useState(n);return Y.useEffect(()=>{const u=setTimeout(()=>o(n),l);return()=>clearTimeout(u)},[n,l]),i}const Z2=ss(`
|
|
91
|
-
query {
|
|
92
|
-
brands {
|
|
93
|
-
id
|
|
94
|
-
name
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
`),K2=ss(`
|
|
98
|
-
query BrandLibraries($id: ID!) {
|
|
99
|
-
brand(id: $id) {
|
|
100
|
-
id
|
|
101
|
-
libraries(limit: 10, page: 1) {
|
|
102
|
-
total
|
|
103
|
-
items {
|
|
104
|
-
id
|
|
105
|
-
name
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
`);function J2({ctx:n}){const[l,i]=Y.useState(""),o=$2(l,500),[u,f]=Y.useState(null),[d,p]=Y.useState("NEWEST"),[v,h]=Y.useState(()=>new Map),[g,b]=Y.useState(()=>[{page:1}]),[C,x]=Y.useState(!1),[{data:E,error:_,fetching:M}]=Cd({query:Z2}),L=E?.brands,A=Y.useMemo(()=>L?.filter(ee=>ee!=null).map(ee=>({label:ee.name,value:ee.id}))??[],[L]),[U,N]=Y.useState(null),D=A.some(ee=>ee.value===U)?U:A[0]?.value??null,[{data:I,error:Q,fetching:ae}]=Cd({query:K2,pause:!D,requestPolicy:"cache-and-network",variables:{id:D??""}}),pe=_||Q,De=Y.useMemo(()=>I?.brand?.id!==D?[]:I?.brand?.libraries?.items??[],[I,D]),Ne=Y.useMemo(()=>De.filter(ee=>ee!=null).map(ee=>({label:ee.name,value:ee.id})),[De]),ie=Ne.some(ee=>ee.value===u)?u:Ne[0]?.value??null,ue=M||ae||C;Y.useEffect(()=>{b([{page:1}])},[o]),Y.useEffect(()=>{pe&&n.alert(pe.message)},[pe,n]);const ge=()=>b([{page:1}]),Ae=()=>h(new Map),q=Y.useCallback(ee=>{h(Me=>{const T=new Map(Me);return T.has(ee.id)?T.delete(ee.id):T.set(ee.id,ee),T})},[]),K=new Set(v.keys()),fe=()=>{const ee=Array.from(v.values());if(ee.length===0)return;const{importSettings:Me}=Qd(n.plugin.attributes.parameters),T=ee.map(F=>G2(F,Me,n.site.attributes.locales));Y2(n,T),n.notice(`Imported ${T.length} asset${T.length>1?"s":""}.`),h(new Map)};return Oe.jsxs(Ng,{ctx:n,children:[L&&L.length>1?Oe.jsx("div",{className:"x1e56ztr",children:Oe.jsx(Mo,{options:A,value:A.find(ee=>ee.value===D)??null,onChange:ee=>{ee&&(f(null),N(ee.value),Ae(),ge())}})}):null,De.length>1?Oe.jsx("div",{className:"x1e56ztr",children:Oe.jsx(Mo,{options:Ne,value:Ne.find(ee=>ee.value===ie)??null,onChange:ee=>{ee&&(f(ee.value),Ae(),ge())}})}):null,Oe.jsx("div",{className:"x78zum5 x167g77z",children:Oe.jsx(O0,{name:"searchTerm",type:"search",placeholder:"Search assets",value:l,onChange:ee=>i(ee)})}),Oe.jsxs("div",{className:"x78zum5 x6s0dn4 x167g77z x1xmf6yo",children:[Oe.jsx("label",{htmlFor:"frontify-sort",children:"Sort by"}),Oe.jsx(Mo,{name:"frontify-sort",id:"frontify-sort",value:xg.find(ee=>ee.value===d),options:xg,onChange:ee=>{ee&&(p(ee.value),ge())}})]}),v.size>0?Oe.jsxs("div",{className:"x78zum5 x6s0dn4 x1qughib x167g77z x1y1aw1k xsag5q8 xso031l x1q0q8m5 x12zbm3o",children:[Oe.jsxs("span",{children:[v.size," selected"]}),Oe.jsxs("div",{className:"x78zum5 x167g77z",children:[Oe.jsx(Ol,{buttonSize:"s",onClick:()=>h(new Map),children:"Clear"}),Oe.jsx(Ol,{buttonSize:"s",buttonType:"primary",onClick:fe,children:"Upload selected"})]})]}):null,Oe.jsxs("div",{className:"x1n2onr6 xz65tgg xqui205",children:[ue?Oe.jsx("div",{className:"x14g40p9 x5yr21d x10l6tqk xh8yej3",children:Oe.jsx(SC,{size:48,placement:"centered"})}):null,Oe.jsx("div",{className:"x78zum5 xdt5ytf x1665zp3",children:ie?g.map((ee,Me)=>Oe.jsx(B2,{variables:ee,libraryId:ie,searchTerm:o,sortBy:d,selectedIds:K,onToggle:q,onLoadMore:T=>b(F=>[...F,T]),onFetchingChange:x,isLastPage:Me===g.length-1},`${D??"brand"}-${ie}-${ee.page}`)):null})]})]})}BS({renderConfigScreen(n){return py(Oe.jsx(RT,{ctx:n}))},assetSources(){return[{id:"frontify",name:"Frontify",icon:{type:"svg",viewBox:"0 0 53 50",content:'<path fill="currentColor" d="M51.0248 33.1169L45.264 29.8701C44.7702 29.5455 44.441 29.0584 44.441 28.4091V21.9156C44.441 20.6169 43.7826 19.3182 42.4658 18.6688L36.705 15.4221C36.3758 15.2597 36.0466 14.6104 36.0466 14.1234V7.62987C36.0466 6.33117 35.3882 5.03247 34.0714 4.38312L26.6646 0L19.0932 4.38312C17.941 5.03247 17.118 6.33117 17.118 7.62987V14.1234C17.118 14.7727 16.7888 15.2597 16.295 15.5844L10.5342 18.8312C9.38199 19.4805 8.55901 20.7792 8.55901 22.0779V28.5714C8.55901 29.2208 8.22981 29.7078 7.73602 30.0325L1.97516 33.2792C0.822982 33.9286 0 35.2273 0 36.526V45.1299L7.57143 49.513C8.7236 50.1623 10.205 50.1623 11.3571 49.513L17.118 46.2662C17.6118 45.9416 18.2702 45.9416 18.764 46.2662L24.5248 49.513C25.1832 49.8377 25.8416 50 26.5 50C27.1584 50 27.8168 49.8377 28.4752 49.513L34.236 46.2662C34.7298 45.9416 35.3882 45.9416 35.882 46.2662L41.6429 49.513C42.795 50.1623 44.2764 50.1623 45.4286 49.513L53 45.1299V36.526C53 35.0649 52.3416 33.9286 51.0248 33.1169ZM33.9068 7.62987V14.1234C33.9068 15.4221 34.5652 16.7208 35.882 17.3701L41.6429 20.6169C42.1367 20.9416 42.4658 21.4286 42.4658 22.0779V28.5714C42.4658 29.8701 43.1242 31.1688 44.441 31.8182L50.2019 35.0649C50.6957 35.3896 51.0248 35.8766 51.0248 36.526V42.6948L27.8168 29.5455V3.24675L33.0839 6.16883C33.5776 6.49351 33.9068 6.98052 33.9068 7.62987ZM3.12733 35.0649L8.8882 31.8182C10.0404 31.1688 10.8634 29.8701 10.8634 28.5714V22.0779C10.8634 21.4286 11.1925 20.9416 11.6863 20.6169L17.4472 17.3701C18.5994 16.7208 19.4224 15.4221 19.4224 14.1234V7.62987C19.4224 6.98052 19.7516 6.49351 20.2453 6.16883L25.677 3.08442V29.3831L2.30435 42.6948V36.526C2.30435 35.8766 2.63354 35.3896 3.12733 35.0649ZM44.2764 47.5649C43.7826 47.8896 43.1242 47.8896 42.6304 47.5649L36.8696 44.3182C35.7174 43.6688 34.236 43.6688 33.0839 44.3182L27.323 47.5649C26.8292 47.8896 26.1708 47.8896 25.677 47.5649L19.9162 44.3182C18.764 43.6688 17.2826 43.6688 16.1304 44.3182L10.3696 47.5649C9.87578 47.8896 9.21739 47.8896 8.7236 47.5649L3.45652 44.4805L26.6646 31.3312L49.8727 44.4805L44.2764 47.5649Z"></path>'},modal:{width:"xl"}}]},renderAssetSource(n,l){const i=Qd(l.plugin.attributes.parameters),o=CT(i.token);if(!o)return l.alert("Please check your plugin settings!"),null;const u=new g2({url:`https://${o.domain}/graphql`,exchanges:[h2,m2],preferGetMethod:!1,fetchOptions:()=>({headers:{"X-Frontify-Beta":"enabled",Authorization:`Bearer ${o.accessToken}`}})});py(Oe.jsx(S2,{value:u,children:Oe.jsx(J2,{ctx:l})}))}});
|