@olenbetong/synergi-react 2.3.4 → 2.3.6
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/es/components/DateNavigator/index.js +1 -5
- package/es/components/SplitContainer/index.js +1 -3
- package/es/components/ValueToggleGroup/index.js +1 -3
- package/es/elements/ElementDamage/DuplicateDamage/DesktopView.js +6 -1
- package/es/elements/ElementDamage/DuplicateDamage/PhoneView.js +1 -1
- package/es/elements/ElementDamage/RegisterFix.js +1 -1
- package/es/elements/ElementLookupDialog/BarcodeScanner/index.js +1 -1
- package/es/elements/ElementLookupDialog/HIDScanner/index.js +7 -2
- package/es/elements/ElementLookupDialog/index.js +1 -1
- package/es/elements/ProjectSelect.js +3 -1
- package/package.json +4 -4
- package/src/elements/ElementDamage/DuplicateDamage/DesktopView.tsx +7 -5
- package/src/elements/ElementDamage/DuplicateDamage/PhoneView.tsx +4 -4
- package/src/elements/ElementDamage/RegisterFix.tsx +1 -1
- package/src/elements/ElementLookupDialog/BarcodeScanner/index.tsx +1 -1
- package/src/elements/ElementLookupDialog/HIDScanner/index.tsx +7 -7
- package/src/elements/ElementLookupDialog/HIDScanner/useHIDScanner.ts +1 -1
- package/src/elements/ElementLookupDialog/index.tsx +5 -5
- package/src/elements/ProjectSelect.tsx +3 -1
- package/src/global.d.ts +3 -0
- package/dist/esm/ob.react.css +0 -1956
- package/dist/esm/ob.react.js +0 -47897
- package/dist/esm/ob.react.min.css +0 -25
- package/dist/esm/ob.react.min.css.map +0 -7
- package/dist/esm/ob.react.min.js +0 -264
- package/dist/esm/ob.react.min.js.map +0 -7
- package/dist/iife/ob.react.css +0 -1956
- package/dist/iife/ob.react.js +0 -47909
- package/dist/iife/ob.react.min.css +0 -25
- package/dist/iife/ob.react.min.css.map +0 -7
- package/dist/iife/ob.react.min.js +0 -264
- package/dist/iife/ob.react.min.js.map +0 -7
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
var ob;(ob||={}).react=(()=>{var xS=Object.create;var Eu=Object.defineProperty;var PS=Object.getOwnPropertyDescriptor;var ES=Object.getOwnPropertyNames;var wS=Object.getPrototypeOf,IS=Object.prototype.hasOwnProperty;var xe=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Tn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),RS=(e,t)=>{for(var r in t)Eu(e,r,{get:t[r],enumerable:!0})},$h=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ES(t))!IS.call(e,a)&&a!==r&&Eu(e,a,{get:()=>t[a],enumerable:!(i=PS(t,a))||i.enumerable});return e};var me=(e,t,r)=>(r=e!=null?xS(wS(e)):{},$h(t||!e||!e.__esModule?Eu(r,"default",{value:e,enumerable:!0}):r,e)),SS=e=>$h(Eu({},"__esModule",{value:!0}),e);var Ee=Tn((VL,Yh)=>{Yh.exports=React});var xn=Tn((e2,rv)=>{rv.exports=af.common});var Iu=Tn((m2,mv)=>{mv.exports=ReactDOM});var wv=Tn((Ev,vm)=>{(function(e){if(typeof Ev=="object"&&typeof vm<"u")vm.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t=this,t.localforage=e()}})(function(){var e,t,r;return(function i(a,l,p){function u(v,I){if(!l[v]){if(!a[v]){var P=typeof xe=="function"&&xe;if(!I&&P)return P(v,!0);if(m)return m(v,!0);var w=new Error("Cannot find module '"+v+"'");throw w.code="MODULE_NOT_FOUND",w}var R=l[v]={exports:{}};a[v][0].call(R.exports,function(G){var N=a[v][1][G];return u(N||G)},R,R.exports,i,a,l,p)}return l[v].exports}for(var m=typeof xe=="function"&&xe,h=0;h<p.length;h++)u(p[h]);return u})({1:[function(i,a,l){(function(p){"use strict";var u=p.MutationObserver||p.WebKitMutationObserver,m;if(u){var h=0,v=new u(G),I=p.document.createTextNode("");v.observe(I,{characterData:!0}),m=function(){I.data=h=++h%2}}else if(!p.setImmediate&&typeof p.MessageChannel<"u"){var P=new p.MessageChannel;P.port1.onmessage=G,m=function(){P.port2.postMessage(0)}}else"document"in p&&"onreadystatechange"in p.document.createElement("script")?m=function(){var U=p.document.createElement("script");U.onreadystatechange=function(){G(),U.onreadystatechange=null,U.parentNode.removeChild(U),U=null},p.document.documentElement.appendChild(U)}:m=function(){setTimeout(G,0)};var w,R=[];function G(){w=!0;for(var U,Y,L=R.length;L;){for(Y=R,R=[],U=-1;++U<L;)Y[U]();L=R.length}w=!1}a.exports=N;function N(U){R.push(U)===1&&!w&&m()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(i,a,l){"use strict";var p=i(1);function u(){}var m={},h=["REJECTED"],v=["FULFILLED"],I=["PENDING"];a.exports=P;function P(D){if(typeof D!="function")throw new TypeError("resolver must be a function");this.state=I,this.queue=[],this.outcome=void 0,D!==u&&N(this,D)}P.prototype.catch=function(D){return this.then(null,D)},P.prototype.then=function(D,Z){if(typeof D!="function"&&this.state===v||typeof Z!="function"&&this.state===h)return this;var ne=new this.constructor(u);if(this.state!==I){var le=this.state===v?D:Z;R(ne,le,this.outcome)}else this.queue.push(new w(ne,D,Z));return ne};function w(D,Z,ne){this.promise=D,typeof Z=="function"&&(this.onFulfilled=Z,this.callFulfilled=this.otherCallFulfilled),typeof ne=="function"&&(this.onRejected=ne,this.callRejected=this.otherCallRejected)}w.prototype.callFulfilled=function(D){m.resolve(this.promise,D)},w.prototype.otherCallFulfilled=function(D){R(this.promise,this.onFulfilled,D)},w.prototype.callRejected=function(D){m.reject(this.promise,D)},w.prototype.otherCallRejected=function(D){R(this.promise,this.onRejected,D)};function R(D,Z,ne){p(function(){var le;try{le=Z(ne)}catch(de){return m.reject(D,de)}le===D?m.reject(D,new TypeError("Cannot resolve promise with itself")):m.resolve(D,le)})}m.resolve=function(D,Z){var ne=U(G,Z);if(ne.status==="error")return m.reject(D,ne.value);var le=ne.value;if(le)N(D,le);else{D.state=v,D.outcome=Z;for(var de=-1,ye=D.queue.length;++de<ye;)D.queue[de].callFulfilled(Z)}return D},m.reject=function(D,Z){D.state=h,D.outcome=Z;for(var ne=-1,le=D.queue.length;++ne<le;)D.queue[ne].callRejected(Z);return D};function G(D){var Z=D&&D.then;if(D&&(typeof D=="object"||typeof D=="function")&&typeof Z=="function")return function(){Z.apply(D,arguments)}}function N(D,Z){var ne=!1;function le(q){ne||(ne=!0,m.reject(D,q))}function de(q){ne||(ne=!0,m.resolve(D,q))}function ye(){Z(de,le)}var E=U(ye);E.status==="error"&&le(E.value)}function U(D,Z){var ne={};try{ne.value=D(Z),ne.status="success"}catch(le){ne.status="error",ne.value=le}return ne}P.resolve=Y;function Y(D){return D instanceof this?D:m.resolve(new this(u),D)}P.reject=L;function L(D){var Z=new this(u);return m.reject(Z,D)}P.all=k;function k(D){var Z=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ne=D.length,le=!1;if(!ne)return this.resolve([]);for(var de=new Array(ne),ye=0,E=-1,q=new this(u);++E<ne;)re(D[E],E);return q;function re(oe,ce){Z.resolve(oe).then(Me,function(He){le||(le=!0,m.reject(q,He))});function Me(He){de[ce]=He,++ye===ne&&!le&&(le=!0,m.resolve(q,de))}}}P.race=j;function j(D){var Z=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ne=D.length,le=!1;if(!ne)return this.resolve([]);for(var de=-1,ye=new this(u);++de<ne;)E(D[de]);return ye;function E(q){Z.resolve(q).then(function(re){le||(le=!0,m.resolve(ye,re))},function(re){le||(le=!0,m.reject(ye,re))})}}},{1:1}],3:[function(i,a,l){(function(p){"use strict";typeof p.Promise!="function"&&(p.Promise=i(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(i,a,l){"use strict";var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M};function u(M,K){if(!(M instanceof K))throw new TypeError("Cannot call a class as a function")}function m(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var h=m();function v(){try{if(!h||!h.open)return!1;var M=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),K=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!M||K)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function I(M,K){M=M||[],K=K||{};try{return new Blob(M,K)}catch(ie){if(ie.name!=="TypeError")throw ie;for(var H=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,ae=new H,ue=0;ue<M.length;ue+=1)ae.append(M[ue]);return ae.getBlob(K.type)}}typeof Promise>"u"&&i(3);var P=Promise;function w(M,K){K&&M.then(function(H){K(null,H)},function(H){K(H)})}function R(M,K,H){typeof K=="function"&&M.then(K),typeof H=="function"&&M.catch(H)}function G(M){return typeof M!="string"&&(console.warn(M+" used as a key, but it is not a string."),M=String(M)),M}function N(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var U="local-forage-detect-blob-support",Y=void 0,L={},k=Object.prototype.toString,j="readonly",D="readwrite";function Z(M){for(var K=M.length,H=new ArrayBuffer(K),ae=new Uint8Array(H),ue=0;ue<K;ue++)ae[ue]=M.charCodeAt(ue);return H}function ne(M){return new P(function(K){var H=M.transaction(U,D),ae=I([""]);H.objectStore(U).put(ae,"key"),H.onabort=function(ue){ue.preventDefault(),ue.stopPropagation(),K(!1)},H.oncomplete=function(){var ue=navigator.userAgent.match(/Chrome\/(\d+)/),ie=navigator.userAgent.match(/Edge\//);K(ie||!ue||parseInt(ue[1],10)>=43)}}).catch(function(){return!1})}function le(M){return typeof Y=="boolean"?P.resolve(Y):ne(M).then(function(K){return Y=K,Y})}function de(M){var K=L[M.name],H={};H.promise=new P(function(ae,ue){H.resolve=ae,H.reject=ue}),K.deferredOperations.push(H),K.dbReady?K.dbReady=K.dbReady.then(function(){return H.promise}):K.dbReady=H.promise}function ye(M){var K=L[M.name],H=K.deferredOperations.pop();if(H)return H.resolve(),H.promise}function E(M,K){var H=L[M.name],ae=H.deferredOperations.pop();if(ae)return ae.reject(K),ae.promise}function q(M,K){return new P(function(H,ae){if(L[M.name]=L[M.name]||ft(),M.db)if(K)de(M),M.db.close();else return H(M.db);var ue=[M.name];K&&ue.push(M.version);var ie=h.open.apply(h,ue);K&&(ie.onupgradeneeded=function(De){var Be=ie.result;try{Be.createObjectStore(M.storeName),De.oldVersion<=1&&Be.createObjectStore(U)}catch(We){if(We.name==="ConstraintError")console.warn('The database "'+M.name+'" has been upgraded from version '+De.oldVersion+" to version "+De.newVersion+', but the storage "'+M.storeName+'" already exists.');else throw We}}),ie.onerror=function(De){De.preventDefault(),ae(ie.error)},ie.onsuccess=function(){var De=ie.result;De.onversionchange=function(Be){Be.target.close()},H(De),ye(M)}})}function re(M){return q(M,!1)}function oe(M){return q(M,!0)}function ce(M,K){if(!M.db)return!0;var H=!M.db.objectStoreNames.contains(M.storeName),ae=M.version<M.db.version,ue=M.version>M.db.version;if(ae&&(M.version!==K&&console.warn('The database "'+M.name+`" can't be downgraded from version `+M.db.version+" to version "+M.version+"."),M.version=M.db.version),ue||H){if(H){var ie=M.db.version+1;ie>M.version&&(M.version=ie)}return!0}return!1}function Me(M){return new P(function(K,H){var ae=new FileReader;ae.onerror=H,ae.onloadend=function(ue){var ie=btoa(ue.target.result||"");K({__local_forage_encoded_blob:!0,data:ie,type:M.type})},ae.readAsBinaryString(M)})}function He(M){var K=Z(atob(M.data));return I([K],{type:M.type})}function Ie(M){return M&&M.__local_forage_encoded_blob}function yt(M){var K=this,H=K._initReady().then(function(){var ae=L[K._dbInfo.name];if(ae&&ae.dbReady)return ae.dbReady});return R(H,M,M),H}function ct(M){de(M);for(var K=L[M.name],H=K.forages,ae=0;ae<H.length;ae++){var ue=H[ae];ue._dbInfo.db&&(ue._dbInfo.db.close(),ue._dbInfo.db=null)}return M.db=null,re(M).then(function(ie){return M.db=ie,ce(M)?oe(M):ie}).then(function(ie){M.db=K.db=ie;for(var De=0;De<H.length;De++)H[De]._dbInfo.db=ie}).catch(function(ie){throw E(M,ie),ie})}function ut(M,K,H,ae){ae===void 0&&(ae=1);try{var ue=M.db.transaction(M.storeName,K);H(null,ue)}catch(ie){if(ae>0&&(!M.db||ie.name==="InvalidStateError"||ie.name==="NotFoundError"))return P.resolve().then(function(){if(!M.db||ie.name==="NotFoundError"&&!M.db.objectStoreNames.contains(M.storeName)&&M.version<=M.db.version)return M.db&&(M.version=M.db.version+1),oe(M)}).then(function(){return ct(M).then(function(){ut(M,K,H,ae-1)})}).catch(H);H(ie)}}function ft(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function at(M){var K=this,H={db:null};if(M)for(var ae in M)H[ae]=M[ae];var ue=L[H.name];ue||(ue=ft(),L[H.name]=ue),ue.forages.push(K),K._initReady||(K._initReady=K.ready,K.ready=yt);var ie=[];function De(){return P.resolve()}for(var Be=0;Be<ue.forages.length;Be++){var We=ue.forages[Be];We!==K&&ie.push(We._initReady().catch(De))}var Fe=ue.forages.slice(0);return P.all(ie).then(function(){return H.db=ue.db,re(H)}).then(function(Qe){return H.db=Qe,ce(H,K._defaultConfig.version)?oe(H):Qe}).then(function(Qe){H.db=ue.db=Qe,K._dbInfo=H;for(var Et=0;Et<Fe.length;Et++){var er=Fe[Et];er!==K&&(er._dbInfo.db=H.db,er._dbInfo.version=H.version)}})}function tt(M,K){var H=this;M=G(M);var ae=new P(function(ue,ie){H.ready().then(function(){ut(H._dbInfo,j,function(De,Be){if(De)return ie(De);try{var We=Be.objectStore(H._dbInfo.storeName),Fe=We.get(M);Fe.onsuccess=function(){var Qe=Fe.result;Qe===void 0&&(Qe=null),Ie(Qe)&&(Qe=He(Qe)),ue(Qe)},Fe.onerror=function(){ie(Fe.error)}}catch(Qe){ie(Qe)}})}).catch(ie)});return w(ae,K),ae}function ke(M,K){var H=this,ae=new P(function(ue,ie){H.ready().then(function(){ut(H._dbInfo,j,function(De,Be){if(De)return ie(De);try{var We=Be.objectStore(H._dbInfo.storeName),Fe=We.openCursor(),Qe=1;Fe.onsuccess=function(){var Et=Fe.result;if(Et){var er=Et.value;Ie(er)&&(er=He(er));var gr=M(er,Et.key,Qe++);gr!==void 0?ue(gr):Et.continue()}else ue()},Fe.onerror=function(){ie(Fe.error)}}catch(Et){ie(Et)}})}).catch(ie)});return w(ae,K),ae}function Vt(M,K,H){var ae=this;M=G(M);var ue=new P(function(ie,De){var Be;ae.ready().then(function(){return Be=ae._dbInfo,k.call(K)==="[object Blob]"?le(Be.db).then(function(We){return We?K:Me(K)}):K}).then(function(We){ut(ae._dbInfo,D,function(Fe,Qe){if(Fe)return De(Fe);try{var Et=Qe.objectStore(ae._dbInfo.storeName);We===null&&(We=void 0);var er=Et.put(We,M);Qe.oncomplete=function(){We===void 0&&(We=null),ie(We)},Qe.onabort=Qe.onerror=function(){var gr=er.error?er.error:er.transaction.error;De(gr)}}catch(gr){De(gr)}})}).catch(De)});return w(ue,H),ue}function Dt(M,K){var H=this;M=G(M);var ae=new P(function(ue,ie){H.ready().then(function(){ut(H._dbInfo,D,function(De,Be){if(De)return ie(De);try{var We=Be.objectStore(H._dbInfo.storeName),Fe=We.delete(M);Be.oncomplete=function(){ue()},Be.onerror=function(){ie(Fe.error)},Be.onabort=function(){var Qe=Fe.error?Fe.error:Fe.transaction.error;ie(Qe)}}catch(Qe){ie(Qe)}})}).catch(ie)});return w(ae,K),ae}function gt(M){var K=this,H=new P(function(ae,ue){K.ready().then(function(){ut(K._dbInfo,D,function(ie,De){if(ie)return ue(ie);try{var Be=De.objectStore(K._dbInfo.storeName),We=Be.clear();De.oncomplete=function(){ae()},De.onabort=De.onerror=function(){var Fe=We.error?We.error:We.transaction.error;ue(Fe)}}catch(Fe){ue(Fe)}})}).catch(ue)});return w(H,M),H}function dt(M){var K=this,H=new P(function(ae,ue){K.ready().then(function(){ut(K._dbInfo,j,function(ie,De){if(ie)return ue(ie);try{var Be=De.objectStore(K._dbInfo.storeName),We=Be.count();We.onsuccess=function(){ae(We.result)},We.onerror=function(){ue(We.error)}}catch(Fe){ue(Fe)}})}).catch(ue)});return w(H,M),H}function _t(M,K){var H=this,ae=new P(function(ue,ie){if(M<0){ue(null);return}H.ready().then(function(){ut(H._dbInfo,j,function(De,Be){if(De)return ie(De);try{var We=Be.objectStore(H._dbInfo.storeName),Fe=!1,Qe=We.openKeyCursor();Qe.onsuccess=function(){var Et=Qe.result;if(!Et){ue(null);return}M===0||Fe?ue(Et.key):(Fe=!0,Et.advance(M))},Qe.onerror=function(){ie(Qe.error)}}catch(Et){ie(Et)}})}).catch(ie)});return w(ae,K),ae}function Ft(M){var K=this,H=new P(function(ae,ue){K.ready().then(function(){ut(K._dbInfo,j,function(ie,De){if(ie)return ue(ie);try{var Be=De.objectStore(K._dbInfo.storeName),We=Be.openKeyCursor(),Fe=[];We.onsuccess=function(){var Qe=We.result;if(!Qe){ae(Fe);return}Fe.push(Qe.key),Qe.continue()},We.onerror=function(){ue(We.error)}}catch(Qe){ue(Qe)}})}).catch(ue)});return w(H,M),H}function $t(M,K){K=N.apply(this,arguments);var H=this.config();M=typeof M!="function"&&M||{},M.name||(M.name=M.name||H.name,M.storeName=M.storeName||H.storeName);var ae=this,ue;if(!M.name)ue=P.reject("Invalid arguments");else{var ie=M.name===H.name&&ae._dbInfo.db,De=ie?P.resolve(ae._dbInfo.db):re(M).then(function(Be){var We=L[M.name],Fe=We.forages;We.db=Be;for(var Qe=0;Qe<Fe.length;Qe++)Fe[Qe]._dbInfo.db=Be;return Be});M.storeName?ue=De.then(function(Be){if(Be.objectStoreNames.contains(M.storeName)){var We=Be.version+1;de(M);var Fe=L[M.name],Qe=Fe.forages;Be.close();for(var Et=0;Et<Qe.length;Et++){var er=Qe[Et];er._dbInfo.db=null,er._dbInfo.version=We}var gr=new P(function(fr,Vr){var eo=h.open(M.name,We);eo.onerror=function(Ao){var Fi=eo.result;Fi.close(),Vr(Ao)},eo.onupgradeneeded=function(){var Ao=eo.result;Ao.deleteObjectStore(M.storeName)},eo.onsuccess=function(){var Ao=eo.result;Ao.close(),fr(Ao)}});return gr.then(function(fr){Fe.db=fr;for(var Vr=0;Vr<Qe.length;Vr++){var eo=Qe[Vr];eo._dbInfo.db=fr,ye(eo._dbInfo)}}).catch(function(fr){throw(E(M,fr)||P.resolve()).catch(function(){}),fr})}}):ue=De.then(function(Be){de(M);var We=L[M.name],Fe=We.forages;Be.close();for(var Qe=0;Qe<Fe.length;Qe++){var Et=Fe[Qe];Et._dbInfo.db=null}var er=new P(function(gr,fr){var Vr=h.deleteDatabase(M.name);Vr.onerror=function(){var eo=Vr.result;eo&&eo.close(),fr(Vr.error)},Vr.onblocked=function(){console.warn('dropInstance blocked for database "'+M.name+'" until all open connections are closed')},Vr.onsuccess=function(){var eo=Vr.result;eo&&eo.close(),gr(eo)}});return er.then(function(gr){We.db=gr;for(var fr=0;fr<Fe.length;fr++){var Vr=Fe[fr];ye(Vr._dbInfo)}}).catch(function(gr){throw(E(M,gr)||P.resolve()).catch(function(){}),gr})})}return w(ue,K),ue}var Ut={_driver:"asyncStorage",_initStorage:at,_support:v(),iterate:ke,getItem:tt,setItem:Vt,removeItem:Dt,clear:gt,length:dt,key:_t,keys:Ft,dropInstance:$t};function ir(){return typeof openDatabase=="function"}var Mt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",or="~~local_forage_type~",ze=/^~~local_forage_type~([^~]+)~/,cr="__lfsc__:",xt=cr.length,Wt="arbf",it="blob",Gr="si08",Xt="ui08",Ur="uic8",Qr="si16",Uo="si32",qr="ur16",Oo="ui32",ur="fl32",Ke="fl64",jr=xt+Wt.length,xo=Object.prototype.toString;function yo(M){var K=M.length*.75,H=M.length,ae,ue=0,ie,De,Be,We;M[M.length-1]==="="&&(K--,M[M.length-2]==="="&&K--);var Fe=new ArrayBuffer(K),Qe=new Uint8Array(Fe);for(ae=0;ae<H;ae+=4)ie=Mt.indexOf(M[ae]),De=Mt.indexOf(M[ae+1]),Be=Mt.indexOf(M[ae+2]),We=Mt.indexOf(M[ae+3]),Qe[ue++]=ie<<2|De>>4,Qe[ue++]=(De&15)<<4|Be>>2,Qe[ue++]=(Be&3)<<6|We&63;return Fe}function jo(M){var K=new Uint8Array(M),H="",ae;for(ae=0;ae<K.length;ae+=3)H+=Mt[K[ae]>>2],H+=Mt[(K[ae]&3)<<4|K[ae+1]>>4],H+=Mt[(K[ae+1]&15)<<2|K[ae+2]>>6],H+=Mt[K[ae+2]&63];return K.length%3===2?H=H.substring(0,H.length-1)+"=":K.length%3===1&&(H=H.substring(0,H.length-2)+"=="),H}function bt(M,K){var H="";if(M&&(H=xo.call(M)),M&&(H==="[object ArrayBuffer]"||M.buffer&&xo.call(M.buffer)==="[object ArrayBuffer]")){var ae,ue=cr;M instanceof ArrayBuffer?(ae=M,ue+=Wt):(ae=M.buffer,H==="[object Int8Array]"?ue+=Gr:H==="[object Uint8Array]"?ue+=Xt:H==="[object Uint8ClampedArray]"?ue+=Ur:H==="[object Int16Array]"?ue+=Qr:H==="[object Uint16Array]"?ue+=qr:H==="[object Int32Array]"?ue+=Uo:H==="[object Uint32Array]"?ue+=Oo:H==="[object Float32Array]"?ue+=ur:H==="[object Float64Array]"?ue+=Ke:K(new Error("Failed to get type for BinaryArray"))),K(ue+jo(ae))}else if(H==="[object Blob]"){var ie=new FileReader;ie.onload=function(){var De=or+M.type+"~"+jo(this.result);K(cr+it+De)},ie.readAsArrayBuffer(M)}else try{K(JSON.stringify(M))}catch(De){console.error("Couldn't convert value into a JSON string: ",M),K(null,De)}}function Ht(M){if(M.substring(0,xt)!==cr)return JSON.parse(M);var K=M.substring(jr),H=M.substring(xt,jr),ae;if(H===it&&ze.test(K)){var ue=K.match(ze);ae=ue[1],K=K.substring(ue[0].length)}var ie=yo(K);switch(H){case Wt:return ie;case it:return I([ie],{type:ae});case Gr:return new Int8Array(ie);case Xt:return new Uint8Array(ie);case Ur:return new Uint8ClampedArray(ie);case Qr:return new Int16Array(ie);case qr:return new Uint16Array(ie);case Uo:return new Int32Array(ie);case Oo:return new Uint32Array(ie);case ur:return new Float32Array(ie);case Ke:return new Float64Array(ie);default:throw new Error("Unkown type: "+H)}}var mr={serialize:bt,deserialize:Ht,stringToBuffer:yo,bufferToString:jo};function go(M,K,H,ae){M.executeSql("CREATE TABLE IF NOT EXISTS "+K.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],H,ae)}function an(M){var K=this,H={db:null};if(M)for(var ae in M)H[ae]=typeof M[ae]!="string"?M[ae].toString():M[ae];var ue=new P(function(ie,De){try{H.db=openDatabase(H.name,String(H.version),H.description,H.size)}catch(Be){return De(Be)}H.db.transaction(function(Be){go(Be,H,function(){K._dbInfo=H,ie()},function(We,Fe){De(Fe)})},De)});return H.serializer=mr,ue}function Cr(M,K,H,ae,ue,ie){M.executeSql(H,ae,ue,function(De,Be){Be.code===Be.SYNTAX_ERR?De.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[K.storeName],function(We,Fe){Fe.rows.length?ie(We,Be):go(We,K,function(){We.executeSql(H,ae,ue,ie)},ie)},ie):ie(De,Be)},ie)}function Jr(M,K){var H=this;M=G(M);var ae=new P(function(ue,ie){H.ready().then(function(){var De=H._dbInfo;De.db.transaction(function(Be){Cr(Be,De,"SELECT * FROM "+De.storeName+" WHERE key = ? LIMIT 1",[M],function(We,Fe){var Qe=Fe.rows.length?Fe.rows.item(0).value:null;Qe&&(Qe=De.serializer.deserialize(Qe)),ue(Qe)},function(We,Fe){ie(Fe)})})}).catch(ie)});return w(ae,K),ae}function yn(M,K){var H=this,ae=new P(function(ue,ie){H.ready().then(function(){var De=H._dbInfo;De.db.transaction(function(Be){Cr(Be,De,"SELECT * FROM "+De.storeName,[],function(We,Fe){for(var Qe=Fe.rows,Et=Qe.length,er=0;er<Et;er++){var gr=Qe.item(er),fr=gr.value;if(fr&&(fr=De.serializer.deserialize(fr)),fr=M(fr,gr.key,er+1),fr!==void 0){ue(fr);return}}ue()},function(We,Fe){ie(Fe)})})}).catch(ie)});return w(ae,K),ae}function zo(M,K,H,ae){var ue=this;M=G(M);var ie=new P(function(De,Be){ue.ready().then(function(){K===void 0&&(K=null);var We=K,Fe=ue._dbInfo;Fe.serializer.serialize(K,function(Qe,Et){Et?Be(Et):Fe.db.transaction(function(er){Cr(er,Fe,"INSERT OR REPLACE INTO "+Fe.storeName+" (key, value) VALUES (?, ?)",[M,Qe],function(){De(We)},function(gr,fr){Be(fr)})},function(er){if(er.code===er.QUOTA_ERR){if(ae>0){De(zo.apply(ue,[M,We,H,ae-1]));return}Be(er)}})})}).catch(Be)});return w(ie,H),ie}function Dr(M,K,H){return zo.apply(this,[M,K,H,1])}function Po(M,K){var H=this;M=G(M);var ae=new P(function(ue,ie){H.ready().then(function(){var De=H._dbInfo;De.db.transaction(function(Be){Cr(Be,De,"DELETE FROM "+De.storeName+" WHERE key = ?",[M],function(){ue()},function(We,Fe){ie(Fe)})})}).catch(ie)});return w(ae,K),ae}function Mn(M){var K=this,H=new P(function(ae,ue){K.ready().then(function(){var ie=K._dbInfo;ie.db.transaction(function(De){Cr(De,ie,"DELETE FROM "+ie.storeName,[],function(){ae()},function(Be,We){ue(We)})})}).catch(ue)});return w(H,M),H}function Yo(M){var K=this,H=new P(function(ae,ue){K.ready().then(function(){var ie=K._dbInfo;ie.db.transaction(function(De){Cr(De,ie,"SELECT COUNT(key) as c FROM "+ie.storeName,[],function(Be,We){var Fe=We.rows.item(0).c;ae(Fe)},function(Be,We){ue(We)})})}).catch(ue)});return w(H,M),H}function st(M,K){var H=this,ae=new P(function(ue,ie){H.ready().then(function(){var De=H._dbInfo;De.db.transaction(function(Be){Cr(Be,De,"SELECT key FROM "+De.storeName+" WHERE id = ? LIMIT 1",[M+1],function(We,Fe){var Qe=Fe.rows.length?Fe.rows.item(0).key:null;ue(Qe)},function(We,Fe){ie(Fe)})})}).catch(ie)});return w(ae,K),ae}function Ot(M){var K=this,H=new P(function(ae,ue){K.ready().then(function(){var ie=K._dbInfo;ie.db.transaction(function(De){Cr(De,ie,"SELECT key FROM "+ie.storeName,[],function(Be,We){for(var Fe=[],Qe=0;Qe<We.rows.length;Qe++)Fe.push(We.rows.item(Qe).key);ae(Fe)},function(Be,We){ue(We)})})}).catch(ue)});return w(H,M),H}function Yt(M){return new P(function(K,H){M.transaction(function(ae){ae.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(ue,ie){for(var De=[],Be=0;Be<ie.rows.length;Be++)De.push(ie.rows.item(Be).name);K({db:M,storeNames:De})},function(ue,ie){H(ie)})},function(ae){H(ae)})})}function zt(M,K){K=N.apply(this,arguments);var H=this.config();M=typeof M!="function"&&M||{},M.name||(M.name=M.name||H.name,M.storeName=M.storeName||H.storeName);var ae=this,ue;return M.name?ue=new P(function(ie){var De;M.name===H.name?De=ae._dbInfo.db:De=openDatabase(M.name,"","",0),M.storeName?ie({db:De,storeNames:[M.storeName]}):ie(Yt(De))}).then(function(ie){return new P(function(De,Be){ie.db.transaction(function(We){function Fe(gr){return new P(function(fr,Vr){We.executeSql("DROP TABLE IF EXISTS "+gr,[],function(){fr()},function(eo,Ao){Vr(Ao)})})}for(var Qe=[],Et=0,er=ie.storeNames.length;Et<er;Et++)Qe.push(Fe(ie.storeNames[Et]));P.all(Qe).then(function(){De()}).catch(function(gr){Be(gr)})},function(We){Be(We)})})}):ue=P.reject("Invalid arguments"),w(ue,K),ue}var Zt={_driver:"webSQLStorage",_initStorage:an,_support:ir(),iterate:yn,getItem:Jr,setItem:Dr,removeItem:Po,clear:Mn,length:Yo,key:st,keys:Ot,dropInstance:zt};function Vo(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function zr(M,K){var H=M.name+"/";return M.storeName!==K.storeName&&(H+=M.storeName+"/"),H}function gn(){var M="_localforage_support_test";try{return localStorage.setItem(M,!0),localStorage.removeItem(M),!1}catch{return!0}}function Wn(){return!gn()||localStorage.length>0}function io(M){var K=this,H={};if(M)for(var ae in M)H[ae]=M[ae];return H.keyPrefix=zr(M,K._defaultConfig),Wn()?(K._dbInfo=H,H.serializer=mr,P.resolve()):P.reject()}function Kr(M){var K=this,H=K.ready().then(function(){for(var ae=K._dbInfo.keyPrefix,ue=localStorage.length-1;ue>=0;ue--){var ie=localStorage.key(ue);ie.indexOf(ae)===0&&localStorage.removeItem(ie)}});return w(H,M),H}function _r(M,K){var H=this;M=G(M);var ae=H.ready().then(function(){var ue=H._dbInfo,ie=localStorage.getItem(ue.keyPrefix+M);return ie&&(ie=ue.serializer.deserialize(ie)),ie});return w(ae,K),ae}function Hn(M,K){var H=this,ae=H.ready().then(function(){for(var ue=H._dbInfo,ie=ue.keyPrefix,De=ie.length,Be=localStorage.length,We=1,Fe=0;Fe<Be;Fe++){var Qe=localStorage.key(Fe);if(Qe.indexOf(ie)===0){var Et=localStorage.getItem(Qe);if(Et&&(Et=ue.serializer.deserialize(Et)),Et=M(Et,Qe.substring(De),We++),Et!==void 0)return Et}}});return w(ae,K),ae}function ri(M,K){var H=this,ae=H.ready().then(function(){var ue=H._dbInfo,ie;try{ie=localStorage.key(M)}catch{ie=null}return ie&&(ie=ie.substring(ue.keyPrefix.length)),ie});return w(ae,K),ae}function Zo(M){var K=this,H=K.ready().then(function(){for(var ae=K._dbInfo,ue=localStorage.length,ie=[],De=0;De<ue;De++){var Be=localStorage.key(De);Be.indexOf(ae.keyPrefix)===0&&ie.push(Be.substring(ae.keyPrefix.length))}return ie});return w(H,M),H}function oi(M){var K=this,H=K.keys().then(function(ae){return ae.length});return w(H,M),H}function Se(M,K){var H=this;M=G(M);var ae=H.ready().then(function(){var ue=H._dbInfo;localStorage.removeItem(ue.keyPrefix+M)});return w(ae,K),ae}function we(M,K,H){var ae=this;M=G(M);var ue=ae.ready().then(function(){K===void 0&&(K=null);var ie=K;return new P(function(De,Be){var We=ae._dbInfo;We.serializer.serialize(K,function(Fe,Qe){if(Qe)Be(Qe);else try{localStorage.setItem(We.keyPrefix+M,Fe),De(ie)}catch(Et){(Et.name==="QuotaExceededError"||Et.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Be(Et),Be(Et)}})})});return w(ue,H),ue}function rt(M,K){if(K=N.apply(this,arguments),M=typeof M!="function"&&M||{},!M.name){var H=this.config();M.name=M.name||H.name,M.storeName=M.storeName||H.storeName}var ae=this,ue;return M.name?ue=new P(function(ie){M.storeName?ie(zr(M,ae._defaultConfig)):ie(M.name+"/")}).then(function(ie){for(var De=localStorage.length-1;De>=0;De--){var Be=localStorage.key(De);Be.indexOf(ie)===0&&localStorage.removeItem(Be)}}):ue=P.reject("Invalid arguments"),w(ue,K),ue}var Nt={_driver:"localStorageWrapper",_initStorage:io,_support:Vo(),iterate:Hn,getItem:_r,setItem:we,removeItem:Se,clear:Kr,length:oi,key:ri,keys:Zo,dropInstance:rt},Lt=function(K,H){return K===H||typeof K=="number"&&typeof H=="number"&&isNaN(K)&&isNaN(H)},Rr=function(K,H){for(var ae=K.length,ue=0;ue<ae;){if(Lt(K[ue],H))return!0;ue++}return!1},Pr=Array.isArray||function(M){return Object.prototype.toString.call(M)==="[object Array]"},Eo={},hn={},$n={INDEXEDDB:Ut,WEBSQL:Zt,LOCALSTORAGE:Nt},bi=[$n.INDEXEDDB._driver,$n.WEBSQL._driver,$n.LOCALSTORAGE._driver],ki=["dropInstance"],tr=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ki),vn={description:"",driver:bi.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function sn(M,K){M[K]=function(){var H=arguments;return M.ready().then(function(){return M[K].apply(M,H)})}}function ni(){for(var M=1;M<arguments.length;M++){var K=arguments[M];if(K)for(var H in K)K.hasOwnProperty(H)&&(Pr(K[H])?arguments[0][H]=K[H].slice():arguments[0][H]=K[H])}return arguments[0]}var qi=(function(){function M(K){u(this,M);for(var H in $n)if($n.hasOwnProperty(H)){var ae=$n[H],ue=ae._driver;this[H]=ue,Eo[ue]||this.defineDriver(ae)}this._defaultConfig=ni({},vn),this._config=ni({},this._defaultConfig,K),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return M.prototype.config=function(H){if((typeof H>"u"?"undefined":p(H))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var ae in H){if(ae==="storeName"&&(H[ae]=H[ae].replace(/\W/g,"_")),ae==="version"&&typeof H[ae]!="number")return new Error("Database version must be a number.");this._config[ae]=H[ae]}return"driver"in H&&H.driver?this.setDriver(this._config.driver):!0}else return typeof H=="string"?this._config[H]:this._config},M.prototype.defineDriver=function(H,ae,ue){var ie=new P(function(De,Be){try{var We=H._driver,Fe=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!H._driver){Be(Fe);return}for(var Qe=tr.concat("_initStorage"),Et=0,er=Qe.length;Et<er;Et++){var gr=Qe[Et],fr=!Rr(ki,gr);if((fr||H[gr])&&typeof H[gr]!="function"){Be(Fe);return}}var Vr=function(){for(var Fi=function(hl){return function(){var vl=new Error("Method "+hl+" is not implemented by the current driver"),Wa=P.reject(vl);return w(Wa,arguments[arguments.length-1]),Wa}},Va=0,gl=ki.length;Va<gl;Va++){var ha=ki[Va];H[ha]||(H[ha]=Fi(ha))}};Vr();var eo=function(Fi){Eo[We]&&console.info("Redefining LocalForage driver: "+We),Eo[We]=H,hn[We]=Fi,De()};"_support"in H?H._support&&typeof H._support=="function"?H._support().then(eo,Be):eo(!!H._support):eo(!0)}catch(Ao){Be(Ao)}});return R(ie,ae,ue),ie},M.prototype.driver=function(){return this._driver||null},M.prototype.getDriver=function(H,ae,ue){var ie=Eo[H]?P.resolve(Eo[H]):P.reject(new Error("Driver not found."));return R(ie,ae,ue),ie},M.prototype.getSerializer=function(H){var ae=P.resolve(mr);return R(ae,H),ae},M.prototype.ready=function(H){var ae=this,ue=ae._driverSet.then(function(){return ae._ready===null&&(ae._ready=ae._initDriver()),ae._ready});return R(ue,H,H),ue},M.prototype.setDriver=function(H,ae,ue){var ie=this;Pr(H)||(H=[H]);var De=this._getSupportedDrivers(H);function Be(){ie._config.driver=ie.driver()}function We(Et){return ie._extend(Et),Be(),ie._ready=ie._initStorage(ie._config),ie._ready}function Fe(Et){return function(){var er=0;function gr(){for(;er<Et.length;){var fr=Et[er];return er++,ie._dbInfo=null,ie._ready=null,ie.getDriver(fr).then(We).catch(gr)}Be();var Vr=new Error("No available storage method found.");return ie._driverSet=P.reject(Vr),ie._driverSet}return gr()}}var Qe=this._driverSet!==null?this._driverSet.catch(function(){return P.resolve()}):P.resolve();return this._driverSet=Qe.then(function(){var Et=De[0];return ie._dbInfo=null,ie._ready=null,ie.getDriver(Et).then(function(er){ie._driver=er._driver,Be(),ie._wrapLibraryMethodsWithReady(),ie._initDriver=Fe(De)})}).catch(function(){Be();var Et=new Error("No available storage method found.");return ie._driverSet=P.reject(Et),ie._driverSet}),R(this._driverSet,ae,ue),this._driverSet},M.prototype.supports=function(H){return!!hn[H]},M.prototype._extend=function(H){ni(this,H)},M.prototype._getSupportedDrivers=function(H){for(var ae=[],ue=0,ie=H.length;ue<ie;ue++){var De=H[ue];this.supports(De)&&ae.push(De)}return ae},M.prototype._wrapLibraryMethodsWithReady=function(){for(var H=0,ae=tr.length;H<ae;H++)sn(this,tr[H])},M.prototype.createInstance=function(H){return new M(H)},M})(),yl=new qi;a.exports=yl},{3:3}]},{},[4])(4)})});var _v=Tn(ro=>{"use strict";var Tm=Symbol.for("react.transitional.element"),xm=Symbol.for("react.portal"),Cu=Symbol.for("react.fragment"),Du=Symbol.for("react.strict_mode"),_u=Symbol.for("react.profiler");Symbol.for("react.provider");var Au=Symbol.for("react.consumer"),Mu=Symbol.for("react.context"),Nu=Symbol.for("react.forward_ref"),Lu=Symbol.for("react.suspense"),ku=Symbol.for("react.suspense_list"),Fu=Symbol.for("react.memo"),Bu=Symbol.for("react.lazy"),US=Symbol.for("react.view_transition"),jS=Symbol.for("react.client.reference");function Pi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Tm:switch(e=e.type,e){case Cu:case _u:case Du:case Lu:case ku:case US:return e;default:switch(e=e&&e.$$typeof,e){case Mu:case Nu:case Bu:case Fu:return e;case Au:return e;default:return t}}case xm:return t}}}ro.ContextConsumer=Au;ro.ContextProvider=Mu;ro.Element=Tm;ro.ForwardRef=Nu;ro.Fragment=Cu;ro.Lazy=Bu;ro.Memo=Fu;ro.Portal=xm;ro.Profiler=_u;ro.StrictMode=Du;ro.Suspense=Lu;ro.SuspenseList=ku;ro.isContextConsumer=function(e){return Pi(e)===Au};ro.isContextProvider=function(e){return Pi(e)===Mu};ro.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tm};ro.isForwardRef=function(e){return Pi(e)===Nu};ro.isFragment=function(e){return Pi(e)===Cu};ro.isLazy=function(e){return Pi(e)===Bu};ro.isMemo=function(e){return Pi(e)===Fu};ro.isPortal=function(e){return Pi(e)===xm};ro.isProfiler=function(e){return Pi(e)===_u};ro.isStrictMode=function(e){return Pi(e)===Du};ro.isSuspense=function(e){return Pi(e)===Lu};ro.isSuspenseList=function(e){return Pi(e)===ku};ro.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Cu||e===_u||e===Du||e===Lu||e===ku||typeof e=="object"&&e!==null&&(e.$$typeof===Bu||e.$$typeof===Fu||e.$$typeof===Mu||e.$$typeof===Au||e.$$typeof===Nu||e.$$typeof===jS||e.getModuleId!==void 0)};ro.typeOf=Pi});var Mv=Tn((ck,Av)=>{"use strict";Av.exports=_v()});var cb=Tn($r=>{"use strict";var cn=typeof Symbol=="function"&&Symbol.for,Mm=cn?Symbol.for("react.element"):60103,Nm=cn?Symbol.for("react.portal"):60106,Ju=cn?Symbol.for("react.fragment"):60107,Ku=cn?Symbol.for("react.strict_mode"):60108,ef=cn?Symbol.for("react.profiler"):60114,tf=cn?Symbol.for("react.provider"):60109,rf=cn?Symbol.for("react.context"):60110,Lm=cn?Symbol.for("react.async_mode"):60111,of=cn?Symbol.for("react.concurrent_mode"):60111,nf=cn?Symbol.for("react.forward_ref"):60112,sf=cn?Symbol.for("react.suspense"):60113,VO=cn?Symbol.for("react.suspense_list"):60120,lf=cn?Symbol.for("react.memo"):60115,pf=cn?Symbol.for("react.lazy"):60116,WO=cn?Symbol.for("react.block"):60121,HO=cn?Symbol.for("react.fundamental"):60117,$O=cn?Symbol.for("react.responder"):60118,XO=cn?Symbol.for("react.scope"):60119;function pi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mm:switch(e=e.type,e){case Lm:case of:case Ju:case ef:case Ku:case sf:return e;default:switch(e=e&&e.$$typeof,e){case rf:case nf:case pf:case lf:case tf:return e;default:return t}}case Nm:return t}}}function pb(e){return pi(e)===of}$r.AsyncMode=Lm;$r.ConcurrentMode=of;$r.ContextConsumer=rf;$r.ContextProvider=tf;$r.Element=Mm;$r.ForwardRef=nf;$r.Fragment=Ju;$r.Lazy=pf;$r.Memo=lf;$r.Portal=Nm;$r.Profiler=ef;$r.StrictMode=Ku;$r.Suspense=sf;$r.isAsyncMode=function(e){return pb(e)||pi(e)===Lm};$r.isConcurrentMode=pb;$r.isContextConsumer=function(e){return pi(e)===rf};$r.isContextProvider=function(e){return pi(e)===tf};$r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mm};$r.isForwardRef=function(e){return pi(e)===nf};$r.isFragment=function(e){return pi(e)===Ju};$r.isLazy=function(e){return pi(e)===pf};$r.isMemo=function(e){return pi(e)===lf};$r.isPortal=function(e){return pi(e)===Nm};$r.isProfiler=function(e){return pi(e)===ef};$r.isStrictMode=function(e){return pi(e)===Ku};$r.isSuspense=function(e){return pi(e)===sf};$r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ju||e===of||e===ef||e===Ku||e===sf||e===VO||typeof e=="object"&&e!==null&&(e.$$typeof===pf||e.$$typeof===lf||e.$$typeof===tf||e.$$typeof===rf||e.$$typeof===nf||e.$$typeof===HO||e.$$typeof===$O||e.$$typeof===XO||e.$$typeof===WO)};$r.typeOf=pi});var fb=Tn((rB,ub)=>{"use strict";ub.exports=cb()});var bb=Tn((oB,vb)=>{"use strict";var km=fb(),YO={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ZO={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},QO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fm={};Fm[km.ForwardRef]=QO;Fm[km.Memo]=gb;function db(e){return km.isMemo(e)?gb:Fm[e.$$typeof]||YO}var qO=Object.defineProperty,JO=Object.getOwnPropertyNames,mb=Object.getOwnPropertySymbols,KO=Object.getOwnPropertyDescriptor,eC=Object.getPrototypeOf,yb=Object.prototype;function hb(e,t,r){if(typeof t!="string"){if(yb){var i=eC(t);i&&i!==yb&&hb(e,i,r)}var a=JO(t);mb&&(a=a.concat(mb(t)));for(var l=db(e),p=db(t),u=0;u<a.length;++u){var m=a[u];if(!ZO[m]&&!(r&&r[m])&&!(p&&p[m])&&!(l&&l[m])){var h=KO(t,m);try{qO(e,m,h)}catch{}}}}return e}vb.exports=hb});var ds=Tn((fce,aE)=>{aE.exports=af.data});var su=Tn((dce,sE)=>{sE.exports=af.mui});var kd=Tn((mce,lE)=>{lE.exports=af.react});var YE=Tn((zd,XE)=>{(function(e,t){typeof zd=="object"&&typeof XE<"u"?t(zd):typeof define=="function"&&define.amd?define(["exports"],t):(e=e||self,t(e.FilePond={}))})(zd,function(e){"use strict";var t=function(o){return o instanceof HTMLElement},r=function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],c=Object.assign({},o),y=[],T=[],x=function(){return Object.assign({},c)},_=function(){var Re=[].concat(y);return y.length=0,Re},W=function(){var Re=[].concat(T);T.length=0,Re.forEach(function(Ze){var vt=Ze.type,Rt=Ze.data;X(vt,Rt)})},X=function(Re,Ze,vt){if(vt&&!document.hidden){T.push({type:Re,data:Ze});return}Ge[Re]&&Ge[Re](Ze),y.push({type:Re,data:Ze})},se=function(Re){for(var Ze,vt=arguments.length,Rt=new Array(vt>1?vt-1:0),ot=1;ot<vt;ot++)Rt[ot-1]=arguments[ot];return Le[Re]?(Ze=Le)[Re].apply(Ze,Rt):null},pe={getState:x,processActionQueue:_,processDispatchQueue:W,dispatch:X,query:se},Le={};n.forEach(function(Ue){Le=Object.assign({},Ue(c),{},Le)});var Ge={};return s.forEach(function(Ue){Ge=Object.assign({},Ue(X,se,c),{},Ge)}),pe},i=function(o,n,s){if(typeof s=="function"){o[n]=s;return}Object.defineProperty(o,n,Object.assign({},s))},a=function(o,n){for(var s in o)o.hasOwnProperty(s)&&n(s,o[s])},l=function(o){var n={};return a(o,function(s){i(n,s,o[s])}),n},p=function(o,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(s===null)return o.getAttribute(n)||o.hasAttribute(n);o.setAttribute(n,s)},u="http://www.w3.org/2000/svg",m=["svg","path"],h=function(o){return m.includes(o)},v=function(o,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};typeof n=="object"&&(s=n,n=null);var c=h(o)?document.createElementNS(u,o):document.createElement(o);return n&&(h(o)?p(c,"class",n):c.className=n),a(s,function(y,T){p(c,y,T)}),c},I=function(o){return function(n,s){typeof s<"u"&&o.children[s]?o.insertBefore(n,o.children[s]):o.appendChild(n)}},P=function(o,n){return function(s,c){return typeof c<"u"?n.splice(c,0,s):n.push(s),s}},w=function(o,n){return function(s){return n.splice(n.indexOf(s),1),s.element.parentNode&&o.removeChild(s.element),s}},R=(function(){return typeof window<"u"&&typeof window.document<"u"})(),G=function(){return R},N=G()?v("svg"):{},U="children"in N?function(f){return f.children.length}:function(f){return f.childNodes.length},Y=function(o,n,s,c){var y=s[0]||o.left,T=s[1]||o.top,x=y+o.width,_=T+o.height*(c[1]||1),W={element:Object.assign({},o),inner:{left:o.left,top:o.top,right:o.right,bottom:o.bottom},outer:{left:y,top:T,right:x,bottom:_}};return n.filter(function(X){return!X.isRectIgnored()}).map(function(X){return X.rect}).forEach(function(X){L(W.inner,Object.assign({},X.inner)),L(W.outer,Object.assign({},X.outer))}),k(W.inner),W.outer.bottom+=W.element.marginBottom,W.outer.right+=W.element.marginRight,k(W.outer),W},L=function(o,n){n.top+=o.top,n.right+=o.left,n.bottom+=o.top,n.left+=o.left,n.bottom>o.bottom&&(o.bottom=n.bottom),n.right>o.right&&(o.right=n.right)},k=function(o){o.width=o.right-o.left,o.height=o.bottom-o.top},j=function(o){return typeof o=="number"},D=function(o,n,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.001;return Math.abs(o-n)<c&&Math.abs(s)<c},Z=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=o.stiffness,s=n===void 0?.5:n,c=o.damping,y=c===void 0?.75:c,T=o.mass,x=T===void 0?10:T,_=null,W=null,X=0,se=!1,pe=function(Re,Ze){if(!se){if(!(j(_)&&j(W))){se=!0,X=0;return}var vt=-(W-_)*s;X+=vt/x,W+=X,X*=y,D(W,_,X)||Ze?(W=_,X=0,se=!0,Ge.onupdate(W),Ge.oncomplete(W)):Ge.onupdate(W)}},Le=function(Re){if(j(Re)&&!j(W)&&(W=Re),_===null&&(_=Re,W=Re),_=Re,W===_||typeof _>"u"){se=!0,X=0,Ge.onupdate(W),Ge.oncomplete(W);return}se=!1},Ge=l({interpolate:pe,target:{set:Le,get:function(){return _}},resting:{get:function(){return se}},onupdate:function(Re){},oncomplete:function(Re){}});return Ge},ne=function(o){return o},le=function(o){return o<.5?2*o*o:-1+(4-2*o)*o},de=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=o.duration,s=n===void 0?500:n,c=o.easing,y=c===void 0?le:c,T=o.delay,x=T===void 0?0:T,_=null,W,X,se=!0,pe=!1,Le=null,Ge=function(Ze,vt){se||Le===null||(_===null&&(_=Ze),!(Ze-_<x)&&(W=Ze-_-x,W>=s||vt?(W=1,X=pe?0:1,Ue.onupdate(X*Le),Ue.oncomplete(X*Le),se=!0):(X=W/s,Ue.onupdate((W>=0?y(pe?1-X:X):0)*Le))))},Ue=l({interpolate:Ge,target:{get:function(){return pe?0:Le},set:function(Ze){if(Le===null){Le=Ze,Ue.onupdate(Ze),Ue.oncomplete(Ze);return}Ze<Le?(Le=1,pe=!0):(pe=!1,Le=Ze),se=!1,_=null}},resting:{get:function(){return se}},onupdate:function(Ze){},oncomplete:function(Ze){}});return Ue},ye={spring:Z,tween:de},E=function(o,n,s){var c=o[n]&&typeof o[n][s]=="object"?o[n][s]:o[n]||o,y=typeof c=="string"?c:c.type,T=typeof c=="object"?Object.assign({},c):{};return ye[y]?ye[y](T):null},q=function(o,n,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;n=Array.isArray(n)?n:[n],n.forEach(function(y){o.forEach(function(T){var x=T,_=function(){return s[T]},W=function(se){return s[T]=se};typeof T=="object"&&(x=T.key,_=T.getter||_,W=T.setter||W),!(y[x]&&!c)&&(y[x]={get:_,set:W})})})},re=function(o){var n=o.mixinConfig,s=o.viewProps,c=o.viewInternalAPI,y=o.viewExternalAPI,T=Object.assign({},s),x=[];return a(n,function(_,W){var X=E(W);if(X){X.onupdate=function(pe){s[_]=pe},X.target=T[_];var se={key:_,setter:function(Le){X.target!==Le&&(X.target=Le)},getter:function(){return s[_]}};q([se],[c,y],s,!0),x.push(X)}}),{write:function(W){var X=document.hidden,se=!0;return x.forEach(function(pe){pe.resting||(se=!1),pe.interpolate(W,X)}),se},destroy:function(){}}},oe=function(o){return function(n,s){o.addEventListener(n,s)}},ce=function(o){return function(n,s){o.removeEventListener(n,s)}},Me=function(o){var n=o.mixinConfig,s=o.viewProps,c=o.viewInternalAPI,y=o.viewExternalAPI,T=o.viewState,x=o.view,_=[],W=oe(x.element),X=ce(x.element);return y.on=function(se,pe){_.push({type:se,fn:pe}),W(se,pe)},y.off=function(se,pe){_.splice(_.findIndex(function(Le){return Le.type===se&&Le.fn===pe}),1),X(se,pe)},{write:function(){return!0},destroy:function(){_.forEach(function(pe){X(pe.type,pe.fn)})}}},He=function(o){var n=o.mixinConfig,s=o.viewProps,c=o.viewExternalAPI;q(n,c,s)},Ie=function(o){return o!=null},yt={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},ct=function(o){var n=o.mixinConfig,s=o.viewProps,c=o.viewInternalAPI,y=o.viewExternalAPI,T=o.view,x=Object.assign({},s),_={};q(n,[c,y],s);var W=function(){return[s.translateX||0,s.translateY||0]},X=function(){return[s.scaleX||0,s.scaleY||0]},se=function(){return T.rect?Y(T.rect,T.childViews,W(),X()):null};return c.rect={get:se},y.rect={get:se},n.forEach(function(pe){s[pe]=typeof x[pe]>"u"?yt[pe]:x[pe]}),{write:function(){if(ut(_,s))return ft(T.element,s),Object.assign(_,Object.assign({},s)),!0},destroy:function(){}}},ut=function(o,n){if(Object.keys(o).length!==Object.keys(n).length)return!0;for(var s in n)if(n[s]!==o[s])return!0;return!1},ft=function(o,n){var s=n.opacity,c=n.perspective,y=n.translateX,T=n.translateY,x=n.scaleX,_=n.scaleY,W=n.rotateX,X=n.rotateY,se=n.rotateZ,pe=n.originX,Le=n.originY,Ge=n.width,Ue=n.height,Re="",Ze="";(Ie(pe)||Ie(Le))&&(Ze+="transform-origin: "+(pe||0)+"px "+(Le||0)+"px;"),Ie(c)&&(Re+="perspective("+c+"px) "),(Ie(y)||Ie(T))&&(Re+="translate3d("+(y||0)+"px, "+(T||0)+"px, 0) "),(Ie(x)||Ie(_))&&(Re+="scale3d("+(Ie(x)?x:1)+", "+(Ie(_)?_:1)+", 1) "),Ie(se)&&(Re+="rotateZ("+se+"rad) "),Ie(W)&&(Re+="rotateX("+W+"rad) "),Ie(X)&&(Re+="rotateY("+X+"rad) "),Re.length&&(Ze+="transform:"+Re+";"),Ie(s)&&(Ze+="opacity:"+s+";",s===0&&(Ze+="visibility:hidden;"),s<1&&(Ze+="pointer-events:none;")),Ie(Ue)&&(Ze+="height:"+Ue+"px;"),Ie(Ge)&&(Ze+="width:"+Ge+"px;");var vt=o.elementCurrentStyle||"";(Ze.length!==vt.length||Ze!==vt)&&(o.style.cssText=Ze,o.elementCurrentStyle=Ze)},at={styles:ct,listeners:Me,animations:re,apis:He},tt=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n.layoutCalculated||(o.paddingTop=parseInt(s.paddingTop,10)||0,o.marginTop=parseInt(s.marginTop,10)||0,o.marginRight=parseInt(s.marginRight,10)||0,o.marginBottom=parseInt(s.marginBottom,10)||0,o.marginLeft=parseInt(s.marginLeft,10)||0,n.layoutCalculated=!0),o.left=n.offsetLeft||0,o.top=n.offsetTop||0,o.width=n.offsetWidth||0,o.height=n.offsetHeight||0,o.right=o.left+o.width,o.bottom=o.top+o.height,o.scrollTop=n.scrollTop,o.hidden=n.offsetParent===null,o},ke=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=o.tag,s=n===void 0?"div":n,c=o.name,y=c===void 0?null:c,T=o.attributes,x=T===void 0?{}:T,_=o.read,W=_===void 0?function(){}:_,X=o.write,se=X===void 0?function(){}:X,pe=o.create,Le=pe===void 0?function(){}:pe,Ge=o.destroy,Ue=Ge===void 0?function(){}:Ge,Re=o.filterFrameActionsForChild,Ze=Re===void 0?function(pt,Tt){return Tt}:Re,vt=o.didCreateView,Rt=vt===void 0?function(){}:vt,ot=o.didWriteView,Kt=ot===void 0?function(){}:ot,lt=o.ignoreRect,Nr=lt===void 0?!1:lt,Lr=o.ignoreRectUpdate,mt=Lr===void 0?!1:Lr,St=o.mixins,At=St===void 0?[]:St;return function(pt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},kt=v(s,"filepond--"+y,x),Hr=window.getComputedStyle(kt,null),Or=tt(),Gt=null,je=!1,be=[],It=[],qt={},rr={},hr=[se],Er=[W],ho=[Ue],Do=function(){return kt},xl=function(){return be.concat()},jh=function(){return qt},mS=function(vr){return function(Ta,xa){return Ta(vr,xa)}},zh=function(){return Gt||(Gt=Y(Or,be,[0,0],[1,1]),Gt)},yS=function(){return Hr},gS=function(){Gt=null,be.forEach(function(xa){return xa._read()});var vr=!(mt&&Or.width&&Or.height);vr&&tt(Or,kt,Hr);var Ta={root:$a,props:Tt,rect:Or};Er.forEach(function(xa){return xa(Ta)})},hS=function(vr,Ta,xa){var Pl=Ta.length===0;return hr.forEach(function(Yn){var Es=Yn({props:Tt,root:$a,actions:Ta,timestamp:vr,shouldOptimize:xa});Es===!1&&(Pl=!1)}),It.forEach(function(Yn){var Es=Yn.write(vr);Es===!1&&(Pl=!1)}),be.filter(function(Yn){return!!Yn.element.parentNode}).forEach(function(Yn){var Es=Yn._write(vr,Ze(Yn,Ta),xa);Es||(Pl=!1)}),be.forEach(function(Yn,Es){Yn.element.parentNode||($a.appendChild(Yn.element,Es),Yn._read(),Yn._write(vr,Ze(Yn,Ta),xa),Pl=!1)}),je=Pl,Kt({props:Tt,root:$a,actions:Ta,timestamp:vr}),Pl},vS=function(){It.forEach(function(vr){return vr.destroy()}),ho.forEach(function(vr){vr({root:$a,props:Tt})}),be.forEach(function(vr){return vr._destroy()})},Vh={element:{get:Do},style:{get:yS},childViews:{get:xl}},Wh=Object.assign({},Vh,{rect:{get:zh},ref:{get:jh},is:function(vr){return y===vr},appendChild:I(kt),createChildView:mS(pt),linkView:function(vr){return be.push(vr),vr},unlinkView:function(vr){be.splice(be.indexOf(vr),1)},appendChildView:P(kt,be),removeChildView:w(kt,be),registerWriter:function(vr){return hr.push(vr)},registerReader:function(vr){return Er.push(vr)},registerDestroyer:function(vr){return ho.push(vr)},invalidateLayout:function(){return kt.layoutCalculated=!1},dispatch:pt.dispatch,query:pt.query}),Hh={element:{get:Do},childViews:{get:xl},rect:{get:zh},resting:{get:function(){return je}},isRectIgnored:function(){return Nr},_read:gS,_write:hS,_destroy:vS},bS=Object.assign({},Vh,{rect:{get:function(){return Or}}});Object.keys(At).sort(function(uo,vr){return uo==="styles"?1:vr==="styles"?-1:0}).forEach(function(uo){var vr=at[uo]({mixinConfig:At[uo],viewProps:Tt,viewState:rr,viewInternalAPI:Wh,viewExternalAPI:Hh,view:l(bS)});vr&&It.push(vr)});var $a=l(Wh);Le({root:$a,props:Tt});var TS=U(kt);return be.forEach(function(uo,vr){$a.appendChild(uo.element,TS+vr)}),Rt($a),l(Hh)}},Vt=function(o,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:60,c="__framePainter";if(window[c]){window[c].readers.push(o),window[c].writers.push(n);return}window[c]={readers:[o],writers:[n]};var y=window[c],T=1e3/s,x=null,_=null,W=null,X=null,se=function(){document.hidden?(W=function(){return window.setTimeout(function(){return pe(performance.now())},T)},X=function(){return window.clearTimeout(_)}):(W=function(){return window.requestAnimationFrame(pe)},X=function(){return window.cancelAnimationFrame(_)})};document.addEventListener("visibilitychange",function(){X&&X(),se(),pe(performance.now())});var pe=function Le(Ge){_=W(Le),x||(x=Ge);var Ue=Ge-x;Ue<=T||(x=Ge-Ue%T,y.readers.forEach(function(Re){return Re()}),y.writers.forEach(function(Re){return Re(Ge)}))};return se(),pe(performance.now()),{pause:function(){X(_)}}},Dt=function(o,n){return function(s){var c=s.root,y=s.props,T=s.actions,x=T===void 0?[]:T,_=s.timestamp,W=s.shouldOptimize;x.filter(function(X){return o[X.type]}).forEach(function(X){return o[X.type]({root:c,props:y,action:X.data,timestamp:_,shouldOptimize:W})}),n&&n({root:c,props:y,actions:x,timestamp:_,shouldOptimize:W})}},gt=function(o,n){return n.parentNode.insertBefore(o,n)},dt=function(o,n){return n.parentNode.insertBefore(o,n.nextSibling)},_t=function(o){return Array.isArray(o)},Ft=function(o){return o==null},$t=function(o){return o.trim()},Ut=function(o){return""+o},ir=function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:",";return Ft(o)?[]:_t(o)?o:Ut(o).split(n).map($t).filter(function(s){return s.length})},Mt=function(o){return typeof o=="boolean"},or=function(o){return Mt(o)?o:o==="true"},ze=function(o){return typeof o=="string"},cr=function(o){return j(o)?o:ze(o)?Ut(o).replace(/[a-z]+/gi,""):0},xt=function(o){return parseInt(cr(o),10)},Wt=function(o){return parseFloat(cr(o))},it=function(o){return j(o)&&isFinite(o)&&Math.floor(o)===o},Gr=function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;if(it(o))return o;var s=Ut(o).trim();return/MB$/i.test(s)?(s=s.replace(/MB$i/,"").trim(),xt(s)*n*n):/KB/i.test(s)?(s=s.replace(/KB$i/,"").trim(),xt(s)*n):xt(s)},Xt=function(o){return typeof o=="function"},Ur=function(o){for(var n=self,s=o.split("."),c=null;c=s.shift();)if(n=n[c],!n)return null;return n},Qr={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},Uo=function(o){var n={};return n.url=ze(o)?o:o.url||"",n.timeout=o.timeout?parseInt(o.timeout,10):0,n.headers=o.headers?o.headers:{},a(Qr,function(s){n[s]=qr(s,o[s],Qr[s],n.timeout,n.headers)}),n.process=o.process||ze(o)||o.url?n.process:null,n.remove=o.remove||null,delete n.headers,n},qr=function(o,n,s,c,y){if(n===null)return null;if(typeof n=="function")return n;var T={url:s==="GET"||s==="PATCH"?"?"+o+"=":"",method:s,headers:y,withCredentials:!1,timeout:c,onload:null,ondata:null,onerror:null};if(ze(n))return T.url=n,T;if(Object.assign(T,n),ze(T.headers)){var x=T.headers.split(/:(.+)/);T.headers={header:x[0],value:x[1]}}return T.withCredentials=or(T.withCredentials),T},Oo=function(o){return Uo(o)},ur=function(o){return o===null},Ke=function(o){return typeof o=="object"&&o!==null},jr=function(o){return Ke(o)&&ze(o.url)&&Ke(o.process)&&Ke(o.revert)&&Ke(o.restore)&&Ke(o.fetch)},xo=function(o){return _t(o)?"array":ur(o)?"null":it(o)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(o)?"bytes":jr(o)?"api":typeof o},yo=function(o){return o.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')},jo={array:ir,boolean:or,int:function(o){return xo(o)==="bytes"?Gr(o):xt(o)},number:Wt,float:Wt,bytes:Gr,string:function(o){return Xt(o)?o:Ut(o)},function:function(o){return Ur(o)},serverapi:Oo,object:function(o){try{return JSON.parse(yo(o))}catch{return null}}},bt=function(o,n){return jo[n](o)},Ht=function(o,n,s){if(o===n)return o;var c=xo(o);if(c!==s){var y=bt(o,s);if(c=xo(y),y===null)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+s+'"';o=y}return o},mr=function(o,n){var s=o;return{enumerable:!0,get:function(){return s},set:function(y){s=Ht(y,o,n)}}},go=function(o){var n={};return a(o,function(s){var c=o[s];n[s]=mr(c[0],c[1])}),l(n)},an=function(o){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:go(o)}},Cr=function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"-";return o.split(/(?=[A-Z])/).map(function(s){return s.toLowerCase()}).join(n)},Jr=function(o,n){var s={};return a(n,function(c){s[c]={get:function(){return o.getState().options[c]},set:function(T){o.dispatch("SET_"+Cr(c,"_").toUpperCase(),{value:T})}}}),s},yn=function(o){return function(n,s,c){var y={};return a(o,function(T){var x=Cr(T,"_").toUpperCase();y["SET_"+x]=function(_){try{c.options[T]=_.value}catch{}n("DID_SET_"+x,{value:c.options[T]})}}),y}},zo=function(o){return function(n){var s={};return a(o,function(c){s["GET_"+Cr(c,"_").toUpperCase()]=function(y){return n.options[c]}}),s}},Dr={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},Po=function(){return Math.random().toString(36).substring(2,11)};function Mn(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mn=function(o){return typeof o}:Mn=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Mn(f)}var Yo;function st(f,o,n,s){Yo||(Yo=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103);var c=f&&f.defaultProps,y=arguments.length-3;if(!o&&y!==0&&(o={children:void 0}),o&&c)for(var T in c)o[T]===void 0&&(o[T]=c[T]);else o||(o=c||{});if(y===1)o.children=s;else if(y>1){for(var x=new Array(y),_=0;_<y;_++)x[_]=arguments[_+3];o.children=x}return{$$typeof:Yo,type:f,key:n===void 0?null:""+n,ref:null,props:o,_owner:null}}function Ot(f){var o;if(typeof Symbol<"u"&&(Symbol.asyncIterator&&(o=f[Symbol.asyncIterator],o!=null)||Symbol.iterator&&(o=f[Symbol.iterator],o!=null)))return o.call(f);throw new TypeError("Object is not async iterable")}function Yt(f){this.wrapped=f}function zt(f){var o,n;function s(T,x){return new Promise(function(_,W){var X={key:T,arg:x,resolve:_,reject:W,next:null};n?n=n.next=X:(o=n=X,c(T,x))})}function c(T,x){try{var _=f[T](x),W=_.value,X=W instanceof Yt;Promise.resolve(X?W.wrapped:W).then(function(se){if(X){c("next",se);return}y(_.done?"return":"normal",se)},function(se){c("throw",se)})}catch(se){y("throw",se)}}function y(T,x){switch(T){case"return":o.resolve({value:x,done:!0});break;case"throw":o.reject(x);break;default:o.resolve({value:x,done:!1});break}o=o.next,o?c(o.key,o.arg):n=null}this._invoke=s,typeof f.return!="function"&&(this.return=void 0)}typeof Symbol=="function"&&Symbol.asyncIterator&&(zt.prototype[Symbol.asyncIterator]=function(){return this}),zt.prototype.next=function(f){return this._invoke("next",f)},zt.prototype.throw=function(f){return this._invoke("throw",f)},zt.prototype.return=function(f){return this._invoke("return",f)};function Zt(f){return function(){return new zt(f.apply(this,arguments))}}function Vo(f){return new Yt(f)}function zr(f,o){var n={},s=!1;function c(y,T){return s=!0,T=new Promise(function(x){x(f[y](T))}),{done:!1,value:o(T)}}return typeof Symbol=="function"&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(y){return s?(s=!1,y):c("next",y)},typeof f.throw=="function"&&(n.throw=function(y){if(s)throw s=!1,y;return c("throw",y)}),typeof f.return=="function"&&(n.return=function(y){return c("return",y)}),n}function gn(f,o,n,s,c,y,T){try{var x=f[y](T),_=x.value}catch(W){n(W);return}x.done?o(_):Promise.resolve(_).then(s,c)}function Wn(f){return function(){var o=this,n=arguments;return new Promise(function(s,c){var y=f.apply(o,n);function T(_){gn(y,s,c,T,x,"next",_)}function x(_){gn(y,s,c,T,x,"throw",_)}T(void 0)})}}function io(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}function Kr(f,o){for(var n=0;n<o.length;n++){var s=o[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,s.key,s)}}function _r(f,o,n){return o&&Kr(f.prototype,o),n&&Kr(f,n),f}function Hn(f,o){for(var n in o){var s=o[n];s.configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,n,s)}if(Object.getOwnPropertySymbols)for(var c=Object.getOwnPropertySymbols(o),y=0;y<c.length;y++){var T=c[y],s=o[T];s.configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,T,s)}return f}function ri(f,o){for(var n=Object.getOwnPropertyNames(o),s=0;s<n.length;s++){var c=n[s],y=Object.getOwnPropertyDescriptor(o,c);y&&y.configurable&&f[c]===void 0&&Object.defineProperty(f,c,y)}return f}function Zo(f,o,n){return o in f?Object.defineProperty(f,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):f[o]=n,f}function oi(){return oi=Object.assign||function(f){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(f[s]=n[s])}return f},oi.apply(this,arguments)}function Se(f){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{},s=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(s=s.concat(Object.getOwnPropertySymbols(n).filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable}))),s.forEach(function(c){Zo(f,c,n[c])})}return f}function we(f,o){var n=Object.keys(f);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(f);o&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(f,c).enumerable})),n.push.apply(n,s)}return n}function rt(f){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?we(n,!0).forEach(function(s){Zo(f,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(n)):we(n).forEach(function(s){Object.defineProperty(f,s,Object.getOwnPropertyDescriptor(n,s))})}return f}function Nt(f,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(o&&o.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),o&&Pr(f,o)}function Lt(f,o){f.prototype=Object.create(o.prototype),f.prototype.constructor=f,f.__proto__=o}function Rr(f){return Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rr(f)}function Pr(f,o){return Pr=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s},Pr(f,o)}function Eo(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function hn(f,o,n){return Eo()?hn=Reflect.construct:hn=function(c,y,T){var x=[null];x.push.apply(x,y);var _=Function.bind.apply(c,x),W=new _;return T&&Pr(W,T.prototype),W},hn.apply(null,arguments)}function $n(f){return Function.toString.call(f).indexOf("[native code]")!==-1}function bi(f){var o=typeof Map=="function"?new Map:void 0;return bi=function(s){if(s===null||!$n(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof o<"u"){if(o.has(s))return o.get(s);o.set(s,c)}function c(){return hn(s,arguments,Rr(this).constructor)}return c.prototype=Object.create(s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),Pr(c,s)},bi(f)}function ki(f,o){return o!=null&&typeof Symbol<"u"&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](f):f instanceof o}function tr(f){return f&&f.__esModule?f:{default:f}}function vn(f){if(f&&f.__esModule)return f;var o={};if(f!=null){for(var n in f)if(Object.prototype.hasOwnProperty.call(f,n)){var s=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(f,n):{};s.get||s.set?Object.defineProperty(o,n,s):o[n]=f[n]}}return o.default=f,o}function sn(f,o){if(f!==o)throw new TypeError("Cannot instantiate an arrow function")}function ni(f){if(f==null)throw new TypeError("Cannot destructure undefined")}function qi(f,o){if(f==null)return{};var n={},s=Object.keys(f),c,y;for(y=0;y<s.length;y++)c=s[y],!(o.indexOf(c)>=0)&&(n[c]=f[c]);return n}function yl(f,o){if(f==null)return{};var n=qi(f,o),s,c;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(f);for(c=0;c<y.length;c++)s=y[c],!(o.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(f,s)&&(n[s]=f[s])}return n}function M(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function K(f,o){return o&&(typeof o=="object"||typeof o=="function")?o:M(f)}function H(f,o){for(;!Object.prototype.hasOwnProperty.call(f,o)&&(f=Rr(f),f!==null););return f}function ae(f,o,n){return typeof Reflect<"u"&&Reflect.get?ae=Reflect.get:ae=function(c,y,T){var x=H(c,y);if(x){var _=Object.getOwnPropertyDescriptor(x,y);return _.get?_.get.call(T):_.value}},ae(f,o,n||f)}function ue(f,o,n,s){return typeof Reflect<"u"&&Reflect.set?ue=Reflect.set:ue=function(y,T,x,_){var W=H(y,T),X;if(W){if(X=Object.getOwnPropertyDescriptor(W,T),X.set)return X.set.call(_,x),!0;if(!X.writable)return!1}if(X=Object.getOwnPropertyDescriptor(_,T),X){if(!X.writable)return!1;X.value=x,Object.defineProperty(_,T,X)}else Zo(_,T,x);return!0},ue(f,o,n,s)}function ie(f,o,n,s,c){var y=ue(f,o,n,s||f);if(!y&&c)throw new Error("failed to set property");return n}function De(f,o){return o||(o=f.slice(0)),Object.freeze(Object.defineProperties(f,{raw:{value:Object.freeze(o)}}))}function Be(f,o){return o||(o=f.slice(0)),f.raw=o,f}function We(f,o){if(f===Et)throw new ReferenceError(o+" is not defined - temporal dead zone");return f}function Fe(f){throw new Error('"'+f+'" is read-only')}function Qe(f){throw new Error('Class "'+f+'" cannot be referenced in computed property keys.')}var Et={};function er(f,o){return Ao(f)||Va(f,o)||gs()}function gr(f,o){return Ao(f)||gl(f,o)||gs()}function fr(f){return Ao(f)||Fi(f)||gs()}function Vr(f){return eo(f)||Fi(f)||ha()}function eo(f){if(Array.isArray(f)){for(var o=0,n=new Array(f.length);o<f.length;o++)n[o]=f[o];return n}}function Ao(f){if(Array.isArray(f))return f}function Fi(f){if(Symbol.iterator in Object(f)||Object.prototype.toString.call(f)==="[object Arguments]")return Array.from(f)}function Va(f,o){var n=[],s=!0,c=!1,y=void 0;try{for(var T=f[Symbol.iterator](),x;!(s=(x=T.next()).done)&&(n.push(x.value),!(o&&n.length===o));s=!0);}catch(_){c=!0,y=_}finally{try{!s&&T.return!=null&&T.return()}finally{if(c)throw y}}return n}function gl(f,o){for(var n=[],s=f[Symbol.iterator](),c;!(c=s.next()).done&&(n.push(c.value),!(o&&n.length===o)););return n}function ha(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function gs(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function hl(f){return function(){var o=f.apply(this,arguments);return o.next(),o}}function vl(f,o){if(typeof f!="object"||f===null)return f;var n=f[Symbol.toPrimitive];if(n!==void 0){var s=n.call(f,o||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(f)}function Wa(f){var o=vl(f,"string");return typeof o=="symbol"?o:String(o)}function $d(f,o){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and set to use loose mode. To use proposal-class-properties in spec mode with decorators, wait for the next major version of decorators in stage 2.")}function Vp(f,o,n,s){n&&Object.defineProperty(f,o,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(s):void 0})}function Xd(f,o,n,s,c){var y={};return Object.keys(s).forEach(function(T){y[T]=s[T]}),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=n.slice().reverse().reduce(function(T,x){return x(f,o,T)||T},y),c&&y.initializer!==void 0&&(y.value=y.initializer?y.initializer.call(c):void 0,y.initializer=void 0),y.initializer===void 0&&(Object.defineProperty(f,o,y),y=null),y}var fu=0;function Yd(f){return"__private_"+fu+++"_"+f}function Wp(f,o){if(!Object.prototype.hasOwnProperty.call(f,o))throw new TypeError("attempted to use private field on non-instance");return f}function Hp(f,o){var n=o.get(f);if(!n)throw new TypeError("attempted to get private field on non-instance");return n.get?n.get.call(f):n.value}function du(f,o,n){var s=o.get(f);if(!s)throw new TypeError("attempted to set private field on non-instance");if(s.set)s.set.call(f,n);else{if(!s.writable)throw new TypeError("attempted to set read only private field");s.value=n}return n}function F(f,o){if(!o.has(f))throw new TypeError("attempted to set private field on non-instance");var n=o.get(f);if(n.set)return"__destrObj"in n||(n.__destrObj={set value(s){n.set.call(f,s)}}),n.__destrObj;if(!n.writable)throw new TypeError("attempted to set read only private field");return n}function g(f,o,n){if(f!==o)throw new TypeError("Private static access of wrong provenance");return n.value}function O(f,o,n,s){if(f!==o)throw new TypeError("Private static access of wrong provenance");if(!n.writable)throw new TypeError("attempted to set read only private field");return n.value=s,s}function B(f,o,n){if(f!==o)throw new TypeError("Private static access of wrong provenance");return n}function V(){throw new TypeError("attempted to set read only static private field")}function ee(f,o,n,s){var c=he();if(s)for(var y=0;y<s.length;y++)c=s[y](c);var T=o(function(W){c.initializeInstanceElements(W,x.elements)},n),x=c.decorateClass(nt(T.d.map(ge)),f);return c.initializeClassElements(T.F,x.elements),c.runClassFinishers(T.F,x.finishers)}function he(){he=function(){return f};var f={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(o,n){["method","field"].forEach(function(s){n.forEach(function(c){c.kind===s&&c.placement==="own"&&this.defineClassElement(o,c)},this)},this)},initializeClassElements:function(o,n){var s=o.prototype;["method","field"].forEach(function(c){n.forEach(function(y){var T=y.placement;if(y.kind===c&&(T==="static"||T==="prototype")){var x=T==="static"?o:s;this.defineClassElement(x,y)}},this)},this)},defineClassElement:function(o,n){var s=n.descriptor;if(n.kind==="field"){var c=n.initializer;s={enumerable:s.enumerable,writable:s.writable,configurable:s.configurable,value:c===void 0?void 0:c.call(o)}}Object.defineProperty(o,n.key,s)},decorateClass:function(o,n){var s=[],c=[],y={static:[],prototype:[],own:[]};if(o.forEach(function(x){this.addElementPlacement(x,y)},this),o.forEach(function(x){if(!wt(x))return s.push(x);var _=this.decorateElement(x,y);s.push(_.element),s.push.apply(s,_.extras),c.push.apply(c,_.finishers)},this),!n)return{elements:s,finishers:c};var T=this.decorateConstructor(s,n);return c.push.apply(c,T.finishers),T.finishers=c,T},addElementPlacement:function(o,n,s){var c=n[o.placement];if(!s&&c.indexOf(o.key)!==-1)throw new TypeError("Duplicated element ("+o.key+")");c.push(o.key)},decorateElement:function(o,n){for(var s=[],c=[],y=o.decorators,T=y.length-1;T>=0;T--){var x=n[o.placement];x.splice(x.indexOf(o.key),1);var _=this.fromElementDescriptor(o),W=this.toElementFinisherExtras((0,y[T])(_)||_);o=W.element,this.addElementPlacement(o,n),W.finisher&&c.push(W.finisher);var X=W.extras;if(X){for(var se=0;se<X.length;se++)this.addElementPlacement(X[se],n);s.push.apply(s,X)}}return{element:o,finishers:c,extras:s}},decorateConstructor:function(o,n){for(var s=[],c=n.length-1;c>=0;c--){var y=this.fromClassDescriptor(o),T=this.toClassDescriptor((0,n[c])(y)||y);if(T.finisher!==void 0&&s.push(T.finisher),T.elements!==void 0){o=T.elements;for(var x=0;x<o.length-1;x++)for(var _=x+1;_<o.length;_++)if(o[x].key===o[_].key&&o[x].placement===o[_].placement)throw new TypeError("Duplicated element ("+o[x].key+")")}}return{elements:o,finishers:s}},fromElementDescriptor:function(o){var n={kind:o.kind,key:o.key,placement:o.placement,descriptor:o.descriptor},s={value:"Descriptor",configurable:!0};return Object.defineProperty(n,Symbol.toStringTag,s),o.kind==="field"&&(n.initializer=o.initializer),n},toElementDescriptors:function(o){if(o!==void 0)return fr(o).map(function(n){var s=this.toElementDescriptor(n);return this.disallowProperty(n,"finisher","An element descriptor"),this.disallowProperty(n,"extras","An element descriptor"),s},this)},toElementDescriptor:function(o){var n=String(o.kind);if(n!=="method"&&n!=="field")throw new TypeError(`An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "`+n+'"');var s=Wa(o.key),c=String(o.placement);if(c!=="static"&&c!=="prototype"&&c!=="own")throw new TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "`+c+'"');var y=o.descriptor;this.disallowProperty(o,"elements","An element descriptor");var T={kind:n,key:s,placement:c,descriptor:Object.assign({},y)};return n!=="field"?this.disallowProperty(o,"initializer","A method descriptor"):(this.disallowProperty(y,"get","The property descriptor of a field descriptor"),this.disallowProperty(y,"set","The property descriptor of a field descriptor"),this.disallowProperty(y,"value","The property descriptor of a field descriptor"),T.initializer=o.initializer),T},toElementFinisherExtras:function(o){var n=this.toElementDescriptor(o),s=Qt(o,"finisher"),c=this.toElementDescriptors(o.extras);return{element:n,finisher:s,extras:c}},fromClassDescriptor:function(o){var n={kind:"class",elements:o.map(this.fromElementDescriptor,this)},s={value:"Descriptor",configurable:!0};return Object.defineProperty(n,Symbol.toStringTag,s),n},toClassDescriptor:function(o){var n=String(o.kind);if(n!=="class")throw new TypeError(`A class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "`+n+'"');this.disallowProperty(o,"key","A class descriptor"),this.disallowProperty(o,"placement","A class descriptor"),this.disallowProperty(o,"descriptor","A class descriptor"),this.disallowProperty(o,"initializer","A class descriptor"),this.disallowProperty(o,"extras","A class descriptor");var s=Qt(o,"finisher"),c=this.toElementDescriptors(o.elements);return{elements:c,finisher:s}},runClassFinishers:function(o,n){for(var s=0;s<n.length;s++){var c=(0,n[s])(o);if(c!==void 0){if(typeof c!="function")throw new TypeError("Finishers must return a constructor.");o=c}}return o},disallowProperty:function(o,n,s){if(o[n]!==void 0)throw new TypeError(s+" can't have a ."+n+" property.")}};return f}function ge(f){var o=Wa(f.key),n;f.kind==="method"?n={value:f.value,writable:!0,configurable:!0,enumerable:!1}:f.kind==="get"?n={get:f.value,configurable:!0,enumerable:!1}:f.kind==="set"?n={set:f.value,configurable:!0,enumerable:!1}:f.kind==="field"&&(n={configurable:!0,writable:!0,enumerable:!0});var s={kind:f.kind==="field"?"field":"method",key:o,placement:f.static?"static":f.kind==="field"?"own":"prototype",descriptor:n};return f.decorators&&(s.decorators=f.decorators),f.kind==="field"&&(s.initializer=f.value),s}function _e(f,o){f.descriptor.get!==void 0?o.descriptor.get=f.descriptor.get:o.descriptor.set=f.descriptor.set}function nt(f){for(var o=[],n=function(T){return T.kind==="method"&&T.key===c.key&&T.placement===c.placement},s=0;s<f.length;s++){var c=f[s],y;if(c.kind==="method"&&(y=o.find(n)))if(ht(c.descriptor)||ht(y.descriptor)){if(wt(c)||wt(y))throw new ReferenceError("Duplicated methods ("+c.key+") can't be decorated.");y.descriptor=c.descriptor}else{if(wt(c)){if(wt(y))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+c.key+").");y.decorators=c.decorators}_e(c,y)}else o.push(c)}return o}function wt(f){return f.decorators&&f.decorators.length}function ht(f){return f!==void 0&&!(f.value===void 0&&f.writable===void 0)}function Qt(f,o){var n=f[o];if(n!==void 0&&typeof n!="function")throw new TypeError("Expected '"+o+"' to be a function");return n}function ao(f,o,n){if(!o.has(f))throw new TypeError("attempted to get private field on non-instance");return n}function S(){throw new TypeError("attempted to reassign private method")}function d(f,o){d=function(x,_){return new y(x,_)};var n=bi(RegExp),s=RegExp.prototype,c=new WeakMap;function y(x,_){var W=n.call(this,x);return c.set(W,_),W}Nt(y,n),y.prototype.exec=function(x){var _=s.exec.call(this,x);return _&&(_.groups=T(_,this)),_},y.prototype[Symbol.replace]=function(x,_){if(typeof _=="string"){var W=c.get(this);return s[Symbol.replace].call(this,x,_.replace(/\$<([^>]+)>/g,function(se,pe){return"$"+W[pe]}))}else if(typeof _=="function"){var X=this;return s[Symbol.replace].call(this,x,function(){var se=[];return se.push.apply(se,arguments),typeof se[se.length-1]!="object"&&se.push(T(se,X)),_.apply(this,se)})}else return s[Symbol.replace].call(this,x,_)};function T(x,_){var W=c.get(_);return Object.keys(W).reduce(function(X,se){return X[se]=x[W[se]],X},Object.create(null))}return d.apply(this,arguments)}var b=function(o,n){return o.splice(n,1)},C=function(o,n){n?o():document.hidden?Promise.resolve(1).then(o):setTimeout(o,0)},A=function(){var o=[],n=function(y,T){b(o,o.findIndex(function(x){return x.event===y&&(x.cb===T||!T)}))},s=function(y,T,x){o.filter(function(_){return _.event===y}).map(function(_){return _.cb}).forEach(function(_){return C(function(){return _.apply(void 0,Vr(T))},x)})};return{fireSync:function(y){for(var T=arguments.length,x=new Array(T>1?T-1:0),_=1;_<T;_++)x[_-1]=arguments[_];s(y,x,!0)},fire:function(y){for(var T=arguments.length,x=new Array(T>1?T-1:0),_=1;_<T;_++)x[_-1]=arguments[_];s(y,x,!1)},on:function(y,T){o.push({event:y,cb:T})},onOnce:function(y,T){o.push({event:y,cb:function(){n(y,T),T.apply(void 0,arguments)}})},off:n}},$=function(o,n,s){Object.getOwnPropertyNames(o).filter(function(c){return!s.includes(c)}).forEach(function(c){return Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(o,c))})},Q=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],z=function(o){var n={};return $(o,n,Q),n},J=function(o){o.forEach(function(n,s){n.released&&b(o,s)})},fe={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},Pe={INPUT:1,LIMBO:2,LOCAL:3},Ve=function(o){return/[^0-9]+/.exec(o)},Ae=function(){return Ve(1.1.toLocaleString())[0]},Ce=function(){var o=Ae(),n=1e3.toLocaleString(),s="1000";return n!==s?Ve(n)[0]:o==="."?",":"."},te={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},et=[],qe=function(o,n,s){return new Promise(function(c,y){var T=et.filter(function(_){return _.key===o}).map(function(_){return _.cb});if(T.length===0){c(n);return}var x=T.shift();T.reduce(function(_,W){return _.then(function(X){return W(X,s)})},x(n,s)).then(function(_){return c(_)}).catch(function(_){return y(_)})})},jt=function(o,n,s){return et.filter(function(c){return c.key===o}).map(function(c){return c.cb(n,s)})},Bt=function(o,n){return et.push({key:o,cb:n})},dr=function(o){return Object.assign(wr,o)},sr=function(){return Object.assign({},wr)},Sr=function(o){a(o,function(n,s){wr[n]&&(wr[n][0]=Ht(s,wr[n][0],wr[n][1]))})},wr={id:[null,te.STRING],name:["filepond",te.STRING],disabled:[!1,te.BOOLEAN],className:[null,te.STRING],required:[!1,te.BOOLEAN],captureMethod:[null,te.STRING],allowSyncAcceptAttribute:[!0,te.BOOLEAN],allowDrop:[!0,te.BOOLEAN],allowBrowse:[!0,te.BOOLEAN],allowPaste:[!0,te.BOOLEAN],allowMultiple:[!1,te.BOOLEAN],allowReplace:[!0,te.BOOLEAN],allowRevert:[!0,te.BOOLEAN],allowRemove:[!0,te.BOOLEAN],allowProcess:[!0,te.BOOLEAN],allowReorder:[!1,te.BOOLEAN],allowDirectoriesOnly:[!1,te.BOOLEAN],storeAsFile:[!1,te.BOOLEAN],forceRevert:[!1,te.BOOLEAN],maxFiles:[null,te.INT],checkValidity:[!1,te.BOOLEAN],itemInsertLocationFreedom:[!0,te.BOOLEAN],itemInsertLocation:["before",te.STRING],itemInsertInterval:[75,te.INT],dropOnPage:[!1,te.BOOLEAN],dropOnElement:[!0,te.BOOLEAN],dropValidation:[!1,te.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],te.ARRAY],instantUpload:[!0,te.BOOLEAN],maxParallelUploads:[2,te.INT],allowMinimumUploadDuration:[!0,te.BOOLEAN],chunkUploads:[!1,te.BOOLEAN],chunkForce:[!1,te.BOOLEAN],chunkSize:[5e6,te.INT],chunkRetryDelays:[[500,1e3,3e3],te.ARRAY],server:[null,te.SERVER_API],fileSizeBase:[1e3,te.INT],labelFileSizeBytes:["bytes",te.STRING],labelFileSizeKilobytes:["KB",te.STRING],labelFileSizeMegabytes:["MB",te.STRING],labelFileSizeGigabytes:["GB",te.STRING],labelDecimalSeparator:[Ae(),te.STRING],labelThousandsSeparator:[Ce(),te.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',te.STRING],labelInvalidField:["Field contains invalid files",te.STRING],labelFileWaitingForSize:["Waiting for size",te.STRING],labelFileSizeNotAvailable:["Size not available",te.STRING],labelFileCountSingular:["file in list",te.STRING],labelFileCountPlural:["files in list",te.STRING],labelFileLoading:["Loading",te.STRING],labelFileAdded:["Added",te.STRING],labelFileLoadError:["Error during load",te.STRING],labelFileRemoved:["Removed",te.STRING],labelFileRemoveError:["Error during remove",te.STRING],labelFileProcessing:["Uploading",te.STRING],labelFileProcessingComplete:["Upload complete",te.STRING],labelFileProcessingAborted:["Upload cancelled",te.STRING],labelFileProcessingError:["Error during upload",te.STRING],labelFileProcessingRevertError:["Error during revert",te.STRING],labelTapToCancel:["tap to cancel",te.STRING],labelTapToRetry:["tap to retry",te.STRING],labelTapToUndo:["tap to undo",te.STRING],labelButtonRemoveItem:["Remove",te.STRING],labelButtonAbortItemLoad:["Abort",te.STRING],labelButtonRetryItemLoad:["Retry",te.STRING],labelButtonAbortItemProcessing:["Cancel",te.STRING],labelButtonUndoItemProcessing:["Undo",te.STRING],labelButtonRetryItemProcessing:["Retry",te.STRING],labelButtonProcessItem:["Upload",te.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',te.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',te.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',te.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',te.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',te.STRING],oninit:[null,te.FUNCTION],onwarning:[null,te.FUNCTION],onerror:[null,te.FUNCTION],onactivatefile:[null,te.FUNCTION],oninitfile:[null,te.FUNCTION],onaddfilestart:[null,te.FUNCTION],onaddfileprogress:[null,te.FUNCTION],onaddfile:[null,te.FUNCTION],onprocessfilestart:[null,te.FUNCTION],onprocessfileprogress:[null,te.FUNCTION],onprocessfileabort:[null,te.FUNCTION],onprocessfilerevert:[null,te.FUNCTION],onprocessfile:[null,te.FUNCTION],onprocessfiles:[null,te.FUNCTION],onremovefile:[null,te.FUNCTION],onpreparefile:[null,te.FUNCTION],onupdatefiles:[null,te.FUNCTION],onreorderfiles:[null,te.FUNCTION],beforeDropFile:[null,te.FUNCTION],beforeAddFile:[null,te.FUNCTION],beforeRemoveFile:[null,te.FUNCTION],beforePrepareFile:[null,te.FUNCTION],stylePanelLayout:[null,te.STRING],stylePanelAspectRatio:[null,te.STRING],styleItemPanelAspectRatio:[null,te.STRING],styleButtonRemoveItemPosition:["left",te.STRING],styleButtonProcessItemPosition:["right",te.STRING],styleLoadIndicatorPosition:["right",te.STRING],styleProgressIndicatorPosition:["right",te.STRING],styleButtonRemoveItemAlign:[!1,te.BOOLEAN],files:[[],te.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],te.ARRAY]},br=function(o,n){return Ft(n)?o[0]||null:it(n)?o[n]||null:(typeof n=="object"&&(n=n.id),o.find(function(s){return s.id===n})||null)},Ar=function(o){if(Ft(o))return o;if(/:/.test(o)){var n=o.split(":");return n[1]/n[0]}return parseFloat(o)},lr=function(o){return o.filter(function(n){return!n.archived})},Xr={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},yr=null,Tr=function(){if(yr===null)try{var o=new DataTransfer;o.items.add(new File(["hello world"],"This_Works.txt"));var n=document.createElement("input");n.setAttribute("type","file"),n.files=o.files,yr=n.files.length===1}catch{yr=!1}return yr},Wr=[fe.LOAD_ERROR,fe.PROCESSING_ERROR,fe.PROCESSING_REVERT_ERROR],so=[fe.LOADING,fe.PROCESSING,fe.PROCESSING_QUEUED,fe.INIT],wo=[fe.PROCESSING_COMPLETE],Co=function(o){return Wr.includes(o.status)},bn=function(o){return so.includes(o.status)},Qo=function(o){return wo.includes(o.status)},co=function(o){return Ke(o.options.server)&&(Ke(o.options.server.process)||Xt(o.options.server.process))},Mr=function(o){return{GET_STATUS:function(){var s=lr(o.items),c=Xr.EMPTY,y=Xr.ERROR,T=Xr.BUSY,x=Xr.IDLE,_=Xr.READY;return s.length===0?c:s.some(Co)?y:s.some(bn)?T:s.some(Qo)?_:x},GET_ITEM:function(s){return br(o.items,s)},GET_ACTIVE_ITEM:function(s){return br(lr(o.items),s)},GET_ACTIVE_ITEMS:function(){return lr(o.items)},GET_ITEMS:function(){return o.items},GET_ITEM_NAME:function(s){var c=br(o.items,s);return c?c.filename:null},GET_ITEM_SIZE:function(s){var c=br(o.items,s);return c?c.fileSize:null},GET_STYLES:function(){return Object.keys(o.options).filter(function(s){return/^style/.test(s)}).map(function(s){return{name:s,value:o.options[s]}})},GET_PANEL_ASPECT_RATIO:function(){var s=/circle/.test(o.options.stylePanelLayout),c=s?1:Ar(o.options.stylePanelAspectRatio);return c},GET_ITEM_PANEL_ASPECT_RATIO:function(){return o.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(s){return lr(o.items).filter(function(c){return c.status===s})},GET_TOTAL_ITEMS:function(){return lr(o.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return o.options.storeAsFile&&Tr()&&!co(o)},IS_ASYNC:function(){return co(o)},GET_FILE_SIZE_LABELS:function(s){return{labelBytes:s("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:s("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:s("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:s("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},Io=function(o){var n=lr(o.items).length;if(!o.options.allowMultiple)return n===0;var s=o.options.maxFiles;return s===null||n<s},qo=function(o,n,s){return Math.max(Math.min(s,o),n)},Jo=function(o,n,s){return o.splice(n,0,s)},Nn=function(o,n,s){return Ft(n)?null:typeof s>"u"?(o.push(n),n):(s=qo(s,0,o.length),Jo(o,s,n),n)},ii=function(o){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(o)},Ln=function(o){return(""+o).split("/").pop().split("?").shift()},Xn=function(o){return o.split(".").pop()},ln=function(o){if(typeof o!="string")return"";var n=o.split("/").pop();return/svg/.test(n)?"svg":/zip|compressed/.test(n)?"zip":/plain/.test(n)?"txt":/msword/.test(n)?"doc":/[a-z]+/.test(n)?n==="jpeg"?"jpg":n:""},to=function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(n+o).slice(-n.length)},Ji=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Date;return o.getFullYear()+"-"+to(o.getMonth()+1,"00")+"-"+to(o.getDate(),"00")+"_"+to(o.getHours(),"00")+"-"+to(o.getMinutes(),"00")+"-"+to(o.getSeconds(),"00")},Bi=function(o,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,y=typeof s=="string"?o.slice(0,o.size,s):o.slice(0,o.size,o.type);return y.lastModifiedDate=new Date,o._relativePath&&(y._relativePath=o._relativePath),ze(n)||(n=Ji()),n&&c===null&&Xn(n)?y.name=n:(c=c||ln(y.type),y.name=n+(c?"."+c:"")),y},Zd=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},hs=function(o,n){var s=Zd();if(s){var c=new s;return c.append(o),c.getBlob(n)}return new Blob([o],{type:n})},va=function(o,n){for(var s=new ArrayBuffer(o.length),c=new Uint8Array(s),y=0;y<o.length;y++)c[y]=o.charCodeAt(y);return hs(s,n)},Ki=function(o){return(/^data:(.+);/.exec(o)||[])[1]||null},$p=function(o){var n=o.split(",")[1];return n.replace(/\s/g,"")},bw=function(o){return atob($p(o))},Tw=function(o){var n=Ki(o),s=bw(o);return va(s,n)},xw=function(o,n,s){return Bi(Tw(o),n,null,s)},Pw=function(o){if(!/^content-disposition:/i.test(o))return null;var n=o.split(/filename=|filename\*=.+''/).splice(1).map(function(s){return s.trim().replace(/^["']|[;"']{0,2}$/g,"")}).filter(function(s){return s.length});return n.length?decodeURI(n[n.length-1]):null},Ew=function(o){if(/content-length:/i.test(o)){var n=o.match(/[0-9]+/)[0];return n?parseInt(n,10):null}return null},ww=function(o){if(/x-content-transfer-id:/i.test(o)){var n=(o.split(":")[1]||"").trim();return n||null}return null},Qd=function(o){var n={source:null,name:null,size:null},s=o.split(`
|
|
2
|
-
`),c=!0,y=!1,T=void 0;try{for(var x=s[Symbol.iterator](),_;!(c=(_=x.next()).done);c=!0){var W=_.value,X=Pw(W);if(X){n.name=X;continue}var se=Ew(W);if(se){n.size=se;continue}var pe=ww(W);if(pe){n.source=pe;continue}}}catch(Le){y=!0,T=Le}finally{try{!c&&x.return!=null&&x.return()}finally{if(y)throw T}}return n},Iw=function(o){var n={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},s=function(){return n.progress},c=function(){n.request&&n.request.abort&&n.request.abort()},y=function(){var W=n.source;x.fire("init",W),W instanceof File?x.fire("load",W):W instanceof Blob?x.fire("load",Bi(W,W.name)):ii(W)?x.fire("load",xw(W)):T(W)},T=function(W){if(!o){x.fire("error",{type:"error",body:"Can't load URL",code:400});return}n.timestamp=Date.now(),n.request=o(W,function(X){n.duration=Date.now()-n.timestamp,n.complete=!0,X instanceof Blob&&(X=Bi(X,X.name||Ln(W))),x.fire("load",X instanceof Blob?X:X?X.body:null)},function(X){x.fire("error",typeof X=="string"?{type:"error",code:0,body:X}:X)},function(X,se,pe){if(pe&&(n.size=pe),n.duration=Date.now()-n.timestamp,!X){n.progress=null;return}n.progress=se/pe,x.fire("progress",n.progress)},function(){x.fire("abort")},function(X){var se=Qd(typeof X=="string"?X:X.headers);x.fire("meta",{size:n.size||se.size,filename:se.name,source:se.source})})},x=Object.assign({},A(),{setSource:function(W){return n.source=W},getProgress:s,abort:c,load:y});return x},jg=function(o){return/GET|HEAD/.test(o)},vs=function(o,n,s){var c={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){y=!0,x.abort()}},y=!1,T=!1;s=Object.assign({method:"POST",headers:{},withCredentials:!1},s),n=encodeURI(n),jg(s.method)&&o&&(n=""+n+encodeURIComponent(typeof o=="string"?o:JSON.stringify(o)));var x=new XMLHttpRequest,_=jg(s.method)?x:x.upload;return _.onprogress=function(W){y||c.onprogress(W.lengthComputable,W.loaded,W.total)},x.onreadystatechange=function(){x.readyState<2||x.readyState===4&&x.status===0||T||(T=!0,c.onheaders(x))},x.onload=function(){x.status>=200&&x.status<300?c.onload(x):c.onerror(x)},x.onerror=function(){return c.onerror(x)},x.onabort=function(){y=!0,c.onabort()},x.ontimeout=function(){return c.ontimeout(x)},x.open(s.method,n,!0),it(s.timeout)&&(x.timeout=s.timeout),Object.keys(s.headers).forEach(function(W){var X=unescape(encodeURIComponent(s.headers[W]));x.setRequestHeader(W,X)}),s.responseType&&(x.responseType=s.responseType),s.withCredentials&&(x.withCredentials=!0),x.send(o),c},Mo=function(o,n,s,c){return{type:o,code:n,body:s,headers:c}},bs=function(o){return function(n){o(Mo("error",0,"Timeout",n.getAllResponseHeaders()))}},zg=function(o){return/\?/.test(o)},Xp=function(){for(var o="",n=arguments.length,s=new Array(n),c=0;c<n;c++)s[c]=arguments[c];return s.forEach(function(y){o+=zg(o)&&zg(y)?y.replace(/\?/,"&"):y}),o},qd=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(typeof n=="function")return n;if(!n||!ze(n.url))return null;var s=n.onload||function(y){return y},c=n.onerror||function(y){return null};return function(y,T,x,_,W,X){var se=vs(y,Xp(o,n.url),Object.assign({},n,{responseType:"blob"}));return se.onload=function(pe){var Le=pe.getAllResponseHeaders(),Ge=Qd(Le).name||Ln(y);T(Mo("load",pe.status,n.method==="HEAD"?null:Bi(s(pe.response),Ge),Le))},se.onerror=function(pe){x(Mo("error",pe.status,c(pe.response)||pe.statusText,pe.getAllResponseHeaders()))},se.onheaders=function(pe){X(Mo("headers",pe.status,null,pe.getAllResponseHeaders()))},se.ontimeout=bs(x),se.onprogress=_,se.onabort=W,se}},Ti={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},Rw=function(o,n,s,c,y,T,x,_,W,X,se){for(var pe=[],Le=se.chunkTransferId,Ge=se.chunkServer,Ue=se.chunkSize,Re=se.chunkRetryDelays,Ze={serverId:Le,aborted:!1},vt=n.ondata||function(je){return je},Rt=n.onload||function(je,be){return be==="HEAD"?je.getResponseHeader("Upload-Offset"):je.response},ot=n.onerror||function(je){return null},Kt=function(be){var It=new FormData;Ke(y)&&It.append(s,JSON.stringify(y));var qt=typeof n.headers=="function"?n.headers(c,y):Object.assign({},n.headers,{"Upload-Length":c.size}),rr=Object.assign({},n,{headers:qt}),hr=vs(vt(It),Xp(o,n.url),rr);hr.onload=function(Er){return be(Rt(Er,rr.method))},hr.onerror=function(Er){return x(Mo("error",Er.status,ot(Er.response)||Er.statusText,Er.getAllResponseHeaders()))},hr.ontimeout=bs(x)},lt=function(be){var It=Xp(o,Ge.url,Ze.serverId),qt=typeof n.headers=="function"?n.headers(Ze.serverId):Object.assign({},n.headers),rr={headers:qt,method:"HEAD"},hr=vs(null,It,rr);hr.onload=function(Er){return be(Rt(Er,rr.method))},hr.onerror=function(Er){return x(Mo("error",Er.status,ot(Er.response)||Er.statusText,Er.getAllResponseHeaders()))},hr.ontimeout=bs(x)},Nr=Math.floor(c.size/Ue),Lr=0;Lr<=Nr;Lr++){var mt=Lr*Ue,St=c.slice(mt,mt+Ue,"application/offset+octet-stream");pe[Lr]={index:Lr,size:St.size,offset:mt,data:St,file:c,progress:0,retries:Vr(Re),status:Ti.QUEUED,error:null,request:null,timeout:null}}var At=function(){return T(Ze.serverId)},pt=function(be){return be.status===Ti.QUEUED||be.status===Ti.ERROR},Tt=function(be){if(!Ze.aborted){if(be=be||pe.find(pt),!be){pe.every(function(Do){return Do.status===Ti.COMPLETE})&&At();return}be.status=Ti.PROCESSING,be.progress=null;var It=Ge.ondata||function(Do){return Do},qt=Ge.onerror||function(Do){return null},rr=Ge.onload||function(){},hr=Xp(o,Ge.url,Ze.serverId),Er=typeof Ge.headers=="function"?Ge.headers(be):Object.assign({},Ge.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":be.offset,"Upload-Length":c.size,"Upload-Name":c.name}),ho=be.request=vs(It(be.data),hr,Object.assign({},Ge,{headers:Er}));ho.onload=function(Do){rr(Do,be.index,pe.length),be.status=Ti.COMPLETE,be.request=null,Or()},ho.onprogress=function(Do,xl,jh){be.progress=Do?xl:null,Hr()},ho.onerror=function(Do){be.status=Ti.ERROR,be.request=null,be.error=qt(Do.response)||Do.statusText,kt(be)||x(Mo("error",Do.status,qt(Do.response)||Do.statusText,Do.getAllResponseHeaders()))},ho.ontimeout=function(Do){be.status=Ti.ERROR,be.request=null,kt(be)||bs(x)(Do)},ho.onabort=function(){be.status=Ti.QUEUED,be.request=null,W()}}},kt=function(be){return be.retries.length===0?!1:(be.status=Ti.WAITING,clearTimeout(be.timeout),be.timeout=setTimeout(function(){Tt(be)},be.retries.shift()),!0)},Hr=function(){var be=pe.reduce(function(qt,rr){return qt===null||rr.progress===null?null:qt+rr.progress},0);if(be===null)return _(!1,0,0);var It=pe.reduce(function(qt,rr){return qt+rr.size},0);_(!0,be,It)},Or=function(){var be=pe.filter(function(It){return It.status===Ti.PROCESSING}).length;be>=1||Tt()},Gt=function(){pe.forEach(function(be){clearTimeout(be.timeout),be.request&&be.request.abort()})};return Ze.serverId?lt(function(je){Ze.aborted||(pe.filter(function(be){return be.offset<je}).forEach(function(be){be.status=Ti.COMPLETE,be.progress=be.size}),Or())}):Kt(function(je){Ze.aborted||(X(je),Ze.serverId=je,Or())}),{abort:function(){Ze.aborted=!0,Gt()}}},Sw=function(o,n,s,c){return function(y,T,x,_,W,X,se){if(y){var pe=c.chunkUploads,Le=pe&&y.size>c.chunkSize,Ge=pe&&(Le||c.chunkForce);if(y instanceof Blob&&Ge)return Rw(o,n,s,y,T,x,_,W,X,se,c);var Ue=n.ondata||function(lt){return lt},Re=n.onload||function(lt){return lt},Ze=n.onerror||function(lt){return null},vt=typeof n.headers=="function"?n.headers(y,T)||{}:Object.assign({},n.headers),Rt=Object.assign({},n,{headers:vt}),ot=new FormData;Ke(T)&&ot.append(s,JSON.stringify(T)),(y instanceof Blob?[{name:null,file:y}]:y).forEach(function(lt){ot.append(s,lt.file,lt.name===null?lt.file.name:""+lt.name+lt.file.name)});var Kt=vs(Ue(ot),Xp(o,n.url),Rt);return Kt.onload=function(lt){x(Mo("load",lt.status,Re(lt.response),lt.getAllResponseHeaders()))},Kt.onerror=function(lt){_(Mo("error",lt.status,Ze(lt.response)||lt.statusText,lt.getAllResponseHeaders()))},Kt.ontimeout=bs(_),Kt.onprogress=W,Kt.onabort=X,Kt}}},Ow=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,s=arguments.length>2?arguments[2]:void 0,c=arguments.length>3?arguments[3]:void 0;return typeof n=="function"?function(){for(var y=arguments.length,T=new Array(y),x=0;x<y;x++)T[x]=arguments[x];return n.apply(void 0,[s].concat(T,[c]))}:!n||!ze(n.url)?null:Sw(o,n,s,c)},Yp=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;if(typeof n=="function")return n;if(!n||!ze(n.url))return function(y,T){return T()};var s=n.onload||function(y){return y},c=n.onerror||function(y){return null};return function(y,T,x){var _=vs(y,o+n.url,n);return _.onload=function(W){T(Mo("load",W.status,s(W.response),W.getAllResponseHeaders()))},_.onerror=function(W){x(Mo("error",W.status,c(W.response)||W.statusText,W.getAllResponseHeaders()))},_.ontimeout=bs(x),_}},Vg=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return o+Math.random()*(n-o)},Cw=function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:25,y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:250,T=null,x=Date.now(),_=function W(){var X=Date.now()-x,se=Vg(c,y);X+se>n&&(se=X+se-n);var pe=X/n;if(pe>=1||document.hidden){o(1);return}o(pe),T=setTimeout(W,se)};return n>0&&_(),{clear:function(){clearTimeout(T)}}},Dw=function(o,n){var s={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},c=n.allowMinimumUploadDuration,y=function(pe,Le){var Ge=function(){s.duration===0||s.progress===null||X.fire("progress",X.getProgress())},Ue=function(){s.complete=!0,X.fire("load-perceived",s.response.body)};X.fire("start"),s.timestamp=Date.now(),s.perceivedPerformanceUpdater=Cw(function(Re){s.perceivedProgress=Re,s.perceivedDuration=Date.now()-s.timestamp,Ge(),s.response&&s.perceivedProgress===1&&!s.complete&&Ue()},c?Vg(750,1500):0),s.request=o(pe,Le,function(Re){s.response=Ke(Re)?Re:{type:"load",code:200,body:""+Re,headers:{}},s.duration=Date.now()-s.timestamp,s.progress=1,X.fire("load",s.response.body),(!c||c&&s.perceivedProgress===1)&&Ue()},function(Re){s.perceivedPerformanceUpdater.clear(),X.fire("error",Ke(Re)?Re:{type:"error",code:0,body:""+Re})},function(Re,Ze,vt){s.duration=Date.now()-s.timestamp,s.progress=Re?Ze/vt:null,Ge()},function(){s.perceivedPerformanceUpdater.clear(),X.fire("abort",s.response?s.response.body:null)},function(Re){X.fire("transfer",Re)})},T=function(){s.request&&(s.perceivedPerformanceUpdater.clear(),s.request.abort&&s.request.abort(),s.complete=!0)},x=function(){T(),s.complete=!1,s.perceivedProgress=0,s.progress=0,s.timestamp=null,s.perceivedDuration=0,s.duration=0,s.request=null,s.response=null},_=c?function(){return s.progress?Math.min(s.progress,s.perceivedProgress):null}:function(){return s.progress||null},W=c?function(){return Math.min(s.duration,s.perceivedDuration)}:function(){return s.duration},X=Object.assign({},A(),{process:y,abort:T,getProgress:_,getDuration:W,reset:x});return X},Wg=function(o){return o.substring(0,o.lastIndexOf("."))||o},_w=function(o){var n=[o.name,o.size,o.type];return o instanceof Blob||ii(o)?n[0]=o.name||Ji():ii(o)?(n[1]=o.length,n[2]=Ki(o)):ze(o)&&(n[0]=Ln(o),n[1]=0,n[2]="application/octet-stream"),{name:n[0],size:n[1],type:n[2]}},Ts=function(o){return!!(o instanceof File||o instanceof Blob&&o.name)},Aw=function f(o){if(!Ke(o))return o;var n=_t(o)?[]:{};for(var s in o)if(o.hasOwnProperty(s)){var c=o[s];n[s]=c&&Ke(c)?f(c):c}return n},Mw=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,c=Po(),y={archived:!1,frozen:!1,released:!1,source:null,file:s,serverFileReference:n,transferId:null,processingAborted:!1,status:n?fe.PROCESSING_COMPLETE:fe.INIT,activeLoader:null,activeProcessor:null},T=null,x={},_=function(St){return y.status=St},W=function(St){if(!(y.released||y.frozen)){for(var At=arguments.length,pt=new Array(At>1?At-1:0),Tt=1;Tt<At;Tt++)pt[Tt-1]=arguments[Tt];Nr.fire.apply(Nr,[St].concat(pt))}},X=function(){return Xn(y.file.name)},se=function(){return y.file.type},pe=function(){return y.file.size},Le=function(){return y.file},Ge=function(St,At,pt){if(y.source=St,Nr.fireSync("init"),y.file){Nr.fireSync("load-skip");return}y.file=_w(St),At.on("init",function(){W("load-init")}),At.on("meta",function(Tt){y.file.size=Tt.size,y.file.filename=Tt.filename,Tt.source&&(o=Pe.LIMBO,y.serverFileReference=Tt.source,y.status=fe.PROCESSING_COMPLETE),W("load-meta")}),At.on("progress",function(Tt){_(fe.LOADING),W("load-progress",Tt)}),At.on("error",function(Tt){_(fe.LOAD_ERROR),W("load-request-error",Tt)}),At.on("abort",function(){_(fe.INIT),W("load-abort")}),At.on("load",function(Tt){y.activeLoader=null;var kt=function(Gt){y.file=Ts(Gt)?Gt:y.file,o===Pe.LIMBO&&y.serverFileReference?_(fe.PROCESSING_COMPLETE):_(fe.IDLE),W("load")},Hr=function(Gt){y.file=Tt,W("load-meta"),_(fe.LOAD_ERROR),W("load-file-error",Gt)};if(y.serverFileReference){kt(Tt);return}pt(Tt,kt,Hr)}),At.setSource(St),y.activeLoader=At,At.load()},Ue=function(){y.activeLoader&&y.activeLoader.load()},Re=function(){if(y.activeLoader){y.activeLoader.abort();return}_(fe.INIT),W("load-abort")},Ze=function mt(St,At){if(y.processingAborted){y.processingAborted=!1;return}if(_(fe.PROCESSING),T=null,!(y.file instanceof Blob)){Nr.on("load",function(){mt(St,At)});return}St.on("load",function(kt){y.transferId=null,y.serverFileReference=kt}),St.on("transfer",function(kt){y.transferId=kt}),St.on("load-perceived",function(kt){y.activeProcessor=null,y.transferId=null,y.serverFileReference=kt,_(fe.PROCESSING_COMPLETE),W("process-complete",kt)}),St.on("start",function(){W("process-start")}),St.on("error",function(kt){y.activeProcessor=null,_(fe.PROCESSING_ERROR),W("process-error",kt)}),St.on("abort",function(kt){y.activeProcessor=null,y.serverFileReference=kt,_(fe.IDLE),W("process-abort"),T&&T()}),St.on("progress",function(kt){W("process-progress",kt)});var pt=function(Hr){y.archived||St.process(Hr,Object.assign({},x))},Tt=console.error;At(y.file,pt,Tt),y.activeProcessor=St},vt=function(){y.processingAborted=!1,_(fe.PROCESSING_QUEUED)},Rt=function(){return new Promise(function(St){if(!y.activeProcessor){y.processingAborted=!0,_(fe.IDLE),W("process-abort"),St();return}T=function(){St()},y.activeProcessor.abort()})},ot=function(St,At){return new Promise(function(pt,Tt){var kt=y.serverFileReference!==null?y.serverFileReference:y.transferId;if(kt===null){pt();return}St(kt,function(){y.serverFileReference=null,y.transferId=null,pt()},function(Hr){if(!At){pt();return}_(fe.PROCESSING_REVERT_ERROR),W("process-revert-error"),Tt(Hr)}),_(fe.IDLE),W("process-revert")})},Kt=function(St,At,pt){var Tt=St.split("."),kt=Tt[0],Hr=Tt.pop(),Or=x;Tt.forEach(function(Gt){return Or=Or[Gt]}),JSON.stringify(Or[Hr])!==JSON.stringify(At)&&(Or[Hr]=At,W("metadata-update",{key:kt,value:x[kt],silent:pt}))},lt=function(St){return Aw(St?x[St]:x)},Nr=Object.assign({id:{get:function(){return c}},origin:{get:function(){return o},set:function(St){return o=St}},serverId:{get:function(){return y.serverFileReference}},transferId:{get:function(){return y.transferId}},status:{get:function(){return y.status}},filename:{get:function(){return y.file.name}},filenameWithoutExtension:{get:function(){return Wg(y.file.name)}},fileExtension:{get:X},fileType:{get:se},fileSize:{get:pe},file:{get:Le},relativePath:{get:function(){return y.file._relativePath}},source:{get:function(){return y.source}},getMetadata:lt,setMetadata:function(St,At,pt){if(Ke(St)){var Tt=St;return Object.keys(Tt).forEach(function(kt){Kt(kt,Tt[kt],At)}),St}return Kt(St,At,pt),At},extend:function(St,At){return Lr[St]=At},abortLoad:Re,retryLoad:Ue,requestProcessing:vt,abortProcessing:Rt,load:Ge,process:Ze,revert:ot},A(),{freeze:function(){return y.frozen=!0},release:function(){return y.released=!0},released:{get:function(){return y.released}},archive:function(){return y.archived=!0},archived:{get:function(){return y.archived}},setFile:function(St){return y.file=St}}),Lr=l(Nr);return Lr},Nw=function(o,n){return Ft(n)?0:ze(n)?o.findIndex(function(s){return s.id===n}):-1},Hg=function(o,n){var s=Nw(o,n);if(!(s<0))return o[s]||null},$g=function(o,n,s,c,y,T){var x=vs(null,o,{method:"GET",responseType:"blob"});return x.onload=function(_){var W=_.getAllResponseHeaders(),X=Qd(W).name||Ln(o);n(Mo("load",_.status,Bi(_.response,X),W))},x.onerror=function(_){s(Mo("error",_.status,_.statusText,_.getAllResponseHeaders()))},x.onheaders=function(_){T(Mo("headers",_.status,null,_.getAllResponseHeaders()))},x.ontimeout=bs(s),x.onprogress=c,x.onabort=y,x},Xg=function(o){return o.indexOf("//")===0&&(o=location.protocol+o),o.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},Lw=function(o){return(o.indexOf(":")>-1||o.indexOf("//")>-1)&&Xg(location.href)!==Xg(o)},mu=function(o){return function(){return Xt(o)?o.apply(void 0,arguments):o}},kw=function(o){return!Ts(o.file)},Jd=function(o,n){clearTimeout(n.listUpdateTimeout),n.listUpdateTimeout=setTimeout(function(){o("DID_UPDATE_ITEMS",{items:lr(n.items)})},0)},Yg=function(o){for(var n=arguments.length,s=new Array(n>1?n-1:0),c=1;c<n;c++)s[c-1]=arguments[c];return new Promise(function(y){if(!o)return y(!0);var T=o.apply(void 0,s);if(T==null)return y(!0);if(typeof T=="boolean")return y(T);typeof T.then=="function"&&T.then(y)})},Kd=function(o,n){o.items.sort(function(s,c){return n(z(s),z(c))})},xi=function(o,n){return function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=s.query,y=s.success,T=y===void 0?function(){}:y,x=s.failure,_=x===void 0?function(){}:x,W=yl(s,["query","success","failure"]),X=br(o.items,c);if(!X){_({error:Mo("error",0,"Item not found"),file:null});return}n(X,T,_,W||{})}},Fw=function(o,n,s){return{ABORT_ALL:function(){lr(s.items).forEach(function(y){y.freeze(),y.abortLoad(),y.abortProcessing()})},DID_SET_FILES:function(y){var T=y.value,x=T===void 0?[]:T,_=x.map(function(X){return{source:X.source?X.source:X,options:X.options}}),W=lr(s.items);W.forEach(function(X){_.find(function(se){return se.source===X.source||se.source===X.file})||o("REMOVE_ITEM",{query:X,remove:!1})}),W=lr(s.items),_.forEach(function(X,se){W.find(function(pe){return pe.source===X.source||pe.file===X.source})||o("ADD_ITEM",Object.assign({},X,{interactionMethod:Dr.NONE,index:se}))})},DID_UPDATE_ITEM_METADATA:function(y){var T=y.id,x=y.action,_=y.change;_.silent||(clearTimeout(s.itemUpdateTimeout),s.itemUpdateTimeout=setTimeout(function(){var W=Hg(s.items,T);if(!n("IS_ASYNC")){qe("SHOULD_PREPARE_OUTPUT",!1,{item:W,query:n,action:x,change:_}).then(function(Le){var Ge=n("GET_BEFORE_PREPARE_FILE");Ge&&(Le=Ge(W,Le)),Le&&o("REQUEST_PREPARE_OUTPUT",{query:T,item:W,success:function(Re){o("DID_PREPARE_OUTPUT",{id:T,file:Re})}},!0)});return}W.origin===Pe.LOCAL&&o("DID_LOAD_ITEM",{id:W.id,error:null,serverFileReference:W.source});var X=function(){setTimeout(function(){o("REQUEST_ITEM_PROCESSING",{query:T})},32)},se=function(Ge){W.revert(Yp(s.options.server.url,s.options.server.revert),n("GET_FORCE_REVERT")).then(Ge?X:function(){}).catch(function(){})},pe=function(Ge){W.abortProcessing().then(Ge?X:function(){})};if(W.status===fe.PROCESSING_COMPLETE)return se(s.options.instantUpload);if(W.status===fe.PROCESSING)return pe(s.options.instantUpload);s.options.instantUpload&&X()},0))},MOVE_ITEM:function(y){var T=y.query,x=y.index,_=br(s.items,T);if(_){var W=s.items.indexOf(_);x=qo(x,0,s.items.length-1),W!==x&&s.items.splice(x,0,s.items.splice(W,1)[0])}},SORT:function(y){var T=y.compare;Kd(s,T),o("DID_SORT_ITEMS",{items:n("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(y){var T=y.items,x=y.index,_=y.interactionMethod,W=y.success,X=W===void 0?function(){}:W,se=y.failure,pe=se===void 0?function(){}:se,Le=x;if(x===-1||typeof x>"u"){var Ge=n("GET_ITEM_INSERT_LOCATION"),Ue=n("GET_TOTAL_ITEMS");Le=Ge==="before"?0:Ue}var Re=n("GET_IGNORED_FILES"),Ze=function(Kt){return Ts(Kt)?!Re.includes(Kt.name.toLowerCase()):!Ft(Kt)},vt=T.filter(Ze),Rt=vt.map(function(ot){return new Promise(function(Kt,lt){o("ADD_ITEM",{interactionMethod:_,source:ot.source||ot,success:Kt,failure:lt,index:Le++,options:ot.options||{}})})});Promise.all(Rt).then(X).catch(pe)},ADD_ITEM:function(y){var T=y.source,x=y.index,_=x===void 0?-1:x,W=y.interactionMethod,X=y.success,se=X===void 0?function(){}:X,pe=y.failure,Le=pe===void 0?function(){}:pe,Ge=y.options,Ue=Ge===void 0?{}:Ge;if(Ft(T)){Le({error:Mo("error",0,"No source"),file:null});return}if(!(Ts(T)&&s.options.ignoredFiles.includes(T.name.toLowerCase()))){if(!Io(s)){if(s.options.allowMultiple||!s.options.allowMultiple&&!s.options.allowReplace){var Re=Mo("warning",0,"Max files");o("DID_THROW_MAX_FILES",{source:T,error:Re}),Le({error:Re,file:null});return}var Ze=lr(s.items)[0];if(Ze.status===fe.PROCESSING_COMPLETE||Ze.status===fe.PROCESSING_REVERT_ERROR){var vt=n("GET_FORCE_REVERT");if(Ze.revert(Yp(s.options.server.url,s.options.server.revert),vt).then(function(){vt&&o("ADD_ITEM",{source:T,index:_,interactionMethod:W,success:se,failure:Le,options:Ue})}).catch(function(){}),vt)return}o("REMOVE_ITEM",{query:Ze.id})}var Rt=Ue.type==="local"?Pe.LOCAL:Ue.type==="limbo"?Pe.LIMBO:Pe.INPUT,ot=Mw(Rt,Rt===Pe.INPUT?null:T,Ue.file);Object.keys(Ue.metadata||{}).forEach(function(pt){ot.setMetadata(pt,Ue.metadata[pt])}),jt("DID_CREATE_ITEM",ot,{query:n,dispatch:o});var Kt=n("GET_ITEM_INSERT_LOCATION");s.options.itemInsertLocationFreedom||(_=Kt==="before"?-1:s.items.length),Nn(s.items,ot,_),Xt(Kt)&&T&&Kd(s,Kt);var lt=ot.id;ot.on("init",function(){o("DID_INIT_ITEM",{id:lt})}),ot.on("load-init",function(){o("DID_START_ITEM_LOAD",{id:lt})}),ot.on("load-meta",function(){o("DID_UPDATE_ITEM_META",{id:lt})}),ot.on("load-progress",function(pt){o("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:lt,progress:pt})}),ot.on("load-request-error",function(pt){var Tt=mu(s.options.labelFileLoadError)(pt);if(pt.code>=400&&pt.code<500){o("DID_THROW_ITEM_INVALID",{id:lt,error:pt,status:{main:Tt,sub:pt.code+" ("+pt.body+")"}}),Le({error:pt,file:z(ot)});return}o("DID_THROW_ITEM_LOAD_ERROR",{id:lt,error:pt,status:{main:Tt,sub:s.options.labelTapToRetry}})}),ot.on("load-file-error",function(pt){o("DID_THROW_ITEM_INVALID",{id:lt,error:pt.status,status:pt.status}),Le({error:pt.status,file:z(ot)})}),ot.on("load-abort",function(){o("REMOVE_ITEM",{query:lt})}),ot.on("load-skip",function(){ot.on("metadata-update",function(pt){Ts(ot.file)&&o("DID_UPDATE_ITEM_METADATA",{id:lt,change:pt})}),o("COMPLETE_LOAD_ITEM",{query:lt,item:ot,data:{source:T,success:se}})}),ot.on("load",function(){var pt=function(kt){if(!kt){o("REMOVE_ITEM",{query:lt});return}ot.on("metadata-update",function(Hr){o("DID_UPDATE_ITEM_METADATA",{id:lt,change:Hr})}),qe("SHOULD_PREPARE_OUTPUT",!1,{item:ot,query:n}).then(function(Hr){var Or=n("GET_BEFORE_PREPARE_FILE");Or&&(Hr=Or(ot,Hr));var Gt=function(){o("COMPLETE_LOAD_ITEM",{query:lt,item:ot,data:{source:T,success:se}}),Jd(o,s)};if(Hr){o("REQUEST_PREPARE_OUTPUT",{query:lt,item:ot,success:function(be){o("DID_PREPARE_OUTPUT",{id:lt,file:be}),Gt()}},!0);return}Gt()})};qe("DID_LOAD_ITEM",ot,{query:n,dispatch:o}).then(function(){Yg(n("GET_BEFORE_ADD_FILE"),z(ot)).then(pt)}).catch(function(Tt){if(!Tt||!Tt.error||!Tt.status)return pt(!1);o("DID_THROW_ITEM_INVALID",{id:lt,error:Tt.error,status:Tt.status})})}),ot.on("process-start",function(){o("DID_START_ITEM_PROCESSING",{id:lt})}),ot.on("process-progress",function(pt){o("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:lt,progress:pt})}),ot.on("process-error",function(pt){o("DID_THROW_ITEM_PROCESSING_ERROR",{id:lt,error:pt,status:{main:mu(s.options.labelFileProcessingError)(pt),sub:s.options.labelTapToRetry}})}),ot.on("process-revert-error",function(pt){o("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:lt,error:pt,status:{main:mu(s.options.labelFileProcessingRevertError)(pt),sub:s.options.labelTapToRetry}})}),ot.on("process-complete",function(pt){o("DID_COMPLETE_ITEM_PROCESSING",{id:lt,error:null,serverFileReference:pt}),o("DID_DEFINE_VALUE",{id:lt,value:pt})}),ot.on("process-abort",function(){o("DID_ABORT_ITEM_PROCESSING",{id:lt})}),ot.on("process-revert",function(){o("DID_REVERT_ITEM_PROCESSING",{id:lt}),o("DID_DEFINE_VALUE",{id:lt,value:null})}),o("DID_ADD_ITEM",{id:lt,index:_,interactionMethod:W}),Jd(o,s);var Nr=s.options.server||{},Lr=Nr.url,mt=Nr.load,St=Nr.restore,At=Nr.fetch;ot.load(T,Iw(Rt===Pe.INPUT?ze(T)&&Lw(T)&&At?qd(Lr,At):$g:Rt===Pe.LIMBO?qd(Lr,St):qd(Lr,mt)),function(pt,Tt,kt){qe("LOAD_FILE",pt,{query:n}).then(Tt).catch(kt)})}},REQUEST_PREPARE_OUTPUT:function(y){var T=y.item,x=y.success,_=y.failure,W=_===void 0?function(){}:_,X={error:Mo("error",0,"Item not found"),file:null};if(T.archived)return W(X);qe("PREPARE_OUTPUT",T.file,{query:n,item:T}).then(function(se){qe("COMPLETE_PREPARE_OUTPUT",se,{query:n,item:T}).then(function(pe){if(T.archived)return W(X);x(pe)})})},COMPLETE_LOAD_ITEM:function(y){var T=y.item,x=y.data,_=x.success,W=x.source,X=n("GET_ITEM_INSERT_LOCATION");if(Xt(X)&&W&&Kd(s,X),o("DID_LOAD_ITEM",{id:T.id,error:null,serverFileReference:T.origin===Pe.INPUT?null:W}),_(z(T)),T.origin===Pe.LOCAL){o("DID_LOAD_LOCAL_ITEM",{id:T.id});return}if(T.origin===Pe.LIMBO){o("DID_COMPLETE_ITEM_PROCESSING",{id:T.id,error:null,serverFileReference:W}),o("DID_DEFINE_VALUE",{id:T.id,value:T.serverId||W});return}n("IS_ASYNC")&&s.options.instantUpload&&o("REQUEST_ITEM_PROCESSING",{query:T.id})},RETRY_ITEM_LOAD:xi(s,function(c){c.retryLoad()}),REQUEST_ITEM_PREPARE:xi(s,function(c,y,T){o("REQUEST_PREPARE_OUTPUT",{query:c.id,item:c,success:function(_){o("DID_PREPARE_OUTPUT",{id:c.id,file:_}),y({file:c,output:_})},failure:T},!0)}),REQUEST_ITEM_PROCESSING:xi(s,function(c,y,T){var x=c.status===fe.IDLE||c.status===fe.PROCESSING_ERROR;if(!x){var _=function(){return o("REQUEST_ITEM_PROCESSING",{query:c,success:y,failure:T})},W=function(){return document.hidden?_():setTimeout(_,32)};c.status===fe.PROCESSING_COMPLETE||c.status===fe.PROCESSING_REVERT_ERROR?c.revert(Yp(s.options.server.url,s.options.server.revert),n("GET_FORCE_REVERT")).then(W).catch(function(){}):c.status===fe.PROCESSING&&c.abortProcessing().then(W);return}c.status!==fe.PROCESSING_QUEUED&&(c.requestProcessing(),o("DID_REQUEST_ITEM_PROCESSING",{id:c.id}),o("PROCESS_ITEM",{query:c,success:y,failure:T},!0))}),PROCESS_ITEM:xi(s,function(c,y,T){var x=n("GET_MAX_PARALLEL_UPLOADS"),_=n("GET_ITEMS_BY_STATUS",fe.PROCESSING).length;if(_===x){s.processingQueue.push({id:c.id,success:y,failure:T});return}if(c.status!==fe.PROCESSING){var W=function se(){var pe=s.processingQueue.shift();if(pe){var Le=pe.id,Ge=pe.success,Ue=pe.failure,Re=br(s.items,Le);if(!Re||Re.archived){se();return}o("PROCESS_ITEM",{query:Le,success:Ge,failure:Ue},!0)}};c.onOnce("process-complete",function(){y(z(c)),W();var se=s.options.server,pe=s.options.instantUpload;if(pe&&c.origin===Pe.LOCAL&&Xt(se.remove)){var Le=function(){};c.origin=Pe.LIMBO,s.options.server.remove(c.source,Le,Le)}var Ge=n("GET_ITEMS_BY_STATUS",fe.PROCESSING_COMPLETE).length===s.items.length;Ge&&o("DID_COMPLETE_ITEM_PROCESSING_ALL")}),c.onOnce("process-error",function(se){T({error:se,file:z(c)}),W()});var X=s.options;c.process(Dw(Ow(X.server.url,X.server.process,X.name,{chunkTransferId:c.transferId,chunkServer:X.server.patch,chunkUploads:X.chunkUploads,chunkForce:X.chunkForce,chunkSize:X.chunkSize,chunkRetryDelays:X.chunkRetryDelays}),{allowMinimumUploadDuration:n("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),function(se,pe,Le){qe("PREPARE_OUTPUT",se,{query:n,item:c}).then(function(Ge){o("DID_PREPARE_OUTPUT",{id:c.id,file:Ge}),pe(Ge)}).catch(Le)})}}),RETRY_ITEM_PROCESSING:xi(s,function(c){o("REQUEST_ITEM_PROCESSING",{query:c})}),REQUEST_REMOVE_ITEM:xi(s,function(c){Yg(n("GET_BEFORE_REMOVE_FILE"),z(c)).then(function(y){y&&o("REMOVE_ITEM",{query:c})})}),RELEASE_ITEM:xi(s,function(c){c.release()}),REMOVE_ITEM:xi(s,function(c,y,T,x){var _=function(){var se=c.id;Hg(s.items,se).archive(),o("DID_REMOVE_ITEM",{error:null,id:se,item:c}),Jd(o,s),y(z(c))},W=s.options.server;c.origin===Pe.LOCAL&&W&&Xt(W.remove)&&x.remove!==!1?(o("DID_START_ITEM_REMOVE",{id:c.id}),W.remove(c.source,function(){return _()},function(X){o("DID_THROW_ITEM_REMOVE_ERROR",{id:c.id,error:Mo("error",0,X,null),status:{main:mu(s.options.labelFileRemoveError)(X),sub:s.options.labelTapToRetry}})})):((x.revert&&c.origin!==Pe.LOCAL&&c.serverId!==null||s.options.chunkUploads&&c.file.size>s.options.chunkSize||s.options.chunkUploads&&s.options.chunkForce)&&c.revert(Yp(s.options.server.url,s.options.server.revert),n("GET_FORCE_REVERT")),_())}),ABORT_ITEM_LOAD:xi(s,function(c){c.abortLoad()}),ABORT_ITEM_PROCESSING:xi(s,function(c){if(c.serverId){o("REVERT_ITEM_PROCESSING",{id:c.id});return}c.abortProcessing().then(function(){var y=s.options.instantUpload;y&&o("REMOVE_ITEM",{query:c.id})})}),REQUEST_REVERT_ITEM_PROCESSING:xi(s,function(c){if(!s.options.instantUpload){o("REVERT_ITEM_PROCESSING",{query:c});return}var y=function(W){W&&o("REVERT_ITEM_PROCESSING",{query:c})},T=n("GET_BEFORE_REMOVE_FILE");if(!T)return y(!0);var x=T(z(c));if(x==null)return y(!0);if(typeof x=="boolean")return y(x);typeof x.then=="function"&&x.then(y)}),REVERT_ITEM_PROCESSING:xi(s,function(c){c.revert(Yp(s.options.server.url,s.options.server.revert),n("GET_FORCE_REVERT")).then(function(){var y=s.options.instantUpload||kw(c);y&&o("REMOVE_ITEM",{query:c.id})}).catch(function(){})}),SET_OPTIONS:function(y){var T=y.options,x=Object.keys(T),_=Bw.filter(function(X){return x.includes(X)}),W=[].concat(Vr(_),Vr(Object.keys(T).filter(function(X){return!_.includes(X)})));W.forEach(function(X){o("SET_"+Cr(X,"_").toUpperCase(),{value:T[X]})})}}},Bw=["server"],em=function(o){return o},ba=function(o){return document.createElement(o)},No=function(o,n){var s=o.childNodes[0];s?n!==s.nodeValue&&(s.nodeValue=n):(s=document.createTextNode(n),o.appendChild(s))},Zg=function(o,n,s,c){var y=(c%360-90)*Math.PI/180;return{x:o+s*Math.cos(y),y:n+s*Math.sin(y)}},Gw=function(o,n,s,c,y,T){var x=Zg(o,n,s,y),_=Zg(o,n,s,c);return["M",x.x,x.y,"A",s,s,0,T,0,_.x,_.y].join(" ")},Uw=function(o,n,s,c,y){var T=1;return y>c&&y-c<=.5&&(T=0),c>y&&c-y>=.5&&(T=0),Gw(o,n,s,Math.min(.9999,c)*360,Math.min(.9999,y)*360,T)},jw=function(o){var n=o.root,s=o.props;s.spin=!1,s.progress=0,s.opacity=0;var c=v("svg");n.ref.path=v("path",{"stroke-width":2,"stroke-linecap":"round"}),c.appendChild(n.ref.path),n.ref.svg=c,n.appendChild(c)},zw=function(o){var n=o.root,s=o.props;if(s.opacity!==0){s.align&&(n.element.dataset.align=s.align);var c=parseInt(p(n.ref.path,"stroke-width"),10),y=n.rect.element.width*.5,T=0,x=0;s.spin?(T=0,x=.5):(T=0,x=s.progress);var _=Uw(y,y,y-c,T,x);p(n.ref.path,"d",_),p(n.ref.path,"stroke-opacity",s.spin||s.progress>0?1:0)}},Qg=ke({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:jw,write:zw,mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),Vw=function(o){var n=o.root,s=o.props;n.element.innerHTML=(s.icon||"")+("<span>"+s.label+"</span>"),s.isDisabled=!1},Ww=function(o){var n=o.root,s=o.props,c=s.isDisabled,y=n.query("GET_DISABLED")||s.opacity===0;y&&!c?(s.isDisabled=!0,p(n.element,"disabled","disabled")):!y&&c&&(s.isDisabled=!1,n.element.removeAttribute("disabled"))},qg=ke({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:Vw,write:Ww}),Jg=function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:".",s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e3,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=c.labelBytes,T=y===void 0?"bytes":y,x=c.labelKilobytes,_=x===void 0?"KB":x,W=c.labelMegabytes,X=W===void 0?"MB":W,se=c.labelGigabytes,pe=se===void 0?"GB":se;o=Math.round(Math.abs(o));var Le=s,Ge=s*s,Ue=s*s*s;return o<Le?o+" "+T:o<Ge?Math.floor(o/Le)+" "+_:o<Ue?Kg(o/Ge,1,n)+" "+X:Kg(o/Ue,2,n)+" "+pe},Kg=function(o,n,s){return o.toFixed(n).split(".").filter(function(c){return c!=="0"}).join(s)},Hw=function(o){var n=o.root,s=o.props,c=ba("span");c.className="filepond--file-info-main",p(c,"aria-hidden","true"),n.appendChild(c),n.ref.fileName=c;var y=ba("span");y.className="filepond--file-info-sub",n.appendChild(y),n.ref.fileSize=y,No(y,n.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),No(c,em(n.query("GET_ITEM_NAME",s.id)))},tm=function(o){var n=o.root,s=o.props;No(n.ref.fileSize,Jg(n.query("GET_ITEM_SIZE",s.id),".",n.query("GET_FILE_SIZE_BASE"),n.query("GET_FILE_SIZE_LABELS",n.query))),No(n.ref.fileName,em(n.query("GET_ITEM_NAME",s.id)))},eh=function(o){var n=o.root,s=o.props;if(it(n.query("GET_ITEM_SIZE",s.id))){tm({root:n,props:s});return}No(n.ref.fileSize,n.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},$w=ke({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:Dt({DID_LOAD_ITEM:tm,DID_UPDATE_ITEM_META:tm,DID_THROW_ITEM_LOAD_ERROR:eh,DID_THROW_ITEM_INVALID:eh}),didCreateView:function(o){jt("CREATE_VIEW",Object.assign({},o,{view:o}))},create:Hw,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),th=function(o){return Math.round(o*100)},Xw=function(o){var n=o.root,s=ba("span");s.className="filepond--file-status-main",n.appendChild(s),n.ref.main=s;var c=ba("span");c.className="filepond--file-status-sub",n.appendChild(c),n.ref.sub=c,rh({root:n,action:{progress:null}})},rh=function(o){var n=o.root,s=o.action,c=s.progress===null?n.query("GET_LABEL_FILE_LOADING"):n.query("GET_LABEL_FILE_LOADING")+" "+th(s.progress)+"%";No(n.ref.main,c),No(n.ref.sub,n.query("GET_LABEL_TAP_TO_CANCEL"))},Yw=function(o){var n=o.root,s=o.action,c=s.progress===null?n.query("GET_LABEL_FILE_PROCESSING"):n.query("GET_LABEL_FILE_PROCESSING")+" "+th(s.progress)+"%";No(n.ref.main,c),No(n.ref.sub,n.query("GET_LABEL_TAP_TO_CANCEL"))},Zw=function(o){var n=o.root;No(n.ref.main,n.query("GET_LABEL_FILE_PROCESSING")),No(n.ref.sub,n.query("GET_LABEL_TAP_TO_CANCEL"))},Qw=function(o){var n=o.root;No(n.ref.main,n.query("GET_LABEL_FILE_PROCESSING_ABORTED")),No(n.ref.sub,n.query("GET_LABEL_TAP_TO_RETRY"))},qw=function(o){var n=o.root;No(n.ref.main,n.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),No(n.ref.sub,n.query("GET_LABEL_TAP_TO_UNDO"))},oh=function(o){var n=o.root;No(n.ref.main,""),No(n.ref.sub,"")},Zp=function(o){var n=o.root,s=o.action;No(n.ref.main,s.status.main),No(n.ref.sub,s.status.sub)},Jw=ke({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:Dt({DID_LOAD_ITEM:oh,DID_REVERT_ITEM_PROCESSING:oh,DID_REQUEST_ITEM_PROCESSING:Zw,DID_ABORT_ITEM_PROCESSING:Qw,DID_COMPLETE_ITEM_PROCESSING:qw,DID_UPDATE_ITEM_PROCESS_PROGRESS:Yw,DID_UPDATE_ITEM_LOAD_PROGRESS:rh,DID_THROW_ITEM_LOAD_ERROR:Zp,DID_THROW_ITEM_INVALID:Zp,DID_THROW_ITEM_PROCESSING_ERROR:Zp,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Zp,DID_THROW_ITEM_REMOVE_ERROR:Zp}),didCreateView:function(o){jt("CREATE_VIEW",Object.assign({},o,{view:o}))},create:Xw,mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),rm={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},om=[];a(rm,function(f){om.push(f)});var ai=function(o){if(nm(o)==="right")return 0;var n=o.ref.buttonRemoveItem.rect.element;return n.hidden?null:n.width+n.left},Kw=function(o){var n=o.ref.buttonAbortItemLoad.rect.element;return n.width},yu=function(o){return Math.floor(o.ref.buttonRemoveItem.rect.element.height/4)},eI=function(o){return Math.floor(o.ref.buttonRemoveItem.rect.element.left/2)},tI=function(o){return o.query("GET_STYLE_LOAD_INDICATOR_POSITION")},rI=function(o){return o.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")},nm=function(o){return o.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},oI={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:tI},processProgressIndicator:{opacity:0,align:rI},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},nh={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:ai},status:{translateX:ai}},im={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},bl={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:ai},status:{translateX:ai,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:ai},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:nm},info:{translateX:ai},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:nm},buttonRemoveItem:{opacity:1},info:{translateX:ai},status:{opacity:1,translateX:ai}},DID_LOAD_ITEM:nh,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:ai},status:{translateX:ai}},DID_START_ITEM_PROCESSING:im,DID_REQUEST_ITEM_PROCESSING:im,DID_UPDATE_ITEM_PROCESS_PROGRESS:im,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:ai}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:ai},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:nh},nI=ke({create:function(o){var n=o.root;n.element.innerHTML=n.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),iI=function(o){var n=o.root,s=o.props,c=Object.keys(rm).reduce(function(vt,Rt){return vt[Rt]=Object.assign({},rm[Rt]),vt},{}),y=s.id,T=n.query("GET_ALLOW_REVERT"),x=n.query("GET_ALLOW_REMOVE"),_=n.query("GET_ALLOW_PROCESS"),W=n.query("GET_INSTANT_UPLOAD"),X=n.query("IS_ASYNC"),se=n.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN"),pe;X?_&&!T?pe=function(Rt){return!/RevertItemProcessing/.test(Rt)}:!_&&T?pe=function(Rt){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(Rt)}:!_&&!T&&(pe=function(Rt){return!/Process/.test(Rt)}):pe=function(Rt){return!/Process/.test(Rt)};var Le=pe?om.filter(pe):om.concat();if(W&&T&&(c.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",c.RevertItemProcessing.icon="GET_ICON_REMOVE"),X&&!T){var Ge=bl.DID_COMPLETE_ITEM_PROCESSING;Ge.info.translateX=eI,Ge.info.translateY=yu,Ge.status.translateY=yu,Ge.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(X&&!_&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(function(vt){bl[vt].status.translateY=yu}),bl.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=Kw),se&&T){c.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";var Ue=bl.DID_COMPLETE_ITEM_PROCESSING;Ue.info.translateX=ai,Ue.status.translateY=yu,Ue.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}x||(c.RemoveItem.disabled=!0),a(c,function(vt,Rt){var ot=n.createChildView(qg,{label:n.query(Rt.label),icon:n.query(Rt.icon),opacity:0});Le.includes(vt)&&n.appendChildView(ot),Rt.disabled&&(ot.element.setAttribute("disabled","disabled"),ot.element.setAttribute("hidden","hidden")),ot.element.dataset.align=n.query("GET_STYLE_"+Rt.align),ot.element.classList.add(Rt.className),ot.on("click",function(Kt){Kt.stopPropagation(),!Rt.disabled&&n.dispatch(Rt.action,{query:y})}),n.ref["button"+vt]=ot}),n.ref.processingCompleteIndicator=n.appendChildView(n.createChildView(nI)),n.ref.processingCompleteIndicator.element.dataset.align=n.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),n.ref.info=n.appendChildView(n.createChildView($w,{id:y})),n.ref.status=n.appendChildView(n.createChildView(Jw,{id:y}));var Re=n.appendChildView(n.createChildView(Qg,{opacity:0,align:n.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));Re.element.classList.add("filepond--load-indicator"),n.ref.loadProgressIndicator=Re;var Ze=n.appendChildView(n.createChildView(Qg,{opacity:0,align:n.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));Ze.element.classList.add("filepond--process-indicator"),n.ref.processProgressIndicator=Ze,n.ref.activeStyles=[]},aI=function(o){var n=o.root,s=o.actions,c=o.props;sI({root:n,actions:s,props:c});var y=s.concat().filter(function(x){return/^DID_/.test(x.type)}).reverse().find(function(x){return bl[x.type]});if(y){n.ref.activeStyles=[];var T=bl[y.type];a(oI,function(x,_){var W=n.ref[x];a(_,function(X,se){var pe=T[x]&&typeof T[x][X]<"u"?T[x][X]:se;n.ref.activeStyles.push({control:W,key:X,value:pe})})})}n.ref.activeStyles.forEach(function(x){var _=x.control,W=x.key,X=x.value;_[W]=typeof X=="function"?X(n):X})},sI=Dt({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(o){var n=o.root,s=o.action;n.ref.buttonAbortItemProcessing.label=s.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(o){var n=o.root,s=o.action;n.ref.buttonAbortItemLoad.label=s.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(o){var n=o.root,s=o.action;n.ref.buttonAbortItemRemoval.label=s.value},DID_REQUEST_ITEM_PROCESSING:function(o){var n=o.root;n.ref.processProgressIndicator.spin=!0,n.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(o){var n=o.root;n.ref.loadProgressIndicator.spin=!0,n.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(o){var n=o.root;n.ref.processProgressIndicator.spin=!0,n.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(o){var n=o.root,s=o.action;n.ref.loadProgressIndicator.spin=!1,n.ref.loadProgressIndicator.progress=s.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(o){var n=o.root,s=o.action;n.ref.processProgressIndicator.spin=!1,n.ref.processProgressIndicator.progress=s.progress}}),lI=ke({create:iI,write:aI,didCreateView:function(o){jt("CREATE_VIEW",Object.assign({},o,{view:o}))},name:"file"}),pI=function(o){var n=o.root,s=o.props;n.ref.fileName=ba("legend"),n.appendChild(n.ref.fileName),n.ref.file=n.appendChildView(n.createChildView(lI,{id:s.id})),n.ref.data=!1},cI=function(o){var n=o.root,s=o.props;No(n.ref.fileName,em(n.query("GET_ITEM_NAME",s.id)))},uI=ke({create:pI,ignoreRect:!0,write:Dt({DID_LOAD_ITEM:cI}),didCreateView:function(o){jt("CREATE_VIEW",Object.assign({},o,{view:o}))},tag:"fieldset",name:"file-wrapper"}),ih={type:"spring",damping:.6,mass:7},fI=function(o){var n=o.root,s=o.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:ih},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:ih},styles:["translateY"]}}].forEach(function(c){dI(n,c,s.name)}),n.element.classList.add("filepond--"+s.name),n.ref.scalable=null},dI=function(o,n,s){var c=ke({name:"panel-"+n.name+" filepond--"+s,mixins:n.mixins,ignoreRectUpdate:!0}),y=o.createChildView(c,n.props);o.ref[n.name]=o.appendChildView(y)},mI=function(o){var n=o.root,s=o.props;if((n.ref.scalable===null||s.scalable!==n.ref.scalable)&&(n.ref.scalable=Mt(s.scalable)?s.scalable:!0,n.element.dataset.scalable=n.ref.scalable),!!s.height){var c=n.ref.top.rect.element,y=n.ref.bottom.rect.element,T=Math.max(c.height+y.height,s.height);n.ref.center.translateY=c.height,n.ref.center.scaleY=(T-c.height-y.height)/100,n.ref.bottom.translateY=T-y.height}},ah=ke({name:"panel",read:function(o){var n=o.root,s=o.props;return s.heightCurrent=n.ref.bottom.translateY},write:mI,create:fI,ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),yI=function(o){var n=o.map(function(c){return c.id}),s=void 0;return{setIndex:function(y){s=y},getIndex:function(){return s},getItemIndex:function(y){return n.indexOf(y.id)}}},sh={type:"spring",stiffness:.75,damping:.45,mass:10},lh="spring",ph={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},gI=function(o){var n=o.root,s=o.props;if(n.ref.handleClick=function(y){return n.dispatch("DID_ACTIVATE_ITEM",{id:s.id})},n.element.id="filepond--item-"+s.id,n.element.addEventListener("click",n.ref.handleClick),n.ref.container=n.appendChildView(n.createChildView(uI,{id:s.id})),n.ref.panel=n.appendChildView(n.createChildView(ah,{name:"item-panel"})),n.ref.panel.height=null,s.markedForRemoval=!1,!!n.query("GET_ALLOW_REORDER")){n.element.dataset.dragState="idle";var c=function(T){if(T.isPrimary){var x=!1,_={x:T.pageX,y:T.pageY};s.dragOrigin={x:n.translateX,y:n.translateY},s.dragCenter={x:T.offsetX,y:T.offsetY};var W=yI(n.query("GET_ACTIVE_ITEMS"));n.dispatch("DID_GRAB_ITEM",{id:s.id,dragState:W});var X=function(Ue){if(Ue.isPrimary){Ue.stopPropagation(),Ue.preventDefault(),s.dragOffset={x:Ue.pageX-_.x,y:Ue.pageY-_.y};var Re=s.dragOffset.x*s.dragOffset.x+s.dragOffset.y*s.dragOffset.y;Re>16&&!x&&(x=!0,n.element.removeEventListener("click",n.ref.handleClick)),n.dispatch("DID_DRAG_ITEM",{id:s.id,dragState:W})}},se=function(Ue){Ue.isPrimary&&(s.dragOffset={x:Ue.pageX-_.x,y:Ue.pageY-_.y},Le())},pe=function(){Le()},Le=function(){document.removeEventListener("pointercancel",pe),document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",se),n.dispatch("DID_DROP_ITEM",{id:s.id,dragState:W}),x&&setTimeout(function(){return n.element.addEventListener("click",n.ref.handleClick)},0)};document.addEventListener("pointercancel",pe),document.addEventListener("pointermove",X),document.addEventListener("pointerup",se)}};n.element.addEventListener("pointerdown",c)}},hI=Dt({DID_UPDATE_PANEL_HEIGHT:function(o){var n=o.root,s=o.action;n.height=s.height}}),vI=Dt({DID_GRAB_ITEM:function(o){var n=o.root,s=o.props;s.dragOrigin={x:n.translateX,y:n.translateY}},DID_DRAG_ITEM:function(o){var n=o.root;n.element.dataset.dragState="drag"},DID_DROP_ITEM:function(o){var n=o.root,s=o.props;s.dragOffset=null,s.dragOrigin=null,n.element.dataset.dragState="drop"}},function(f){var o=f.root,n=f.actions,s=f.props,c=f.shouldOptimize;o.element.dataset.dragState==="drop"&&o.scaleX<=1&&(o.element.dataset.dragState="idle");var y=n.concat().filter(function(x){return/^DID_/.test(x.type)}).reverse().find(function(x){return ph[x.type]});y&&y.type!==s.currentState&&(s.currentState=y.type,o.element.dataset.filepondItemState=ph[s.currentState]||"");var T=o.query("GET_ITEM_PANEL_ASPECT_RATIO")||o.query("GET_PANEL_ASPECT_RATIO");T?c||(o.height=o.rect.element.width*T):(hI({root:o,actions:n,props:s}),!o.height&&o.ref.container.rect.element.height>0&&(o.height=o.ref.container.rect.element.height)),c&&(o.ref.panel.height=null),o.ref.panel.height=o.height}),bI=ke({create:gI,write:vI,destroy:function(o){var n=o.root,s=o.props;n.element.removeEventListener("click",n.ref.handleClick),n.dispatch("RELEASE_ITEM",{query:s.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:lh,scaleY:lh,translateX:sh,translateY:sh,opacity:{type:"tween",duration:150}}}}),am=function(f,o){return Math.max(1,Math.floor((f+1)/o))},sm=function(o,n,s){if(s){var c=o.rect.element.width,y=n.length,T=null;if(y===0||s.top<n[0].rect.element.top)return-1;var x=n[0],_=x.rect.element,W=_.marginLeft+_.marginRight,X=_.width+W,se=am(c,X);if(se===1){for(var pe=0;pe<y;pe++){var Le=n[pe],Ge=Le.rect.outer.top+Le.rect.element.height*.5;if(s.top<Ge)return pe}return y}for(var Ue=_.marginTop+_.marginBottom,Re=_.height+Ue,Ze=0;Ze<y;Ze++){var vt=Ze%se,Rt=Math.floor(Ze/se),ot=vt*X,Kt=Rt*Re,lt=Kt-_.marginTop,Nr=ot+X,Lr=Kt+Re+_.marginBottom;if(s.top<Lr&&s.top>lt){if(s.left<Nr)return Ze;Ze!==y-1?T=Ze:T=null}}return T!==null?T:y}},gu={height:0,width:0,get getHeight(){return this.height},set setHeight(f){(this.height===0||f===0)&&(this.height=f)},get getWidth(){return this.width},set setWidth(f){(this.width===0||f===0)&&(this.width=f)},setDimensions:function(o,n){(this.height===0||o===0)&&(this.height=o),(this.width===0||n===0)&&(this.width=n)}},TI=function(o){var n=o.root;p(n.element,"role","list"),n.ref.lastItemSpanwDate=Date.now()},xI=function(o){var n=o.root,s=o.action,c=s.id,y=s.index,T=s.interactionMethod;n.ref.addIndex=y;var x=Date.now(),_=x,W=1;if(T!==Dr.NONE){W=0;var X=n.query("GET_ITEM_INSERT_INTERVAL"),se=x-n.ref.lastItemSpanwDate;_=se<X?x+(X-se):x}n.ref.lastItemSpanwDate=_,n.appendChildView(n.createChildView(bI,{spawnDate:_,id:c,opacity:W,interactionMethod:T}),y)},ch=function(o,n,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1;o.dragOffset?(o.translateX=null,o.translateY=null,o.translateX=o.dragOrigin.x+o.dragOffset.x,o.translateY=o.dragOrigin.y+o.dragOffset.y,o.scaleX=1.025,o.scaleY=1.025):(o.translateX=n,o.translateY=s,Date.now()>o.spawnDate&&(o.opacity===0&&PI(o,n,s,c,y),o.scaleX=1,o.scaleY=1,o.opacity=1))},PI=function(o,n,s,c,y){o.interactionMethod===Dr.NONE?(o.translateX=null,o.translateX=n,o.translateY=null,o.translateY=s):o.interactionMethod===Dr.DROP?(o.translateX=null,o.translateX=n-c*20,o.translateY=null,o.translateY=s-y*10,o.scaleX=.8,o.scaleY=.8):o.interactionMethod===Dr.BROWSE?(o.translateY=null,o.translateY=s-30):o.interactionMethod===Dr.API&&(o.translateX=null,o.translateX=n-30,o.translateY=null)},EI=function(o){var n=o.root,s=o.action,c=s.id,y=n.childViews.find(function(T){return T.id===c});y&&(y.scaleX=.9,y.scaleY=.9,y.opacity=0,y.markedForRemoval=!0)},lm=function(o){return o.rect.element.height+o.rect.element.marginBottom*.5+o.rect.element.marginTop*.5},wI=function(o){return o.rect.element.width+o.rect.element.marginLeft*.5+o.rect.element.marginRight*.5},II=function(o){var n=o.root,s=o.action,c=s.id,y=s.dragState,T=n.query("GET_ITEM",{id:c}),x=n.childViews.find(function(vt){return vt.id===c}),_=n.childViews.length,W=y.getItemIndex(T);if(x){var X={x:x.dragOrigin.x+x.dragOffset.x+x.dragCenter.x,y:x.dragOrigin.y+x.dragOffset.y+x.dragCenter.y},se=lm(x),pe=wI(x),Le=Math.floor(n.rect.outer.width/pe);Le>_&&(Le=_);var Ge=Math.floor(_/Le+1);gu.setHeight=se*Ge,gu.setWidth=pe*Le;var Ue={y:Math.floor(X.y/se),x:Math.floor(X.x/pe),getGridIndex:function(){return X.y>gu.getHeight||X.y<0||X.x>gu.getWidth||X.x<0?W:this.y*Le+this.x},getColIndex:function(){for(var Rt=n.query("GET_ACTIVE_ITEMS"),ot=n.childViews.filter(function(kt){return kt.rect.element.height}),Kt=Rt.map(function(kt){return ot.find(function(Hr){return Hr.id===kt.id})}),lt=Kt.findIndex(function(kt){return kt===x}),Nr=lm(x),Lr=Kt.length,mt=Lr,St=0,At=0,pt=0,Tt=0;Tt<Lr;Tt++)if(St=lm(Kt[Tt]),pt=At,At=pt+St,X.y<At){if(lt>Tt){if(X.y<pt+Nr){mt=Tt;break}continue}mt=Tt;break}return mt}},Re=Le>1?Ue.getGridIndex():Ue.getColIndex();n.dispatch("MOVE_ITEM",{query:x,index:Re});var Ze=y.getIndex();if(Ze===void 0||Ze!==Re){if(y.setIndex(Re),Ze===void 0)return;n.dispatch("DID_REORDER_ITEMS",{items:n.query("GET_ACTIVE_ITEMS"),origin:W,target:Re})}}},RI=Dt({DID_ADD_ITEM:xI,DID_REMOVE_ITEM:EI,DID_DRAG_ITEM:II}),SI=function(o){var n=o.root,s=o.props,c=o.actions,y=o.shouldOptimize;RI({root:n,props:s,actions:c});var T=s.dragCoordinates,x=n.rect.element.width,_=n.childViews.filter(function(mt){return mt.rect.element.height}),W=n.query("GET_ACTIVE_ITEMS").map(function(mt){return _.find(function(St){return St.id===mt.id})}).filter(function(mt){return mt}),X=T?sm(n,W,T):null,se=n.ref.addIndex||null;n.ref.addIndex=null;var pe=0,Le=0,Ge=0;if(W.length!==0){var Ue=W[0].rect.element,Re=Ue.marginTop+Ue.marginBottom,Ze=Ue.marginLeft+Ue.marginRight,vt=Ue.width+Ze,Rt=Ue.height+Re,ot=am(x,vt);if(ot===1){var Kt=0,lt=0;W.forEach(function(mt,St){if(X){var At=St-X;At===-2?lt=-Re*.25:At===-1?lt=-Re*.75:At===0?lt=Re*.75:At===1?lt=Re*.25:lt=0}y&&(mt.translateX=null,mt.translateY=null),mt.markedForRemoval||ch(mt,0,Kt+lt);var pt=mt.rect.element.height+Re,Tt=pt*(mt.markedForRemoval?mt.opacity:1);Kt+=Tt})}else{var Nr=0,Lr=0;W.forEach(function(mt,St){St===X&&(pe=1),St===se&&(Ge+=1),mt.markedForRemoval&&mt.opacity<.5&&(Le-=1);var At=St+Ge+pe+Le,pt=At%ot,Tt=Math.floor(At/ot),kt=pt*vt,Hr=Tt*Rt,Or=Math.sign(kt-Nr),Gt=Math.sign(Hr-Lr);Nr=kt,Lr=Hr,!mt.markedForRemoval&&(y&&(mt.translateX=null,mt.translateY=null),ch(mt,kt,Hr,Or,Gt))})}}},OI=function(o,n){return n.filter(function(s){return s.data&&s.data.id?o.id===s.data.id:!0})},CI=ke({create:TI,write:SI,tag:"ul",name:"list",didWriteView:function(o){var n=o.root;n.childViews.filter(function(s){return s.markedForRemoval&&s.opacity===0&&s.resting}).forEach(function(s){s._destroy(),n.removeChildView(s)})},filterFrameActionsForChild:OI,mixins:{apis:["dragCoordinates"]}}),DI=function(o){var n=o.root,s=o.props;n.ref.list=n.appendChildView(n.createChildView(CI)),s.dragCoordinates=null,s.overflowing=!1},_I=function(o){var n=o.root,s=o.props,c=o.action;n.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(s.dragCoordinates={left:c.position.scopeLeft-n.ref.list.rect.element.left,top:c.position.scopeTop-(n.rect.outer.top+n.rect.element.marginTop+n.rect.element.scrollTop)})},AI=function(o){var n=o.props;n.dragCoordinates=null},MI=Dt({DID_DRAG:_I,DID_END_DRAG:AI}),NI=function(o){var n=o.root,s=o.props,c=o.actions;if(MI({root:n,props:s,actions:c}),n.ref.list.dragCoordinates=s.dragCoordinates,s.overflowing&&!s.overflow&&(s.overflowing=!1,n.element.dataset.state="",n.height=null),s.overflow){var y=Math.round(s.overflow);y!==n.height&&(s.overflowing=!0,n.element.dataset.state="overflow",n.height=y)}},LI=ke({create:DI,write:NI,name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),Gi=function(o,n,s){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";s?p(o,n,c):o.removeAttribute(n)},kI=function(o){if(!(!o||o.value==="")){try{o.value=""}catch{}if(o.value){var n=ba("form"),s=o.parentNode,c=o.nextSibling;n.appendChild(o),n.reset(),c?s.insertBefore(o,c):s.appendChild(o)}}},FI=function(o){var n=o.root,s=o.props;n.element.id="filepond--browser-"+s.id,p(n.element,"name",n.query("GET_NAME")),p(n.element,"aria-controls","filepond--assistant-"+s.id),p(n.element,"aria-labelledby","filepond--drop-label-"+s.id),uh({root:n,action:{value:n.query("GET_ACCEPTED_FILE_TYPES")}}),fh({root:n,action:{value:n.query("GET_ALLOW_MULTIPLE")}}),dh({root:n,action:{value:n.query("GET_ALLOW_DIRECTORIES_ONLY")}}),pm({root:n}),mh({root:n,action:{value:n.query("GET_REQUIRED")}}),yh({root:n,action:{value:n.query("GET_CAPTURE_METHOD")}}),n.ref.handleChange=function(c){if(n.element.value){var y=Array.from(n.element.files).map(function(T){return T._relativePath=T.webkitRelativePath,T});setTimeout(function(){s.onload(y),kI(n.element)},250)}},n.element.addEventListener("change",n.ref.handleChange)},uh=function(o){var n=o.root,s=o.action;n.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&Gi(n.element,"accept",!!s.value,s.value?s.value.join(","):"")},fh=function(o){var n=o.root,s=o.action;Gi(n.element,"multiple",s.value)},dh=function(o){var n=o.root,s=o.action;Gi(n.element,"webkitdirectory",s.value)},pm=function(o){var n=o.root,s=n.query("GET_DISABLED"),c=n.query("GET_ALLOW_BROWSE"),y=s||!c;Gi(n.element,"disabled",y)},mh=function(o){var n=o.root,s=o.action;s.value?n.query("GET_TOTAL_ITEMS")===0&&Gi(n.element,"required",!0):Gi(n.element,"required",!1)},yh=function(o){var n=o.root,s=o.action;Gi(n.element,"capture",!!s.value,s.value===!0?"":s.value)},gh=function(o){var n=o.root,s=n.element;if(n.query("GET_TOTAL_ITEMS")>0){Gi(s,"required",!1),Gi(s,"name",!1);for(var c=n.query("GET_ACTIVE_ITEMS"),y=!1,T=0;T<c.length;T++)c[T].status===fe.LOAD_ERROR&&(y=!0);n.element.setCustomValidity(y?n.query("GET_LABEL_INVALID_FIELD"):"")}else{Gi(s,"name",!0,n.query("GET_NAME"));var x=n.query("GET_CHECK_VALIDITY");x&&s.setCustomValidity(""),n.query("GET_REQUIRED")&&Gi(s,"required",!0)}},BI=function(o){var n=o.root,s=n.query("GET_CHECK_VALIDITY");s&&n.element.setCustomValidity(n.query("GET_LABEL_INVALID_FIELD"))},GI=ke({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:FI,destroy:function(o){var n=o.root;n.element.removeEventListener("change",n.ref.handleChange)},write:Dt({DID_LOAD_ITEM:gh,DID_REMOVE_ITEM:gh,DID_THROW_ITEM_INVALID:BI,DID_SET_DISABLED:pm,DID_SET_ALLOW_BROWSE:pm,DID_SET_ALLOW_DIRECTORIES_ONLY:dh,DID_SET_ALLOW_MULTIPLE:fh,DID_SET_ACCEPTED_FILE_TYPES:uh,DID_SET_CAPTURE_METHOD:yh,DID_SET_REQUIRED:mh})}),hh={ENTER:13,SPACE:32},UI=function(o){var n=o.root,s=o.props,c=ba("label");p(c,"for","filepond--browser-"+s.id),p(c,"id","filepond--drop-label-"+s.id),n.ref.handleKeyDown=function(y){var T=y.keyCode===hh.ENTER||y.keyCode===hh.SPACE;T&&(y.preventDefault(),n.ref.label.click())},n.ref.handleClick=function(y){var T=y.target===c||c.contains(y.target);T||n.ref.label.click()},c.addEventListener("keydown",n.ref.handleKeyDown),n.element.addEventListener("click",n.ref.handleClick),vh(c,s.caption),n.appendChild(c),n.ref.label=c},vh=function(o,n){o.innerHTML=n;var s=o.querySelector(".filepond--label-action");return s&&p(s,"tabindex","0"),n},jI=ke({name:"drop-label",ignoreRect:!0,create:UI,destroy:function(o){var n=o.root;n.ref.label.addEventListener("keydown",n.ref.handleKeyDown),n.element.removeEventListener("click",n.ref.handleClick)},write:Dt({DID_SET_LABEL_IDLE:function(o){var n=o.root,s=o.action;vh(n.ref.label,s.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),zI=ke({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),VI=function(o){var n=o.root,s=n.rect.element.width*.5,c=n.rect.element.height*.5;n.ref.blob=n.appendChildView(n.createChildView(zI,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:s,translateY:c}))},WI=function(o){var n=o.root,s=o.action;if(!n.ref.blob){VI({root:n});return}n.ref.blob.translateX=s.position.scopeLeft,n.ref.blob.translateY=s.position.scopeTop,n.ref.blob.scaleX=1,n.ref.blob.scaleY=1,n.ref.blob.opacity=1},HI=function(o){var n=o.root;n.ref.blob&&(n.ref.blob.opacity=0)},$I=function(o){var n=o.root;n.ref.blob&&(n.ref.blob.scaleX=2.5,n.ref.blob.scaleY=2.5,n.ref.blob.opacity=0)},XI=function(o){var n=o.root,s=o.props,c=o.actions;YI({root:n,props:s,actions:c});var y=n.ref.blob;c.length===0&&y&&y.opacity===0&&(n.removeChildView(y),n.ref.blob=null)},YI=Dt({DID_DRAG:WI,DID_DROP:$I,DID_END_DRAG:HI}),ZI=ke({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:XI}),bh=function(o,n){try{var s=new DataTransfer;n.forEach(function(c){c instanceof File?s.items.add(c):s.items.add(new File([c],c.name,{type:c.type}))}),o.files=s.files}catch{return!1}return!0},QI=function(o){var n=o.root;n.ref.fields={};var s=document.createElement("legend");s.textContent="Files",n.element.appendChild(s)},hu=function(o,n){return o.ref.fields[n]},cm=function(o){o.query("GET_ACTIVE_ITEMS").forEach(function(n){o.ref.fields[n.id]&&o.element.appendChild(o.ref.fields[n.id])})},Th=function(o){var n=o.root;return cm(n)},qI=function(o){var n=o.root,s=o.action,c=n.query("GET_ITEM",s.id),y=c.origin===Pe.LOCAL,T=!y&&n.query("SHOULD_UPDATE_FILE_INPUT"),x=ba("input");x.type=T?"file":"hidden",x.name=n.query("GET_NAME"),n.ref.fields[s.id]=x,cm(n)},JI=function(o){var n=o.root,s=o.action,c=hu(n,s.id);if(c&&(s.serverFileReference!==null&&(c.value=s.serverFileReference),!!n.query("SHOULD_UPDATE_FILE_INPUT"))){var y=n.query("GET_ITEM",s.id);bh(c,[y.file])}},KI=function(o){var n=o.root,s=o.action;n.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout(function(){var c=hu(n,s.id);c&&bh(c,[s.file])},0)},eR=function(o){var n=o.root;n.element.disabled=n.query("GET_DISABLED")},tR=function(o){var n=o.root,s=o.action,c=hu(n,s.id);c&&(c.parentNode&&c.parentNode.removeChild(c),delete n.ref.fields[s.id])},rR=function(o){var n=o.root,s=o.action,c=hu(n,s.id);c&&(s.value===null?c.removeAttribute("value"):c.type!="file"&&(c.value=s.value),cm(n))},oR=Dt({DID_SET_DISABLED:eR,DID_ADD_ITEM:qI,DID_LOAD_ITEM:JI,DID_REMOVE_ITEM:tR,DID_DEFINE_VALUE:rR,DID_PREPARE_OUTPUT:KI,DID_REORDER_ITEMS:Th,DID_SORT_ITEMS:Th}),nR=ke({tag:"fieldset",name:"data",create:QI,write:oR,ignoreRect:!0}),iR=function(o){return"getRootNode"in o?o.getRootNode():document},aR=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],sR=["css","csv","html","txt"],lR={zip:"zip|compressed",epub:"application/epub+zip"},xh=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return o=o.toLowerCase(),aR.includes(o)?"image/"+(o==="jpg"?"jpeg":o==="svg"?"svg+xml":o):sR.includes(o)?"text/"+o:lR[o]||""},um=function(o){return new Promise(function(n,s){var c=gR(o);if(c.length&&!pR(o))return n(c);cR(o).then(n)})},pR=function(o){return o.files?o.files.length>0:!1},cR=function(o){return new Promise(function(n,s){var c=(o.items?Array.from(o.items):[]).filter(function(y){return uR(y)}).map(function(y){return fR(y)});if(!c.length){n(o.files?Array.from(o.files):[]);return}Promise.all(c).then(function(y){var T=[];y.forEach(function(x){T.push.apply(T,x)}),n(T.filter(function(x){return x}).map(function(x){return x._relativePath||(x._relativePath=x.webkitRelativePath),x}))}).catch(console.error)})},uR=function(o){if(Ph(o)){var n=fm(o);if(n)return n.isFile||n.isDirectory}return o.kind==="file"},fR=function(o){return new Promise(function(n,s){if(yR(o)){dR(fm(o)).then(n).catch(s);return}n([o.getAsFile()])})},dR=function(o){return new Promise(function(n,s){var c=[],y=0,T=0,x=function(){T===0&&y===0&&n(c)},_=function W(X){y++;var se=X.createReader(),pe=function Le(){se.readEntries(function(Ge){if(Ge.length===0){y--,x();return}Ge.forEach(function(Ue){Ue.isDirectory?W(Ue):(T++,Ue.file(function(Re){var Ze=mR(Re);Ue.fullPath&&(Ze._relativePath=Ue.fullPath),c.push(Ze),T--,x()}))}),Le()},s)};pe()};_(o)})},mR=function(o){if(o.type.length)return o;var n=o.lastModifiedDate,s=o.name,c=xh(Xn(o.name));return c.length&&(o=o.slice(0,o.size,c),o.name=s,o.lastModifiedDate=n),o},yR=function(o){return Ph(o)&&(fm(o)||{}).isDirectory},Ph=function(o){return"webkitGetAsEntry"in o},fm=function(o){return o.webkitGetAsEntry()},gR=function(o){var n=[];try{if(n=vR(o),n.length)return n;n=hR(o)}catch{}return n},hR=function(o){var n=o.getData("url");return typeof n=="string"&&n.length?[n]:[]},vR=function(o){var n=o.getData("text/html");if(typeof n=="string"&&n.length){var s=n.match(/src\s*=\s*"(.+?)"/);if(s)return[s[1]]}return[]},vu=[],xs=function(o){return{pageLeft:o.pageX,pageTop:o.pageY,scopeLeft:o.offsetX||o.layerX,scopeTop:o.offsetY||o.layerY}},bR=function(o,n,s){var c=TR(n),y={element:o,filterElement:s,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return y.destroy=c.addListener(y),y},TR=function(o){var n=vu.find(function(c){return c.element===o});if(n)return n;var s=xR(o);return vu.push(s),s},xR=function(o){var n=[],s={dragenter:ER,dragover:wR,dragleave:RR,drop:IR},c={};a(s,function(T,x){c[T]=x(o,n),o.addEventListener(T,c[T],!1)});var y={element:o,addListener:function(x){return n.push(x),function(){n.splice(n.indexOf(x),1),n.length===0&&(vu.splice(vu.indexOf(y),1),a(s,function(_){o.removeEventListener(_,c[_],!1)}))}}};return y},PR=function(o,n){return"elementFromPoint"in o||(o=document),o.elementFromPoint(n.x,n.y)},dm=function(o,n){var s=iR(n),c=PR(s,{x:o.pageX-window.pageXOffset,y:o.pageY-window.pageYOffset});return c===n||n.contains(c)},Eh=null,bu=function(o,n){try{o.dropEffect=n}catch{}},ER=function(o,n){return function(s){s.preventDefault(),Eh=s.target,n.forEach(function(c){var y=c.element,T=c.onenter;dm(s,y)&&(c.state="enter",T(xs(s)))})}},wR=function(o,n){return function(s){s.preventDefault();var c=s.dataTransfer;um(c).then(function(y){var T=!1;n.some(function(x){var _=x.filterElement,W=x.element,X=x.onenter,se=x.onexit,pe=x.ondrag,Le=x.allowdrop;bu(c,"copy");var Ge=Le(y);if(!Ge){bu(c,"none");return}if(dm(s,W)){if(T=!0,x.state===null){x.state="enter",X(xs(s));return}if(x.state="over",_&&!Ge){bu(c,"none");return}pe(xs(s))}else _&&!T&&bu(c,"none"),x.state&&(x.state=null,se(xs(s)))})})}},IR=function(o,n){return function(s){s.preventDefault();var c=s.dataTransfer;um(c).then(function(y){n.forEach(function(T){var x=T.filterElement,_=T.element,W=T.ondrop,X=T.onexit,se=T.allowdrop;if(T.state=null,!(x&&!dm(s,_))){if(!se(y))return X(xs(s));W(xs(s),y)}})})}},RR=function(o,n){return function(s){Eh===s.target&&n.forEach(function(c){var y=c.onexit;c.state=null,y(xs(s))})}},SR=function(o,n,s){o.classList.add("filepond--hopper");var c=s.catchesDropsOnPage,y=s.requiresDropOnElement,T=s.filterItems,x=T===void 0?function(pe){return pe}:T,_=bR(o,c?document.documentElement:o,y),W="",X="";_.allowdrop=function(pe){return n(x(pe))},_.ondrop=function(pe,Le){var Ge=x(Le);if(!n(Ge)){se.ondragend(pe);return}X="drag-drop",se.onload(Ge,pe)},_.ondrag=function(pe){se.ondrag(pe)},_.onenter=function(pe){X="drag-over",se.ondragstart(pe)},_.onexit=function(pe){X="drag-exit",se.ondragend(pe)};var se={updateHopperState:function(){W!==X&&(o.dataset.hopperState=X,W=X)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){_.destroy()}};return se},mm=!1,Tl=[],wh=function(o){var n=document.activeElement,s=n&&(/textarea|input/i.test(n.nodeName)||n.getAttribute("contenteditable")==="true"||n.getAttribute("contenteditable")==="");if(s){for(var c=!1,y=n;y!==document.body;){if(y.classList.contains("filepond--root")){c=!0;break}y=y.parentNode}if(!c)return}um(o.clipboardData).then(function(T){T.length&&Tl.forEach(function(x){return x(T)})})},OR=function(o){Tl.includes(o)||(Tl.push(o),!mm&&(mm=!0,document.addEventListener("paste",wh)))},CR=function(o){b(Tl,Tl.indexOf(o)),Tl.length===0&&(document.removeEventListener("paste",wh),mm=!1)},DR=function(){var o=function(c){n.onload(c)},n={destroy:function(){CR(o)},onload:function(){}};return OR(o),n},_R=function(o){var n=o.root,s=o.props;n.element.id="filepond--assistant-"+s.id,p(n.element,"role","alert"),p(n.element,"aria-live","polite"),p(n.element,"aria-relevant","additions")},Ih=null,Rh=null,ym=[],Tu=function(o,n){o.element.textContent=n},AR=function(o){o.element.textContent=""},Sh=function(o,n,s){var c=o.query("GET_TOTAL_ITEMS");Tu(o,s+" "+n+", "+c+" "+(c===1?o.query("GET_LABEL_FILE_COUNT_SINGULAR"):o.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(Rh),Rh=setTimeout(function(){AR(o)},1500)},Oh=function(o){return o.element.parentNode.contains(document.activeElement)},MR=function(o){var n=o.root,s=o.action;if(Oh(n)){n.element.textContent="";var c=n.query("GET_ITEM",s.id);ym.push(c.filename),clearTimeout(Ih),Ih=setTimeout(function(){Sh(n,ym.join(", "),n.query("GET_LABEL_FILE_ADDED")),ym.length=0},750)}},NR=function(o){var n=o.root,s=o.action;if(Oh(n)){var c=s.item;Sh(n,c.filename,n.query("GET_LABEL_FILE_REMOVED"))}},LR=function(o){var n=o.root,s=o.action,c=n.query("GET_ITEM",s.id),y=c.filename,T=n.query("GET_LABEL_FILE_PROCESSING_COMPLETE");Tu(n,y+" "+T)},Ch=function(o){var n=o.root,s=o.action,c=n.query("GET_ITEM",s.id),y=c.filename,T=n.query("GET_LABEL_FILE_PROCESSING_ABORTED");Tu(n,y+" "+T)},xu=function(o){var n=o.root,s=o.action,c=n.query("GET_ITEM",s.id),y=c.filename;Tu(n,s.status.main+" "+y+" "+s.status.sub)},kR=ke({create:_R,ignoreRect:!0,ignoreRectUpdate:!0,write:Dt({DID_LOAD_ITEM:MR,DID_REMOVE_ITEM:NR,DID_COMPLETE_ITEM_PROCESSING:LR,DID_ABORT_ITEM_PROCESSING:Ch,DID_REVERT_ITEM_PROCESSING:Ch,DID_THROW_ITEM_REMOVE_ERROR:xu,DID_THROW_ITEM_LOAD_ERROR:xu,DID_THROW_ITEM_INVALID:xu,DID_THROW_ITEM_PROCESSING_ERROR:xu}),tag:"span",name:"assistant"}),Dh=function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"-";return o.replace(new RegExp(n+".","g"),function(s){return s.charAt(1).toUpperCase()})},_h=function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:16,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=Date.now(),y=null;return function(){for(var T=arguments.length,x=new Array(T),_=0;_<T;_++)x[_]=arguments[_];clearTimeout(y);var W=Date.now()-c,X=function(){c=Date.now(),o.apply(void 0,x)};W<n?s||(y=setTimeout(X,n-W)):X()}},FR=1e6,Pu=function(o){return o.preventDefault()},BR=function(o){var n=o.root,s=o.props,c=n.query("GET_ID");c&&(n.element.id=c);var y=n.query("GET_CLASS_NAME");y&&y.split(" ").filter(function(se){return se.length}).forEach(function(se){n.element.classList.add(se)}),n.ref.label=n.appendChildView(n.createChildView(jI,Object.assign({},s,{translateY:null,caption:n.query("GET_LABEL_IDLE")}))),n.ref.list=n.appendChildView(n.createChildView(LI,{translateY:null})),n.ref.panel=n.appendChildView(n.createChildView(ah,{name:"panel-root"})),n.ref.assistant=n.appendChildView(n.createChildView(kR,Object.assign({},s))),n.ref.data=n.appendChildView(n.createChildView(nR,Object.assign({},s))),n.ref.measure=ba("div"),n.ref.measure.style.height="100%",n.element.appendChild(n.ref.measure),n.ref.bounds=null,n.query("GET_STYLES").filter(function(se){return!Ft(se.value)}).map(function(se){var pe=se.name,Le=se.value;n.element.dataset[pe]=Le}),n.ref.widthPrevious=null,n.ref.widthUpdated=_h(function(){n.ref.updateHistory=[],n.dispatch("DID_RESIZE_ROOT")},250),n.ref.previousAspectRatio=null,n.ref.updateHistory=[];var T=window.matchMedia("(pointer: fine) and (hover: hover)").matches,x="PointerEvent"in window;n.query("GET_ALLOW_REORDER")&&x&&!T&&(n.element.addEventListener("touchmove",Pu,{passive:!1}),n.element.addEventListener("gesturestart",Pu));var _=n.query("GET_CREDITS"),W=_.length===2;if(W){var X=document.createElement("a");X.className="filepond--credits",X.href=_[0],X.tabIndex=-1,X.target="_blank",X.rel="noopener noreferrer nofollow",X.textContent=_[1],n.element.appendChild(X),n.ref.credits=X}},GR=function(o){var n=o.root,s=o.props,c=o.actions;if(WR({root:n,props:s,actions:c}),c.filter(function(Er){return/^DID_SET_STYLE_/.test(Er.type)}).filter(function(Er){return!Ft(Er.data.value)}).map(function(Er){var ho=Er.type,Do=Er.data,xl=Dh(ho.substring(8).toLowerCase(),"_");n.element.dataset[xl]=Do.value,n.invalidateLayout()}),!n.rect.element.hidden){n.rect.element.width!==n.ref.widthPrevious&&(n.ref.widthPrevious=n.rect.element.width,n.ref.widthUpdated());var y=n.ref.bounds;y||(y=n.ref.bounds=zR(n),n.element.removeChild(n.ref.measure),n.ref.measure=null);var T=n.ref,x=T.hopper,_=T.label,W=T.list,X=T.panel;x&&x.updateHopperState();var se=n.query("GET_PANEL_ASPECT_RATIO"),pe=n.query("GET_ALLOW_MULTIPLE"),Le=n.query("GET_TOTAL_ITEMS"),Ge=pe?n.query("GET_MAX_FILES")||FR:1,Ue=Le===Ge,Re=c.find(function(Er){return Er.type==="DID_ADD_ITEM"});if(Ue&&Re){var Ze=Re.data.interactionMethod;_.opacity=0,pe?_.translateY=-40:Ze===Dr.API?_.translateX=40:Ze===Dr.BROWSE?_.translateY=40:_.translateY=30}else Ue||(_.opacity=1,_.translateX=0,_.translateY=0);var vt=UR(n),Rt=jR(n),ot=_.rect.element.height,Kt=!pe||Ue?0:ot,lt=Ue?W.rect.element.marginTop:0,Nr=Le===0?0:W.rect.element.marginBottom,Lr=Kt+lt+Rt.visual+Nr,mt=Kt+lt+Rt.bounds+Nr;if(W.translateY=Math.max(0,Kt-W.rect.element.marginTop)-vt.top,se){var St=n.rect.element.width,At=St*se;se!==n.ref.previousAspectRatio&&(n.ref.previousAspectRatio=se,n.ref.updateHistory=[]);var pt=n.ref.updateHistory;pt.push(St);var Tt=2;if(pt.length>Tt*2){for(var kt=pt.length,Hr=kt-10,Or=0,Gt=kt;Gt>=Hr;Gt--)if(pt[Gt]===pt[Gt-2]&&Or++,Or>=Tt)return}X.scalable=!1,X.height=At;var je=At-Kt-(Nr-vt.bottom)-(Ue?lt:0);Rt.visual>je?W.overflow=je:W.overflow=null,n.height=At}else if(y.fixedHeight){X.scalable=!1;var be=y.fixedHeight-Kt-(Nr-vt.bottom)-(Ue?lt:0);Rt.visual>be?W.overflow=be:W.overflow=null}else if(y.cappedHeight){var It=Lr>=y.cappedHeight,qt=Math.min(y.cappedHeight,Lr);X.scalable=!0,X.height=It?qt:qt-vt.top-vt.bottom;var rr=qt-Kt-(Nr-vt.bottom)-(Ue?lt:0);Lr>y.cappedHeight&&Rt.visual>rr?W.overflow=rr:W.overflow=null,n.height=Math.min(y.cappedHeight,mt-vt.top-vt.bottom)}else{var hr=Le>0?vt.top+vt.bottom:0;X.scalable=!0,X.height=Math.max(ot,Lr-hr),n.height=Math.max(ot,mt-hr)}n.ref.credits&&X.heightCurrent&&(n.ref.credits.style.transform="translateY("+X.heightCurrent+"px)")}},UR=function(o){var n=o.ref.list.childViews[0].childViews[0];return n?{top:n.rect.element.marginTop,bottom:n.rect.element.marginBottom}:{top:0,bottom:0}},jR=function(o){var n=0,s=0,c=o.ref.list,y=c.childViews[0],T=y.childViews.filter(function(Rt){return Rt.rect.element.height}),x=o.query("GET_ACTIVE_ITEMS").map(function(Rt){return T.find(function(ot){return ot.id===Rt.id})}).filter(function(Rt){return Rt});if(x.length===0)return{visual:n,bounds:s};var _=y.rect.element.width,W=sm(y,x,c.dragCoordinates),X=x[0].rect.element,se=X.marginTop+X.marginBottom,pe=X.marginLeft+X.marginRight,Le=X.width+pe,Ge=X.height+se,Ue=typeof W<"u"&&W>=0?1:0,Re=x.find(function(Rt){return Rt.markedForRemoval&&Rt.opacity<.45})?-1:0,Ze=x.length+Ue+Re,vt=am(_,Le);return vt===1?x.forEach(function(Rt){var ot=Rt.rect.element.height+se;s+=ot,n+=ot*Rt.opacity}):(s=Math.ceil(Ze/vt)*Ge,n=s),{visual:n,bounds:s}},zR=function(o){var n=o.ref.measureHeight||null,s=parseInt(o.style.maxHeight,10)||null,c=n===0?null:n;return{cappedHeight:s,fixedHeight:c}},gm=function(o,n){var s=o.query("GET_ALLOW_REPLACE"),c=o.query("GET_ALLOW_MULTIPLE"),y=o.query("GET_TOTAL_ITEMS"),T=o.query("GET_MAX_FILES"),x=n.length;if(!c&&x>1)return o.dispatch("DID_THROW_MAX_FILES",{source:n,error:Mo("warning",0,"Max files")}),!0;if(T=c?T:1,!c&&s)return!1;var _=it(T);return _&&y+x>T?(o.dispatch("DID_THROW_MAX_FILES",{source:n,error:Mo("warning",0,"Max files")}),!0):!1},VR=function(o,n,s){var c=o.childViews[0];return sm(c,n,{left:s.scopeLeft-c.rect.element.left,top:s.scopeTop-(o.rect.outer.top+o.rect.element.marginTop+o.rect.element.scrollTop)})},Ah=function(o){var n=o.query("GET_ALLOW_DROP"),s=o.query("GET_DISABLED"),c=n&&!s;if(c&&!o.ref.hopper){var y=SR(o.element,function(T){var x=o.query("GET_BEFORE_DROP_FILE")||function(){return!0},_=o.query("GET_DROP_VALIDATION");return _?T.every(function(W){return jt("ALLOW_HOPPER_ITEM",W,{query:o.query}).every(function(X){return X===!0})&&x(W)}):!0},{filterItems:function(x){var _=o.query("GET_IGNORED_FILES");return x.filter(function(W){return Ts(W)?!_.includes(W.name.toLowerCase()):!0})},catchesDropsOnPage:o.query("GET_DROP_ON_PAGE"),requiresDropOnElement:o.query("GET_DROP_ON_ELEMENT")});y.onload=function(T,x){var _=o.ref.list.childViews[0],W=_.childViews.filter(function(se){return se.rect.element.height}),X=o.query("GET_ACTIVE_ITEMS").map(function(se){return W.find(function(pe){return pe.id===se.id})}).filter(function(se){return se});qe("ADD_ITEMS",T,{dispatch:o.dispatch}).then(function(se){if(gm(o,se))return!1;o.dispatch("ADD_ITEMS",{items:se,index:VR(o.ref.list,X,x),interactionMethod:Dr.DROP})}),o.dispatch("DID_DROP",{position:x}),o.dispatch("DID_END_DRAG",{position:x})},y.ondragstart=function(T){o.dispatch("DID_START_DRAG",{position:T})},y.ondrag=_h(function(T){o.dispatch("DID_DRAG",{position:T})}),y.ondragend=function(T){o.dispatch("DID_END_DRAG",{position:T})},o.ref.hopper=y,o.ref.drip=o.appendChildView(o.createChildView(ZI))}else!c&&o.ref.hopper&&(o.ref.hopper.destroy(),o.ref.hopper=null,o.removeChildView(o.ref.drip))},Mh=function(o,n){var s=o.query("GET_ALLOW_BROWSE"),c=o.query("GET_DISABLED"),y=s&&!c;y&&!o.ref.browser?o.ref.browser=o.appendChildView(o.createChildView(GI,Object.assign({},n,{onload:function(x){qe("ADD_ITEMS",x,{dispatch:o.dispatch}).then(function(_){if(gm(o,_))return!1;o.dispatch("ADD_ITEMS",{items:_,index:-1,interactionMethod:Dr.BROWSE})})}})),0):!y&&o.ref.browser&&(o.removeChildView(o.ref.browser),o.ref.browser=null)},Nh=function(o){var n=o.query("GET_ALLOW_PASTE"),s=o.query("GET_DISABLED"),c=n&&!s;c&&!o.ref.paster?(o.ref.paster=DR(),o.ref.paster.onload=function(y){qe("ADD_ITEMS",y,{dispatch:o.dispatch}).then(function(T){if(gm(o,T))return!1;o.dispatch("ADD_ITEMS",{items:T,index:-1,interactionMethod:Dr.PASTE})})}):!c&&o.ref.paster&&(o.ref.paster.destroy(),o.ref.paster=null)},WR=Dt({DID_SET_ALLOW_BROWSE:function(o){var n=o.root,s=o.props;Mh(n,s)},DID_SET_ALLOW_DROP:function(o){var n=o.root;Ah(n)},DID_SET_ALLOW_PASTE:function(o){var n=o.root;Nh(n)},DID_SET_DISABLED:function(o){var n=o.root,s=o.props;Ah(n),Nh(n),Mh(n,s);var c=n.query("GET_DISABLED");c?n.element.dataset.disabled="disabled":n.element.removeAttribute("data-disabled")}}),HR=ke({name:"root",read:function(o){var n=o.root;n.ref.measure&&(n.ref.measureHeight=n.ref.measure.offsetHeight)},create:BR,write:GR,destroy:function(o){var n=o.root;n.ref.paster&&n.ref.paster.destroy(),n.ref.hopper&&n.ref.hopper.destroy(),n.element.removeEventListener("touchmove",Pu),n.element.removeEventListener("gesturestart",Pu)},mixins:{styles:["height"]}}),$R=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=null,s=sr(),c=r(an(s),[Mr,zo(s)],[Fw,yn(s)]);c.dispatch("SET_OPTIONS",{options:o});var y=function(){document.hidden||c.dispatch("KICK")};document.addEventListener("visibilitychange",y);var T=null,x=!1,_=!1,W=null,X=null,se=function(){x||(x=!0),clearTimeout(T),T=setTimeout(function(){x=!1,W=null,X=null,_&&(_=!1,c.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",se);var pe=HR(c,{id:Po()}),Le=!1,Ge=!1,Ue={_read:function(){x&&(X=window.innerWidth,W||(W=X),!_&&X!==W&&(c.dispatch("DID_START_RESIZE"),_=!0)),Ge&&Le&&(Le=pe.element.offsetParent===null),!Le&&(pe._read(),Ge=pe.rect.element.hidden)},_write:function(je){var be=c.processActionQueue().filter(function(It){return!/^SET_/.test(It.type)});Le&&!be.length||(Rt(be),Le=pe._write(je,be,_),J(c.query("GET_ITEMS")),Le&&c.processDispatchQueue())}},Re=function(je){return function(be){var It={type:je};if(!be)return It;if(be.hasOwnProperty("error")&&(It.error=be.error?Object.assign({},be.error):null),be.status&&(It.status=Object.assign({},be.status)),be.file&&(It.output=be.file),be.source)It.file=be.source;else if(be.item||be.id){var qt=be.item?be.item:c.query("GET_ITEM",be.id);It.file=qt?z(qt):null}return be.items&&(It.items=be.items.map(z)),/progress/.test(je)&&(It.progress=be.progress),be.hasOwnProperty("origin")&&be.hasOwnProperty("target")&&(It.origin=be.origin,It.target=be.target),It}},Ze={DID_DESTROY:Re("destroy"),DID_INIT:Re("init"),DID_THROW_MAX_FILES:Re("warning"),DID_INIT_ITEM:Re("initfile"),DID_START_ITEM_LOAD:Re("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:Re("addfileprogress"),DID_LOAD_ITEM:Re("addfile"),DID_THROW_ITEM_INVALID:[Re("error"),Re("addfile")],DID_THROW_ITEM_LOAD_ERROR:[Re("error"),Re("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[Re("error"),Re("removefile")],DID_PREPARE_OUTPUT:Re("preparefile"),DID_START_ITEM_PROCESSING:Re("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:Re("processfileprogress"),DID_ABORT_ITEM_PROCESSING:Re("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:Re("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:Re("processfiles"),DID_REVERT_ITEM_PROCESSING:Re("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[Re("error"),Re("processfile")],DID_REMOVE_ITEM:Re("removefile"),DID_UPDATE_ITEMS:Re("updatefiles"),DID_ACTIVATE_ITEM:Re("activatefile"),DID_REORDER_ITEMS:Re("reorderfiles")},vt=function(je){var be=Object.assign({pond:Or},je);delete be.type,pe.element.dispatchEvent(new CustomEvent("FilePond:"+je.type,{detail:be,bubbles:!0,cancelable:!0,composed:!0}));var It=[];je.hasOwnProperty("error")&&It.push(je.error),je.hasOwnProperty("file")&&It.push(je.file);var qt=["type","error","file"];Object.keys(je).filter(function(hr){return!qt.includes(hr)}).forEach(function(hr){return It.push(je[hr])}),Or.fire.apply(Or,[je.type].concat(It));var rr=c.query("GET_ON"+je.type.toUpperCase());rr&&rr.apply(void 0,It)},Rt=function(je){je.length&&je.filter(function(be){return Ze[be.type]}).forEach(function(be){var It=Ze[be.type];(Array.isArray(It)?It:[It]).forEach(function(qt){be.type==="DID_INIT_ITEM"?vt(qt(be.data)):setTimeout(function(){vt(qt(be.data))},0)})})},ot=function(je){return c.dispatch("SET_OPTIONS",{options:je})},Kt=function(je){return c.query("GET_ACTIVE_ITEM",je)},lt=function(je){return new Promise(function(be,It){c.dispatch("REQUEST_ITEM_PREPARE",{query:je,success:function(rr){be(rr)},failure:function(rr){It(rr)}})})},Nr=function(je){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(It,qt){St([{source:je,options:be}],{index:be.index}).then(function(rr){return It(rr&&rr[0])}).catch(qt)})},Lr=function(je){return je.file&&je.id},mt=function(je,be){return typeof je=="object"&&!Lr(je)&&!be&&(be=je,je=void 0),c.dispatch("REMOVE_ITEM",Object.assign({},be,{query:je})),c.query("GET_ACTIVE_ITEM",je)===null},St=function(){for(var je=arguments.length,be=new Array(je),It=0;It<je;It++)be[It]=arguments[It];return new Promise(function(qt,rr){var hr=[],Er={};if(_t(be[0]))hr.push.apply(hr,be[0]),Object.assign(Er,be[1]||{});else{var ho=be[be.length-1];typeof ho=="object"&&!(ho instanceof Blob)&&Object.assign(Er,be.pop()),hr.push.apply(hr,be)}c.dispatch("ADD_ITEMS",{items:hr,index:Er.index,interactionMethod:Dr.API,success:qt,failure:rr})})},At=function(){return c.query("GET_ACTIVE_ITEMS")},pt=function(je){return new Promise(function(be,It){c.dispatch("REQUEST_ITEM_PROCESSING",{query:je,success:function(rr){be(rr)},failure:function(rr){It(rr)}})})},Tt=function(){for(var je=arguments.length,be=new Array(je),It=0;It<je;It++)be[It]=arguments[It];var qt=Array.isArray(be[0])?be[0]:be,rr=qt.length?qt:At();return Promise.all(rr.map(lt))},kt=function(){for(var je=arguments.length,be=new Array(je),It=0;It<je;It++)be[It]=arguments[It];var qt=Array.isArray(be[0])?be[0]:be;if(!qt.length){var rr=At().filter(function(hr){return!(hr.status===fe.IDLE&&hr.origin===Pe.LOCAL)&&hr.status!==fe.PROCESSING&&hr.status!==fe.PROCESSING_COMPLETE&&hr.status!==fe.PROCESSING_REVERT_ERROR});return Promise.all(rr.map(pt))}return Promise.all(qt.map(pt))},Hr=function(){for(var je=arguments.length,be=new Array(je),It=0;It<je;It++)be[It]=arguments[It];var qt=Array.isArray(be[0])?be[0]:be,rr;typeof qt[qt.length-1]=="object"?rr=qt.pop():Array.isArray(be[0])&&(rr=be[1]);var hr=At();if(!qt.length)return Promise.all(hr.map(function(ho){return mt(ho,rr)}));var Er=qt.map(function(ho){return j(ho)?hr[ho]?hr[ho].id:null:ho}).filter(function(ho){return ho});return Er.map(function(ho){return mt(ho,rr)})},Or=Object.assign({},A(),{},Ue,{},Jr(c,s),{setOptions:ot,addFile:Nr,addFiles:St,getFile:Kt,processFile:pt,prepareFile:lt,removeFile:mt,moveFile:function(je,be){return c.dispatch("MOVE_ITEM",{query:je,index:be})},getFiles:At,processFiles:kt,removeFiles:Hr,prepareFiles:Tt,sort:function(je){return c.dispatch("SORT",{compare:je})},browse:function(){var je=pe.element.querySelector("input[type=file]");je&&je.click()},destroy:function(){Or.fire("destroy",pe.element),c.dispatch("ABORT_ALL"),pe._destroy(),window.removeEventListener("resize",se),document.removeEventListener("visibilitychange",y),c.dispatch("DID_DESTROY")},insertBefore:function(je){return gt(pe.element,je)},insertAfter:function(je){return dt(pe.element,je)},appendTo:function(je){return je.appendChild(pe.element)},replaceElement:function(je){gt(pe.element,je),je.parentNode.removeChild(je),n=je},restoreElement:function(){n&&(dt(n,pe.element),pe.element.parentNode.removeChild(pe.element),n=null)},isAttachedTo:function(je){return pe.element===je||n===je},element:{get:function(){return pe.element}},status:{get:function(){return c.query("GET_STATUS")}}});return c.dispatch("DID_INIT"),l(Or)},Lh=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n={};a(sr(),function(c,y){n[c]=y[0]});var s=$R(Object.assign({},n,{},o));return s},XR=function(o){return o.charAt(0).toLowerCase()+o.slice(1)},YR=function(o){return Dh(o.replace(/^data-/,""))},ZR=function f(o,n){a(n,function(s,c){a(o,function(y,T){var x=new RegExp(s),_=x.test(y);if(_&&(delete o[y],c!==!1)){if(ze(c)){o[c]=T;return}var W=c.group;Ke(c)&&!o[W]&&(o[W]={}),o[W][XR(y.replace(x,""))]=T}}),c.mapping&&f(o[c.group],c.mapping)})},QR=function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=[];a(o.attributes,function(y){s.push(o.attributes[y])});var c=s.filter(function(y){return y.name}).reduce(function(y,T){var x=p(o,T.name);return y[YR(T.name)]=x===T.name?!0:x,y},{});return ZR(c,n),c},qR=function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};jt("SET_ATTRIBUTE_TO_OPTION_MAP",s);var c=Object.assign({},n),y=QR(o.nodeName==="FIELDSET"?o.querySelector("input[type=file]"):o,s);Object.keys(y).forEach(function(x){Ke(y[x])?(Ke(c[x])||(c[x]={}),Object.assign(c[x],y[x])):c[x]=y[x]}),c.files=(n.files||[]).concat(Array.from(o.querySelectorAll("input:not([type=file])")).map(function(x){return{source:x.value,options:{type:x.dataset.type}}}));var T=Lh(c);return o.files&&Array.from(o.files).forEach(function(x){T.addFile(x)}),T.replaceElement(o),T},JR=function(){return t(arguments.length<=0?void 0:arguments[0])?qR.apply(void 0,arguments):Lh.apply(void 0,arguments)},KR=["fire","_read","_write"],kh=function(o){var n={};return $(o,n,KR),n},eS=function(o,n){return o.replace(/(?:{([a-zA-Z]+)})/g,function(s,c){return n[c]})},tS=function(o){var n=new Blob(["(",o.toString(),")()"],{type:"application/javascript"}),s=URL.createObjectURL(n),c=new Worker(s);return{transfer:function(T,x){},post:function(T,x,_){var W=Po();c.onmessage=function(X){X.data.id===W&&x(X.data.message)},c.postMessage({id:W,message:T},_)},terminate:function(){c.terminate(),URL.revokeObjectURL(s)}}},rS=function(o){return new Promise(function(n,s){var c=new Image;c.onload=function(){n(c)},c.onerror=function(y){s(y)},c.src=o})},Fh=function(o,n){var s=o.slice(0,o.size,o.type);return s.lastModifiedDate=o.lastModifiedDate,s.name=n,s},oS=function(o){return Fh(o,o.name)},Bh=[],nS=function(o){if(!Bh.includes(o)){Bh.push(o);var n=o({addFilter:Bt,utils:{Type:te,forin:a,isString:ze,isFile:Ts,toNaturalFileSize:Jg,replaceInString:eS,getExtensionFromFilename:Xn,getFilenameWithoutExtension:Wg,guesstimateMimeType:xh,getFileFromBlob:Bi,getFilenameFromURL:Ln,createRoute:Dt,createWorker:tS,createView:ke,createItemAPI:z,loadImage:rS,copyFile:oS,renameFile:Fh,createBlob:hs,applyFilterChain:qe,text:No,getNumericAspectRatioFromString:Ar},views:{fileActionButton:qg}});dr(n.options)}},iS=function(){return Object.prototype.toString.call(window.operamini)==="[object OperaMini]"},aS=function(){return"Promise"in window},sS=function(){return"slice"in Blob.prototype},lS=function(){return"URL"in window&&"createObjectURL"in window.URL},pS=function(){return"visibilityState"in document},cS=function(){return"performance"in window},uS=function(){return"supports"in(window.CSS||{})},fS=function(){return/MSIE|Trident/.test(window.navigator.userAgent)},hm=(function(){var f=G()&&!iS()&&pS()&&aS()&&sS()&&lS()&&cS()&&(uS()||fS());return function(){return f}})(),Ha={apps:[]},dS="filepond",Ps=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=Ps,e.destroy=Ps,e.parse=Ps,e.find=Ps,e.registerPlugin=Ps,e.getOptions=Ps,e.setOptions=Ps,hm()){Vt(function(){Ha.apps.forEach(function(f){return f._read()})},function(f){Ha.apps.forEach(function(o){return o._write(f)})});var Gh=function f(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:hm,create:e.create,destroy:e.destroy,parse:e.parse,find:e.find,registerPlugin:e.registerPlugin,setOptions:e.setOptions}})),document.removeEventListener("DOMContentLoaded",f)};document.readyState!=="loading"?setTimeout(function(){return Gh()},0):document.addEventListener("DOMContentLoaded",Gh);var Uh=function(){return a(sr(),function(o,n){e.OptionTypes[o]=n[1]})};e.Status=Object.assign({},Xr),e.FileOrigin=Object.assign({},Pe),e.FileStatus=Object.assign({},fe),e.OptionTypes={},Uh(),e.create=function(){var o=JR.apply(void 0,arguments);return o.on("destroy",e.destroy),Ha.apps.push(o),kh(o)},e.destroy=function(o){var n=Ha.apps.findIndex(function(c){return c.isAttachedTo(o)});if(n>=0){var s=Ha.apps.splice(n,1)[0];return s.restoreElement(),!0}return!1},e.parse=function(o){var n=Array.from(o.querySelectorAll("."+dS)),s=n.filter(function(c){return!Ha.apps.find(function(y){return y.isAttachedTo(c)})});return s.map(function(c){return e.create(c)})},e.find=function(o){var n=Ha.apps.find(function(s){return s.isAttachedTo(o)});return n?kh(n):null},e.registerPlugin=function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];n.forEach(nS),Uh()},e.getOptions=function(){var o={};return a(sr(),function(n,s){o[n]=s[0]}),o},e.setOptions=function(o){return Ke(o)&&(Ha.apps.forEach(function(n){n.setOptions(o)}),Sr(o)),e.getOptions()}}e.supported=hm,Object.defineProperty(e,"__esModule",{value:!0})})});var ZE=Tn((Dg,_g)=>{(function(e,t){typeof Dg=="object"&&typeof _g<"u"?_g.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.FilePondPluginImageExifOrientation=t())})(Dg,function(){"use strict";var e=function(R){return/^image\/jpeg/.test(R.type)},t={JPEG:65496,APP1:65505,EXIF:1165519206,TIFF:18761,Orientation:274,Unknown:65280},r=function(R,G){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return R.getUint16(G,N)},i=function(R,G){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return R.getUint32(G,N)},a=function(R){return new Promise(function(G,N){var U=new FileReader;U.onload=function(Y){var L=new DataView(Y.target.result);if(r(L,0)!==t.JPEG){G(-1);return}for(var k=L.byteLength,j=2;j<k;){var D=r(L,j);if(j+=2,D===t.APP1){if(i(L,j+=2)!==t.EXIF)break;var Z=r(L,j+=6)===t.TIFF;j+=i(L,j+4,Z);var ne=r(L,j,Z);j+=2;for(var le=0;le<ne;le++)if(r(L,j+le*12,Z)===t.Orientation){G(r(L,j+le*12+8,Z));return}}else{if((D&t.Unknown)!==t.Unknown)break;j+=r(L,j)}}G(-1)},U.readAsArrayBuffer(R.slice(0,64*1024))})},l=(function(){return typeof window<"u"&&typeof window.document<"u"})(),p=function(){return l},u="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=",m=void 0,h=p()?new Image:{};h.onload=function(){return m=h.naturalWidth>h.naturalHeight},h.src=u;var v=function(){return m},I=function(R){var G=R.addFilter,N=R.utils,U=N.Type,Y=N.isFile;return G("DID_LOAD_ITEM",function(L,k){var j=k.query;return new Promise(function(D,Z){var ne=L.file;if(!Y(ne)||!e(ne)||!j("GET_ALLOW_IMAGE_EXIF_ORIENTATION")||!v())return D(L);a(ne).then(function(le){L.setMetadata("exif",{orientation:le}),D(L)})})}),{options:{allowImageExifOrientation:[!0,U.BOOLEAN]}}},P=typeof window<"u"&&typeof window.document<"u";return P&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:I})),I})});var QE=Tn((Ag,Mg)=>{(function(e,t){typeof Ag=="object"&&typeof Mg<"u"?Mg.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.FilePondPluginImagePreview=t())})(Ag,function(){"use strict";var e=function(g){return/^image/.test(g.type)};function t(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(g){return typeof g}:t=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},t(F)}var r;function i(F,g,O,B){r||(r=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103);var V=F&&F.defaultProps,ee=arguments.length-3;if(!g&&ee!==0&&(g={children:void 0}),g&&V)for(var he in V)g[he]===void 0&&(g[he]=V[he]);else g||(g=V||{});if(ee===1)g.children=B;else if(ee>1){for(var ge=new Array(ee),_e=0;_e<ee;_e++)ge[_e]=arguments[_e+3];g.children=ge}return{$$typeof:r,type:F,key:O===void 0?null:""+O,ref:null,props:g,_owner:null}}function a(F){var g;if(typeof Symbol=="function"&&(Symbol.asyncIterator&&(g=F[Symbol.asyncIterator],g!=null)||Symbol.iterator&&(g=F[Symbol.iterator],g!=null)))return g.call(F);throw new TypeError("Object is not async iterable")}function l(F){this.wrapped=F}function p(F){var g,O;function B(he,ge){return new Promise(function(_e,nt){var wt={key:he,arg:ge,resolve:_e,reject:nt,next:null};O?O=O.next=wt:(g=O=wt,V(he,ge))})}function V(he,ge){try{var _e=F[he](ge),nt=_e.value,wt=nt instanceof l;Promise.resolve(wt?nt.wrapped:nt).then(function(ht){if(wt){V("next",ht);return}ee(_e.done?"return":"normal",ht)},function(ht){V("throw",ht)})}catch(ht){ee("throw",ht)}}function ee(he,ge){switch(he){case"return":g.resolve({value:ge,done:!0});break;case"throw":g.reject(ge);break;default:g.resolve({value:ge,done:!1});break}g=g.next,g?V(g.key,g.arg):O=null}this._invoke=B,typeof F.return!="function"&&(this.return=void 0)}typeof Symbol=="function"&&Symbol.asyncIterator&&(p.prototype[Symbol.asyncIterator]=function(){return this}),p.prototype.next=function(F){return this._invoke("next",F)},p.prototype.throw=function(F){return this._invoke("throw",F)},p.prototype.return=function(F){return this._invoke("return",F)};function u(F){return function(){return new p(F.apply(this,arguments))}}function m(F){return new l(F)}function h(F,g){var O={},B=!1;function V(ee,he){return B=!0,he=new Promise(function(ge){ge(F[ee](he))}),{done:!1,value:g(he)}}return typeof Symbol=="function"&&Symbol.iterator&&(O[Symbol.iterator]=function(){return this}),O.next=function(ee){return B?(B=!1,ee):V("next",ee)},typeof F.throw=="function"&&(O.throw=function(ee){if(B)throw B=!1,ee;return V("throw",ee)}),typeof F.return=="function"&&(O.return=function(ee){return V("return",ee)}),O}function v(F,g,O,B,V,ee,he){try{var ge=F[ee](he),_e=ge.value}catch(nt){O(nt);return}ge.done?g(_e):Promise.resolve(_e).then(B,V)}function I(F){return function(){var g=this,O=arguments;return new Promise(function(B,V){var ee=F.apply(g,O);function he(_e){v(ee,B,V,he,ge,"next",_e)}function ge(_e){v(ee,B,V,he,ge,"throw",_e)}he(void 0)})}}function P(F,g){if(!(F instanceof g))throw new TypeError("Cannot call a class as a function")}function w(F,g){for(var O=0;O<g.length;O++){var B=g[O];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,B.key,B)}}function R(F,g,O){return g&&w(F.prototype,g),O&&w(F,O),F}function G(F,g){for(var O in g){var B=g[O];B.configurable=B.enumerable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,O,B)}if(Object.getOwnPropertySymbols)for(var V=Object.getOwnPropertySymbols(g),ee=0;ee<V.length;ee++){var he=V[ee],B=g[he];B.configurable=B.enumerable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,he,B)}return F}function N(F,g){for(var O=Object.getOwnPropertyNames(g),B=0;B<O.length;B++){var V=O[B],ee=Object.getOwnPropertyDescriptor(g,V);ee&&ee.configurable&&F[V]===void 0&&Object.defineProperty(F,V,ee)}return F}function U(F,g,O){return g in F?Object.defineProperty(F,g,{value:O,enumerable:!0,configurable:!0,writable:!0}):F[g]=O,F}function Y(){return Y=Object.assign||function(F){for(var g=1;g<arguments.length;g++){var O=arguments[g];for(var B in O)Object.prototype.hasOwnProperty.call(O,B)&&(F[B]=O[B])}return F},Y.apply(this,arguments)}function L(F){for(var g=1;g<arguments.length;g++){var O=arguments[g]!=null?arguments[g]:{},B=Object.keys(O);typeof Object.getOwnPropertySymbols=="function"&&(B=B.concat(Object.getOwnPropertySymbols(O).filter(function(V){return Object.getOwnPropertyDescriptor(O,V).enumerable}))),B.forEach(function(V){U(F,V,O[V])})}return F}function k(F,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(g&&g.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),g&&Z(F,g)}function j(F,g){F.prototype=Object.create(g.prototype),F.prototype.constructor=F,F.__proto__=g}function D(F){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},D(F)}function Z(F,g){return Z=Object.setPrototypeOf||function(B,V){return B.__proto__=V,B},Z(F,g)}function ne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function le(F,g,O){return ne()?le=Reflect.construct:le=function(V,ee,he){var ge=[null];ge.push.apply(ge,ee);var _e=Function.bind.apply(V,ge),nt=new _e;return he&&Z(nt,he.prototype),nt},le.apply(null,arguments)}function de(F){return Function.toString.call(F).indexOf("[native code]")!==-1}function ye(F){var g=typeof Map=="function"?new Map:void 0;return ye=function(B){if(B===null||!de(B))return B;if(typeof B!="function")throw new TypeError("Super expression must either be null or a function");if(typeof g<"u"){if(g.has(B))return g.get(B);g.set(B,V)}function V(){return le(B,arguments,D(this).constructor)}return V.prototype=Object.create(B.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),Z(V,B)},ye(F)}function E(F,g){return g!=null&&typeof Symbol<"u"&&g[Symbol.hasInstance]?g[Symbol.hasInstance](F):F instanceof g}function q(F){return F&&F.__esModule?F:{default:F}}function re(F){if(F&&F.__esModule)return F;var g={};if(F!=null){for(var O in F)if(Object.prototype.hasOwnProperty.call(F,O)){var B=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(F,O):{};B.get||B.set?Object.defineProperty(g,O,B):g[O]=F[O]}}return g.default=F,g}function oe(F,g){if(F!==g)throw new TypeError("Cannot instantiate an arrow function")}function ce(F){if(F==null)throw new TypeError("Cannot destructure undefined")}function Me(F,g){if(F==null)return{};var O={},B=Object.keys(F),V,ee;for(ee=0;ee<B.length;ee++)V=B[ee],!(g.indexOf(V)>=0)&&(O[V]=F[V]);return O}function He(F,g){if(F==null)return{};var O=Me(F,g),B,V;if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(F);for(V=0;V<ee.length;V++)B=ee[V],!(g.indexOf(B)>=0)&&Object.prototype.propertyIsEnumerable.call(F,B)&&(O[B]=F[B])}return O}function Ie(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function yt(F,g){return g&&(typeof g=="object"||typeof g=="function")?g:Ie(F)}function ct(F,g){for(;!Object.prototype.hasOwnProperty.call(F,g)&&(F=D(F),F!==null););return F}function ut(F,g,O){return typeof Reflect<"u"&&Reflect.get?ut=Reflect.get:ut=function(V,ee,he){var ge=ct(V,ee);if(ge){var _e=Object.getOwnPropertyDescriptor(ge,ee);return _e.get?_e.get.call(he):_e.value}},ut(F,g,O||F)}function ft(F,g,O,B){return typeof Reflect<"u"&&Reflect.set?ft=Reflect.set:ft=function(ee,he,ge,_e){var nt=ct(ee,he),wt;if(nt){if(wt=Object.getOwnPropertyDescriptor(nt,he),wt.set)return wt.set.call(_e,ge),!0;if(!wt.writable)return!1}if(wt=Object.getOwnPropertyDescriptor(_e,he),wt){if(!wt.writable)return!1;wt.value=ge,Object.defineProperty(_e,he,wt)}else U(_e,he,ge);return!0},ft(F,g,O,B)}function at(F,g,O,B,V){var ee=ft(F,g,O,B||F);if(!ee&&V)throw new Error("failed to set property");return O}function tt(F,g){return g||(g=F.slice(0)),Object.freeze(Object.defineProperties(F,{raw:{value:Object.freeze(g)}}))}function ke(F,g){return g||(g=F.slice(0)),F.raw=g,F}function Vt(F,g){if(F===dt)throw new ReferenceError(g+" is not defined - temporal dead zone");return F}function Dt(F){throw new Error('"'+F+'" is read-only')}function gt(F){throw new Error('Class "'+F+'" cannot be referenced in computed property keys.')}var dt={};function _t(F,g){return Mt(F)||ze(F,g)||Wt()}function Ft(F,g){return Mt(F)||cr(F,g)||Wt()}function $t(F){return Mt(F)||or(F)||Wt()}function Ut(F){return ir(F)||or(F)||xt()}function ir(F){if(Array.isArray(F)){for(var g=0,O=new Array(F.length);g<F.length;g++)O[g]=F[g];return O}}function Mt(F){if(Array.isArray(F))return F}function or(F){if(Symbol.iterator in Object(F)||Object.prototype.toString.call(F)==="[object Arguments]")return Array.from(F)}function ze(F,g){var O=[],B=!0,V=!1,ee=void 0;try{for(var he=F[Symbol.iterator](),ge;!(B=(ge=he.next()).done)&&(O.push(ge.value),!(g&&O.length===g));B=!0);}catch(_e){V=!0,ee=_e}finally{try{!B&&he.return!=null&&he.return()}finally{if(V)throw ee}}return O}function cr(F,g){for(var O=[],B=F[Symbol.iterator](),V;!(V=B.next()).done&&(O.push(V.value),!(g&&O.length===g)););return O}function xt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Wt(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function it(F){return function(){var g=F.apply(this,arguments);return g.next(),g}}function Gr(F,g){if(typeof F!="object"||F===null)return F;var O=F[Symbol.toPrimitive];if(O!==void 0){var B=O.call(F,g||"default");if(typeof B!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(F)}function Xt(F){var g=Gr(F,"string");return typeof g=="symbol"?g:String(g)}function Ur(F,g){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and set to use loose mode. To use proposal-class-properties in spec mode with decorators, wait for the next major version of decorators in stage 2.")}function Qr(F,g,O,B){O&&Object.defineProperty(F,g,{enumerable:O.enumerable,configurable:O.configurable,writable:O.writable,value:O.initializer?O.initializer.call(B):void 0})}function Uo(F,g,O,B,V){var ee={};return Object.keys(B).forEach(function(he){ee[he]=B[he]}),ee.enumerable=!!ee.enumerable,ee.configurable=!!ee.configurable,("value"in ee||ee.initializer)&&(ee.writable=!0),ee=O.slice().reverse().reduce(function(he,ge){return ge(F,g,he)||he},ee),V&&ee.initializer!==void 0&&(ee.value=ee.initializer?ee.initializer.call(V):void 0,ee.initializer=void 0),ee.initializer===void 0&&(Object.defineProperty(F,g,ee),ee=null),ee}var qr=0;function Oo(F){return"__private_"+qr+++"_"+F}function ur(F,g){if(!Object.prototype.hasOwnProperty.call(F,g))throw new TypeError("attempted to use private field on non-instance");return F}function Ke(F,g){if(!g.has(F))throw new TypeError("attempted to get private field on non-instance");var O=g.get(F);return O.get?O.get.call(F):O.value}function jr(F,g,O){if(!g.has(F))throw new TypeError("attempted to set private field on non-instance");var B=g.get(F);if(B.set)B.set.call(F,O);else{if(!B.writable)throw new TypeError("attempted to set read only private field");B.value=O}return O}function xo(F,g,O){if(F!==g)throw new TypeError("Private static access of wrong provenance");return O.value}function yo(F,g,O,B){if(F!==g)throw new TypeError("Private static access of wrong provenance");if(!O.writable)throw new TypeError("attempted to set read only private field");return O.value=B,B}function jo(F,g,O){if(F!==g)throw new TypeError("Private static access of wrong provenance");return O}function bt(){throw new TypeError("attempted to set read only static private field")}function Ht(F,g,O,B){var V=mr();if(B)for(var ee=0;ee<B.length;ee++)V=B[ee](V);var he=g(function(nt){V.initializeInstanceElements(nt,ge.elements)},O),ge=V.decorateClass(Cr(he.d.map(go)),F);return V.initializeClassElements(he.F,ge.elements),V.runClassFinishers(he.F,ge.finishers)}function mr(){mr=function(){return F};var F={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(g,O){["method","field"].forEach(function(B){O.forEach(function(V){V.kind===B&&V.placement==="own"&&this.defineClassElement(g,V)},this)},this)},initializeClassElements:function(g,O){var B=g.prototype;["method","field"].forEach(function(V){O.forEach(function(ee){var he=ee.placement;if(ee.kind===V&&(he==="static"||he==="prototype")){var ge=he==="static"?g:B;this.defineClassElement(ge,ee)}},this)},this)},defineClassElement:function(g,O){var B=O.descriptor;if(O.kind==="field"){var V=O.initializer;B={enumerable:B.enumerable,writable:B.writable,configurable:B.configurable,value:V===void 0?void 0:V.call(g)}}Object.defineProperty(g,O.key,B)},decorateClass:function(g,O){var B=[],V=[],ee={static:[],prototype:[],own:[]};if(g.forEach(function(ge){this.addElementPlacement(ge,ee)},this),g.forEach(function(ge){if(!Jr(ge))return B.push(ge);var _e=this.decorateElement(ge,ee);B.push(_e.element),B.push.apply(B,_e.extras),V.push.apply(V,_e.finishers)},this),!O)return{elements:B,finishers:V};var he=this.decorateConstructor(B,O);return V.push.apply(V,he.finishers),he.finishers=V,he},addElementPlacement:function(g,O,B){var V=O[g.placement];if(!B&&V.indexOf(g.key)!==-1)throw new TypeError("Duplicated element ("+g.key+")");V.push(g.key)},decorateElement:function(g,O){for(var B=[],V=[],ee=g.decorators,he=ee.length-1;he>=0;he--){var ge=O[g.placement];ge.splice(ge.indexOf(g.key),1);var _e=this.fromElementDescriptor(g),nt=this.toElementFinisherExtras((0,ee[he])(_e)||_e);g=nt.element,this.addElementPlacement(g,O),nt.finisher&&V.push(nt.finisher);var wt=nt.extras;if(wt){for(var ht=0;ht<wt.length;ht++)this.addElementPlacement(wt[ht],O);B.push.apply(B,wt)}}return{element:g,finishers:V,extras:B}},decorateConstructor:function(g,O){for(var B=[],V=O.length-1;V>=0;V--){var ee=this.fromClassDescriptor(g),he=this.toClassDescriptor((0,O[V])(ee)||ee);if(he.finisher!==void 0&&B.push(he.finisher),he.elements!==void 0){g=he.elements;for(var ge=0;ge<g.length-1;ge++)for(var _e=ge+1;_e<g.length;_e++)if(g[ge].key===g[_e].key&&g[ge].placement===g[_e].placement)throw new TypeError("Duplicated element ("+g[ge].key+")")}}return{elements:g,finishers:B}},fromElementDescriptor:function(g){var O={kind:g.kind,key:g.key,placement:g.placement,descriptor:g.descriptor},B={value:"Descriptor",configurable:!0};return Object.defineProperty(O,Symbol.toStringTag,B),g.kind==="field"&&(O.initializer=g.initializer),O},toElementDescriptors:function(g){if(g!==void 0)return $t(g).map(function(O){var B=this.toElementDescriptor(O);return this.disallowProperty(O,"finisher","An element descriptor"),this.disallowProperty(O,"extras","An element descriptor"),B},this)},toElementDescriptor:function(g){var O=String(g.kind);if(O!=="method"&&O!=="field")throw new TypeError(`An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "`+O+'"');var B=Xt(g.key),V=String(g.placement);if(V!=="static"&&V!=="prototype"&&V!=="own")throw new TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "`+V+'"');var ee=g.descriptor;this.disallowProperty(g,"elements","An element descriptor");var he={kind:O,key:B,placement:V,descriptor:Object.assign({},ee)};return O!=="field"?this.disallowProperty(g,"initializer","A method descriptor"):(this.disallowProperty(ee,"get","The property descriptor of a field descriptor"),this.disallowProperty(ee,"set","The property descriptor of a field descriptor"),this.disallowProperty(ee,"value","The property descriptor of a field descriptor"),he.initializer=g.initializer),he},toElementFinisherExtras:function(g){var O=this.toElementDescriptor(g),B=zo(g,"finisher"),V=this.toElementDescriptors(g.extras);return{element:O,finisher:B,extras:V}},fromClassDescriptor:function(g){var O={kind:"class",elements:g.map(this.fromElementDescriptor,this)},B={value:"Descriptor",configurable:!0};return Object.defineProperty(O,Symbol.toStringTag,B),O},toClassDescriptor:function(g){var O=String(g.kind);if(O!=="class")throw new TypeError(`A class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "`+O+'"');this.disallowProperty(g,"key","A class descriptor"),this.disallowProperty(g,"placement","A class descriptor"),this.disallowProperty(g,"descriptor","A class descriptor"),this.disallowProperty(g,"initializer","A class descriptor"),this.disallowProperty(g,"extras","A class descriptor");var B=zo(g,"finisher"),V=this.toElementDescriptors(g.elements);return{elements:V,finisher:B}},runClassFinishers:function(g,O){for(var B=0;B<O.length;B++){var V=(0,O[B])(g);if(V!==void 0){if(typeof V!="function")throw new TypeError("Finishers must return a constructor.");g=V}}return g},disallowProperty:function(g,O,B){if(g[O]!==void 0)throw new TypeError(B+" can't have a ."+O+" property.")}};return F}function go(F){var g=Xt(F.key),O;F.kind==="method"?O={value:F.value,writable:!0,configurable:!0,enumerable:!1}:F.kind==="get"?O={get:F.value,configurable:!0,enumerable:!1}:F.kind==="set"?O={set:F.value,configurable:!0,enumerable:!1}:F.kind==="field"&&(O={configurable:!0,writable:!0,enumerable:!0});var B={kind:F.kind==="field"?"field":"method",key:g,placement:F.static?"static":F.kind==="field"?"own":"prototype",descriptor:O};return F.decorators&&(B.decorators=F.decorators),F.kind==="field"&&(B.initializer=F.value),B}function an(F,g){F.descriptor.get!==void 0?g.descriptor.get=F.descriptor.get:g.descriptor.set=F.descriptor.set}function Cr(F){for(var g=[],O=function(he){return he.kind==="method"&&he.key===V.key&&he.placement===V.placement},B=0;B<F.length;B++){var V=F[B],ee;if(V.kind==="method"&&(ee=g.find(O)))if(yn(V.descriptor)||yn(ee.descriptor)){if(Jr(V)||Jr(ee))throw new ReferenceError("Duplicated methods ("+V.key+") can't be decorated.");ee.descriptor=V.descriptor}else{if(Jr(V)){if(Jr(ee))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+V.key+").");ee.decorators=V.decorators}an(V,ee)}else g.push(V)}return g}function Jr(F){return F.decorators&&F.decorators.length}function yn(F){return F!==void 0&&!(F.value===void 0&&F.writable===void 0)}function zo(F,g){var O=F[g];if(O!==void 0&&typeof O!="function")throw new TypeError("Expected '"+g+"' to be a function");return O}function Dr(F,g,O){if(!g.has(F))throw new TypeError("attempted to get private field on non-instance");return O}function Po(){throw new TypeError("attempted to reassign private method")}function Mn(F,g){Mn=function(ge,_e){return new ee(ge,_e)};var O=ye(RegExp),B=RegExp.prototype,V=new WeakMap;function ee(ge,_e){var nt=O.call(this,ge);return V.set(nt,_e),nt}k(ee,O),ee.prototype.exec=function(ge){var _e=B.exec.call(this,ge);return _e&&(_e.groups=he(_e,this)),_e},ee.prototype[Symbol.replace]=function(ge,_e){if(typeof _e=="string"){var nt=V.get(this);return B[Symbol.replace].call(this,ge,_e.replace(/\$<([^>]+)>/g,function(ht,Qt){return"$"+nt[Qt]}))}else if(typeof _e=="function"){var wt=this;return B[Symbol.replace].call(this,ge,function(){var ht=[];return ht.push.apply(ht,arguments),typeof ht[ht.length-1]!="object"&&ht.push(he(ht,wt)),_e.apply(this,ht)})}else return B[Symbol.replace].call(this,ge,_e)};function he(ge,_e){var nt=V.get(_e);return Object.keys(nt).reduce(function(wt,ht){return wt[ht]=ge[nt[ht]],wt},Object.create(null))}return Mn.apply(this,arguments)}var Yo=function(g,O){return zt(g.x*O,g.y*O)},st=function(g,O){return zt(g.x+O.x,g.y+O.y)},Ot=function(g){var O=Math.sqrt(g.x*g.x+g.y*g.y);return O===0?{x:0,y:0}:zt(g.x/O,g.y/O)},Yt=function(g,O,B){var V=Math.cos(O),ee=Math.sin(O),he=zt(g.x-B.x,g.y-B.y);return zt(B.x+V*he.x-ee*he.y,B.y+ee*he.x+V*he.y)},zt=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return{x:g,y:O}},Zt=function(g,O){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,V=arguments.length>3?arguments[3]:void 0;if(typeof g=="string")return parseFloat(g)*B;if(typeof g=="number")return g*(V?O[V]:Math.min(O.width,O.height))},Vo=function(g,O,B){var V=g.borderStyle||g.lineStyle||"solid",ee=g.backgroundColor||g.fontColor||"transparent",he=g.borderColor||g.lineColor||"transparent",ge=Zt(g.borderWidth||g.lineWidth,O,B),_e=g.lineCap||"round",nt=g.lineJoin||"round",wt=typeof V=="string"?"":V.map(function(Qt){return Zt(Qt,O,B)}).join(","),ht=g.opacity||1;return{"stroke-linecap":_e,"stroke-linejoin":nt,"stroke-width":ge||0,"stroke-dasharray":wt,stroke:he,fill:ee,opacity:ht}},zr=function(g){return g!=null},gn=function(g,O){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,V=Zt(g.x,O,B,"width")||Zt(g.left,O,B,"width"),ee=Zt(g.y,O,B,"height")||Zt(g.top,O,B,"height"),he=Zt(g.width,O,B,"width"),ge=Zt(g.height,O,B,"height"),_e=Zt(g.right,O,B,"width"),nt=Zt(g.bottom,O,B,"height");return zr(ee)||(zr(ge)&&zr(nt)?ee=O.height-ge-nt:ee=nt),zr(V)||(zr(he)&&zr(_e)?V=O.width-he-_e:V=_e),zr(he)||(zr(V)&&zr(_e)?he=O.width-V-_e:he=0),zr(ge)||(zr(ee)&&zr(nt)?ge=O.height-ee-nt:ge=0),{x:V||0,y:ee||0,width:he||0,height:ge||0}},Wn=function(g){return g.map(function(O,B){return"".concat(B===0?"M":"L"," ").concat(O.x," ").concat(O.y)}).join(" ")},io=function(g,O){return Object.keys(O).forEach(function(B){return g.setAttribute(B,O[B])})},Kr="http://www.w3.org/2000/svg",_r=function(g,O){var B=document.createElementNS(Kr,g);return O&&io(B,O),B},Hn=function(g){return io(g,Object.assign({},g.rect,g.styles))},ri=function(g){var O=g.rect.x+g.rect.width*.5,B=g.rect.y+g.rect.height*.5,V=g.rect.width*.5,ee=g.rect.height*.5;return io(g,Object.assign({cx:O,cy:B,rx:V,ry:ee},g.styles))},Zo={contain:"xMidYMid meet",cover:"xMidYMid slice"},oi=function(g,O){io(g,Object.assign({},g.rect,g.styles,{preserveAspectRatio:Zo[O.fit]||"none"}))},Se={left:"start",center:"middle",right:"end"},we=function(g,O,B,V){var ee=Zt(O.fontSize,B,V),he=O.fontFamily||"sans-serif",ge=O.fontWeight||"normal",_e=Se[O.textAlign]||"start";io(g,Object.assign({},g.rect,g.styles,{"stroke-width":0,"font-weight":ge,"font-size":ee,"font-family":he,"text-anchor":_e})),g.text!==O.text&&(g.text=O.text,g.textContent=O.text.length?O.text:" ")},rt=function(g,O,B,V){io(g,Object.assign({},g.rect,g.styles,{fill:"none"}));var ee=g.childNodes[0],he=g.childNodes[1],ge=g.childNodes[2],_e=g.rect,nt={x:g.rect.x+g.rect.width,y:g.rect.y+g.rect.height};if(io(ee,{x1:_e.x,y1:_e.y,x2:nt.x,y2:nt.y}),!!O.lineDecoration){he.style.display="none",ge.style.display="none";var wt=Ot({x:nt.x-_e.x,y:nt.y-_e.y}),ht=Zt(.05,B,V);if(O.lineDecoration.indexOf("arrow-begin")!==-1){var Qt=Yo(wt,ht),ao=st(_e,Qt),S=Yt(_e,2,ao),d=Yt(_e,-2,ao);io(he,{style:"display:block;",d:"M".concat(S.x,",").concat(S.y," L").concat(_e.x,",").concat(_e.y," L").concat(d.x,",").concat(d.y)})}if(O.lineDecoration.indexOf("arrow-end")!==-1){var b=Yo(wt,-ht),C=st(nt,b),A=Yt(nt,2,C),$=Yt(nt,-2,C);io(ge,{style:"display:block;",d:"M".concat(A.x,",").concat(A.y," L").concat(nt.x,",").concat(nt.y," L").concat($.x,",").concat($.y)})}}},Nt=function(g,O,B,V){io(g,Object.assign({},g.styles,{fill:"none",d:Wn(O.points.map(function(ee){return{x:Zt(ee.x,B,V,"width"),y:Zt(ee.y,B,V,"height")}}))}))},Lt=function(g){return function(O){return _r(g,{id:O.id})}},Rr=function(g){var O=_r("image",{id:g.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return O.onload=function(){O.setAttribute("opacity",g.opacity||1)},O.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",g.src),O},Pr=function(g){var O=_r("g",{id:g.id,"stroke-linecap":"round","stroke-linejoin":"round"}),B=_r("line");O.appendChild(B);var V=_r("path");O.appendChild(V);var ee=_r("path");return O.appendChild(ee),O},Eo={image:Rr,rect:Lt("rect"),ellipse:Lt("ellipse"),text:Lt("text"),path:Lt("path"),line:Pr},hn={rect:Hn,ellipse:ri,image:oi,text:we,path:Nt,line:rt},$n=function(g,O){return Eo[g](O)},bi=function(g,O,B,V,ee){O!=="path"&&(g.rect=gn(B,V,ee)),g.styles=Vo(B,V,ee),hn[O](g,B,V,ee)},ki=["x","y","left","top","right","bottom","width","height"],tr=function(g){return typeof g=="string"&&/%/.test(g)?parseFloat(g)/100:g},vn=function(g){var O=_t(g,2),B=O[0],V=O[1],ee=V.points?{}:ki.reduce(function(he,ge){return he[ge]=tr(V[ge]),he},{});return[B,Object.assign({zIndex:0},V,ee)]},sn=function(g,O){return g[1].zIndex>O[1].zIndex?1:g[1].zIndex<O[1].zIndex?-1:0},ni=function(g){return g.utils.createView({name:"image-preview-markup",tag:"svg",ignoreRect:!0,mixins:{apis:["width","height","crop","markup","resize","dirty"]},write:function(B){var V=B.root,ee=B.props;if(ee.dirty){var he=ee.crop,ge=ee.resize,_e=ee.markup,nt=ee.width,wt=ee.height,ht=he.width,Qt=he.height;if(ge){var ao=ge.size,S=ao&&ao.width,d=ao&&ao.height,b=ge.mode,C=ge.upscale;S&&!d&&(d=S),d&&!S&&(S=d);var A=ht<S&&Qt<d;if(!A||A&&C){var $=S/ht,Q=d/Qt;if(b==="force")ht=S,Qt=d;else{var z;b==="cover"?z=Math.max($,Q):b==="contain"&&(z=Math.min($,Q)),ht=ht*z,Qt=Qt*z}}}var J={width:nt,height:wt};V.element.setAttribute("width",J.width),V.element.setAttribute("height",J.height);var fe=Math.min(nt/ht,wt/Qt);V.element.innerHTML="";var Pe=V.query("GET_IMAGE_PREVIEW_MARKUP_FILTER");_e.filter(Pe).map(vn).sort(sn).forEach(function(Ve){var Ae=_t(Ve,2),Ce=Ae[0],te=Ae[1],et=$n(Ce,te);bi(et,Ce,te,J,fe),V.element.appendChild(et)})}}})},qi=function(g,O){return{x:g,y:O}},yl=function(g,O){return g.x*O.x+g.y*O.y},M=function(g,O){return qi(g.x-O.x,g.y-O.y)},K=function(g,O){return yl(M(g,O),M(g,O))},H=function(g,O){return Math.sqrt(K(g,O))},ae=function(g,O){var B=g,V=1.5707963267948966,ee=O,he=1.5707963267948966-O,ge=Math.sin(V),_e=Math.sin(ee),nt=Math.sin(he),wt=Math.cos(he),ht=B/ge,Qt=ht*_e,ao=ht*nt;return qi(wt*Qt,wt*ao)},ue=function(g,O){var B=g.width,V=g.height,ee=ae(B,O),he=ae(V,O),ge=qi(g.x+Math.abs(ee.x),g.y-Math.abs(ee.y)),_e=qi(g.x+g.width+Math.abs(he.y),g.y+Math.abs(he.x)),nt=qi(g.x-Math.abs(he.y),g.y+g.height-Math.abs(he.x));return{width:H(ge,_e),height:H(ge,nt)}},ie=function(g,O){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,V=g.height/g.width,ee=1,he=O,ge=1,_e=V;_e>he&&(_e=he,ge=_e/V);var nt=Math.max(ee/ge,he/_e),wt=g.width/(B*nt*ge),ht=wt*O;return{width:wt,height:ht}},De=function(g,O,B,V){var ee=V.x>.5?1-V.x:V.x,he=V.y>.5?1-V.y:V.y,ge=ee*2*g.width,_e=he*2*g.height,nt=ue(O,B);return Math.max(nt.width/ge,nt.height/_e)},Be=function(g,O){var B=g.width,V=B*O;V>g.height&&(V=g.height,B=V/O);var ee=(g.width-B)*.5,he=(g.height-V)*.5;return{x:ee,y:he,width:B,height:V}},We=function(g){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=O.zoom,V=O.rotation,ee=O.center,he=O.aspectRatio;he||(he=g.height/g.width);var ge=ie(g,he,B),_e={x:ge.width*.5,y:ge.height*.5},nt={x:0,y:0,width:ge.width,height:ge.height,center:_e},wt=typeof O.scaleToFit>"u"||O.scaleToFit,ht=De(g,Be(nt,he),V,wt?ee:{x:.5,y:.5}),Qt=B*ht;return{widthFloat:ge.width/Qt,heightFloat:ge.height/Qt,width:Math.round(ge.width/Qt),height:Math.round(ge.height/Qt)}},Fe={type:"spring",stiffness:.5,damping:.45,mass:10},Qe=function(g){return g.utils.createView({name:"image-bitmap",ignoreRect:!0,mixins:{styles:["scaleX","scaleY"]},create:function(B){var V=B.root,ee=B.props;V.appendChild(ee.image)}})},Et=function(g){return g.utils.createView({name:"image-canvas-wrapper",tag:"div",ignoreRect:!0,mixins:{apis:["crop","width","height"],styles:["originX","originY","translateX","translateY","scaleX","scaleY","rotateZ"],animations:{originX:Fe,originY:Fe,scaleX:Fe,scaleY:Fe,translateX:Fe,translateY:Fe,rotateZ:Fe}},create:function(B){var V=B.root,ee=B.props;ee.width=ee.image.width,ee.height=ee.image.height,V.ref.bitmap=V.appendChildView(V.createChildView(Qe(g),{image:ee.image}))},write:function(B){var V=B.root,ee=B.props,he=ee.crop.flip,ge=V.ref.bitmap;ge.scaleX=he.horizontal?-1:1,ge.scaleY=he.vertical?-1:1}})},er=function(g){return g.utils.createView({name:"image-clip",tag:"div",ignoreRect:!0,mixins:{apis:["crop","markup","resize","width","height","dirty","background"],styles:["width","height","opacity"],animations:{opacity:{type:"tween",duration:250}}},didWriteView:function(B){var V=B.root,ee=B.props;ee.background&&(V.element.style.backgroundColor=ee.background)},create:function(B){var V=B.root,ee=B.props;V.ref.image=V.appendChildView(V.createChildView(Et(g),Object.assign({},ee))),V.ref.createMarkup=function(){V.ref.markup||(V.ref.markup=V.appendChildView(V.createChildView(ni(g),Object.assign({},ee))))},V.ref.destroyMarkup=function(){V.ref.markup&&(V.removeChildView(V.ref.markup),V.ref.markup=null)};var he=V.query("GET_IMAGE_PREVIEW_TRANSPARENCY_INDICATOR");he!==null&&(he==="grid"?V.element.dataset.transparencyIndicator=he:V.element.dataset.transparencyIndicator="color")},write:function(B){var V=B.root,ee=B.props,he=B.shouldOptimize,ge=ee.crop,_e=ee.markup,nt=ee.resize,wt=ee.dirty,ht=ee.width,Qt=ee.height;V.ref.image.crop=ge;var ao={x:0,y:0,width:ht,height:Qt,center:{x:ht*.5,y:Qt*.5}},S={width:V.ref.image.width,height:V.ref.image.height},d={x:ge.center.x*S.width,y:ge.center.y*S.height},b={x:ao.center.x-S.width*ge.center.x,y:ao.center.y-S.height*ge.center.y},C=Math.PI*2+ge.rotation%(Math.PI*2),A=ge.aspectRatio||S.height/S.width,$=typeof ge.scaleToFit>"u"||ge.scaleToFit,Q=De(S,Be(ao,A),C,$?ge.center:{x:.5,y:.5}),z=ge.zoom*Q;_e&&_e.length?(V.ref.createMarkup(),V.ref.markup.width=ht,V.ref.markup.height=Qt,V.ref.markup.resize=nt,V.ref.markup.dirty=wt,V.ref.markup.markup=_e,V.ref.markup.crop=We(S,ge)):V.ref.markup&&V.ref.destroyMarkup();var J=V.ref.image;if(he){J.originX=null,J.originY=null,J.translateX=null,J.translateY=null,J.rotateZ=null,J.scaleX=null,J.scaleY=null;return}J.originX=d.x,J.originY=d.y,J.translateX=b.x,J.translateY=b.y,J.rotateZ=C,J.scaleX=z,J.scaleY=z}})},gr=function(g){return g.utils.createView({name:"image-preview",tag:"div",ignoreRect:!0,mixins:{apis:["image","crop","markup","resize","dirty","background"],styles:["translateY","scaleX","scaleY","opacity"],animations:{scaleX:Fe,scaleY:Fe,translateY:Fe,opacity:{type:"tween",duration:400}}},create:function(B){var V=B.root,ee=B.props;V.ref.clip=V.appendChildView(V.createChildView(er(g),{id:ee.id,image:ee.image,crop:ee.crop,markup:ee.markup,resize:ee.resize,dirty:ee.dirty,background:ee.background}))},write:function(B){var V=B.root,ee=B.props,he=B.shouldOptimize,ge=V.ref.clip,_e=ee.image,nt=ee.crop,wt=ee.markup,ht=ee.resize,Qt=ee.dirty;if(ge.crop=nt,ge.markup=wt,ge.resize=ht,ge.dirty=Qt,ge.opacity=he?0:1,!(he||V.rect.element.hidden)){var ao=_e.height/_e.width,S=nt.aspectRatio||ao,d=V.rect.inner.width,b=V.rect.inner.height,C=V.query("GET_IMAGE_PREVIEW_HEIGHT"),A=V.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),$=V.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),Q=V.query("GET_PANEL_ASPECT_RATIO"),z=V.query("GET_ALLOW_MULTIPLE");Q&&!z&&(C=d*Q,S=Q);var J=C!==null?C:Math.max(A,Math.min(d*S,$)),fe=J/S;fe>d&&(fe=d,J=fe*S),J>b&&(J=b,fe=b/S),ge.width=fe,ge.height=J}}})},fr=`<svg width="500" height="200" viewBox="0 0 500 200" preserveAspectRatio="none">
|
|
3
|
-
<defs>
|
|
4
|
-
<radialGradient id="gradient-__UID__" cx=".5" cy="1.25" r="1.15">
|
|
5
|
-
<stop offset='50%' stop-color='#000000'/>
|
|
6
|
-
<stop offset='56%' stop-color='#0a0a0a'/>
|
|
7
|
-
<stop offset='63%' stop-color='#262626'/>
|
|
8
|
-
<stop offset='69%' stop-color='#4f4f4f'/>
|
|
9
|
-
<stop offset='75%' stop-color='#808080'/>
|
|
10
|
-
<stop offset='81%' stop-color='#b1b1b1'/>
|
|
11
|
-
<stop offset='88%' stop-color='#dadada'/>
|
|
12
|
-
<stop offset='94%' stop-color='#f6f6f6'/>
|
|
13
|
-
<stop offset='100%' stop-color='#ffffff'/>
|
|
14
|
-
</radialGradient>
|
|
15
|
-
<mask id="mask-__UID__">
|
|
16
|
-
<rect x="0" y="0" width="500" height="200" fill="url(#gradient-__UID__)"></rect>
|
|
17
|
-
</mask>
|
|
18
|
-
</defs>
|
|
19
|
-
<rect x="0" width="500" height="200" fill="currentColor" mask="url(#mask-__UID__)"></rect>
|
|
20
|
-
</svg>`,Vr=0,eo=function(g){return g.utils.createView({name:"image-preview-overlay",tag:"div",ignoreRect:!0,create:function(B){var V=B.root,ee=B.props,he=fr;if(document.querySelector("base")){var ge=new URL(window.location.href.replace(window.location.hash,"")).href;he=he.replace(/url\(\#/g,"url("+ge+"#")}Vr++,V.element.classList.add("filepond--image-preview-overlay-".concat(ee.status)),V.element.innerHTML=he.replace(/__UID__/g,Vr)},mixins:{styles:["opacity"],animations:{opacity:{type:"spring",mass:25}}}})},Ao=function(){self.onmessage=function(g){createImageBitmap(g.data.message.file).then(function(O){self.postMessage({id:g.data.id,message:O},[O])})}},Fi=function(){self.onmessage=function(g){for(var O=g.data.message.imageData,B=g.data.message.colorMatrix,V=O.data,ee=V.length,he=B[0],ge=B[1],_e=B[2],nt=B[3],wt=B[4],ht=B[5],Qt=B[6],ao=B[7],S=B[8],d=B[9],b=B[10],C=B[11],A=B[12],$=B[13],Q=B[14],z=B[15],J=B[16],fe=B[17],Pe=B[18],Ve=B[19],Ae=0,Ce=0,te=0,et=0,qe=0;Ae<ee;Ae+=4)Ce=V[Ae]/255,te=V[Ae+1]/255,et=V[Ae+2]/255,qe=V[Ae+3]/255,V[Ae]=Math.max(0,Math.min((Ce*he+te*ge+et*_e+qe*nt+wt)*255,255)),V[Ae+1]=Math.max(0,Math.min((Ce*ht+te*Qt+et*ao+qe*S+d)*255,255)),V[Ae+2]=Math.max(0,Math.min((Ce*b+te*C+et*A+qe*$+Q)*255,255)),V[Ae+3]=Math.max(0,Math.min((Ce*z+te*J+et*fe+qe*Pe+Ve)*255,255));self.postMessage({id:g.data.id,message:O},[O.data.buffer])}},Va=function(g,O){var B=new Image;B.onload=function(){var V=B.naturalWidth,ee=B.naturalHeight;B=null,O(V,ee)},B.src=g},gl={1:function(){return[1,0,0,1,0,0]},2:function(g){return[-1,0,0,1,g,0]},3:function(g,O){return[-1,0,0,-1,g,O]},4:function(g,O){return[1,0,0,-1,0,O]},5:function(){return[0,1,1,0,0,0]},6:function(g,O){return[0,1,-1,0,O,0]},7:function(g,O){return[0,-1,-1,0,O,g]},8:function(g){return[0,-1,1,0,0,g]}},ha=function(g,O,B,V){V!==-1&&g.transform.apply(g,gl[V](O,B))},gs=function(g,O,B,V){O=Math.round(O),B=Math.round(B);var ee=document.createElement("canvas");ee.width=O,ee.height=B;var he=ee.getContext("2d");if(V>=5&&V<=8){var ge=[B,O];O=ge[0],B=ge[1]}return ha(he,O,B,V),he.drawImage(g,0,0,O,B),ee},hl=function(g){return/^image/.test(g.type)&&!/svg/.test(g.type)},vl=10,Wa=10,$d=function(g){var O=Math.min(vl/g.width,Wa/g.height),B=document.createElement("canvas"),V=B.getContext("2d"),ee=B.width=Math.ceil(g.width*O),he=B.height=Math.ceil(g.height*O);V.drawImage(g,0,0,ee,he);var ge=null;try{ge=V.getImageData(0,0,ee,he).data}catch{return null}for(var _e=ge.length,nt=0,wt=0,ht=0,Qt=0;Qt<_e;Qt+=4)nt+=ge[Qt]*ge[Qt],wt+=ge[Qt+1]*ge[Qt+1],ht+=ge[Qt+2]*ge[Qt+2];return nt=Vp(nt,_e),wt=Vp(wt,_e),ht=Vp(ht,_e),{r:nt,g:wt,b:ht}},Vp=function(g,O){return Math.floor(Math.sqrt(g/(O/4)))},Xd=function(g,O){O=O||document.createElement("canvas"),O.width=g.width,O.height=g.height;var B=O.getContext("2d");return B.drawImage(g,0,0),O},fu=function(g){var O;try{O=new ImageData(g.width,g.height)}catch{var B=document.createElement("canvas"),V=B.getContext("2d");O=V.createImageData(g.width,g.height)}return O.data.set(new Uint8ClampedArray(g.data)),O},Yd=function(g){return new Promise(function(O,B){var V=new Image;V.crossOrigin="Anonymous",V.onload=function(){O(V)},V.onerror=function(ee){B(ee)},V.src=g})},Wp=function(g){var O=eo(g),B=gr(g),V=g.utils.createWorker,ee=function(Q,z,J){return new Promise(function(fe){Q.ref.imageData||(Q.ref.imageData=J.getContext("2d").getImageData(0,0,J.width,J.height));var Pe=fu(Q.ref.imageData);if(!z||z.length!==20)return J.getContext("2d").putImageData(Pe,0,0),fe();var Ve=V(Fi);Ve.post({imageData:Pe,colorMatrix:z},function(Ae){J.getContext("2d").putImageData(Ae,0,0),Ve.terminate(),fe()},[Pe.data.buffer])})},he=function(Q,z){Q.removeChildView(z),z.image.width=1,z.image.height=1,z._destroy()},ge=function(Q){var z=Q.root,J=z.ref.images.shift();return J.opacity=0,J.translateY=-15,z.ref.imageViewBin.push(J),J},_e=function(Q){var z=Q.root,J=Q.props,fe=Q.image,Pe=J.id,Ve=z.query("GET_ITEM",{id:Pe});if(Ve){var Ae=Ve.getMetadata("crop")||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},Ce=z.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),te,et,qe=!1;z.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(te=Ve.getMetadata("markup")||[],et=Ve.getMetadata("resize"),qe=!0);var jt=z.appendChildView(z.createChildView(B,{id:Pe,image:fe,crop:Ae,resize:et,markup:te,dirty:qe,background:Ce,opacity:0,scaleX:1.15,scaleY:1.15,translateY:15}),z.childViews.length);z.ref.images.push(jt),jt.opacity=1,jt.scaleX=1,jt.scaleY=1,jt.translateY=0,setTimeout(function(){z.dispatch("DID_IMAGE_PREVIEW_SHOW",{id:Pe})},250)}},nt=function(Q){var z=Q.root,J=Q.props,fe=z.query("GET_ITEM",{id:J.id});if(fe){var Pe=z.ref.images[z.ref.images.length-1];Pe.crop=fe.getMetadata("crop"),Pe.background=z.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),z.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(Pe.dirty=!0,Pe.resize=fe.getMetadata("resize"),Pe.markup=fe.getMetadata("markup"))}},wt=function(Q){var z=Q.root,J=Q.props,fe=Q.action;if(/crop|filter|markup|resize/.test(fe.change.key)&&z.ref.images.length){var Pe=z.query("GET_ITEM",{id:J.id});if(Pe){if(/filter/.test(fe.change.key)){var Ve=z.ref.images[z.ref.images.length-1];ee(z,fe.change.value,Ve.image);return}if(/crop|markup|resize/.test(fe.change.key)){var Ae=Pe.getMetadata("crop"),Ce=z.ref.images[z.ref.images.length-1];if(Ae&&Ae.aspectRatio&&Ce.crop&&Ce.crop.aspectRatio&&Math.abs(Ae.aspectRatio-Ce.crop.aspectRatio)>1e-5){var te=ge({root:z});_e({root:z,props:J,image:Xd(te.image)})}else nt({root:z,props:J})}}}},ht=function(Q){var z=window.navigator.userAgent,J=z.match(/Firefox\/([0-9]+)\./),fe=J?parseInt(J[1]):null;return fe!==null&&fe<=58?!1:"createImageBitmap"in window&&hl(Q)},Qt=function(Q){var z=Q.root,J=Q.props,fe=J.id,Pe=z.query("GET_ITEM",fe);if(Pe){var Ve=URL.createObjectURL(Pe.file);Va(Ve,function(Ae,Ce){z.dispatch("DID_IMAGE_PREVIEW_CALCULATE_SIZE",{id:fe,width:Ae,height:Ce})})}},ao=function(Q){var z=Q.root,J=Q.props,fe=J.id,Pe=z.query("GET_ITEM",fe);if(Pe){var Ve=URL.createObjectURL(Pe.file),Ae=function(){Yd(Ve).then(Ce)},Ce=function(qe){URL.revokeObjectURL(Ve);var jt=Pe.getMetadata("exif")||{},Bt=jt.orientation||-1,dr=qe.width,sr=qe.height;if(!(!dr||!sr)){if(Bt>=5&&Bt<=8){var Sr=[sr,dr];dr=Sr[0],sr=Sr[1]}var wr=Math.max(1,window.devicePixelRatio*.75),br=z.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR"),Ar=br*wr,lr=sr/dr,Xr=z.rect.element.width,yr=z.rect.element.height,Tr=Xr,Wr=Tr*lr;lr>1?(Tr=Math.min(dr,Xr*Ar),Wr=Tr*lr):(Wr=Math.min(sr,yr*Ar),Tr=Wr/lr);var so=gs(qe,Tr,Wr,Bt),wo=function(){var Qo=z.query("GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR")?$d(data):null;Pe.setMetadata("color",Qo,!0),"close"in qe&&qe.close(),z.ref.overlayShadow.opacity=1,_e({root:z,props:J,image:so})},Co=Pe.getMetadata("filter");Co?ee(z,Co,so).then(wo):wo()}};if(ht(Pe.file)){var te=V(Ao);te.post({file:Pe.file},function(et){if(te.terminate(),!et){Ae();return}Ce(et)})}else Ae()}},S=function(Q){var z=Q.root,J=z.ref.images[z.ref.images.length-1];J.translateY=0,J.scaleX=1,J.scaleY=1,J.opacity=1},d=function(Q){var z=Q.root;z.ref.overlayShadow.opacity=1,z.ref.overlayError.opacity=0,z.ref.overlaySuccess.opacity=0},b=function(Q){var z=Q.root;z.ref.overlayShadow.opacity=.25,z.ref.overlayError.opacity=1},C=function(Q){var z=Q.root;z.ref.overlayShadow.opacity=.25,z.ref.overlaySuccess.opacity=1},A=function(Q){var z=Q.root;z.ref.images=[],z.ref.imageData=null,z.ref.imageViewBin=[],z.ref.overlayShadow=z.appendChildView(z.createChildView(O,{opacity:0,status:"idle"})),z.ref.overlaySuccess=z.appendChildView(z.createChildView(O,{opacity:0,status:"success"})),z.ref.overlayError=z.appendChildView(z.createChildView(O,{opacity:0,status:"failure"}))};return g.utils.createView({name:"image-preview-wrapper",create:A,styles:["height"],apis:["height"],destroy:function(Q){var z=Q.root;z.ref.images.forEach(function(J){J.image.width=1,J.image.height=1})},didWriteView:function(Q){var z=Q.root;z.ref.images.forEach(function(J){J.dirty=!1})},write:g.utils.createRoute({DID_IMAGE_PREVIEW_DRAW:S,DID_IMAGE_PREVIEW_CONTAINER_CREATE:Qt,DID_FINISH_CALCULATE_PREVIEWSIZE:ao,DID_UPDATE_ITEM_METADATA:wt,DID_THROW_ITEM_LOAD_ERROR:b,DID_THROW_ITEM_PROCESSING_ERROR:b,DID_THROW_ITEM_INVALID:b,DID_COMPLETE_ITEM_PROCESSING:C,DID_START_ITEM_PROCESSING:d,DID_REVERT_ITEM_PROCESSING:d},function($){var Q=$.root,z=Q.ref.imageViewBin.filter(function(J){return J.opacity===0});Q.ref.imageViewBin=Q.ref.imageViewBin.filter(function(J){return J.opacity>0}),z.forEach(function(J){return he(Q,J)}),z.length=0})})},Hp=function(g){var O=g.addFilter,B=g.utils,V=B.Type,ee=B.createRoute,he=B.isFile,ge=Wp(g);return O("CREATE_VIEW",function(_e){var nt=_e.is,wt=_e.view,ht=_e.query;if(!(!nt("file")||!ht("GET_ALLOW_IMAGE_PREVIEW"))){var Qt=function(A){var $=A.root,Q=A.props,z=Q.id,J=ht("GET_ITEM",z);if(!(!J||!he(J.file)||J.archived)){var fe=J.file;if(e(fe)&&ht("GET_IMAGE_PREVIEW_FILTER_ITEM")(J)){var Pe="createImageBitmap"in(window||{}),Ve=ht("GET_IMAGE_PREVIEW_MAX_FILE_SIZE");if(!(!Pe&&Ve&&fe.size>Ve)){$.ref.imagePreview=wt.appendChildView(wt.createChildView(ge,{id:z}));var Ae=$.query("GET_IMAGE_PREVIEW_HEIGHT");Ae&&$.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:J.id,height:Ae});var Ce=!Pe&&fe.size>ht("GET_IMAGE_PREVIEW_MAX_INSTANT_PREVIEW_FILE_SIZE");$.dispatch("DID_IMAGE_PREVIEW_CONTAINER_CREATE",{id:z},Ce)}}}},ao=function(A,$){if(A.ref.imagePreview){var Q=$.id,z=A.query("GET_ITEM",{id:Q});if(z){var J=A.query("GET_PANEL_ASPECT_RATIO"),fe=A.query("GET_ITEM_PANEL_ASPECT_RATIO"),Pe=A.query("GET_IMAGE_PREVIEW_HEIGHT");if(!(J||fe||Pe)){var Ve=A.ref,Ae=Ve.imageWidth,Ce=Ve.imageHeight;if(!(!Ae||!Ce)){var te=A.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),et=A.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),qe=z.getMetadata("exif")||{},jt=qe.orientation||-1;if(jt>=5&&jt<=8){var Bt=[Ce,Ae];Ae=Bt[0],Ce=Bt[1]}if(!hl(z.file)||A.query("GET_IMAGE_PREVIEW_UPSCALE")){var dr=2048/Ae;Ae*=dr,Ce*=dr}var sr=Ce/Ae,Sr=(z.getMetadata("crop")||{}).aspectRatio||sr,wr=Math.max(te,Math.min(Ce,et)),br=A.rect.element.width,Ar=Math.min(br*Sr,wr);A.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:z.id,height:Ar})}}}}},S=function(A){var $=A.root;$.ref.shouldRescale=!0},d=function(A){var $=A.root,Q=A.action;Q.change.key==="crop"&&($.ref.shouldRescale=!0)},b=function(A){var $=A.root,Q=A.action;$.ref.imageWidth=Q.width,$.ref.imageHeight=Q.height,$.ref.shouldRescale=!0,$.ref.shouldDrawPreview=!0,$.dispatch("KICK")};wt.registerWriter(ee({DID_RESIZE_ROOT:S,DID_STOP_RESIZE:S,DID_LOAD_ITEM:Qt,DID_IMAGE_PREVIEW_CALCULATE_SIZE:b,DID_UPDATE_ITEM_METADATA:d},function(C){var A=C.root,$=C.props;A.ref.imagePreview&&(A.rect.element.hidden||(A.ref.shouldRescale&&(ao(A,$),A.ref.shouldRescale=!1),A.ref.shouldDrawPreview&&(requestAnimationFrame(function(){requestAnimationFrame(function(){A.dispatch("DID_FINISH_CALCULATE_PREVIEWSIZE",{id:$.id})})}),A.ref.shouldDrawPreview=!1)))}))}}),{options:{allowImagePreview:[!0,V.BOOLEAN],imagePreviewFilterItem:[function(){return!0},V.FUNCTION],imagePreviewHeight:[null,V.INT],imagePreviewMinHeight:[44,V.INT],imagePreviewMaxHeight:[256,V.INT],imagePreviewMaxFileSize:[null,V.INT],imagePreviewZoomFactor:[2,V.INT],imagePreviewUpscale:[!1,V.BOOLEAN],imagePreviewMaxInstantPreviewFileSize:[1e6,V.INT],imagePreviewTransparencyIndicator:[null,V.STRING],imagePreviewCalculateAverageImageColor:[!1,V.BOOLEAN],imagePreviewMarkupShow:[!0,V.BOOLEAN],imagePreviewMarkupFilter:[function(){return!0},V.FUNCTION]}}},du=typeof window<"u"&&typeof window.document<"u";return du&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Hp})),Hp})});var qE=Tn((Ng,Lg)=>{(function(e,t){typeof Ng=="object"&&typeof Lg<"u"?Lg.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.FilePondPluginImageResize=t())})(Ng,function(){"use strict";var e=function(l){return/^image/.test(l.type)},t=function(l,p){var u=new Image;u.onload=function(){var m=u.naturalWidth,h=u.naturalHeight;u=null,p({width:m,height:h})},u.onerror=function(){return p(null)},u.src=l},r=function(l){var p=l.addFilter,u=l.utils,m=u.Type;return p("DID_LOAD_ITEM",function(h,v){var I=v.query;return new Promise(function(P,w){var R=h.file;if(!e(R)||!I("GET_ALLOW_IMAGE_RESIZE"))return P(h);var G=I("GET_IMAGE_RESIZE_MODE"),N=I("GET_IMAGE_RESIZE_TARGET_WIDTH"),U=I("GET_IMAGE_RESIZE_TARGET_HEIGHT"),Y=I("GET_IMAGE_RESIZE_UPSCALE");if(N===null&&U===null)return P(h);var L=N===null?U:N,k=U===null?L:U,j=URL.createObjectURL(R);t(j,function(D){if(URL.revokeObjectURL(j),!D)return P(h);var Z=D.width,ne=D.height,le=(h.getMetadata("exif")||{}).orientation||-1;if(le>=5&&le<=8){var de=[ne,Z];Z=de[0],ne=de[1]}if(Z===L&&ne===k)return P(h);if(!Y){if(G==="cover"){if(Z<=L||ne<=k)return P(h)}else if(Z<=L&&ne<=L)return P(h)}h.setMetadata("resize",{mode:G,upscale:Y,size:{width:L,height:k}}),P(h)})})}),{options:{allowImageResize:[!0,m.BOOLEAN],imageResizeMode:["cover",m.STRING],imageResizeUpscale:[!0,m.BOOLEAN],imageResizeTargetWidth:[null,m.INT],imageResizeTargetHeight:[null,m.INT]}}},i=typeof window<"u"&&typeof window.document<"u";return i&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:r})),r})});var JE=Tn((kg,Fg)=>{(function(e,t){typeof kg=="object"&&typeof Fg<"u"?Fg.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.FilePondPluginImageTransform=t())})(kg,function(){"use strict";var e=function(d){return/^image/.test(d.type)},t=function(d){return d.substr(0,d.lastIndexOf("."))||d},r={jpeg:"jpg","svg+xml":"svg"},i=function(d,b){var C=t(d),A=b.split("/")[1],$=r[A]||A;return"".concat(C,".").concat($)},a=function(d){return/jpeg|png|svg\+xml/.test(d)?d:"image/jpeg"},l=function(d){return/^image/.test(d.type)},p={1:function(){return[1,0,0,1,0,0]},2:function(d){return[-1,0,0,1,d,0]},3:function(d,b){return[-1,0,0,-1,d,b]},4:function(d,b){return[1,0,0,-1,0,b]},5:function(){return[0,1,1,0,0,0]},6:function(d,b){return[0,1,-1,0,b,0]},7:function(d,b){return[0,-1,-1,0,b,d]},8:function(d){return[0,-1,1,0,0,d]}},u=function(d,b,C){return C===-1&&(C=1),p[C](d,b)},m=function(d,b){return{x:d,y:b}},h=function(d,b){return d.x*b.x+d.y*b.y},v=function(d,b){return m(d.x-b.x,d.y-b.y)},I=function(d,b){return h(v(d,b),v(d,b))},P=function(d,b){return Math.sqrt(I(d,b))},w=function(d,b){var C=d,A=1.5707963267948966,$=b,Q=1.5707963267948966-b,z=Math.sin(A),J=Math.sin($),fe=Math.sin(Q),Pe=Math.cos(Q),Ve=C/z,Ae=Ve*J,Ce=Ve*fe;return m(Pe*Ae,Pe*Ce)},R=function(d,b){var C=d.width,A=d.height,$=w(C,b),Q=w(A,b),z=m(d.x+Math.abs($.x),d.y-Math.abs($.y)),J=m(d.x+d.width+Math.abs(Q.y),d.y+Math.abs(Q.x)),fe=m(d.x-Math.abs(Q.y),d.y+d.height-Math.abs(Q.x));return{width:P(z,J),height:P(z,fe)}},G=function(d,b){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{x:.5,y:.5},$=A.x>.5?1-A.x:A.x,Q=A.y>.5?1-A.y:A.y,z=$*2*d.width,J=Q*2*d.height,fe=R(b,C);return Math.max(fe.width/z,fe.height/J)},N=function(d,b){var C=d.width,A=C*b;A>d.height&&(A=d.height,C=A/b);var $=(d.width-C)*.5,Q=(d.height-A)*.5;return{x:$,y:Q,width:C,height:A}},U=function(d,b){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,A=d.height/d.width,$=1,Q=b,z=1,J=A;J>Q&&(J=Q,z=J/A);var fe=Math.max($/z,Q/J),Pe=d.width/(C*fe*z),Ve=Pe*b;return{width:Pe,height:Ve}},Y=function(d){d.width=1,d.height=1;var b=d.getContext("2d");b.clearRect(0,0,1,1)},L=function(d){return d&&(d.horizontal||d.vertical)},k=function(d,b,C){if(b<=1&&!L(C))return d.width=d.naturalWidth,d.height=d.naturalHeight,d;var A=document.createElement("canvas"),$=d.naturalWidth,Q=d.naturalHeight,z=b>=5&&b<=8;z?(A.width=Q,A.height=$):(A.width=$,A.height=Q);var J=A.getContext("2d");if(b&&J.transform.apply(J,u($,Q,b)),L(C)){var fe=[1,0,0,1,0,0];(!z&&C.horizontal||z&C.vertical)&&(fe[0]=-1,fe[4]=$),(!z&&C.vertical||z&&C.horizontal)&&(fe[3]=-1,fe[5]=Q),J.transform.apply(J,fe)}return J.drawImage(d,0,0,$,Q),A},j=function(d,b){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},$=A.canvasMemoryLimit,Q=A.background,z=Q===void 0?null:Q,J=C.zoom||1,fe=k(d,b,C.flip),Pe={width:fe.width,height:fe.height},Ve=C.aspectRatio||Pe.height/Pe.width,Ae=U(Pe,Ve,J);if($){var Ce=Ae.width*Ae.height;if(Ce>$){var te=Math.sqrt($)/Math.sqrt(Ce);Pe.width=Math.floor(Pe.width*te),Pe.height=Math.floor(Pe.height*te),Ae=U(Pe,Ve,J)}}var et=document.createElement("canvas"),qe={x:Ae.width*.5,y:Ae.height*.5},jt={x:0,y:0,width:Ae.width,height:Ae.height,center:qe},Bt=typeof C.scaleToFit>"u"||C.scaleToFit,dr=J*G(Pe,N(jt,Ve),C.rotation,Bt?C.center:{x:.5,y:.5});et.width=Math.round(Ae.width/dr),et.height=Math.round(Ae.height/dr),qe.x/=dr,qe.y/=dr;var sr={x:qe.x-Pe.width*(C.center?C.center.x:.5),y:qe.y-Pe.height*(C.center?C.center.y:.5)},Sr=et.getContext("2d");z&&(Sr.fillStyle=z,Sr.fillRect(0,0,et.width,et.height)),Sr.translate(qe.x,qe.y),Sr.rotate(C.rotation||0),Sr.drawImage(fe,sr.x-qe.x,sr.y-qe.y,Pe.width,Pe.height);var wr=Sr.getImageData(0,0,et.width,et.height);return Y(et),wr},D=(function(){return typeof window<"u"&&typeof window.document<"u"})();D&&(HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(d,b,C){var A=this.toDataURL(b,C).split(",")[1];setTimeout(function(){for(var $=atob(A),Q=$.length,z=new Uint8Array(Q),J=0;J<Q;J++)z[J]=$.charCodeAt(J);d(new Blob([z],{type:b||"image/png"}))})}}));var Z=function(d,b){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return new Promise(function(A){var $=C?C(d):d;Promise.resolve($).then(function(Q){Q.toBlob(A,b.type,b.quality)})})},ne=function(d,b){return E(d.x*b,d.y*b)},le=function(d,b){return E(d.x+b.x,d.y+b.y)},de=function(d){var b=Math.sqrt(d.x*d.x+d.y*d.y);return b===0?{x:0,y:0}:E(d.x/b,d.y/b)},ye=function(d,b,C){var A=Math.cos(b),$=Math.sin(b),Q=E(d.x-C.x,d.y-C.y);return E(C.x+A*Q.x-$*Q.y,C.y+$*Q.x+A*Q.y)},E=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return{x:d,y:b}},q=function(d,b){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,A=arguments.length>3?arguments[3]:void 0;if(typeof d=="string")return parseFloat(d)*C;if(typeof d=="number")return d*(A?b[A]:Math.min(b.width,b.height))},re=function(d,b,C){var A=d.borderStyle||d.lineStyle||"solid",$=d.backgroundColor||d.fontColor||"transparent",Q=d.borderColor||d.lineColor||"transparent",z=q(d.borderWidth||d.lineWidth,b,C),J=d.lineCap||"round",fe=d.lineJoin||"round",Pe=typeof A=="string"?"":A.map(function(Ae){return q(Ae,b,C)}).join(","),Ve=d.opacity||1;return{"stroke-linecap":J,"stroke-linejoin":fe,"stroke-width":z||0,"stroke-dasharray":Pe,stroke:Q,fill:$,opacity:Ve}},oe=function(d){return d!=null},ce=function(d,b){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,A=q(d.x,b,C,"width")||q(d.left,b,C,"width"),$=q(d.y,b,C,"height")||q(d.top,b,C,"height"),Q=q(d.width,b,C,"width"),z=q(d.height,b,C,"height"),J=q(d.right,b,C,"width"),fe=q(d.bottom,b,C,"height");return oe($)||(oe(z)&&oe(fe)?$=b.height-z-fe:$=fe),oe(A)||(oe(Q)&&oe(J)?A=b.width-Q-J:A=J),oe(Q)||(oe(A)&&oe(J)?Q=b.width-A-J:Q=0),oe(z)||(oe($)&&oe(fe)?z=b.height-$-fe:z=0),{x:A||0,y:$||0,width:Q||0,height:z||0}},Me=function(d){return d.map(function(b,C){return"".concat(C===0?"M":"L"," ").concat(b.x," ").concat(b.y)}).join(" ")},He=function(d,b){return Object.keys(b).forEach(function(C){return d.setAttribute(C,b[C])})},Ie="http://www.w3.org/2000/svg",yt=function(d,b){var C=document.createElementNS(Ie,d);return b&&He(C,b),C},ct=function(d){return He(d,Object.assign({},d.rect,d.styles))},ut=function(d){var b=d.rect.x+d.rect.width*.5,C=d.rect.y+d.rect.height*.5,A=d.rect.width*.5,$=d.rect.height*.5;return He(d,Object.assign({cx:b,cy:C,rx:A,ry:$},d.styles))},ft={contain:"xMidYMid meet",cover:"xMidYMid slice"},at=function(d,b){He(d,Object.assign({},d.rect,d.styles,{preserveAspectRatio:ft[b.fit]||"none"}))},tt={left:"start",center:"middle",right:"end"},ke=function(d,b,C,A){var $=q(b.fontSize,C,A),Q=b.fontFamily||"sans-serif",z=b.fontWeight||"normal",J=tt[b.textAlign]||"start";He(d,Object.assign({},d.rect,d.styles,{"stroke-width":0,"font-weight":z,"font-size":$,"font-family":Q,"text-anchor":J})),d.text!==b.text&&(d.text=b.text,d.textContent=b.text.length?b.text:" ")},Vt=function(d,b,C,A){He(d,Object.assign({},d.rect,d.styles,{fill:"none"}));var $=d.childNodes[0],Q=d.childNodes[1],z=d.childNodes[2],J=d.rect,fe={x:d.rect.x+d.rect.width,y:d.rect.y+d.rect.height};if(He($,{x1:J.x,y1:J.y,x2:fe.x,y2:fe.y}),!!b.lineDecoration){Q.style.display="none",z.style.display="none";var Pe=de({x:fe.x-J.x,y:fe.y-J.y}),Ve=q(.05,C,A);if(b.lineDecoration.indexOf("arrow-begin")!==-1){var Ae=ne(Pe,Ve),Ce=le(J,Ae),te=ye(J,2,Ce),et=ye(J,-2,Ce);He(Q,{style:"display:block;",d:"M".concat(te.x,",").concat(te.y," L").concat(J.x,",").concat(J.y," L").concat(et.x,",").concat(et.y)})}if(b.lineDecoration.indexOf("arrow-end")!==-1){var qe=ne(Pe,-Ve),jt=le(fe,qe),Bt=ye(fe,2,jt),dr=ye(fe,-2,jt);He(z,{style:"display:block;",d:"M".concat(Bt.x,",").concat(Bt.y," L").concat(fe.x,",").concat(fe.y," L").concat(dr.x,",").concat(dr.y)})}}},Dt=function(d,b,C,A){He(d,Object.assign({},d.styles,{fill:"none",d:Me(b.points.map(function($){return{x:q($.x,C,A,"width"),y:q($.y,C,A,"height")}}))}))},gt=function(d){return function(b){return yt(d,{id:b.id})}},dt=function(d){var b=yt("image",{id:d.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return b.onload=function(){b.setAttribute("opacity",d.opacity||1)},b.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d.src),b},_t=function(d){var b=yt("g",{id:d.id,"stroke-linecap":"round","stroke-linejoin":"round"}),C=yt("line");b.appendChild(C);var A=yt("path");b.appendChild(A);var $=yt("path");return b.appendChild($),b},Ft={image:dt,rect:gt("rect"),ellipse:gt("ellipse"),text:gt("text"),path:gt("path"),line:_t},$t={rect:ct,ellipse:ut,image:at,text:ke,path:Dt,line:Vt},Ut=function(d,b){return Ft[d](b)},ir=function(d,b,C,A,$){b!=="path"&&(d.rect=ce(C,A,$)),d.styles=re(C,A,$),$t[b](d,C,A,$)},Mt=function(d,b){return d[1].zIndex>b[1].zIndex?1:d[1].zIndex<b[1].zIndex?-1:0},or=function(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=arguments.length>2?arguments[2]:void 0,A=arguments.length>3?arguments[3]:void 0;return new Promise(function($){var Q=A.background,z=Q===void 0?null:Q,J=new FileReader;J.onloadend=function(){var fe=J.result,Pe=document.createElement("div");Pe.style.cssText="position:absolute;pointer-events:none;width:0;height:0;visibility:hidden;",Pe.innerHTML=fe;var Ve=Pe.querySelector("svg");document.body.appendChild(Pe);var Ae=Ve.getBBox();Pe.parentNode.removeChild(Pe);var Ce=Pe.querySelector("title"),te=Ve.getAttribute("viewBox")||"",et=Ve.getAttribute("width")||"",qe=Ve.getAttribute("height")||"",jt=parseFloat(et)||null,Bt=parseFloat(qe)||null,dr=(et.match(/[a-z]+/)||[])[0]||"",sr=(qe.match(/[a-z]+/)||[])[0]||"",Sr=te.split(" ").map(parseFloat),wr=Sr.length?{x:Sr[0],y:Sr[1],width:Sr[2],height:Sr[3]}:Ae,br=jt??wr.width,Ar=Bt??wr.height;Ve.style.overflow="visible",Ve.setAttribute("width",br),Ve.setAttribute("height",Ar);var lr="";if(C&&C.length){var Xr={width:br,height:Ar};lr=C.sort(Mt).reduce(function(Xn,ln){var to=Ut(ln[0],ln[1]);return ir(to,ln[0],ln[1],Xr),to.removeAttribute("id"),to.getAttribute("opacity")===1&&to.removeAttribute("opacity"),Xn+`
|
|
21
|
-
`+to.outerHTML+`
|
|
22
|
-
`},""),lr=`
|
|
23
|
-
|
|
24
|
-
<g>`.concat(lr.replace(/ /g," "),`</g>
|
|
25
|
-
|
|
26
|
-
`)}var yr=b.aspectRatio||Ar/br,Tr=br,Wr=Tr*yr,so=typeof b.scaleToFit>"u"||b.scaleToFit,wo=b.center?b.center.x:.5,Co=b.center?b.center.y:.5,bn=G({width:br,height:Ar},N({width:Tr,height:Wr},yr),b.rotation,so?{x:wo,y:Co}:{x:.5,y:.5}),Qo=b.zoom*bn,co=b.rotation*(180/Math.PI),Mr={x:Tr*.5,y:Wr*.5},Io={x:Mr.x-br*wo,y:Mr.y-Ar*Co},qo=["rotate(".concat(co," ").concat(Mr.x," ").concat(Mr.y,")"),"translate(".concat(Mr.x," ").concat(Mr.y,")"),"scale(".concat(Qo,")"),"translate(".concat(-Mr.x," ").concat(-Mr.y,")"),"translate(".concat(Io.x," ").concat(Io.y,")")],Jo=b.flip&&b.flip.horizontal,Nn=b.flip&&b.flip.vertical,ii=["scale(".concat(Jo?-1:1," ").concat(Nn?-1:1,")"),"translate(".concat(Jo?-br:0," ").concat(Nn?-Ar:0,")")],Ln=`<?xml version="1.0" encoding="UTF-8"?>
|
|
27
|
-
<svg width="`.concat(Tr).concat(dr,'" height="').concat(Wr).concat(sr,`"
|
|
28
|
-
viewBox="0 0 `).concat(Tr," ").concat(Wr,'" ').concat(z?'style="background:'+z+'" ':"",`
|
|
29
|
-
preserveAspectRatio="xMinYMin"
|
|
30
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
31
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
32
|
-
<!-- Generated by PQINA - https://pqina.nl/ -->
|
|
33
|
-
<title>`).concat(Ce?Ce.textContent:"",`</title>
|
|
34
|
-
<g transform="`).concat(qo.join(" "),`">
|
|
35
|
-
<g transform="`).concat(ii.join(" "),`">
|
|
36
|
-
`).concat(Ve.outerHTML).concat(lr,`
|
|
37
|
-
</g>
|
|
38
|
-
</g>
|
|
39
|
-
</svg>`);$(Ln)},J.readAsText(d)})},ze=function(d){var b;try{b=new ImageData(d.width,d.height)}catch{var C=document.createElement("canvas");b=C.getContext("2d").createImageData(d.width,d.height)}return b.data.set(d.data),b},cr=function(){var d={resize:Ve,filter:Pe},b=function(Ce,te){return Ce.forEach(function(et){te=d[et.type](te,et.data)}),te},C=function(Ce,te){var et=Ce.transforms,qe=null;if(et.forEach(function(Bt){Bt.type==="filter"&&(qe=Bt)}),qe){var jt=null;et.forEach(function(Bt){Bt.type==="resize"&&(jt=Bt)}),jt&&(jt.data.matrix=qe.data,et=et.filter(function(Bt){return Bt.type!=="filter"}))}te(b(et,Ce.imageData))};self.onmessage=function(Ae){C(Ae.data.message,function(Ce){self.postMessage({id:Ae.data.id,message:Ce},[Ce.data.buffer])})};var A=1,$=1,Q=1;function z(Ae,Ce,te){var et=Ce[Ae]/255,qe=Ce[Ae+1]/255,jt=Ce[Ae+2]/255,Bt=Ce[Ae+3]/255,dr=et*te[0]+qe*te[1]+jt*te[2]+Bt*te[3]+te[4],sr=et*te[5]+qe*te[6]+jt*te[7]+Bt*te[8]+te[9],Sr=et*te[10]+qe*te[11]+jt*te[12]+Bt*te[13]+te[14],wr=et*te[15]+qe*te[16]+jt*te[17]+Bt*te[18]+te[19],br=Math.max(0,dr*wr)+A*(1-wr),Ar=Math.max(0,sr*wr)+$*(1-wr),lr=Math.max(0,Sr*wr)+Q*(1-wr);Ce[Ae]=Math.max(0,Math.min(1,br))*255,Ce[Ae+1]=Math.max(0,Math.min(1,Ar))*255,Ce[Ae+2]=Math.max(0,Math.min(1,lr))*255}var J=self.JSON.stringify([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);function fe(Ae){return self.JSON.stringify(Ae||[])===J}function Pe(Ae,Ce){if(!Ce||fe(Ce))return Ae;for(var te=Ae.data,et=te.length,qe=Ce[0],jt=Ce[1],Bt=Ce[2],dr=Ce[3],sr=Ce[4],Sr=Ce[5],wr=Ce[6],br=Ce[7],Ar=Ce[8],lr=Ce[9],Xr=Ce[10],yr=Ce[11],Tr=Ce[12],Wr=Ce[13],so=Ce[14],wo=Ce[15],Co=Ce[16],bn=Ce[17],Qo=Ce[18],co=Ce[19],Mr=0,Io=0,qo=0,Jo=0,Nn=0,ii=0,Ln=0,Xn=0,ln=0,to=0,Ji=0,Bi=0;Mr<et;Mr+=4)Io=te[Mr]/255,qo=te[Mr+1]/255,Jo=te[Mr+2]/255,Nn=te[Mr+3]/255,ii=Io*qe+qo*jt+Jo*Bt+Nn*dr+sr,Ln=Io*Sr+qo*wr+Jo*br+Nn*Ar+lr,Xn=Io*Xr+qo*yr+Jo*Tr+Nn*Wr+so,ln=Io*wo+qo*Co+Jo*bn+Nn*Qo+co,to=Math.max(0,ii*ln)+A*(1-ln),Ji=Math.max(0,Ln*ln)+$*(1-ln),Bi=Math.max(0,Xn*ln)+Q*(1-ln),te[Mr]=Math.max(0,Math.min(1,to))*255,te[Mr+1]=Math.max(0,Math.min(1,Ji))*255,te[Mr+2]=Math.max(0,Math.min(1,Bi))*255;return Ae}function Ve(Ae,Ce){var te=Ce.mode,et=te===void 0?"contain":te,qe=Ce.upscale,jt=qe===void 0?!1:qe,Bt=Ce.width,dr=Ce.height,sr=Ce.matrix;if(sr=!sr||fe(sr)?null:sr,!Bt&&!dr)return Pe(Ae,sr);if(Bt===null?Bt=dr:dr===null&&(dr=Bt),et!=="force"){var Sr=Bt/Ae.width,wr=dr/Ae.height,br=1;if(et==="cover"?br=Math.max(Sr,wr):et==="contain"&&(br=Math.min(Sr,wr)),br>1&&jt===!1)return Pe(Ae,sr);Bt=Ae.width*br,dr=Ae.height*br}for(var Ar=Ae.width,lr=Ae.height,Xr=Math.round(Bt),yr=Math.round(dr),Tr=Ae.data,Wr=new Uint8ClampedArray(Xr*yr*4),so=Ar/Xr,wo=lr/yr,Co=Math.ceil(so*.5),bn=Math.ceil(wo*.5),Qo=0;Qo<yr;Qo++)for(var co=0;co<Xr;co++){for(var Mr=(co+Qo*Xr)*4,Io=0,qo=0,Jo=0,Nn=0,ii=0,Ln=0,Xn=0,ln=(Qo+.5)*wo,to=Math.floor(Qo*wo);to<(Qo+1)*wo;to++)for(var Ji=Math.abs(ln-(to+.5))/bn,Bi=(co+.5)*so,Zd=Ji*Ji,hs=Math.floor(co*so);hs<(co+1)*so;hs++){var va=Math.abs(Bi-(hs+.5))/Co,Ki=Math.sqrt(Zd+va*va);if(Ki>=-1&&Ki<=1&&(Io=2*Ki*Ki*Ki-3*Ki*Ki+1,Io>0)){va=4*(hs+to*Ar);var $p=Tr[va+3];Xn+=Io*$p,Jo+=Io,$p<255&&(Io=Io*$p/250),Nn+=Io*Tr[va],ii+=Io*Tr[va+1],Ln+=Io*Tr[va+2],qo+=Io}}Wr[Mr]=Nn/qo,Wr[Mr+1]=ii/qo,Wr[Mr+2]=Ln/qo,Wr[Mr+3]=Xn/Jo,sr&&z(Mr,Wr,sr)}return{data:Wr,width:Xr,height:yr}}},xt=function(d,b){if(d.getUint32(b+4,!1)===1165519206){b+=4;var C=d.getUint16(b+=6,!1)===18761;b+=d.getUint32(b+4,C);var A=d.getUint16(b,C);b+=2;for(var $=0;$<A;$++)if(d.getUint16(b+$*12,C)===274)return d.setUint16(b+$*12+8,1,C),!0;return!1}},Wt=function(d){var b=new DataView(d);if(b.getUint16(0)!==65496)return null;for(var C=2,A,$,Q=!1;C<b.byteLength;){A=b.getUint16(C,!1),$=b.getUint16(C+2,!1)+2;var z=A>=65504&&A<=65519||A===65534;if(!z||(Q||(Q=xt(b,C,$)),C+$>b.byteLength))break;C+=$}return d.slice(0,C)},it=function(d){return new Promise(function(b){var C=new FileReader;C.onload=function(){return b(Wt(C.result)||null)},C.readAsArrayBuffer(d.slice(0,256*1024))})},Gr=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},Xt=function(d,b){var C=Gr();if(C){var A=new C;return A.append(d),A.getBlob(b)}return new Blob([d],{type:b})},Ur=function(){return Math.random().toString(36).substr(2,9)},Qr=function(d){var b=new Blob(["(",d.toString(),")()"],{type:"application/javascript"}),C=URL.createObjectURL(b),A=new Worker(C),$=[];return{transfer:function(){},post:function(z,J,fe){var Pe=Ur();$[Pe]=J,A.onmessage=function(Ve){var Ae=$[Ve.data.id];Ae&&(Ae(Ve.data.message),delete $[Ve.data.id])},A.postMessage({id:Pe,message:z},fe)},terminate:function(){A.terminate(),URL.revokeObjectURL(C)}}},Uo=function(d){return new Promise(function(b,C){var A=new Image;A.onload=function(){b(A)},A.onerror=function($){C($)},A.src=d})},qr=function(d){return d.reduce(function(b,C){return b.then(function(A){return C().then(Array.prototype.concat.bind(A))})},Promise.resolve([]))},Oo=function(d,b){return new Promise(function(C){var A={width:d.width,height:d.height},$=d.getContext("2d"),Q=b.sort(Mt).map(function(z){return function(){return new Promise(function(J){var fe=mr[z[0]]($,A,z[1],J);fe&&J()})}});qr(Q).then(function(){return C(d)})})},ur=function(d,b){d.beginPath(),d.lineCap=b["stroke-linecap"],d.lineJoin=b["stroke-linejoin"],d.lineWidth=b["stroke-width"],b["stroke-dasharray"].length&&d.setLineDash(b["stroke-dasharray"].split(",")),d.fillStyle=b.fill,d.strokeStyle=b.stroke,d.globalAlpha=b.opacity||1},Ke=function(d){d.fill(),d.stroke(),d.globalAlpha=1},jr=function(d,b,C){var A=ce(C,b),$=re(C,b);return ur(d,$),d.rect(A.x,A.y,A.width,A.height),Ke(d,$),!0},xo=function(d,b,C){var A=ce(C,b),$=re(C,b);ur(d,$);var Q=A.x,z=A.y,J=A.width,fe=A.height,Pe=.5522848,Ve=J/2*Pe,Ae=fe/2*Pe,Ce=Q+J,te=z+fe,et=Q+J/2,qe=z+fe/2;return d.moveTo(Q,qe),d.bezierCurveTo(Q,qe-Ae,et-Ve,z,et,z),d.bezierCurveTo(et+Ve,z,Ce,qe-Ae,Ce,qe),d.bezierCurveTo(Ce,qe+Ae,et+Ve,te,et,te),d.bezierCurveTo(et-Ve,te,Q,qe+Ae,Q,qe),Ke(d,$),!0},yo=function(d,b,C,A){var $=ce(C,b),Q=re(C,b);ur(d,Q);var z=new Image,J=new URL(C.src,window.location.href).origin!==window.location.origin;J&&(z.crossOrigin=""),z.onload=function(){if(C.fit==="cover"){var fe=$.width/$.height,Pe=fe>1?z.width:z.height*fe,Ve=fe>1?z.width/fe:z.height,Ae=z.width*.5-Pe*.5,Ce=z.height*.5-Ve*.5;d.drawImage(z,Ae,Ce,Pe,Ve,$.x,$.y,$.width,$.height)}else if(C.fit==="contain"){var te=Math.min($.width/z.width,$.height/z.height),et=te*z.width,qe=te*z.height,jt=$.x+$.width*.5-et*.5,Bt=$.y+$.height*.5-qe*.5;d.drawImage(z,0,0,z.width,z.height,jt,Bt,et,qe)}else d.drawImage(z,0,0,z.width,z.height,$.x,$.y,$.width,$.height);Ke(d,Q),A()},z.src=C.src},jo=function(d,b,C){var A=ce(C,b),$=re(C,b);ur(d,$);var Q=q(C.fontSize,b),z=C.fontFamily||"sans-serif",J=C.fontWeight||"normal",fe=C.textAlign||"left";return d.font="".concat(J," ").concat(Q,"px ").concat(z),d.textAlign=fe,d.fillText(C.text,A.x,A.y),Ke(d,$),!0},bt=function(d,b,C){var A=re(C,b);ur(d,A),d.beginPath();var $=C.points.map(function(J){return{x:q(J.x,b,1,"width"),y:q(J.y,b,1,"height")}});d.moveTo($[0].x,$[0].y);for(var Q=$.length,z=1;z<Q;z++)d.lineTo($[z].x,$[z].y);return Ke(d,A),!0},Ht=function(d,b,C){var A=ce(C,b),$=re(C,b);ur(d,$),d.beginPath();var Q={x:A.x,y:A.y},z={x:A.x+A.width,y:A.y+A.height};d.moveTo(Q.x,Q.y),d.lineTo(z.x,z.y);var J=de({x:z.x-Q.x,y:z.y-Q.y}),fe=.04*Math.min(b.width,b.height);if(C.lineDecoration.indexOf("arrow-begin")!==-1){var Pe=ne(J,fe),Ve=le(Q,Pe),Ae=ye(Q,2,Ve),Ce=ye(Q,-2,Ve);d.moveTo(Ae.x,Ae.y),d.lineTo(Q.x,Q.y),d.lineTo(Ce.x,Ce.y)}if(C.lineDecoration.indexOf("arrow-end")!==-1){var te=ne(J,-fe),et=le(z,te),qe=ye(z,2,et),jt=ye(z,-2,et);d.moveTo(qe.x,qe.y),d.lineTo(z.x,z.y),d.lineTo(jt.x,jt.y)}return Ke(d,$),!0},mr={rect:jr,ellipse:xo,image:yo,text:jo,line:Ht,path:bt},go=function(d){var b=document.createElement("canvas");b.width=d.width,b.height=d.height;var C=b.getContext("2d");return C.putImageData(d,0,0),b},an=function(d,b){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return new Promise(function(A,$){if(!d||!l(d))return $({status:"not an image file",file:d});var Q=C.stripImageHead,z=C.beforeCreateBlob,J=C.afterCreateBlob,fe=C.canvasMemoryLimit,Pe=b.crop,Ve=b.size,Ae=b.filter,Ce=b.markup,te=b.output,et=b.image&&b.image.orientation?Math.max(1,Math.min(8,b.image.orientation)):null,qe=te&&te.quality,jt=qe===null?null:qe/100,Bt=te&&te.type||null,dr=te&&te.background||null,sr=[];Ve&&(typeof Ve.width=="number"||typeof Ve.height=="number")&&sr.push({type:"resize",data:Ve}),Ae&&Ae.length===20&&sr.push({type:"filter",data:Ae});var Sr=function(lr){var Xr=J?J(lr):lr;Promise.resolve(Xr).then(A)},wr=function(lr,Xr){var yr=go(lr),Tr=Ce.length?Oo(yr,Ce):yr;Promise.resolve(Tr).then(function(Wr){Z(Wr,Xr,z).then(function(so){if(Y(Wr),Q)return Sr(so);it(d).then(function(wo){wo!==null&&(so=new Blob([wo,so.slice(20)],{type:so.type})),Sr(so)})}).catch($)})};if(/svg/.test(d.type)&&Bt===null)return or(d,Pe,Ce,{background:dr}).then(function(Ar){A(Xt(Ar,"image/svg+xml"))});var br=URL.createObjectURL(d);Uo(br).then(function(Ar){URL.revokeObjectURL(br);var lr=j(Ar,et,Pe,{canvasMemoryLimit:fe,background:dr}),Xr={quality:jt,type:Bt||d.type};if(!sr.length)return wr(lr,Xr);var yr=Qr(cr);yr.post({transforms:sr,imageData:lr},function(Tr){wr(ze(Tr),Xr),yr.terminate()},[lr.data.buffer])}).catch($)})};function Cr(S){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cr=function(d){return typeof d}:Cr=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},Cr(S)}var Jr;function yn(S,d,b,C){Jr||(Jr=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103);var A=S&&S.defaultProps,$=arguments.length-3;if(!d&&$!==0&&(d={children:void 0}),d&&A)for(var Q in A)d[Q]===void 0&&(d[Q]=A[Q]);else d||(d=A||{});if($===1)d.children=C;else if($>1){for(var z=new Array($),J=0;J<$;J++)z[J]=arguments[J+3];d.children=z}return{$$typeof:Jr,type:S,key:b===void 0?null:""+b,ref:null,props:d,_owner:null}}function zo(S){var d;if(typeof Symbol=="function"&&(Symbol.asyncIterator&&(d=S[Symbol.asyncIterator],d!=null)||Symbol.iterator&&(d=S[Symbol.iterator],d!=null)))return d.call(S);throw new TypeError("Object is not async iterable")}function Dr(S){this.wrapped=S}function Po(S){var d,b;function C(Q,z){return new Promise(function(J,fe){var Pe={key:Q,arg:z,resolve:J,reject:fe,next:null};b?b=b.next=Pe:(d=b=Pe,A(Q,z))})}function A(Q,z){try{var J=S[Q](z),fe=J.value,Pe=fe instanceof Dr;Promise.resolve(Pe?fe.wrapped:fe).then(function(Ve){if(Pe){A("next",Ve);return}$(J.done?"return":"normal",Ve)},function(Ve){A("throw",Ve)})}catch(Ve){$("throw",Ve)}}function $(Q,z){switch(Q){case"return":d.resolve({value:z,done:!0});break;case"throw":d.reject(z);break;default:d.resolve({value:z,done:!1});break}d=d.next,d?A(d.key,d.arg):b=null}this._invoke=C,typeof S.return!="function"&&(this.return=void 0)}typeof Symbol=="function"&&Symbol.asyncIterator&&(Po.prototype[Symbol.asyncIterator]=function(){return this}),Po.prototype.next=function(S){return this._invoke("next",S)},Po.prototype.throw=function(S){return this._invoke("throw",S)},Po.prototype.return=function(S){return this._invoke("return",S)};function Mn(S){return function(){return new Po(S.apply(this,arguments))}}function Yo(S){return new Dr(S)}function st(S,d){var b={},C=!1;function A($,Q){return C=!0,Q=new Promise(function(z){z(S[$](Q))}),{done:!1,value:d(Q)}}return typeof Symbol=="function"&&Symbol.iterator&&(b[Symbol.iterator]=function(){return this}),b.next=function($){return C?(C=!1,$):A("next",$)},typeof S.throw=="function"&&(b.throw=function($){if(C)throw C=!1,$;return A("throw",$)}),typeof S.return=="function"&&(b.return=function($){return A("return",$)}),b}function Ot(S,d,b,C,A,$,Q){try{var z=S[$](Q),J=z.value}catch(fe){b(fe);return}z.done?d(J):Promise.resolve(J).then(C,A)}function Yt(S){return function(){var d=this,b=arguments;return new Promise(function(C,A){var $=S.apply(d,b);function Q(J){Ot($,C,A,Q,z,"next",J)}function z(J){Ot($,C,A,Q,z,"throw",J)}Q(void 0)})}}function zt(S,d){if(!(S instanceof d))throw new TypeError("Cannot call a class as a function")}function Zt(S,d){for(var b=0;b<d.length;b++){var C=d[b];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(S,C.key,C)}}function Vo(S,d,b){return d&&Zt(S.prototype,d),b&&Zt(S,b),S}function zr(S,d){for(var b in d){var C=d[b];C.configurable=C.enumerable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(S,b,C)}if(Object.getOwnPropertySymbols)for(var A=Object.getOwnPropertySymbols(d),$=0;$<A.length;$++){var Q=A[$],C=d[Q];C.configurable=C.enumerable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(S,Q,C)}return S}function gn(S,d){for(var b=Object.getOwnPropertyNames(d),C=0;C<b.length;C++){var A=b[C],$=Object.getOwnPropertyDescriptor(d,A);$&&$.configurable&&S[A]===void 0&&Object.defineProperty(S,A,$)}return S}function Wn(S,d,b){return d in S?Object.defineProperty(S,d,{value:b,enumerable:!0,configurable:!0,writable:!0}):S[d]=b,S}function io(){return io=Object.assign||function(S){for(var d=1;d<arguments.length;d++){var b=arguments[d];for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(S[C]=b[C])}return S},io.apply(this,arguments)}function Kr(S){for(var d=1;d<arguments.length;d++){var b=arguments[d]!=null?arguments[d]:{},C=Object.keys(b);typeof Object.getOwnPropertySymbols=="function"&&(C=C.concat(Object.getOwnPropertySymbols(b).filter(function(A){return Object.getOwnPropertyDescriptor(b,A).enumerable}))),C.forEach(function(A){Wn(S,A,b[A])})}return S}function _r(S,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(d&&d.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),d&&Zo(S,d)}function Hn(S,d){S.prototype=Object.create(d.prototype),S.prototype.constructor=S,S.__proto__=d}function ri(S){return ri=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},ri(S)}function Zo(S,d){return Zo=Object.setPrototypeOf||function(C,A){return C.__proto__=A,C},Zo(S,d)}function oi(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Se(S,d,b){return oi()?Se=Reflect.construct:Se=function(A,$,Q){var z=[null];z.push.apply(z,$);var J=Function.bind.apply(A,z),fe=new J;return Q&&Zo(fe,Q.prototype),fe},Se.apply(null,arguments)}function we(S){return Function.toString.call(S).indexOf("[native code]")!==-1}function rt(S){var d=typeof Map=="function"?new Map:void 0;return rt=function(C){if(C===null||!we(C))return C;if(typeof C!="function")throw new TypeError("Super expression must either be null or a function");if(typeof d<"u"){if(d.has(C))return d.get(C);d.set(C,A)}function A(){return Se(C,arguments,ri(this).constructor)}return A.prototype=Object.create(C.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),Zo(A,C)},rt(S)}function Nt(S,d){return d!=null&&typeof Symbol<"u"&&d[Symbol.hasInstance]?d[Symbol.hasInstance](S):S instanceof d}function Lt(S){return S&&S.__esModule?S:{default:S}}function Rr(S){if(S&&S.__esModule)return S;var d={};if(S!=null){for(var b in S)if(Object.prototype.hasOwnProperty.call(S,b)){var C=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(S,b):{};C.get||C.set?Object.defineProperty(d,b,C):d[b]=S[b]}}return d.default=S,d}function Pr(S,d){if(S!==d)throw new TypeError("Cannot instantiate an arrow function")}function Eo(S){if(S==null)throw new TypeError("Cannot destructure undefined")}function hn(S,d){if(S==null)return{};var b={},C=Object.keys(S),A,$;for($=0;$<C.length;$++)A=C[$],!(d.indexOf(A)>=0)&&(b[A]=S[A]);return b}function $n(S,d){if(S==null)return{};var b=hn(S,d),C,A;if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(S);for(A=0;A<$.length;A++)C=$[A],!(d.indexOf(C)>=0)&&Object.prototype.propertyIsEnumerable.call(S,C)&&(b[C]=S[C])}return b}function bi(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function ki(S,d){return d&&(typeof d=="object"||typeof d=="function")?d:bi(S)}function tr(S,d){for(;!Object.prototype.hasOwnProperty.call(S,d)&&(S=ri(S),S!==null););return S}function vn(S,d,b){return typeof Reflect<"u"&&Reflect.get?vn=Reflect.get:vn=function(A,$,Q){var z=tr(A,$);if(z){var J=Object.getOwnPropertyDescriptor(z,$);return J.get?J.get.call(Q):J.value}},vn(S,d,b||S)}function sn(S,d,b,C){return typeof Reflect<"u"&&Reflect.set?sn=Reflect.set:sn=function($,Q,z,J){var fe=tr($,Q),Pe;if(fe){if(Pe=Object.getOwnPropertyDescriptor(fe,Q),Pe.set)return Pe.set.call(J,z),!0;if(!Pe.writable)return!1}if(Pe=Object.getOwnPropertyDescriptor(J,Q),Pe){if(!Pe.writable)return!1;Pe.value=z,Object.defineProperty(J,Q,Pe)}else Wn(J,Q,z);return!0},sn(S,d,b,C)}function ni(S,d,b,C,A){var $=sn(S,d,b,C||S);if(!$&&A)throw new Error("failed to set property");return b}function qi(S,d){return d||(d=S.slice(0)),Object.freeze(Object.defineProperties(S,{raw:{value:Object.freeze(d)}}))}function yl(S,d){return d||(d=S.slice(0)),S.raw=d,S}function M(S,d){if(S===ae)throw new ReferenceError(d+" is not defined - temporal dead zone");return S}function K(S){throw new Error('"'+S+'" is read-only')}function H(S){throw new Error('Class "'+S+'" cannot be referenced in computed property keys.')}var ae={};function ue(S,d){return Fe(S)||Et(S,d)||fr()}function ie(S,d){return Fe(S)||er(S,d)||fr()}function De(S){return Fe(S)||Qe(S)||fr()}function Be(S){return We(S)||Qe(S)||gr()}function We(S){if(Array.isArray(S)){for(var d=0,b=new Array(S.length);d<S.length;d++)b[d]=S[d];return b}}function Fe(S){if(Array.isArray(S))return S}function Qe(S){if(Symbol.iterator in Object(S)||Object.prototype.toString.call(S)==="[object Arguments]")return Array.from(S)}function Et(S,d){var b=[],C=!0,A=!1,$=void 0;try{for(var Q=S[Symbol.iterator](),z;!(C=(z=Q.next()).done)&&(b.push(z.value),!(d&&b.length===d));C=!0);}catch(J){A=!0,$=J}finally{try{!C&&Q.return!=null&&Q.return()}finally{if(A)throw $}}return b}function er(S,d){for(var b=[],C=S[Symbol.iterator](),A;!(A=C.next()).done&&(b.push(A.value),!(d&&b.length===d)););return b}function gr(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function fr(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Vr(S){return function(){var d=S.apply(this,arguments);return d.next(),d}}function eo(S,d){if(typeof S!="object"||S===null)return S;var b=S[Symbol.toPrimitive];if(b!==void 0){var C=b.call(S,d||"default");if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(S)}function Ao(S){var d=eo(S,"string");return typeof d=="symbol"?d:String(d)}function Fi(S,d){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and set to use loose mode. To use proposal-class-properties in spec mode with decorators, wait for the next major version of decorators in stage 2.")}function Va(S,d,b,C){b&&Object.defineProperty(S,d,{enumerable:b.enumerable,configurable:b.configurable,writable:b.writable,value:b.initializer?b.initializer.call(C):void 0})}function gl(S,d,b,C,A){var $={};return Object.keys(C).forEach(function(Q){$[Q]=C[Q]}),$.enumerable=!!$.enumerable,$.configurable=!!$.configurable,("value"in $||$.initializer)&&($.writable=!0),$=b.slice().reverse().reduce(function(Q,z){return z(S,d,Q)||Q},$),A&&$.initializer!==void 0&&($.value=$.initializer?$.initializer.call(A):void 0,$.initializer=void 0),$.initializer===void 0&&(Object.defineProperty(S,d,$),$=null),$}var ha=0;function gs(S){return"__private_"+ha+++"_"+S}function hl(S,d){if(!Object.prototype.hasOwnProperty.call(S,d))throw new TypeError("attempted to use private field on non-instance");return S}function vl(S,d){if(!d.has(S))throw new TypeError("attempted to get private field on non-instance");var b=d.get(S);return b.get?b.get.call(S):b.value}function Wa(S,d,b){if(!d.has(S))throw new TypeError("attempted to set private field on non-instance");var C=d.get(S);if(C.set)C.set.call(S,b);else{if(!C.writable)throw new TypeError("attempted to set read only private field");C.value=b}return b}function $d(S,d,b){if(S!==d)throw new TypeError("Private static access of wrong provenance");return b.value}function Vp(S,d,b,C){if(S!==d)throw new TypeError("Private static access of wrong provenance");if(!b.writable)throw new TypeError("attempted to set read only private field");return b.value=C,C}function Xd(S,d,b){if(S!==d)throw new TypeError("Private static access of wrong provenance");return b}function fu(){throw new TypeError("attempted to set read only static private field")}function Yd(S,d,b,C){var A=Wp();if(C)for(var $=0;$<C.length;$++)A=C[$](A);var Q=d(function(fe){A.initializeInstanceElements(fe,z.elements)},b),z=A.decorateClass(F(Q.d.map(Hp)),S);return A.initializeClassElements(Q.F,z.elements),A.runClassFinishers(Q.F,z.finishers)}function Wp(){Wp=function(){return S};var S={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(d,b){["method","field"].forEach(function(C){b.forEach(function(A){A.kind===C&&A.placement==="own"&&this.defineClassElement(d,A)},this)},this)},initializeClassElements:function(d,b){var C=d.prototype;["method","field"].forEach(function(A){b.forEach(function($){var Q=$.placement;if($.kind===A&&(Q==="static"||Q==="prototype")){var z=Q==="static"?d:C;this.defineClassElement(z,$)}},this)},this)},defineClassElement:function(d,b){var C=b.descriptor;if(b.kind==="field"){var A=b.initializer;C={enumerable:C.enumerable,writable:C.writable,configurable:C.configurable,value:A===void 0?void 0:A.call(d)}}Object.defineProperty(d,b.key,C)},decorateClass:function(d,b){var C=[],A=[],$={static:[],prototype:[],own:[]};if(d.forEach(function(z){this.addElementPlacement(z,$)},this),d.forEach(function(z){if(!g(z))return C.push(z);var J=this.decorateElement(z,$);C.push(J.element),C.push.apply(C,J.extras),A.push.apply(A,J.finishers)},this),!b)return{elements:C,finishers:A};var Q=this.decorateConstructor(C,b);return A.push.apply(A,Q.finishers),Q.finishers=A,Q},addElementPlacement:function(d,b,C){var A=b[d.placement];if(!C&&A.indexOf(d.key)!==-1)throw new TypeError("Duplicated element ("+d.key+")");A.push(d.key)},decorateElement:function(d,b){for(var C=[],A=[],$=d.decorators,Q=$.length-1;Q>=0;Q--){var z=b[d.placement];z.splice(z.indexOf(d.key),1);var J=this.fromElementDescriptor(d),fe=this.toElementFinisherExtras((0,$[Q])(J)||J);d=fe.element,this.addElementPlacement(d,b),fe.finisher&&A.push(fe.finisher);var Pe=fe.extras;if(Pe){for(var Ve=0;Ve<Pe.length;Ve++)this.addElementPlacement(Pe[Ve],b);C.push.apply(C,Pe)}}return{element:d,finishers:A,extras:C}},decorateConstructor:function(d,b){for(var C=[],A=b.length-1;A>=0;A--){var $=this.fromClassDescriptor(d),Q=this.toClassDescriptor((0,b[A])($)||$);if(Q.finisher!==void 0&&C.push(Q.finisher),Q.elements!==void 0){d=Q.elements;for(var z=0;z<d.length-1;z++)for(var J=z+1;J<d.length;J++)if(d[z].key===d[J].key&&d[z].placement===d[J].placement)throw new TypeError("Duplicated element ("+d[z].key+")")}}return{elements:d,finishers:C}},fromElementDescriptor:function(d){var b={kind:d.kind,key:d.key,placement:d.placement,descriptor:d.descriptor},C={value:"Descriptor",configurable:!0};return Object.defineProperty(b,Symbol.toStringTag,C),d.kind==="field"&&(b.initializer=d.initializer),b},toElementDescriptors:function(d){if(d!==void 0)return De(d).map(function(b){var C=this.toElementDescriptor(b);return this.disallowProperty(b,"finisher","An element descriptor"),this.disallowProperty(b,"extras","An element descriptor"),C},this)},toElementDescriptor:function(d){var b=String(d.kind);if(b!=="method"&&b!=="field")throw new TypeError(`An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "`+b+'"');var C=Ao(d.key),A=String(d.placement);if(A!=="static"&&A!=="prototype"&&A!=="own")throw new TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "`+A+'"');var $=d.descriptor;this.disallowProperty(d,"elements","An element descriptor");var Q={kind:b,key:C,placement:A,descriptor:Object.assign({},$)};return b!=="field"?this.disallowProperty(d,"initializer","A method descriptor"):(this.disallowProperty($,"get","The property descriptor of a field descriptor"),this.disallowProperty($,"set","The property descriptor of a field descriptor"),this.disallowProperty($,"value","The property descriptor of a field descriptor"),Q.initializer=d.initializer),Q},toElementFinisherExtras:function(d){var b=this.toElementDescriptor(d),C=B(d,"finisher"),A=this.toElementDescriptors(d.extras);return{element:b,finisher:C,extras:A}},fromClassDescriptor:function(d){var b={kind:"class",elements:d.map(this.fromElementDescriptor,this)},C={value:"Descriptor",configurable:!0};return Object.defineProperty(b,Symbol.toStringTag,C),b},toClassDescriptor:function(d){var b=String(d.kind);if(b!=="class")throw new TypeError(`A class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "`+b+'"');this.disallowProperty(d,"key","A class descriptor"),this.disallowProperty(d,"placement","A class descriptor"),this.disallowProperty(d,"descriptor","A class descriptor"),this.disallowProperty(d,"initializer","A class descriptor"),this.disallowProperty(d,"extras","A class descriptor");var C=B(d,"finisher"),A=this.toElementDescriptors(d.elements);return{elements:A,finisher:C}},runClassFinishers:function(d,b){for(var C=0;C<b.length;C++){var A=(0,b[C])(d);if(A!==void 0){if(typeof A!="function")throw new TypeError("Finishers must return a constructor.");d=A}}return d},disallowProperty:function(d,b,C){if(d[b]!==void 0)throw new TypeError(C+" can't have a ."+b+" property.")}};return S}function Hp(S){var d=Ao(S.key),b;S.kind==="method"?b={value:S.value,writable:!0,configurable:!0,enumerable:!1}:S.kind==="get"?b={get:S.value,configurable:!0,enumerable:!1}:S.kind==="set"?b={set:S.value,configurable:!0,enumerable:!1}:S.kind==="field"&&(b={configurable:!0,writable:!0,enumerable:!0});var C={kind:S.kind==="field"?"field":"method",key:d,placement:S.static?"static":S.kind==="field"?"own":"prototype",descriptor:b};return S.decorators&&(C.decorators=S.decorators),S.kind==="field"&&(C.initializer=S.value),C}function du(S,d){S.descriptor.get!==void 0?d.descriptor.get=S.descriptor.get:d.descriptor.set=S.descriptor.set}function F(S){for(var d=[],b=function(Q){return Q.kind==="method"&&Q.key===A.key&&Q.placement===A.placement},C=0;C<S.length;C++){var A=S[C],$;if(A.kind==="method"&&($=d.find(b)))if(O(A.descriptor)||O($.descriptor)){if(g(A)||g($))throw new ReferenceError("Duplicated methods ("+A.key+") can't be decorated.");$.descriptor=A.descriptor}else{if(g(A)){if(g($))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+A.key+").");$.decorators=A.decorators}du(A,$)}else d.push(A)}return d}function g(S){return S.decorators&&S.decorators.length}function O(S){return S!==void 0&&!(S.value===void 0&&S.writable===void 0)}function B(S,d){var b=S[d];if(b!==void 0&&typeof b!="function")throw new TypeError("Expected '"+d+"' to be a function");return b}function V(S,d,b){if(!d.has(S))throw new TypeError("attempted to get private field on non-instance");return b}function ee(){throw new TypeError("attempted to reassign private method")}function he(S,d){he=function(z,J){return new $(z,J)};var b=rt(RegExp),C=RegExp.prototype,A=new WeakMap;function $(z,J){var fe=b.call(this,z);return A.set(fe,J),fe}_r($,b),$.prototype.exec=function(z){var J=C.exec.call(this,z);return J&&(J.groups=Q(J,this)),J},$.prototype[Symbol.replace]=function(z,J){if(typeof J=="string"){var fe=A.get(this);return C[Symbol.replace].call(this,z,J.replace(/\$<([^>]+)>/g,function(Ve,Ae){return"$"+fe[Ae]}))}else if(typeof J=="function"){var Pe=this;return C[Symbol.replace].call(this,z,function(){var Ve=[];return Ve.push.apply(Ve,arguments),typeof Ve[Ve.length-1]!="object"&&Ve.push(Q(Ve,Pe)),J.apply(this,Ve)})}else return C[Symbol.replace].call(this,z,J)};function Q(z,J){var fe=A.get(J);return Object.keys(fe).reduce(function(Pe,Ve){return Pe[Ve]=z[fe[Ve]],Pe},Object.create(null))}return he.apply(this,arguments)}var ge=["x","y","left","top","right","bottom","width","height"],_e=function(d){return typeof d=="string"&&/%/.test(d)?parseFloat(d)/100:d},nt=function(d){var b=ue(d,2),C=b[0],A=b[1],$=A.points?{}:ge.reduce(function(Q,z){return Q[z]=_e(A[z]),Q},{});return[C,Object.assign({zIndex:0},A,$)]},wt=function(d){return new Promise(function(b,C){var A=new Image;A.src=URL.createObjectURL(d);var $=function(){var J=A.naturalWidth,fe=A.naturalHeight,Pe=J&&fe;Pe&&(URL.revokeObjectURL(A.src),clearInterval(Q),b({width:J,height:fe}))};A.onerror=function(z){URL.revokeObjectURL(A.src),clearInterval(Q),C(z)};var Q=setInterval($,1);$()})};typeof window<"u"&&typeof window.document<"u"&&(HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(d,b,C){var A=this;setTimeout(function(){for(var $=A.toDataURL(b,C).split(",")[1],Q=atob($),z=Q.length,J=new Uint8Array(z);z--;)J[z]=Q.charCodeAt(z);d(new Blob([J],{type:b||"image/png"}))})}}));var ht=typeof window<"u"&&typeof window.document<"u",Qt=ht&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,ao=function(d){var b=d.addFilter,C=d.utils,A=C.Type,$=C.forin,Q=C.getFileFromBlob,z=C.isFile,J=["crop","resize","filter","markup","output"],fe=function(Ce){return function(te,et,qe){return te(et,Ce?Ce(qe):qe)}},Pe=function(Ce){return Ce.aspectRatio===null&&Ce.rotation===0&&Ce.zoom===1&&Ce.center&&Ce.center.x===.5&&Ce.center.y===.5&&Ce.flip&&Ce.flip.horizontal===!1&&Ce.flip.vertical===!1};b("SHOULD_PREPARE_OUTPUT",function(Ae,Ce){var te=Ce.query;return new Promise(function(et){et(!te("IS_ASYNC"))})});var Ve=function(Ce,te,et){return new Promise(function(qe){if(!Ce("GET_ALLOW_IMAGE_TRANSFORM")||et.archived||!z(te)||!e(te))return qe(!1);wt(te).then(function(){var jt=Ce("GET_IMAGE_TRANSFORM_IMAGE_FILTER");if(jt){var Bt=jt(te);if(Bt==null)return handleRevert(!0);if(typeof Bt=="boolean")return qe(Bt);if(typeof Bt.then=="function")return Bt.then(qe)}qe(!0)}).catch(function(jt){qe(!1)})})};return b("DID_CREATE_ITEM",function(Ae,Ce){var te=Ce.query,et=Ce.dispatch;te("GET_ALLOW_IMAGE_TRANSFORM")&&Ae.extend("requestPrepare",function(){return new Promise(function(qe,jt){et("REQUEST_PREPARE_OUTPUT",{query:Ae.id,item:Ae,success:qe,failure:jt},!0)})})}),b("PREPARE_OUTPUT",function(Ae,Ce){var te=Ce.query,et=Ce.item;return new Promise(function(qe){Ve(te,Ae,et).then(function(jt){if(!jt)return qe(Ae);var Bt=[];te("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_ORIGINAL")&&Bt.push(function(){return new Promise(function(yr){yr({name:te("GET_IMAGE_TRANSFORM_VARIANTS_ORIGINAL_NAME"),file:Ae})})}),te("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_DEFAULT")&&Bt.push(function(yr,Tr,Wr){return new Promise(function(so){yr(Tr,Wr).then(function(wo){return so({name:te("GET_IMAGE_TRANSFORM_VARIANTS_DEFAULT_NAME"),file:wo})})})});var dr=te("GET_IMAGE_TRANSFORM_VARIANTS")||{};$(dr,function(yr,Tr){var Wr=fe(Tr);Bt.push(function(so,wo,Co){return new Promise(function(bn){Wr(so,wo,Co).then(function(Qo){return bn({name:yr,file:Qo})})})})});var sr=te("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY"),Sr=te("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY_MODE"),wr=sr===null?null:sr/100,br=te("GET_IMAGE_TRANSFORM_OUTPUT_MIME_TYPE"),Ar=te("GET_IMAGE_TRANSFORM_CLIENT_TRANSFORMS")||J;et.setMetadata("output",{type:br,quality:wr,client:Ar},!0);var lr=function(Tr,Wr){return new Promise(function(so,wo){var Co=Object.assign({},Wr);Object.keys(Co).filter(function(to){return to!=="exif"}).forEach(function(to){Ar.indexOf(to)===-1&&delete Co[to]});var bn=Co.resize,Qo=Co.exif,co=Co.output,Mr=Co.crop,Io=Co.filter,qo=Co.markup,Jo={image:{orientation:Qo?Qo.orientation:null},output:co&&(co.type||typeof co.quality=="number"||co.background)?{type:co.type,quality:typeof co.quality=="number"?co.quality*100:null,background:co.background||te("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR")||null}:void 0,size:bn&&(bn.size.width||bn.size.height)?Object.assign({mode:bn.mode,upscale:bn.upscale},bn.size):void 0,crop:Mr&&!Pe(Mr)?Object.assign({},Mr):void 0,markup:qo&&qo.length?qo.map(nt):[],filter:Io};if(Jo.output){var Nn=co.type?co.type!==Tr.type:!1,ii=/\/jpe?g$/.test(Tr.type),Ln=co.quality!==null?ii&&Sr==="always":!1,Xn=!!(Jo.size||Jo.crop||Jo.filter||Nn||Ln);if(!Xn)return so(Tr)}var ln={beforeCreateBlob:te("GET_IMAGE_TRANSFORM_BEFORE_CREATE_BLOB"),afterCreateBlob:te("GET_IMAGE_TRANSFORM_AFTER_CREATE_BLOB"),canvasMemoryLimit:te("GET_IMAGE_TRANSFORM_CANVAS_MEMORY_LIMIT"),stripImageHead:te("GET_IMAGE_TRANSFORM_OUTPUT_STRIP_IMAGE_HEAD")};an(Tr,Jo,ln).then(function(to){var Ji=Q(to,i(Tr.name,a(to.type)));so(Ji)}).catch(wo)})},Xr=Bt.map(function(yr){return yr(lr,Ae,et.getMetadata())});Promise.all(Xr).then(function(yr){qe(yr.length===1&&yr[0].name===null?yr[0].file:yr)})})})}),{options:{allowImageTransform:[!0,A.BOOLEAN],imageTransformImageFilter:[null,A.FUNCTION],imageTransformOutputMimeType:[null,A.STRING],imageTransformOutputQuality:[null,A.INT],imageTransformOutputStripImageHead:[!0,A.BOOLEAN],imageTransformClientTransforms:[null,A.ARRAY],imageTransformOutputQualityMode:["always",A.STRING],imageTransformVariants:[null,A.OBJECT],imageTransformVariantsIncludeDefault:[!0,A.BOOLEAN],imageTransformVariantsDefaultName:[null,A.STRING],imageTransformVariantsIncludeOriginal:[!1,A.BOOLEAN],imageTransformVariantsOriginalName:["original_",A.STRING],imageTransformBeforeCreateBlob:[null,A.FUNCTION],imageTransformAfterCreateBlob:[null,A.FUNCTION],imageTransformCanvasMemoryLimit:[ht&&Qt?4096*4096:null,A.INT],imageTransformCanvasBackgroundColor:[null,A.STRING]}}};return ht&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:ao})),ao})});var BL={};RS(BL,{Card:()=>sv,CardColumn:()=>Kh,CardDetail:()=>ev,CardLabel:()=>tv,CardStep:()=>Jh,CardStepList:()=>qh,Checkbox:()=>Zh,ColorCard:()=>Qh,DateNavigator:()=>nv,ElementDamageForm:()=>vw,LinkedList:()=>iv,LinkedListItem:()=>av,PageBanner:()=>pv,PageBannerImage:()=>cv,PageBannerTab:()=>fv,PageBannerTabList:()=>uv,PageBannerTitle:()=>dv,Portal:()=>gv,ProgressBar:()=>bv,Sidebar:()=>xv,Spinner:()=>Pv,SplitContainer:()=>Sv,ValueToggleGroup:()=>Cv,useTranslation:()=>Ov});function Xh(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Xh(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function OS(){for(var e,t,r=0,i="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Xh(e))&&(i&&(i+=" "),i+=t);return i}var ve=OS;var Xa=me(Ee(),1),ea=xe("react/jsx-runtime");function CS(e){return(0,ea.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",...e,children:(0,ea.jsx)("path",{d:"M20.285 2L9 13.567 3.714 8.556 0 12.272 9 21 24 5.715z",fill:"currentColor"})})}var Zh=(0,Xa.forwardRef)(function({className:t,disabled:r=!1,id:i,onChange:a=()=>null,label:l,title:p,reverse:u,value:m,...h},v){let I=(0,Xa.useId)();I=i??I;let P=`#${I}`,w=(0,Xa.useRef)(null);(0,Xa.useEffect)(()=>{typeof v=="function"?v(w.current):v&&(v.current=w.current)},[]);function R(){let U=w.current;U&&(U.focus(),U.click())}function G(U){r||a(U)}function N(U){if(U.nativeEvent){let{nativeEvent:Y}=U;Y.key===" "&&(Y.preventDefault(),w.current?.click())}}return(0,ea.jsxs)("div",{className:ve("ObCheckbox-root",r&&"Ob-disabled",u&&"Ob-reverse",t),title:p,children:[(0,ea.jsx)("input",{className:"ObCheckbox-input",id:I,type:"checkbox",onChange:G,checked:m,disabled:r,ref:w,...h}),(0,ea.jsxs)("label",{htmlFor:P,className:"ObCheckbox-label",onKeyDown:N,onClick:R,children:[(0,ea.jsx)("div",{className:"ObCheckbox-box",children:(0,ea.jsx)(CS,{className:"ObCheckbox-mark"})}),l&&(0,ea.jsx)("div",{className:"ObCheckbox-label-text",children:l})]})]})});var Ui=xe("react/jsx-runtime");function Qh({as:e,children:t,className:r,href:i,...a}){return(0,Ui.jsx)(e||(i?"a":"div"),{className:ve("ObColorCard-root",r),href:i,...a,children:t})}function qh({children:e,className:t,...r}){return(0,Ui.jsx)("div",{className:ve("ObColorCard-stepList",t),...r,children:e})}function Jh({children:e,className:t,...r}){return(0,Ui.jsx)("div",{className:ve("ObColorCard-step",t),...r,children:(0,Ui.jsx)("div",{className:"ObColorCard-stepText",children:e})})}function Kh({children:e,className:t,minor:r,...i}){return(0,Ui.jsx)("div",{className:ve("ObColorCard-column",r&&"ObColorCard-minor",t),...i,children:e})}function ev({children:e,className:t,label:r,primary:i,...a}){return(0,Ui.jsxs)("div",{className:ve("ObColorCard-detail",i&&"ObColorCard-primary",t),...a,children:[r&&(0,Ui.jsx)("div",{className:"ObColorCard-detailLabel",children:r}),(0,Ui.jsx)("div",{className:"ObColorCard-detailValue",children:e})]})}function tv({children:e,className:t,...r}){return(0,Ui.jsx)("div",{className:ve("ObColorCard-label",t),...r,children:e})}var ws=me(xn(),1);var wl=me(Ee(),1),Zn=xe("react/jsx-runtime");function DS(){return af?.userSession?.culture??"default"}function ov({direction:e,...t}){return(0,Zn.jsx)("button",{className:ve("ObDateNavigator-arrow btn-reset",e==="left"?"ObDateNavigator-arrowLeft":"ObDateNavigator-arrowRight"),"aria-label":e==="left"?(0,ws.getLocalizedString)("Previous day"):(0,ws.getLocalizedString)("Next day"),...t,children:(0,Zn.jsx)("span",{className:"ObDateNavigator-icon",children:e==="left"?(0,Zn.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 320 512",children:(0,Zn.jsx)("path",{fill:"currentColor",d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"})}):(0,Zn.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 320 512",children:(0,Zn.jsx)("path",{fill:"currentColor",d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"})})})})}var _S=new Intl.DateTimeFormat(DS(),{weekday:"short",day:"numeric",month:"short",year:"numeric",timeZone:"utc"}),El=1440*60*1e3;function wu(e){if(typeof e=="string"||typeof e=="number"){let t=new Date(e);if(Number.isNaN(t.getTime()))throw new Error(`Invalid date value: ${e}`);return t}else if(e instanceof Date){if(Number.isNaN(e.getTime()))throw new Error(`Invalid date object: ${e}`);return new Date(e.getTime())}else throw new Error(`Unsupported date type: ${typeof e}`)}function nv({date:e,defaultDate:t,disableTodayButton:r,onChange:i,minDate:a,maxDate:l}){let[p,u]=(0,wl.useState)(()=>t?wu(t):new Date),m=e?wu(e):p,h=Date.UTC(m.getFullYear(),m.getMonth(),m.getDate()),v=new Date,I=Date.UTC(v.getFullYear(),v.getMonth(),v.getDate()),P=(0,wl.useRef)(null),w=(()=>{let j=_S.format(new Date(h));return I===h?`${(0,ws.getLocalizedString)("Today")}, ${j}`:I===h+El?`${(0,ws.getLocalizedString)("Yesterday")}, ${j}`:I===h-El?`${(0,ws.getLocalizedString)("Tomorrow")}, ${j}`:j})(),R=a&&wu(a),G=l&&wu(l),N=!!R&&h<=Date.UTC(R.getFullYear(),R.getMonth(),R.getDate()),U=!!G&&h>=Date.UTC(G.getFullYear(),G.getMonth(),G.getDate());function Y(j){R&&j<R?j=new Date(R):G&&j>G&&(j=new Date(G)),i?.(j),u(j)}function L(){Y(new Date)}(0,wl.useEffect)(()=>{P.current&&(P.current.textContent=w)},[w]);function k(j){if(j.key!=="ArrowLeft"&&j.key!=="ArrowRight"||j.defaultPrevented||j.altKey||j.metaKey||N&&j.key==="ArrowLeft"||U&&j.key==="ArrowRight")return;if(j.ctrlKey&&j.shiftKey){let Z=new Date(h);j.key==="ArrowLeft"?Z.setFullYear(Z.getFullYear()-1):j.key==="ArrowRight"&&Z.setFullYear(Z.getFullYear()+1),Y(Z);return}if(j.ctrlKey){let Z=new Date(h);j.key==="ArrowLeft"?Z.setMonth(Z.getMonth()-1):j.key==="ArrowRight"&&Z.setMonth(Z.getMonth()+1),Y(Z);return}let D=j.shiftKey?7:1;j.key==="ArrowLeft"?Y(new Date(h-El*D)):j.key==="ArrowRight"&&Y(new Date(h+El*D))}return(0,Zn.jsxs)("div",{className:"ObDateNavigator-root",onKeyDown:k,tabIndex:0,"aria-label":"Date navigator",children:[(0,Zn.jsx)(ov,{direction:"left",onClick:()=>Y(new Date(h-El)),disabled:N}),(0,Zn.jsx)("div",{className:"ObDateNavigator-date",children:w}),(0,Zn.jsx)(ov,{direction:"right",onClick:()=>Y(new Date(h+El)),disabled:U}),!r&&(0,Zn.jsx)("button",{type:"button",className:"ObDateNavigator-today btn-reset",onClick:L,children:(0,ws.getLocalizedString)("Today")}),(0,Zn.jsx)("div",{"aria-live":"polite",ref:P,style:{position:"absolute",left:"-9999px"}})]})}var Pa=xe("react/jsx-runtime");function iv({children:e,className:t,...r}){return(0,Pa.jsx)("ul",{className:ve("ObLinkedList-root",t),...r,children:e})}function av({children:e,className:t,label:r,...i}){return(0,Pa.jsxs)("li",{className:ve("ObLinkedList-item",t),...i,children:[r&&(0,Pa.jsx)("div",{className:"ObLinkedList-leftColumn",children:r}),(0,Pa.jsx)("div",{className:"ObLinkedList-line",children:(0,Pa.jsx)("div",{className:"ObLinkedList-bullet"})}),(0,Pa.jsx)("div",{className:"ObLinkedList-rightColumn",children:e})]})}function sv({as:e,children:t,className:r,...i}){return(0,Pa.jsx)(e||"div",{className:ve("ObLinkedList-card",r),...i,children:t})}var lv=me(Ee(),1),ta=xe("react/jsx-runtime");function pv({as:e,className:t,children:r,...i}){return(0,ta.jsx)(e||"section",{className:ve("ObPageBanner-root",t),...i,children:(0,ta.jsx)("div",{className:"container px-0",children:(0,ta.jsx)("div",{className:"ObPageBanner-pageBannerInner",children:r})})})}var cv=lv.default.forwardRef(function(t,r){let{className:i,...a}=t;return(0,ta.jsx)("img",{ref:r,className:ve("ObPageBanner-bannerImage",i),alt:"",...a})});function uv({as:e,className:t,children:r,sticky:i,...a}){return(0,ta.jsx)(e||"nav",{className:ve("ObPageBanner-pageBanner","ObPageBanner-tabList",i&&"sticky",t),...a,children:(0,ta.jsx)("div",{className:"container px-0",children:(0,ta.jsx)("div",{className:"ObPageBanner-tabListInner",children:r})})})}function fv({active:e,as:t,className:r,children:i,...a}){return(0,ta.jsx)(t||"a",{className:ve("ObPageBanner-tab",e&&"active",r),...a,children:i})}function dv({as:e,className:t,children:r,...i}){return(0,ta.jsx)(e||"h1",{className:ve("ObPageBanner-bannerTitle",t),...i,children:r})}var Is=me(Ee(),1),yv=me(Iu(),1),hv=xe("react/jsx-runtime");function AS(){let[,e]=(0,Is.useState)(!1);return()=>e(t=>!t)}function gv({children:e,root:t,type:r="div"}){let i=AS(),a=(0,Is.useRef)(null),l=(0,Is.useRef)(null);return(0,Is.useEffect)(()=>{let p=a.current?.ownerDocument;if(p&&!l.current){let u=t&&p.querySelector(t)||p.body,m=p.createElement(r);return l.current=m,u.appendChild(m),i(),()=>{u.removeChild(m)}}},[t,r]),l.current?(0,yv.createPortal)(e,l.current):(0,hv.jsx)("div",{ref:a})}var vv=me(Ee(),1),Tv=xe("react/jsx-runtime"),bv=(0,vv.forwardRef)(function({className:t,...r},i){return(0,Tv.jsx)("progress",{className:ve("ObProgressBar-root",t),...r,ref:i})});var Ea=me(Ee(),1),Rs=xe("react/jsx-runtime");function xv(e){let{children:t,className:r,open:i=!1,onClose:a=()=>{},overlayProps:l={},pullRight:p=!1,shadow:u=!0,...m}=e,[h,v]=(0,Ea.useState)(!i),I=(0,Ea.useRef)(null),P=(0,Ea.useRef)(null);function w(){i&&typeof a=="function"&&a()}(0,Ea.useEffect)(()=>{let N=I.current;i&&v(!1);function U(){v(!i)}return N?.addEventListener("transitionend",U),()=>N?.removeEventListener("transitionend",U)},[i]),(0,Ea.useEffect)(()=>{function N(U){U.key==="Escape"&&(U.stopPropagation(),w())}return window.addEventListener("keyup",N),()=>window.removeEventListener("keyup",N)},[i,a]),(0,Ea.useEffect)(()=>{if(i){P.current=document.activeElement;let U=I.current?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');U&&U.focus()}else P.current&&(P.current.focus(),P.current=null);let N=P.current;return()=>{i&&N&&N.focus()}},[i]);let{className:R,...G}=l;return(0,Rs.jsxs)(Rs.Fragment,{children:[(0,Rs.jsx)("div",{className:ve("ObSidebar-root",i&&"Ob-open",p&&"Ob-right",u&&"ObSidebar-shadow",r),ref:I,tabIndex:-1,...m,children:(i||!h)&&t}),(0,Rs.jsx)("div",{role:"presentation",tabIndex:-1,className:ve("ObSidebar-overlay",i&&"Ob-open",R),onClick:w,...G})]})}var Ya=xe("react/jsx-runtime");function Pv({className:e="",fullPage:t=!1,...r}){return(0,Ya.jsx)("div",{className:ve(e,t?"ObSpinner-fullPage":"ObSpinner-wrapper"),...r,children:(0,Ya.jsxs)("div",{className:"ObSpinner-spinner",children:[(0,Ya.jsx)("div",{className:"ObSpinner-bullet"}),(0,Ya.jsx)("div",{className:"ObSpinner-bullet"}),(0,Ya.jsx)("div",{className:"ObSpinner-bullet"}),(0,Ya.jsx)("div",{className:"ObSpinner-bullet"})]})})}var Rv=me(wv(),1),On=me(Ee(),1),ra=xe("react/jsx-runtime"),bm=window.af?.article?.id??window.window?.location.pathname.substring(1).split("/")[0],Ru=Rv.default.createInstance({name:`AfSplitContainers.${window.af?.userSession.login??"anonymous"}`}),Su={};async function MS(e,t,r){if(r!=null){let i={layoutVersion:t,fixedSize:r};Su[e]=i,await Ru.setItem(e,i)}}async function NS(e,t){let r=Su[e]??await Ru.getItem(e);return r&&r.layoutVersion===t?r.fixedSize:null}Ru.keys().then(e=>Promise.allSettled(e.filter(t=>t.startsWith(bm)).map(t=>Ru.getItem(t).then(r=>{r&&!Su[t]&&(Su[t]=r)}))));var LS=(0,On.forwardRef)(function(t,r){return(0,ra.jsx)("div",{className:ve("ObSplitContainer-divider",t.className),tabIndex:0,ref:r,role:"separator","aria-orientation":t.direction,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.size,children:(0,ra.jsx)("span",{children:"\u2022\u2022\u2022"})})});function kS({className:e,direction:t,...r}){return(0,ra.jsx)("div",{className:ve(e,"ObSplitContainer-root",t),...r})}function Iv(e){let t={flex:e.fixed?`0 0 ${Math.floor(e.size)}px`:"1 1 100%",...e.style};return(0,ra.jsx)("div",{className:ve(e.className,"ObSplitContainer-panel"),style:t,children:e.children})}function Sv({className:e,children:t,direction:r="vertical",fixedPanel:i=1,panelClassName:a,defaultFixedSize:l=400,layoutVersion:p=1,min:u=0,max:m,id:h}){let[v,I]=(0,On.useState)(l),[P,w]=(0,On.useState)(!1),R=(0,On.useRef)(null);if(On.Children.count(t)!==2)throw Error("SplitContainer requires exactly 2 children");let G=(0,On.useRef)(null),[N,U]=(0,On.useState)(0);(0,On.useEffect)(()=>{if(!G.current)return;let L=new ResizeObserver(k=>{for(let j of k)j.contentRect&&U(r==="horizontal"?j.contentRect.width:j.contentRect.height)});return L.observe(G.current),()=>L.disconnect()},[r]),(0,On.useEffect)(()=>{if(h){let L=`${bm}.${h}`;NS(L,p).then(k=>{if(k)return I(k),Promise.resolve()})}},[h,p]);let Y=On.Children.toArray(t);return(0,On.useEffect)(()=>{let L=R.current;if(L){let D=function(q){let re=N-10,oe=Math.min(m??re,re);return q<u?q=u:q>oe&&(q=oe),q},Z=function(q){let re=r==="horizontal"?q.clientX-k.clientX:q.clientY-k.clientY;return re*=i===1?-1:1,D(k.size-re)},ne=function(q){I(re=>{let oe=D(typeof q=="function"?q(re):q);if(h){let ce=`${bm}.${h}`;MS(ce,p,oe)}return oe})},le=function(q){let re=Z(q);ne(re),w(!1),j.style.flex=`0 0 ${Math.floor(re)}px`,window.removeEventListener("pointermove",de)},de=function(q){q.preventDefault();let re=Z(q),oe=R.current;oe&&oe.setAttribute("aria-valuenow",String(re)),j.style.flex=`0 0 ${re}px`},ye=function(q){w(!0);let re=j.getBoundingClientRect(),oe=r==="horizontal"?re.width:re.height;k={clientX:q.clientX,clientY:q.clientY,size:oe},window.addEventListener("pointermove",de),window.addEventListener("pointerup",le,{once:!0})},E=function(q){let re=!0,oe=!1;if(!q.altKey&&!q.ctrlKey&&!q.metaKey&&(r==="horizontal"&&["ArrowLeft","ArrowRight"].includes(q.key)?(oe=!0,re=i===1&&q.key==="ArrowLeft"||i===2&&q.key==="ArrowRight"):r==="vertical"&&["ArrowUp","ArrowDown"].includes(q.key)&&(oe=!0,re=i===1&&q.key==="ArrowUp"||i===2&&q.key==="ArrowDown")),oe){q.preventDefault(),q.stopPropagation();let ce=q.shiftKey?25:5;ne(Me=>Me+(re?-ce:ce))}},k={clientX:0,clientY:0,size:0},j=i===1?L.previousElementSibling:L.nextElementSibling;return L.addEventListener("pointerdown",ye),L.addEventListener("keydown",E),()=>{L?.removeEventListener("pointerdown",ye),L?.removeEventListener("keydown",E)}}},[r,i,p,h,u,m,N]),(0,ra.jsxs)(kS,{direction:r,className:e,ref:G,children:[(0,ra.jsx)(Iv,{className:ve(P&&"dragging",a),fixed:i===1,size:v,children:Y[0]}),(0,ra.jsx)(LS,{ref:R,direction:r,isDragging:P,size:v,min:u,max:m??N}),(0,ra.jsx)(Iv,{className:ve(P&&"dragging",a),fixed:i===2,size:v,children:Y[1]})]})}var wa=me(Ee(),1);async function FS(e,t,r){let i=`https://translation.googleapis.com/language/translate/v2?key=${r}`,l={body:JSON.stringify({q:e,target:t}),method:"POST"},u=await(await fetch(i,l)).json(),{data:m}=u;if(m?.translations){let[h]=m.translations;return{from:h.detectedSourceLanguage,translation:h.translatedText}}return!1}function Ov(e,t,r){let[i,a]=(0,wa.useState)(""),[l,p]=(0,wa.useState)(null),[u,m]=(0,wa.useState)(null),[h,v]=(0,wa.useState)(!1),I=(0,wa.useRef)(e);(0,wa.useEffect)(()=>(I.current=e,()=>{a(""),p(null),m(null),v(!1)}),[r,t,e]);async function P(){v(!0);try{let w=await FS(e,t,r);if(w&&I.current===e){let{from:R,translation:G}=w;m(R),a(G),v(!1)}}catch(w){I.current===e&&(p(w.message),v(!1))}}return{error:l,from:u,isTranslating:h,translation:i,translate:P}}var Ou=me(Ee(),1),Il=xe("react/jsx-runtime"),Cv=(0,Ou.forwardRef)(function({options:t,value:r,defaultValue:i,onChange:a,className:l,name:p,id:u,style:m,orientation:h="horizontal"},v){let I=(0,Ou.useId)(),P=p||`toggle-${u??I}`,w=r!==void 0;return(0,Il.jsx)("fieldset",{className:ve("ObValueToggleGroup",h,l),role:"radiogroup",ref:v,style:m,children:t.map(R=>(0,Il.jsxs)("label",{className:ve("ObValueToggleOption",{disabled:R.disabled}),children:[(0,Il.jsx)("input",{type:"radio",name:P,value:R.value,checked:w?r===R.value:void 0,defaultChecked:w?void 0:i===R.value,onChange:()=>a?.(R.value),disabled:R.disabled}),(0,Il.jsx)("span",{className:"ObValueToggleLabel",children:R.label??R.value})]},R.value))})});var Dv=e=>e,BS=()=>{let e=Dv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Dv}}},GS=BS(),Rl=GS;function pn(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}function Za(e){if(typeof e!="string")throw new Error(pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ne=Za;function Qp(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}var Df=me(Ee(),1);var Of=me(Ee(),1);function Xe(e,t,r=void 0){let i={};for(let a in e){let l=e[a],p="",u=!0;for(let m=0;m<l.length;m+=1){let h=l[m];h&&(p+=(u===!0?"":" ")+t(h),u=!1,r&&r[h]&&(p+=" "+r[h]))}i[a]=p}return i}var Uz=me(Ee(),1);var Pm=me(Ee(),1),Em=me(Mv(),1);function si(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Nv(e){if(Pm.isValidElement(e)||(0,Em.isValidElementType)(e)||!si(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=Nv(e[r])}),t}function Yr(e,t,r={clone:!0}){let i=r.clone?{...e}:e;return si(e)&&si(t)&&Object.keys(t).forEach(a=>{Pm.isValidElement(t[a])||(0,Em.isValidElementType)(t[a])?i[a]=t[a]:si(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&si(e[a])?i[a]=Yr(e[a],t[a],r):r.clone?i[a]=si(t[a])?Nv(t[a]):t[a]:i[a]=t[a]}),i}function zS(e,t){return t?Yr(e,t,{clone:!1}):e}var Ia=zS;function Gu(e,t){if(!e.containerQueries)return t;let r=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,a)=>{let l=/min-width:\s*([0-9.]+)/;return+(i.match(l)?.[1]||0)-+(a.match(l)?.[1]||0)});return r.length?r.reduce((i,a)=>{let l=t[a];return delete i[a],i[a]=l,i},{...t}):t}function wm(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Im(e,t){let r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;let[,i,a]=r,l=Number.isNaN(+i)?i||0:+i;return e.containerQueries(a).up(l)}function Uu(e){let t=(l,p)=>l.replace("@media",p?`@container ${p}`:"@container");function r(l,p){l.up=(...u)=>t(e.breakpoints.up(...u),p),l.down=(...u)=>t(e.breakpoints.down(...u),p),l.between=(...u)=>t(e.breakpoints.between(...u),p),l.only=(...u)=>t(e.breakpoints.only(...u),p),l.not=(...u)=>{let m=t(e.breakpoints.not(...u),p);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}let i={},a=l=>(r(i,l),i);return r(a),{...e,containerQueries:a}}var qp={xs:0,sm:600,md:900,lg:1200,xl:1536},Lv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qp[e]}px)`},VS={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:qp[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function kn(e,t,r){let i=e.theme||{};if(Array.isArray(t)){let l=i.breakpoints||Lv;return t.reduce((p,u,m)=>(p[l.up(l.keys[m])]=r(t[m]),p),{})}if(typeof t=="object"){let l=i.breakpoints||Lv;return Object.keys(t).reduce((p,u)=>{if(wm(l.keys,u)){let m=Im(i.containerQueries?i:VS,u);m&&(p[m]=r(t[u],u))}else if(Object.keys(l.values||qp).includes(u)){let m=l.up(u);p[m]=r(t[u],u)}else{let m=u;p[m]=t[m]}return p},{})}return r(t)}function kv(e={}){return e.keys?.reduce((r,i)=>{let a=e.up(i);return r[a]={},r},{})||{}}function Rm(e,t){return e.reduce((r,i)=>{let a=r[i];return(!a||Object.keys(a).length===0)&&delete r[i],r},t)}function Sl(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){let i=`vars.${t}`.split(".").reduce((a,l)=>a&&a[l]?a[l]:null,e);if(i!=null)return i}return t.split(".").reduce((i,a)=>i&&i[a]!=null?i[a]:null,e)}function Jp(e,t,r,i=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||i:a=Sl(e,r)||i,t&&(a=t(a,i,e)),a}function WS(e){let{prop:t,cssProperty:r=e.prop,themeKey:i,transform:a}=e,l=p=>{if(p[t]==null)return null;let u=p[t],m=p.theme,h=Sl(m,i)||{};return kn(p,u,I=>{let P=Jp(h,a,I);return I===P&&typeof I=="string"&&(P=Jp(h,a,`${t}${I==="default"?"":Za(I)}`,I)),r===!1?P:{[r]:P}})};return l.propTypes={},l.filterProps=[t],l}var lo=WS;function ju(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var HS={m:"margin",p:"padding"},$S={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},XS=ju(e=>{if(e.length>2)if(Fv[e])e=Fv[e];else return[e];let[t,r]=e.split(""),i=HS[t],a=$S[r]||"";return Array.isArray(a)?a.map(l=>i+l):[i+a]}),Sm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Om=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Bv=[...Sm,...Om];function Ss(e,t,r,i){let a=Sl(e,t,!0)??r;return typeof a=="number"||typeof a=="string"?l=>typeof l=="string"?l:typeof a=="string"?a.startsWith("var(")&&l===0?0:a.startsWith("var(")&&l===1?a:`calc(${l} * ${a})`:a*l:Array.isArray(a)?l=>{if(typeof l=="string")return l;let p=Math.abs(l),u=a[p];return l>=0?u:typeof u=="number"?-u:typeof u=="string"&&u.startsWith("var(")?`calc(-1 * ${u})`:`-${u}`}:typeof a=="function"?a:()=>{}}function Kp(e){return Ss(e,"spacing",8,"spacing")}function Os(e,t){return typeof t=="string"||t==null?t:e(t)}function YS(e,t){return r=>e.reduce((i,a)=>(i[a]=Os(t,r),i),{})}function ZS(e,t,r,i){if(!t.includes(r))return null;let a=XS(r),l=YS(a,i),p=e[r];return kn(e,p,l)}function Cm(e,t){let r=Kp(e.theme);return Object.keys(e).map(i=>ZS(e,t,i,r)).reduce(Ia,{})}function Ro(e){return Cm(e,Sm)}Ro.propTypes={};Ro.filterProps=Sm;function So(e){return Cm(e,Om)}So.propTypes={};So.filterProps=Om;function Gv(e){return Cm(e,Bv)}Gv.propTypes={};Gv.filterProps=Bv;function QS(...e){let t=e.reduce((i,a)=>(a.filterProps.forEach(l=>{i[l]=a}),i),{}),r=i=>Object.keys(i).reduce((a,l)=>t[l]?Ia(a,t[l](i)):a,{});return r.propTypes={},r.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),r}var Ra=QS;function li(e){return typeof e!="number"?e:`${e}px solid`}function Ei(e,t){return lo({prop:e,themeKey:"borders",transform:t})}var qS=Ei("border",li),JS=Ei("borderTop",li),KS=Ei("borderRight",li),eO=Ei("borderBottom",li),tO=Ei("borderLeft",li),rO=Ei("borderColor"),oO=Ei("borderTopColor"),nO=Ei("borderRightColor"),iO=Ei("borderBottomColor"),aO=Ei("borderLeftColor"),sO=Ei("outline",li),lO=Ei("outlineColor"),ec=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=Ss(e.theme,"shape.borderRadius",4,"borderRadius"),r=i=>({borderRadius:Os(t,i)});return kn(e,e.borderRadius,r)}return null};ec.propTypes={};ec.filterProps=["borderRadius"];var Xk=Ra(qS,JS,KS,eO,tO,rO,oO,nO,iO,aO,ec,sO,lO);var tc=e=>{if(e.gap!==void 0&&e.gap!==null){let t=Ss(e.theme,"spacing",8,"gap"),r=i=>({gap:Os(t,i)});return kn(e,e.gap,r)}return null};tc.propTypes={};tc.filterProps=["gap"];var rc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=Ss(e.theme,"spacing",8,"columnGap"),r=i=>({columnGap:Os(t,i)});return kn(e,e.columnGap,r)}return null};rc.propTypes={};rc.filterProps=["columnGap"];var oc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=Ss(e.theme,"spacing",8,"rowGap"),r=i=>({rowGap:Os(t,i)});return kn(e,e.rowGap,r)}return null};oc.propTypes={};oc.filterProps=["rowGap"];var pO=lo({prop:"gridColumn"}),cO=lo({prop:"gridRow"}),uO=lo({prop:"gridAutoFlow"}),fO=lo({prop:"gridAutoColumns"}),dO=lo({prop:"gridAutoRows"}),mO=lo({prop:"gridTemplateColumns"}),yO=lo({prop:"gridTemplateRows"}),gO=lo({prop:"gridTemplateAreas"}),hO=lo({prop:"gridArea"}),Kk=Ra(tc,rc,oc,pO,cO,uO,fO,dO,mO,yO,gO,hO);function Cs(e,t){return t==="grey"?t:e}var vO=lo({prop:"color",themeKey:"palette",transform:Cs}),bO=lo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Cs}),TO=lo({prop:"backgroundColor",themeKey:"palette",transform:Cs}),oF=Ra(vO,bO,TO);function Qn(e){return e<=1&&e!==0?`${e*100}%`:e}var xO=lo({prop:"width",transform:Qn}),zu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{let i=e.theme?.breakpoints?.values?.[r]||qp[r];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Qn(r)}};return kn(e,e.maxWidth,t)}return null};zu.filterProps=["maxWidth"];var PO=lo({prop:"minWidth",transform:Qn}),EO=lo({prop:"height",transform:Qn}),wO=lo({prop:"maxHeight",transform:Qn}),IO=lo({prop:"minHeight",transform:Qn}),lF=lo({prop:"size",cssProperty:"width",transform:Qn}),pF=lo({prop:"size",cssProperty:"height",transform:Qn}),RO=lo({prop:"boxSizing"}),cF=Ra(xO,zu,PO,EO,wO,IO,RO);var SO={border:{themeKey:"borders",transform:li},borderTop:{themeKey:"borders",transform:li},borderRight:{themeKey:"borders",transform:li},borderBottom:{themeKey:"borders",transform:li},borderLeft:{themeKey:"borders",transform:li},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:li},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ec},color:{themeKey:"palette",transform:Cs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Cs},backgroundColor:{themeKey:"palette",transform:Cs},p:{style:So},pt:{style:So},pr:{style:So},pb:{style:So},pl:{style:So},px:{style:So},py:{style:So},padding:{style:So},paddingTop:{style:So},paddingRight:{style:So},paddingBottom:{style:So},paddingLeft:{style:So},paddingX:{style:So},paddingY:{style:So},paddingInline:{style:So},paddingInlineStart:{style:So},paddingInlineEnd:{style:So},paddingBlock:{style:So},paddingBlockStart:{style:So},paddingBlockEnd:{style:So},m:{style:Ro},mt:{style:Ro},mr:{style:Ro},mb:{style:Ro},ml:{style:Ro},mx:{style:Ro},my:{style:Ro},margin:{style:Ro},marginTop:{style:Ro},marginRight:{style:Ro},marginBottom:{style:Ro},marginLeft:{style:Ro},marginX:{style:Ro},marginY:{style:Ro},marginInline:{style:Ro},marginInlineStart:{style:Ro},marginInlineEnd:{style:Ro},marginBlock:{style:Ro},marginBlockStart:{style:Ro},marginBlockEnd:{style:Ro},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:tc},rowGap:{style:oc},columnGap:{style:rc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qn},maxWidth:{style:zu},minWidth:{transform:Qn},height:{transform:Qn},maxHeight:{transform:Qn},minHeight:{transform:Qn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ji=SO;function OO(...e){let t=e.reduce((i,a)=>i.concat(Object.keys(a)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function CO(e,t){return typeof e=="function"?e(t):e}function DO(){function e(r,i,a,l){let p={[r]:i,theme:a},u=l[r];if(!u)return{[r]:i};let{cssProperty:m=r,themeKey:h,transform:v,style:I}=u;if(i==null)return null;if(h==="typography"&&i==="inherit")return{[r]:i};let P=Sl(a,h)||{};return I?I(p):kn(p,i,R=>{let G=Jp(P,v,R);return R===G&&typeof R=="string"&&(G=Jp(P,v,`${r}${R==="default"?"":Za(R)}`,R)),m===!1?G:{[m]:G}})}function t(r){let{sx:i,theme:a={},nested:l}=r||{};if(!i)return null;let p=a.unstable_sxConfig??ji;function u(m){let h=m;if(typeof m=="function")h=m(a);else if(typeof m!="object")return m;if(!h)return null;let v=kv(a.breakpoints),I=Object.keys(v),P=v;return Object.keys(h).forEach(w=>{let R=CO(h[w],a);if(R!=null)if(typeof R=="object")if(p[w])P=Ia(P,e(w,R,a,p));else{let G=kn({theme:a},R,N=>({[w]:N}));OO(G,R)?P[w]=t({sx:R,theme:a,nested:!0}):P=Ia(P,G)}else P=Ia(P,e(w,R,a,p))}),!l&&a.modularCssLayers?{"@layer sx":Gu(a,Rm(I,P))}:Gu(a,Rm(I,P))}return Array.isArray(i)?i.map(u):u(i)}return t}var Uv=DO();Uv.filterProps=["sx"];var wi=Uv;var _O=e=>{let t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??ji;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Qa(e){let{sx:t,...r}=e,{systemProps:i,otherProps:a}=_O(r),l;return Array.isArray(t)?l=[i,...t]:typeof t=="function"?l=(...p)=>{let u=t(...p);return si(u)?{...i,...u}:i}:l={...i,...t},{...a,sx:l}}var L1=me(Ee(),1);function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Vu.apply(null,arguments)}var Ri=me(Ee()),cf=me(Ee());var AO=!1;function MO(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function NO(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var jv=(function(){function e(r){var i=this;this._insertTag=function(a){var l;i.tags.length===0?i.insertionPoint?l=i.insertionPoint.nextSibling:i.prepend?l=i.container.firstChild:l=i.before:l=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(a,l),i.tags.push(a)},this.isSpeedy=r.speedy===void 0?!AO:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(NO(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var l=MO(a);try{l.insertRule(i,l.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var a;return(a=i.parentNode)==null?void 0:a.removeChild(i)}),this.tags=[],this.ctr=0},e})();var Pn="-ms-",nc="-moz-",Ir="-webkit-",Wu="comm",Ol="rule",Cl="decl";var zv="@import";var Hu="@keyframes";var Vv="@layer";var Wv=Math.abs,Ds=String.fromCharCode,Hv=Object.assign;function $v(e,t){return Lo(e,0)^45?(((t<<2^Lo(e,0))<<2^Lo(e,1))<<2^Lo(e,2))<<2^Lo(e,3):0}function $u(e){return e.trim()}function Dm(e,t){return(e=t.exec(e))?e[0]:e}function xr(e,t,r){return e.replace(t,r)}function ic(e,t){return e.indexOf(t)}function Lo(e,t){return e.charCodeAt(t)|0}function qa(e,t,r){return e.slice(t,r)}function Fn(e){return e.length}function Dl(e){return e.length}function _l(e,t){return t.push(e),e}function _m(e,t){return e.map(t).join("")}var Xu=1,Al=1,Xv=0,Bn=0,Wo=0,Nl="";function ac(e,t,r,i,a,l,p){return{value:e,root:t,parent:r,type:i,props:a,children:l,line:Xu,column:Al,length:p,return:""}}function Ll(e,t){return Hv(ac("",null,null,"",null,null,0),e,{length:-e.length},t)}function Yv(){return Wo}function Zv(){return Wo=Bn>0?Lo(Nl,--Bn):0,Al--,Wo===10&&(Al=1,Xu--),Wo}function Gn(){return Wo=Bn<Xv?Lo(Nl,Bn++):0,Al++,Wo===10&&(Al=1,Xu++),Wo}function Ii(){return Lo(Nl,Bn)}function sc(){return Bn}function kl(e,t){return qa(Nl,e,t)}function Ml(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Yu(e){return Xu=Al=1,Xv=Fn(Nl=e),Bn=0,[]}function Zu(e){return Nl="",e}function Fl(e){return $u(kl(Bn-1,Am(e===91?e+2:e===40?e+1:e)))}function Qv(e){for(;(Wo=Ii())&&Wo<33;)Gn();return Ml(e)>2||Ml(Wo)>3?"":" "}function qv(e,t){for(;--t&&Gn()&&!(Wo<48||Wo>102||Wo>57&&Wo<65||Wo>70&&Wo<97););return kl(e,sc()+(t<6&&Ii()==32&&Gn()==32))}function Am(e){for(;Gn();)switch(Wo){case e:return Bn;case 34:case 39:e!==34&&e!==39&&Am(Wo);break;case 40:e===41&&Am(e);break;case 92:Gn();break}return Bn}function Jv(e,t){for(;Gn()&&e+Wo!==57;)if(e+Wo===84&&Ii()===47)break;return"/*"+kl(t,Bn-1)+"*"+Ds(e===47?e:Gn())}function Kv(e){for(;!Ml(Ii());)Gn();return kl(e,Bn)}function rb(e){return Zu(Qu("",null,null,null,[""],e=Yu(e),0,[0],e))}function Qu(e,t,r,i,a,l,p,u,m){for(var h=0,v=0,I=p,P=0,w=0,R=0,G=1,N=1,U=1,Y=0,L="",k=a,j=l,D=i,Z=L;N;)switch(R=Y,Y=Gn()){case 40:if(R!=108&&Lo(Z,I-1)==58){ic(Z+=xr(Fl(Y),"&","&\f"),"&\f")!=-1&&(U=-1);break}case 34:case 39:case 91:Z+=Fl(Y);break;case 9:case 10:case 13:case 32:Z+=Qv(R);break;case 92:Z+=qv(sc()-1,7);continue;case 47:switch(Ii()){case 42:case 47:_l(LO(Jv(Gn(),sc()),t,r),m);break;default:Z+="/"}break;case 123*G:u[h++]=Fn(Z)*U;case 125*G:case 59:case 0:switch(Y){case 0:case 125:N=0;case 59+v:U==-1&&(Z=xr(Z,/\f/g,"")),w>0&&Fn(Z)-I&&_l(w>32?tb(Z+";",i,r,I-1):tb(xr(Z," ","")+";",i,r,I-2),m);break;case 59:Z+=";";default:if(_l(D=eb(Z,t,r,h,v,a,u,L,k=[],j=[],I),l),Y===123)if(v===0)Qu(Z,t,D,D,k,l,I,u,j);else switch(P===99&&Lo(Z,3)===110?100:P){case 100:case 108:case 109:case 115:Qu(e,D,D,i&&_l(eb(e,D,D,0,0,a,u,L,a,k=[],I),j),a,j,I,u,i?k:j);break;default:Qu(Z,D,D,D,[""],j,0,u,j)}}h=v=w=0,G=U=1,L=Z="",I=p;break;case 58:I=1+Fn(Z),w=R;default:if(G<1){if(Y==123)--G;else if(Y==125&&G++==0&&Zv()==125)continue}switch(Z+=Ds(Y),Y*G){case 38:U=v>0?1:(Z+="\f",-1);break;case 44:u[h++]=(Fn(Z)-1)*U,U=1;break;case 64:Ii()===45&&(Z+=Fl(Gn())),P=Ii(),v=I=Fn(L=Z+=Kv(sc())),Y++;break;case 45:R===45&&Fn(Z)==2&&(G=0)}}return l}function eb(e,t,r,i,a,l,p,u,m,h,v){for(var I=a-1,P=a===0?l:[""],w=Dl(P),R=0,G=0,N=0;R<i;++R)for(var U=0,Y=qa(e,I+1,I=Wv(G=p[R])),L=e;U<w;++U)(L=$u(G>0?P[U]+" "+Y:xr(Y,/&\f/g,P[U])))&&(m[N++]=L);return ac(e,t,r,a===0?Ol:u,m,h,v)}function LO(e,t,r){return ac(e,t,r,Wu,Ds(Yv()),qa(e,2,-2),0)}function tb(e,t,r,i){return ac(e,t,r,Cl,qa(e,0,i),qa(e,i+1,-1),i)}function _s(e,t){for(var r="",i=Dl(e),a=0;a<i;a++)r+=t(e[a],a,e,t)||"";return r}function ob(e,t,r,i){switch(e.type){case Vv:if(e.children.length)break;case zv:case Cl:return e.return=e.return||e.value;case Wu:return"";case Hu:return e.return=e.value+"{"+_s(e.children,i)+"}";case Ol:e.value=e.props.join(",")}return Fn(r=_s(e.children,i))?e.return=e.value+"{"+r+"}":""}function nb(e){var t=Dl(e);return function(r,i,a,l){for(var p="",u=0;u<t;u++)p+=e[u](r,i,a,l)||"";return p}}function ib(e){return function(t){t.root||(t=t.return)&&e(t)}}function qu(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var kO=function(t,r,i){for(var a=0,l=0;a=l,l=Ii(),a===38&&l===12&&(r[i]=1),!Ml(l);)Gn();return kl(t,Bn)},FO=function(t,r){var i=-1,a=44;do switch(Ml(a)){case 0:a===38&&Ii()===12&&(r[i]=1),t[i]+=kO(Bn-1,r,i);break;case 2:t[i]+=Fl(a);break;case 4:if(a===44){t[++i]=Ii()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Ds(a)}while(a=Gn());return t},BO=function(t,r){return Zu(FO(Yu(t),r))},ab=new WeakMap,GO=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,a=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!ab.get(i))&&!a){ab.set(t,!0);for(var l=[],p=BO(r,l),u=i.props,m=0,h=0;m<p.length;m++)for(var v=0;v<u.length;v++,h++)t.props[h]=l[m]?p[m].replace(/&\f/g,u[v]):u[v]+" "+p[m]}}},UO=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function sb(e,t){switch($v(e,t)){case 5103:return Ir+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ir+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ir+e+nc+e+Pn+e+e;case 6828:case 4268:return Ir+e+Pn+e+e;case 6165:return Ir+e+Pn+"flex-"+e+e;case 5187:return Ir+e+xr(e,/(\w+).+(:[^]+)/,Ir+"box-$1$2"+Pn+"flex-$1$2")+e;case 5443:return Ir+e+Pn+"flex-item-"+xr(e,/flex-|-self/,"")+e;case 4675:return Ir+e+Pn+"flex-line-pack"+xr(e,/align-content|flex-|-self/,"")+e;case 5548:return Ir+e+Pn+xr(e,"shrink","negative")+e;case 5292:return Ir+e+Pn+xr(e,"basis","preferred-size")+e;case 6060:return Ir+"box-"+xr(e,"-grow","")+Ir+e+Pn+xr(e,"grow","positive")+e;case 4554:return Ir+xr(e,/([^-])(transform)/g,"$1"+Ir+"$2")+e;case 6187:return xr(xr(xr(e,/(zoom-|grab)/,Ir+"$1"),/(image-set)/,Ir+"$1"),e,"")+e;case 5495:case 3959:return xr(e,/(image-set\([^]*)/,Ir+"$1$`$1");case 4968:return xr(xr(e,/(.+:)(flex-)?(.*)/,Ir+"box-pack:$3"+Pn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ir+e+e;case 4095:case 3583:case 4068:case 2532:return xr(e,/(.+)-inline(.+)/,Ir+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Fn(e)-1-t>6)switch(Lo(e,t+1)){case 109:if(Lo(e,t+4)!==45)break;case 102:return xr(e,/(.+:)(.+)-([^]+)/,"$1"+Ir+"$2-$3$1"+nc+(Lo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ic(e,"stretch")?sb(xr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lo(e,t+1)!==115)break;case 6444:switch(Lo(e,Fn(e)-3-(~ic(e,"!important")&&10))){case 107:return xr(e,":",":"+Ir)+e;case 101:return xr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ir+(Lo(e,14)===45?"inline-":"")+"box$3$1"+Ir+"$2$3$1"+Pn+"$2box$3")+e}break;case 5936:switch(Lo(e,t+11)){case 114:return Ir+e+Pn+xr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ir+e+Pn+xr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ir+e+Pn+xr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ir+e+Pn+e+e}return e}var jO=function(t,r,i,a){if(t.length>-1&&!t.return)switch(t.type){case Cl:t.return=sb(t.value,t.length);break;case Hu:return _s([Ll(t,{value:xr(t.value,"@","@"+Ir)})],a);case Ol:if(t.length)return _m(t.props,function(l){switch(Dm(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _s([Ll(t,{props:[xr(l,/:(read-\w+)/,":"+nc+"$1")]})],a);case"::placeholder":return _s([Ll(t,{props:[xr(l,/:(plac\w+)/,":"+Ir+"input-$1")]}),Ll(t,{props:[xr(l,/:(plac\w+)/,":"+nc+"$1")]}),Ll(t,{props:[xr(l,/:(plac\w+)/,Pn+"input-$1")]})],a)}return""})}},zO=[jO],lb=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(G){var N=G.getAttribute("data-emotion");N.indexOf(" ")!==-1&&(document.head.appendChild(G),G.setAttribute("data-s",""))})}var a=t.stylisPlugins||zO,l={},p,u=[];p=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(G){for(var N=G.getAttribute("data-emotion").split(" "),U=1;U<N.length;U++)l[N[U]]=!0;u.push(G)});var m,h=[GO,UO];{var v,I=[ob,ib(function(G){v.insert(G)})],P=nb(h.concat(a,I)),w=function(N){return _s(rb(N),P)};m=function(N,U,Y,L){v=Y,w(N?N+"{"+U.styles+"}":U.styles),L&&(R.inserted[U.name]=!0)}}var R={key:r,sheet:new jv({key:r,container:p,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:m};return R.sheet.hydrate(u),R};var tC=!0;function lc(e,t,r){var i="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(i+=a+" ")}),i}var Bl=function(t,r,i){var a=t.key+"-"+r.name;(i===!1||tC===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},Gl=function(t,r,i){Bl(t,r,i);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var l=r;do t.insert(r===l?"."+a:"",l,t.sheet,!0),l=l.next;while(l!==void 0)}};function Tb(e){for(var t=0,r,i=0,a=e.length;a>=4;++i,a-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var xb={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};var rC=!1,oC=/[A-Z]|^ms/g,nC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ib=function(t){return t.charCodeAt(1)===45},Pb=function(t){return t!=null&&typeof t!="boolean"},Bm=qu(function(e){return Ib(e)?e:e.replace(oC,"-$&").toLowerCase()}),Eb=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(nC,function(i,a,l){return oa={name:a,styles:l,next:oa},a})}return xb[t]!==1&&!Ib(t)&&typeof r=="number"&&r!==0?r+"px":r},iC="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pc(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return oa={name:a.name,styles:a.styles,next:oa},a.name;var l=r;if(l.styles!==void 0){var p=l.next;if(p!==void 0)for(;p!==void 0;)oa={name:p.name,styles:p.styles,next:oa},p=p.next;var u=l.styles+";";return u}return aC(e,t,r)}case"function":{if(e!==void 0){var m=oa,h=r(e);return oa=m,pc(e,t,h)}break}}var v=r;if(t==null)return v;var I=t[v];return I!==void 0?I:v}function aC(e,t,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=pc(e,t,r[a])+";";else for(var l in r){var p=r[l];if(typeof p!="object"){var u=p;t!=null&&t[u]!==void 0?i+=l+"{"+t[u]+"}":Pb(u)&&(i+=Bm(l)+":"+Eb(l,u)+";")}else{if(l==="NO_COMPONENT_SELECTOR"&&rC)throw new Error(iC);if(Array.isArray(p)&&typeof p[0]=="string"&&(t==null||t[p[0]]===void 0))for(var m=0;m<p.length;m++)Pb(p[m])&&(i+=Bm(l)+":"+Eb(l,p[m])+";");else{var h=pc(e,t,p);switch(l){case"animation":case"animationName":{i+=Bm(l)+":"+h+";";break}default:i+=l+"{"+h+"}"}}}}return i}var wb=/label:\s*([^\s;{]+)\s*(;|$)/g,oa;function Sa(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,a="";oa=void 0;var l=e[0];if(l==null||l.raw===void 0)i=!1,a+=pc(r,t,l);else{var p=l;a+=p[0]}for(var u=1;u<e.length;u++)if(a+=pc(r,t,e[u]),i){var m=l;a+=m[u]}wb.lastIndex=0;for(var h="",v;(v=wb.exec(a))!==null;)h+="-"+v[1];var I=Tb(a)+h;return{name:I,styles:a,next:oa}}var cc=me(Ee()),sC=function(t){return t()},Rb=cc.useInsertionEffect?cc.useInsertionEffect:!1,uc=Rb||sC,Gm=Rb||cc.useLayoutEffect;var Sb=!1,Ob=Ri.createContext(typeof HTMLElement<"u"?lb({key:"css"}):null),lC=Ob.Provider;var Ul=function(t){return(0,cf.forwardRef)(function(r,i){var a=(0,cf.useContext)(Ob);return t(r,a,i)})},Oa=Ri.createContext({});var uf={}.hasOwnProperty,Um="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Cb=function(t,r){var i={};for(var a in r)uf.call(r,a)&&(i[a]=r[a]);return i[Um]=t,i},pC=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return Bl(r,i,a),uc(function(){return Gl(r,i,a)}),null},cC=Ul(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var a=e[Um],l=[i],p="";typeof e.className=="string"?p=lc(t.registered,l,e.className):e.className!=null&&(p=e.className+" ");var u=Sa(l,void 0,Ri.useContext(Oa));p+=t.key+"-"+u.name;var m={};for(var h in e)uf.call(e,h)&&h!=="css"&&h!==Um&&!Sb&&(m[h]=e[h]);return m.className=p,r&&(m.ref=r),Ri.createElement(Ri.Fragment,null,Ri.createElement(pC,{cache:t,serialized:u,isStringTag:typeof a=="string"}),Ri.createElement(a,m))}),Db=cC;var Ja=me(Ee());var AB=me(bb()),_b=function(t,r){var i=arguments;if(r==null||!uf.call(r,"css"))return Ja.createElement.apply(void 0,i);var a=i.length,l=new Array(a);l[0]=Db,l[1]=Cb(t,r);for(var p=2;p<a;p++)l[p]=i[p];return Ja.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(_b||(_b={}));var Ab=Ul(function(e,t){var r=e.styles,i=Sa([r],void 0,Ja.useContext(Oa)),a=Ja.useRef();return Gm(function(){var l=t.key+"-global",p=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,m=document.querySelector('style[data-emotion="'+l+" "+i.name+'"]');return t.sheet.tags.length&&(p.before=t.sheet.tags[0]),m!==null&&(u=!0,m.setAttribute("data-emotion",l),p.hydrate([m])),a.current=[p,u],function(){p.flush()}},[t]),Gm(function(){var l=a.current,p=l[0],u=l[1];if(u){l[1]=!1;return}if(i.next!==void 0&&Gl(t,i.next,!0),p.tags.length){var m=p.tags[p.tags.length-1].nextElementSibling;p.before=m,p.flush()}t.insert("",i,p,!1)},[t,i.name]),null});function As(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Sa(t)}function na(){var e=As.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Ka=me(Ee());var uC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Mb=qu(function(e){return uC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var fC=!1,dC=Mb,mC=function(t){return t!=="theme"},Nb=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?dC:mC},Lb=function(t,r,i){var a;if(r){var l=r.shouldForwardProp;a=t.__emotion_forwardProp&&l?function(p){return t.__emotion_forwardProp(p)&&l(p)}:l}return typeof a!="function"&&i&&(a=t.__emotion_forwardProp),a},yC=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return Bl(r,i,a),uc(function(){return Gl(r,i,a)}),null},kb=function e(t,r){var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,l,p;r!==void 0&&(l=r.label,p=r.target);var u=Lb(t,r,i),m=u||Nb(a),h=!m("as");return function(){var v=arguments,I=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&I.push("label:"+l+";"),v[0]==null||v[0].raw===void 0)I.push.apply(I,v);else{var P=v[0];I.push(P[0]);for(var w=v.length,R=1;R<w;R++)I.push(v[R],P[R])}var G=Ul(function(N,U,Y){var L=h&&N.as||a,k="",j=[],D=N;if(N.theme==null){D={};for(var Z in N)D[Z]=N[Z];D.theme=Ka.useContext(Oa)}typeof N.className=="string"?k=lc(U.registered,j,N.className):N.className!=null&&(k=N.className+" ");var ne=Sa(I.concat(j),U.registered,D);k+=U.key+"-"+ne.name,p!==void 0&&(k+=" "+p);var le=h&&u===void 0?Nb(L):m,de={};for(var ye in N)h&&ye==="as"||le(ye)&&(de[ye]=N[ye]);return de.className=k,Y&&(de.ref=Y),Ka.createElement(Ka.Fragment,null,Ka.createElement(yC,{cache:U,serialized:ne,isStringTag:typeof L=="string"}),Ka.createElement(L,de))});return G.displayName=l!==void 0?l:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",G.defaultProps=t.defaultProps,G.__emotion_real=G,G.__emotion_base=a,G.__emotion_styles=I,G.__emotion_forwardProp=u,Object.defineProperty(G,"toString",{value:function(){return p===void 0&&fC?"NO_COMPONENT_SELECTOR":"."+p}}),G.withComponent=function(N,U){var Y=e(N,Vu({},r,U,{shouldForwardProp:Lb(G,U,!0)}));return Y.apply(void 0,I)},G}};var ZB=me(Ee());var gC=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ms=kb.bind(null);gC.forEach(function(e){Ms[e]=Ms(e)});var JB=me(Ee(),1);var Fb=xe("react/jsx-runtime");function hC(e){return e==null||Object.keys(e).length===0}function fc(e){let{styles:t,defaultTheme:r={}}=e;return(0,Fb.jsx)(Ab,{styles:typeof t=="function"?a=>t(hC(a)?r:a):t})}function dc(e,t){return Ms(e,t)}function Gb(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var Bb=[];function zi(e){return Bb[0]=e,Sa(Bb)}var N5=me(Ee(),1);var vC=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,i)=>r.val-i.val),t.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function jm(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...a}=e,l=vC(t),p=Object.keys(l);function u(P){return`@media (min-width:${typeof t[P]=="number"?t[P]:P}${r})`}function m(P){return`@media (max-width:${(typeof t[P]=="number"?t[P]:P)-i/100}${r})`}function h(P,w){let R=p.indexOf(w);return`@media (min-width:${typeof t[P]=="number"?t[P]:P}${r}) and (max-width:${(R!==-1&&typeof t[p[R]]=="number"?t[p[R]]:w)-i/100}${r})`}function v(P){return p.indexOf(P)+1<p.length?h(P,p[p.indexOf(P)+1]):u(P)}function I(P){let w=p.indexOf(P);return w===0?u(p[1]):w===p.length-1?m(p[w]):h(P,p[p.indexOf(P)+1]).replace("@media","@media not all and")}return{keys:p,values:l,up:u,down:m,between:h,only:v,not:I,unit:r,...a}}var bC={borderRadius:4},Ub=bC;function jl(e=8,t=Kp({spacing:e})){if(e.mui)return e;let r=(...i)=>(i.length===0?[1]:i).map(l=>{let p=t(l);return typeof p=="number"?`${p}px`:p}).join(" ");return r.mui=!0,r}function zm(e,t){let r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function TC(e={},...t){let{breakpoints:r={},palette:i={},spacing:a,shape:l={},...p}=e,u=jm(r),m=jl(a),h=Yr({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:m,shape:{...Ub,...l}},p);return h=Uu(h),h.applyStyles=zm,h=t.reduce((v,I)=>Yr(v,I),h),h.unstable_sxConfig={...ji,...p?.unstable_sxConfig},h.unstable_sx=function(I){return wi({sx:I,theme:this})},h}var Ca=TC;var jb=me(Ee(),1);function xC(e){return Object.keys(e).length===0}function PC(e=null){let t=jb.useContext(Oa);return!t||xC(t)?e:t}var mc=PC;var EC=Ca();function wC(e=EC){return mc(e)}var Si=wC;var zb=xe("react/jsx-runtime");function Vm(e){let t=zi(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function IC({styles:e,themeId:t,defaultTheme:r={}}){let i=Si(r),a=t&&i[t]||i,l=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(l)?l=l.map(p=>Vm(typeof p=="function"?p(a):p)):l=Vm(l)),(0,zb.jsx)(fc,{styles:l})}var ff=IC;var Vb=me(Ee(),1);var Wb=xe("react/jsx-runtime");function yc(e={}){let{themeId:t,defaultTheme:r,defaultClassName:i="MuiBox-root",generateClassName:a}=e,l=dc("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(wi);return Vb.forwardRef(function(m,h){let v=Si(r),{className:I,component:P="div",...w}=Qa(m);return(0,Wb.jsx)(l,{as:P,ref:h,className:ve(I,a?a(i):i),theme:t&&v[t]||v,...w})})}var RC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ye(e,t,r="Mui"){let i=RC[t];return i?`${r}-${i}`:`${Rl.generate(e)}-${t}`}function $e(e,t,r="Mui"){let i={};return t.forEach(a=>{i[a]=Ye(e,a,r)}),i}function gc(e){let{variants:t,...r}=e,i={variants:t,style:zi(r),isProcessed:!0};return i.style===r||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=zi(a.style))}),i}var SC=Ca();function Wm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ns(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function OC(e){return e?(t,r)=>r[e]:null}function CC(e,t,r){e.theme=_C(e.theme)?r:e.theme[t]||e.theme}function df(e,t,r){let i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(a=>df(e,a,r));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=r?Ns(i.style,r):i.style;else{let{variants:l,...p}=i;a=r?Ns(zi(p),r):p}return Hb(e,i.variants,[a],r)}return i?.isProcessed?r?Ns(zi(i.style),r):i.style:r?Ns(zi(i),r):i}function Hb(e,t,r=[],i=void 0){let a;e:for(let l=0;l<t.length;l+=1){let p=t[l];if(typeof p.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!p.props(a))continue}else for(let u in p.props)if(e[u]!==p.props[u]&&e.ownerState?.[u]!==p.props[u])continue e;typeof p.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},r.push(i?Ns(zi(p.style(a)),i):p.style(a))):r.push(i?Ns(zi(p.style),i):p.style)}return r}function zl(e={}){let{themeId:t,defaultTheme:r=SC,rootShouldForwardProp:i=Wm,slotShouldForwardProp:a=Wm}=e;function l(u){CC(u,t,r)}return(u,m={})=>{Gb(u,D=>D.filter(Z=>Z!==wi));let{name:h,slot:v,skipVariantsResolver:I,skipSx:P,overridesResolver:w=OC(MC(v)),...R}=m,G=h&&h.startsWith("Mui")||v?"components":"custom",N=I!==void 0?I:v&&v!=="Root"&&v!=="root"||!1,U=P||!1,Y=Wm;v==="Root"||v==="root"?Y=i:v?Y=a:AC(u)&&(Y=void 0);let L=dc(u,{shouldForwardProp:Y,label:DC(h,v),...R}),k=D=>{if(D.__emotion_real===D)return D;if(typeof D=="function")return function(ne){return df(ne,D,ne.theme.modularCssLayers?G:void 0)};if(si(D)){let Z=gc(D);return function(le){return Z.variants?df(le,Z,le.theme.modularCssLayers?G:void 0):le.theme.modularCssLayers?Ns(Z.style,G):Z.style}}return D},j=(...D)=>{let Z=[],ne=D.map(k),le=[];if(Z.push(l),h&&w&&le.push(function(q){let oe=q.theme.components?.[h]?.styleOverrides;if(!oe)return null;let ce={};for(let Me in oe)ce[Me]=df(q,oe[Me],q.theme.modularCssLayers?"theme":void 0);return w(q,ce)}),h&&!N&&le.push(function(q){let oe=q.theme?.components?.[h]?.variants;return oe?Hb(q,oe,[],q.theme.modularCssLayers?"theme":void 0):null}),U||le.push(wi),Array.isArray(ne[0])){let E=ne.shift(),q=new Array(Z.length).fill(""),re=new Array(le.length).fill(""),oe;oe=[...q,...E,...re],oe.raw=[...q,...E.raw,...re],Z.unshift(oe)}let de=[...Z,...ne,...le],ye=L(...de);return u.muiName&&(ye.muiName=u.muiName),ye};return L.withConfig&&(j.withConfig=L.withConfig),j}}function DC(e,t){return void 0}function _C(e){for(let t in e)return!1;return!0}function AC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function MC(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var NC=zl(),Hm=NC;function ia(e,t,r=!1){let i={...t};for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)){let l=a;if(l==="components"||l==="slots")i[l]={...e[l],...i[l]};else if(l==="componentsProps"||l==="slotProps"){let p=e[l],u=t[l];if(!u)i[l]=p||{};else if(!p)i[l]=u;else{i[l]={...u};for(let m in p)if(Object.prototype.hasOwnProperty.call(p,m)){let h=m;i[l][h]=ia(p[h],u[h],r)}}}else l==="className"&&r&&t.className?i.className=ve(e?.className,t?.className):l==="style"&&r&&t.style?i.style={...e?.style,...t?.style}:i[l]===void 0&&(i[l]=e[l])}return i}function Vl(e){let{theme:t,name:r,props:i}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?i:ia(t.components[r].defaultProps,i)}function mf({props:e,name:t,defaultTheme:r,themeId:i}){let a=Si(r);return i&&(a=a[i]||a),Vl({theme:a,name:t,props:e})}var Da=me(Ee(),1);var yf=me(Ee(),1),LC=typeof window<"u"?yf.useLayoutEffect:yf.useEffect,Cn=LC;function kC(e,t,r,i,a){let[l,p]=Da.useState(()=>a&&r?r(e).matches:i?i(e).matches:t);return Cn(()=>{if(!r)return;let u=r(e),m=()=>{p(u.matches)};return m(),u.addEventListener("change",m),()=>{u.removeEventListener("change",m)}},[e,r]),l}var FC={...Da},$b=FC.useSyncExternalStore;function BC(e,t,r,i,a){let l=Da.useCallback(()=>t,[t]),p=Da.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(i!==null){let{matches:v}=i(e);return()=>v}return l},[l,e,i,a,r]),[u,m]=Da.useMemo(()=>{if(r===null)return[l,()=>()=>{}];let v=r(e);return[()=>v.matches,I=>(v.addEventListener("change",I),()=>{v.removeEventListener("change",I)})]},[l,r,e]);return $b(m,u,p)}function $m(e={}){let{themeId:t}=e;return function(i,a={}){let l=mc();l&&t&&(l=l[t]||l);let p=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:u=!1,matchMedia:m=p?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:v=!1}=Vl({name:"MuiUseMediaQuery",props:a,theme:l}),I=typeof i=="function"?i(l):i;return I=I.replace(/^@media( ?)/m,""),I.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
40
|
-
`)),($b!==void 0?BC:kC)(I,u,m,h,v)}}var kG=$m();function GC(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Xm=GC;function Zm(e,t=0,r=1){return Xm(e,t,r)}function UC(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(i=>i+i)),r?`rgb${r.length===4?"a":""}(${r.map((i,a)=>a<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function es(e){if(e.type)return e;if(e.charAt(0)==="#")return es(UC(e));let t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(pn(9,e));let i=e.substring(t+1,e.length-1),a;if(r==="color"){if(i=i.split(" "),a=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(pn(10,a))}else i=i.split(",");return i=i.map(l=>parseFloat(l)),{type:r,values:i,colorSpace:a}}var jC=e=>{let t=es(e);return t.values.slice(0,3).map((r,i)=>t.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},Wl=(e,t)=>{try{return jC(e)}catch{return e}};function gf(e){let{type:t,colorSpace:r}=e,{values:i}=e;return t.includes("rgb")?i=i.map((a,l)=>l<3?parseInt(a,10):a):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function Qm(e){e=es(e);let{values:t}=e,r=t[0],i=t[1]/100,a=t[2]/100,l=i*Math.min(a,1-a),p=(h,v=(h+r/30)%12)=>a-l*Math.max(Math.min(v-3,9-v,1),-1),u="rgb",m=[Math.round(p(0)*255),Math.round(p(8)*255),Math.round(p(4)*255)];return e.type==="hsla"&&(u+="a",m.push(t[3])),gf({type:u,values:m})}function Ym(e){e=es(e);let t=e.type==="hsl"||e.type==="hsla"?es(Qm(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Xb(e,t){let r=Ym(e),i=Ym(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function Hl(e,t){return e=es(e),t=Zm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,gf(e)}function ts(e,t,r){try{return Hl(e,t)}catch{return e}}function $l(e,t){if(e=es(e),t=Zm(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return gf(e)}function kr(e,t,r){try{return $l(e,t)}catch{return e}}function Xl(e,t){if(e=es(e),t=Zm(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return gf(e)}function Fr(e,t,r){try{return Xl(e,t)}catch{return e}}function zC(e,t=.15){return Ym(e)>.5?$l(e,t):Xl(e,t)}function hc(e,t,r){try{return zC(e,t)}catch{return e}}var hf=me(Ee(),1);var VC=xe("react/jsx-runtime"),WC=hf.createContext();var rs=()=>hf.useContext(WC)??!1;var vf=me(Ee(),1);var HC=xe("react/jsx-runtime"),$C=vf.createContext(void 0);function XC(e){let{theme:t,name:r,props:i}=e;if(!t||!t.components||!t.components[r])return i;let a=t.components[r];return a.defaultProps?ia(a.defaultProps,i,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?ia(a,i,t.components.mergeClassNameAndStyle):i}function qm({props:e,name:t}){let r=vf.useContext($C);return XC({props:e,name:t,theme:{components:r}})}var vc=me(Ee(),1),Yb=0;function ZC(e){let[t,r]=vc.useState(e),i=e||t;return vc.useEffect(()=>{t==null&&(Yb+=1,r(`mui-${Yb}`))},[t]),i}var QC={...vc},Zb=QC.useId;function Oi(e){if(Zb!==void 0){let t=Zb();return e??t}return ZC(e)}var Qb={theme:void 0};function bf(e){let t,r;return function(a){let l=t;return(l===void 0||a.theme!==r)&&(Qb.theme=a.theme,l=gc(e(Qb)),t=l,r=a.theme),l}}function Tf(e=""){function t(...i){if(!i.length)return"";let a=i[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...i.slice(1))})`:`, ${a}`}return(i,...a)=>`var(--${e?`${e}-`:""}${i}${t(...a)})`}var qb=(e,t,r,i=[])=>{let a=e;t.forEach((l,p)=>{p===t.length-1?Array.isArray(a)?a[Number(l)]=r:a&&typeof a=="object"&&(a[l]=r):a&&typeof a=="object"&&(a[l]||(a[l]=i.includes(l)?[]:{}),a=a[l])})},qC=(e,t,r)=>{function i(a,l=[],p=[]){Object.entries(a).forEach(([u,m])=>{(!r||r&&!r([...l,u]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?i(m,[...l,u],Array.isArray(m)?[...p,u]:p):t([...l,u],m,p))})}i(e)},JC=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function bc(e,t){let{prefix:r,shouldSkipGeneratingVar:i}=t||{},a={},l={},p={};return qC(e,(u,m,h)=>{if((typeof m=="string"||typeof m=="number")&&(!i||!i(u,m))){let v=`--${r?`${r}-`:""}${u.join("-")}`,I=JC(u,m);Object.assign(a,{[v]:I}),qb(l,u,`var(${v})`,h),qb(p,u,`var(${v}, ${I})`,h)}},u=>u[0]==="vars"),{css:a,vars:l,varsWithDefaults:p}}function KC(e,t={}){let{getSelector:r=U,disableCssColorScheme:i,colorSchemeSelector:a,enableContrastVars:l}=t,{colorSchemes:p={},components:u,defaultColorScheme:m="light",...h}=e,{vars:v,css:I,varsWithDefaults:P}=bc(h,t),w=P,R={},{[m]:G,...N}=p;if(Object.entries(N||{}).forEach(([k,j])=>{let{vars:D,css:Z,varsWithDefaults:ne}=bc(j,t);w=Yr(w,ne),R[k]={css:Z,vars:D}}),G){let{css:k,vars:j,varsWithDefaults:D}=bc(G,t);w=Yr(w,D),R[m]={css:k,vars:j}}function U(k,j){let D=a;if(a==="class"&&(D=".%s"),a==="data"&&(D="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(D=`[${a}="%s"]`),k){if(D==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${p[k]?.palette?.mode||k})`]:{":root":j}};if(D)return e.defaultColorScheme===k?`:root, ${D.replace("%s",String(k))}`:D.replace("%s",String(k))}return":root"}return{vars:w,generateThemeVars:()=>{let k={...v};return Object.entries(R).forEach(([,{vars:j}])=>{k=Yr(k,j)}),k},generateStyleSheets:()=>{let k=[],j=e.defaultColorScheme||"light";function D(le,de){Object.keys(de).length&&k.push(typeof le=="string"?{[le]:{...de}}:le)}D(r(void 0,{...I}),I);let{[j]:Z,...ne}=R;if(Z){let{css:le}=Z,de=p[j]?.palette?.mode,ye=!i&&de?{colorScheme:de,...le}:{...le};D(r(j,{...ye}),ye)}return Object.entries(ne).forEach(([le,{css:de}])=>{let ye=p[le]?.palette?.mode,E=!i&&ye?{colorScheme:ye,...de}:{...de};D(r(le,{...E}),E)}),l&&k.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),k}}}var Jm=KC;function Km(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}var os=me(Ee(),1);var Jb=me(Ee(),1);function Yl(e,t){return Jb.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var e1=(e,t)=>e.filter(r=>t.includes(r)),Ls=(e,t,r)=>{let i=e.keys[0];Array.isArray(t)?t.forEach((a,l)=>{r((p,u)=>{l<=e.keys.length-1&&(l===0?Object.assign(p,u):p[e.up(e.keys[l])]=u)},a)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:e1(e.keys,Object.keys(t))).forEach(l=>{if(e.keys.includes(l)){let p=t[l];p!==void 0&&r((u,m)=>{i===l?Object.assign(u,m):u[e.up(l)]=m},p)}}):(typeof t=="number"||typeof t=="string")&&r((a,l)=>{Object.assign(a,l)},t)};function xf(e){return`--Grid-${e}Spacing`}function Pf(e){return`--Grid-parent-${e}Spacing`}var Kb="--Grid-columns",Zl="--Grid-parent-columns",eT=({theme:e,ownerState:t})=>{let r={};return Ls(e.breakpoints,t.size,(i,a)=>{let l={};a==="grow"&&(l={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(l={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / var(${Zl}) - (var(${Zl}) - ${a}) * (var(${Pf("column")}) / var(${Zl})))`}),i(r,l)}),r},tT=({theme:e,ownerState:t})=>{let r={};return Ls(e.breakpoints,t.offset,(i,a)=>{let l={};a==="auto"&&(l={marginLeft:"auto"}),typeof a=="number"&&(l={marginLeft:a===0?"0px":`calc(100% * ${a} / var(${Zl}) + var(${Pf("column")}) * ${a} / var(${Zl}))`}),i(r,l)}),r},rT=({theme:e,ownerState:t})=>{if(!t.container)return{};let r={[Kb]:12};return Ls(e.breakpoints,t.columns,(i,a)=>{let l=a??12;i(r,{[Kb]:l,"> *":{[Zl]:l}})}),r},oT=({theme:e,ownerState:t})=>{if(!t.container)return{};let r={};return Ls(e.breakpoints,t.rowSpacing,(i,a)=>{let l=typeof a=="string"?a:e.spacing?.(a);i(r,{[xf("row")]:l,"> *":{[Pf("row")]:l}})}),r},nT=({theme:e,ownerState:t})=>{if(!t.container)return{};let r={};return Ls(e.breakpoints,t.columnSpacing,(i,a)=>{let l=typeof a=="string"?a:e.spacing?.(a);i(r,{[xf("column")]:l,"> *":{[Pf("column")]:l}})}),r},iT=({theme:e,ownerState:t})=>{if(!t.container)return{};let r={};return Ls(e.breakpoints,t.direction,(i,a)=>{i(r,{flexDirection:a})}),r},aT=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${xf("row")}) var(${xf("column")})`}}),sT=e=>{let t=[];return Object.entries(e).forEach(([r,i])=>{i!==!1&&i!==void 0&&t.push(`grid-${r}-${String(i)}`)}),t},lT=(e,t="xs")=>{function r(i){return i===void 0?!1:typeof i=="string"&&!Number.isNaN(Number(i))||typeof i=="number"&&i>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){let i=[];return Object.entries(e).forEach(([a,l])=>{r(l)&&i.push(`spacing-${a}-${String(l)}`)}),i}return[]},pT=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`];function ey(e,t){let r=[];e.item!==void 0&&(delete e.item,r.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,r.push("zeroMinWidth")),t.keys.forEach(i=>{e[i]!==void 0&&(r.push(i),delete e[i])})}var cT=xe("react/jsx-runtime"),t1=Ca(),r1=Hm("div",{name:"MuiGrid",slot:"Root"});function o1(e){return mf({props:e,name:"MuiGrid",defaultTheme:t1})}function Ef(e={}){let{createStyledComponent:t=r1,useThemeProps:r=o1,useTheme:i=Si,componentName:a="MuiGrid"}=e,l=(h,v)=>{let{container:I,direction:P,spacing:w,wrap:R,size:G}=h,N={root:["root",I&&"container",R!=="wrap"&&`wrap-xs-${String(R)}`,...pT(P),...sT(G),...I?lT(w,v.breakpoints.keys[0]):[]]};return Xe(N,U=>Ye(a,U),{})};function p(h,v,I=()=>!0){let P={};return h===null||(Array.isArray(h)?h.forEach((w,R)=>{w!==null&&I(w)&&v.keys[R]&&(P[v.keys[R]]=w)}):typeof h=="object"?Object.keys(h).forEach(w=>{let R=h[w];R!=null&&I(R)&&(P[w]=R)}):P[v.keys[0]]=h),P}let u=t(rT,nT,oT,eT,iT,aT,tT),m=os.forwardRef(function(v,I){let P=i(),w=r(v),R=Qa(w);ey(R,P.breakpoints);let{className:G,children:N,columns:U=12,container:Y=!1,component:L="div",direction:k="row",wrap:j="wrap",size:D={},offset:Z={},spacing:ne=0,rowSpacing:le=ne,columnSpacing:de=ne,unstable_level:ye=0,...E}=R,q=p(D,P.breakpoints,ct=>ct!==!1),re=p(Z,P.breakpoints),oe=v.columns??(ye?void 0:U),ce=v.spacing??(ye?void 0:ne),Me=v.rowSpacing??v.spacing??(ye?void 0:le),He=v.columnSpacing??v.spacing??(ye?void 0:de),Ie={...R,level:ye,columns:oe,container:Y,direction:k,wrap:j,spacing:ce,rowSpacing:Me,columnSpacing:He,size:q,offset:re},yt=l(Ie,P);return(0,cT.jsx)(u,{ref:I,as:L,ownerState:Ie,className:ve(yt.root,G),...E,children:os.Children.map(N,ct=>os.isValidElement(ct)&&Yl(ct,["Grid"])&&Y&&ct.props.container?os.cloneElement(ct,{unstable_level:ct.props?.unstable_level??ye+1}):ct)})});return m.muiName="Grid",m}var n1={black:"#000",white:"#fff"},Ql=n1;var i1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},uT=i1;var a1={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ks=a1;var s1={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Fs=s1;var l1={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ql=l1;var p1={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Bs=p1;var c1={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Gs=c1;var u1={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Us=u1;function mT(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ql.white,default:Ql.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}var ty=mT();function yT(){return{text:{primary:Ql.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ql.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}var wf=yT();function fT(e,t,r,i){let a=i.light||i,l=i.dark||i*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Xl(e.main,a):t==="dark"&&(e.dark=$l(e.main,l)))}function dT(e,t,r,i,a){let l=a.light||a,p=a.dark||a*1.5;t[r]||(t.hasOwnProperty(i)?t[r]=t[i]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(l*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(p*100).toFixed(0)}%)`))}function f1(e="light"){return e==="dark"?{main:Bs[200],light:Bs[50],dark:Bs[400]}:{main:Bs[700],light:Bs[400],dark:Bs[800]}}function d1(e="light"){return e==="dark"?{main:ks[200],light:ks[50],dark:ks[400]}:{main:ks[500],light:ks[300],dark:ks[700]}}function m1(e="light"){return e==="dark"?{main:Fs[500],light:Fs[300],dark:Fs[700]}:{main:Fs[700],light:Fs[400],dark:Fs[800]}}function y1(e="light"){return e==="dark"?{main:Gs[400],light:Gs[300],dark:Gs[700]}:{main:Gs[700],light:Gs[500],dark:Gs[900]}}function g1(e="light"){return e==="dark"?{main:Us[400],light:Us[300],dark:Us[700]}:{main:Us[800],light:Us[500],dark:Us[900]}}function h1(e="light"){return e==="dark"?{main:ql[400],light:ql[300],dark:ql[700]}:{main:"#ed6c02",light:ql[500],dark:ql[900]}}function v1(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function js(e){let{mode:t="light",contrastThreshold:r=3,tonalOffset:i=.2,colorSpace:a,...l}=e,p=e.primary||f1(t),u=e.secondary||d1(t),m=e.error||m1(t),h=e.info||y1(t),v=e.success||g1(t),I=e.warning||h1(t);function P(N){return a?v1(N):Xb(N,wf.text.primary)>=r?wf.text.primary:ty.text.primary}let w=({color:N,name:U,mainShade:Y=500,lightShade:L=300,darkShade:k=700})=>{if(N={...N},!N.main&&N[Y]&&(N.main=N[Y]),!N.hasOwnProperty("main"))throw new Error(pn(11,U?` (${U})`:"",Y));if(typeof N.main!="string")throw new Error(pn(12,U?` (${U})`:"",JSON.stringify(N.main)));return a?(dT(a,N,"light",L,i),dT(a,N,"dark",k,i)):(fT(N,"light",L,i),fT(N,"dark",k,i)),N.contrastText||(N.contrastText=P(N.main)),N},R;return t==="light"?R=mT():t==="dark"&&(R=yT()),Yr({common:{...Ql},mode:t,primary:w({color:p,name:"primary"}),secondary:w({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:m,name:"error"}),warning:w({color:I,name:"warning"}),info:w({color:h,name:"info"}),success:w({color:v,name:"success"}),grey:uT,contrastThreshold:r,getContrastText:P,augmentColor:w,tonalOffset:i,...R},l)}function If(e){let t={};return Object.entries(e).forEach(i=>{let[a,l]=i;typeof l=="object"&&(t[a]=`${l.fontStyle?`${l.fontStyle} `:""}${l.fontVariant?`${l.fontVariant} `:""}${l.fontWeight?`${l.fontWeight} `:""}${l.fontStretch?`${l.fontStretch} `:""}${l.fontSize||""}${l.lineHeight?`/${l.lineHeight} `:""}${l.fontFamily||""}`)}),t}function ry(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function b1(e){return Math.round(e*1e5)/1e5}var gT={textTransform:"uppercase"},hT='"Roboto", "Helvetica", "Arial", sans-serif';function oy(e,t){let{fontFamily:r=hT,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:l=400,fontWeightMedium:p=500,fontWeightBold:u=700,htmlFontSize:m=16,allVariants:h,pxToRem:v,...I}=typeof t=="function"?t(e):t,P=i/14,w=v||(N=>`${N/m*P}rem`),R=(N,U,Y,L,k)=>({fontFamily:r,fontWeight:N,fontSize:w(U),lineHeight:Y,...r===hT?{letterSpacing:`${b1(L/U)}em`}:{},...k,...h}),G={h1:R(a,96,1.167,-1.5),h2:R(a,60,1.2,-.5),h3:R(l,48,1.167,0),h4:R(l,34,1.235,.25),h5:R(l,24,1.334,0),h6:R(p,20,1.6,.15),subtitle1:R(l,16,1.75,.15),subtitle2:R(p,14,1.57,.1),body1:R(l,16,1.5,.15),body2:R(l,14,1.43,.15),button:R(p,14,1.75,.4,gT),caption:R(l,12,1.66,.4),overline:R(l,12,2.66,1,gT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yr({htmlFontSize:m,pxToRem:w,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:l,fontWeightMedium:p,fontWeightBold:u,...G},I,{clone:!1})}function vo(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${.2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${.14})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${.12})`].join(",")}var T1=["none",vo(0,2,1,-1,0,1,1,0,0,1,3,0),vo(0,3,1,-2,0,2,2,0,0,1,5,0),vo(0,3,3,-2,0,3,4,0,0,1,8,0),vo(0,2,4,-1,0,4,5,0,0,1,10,0),vo(0,3,5,-1,0,5,8,0,0,1,14,0),vo(0,3,5,-1,0,6,10,0,0,1,18,0),vo(0,4,5,-2,0,7,10,1,0,2,16,1),vo(0,5,5,-3,0,8,10,1,0,3,14,2),vo(0,5,6,-3,0,9,12,1,0,3,16,2),vo(0,6,6,-3,0,10,14,1,0,4,18,3),vo(0,6,7,-4,0,11,15,1,0,4,20,3),vo(0,7,8,-4,0,12,17,2,0,5,22,4),vo(0,7,8,-4,0,13,19,2,0,5,24,4),vo(0,7,9,-4,0,14,21,2,0,5,26,4),vo(0,8,9,-5,0,15,22,2,0,6,28,5),vo(0,8,10,-5,0,16,24,2,0,6,30,5),vo(0,8,11,-5,0,17,26,2,0,6,32,5),vo(0,9,11,-5,0,18,28,2,0,7,34,6),vo(0,9,12,-6,0,19,29,2,0,7,36,6),vo(0,10,13,-6,0,20,31,3,0,8,38,7),vo(0,10,13,-6,0,21,33,3,0,8,40,7),vo(0,10,14,-6,0,22,35,3,0,8,42,7),vo(0,11,14,-7,0,23,36,3,0,9,44,8),vo(0,11,15,-7,0,24,38,3,0,9,46,8)],vT=T1;var x1={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},P1={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bT(e){return`${Math.round(e)}ms`}function E1(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function ny(e){let t={...x1,...e.easing},r={...P1,...e.duration};return{getAutoHeightDuration:E1,create:(a=["all"],l={})=>{let{duration:p=r.standard,easing:u=t.easeInOut,delay:m=0,...h}=l;return(Array.isArray(a)?a:[a]).map(v=>`${v} ${typeof p=="string"?p:bT(p)} ${u} ${typeof m=="string"?m:bT(m)}`).join(",")},...e,easing:t,duration:r}}var w1={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},TT=w1;function I1(e){return si(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Rf(e={}){let t={...e};function r(i){let a=Object.entries(i);for(let l=0;l<a.length;l++){let[p,u]=a[l];!I1(u)||p.startsWith("unstable_")?delete i[p]:si(u)&&(i[p]={...u},r(i[p]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
41
|
-
|
|
42
|
-
const theme = ${JSON.stringify(t,null,2)};
|
|
43
|
-
|
|
44
|
-
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
45
|
-
theme.transitions = createTransitions(theme.transitions || {});
|
|
46
|
-
|
|
47
|
-
export default theme;`}function xT(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var R1=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let i=0;i<t.length;i+=1)r+=+t[i];return r};function S1(e){Object.assign(e,{alpha(t,r){let i=this||e;return i.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:i.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Hl(t,R1(r))},lighten(t,r){let i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #fff ${xT(r)})`:Xl(t,r)},darken(t,r){let i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #000 ${xT(r)})`:$l(t,r)}})}function O1(e={},...t){let{breakpoints:r,mixins:i={},spacing:a,palette:l={},transitions:p={},typography:u={},shape:m,colorSpace:h,...v}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(pn(20));let I=js({...l,colorSpace:h}),P=Ca(e),w=Yr(P,{mixins:ry(P.breakpoints,i),palette:I,shadows:vT.slice(),typography:oy(I,u),transitions:ny(p),zIndex:{...TT}});return w=Yr(w,v),w=t.reduce((R,G)=>Yr(R,G),w),w.unstable_sxConfig={...ji,...v?.unstable_sxConfig},w.unstable_sx=function(G){return wi({sx:G,theme:this})},w.toRuntimeSource=Rf,S1(w),w}var Tc=O1;function Jl(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var C1=[...Array(25)].map((e,t)=>{if(t===0)return"none";let r=Jl(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function iy(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ay(e){return e==="dark"?C1:[]}function sy(e){let{palette:t={mode:"light"},opacity:r,overlays:i,colorSpace:a,...l}=e,p=js({...t,colorSpace:a});return{palette:p,opacity:{...iy(p.mode),...r},overlays:i||ay(p.mode),...l}}function ly(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var D1=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],PT=D1;var ET=e=>(t,r)=>{let i=e.rootSelector||":root",a=e.colorSchemeSelector,l=a;if(a==="class"&&(l=".%s"),a==="data"&&(l="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(l=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){let p={};return PT(e.cssVarPrefix).forEach(u=>{p[u]=r[u],delete r[u]}),l==="media"?{[i]:r,"@media (prefers-color-scheme: dark)":{[i]:p}}:l?{[l.replace("%s",t)]:p,[`${i}, ${l.replace("%s",t)}`]:r}:{[i]:{...r,...p}}}if(l&&l!=="media")return`${i}, ${l.replace("%s",String(t))}`}else if(t){if(l==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[i]:r}};if(l)return l.replace("%s",String(t))}return i};function _1(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function Oe(e,t,r){!e[t]&&r&&(e[t]=r)}function xc(e){return typeof e!="string"||!e.startsWith("hsl")?e:Qm(e)}function _a(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Wl(xc(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
48
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function A1(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}var aa=e=>{try{return e()}catch{}},M1=(e="mui")=>Tf(e);function py(e,t,r,i,a){if(!r)return;r=r===!0?{}:r;let l=a==="dark"?"dark":"light";if(!i){t[a]=sy({...r,palette:{mode:l,...r?.palette},colorSpace:e});return}let{palette:p,...u}=Tc({...i,palette:{mode:l,...r?.palette},colorSpace:e});return t[a]={...r,palette:p,opacity:{...iy(l),...r?.opacity},overlays:r?.overlays||ay(l)},u}function cy(e={},...t){let{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:a=!1,cssVarPrefix:l="mui",nativeColor:p=!1,shouldSkipGeneratingVar:u=ly,colorSchemeSelector:m=r.light&&r.dark?"media":void 0,rootSelector:h=":root",...v}=e,I=Object.keys(r)[0],P=i||(r.light&&I!=="light"?"light":I),w=M1(l),{[P]:R,light:G,dark:N,...U}=r,Y={...U},L=R;if((P==="dark"&&!("dark"in r)||P==="light"&&!("light"in r))&&(L=!0),!L)throw new Error(pn(21,P));let k;p&&(k="oklch");let j=py(k,Y,L,v,P);G&&!Y.light&&py(k,Y,G,void 0,"light"),N&&!Y.dark&&py(k,Y,N,void 0,"dark");let D={defaultColorScheme:P,...j,cssVarPrefix:l,colorSchemeSelector:m,rootSelector:h,getCssVar:w,colorSchemes:Y,font:{...If(j.typography),...j.font},spacing:A1(v.spacing)};Object.keys(D.colorSchemes).forEach(ye=>{let E=D.colorSchemes[ye].palette,q=oe=>{let ce=oe.split("-"),Me=ce[1],He=ce[2];return w(oe,E[Me][He])};E.mode==="light"&&(Oe(E.common,"background","#fff"),Oe(E.common,"onBackground","#000")),E.mode==="dark"&&(Oe(E.common,"background","#000"),Oe(E.common,"onBackground","#fff"));function re(oe,ce,Me){if(k){let He;return oe===ts&&(He=`transparent ${((1-Me)*100).toFixed(0)}%`),oe===kr&&(He=`#000 ${(Me*100).toFixed(0)}%`),oe===Fr&&(He=`#fff ${(Me*100).toFixed(0)}%`),`color-mix(in ${k}, ${ce}, ${He})`}return oe(ce,Me)}if(_1(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){Oe(E.Alert,"errorColor",re(kr,E.error.light,.6)),Oe(E.Alert,"infoColor",re(kr,E.info.light,.6)),Oe(E.Alert,"successColor",re(kr,E.success.light,.6)),Oe(E.Alert,"warningColor",re(kr,E.warning.light,.6)),Oe(E.Alert,"errorFilledBg",q("palette-error-main")),Oe(E.Alert,"infoFilledBg",q("palette-info-main")),Oe(E.Alert,"successFilledBg",q("palette-success-main")),Oe(E.Alert,"warningFilledBg",q("palette-warning-main")),Oe(E.Alert,"errorFilledColor",aa(()=>E.getContrastText(E.error.main))),Oe(E.Alert,"infoFilledColor",aa(()=>E.getContrastText(E.info.main))),Oe(E.Alert,"successFilledColor",aa(()=>E.getContrastText(E.success.main))),Oe(E.Alert,"warningFilledColor",aa(()=>E.getContrastText(E.warning.main))),Oe(E.Alert,"errorStandardBg",re(Fr,E.error.light,.9)),Oe(E.Alert,"infoStandardBg",re(Fr,E.info.light,.9)),Oe(E.Alert,"successStandardBg",re(Fr,E.success.light,.9)),Oe(E.Alert,"warningStandardBg",re(Fr,E.warning.light,.9)),Oe(E.Alert,"errorIconColor",q("palette-error-main")),Oe(E.Alert,"infoIconColor",q("palette-info-main")),Oe(E.Alert,"successIconColor",q("palette-success-main")),Oe(E.Alert,"warningIconColor",q("palette-warning-main")),Oe(E.AppBar,"defaultBg",q("palette-grey-100")),Oe(E.Avatar,"defaultBg",q("palette-grey-400")),Oe(E.Button,"inheritContainedBg",q("palette-grey-300")),Oe(E.Button,"inheritContainedHoverBg",q("palette-grey-A100")),Oe(E.Chip,"defaultBorder",q("palette-grey-400")),Oe(E.Chip,"defaultAvatarColor",q("palette-grey-700")),Oe(E.Chip,"defaultIconColor",q("palette-grey-700")),Oe(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Oe(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Oe(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Oe(E.LinearProgress,"primaryBg",re(Fr,E.primary.main,.62)),Oe(E.LinearProgress,"secondaryBg",re(Fr,E.secondary.main,.62)),Oe(E.LinearProgress,"errorBg",re(Fr,E.error.main,.62)),Oe(E.LinearProgress,"infoBg",re(Fr,E.info.main,.62)),Oe(E.LinearProgress,"successBg",re(Fr,E.success.main,.62)),Oe(E.LinearProgress,"warningBg",re(Fr,E.warning.main,.62)),Oe(E.Skeleton,"bg",k?re(ts,E.text.primary,.11):`rgba(${q("palette-text-primaryChannel")} / 0.11)`),Oe(E.Slider,"primaryTrack",re(Fr,E.primary.main,.62)),Oe(E.Slider,"secondaryTrack",re(Fr,E.secondary.main,.62)),Oe(E.Slider,"errorTrack",re(Fr,E.error.main,.62)),Oe(E.Slider,"infoTrack",re(Fr,E.info.main,.62)),Oe(E.Slider,"successTrack",re(Fr,E.success.main,.62)),Oe(E.Slider,"warningTrack",re(Fr,E.warning.main,.62));let oe=k?re(kr,E.background.default,.6825):hc(E.background.default,.8);Oe(E.SnackbarContent,"bg",oe),Oe(E.SnackbarContent,"color",aa(()=>k?wf.text.primary:E.getContrastText(oe))),Oe(E.SpeedDialAction,"fabHoverBg",hc(E.background.paper,.15)),Oe(E.StepConnector,"border",q("palette-grey-400")),Oe(E.StepContent,"border",q("palette-grey-400")),Oe(E.Switch,"defaultColor",q("palette-common-white")),Oe(E.Switch,"defaultDisabledColor",q("palette-grey-100")),Oe(E.Switch,"primaryDisabledColor",re(Fr,E.primary.main,.62)),Oe(E.Switch,"secondaryDisabledColor",re(Fr,E.secondary.main,.62)),Oe(E.Switch,"errorDisabledColor",re(Fr,E.error.main,.62)),Oe(E.Switch,"infoDisabledColor",re(Fr,E.info.main,.62)),Oe(E.Switch,"successDisabledColor",re(Fr,E.success.main,.62)),Oe(E.Switch,"warningDisabledColor",re(Fr,E.warning.main,.62)),Oe(E.TableCell,"border",re(Fr,re(ts,E.divider,1),.88)),Oe(E.Tooltip,"bg",re(ts,E.grey[700],.92))}if(E.mode==="dark"){Oe(E.Alert,"errorColor",re(Fr,E.error.light,.6)),Oe(E.Alert,"infoColor",re(Fr,E.info.light,.6)),Oe(E.Alert,"successColor",re(Fr,E.success.light,.6)),Oe(E.Alert,"warningColor",re(Fr,E.warning.light,.6)),Oe(E.Alert,"errorFilledBg",q("palette-error-dark")),Oe(E.Alert,"infoFilledBg",q("palette-info-dark")),Oe(E.Alert,"successFilledBg",q("palette-success-dark")),Oe(E.Alert,"warningFilledBg",q("palette-warning-dark")),Oe(E.Alert,"errorFilledColor",aa(()=>E.getContrastText(E.error.dark))),Oe(E.Alert,"infoFilledColor",aa(()=>E.getContrastText(E.info.dark))),Oe(E.Alert,"successFilledColor",aa(()=>E.getContrastText(E.success.dark))),Oe(E.Alert,"warningFilledColor",aa(()=>E.getContrastText(E.warning.dark))),Oe(E.Alert,"errorStandardBg",re(kr,E.error.light,.9)),Oe(E.Alert,"infoStandardBg",re(kr,E.info.light,.9)),Oe(E.Alert,"successStandardBg",re(kr,E.success.light,.9)),Oe(E.Alert,"warningStandardBg",re(kr,E.warning.light,.9)),Oe(E.Alert,"errorIconColor",q("palette-error-main")),Oe(E.Alert,"infoIconColor",q("palette-info-main")),Oe(E.Alert,"successIconColor",q("palette-success-main")),Oe(E.Alert,"warningIconColor",q("palette-warning-main")),Oe(E.AppBar,"defaultBg",q("palette-grey-900")),Oe(E.AppBar,"darkBg",q("palette-background-paper")),Oe(E.AppBar,"darkColor",q("palette-text-primary")),Oe(E.Avatar,"defaultBg",q("palette-grey-600")),Oe(E.Button,"inheritContainedBg",q("palette-grey-800")),Oe(E.Button,"inheritContainedHoverBg",q("palette-grey-700")),Oe(E.Chip,"defaultBorder",q("palette-grey-700")),Oe(E.Chip,"defaultAvatarColor",q("palette-grey-300")),Oe(E.Chip,"defaultIconColor",q("palette-grey-300")),Oe(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Oe(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Oe(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Oe(E.LinearProgress,"primaryBg",re(kr,E.primary.main,.5)),Oe(E.LinearProgress,"secondaryBg",re(kr,E.secondary.main,.5)),Oe(E.LinearProgress,"errorBg",re(kr,E.error.main,.5)),Oe(E.LinearProgress,"infoBg",re(kr,E.info.main,.5)),Oe(E.LinearProgress,"successBg",re(kr,E.success.main,.5)),Oe(E.LinearProgress,"warningBg",re(kr,E.warning.main,.5)),Oe(E.Skeleton,"bg",k?re(ts,E.text.primary,.13):`rgba(${q("palette-text-primaryChannel")} / 0.13)`),Oe(E.Slider,"primaryTrack",re(kr,E.primary.main,.5)),Oe(E.Slider,"secondaryTrack",re(kr,E.secondary.main,.5)),Oe(E.Slider,"errorTrack",re(kr,E.error.main,.5)),Oe(E.Slider,"infoTrack",re(kr,E.info.main,.5)),Oe(E.Slider,"successTrack",re(kr,E.success.main,.5)),Oe(E.Slider,"warningTrack",re(kr,E.warning.main,.5));let oe=k?re(Fr,E.background.default,.985):hc(E.background.default,.98);Oe(E.SnackbarContent,"bg",oe),Oe(E.SnackbarContent,"color",aa(()=>k?ty.text.primary:E.getContrastText(oe))),Oe(E.SpeedDialAction,"fabHoverBg",hc(E.background.paper,.15)),Oe(E.StepConnector,"border",q("palette-grey-600")),Oe(E.StepContent,"border",q("palette-grey-600")),Oe(E.Switch,"defaultColor",q("palette-grey-300")),Oe(E.Switch,"defaultDisabledColor",q("palette-grey-600")),Oe(E.Switch,"primaryDisabledColor",re(kr,E.primary.main,.55)),Oe(E.Switch,"secondaryDisabledColor",re(kr,E.secondary.main,.55)),Oe(E.Switch,"errorDisabledColor",re(kr,E.error.main,.55)),Oe(E.Switch,"infoDisabledColor",re(kr,E.info.main,.55)),Oe(E.Switch,"successDisabledColor",re(kr,E.success.main,.55)),Oe(E.Switch,"warningDisabledColor",re(kr,E.warning.main,.55)),Oe(E.TableCell,"border",re(kr,re(ts,E.divider,1),.68)),Oe(E.Tooltip,"bg",re(ts,E.grey[700],.92))}_a(E.background,"default"),_a(E.background,"paper"),_a(E.common,"background"),_a(E.common,"onBackground"),_a(E,"divider"),Object.keys(E).forEach(oe=>{let ce=E[oe];oe!=="tonalOffset"&&ce&&typeof ce=="object"&&(ce.main&&Oe(E[oe],"mainChannel",Wl(xc(ce.main))),ce.light&&Oe(E[oe],"lightChannel",Wl(xc(ce.light))),ce.dark&&Oe(E[oe],"darkChannel",Wl(xc(ce.dark))),ce.contrastText&&Oe(E[oe],"contrastTextChannel",Wl(xc(ce.contrastText))),oe==="text"&&(_a(E[oe],"primary"),_a(E[oe],"secondary")),oe==="action"&&(ce.active&&_a(E[oe],"active"),ce.selected&&_a(E[oe],"selected")))})}),D=t.reduce((ye,E)=>Yr(ye,E),D);let Z={prefix:l,disableCssColorScheme:a,shouldSkipGeneratingVar:u,getSelector:ET(D),enableContrastVars:p},{vars:ne,generateThemeVars:le,generateStyleSheets:de}=Jm(D,Z);return D.vars=ne,Object.entries(D.colorSchemes[D.defaultColorScheme]).forEach(([ye,E])=>{D[ye]=E}),D.generateThemeVars=le,D.generateStyleSheets=de,D.generateSpacing=function(){return jl(v.spacing,Kp(this))},D.getColorSchemeSelector=Km(m),D.spacing=D.generateSpacing(),D.shouldSkipGeneratingVar=u,D.unstable_sxConfig={...ji,...v?.unstable_sxConfig},D.unstable_sx=function(E){return wi({sx:E,theme:this})},D.toRuntimeSource=Rf,D}function wT(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:js({...r===!0?{}:r.palette,mode:t})})}function Kl(e={},...t){let{palette:r,cssVariables:i=!1,colorSchemes:a=r?void 0:{light:!0},defaultColorScheme:l=r?.mode,...p}=e,u=l||"light",m=a?.[u],h={...a,...r?{[u]:{...typeof m!="boolean"&&m,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Tc(e,...t);let v=r;"palette"in e||h[u]&&(h[u]!==!0?v=h[u].palette:u==="dark"&&(v={mode:"dark"}));let I=Tc({...e,palette:v},...t);return I.defaultColorScheme=u,I.colorSchemes=h,I.palette.mode==="light"&&(I.colorSchemes.light={...h.light!==!0&&h.light,palette:I.palette},wT(I,"dark",h.dark)),I.palette.mode==="dark"&&(I.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:I.palette},wT(I,"light",h.light)),I}return!r&&!("light"in h)&&u==="light"&&(h.light=!0),cy({...p,colorSchemes:h,defaultColorScheme:u,...typeof i!="boolean"&&i},...t)}var N1=Kl(),ep=N1;var sa="$$material";function qn(){let e=Si(ep);return e[sa]||e}var Iz=me(Ee(),1);var IT=xe("react/jsx-runtime");function k1(e){return(0,IT.jsx)(ff,{...e,defaultTheme:ep,themeId:sa})}var uy=k1;var RT=xe("react/jsx-runtime");function F1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var Sf=F1;var B1=e=>Sf(e)&&e!=="classes",fo=B1;var G1=zl({themeId:sa,defaultTheme:ep,rootShouldForwardProp:fo}),Te=G1;function ST(e){return function(r){return(0,RT.jsx)(uy,{styles:typeof e=="function"?i=>e({theme:i,...r}):e})}}function OT(){return Qa}var U1=bf,Pt=U1;var Zz=me(Ee(),1);var j1=xe("react/jsx-runtime");function Je(e){return qm(e)}function CT(e){return Ye("MuiSvgIcon",e)}var oV=$e("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var Cf=xe("react/jsx-runtime"),z1=e=>{let{color:t,fontSize:r,classes:i}=e,a={root:["root",t!=="inherit"&&`color${Ne(t)}`,`fontSize${Ne(r)}`]};return Xe(a,CT,i)},V1=Te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ne(r.color)}`],t[`fontSize${Ne(r.fontSize)}`]]}})(Pt(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),DT=Of.forwardRef(function(t,r){let i=Je({props:t,name:"MuiSvgIcon"}),{children:a,className:l,color:p="inherit",component:u="svg",fontSize:m="medium",htmlColor:h,inheritViewBox:v=!1,titleAccess:I,viewBox:P="0 0 24 24",...w}=i,R=Of.isValidElement(a)&&a.type==="svg",G={...i,color:p,component:u,fontSize:m,instanceFontSize:t.fontSize,inheritViewBox:v,viewBox:P,hasSvgAsChild:R},N={};v||(N.viewBox=P);let U=z1(G);return(0,Cf.jsxs)(V1,{as:u,className:ve(U.root,l),focusable:"false",color:h,"aria-hidden":I?void 0:!0,role:I?"img":void 0,ref:r,...N,...w,...R&&a.props,ownerState:G,children:[R?a.props.children:a,I?(0,Cf.jsx)("title",{children:I}):null]})});DT.muiName="SvgIcon";var zs=DT;var _T=xe("react/jsx-runtime");function Jt(e,t){function r(i,a){return(0,_T.jsx)(zs,{"data-testid":void 0,ref:a,...i,children:e})}return r.muiName=zs.muiName,Df.memo(Df.forwardRef(r))}function tp(e,t=166){let r;function i(...a){let l=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(l,t)}return i.clear=()=>{clearTimeout(r)},i}var rp=tp;var op=Yl;function un(e){return e&&e.ownerDocument||document}var Aa=un;function Ci(e){return un(e).defaultView||window}var la=Ci;function Vs(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var Ws=Cn;var Pc=Oi;var Hs=me(Ee(),1);function ns(e){let{controlled:t,default:r,name:i,state:a="value"}=e,{current:l}=Hs.useRef(t!==void 0),[p,u]=Hs.useState(r),m=l?t:p,h=Hs.useCallback(v=>{l||u(v)},[]);return[m,h]}var Ec=ns;var fy=me(Ee(),1);function W1(e){let t=fy.useRef(e);return Cn(()=>{t.current=e}),fy.useRef((...r)=>(0,t.current)(...r)).current}var ci=W1;var Ma=ci;var np=me(Ee(),1);function Ko(...e){let t=np.useRef(void 0),r=np.useCallback(i=>{let a=e.map(l=>{if(l==null)return null;if(typeof l=="function"){let p=l,u=p(i);return typeof u=="function"?u:()=>{p(null)}}return l.current=i,()=>{l.current=null}});return()=>{a.forEach(l=>l?.())}},e);return np.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=r(i))},e)}var en=Ko;function H1(e,t){let r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function ip(e,t){if(!e)return t;function r(p,u){let m={};return Object.keys(u).forEach(h=>{H1(h,u[h])&&typeof p[h]=="function"&&(m[h]=(...v)=>{p[h](...v),u[h](...v)})}),m}if(typeof e=="function"||typeof t=="function")return p=>{let u=typeof t=="function"?t(p):t,m=typeof e=="function"?e({...p,...u}):e,h=ve(p?.className,u?.className,m?.className),v=r(m,u);return{...u,...m,...v,...!!h&&{className:h},...u?.style&&m?.style&&{style:{...u.style,...m.style}},...u?.sx&&m?.sx&&{sx:[...Array.isArray(u.sx)?u.sx:[u.sx],...Array.isArray(m.sx)?m.sx:[m.sx]]}}};let i=t,a=r(e,i),l=ve(i?.className,e?.className);return{...t,...e,...a,...!!l&&{className:l},...i?.style&&e?.style&&{style:{...i.style,...e.style}},...i?.sx&&e?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var AT=xe("react/jsx-runtime"),is=Jt((0,AT.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var MT=xe("react/jsx-runtime"),NT=Jt((0,MT.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},_f.apply(null,arguments)}function Af(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Mf(e,t){return Mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Mf(e,t)}function Nf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mf(e,t)}var wc=me(Ee()),Ic=me(Iu());var dy={disabled:!1};var LT=me(Ee()),ap=LT.default.createContext(null);var kT=function(t){return t.scrollTop};var Rc="unmounted",$s="exited",Xs="entering",lp="entered",my="exiting",Na=(function(e){Nf(t,e);function t(i,a){var l;l=e.call(this,i,a)||this;var p=a,u=p&&!p.isMounting?i.enter:i.appear,m;return l.appearStatus=null,i.in?u?(m=$s,l.appearStatus=Xs):m=lp:i.unmountOnExit||i.mountOnEnter?m=Rc:m=$s,l.state={status:m},l.nextCallback=null,l}t.getDerivedStateFromProps=function(a,l){var p=a.in;return p&&l.status===Rc?{status:$s}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var l=null;if(a!==this.props){var p=this.state.status;this.props.in?p!==Xs&&p!==lp&&(l=Xs):(p===Xs||p===lp)&&(l=my)}this.updateStatus(!1,l)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,l,p,u;return l=p=u=a,a!=null&&typeof a!="number"&&(l=a.exit,p=a.enter,u=a.appear!==void 0?a.appear:p),{exit:l,enter:p,appear:u}},r.updateStatus=function(a,l){if(a===void 0&&(a=!1),l!==null)if(this.cancelNextCallback(),l===Xs){if(this.props.unmountOnExit||this.props.mountOnEnter){var p=this.props.nodeRef?this.props.nodeRef.current:Ic.default.findDOMNode(this);p&&kT(p)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$s&&this.setState({status:Rc})},r.performEnter=function(a){var l=this,p=this.props.enter,u=this.context?this.context.isMounting:a,m=this.props.nodeRef?[u]:[Ic.default.findDOMNode(this),u],h=m[0],v=m[1],I=this.getTimeouts(),P=u?I.appear:I.enter;if(!a&&!p||dy.disabled){this.safeSetState({status:lp},function(){l.props.onEntered(h)});return}this.props.onEnter(h,v),this.safeSetState({status:Xs},function(){l.props.onEntering(h,v),l.onTransitionEnd(P,function(){l.safeSetState({status:lp},function(){l.props.onEntered(h,v)})})})},r.performExit=function(){var a=this,l=this.props.exit,p=this.getTimeouts(),u=this.props.nodeRef?void 0:Ic.default.findDOMNode(this);if(!l||dy.disabled){this.safeSetState({status:$s},function(){a.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:my},function(){a.props.onExiting(u),a.onTransitionEnd(p.exit,function(){a.safeSetState({status:$s},function(){a.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,l){l=this.setNextCallback(l),this.setState(a,l)},r.setNextCallback=function(a){var l=this,p=!0;return this.nextCallback=function(u){p&&(p=!1,l.nextCallback=null,a(u))},this.nextCallback.cancel=function(){p=!1},this.nextCallback},r.onTransitionEnd=function(a,l){this.setNextCallback(l);var p=this.props.nodeRef?this.props.nodeRef.current:Ic.default.findDOMNode(this),u=a==null&&!this.props.addEndListener;if(!p||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[p,this.nextCallback],h=m[0],v=m[1];this.props.addEndListener(h,v)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===Rc)return null;var l=this.props,p=l.children,u=l.in,m=l.mountOnEnter,h=l.unmountOnExit,v=l.appear,I=l.enter,P=l.exit,w=l.timeout,R=l.addEndListener,G=l.onEnter,N=l.onEntering,U=l.onEntered,Y=l.onExit,L=l.onExiting,k=l.onExited,j=l.nodeRef,D=Af(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return wc.default.createElement(ap.Provider,{value:null},typeof p=="function"?p(a,D):wc.default.cloneElement(wc.default.Children.only(p),D))},t})(wc.default.Component);Na.contextType=ap;Na.propTypes={};function sp(){}Na.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sp,onEntering:sp,onEntered:sp,onExit:sp,onExiting:sp,onExited:sp};Na.UNMOUNTED=Rc;Na.EXITED=$s;Na.ENTERING=Xs;Na.ENTERED=lp;Na.EXITING=my;var Sc=Na;function FT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Oc=me(Ee());var Di=me(Ee());function Lf(e,t){var r=function(l){return t&&(0,Di.isValidElement)(l)?t(l):l},i=Object.create(null);return e&&Di.Children.map(e,function(a){return a}).forEach(function(a){i[a.key]=r(a)}),i}function $1(e,t){e=e||{},t=t||{};function r(v){return v in t?t[v]:e[v]}var i=Object.create(null),a=[];for(var l in e)l in t?a.length&&(i[l]=a,a=[]):a.push(l);var p,u={};for(var m in t){if(i[m])for(p=0;p<i[m].length;p++){var h=i[m][p];u[i[m][p]]=r(h)}u[m]=r(m)}for(p=0;p<a.length;p++)u[a[p]]=r(a[p]);return u}function Ys(e,t,r){return r[t]!=null?r[t]:e.props[t]}function BT(e,t){return Lf(e.children,function(r){return(0,Di.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:Ys(r,"appear",e),enter:Ys(r,"enter",e),exit:Ys(r,"exit",e)})})}function GT(e,t,r){var i=Lf(e.children),a=$1(t,i);return Object.keys(a).forEach(function(l){var p=a[l];if((0,Di.isValidElement)(p)){var u=l in t,m=l in i,h=t[l],v=(0,Di.isValidElement)(h)&&!h.props.in;m&&(!u||v)?a[l]=(0,Di.cloneElement)(p,{onExited:r.bind(null,p),in:!0,exit:Ys(p,"exit",e),enter:Ys(p,"enter",e)}):!m&&u&&!v?a[l]=(0,Di.cloneElement)(p,{in:!1}):m&&u&&(0,Di.isValidElement)(h)&&(a[l]=(0,Di.cloneElement)(p,{onExited:r.bind(null,p),in:h.props.in,exit:Ys(p,"exit",e),enter:Ys(p,"enter",e)}))}}),a}var X1=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Y1={component:"div",childFactory:function(t){return t}},yy=(function(e){Nf(t,e);function t(i,a){var l;l=e.call(this,i,a)||this;var p=l.handleExited.bind(FT(l));return l.state={contextValue:{isMounting:!0},handleExited:p,firstRender:!0},l}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,l){var p=l.children,u=l.handleExited,m=l.firstRender;return{children:m?BT(a,u):GT(a,p,u),firstRender:!1}},r.handleExited=function(a,l){var p=Lf(this.props.children);a.key in p||(a.props.onExited&&a.props.onExited(l),this.mounted&&this.setState(function(u){var m=_f({},u.children);return delete m[a.key],{children:m}}))},r.render=function(){var a=this.props,l=a.component,p=a.childFactory,u=Af(a,["component","childFactory"]),m=this.state.contextValue,h=X1(this.state.children).map(p);return delete u.appear,delete u.enter,delete u.exit,l===null?Oc.default.createElement(ap.Provider,{value:m},h):Oc.default.createElement(ap.Provider,{value:m},Oc.default.createElement(l,u,h))},t})(Oc.default.Component);yy.propTypes={};yy.defaultProps=Y1;var gy=yy;var jT=me(Ee(),1),UT={};function pp(e,t){let r=jT.useRef(UT);return r.current===UT&&(r.current=e(t)),r}var zT=me(Ee(),1),Z1=[];function hy(e){zT.useEffect(e,Z1)}var vy=class e{static create(){return new e}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function cp(){let e=pp(vy.create).current;return hy(e.disposeEffect),e}var kf=e=>e.scrollTop;function up(e,t){let{timeout:r,easing:i,style:a={}}=e;return{duration:a.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:a.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:a.transitionDelay}}var WT=me(Ee(),1);function VT(e){return Ye("MuiPaper",e)}var lH=$e("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var HT=xe("react/jsx-runtime"),Q1=e=>{let{square:t,elevation:r,variant:i,classes:a}=e,l={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${r}`]};return Xe(l,VT,a)},q1=Te("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Pt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),J1=WT.forwardRef(function(t,r){let i=Je({props:t,name:"MuiPaper"}),a=qn(),{className:l,component:p="div",elevation:u=1,square:m=!1,variant:h="elevation",...v}=i,I={...i,component:p,elevation:u,square:m,variant:h},P=Q1(I);return(0,HT.jsx)(q1,{as:p,ownerState:I,className:ve(P.root,l),ref:r,...v,style:{...h==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[u],...a.vars&&{"--Paper-overlay":a.vars.overlays?.[u]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Hl("#fff",Jl(u))}, ${Hl("#fff",Jl(u))})`}},...v.style}})}),ui=J1;function K1(e){return typeof e=="string"}var Vi=K1;function eD(e,t,r){return e===void 0||Vi(e)?t:{...t,ownerState:{...t.ownerState,...r}}}var Cc=eD;function tD(e,t,r){return typeof e=="function"?e(t,r):e}var Dc=tD;function rD(e,t=[]){if(e===void 0)return{};let r={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{r[i]=e[i]}),r}var _c=rD;function oD(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}var Ff=oD;function nD(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:a,className:l}=e;if(!t){let w=ve(r?.className,l,a?.className,i?.className),R={...r?.style,...a?.style,...i?.style},G={...r,...a,...i};return w.length>0&&(G.className=w),Object.keys(R).length>0&&(G.style=R),{props:G,internalRef:void 0}}let p=_c({...a,...i}),u=Ff(i),m=Ff(a),h=t(p),v=ve(h?.className,r?.className,l,a?.className,i?.className),I={...h?.style,...r?.style,...a?.style,...i?.style},P={...h,...r,...m,...u};return v.length>0&&(P.className=v),Object.keys(I).length>0&&(P.style=I),{props:P,internalRef:h.ref}}var Ac=nD;function Ct(e,t){let{className:r,elementType:i,ownerState:a,externalForwardedProps:l,internalForwardedProps:p,shouldForwardComponentProp:u=!1,...m}=t,{component:h,slots:v={[e]:void 0},slotProps:I={[e]:void 0},...P}=l,w=v[e]||i,R=Dc(I[e],a),{props:{component:G,...N},internalRef:U}=Ac({className:r,...m,externalForwardedProps:e==="root"?P:void 0,externalSlotProps:R}),Y=Ko(U,R?.ref,t.ref),L=e==="root"?G||h:G,k=Cc(w,{...e==="root"&&!h&&!v[e]&&p,...e!=="root"&&!v[e]&&p,...N,...L&&!u&&{as:L},...L&&u&&{component:L},ref:Y},a);return[w,k]}var pa=me(Ee(),1);function Mc(e){try{return e.matches(":focus-visible")}catch{}return!1}var Bf=me(Ee(),1);var by=class e{static create(){return new e}static use(){let t=pp(e.create).current,[r,i]=Bf.useState(!1);return t.shouldMount=r,t.setShouldMount=i,Bf.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=iD(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}};function Gf(){return by.use()}function iD(){let e,t,r=new Promise((i,a)=>{e=i,t=a});return r.resolve=e,r.reject=t,r}var tn=me(Ee(),1);var Uf=me(Ee(),1);var Ty=xe("react/jsx-runtime");function aD(e){let{className:t,classes:r,pulsate:i=!1,rippleX:a,rippleY:l,rippleSize:p,in:u,onExited:m,timeout:h}=e,[v,I]=Uf.useState(!1),P=ve(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),w={width:p,height:p,top:-(p/2)+l,left:-(p/2)+a},R=ve(r.child,v&&r.childLeaving,i&&r.childPulsate);return!u&&!v&&I(!0),Uf.useEffect(()=>{if(!u&&m!=null){let G=setTimeout(m,h);return()=>{clearTimeout(G)}}},[m,u,h]),(0,Ty.jsx)("span",{className:P,style:w,children:(0,Ty.jsx)("span",{className:R})})}var $T=aD;var sD=$e("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fi=sD;var jf=xe("react/jsx-runtime"),xy=550,lD=80,pD=na`
|
|
49
|
-
0% {
|
|
50
|
-
transform: scale(0);
|
|
51
|
-
opacity: 0.1;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
100% {
|
|
55
|
-
transform: scale(1);
|
|
56
|
-
opacity: 0.3;
|
|
57
|
-
}
|
|
58
|
-
`,cD=na`
|
|
59
|
-
0% {
|
|
60
|
-
opacity: 1;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
100% {
|
|
64
|
-
opacity: 0;
|
|
65
|
-
}
|
|
66
|
-
`,uD=na`
|
|
67
|
-
0% {
|
|
68
|
-
transform: scale(1);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
50% {
|
|
72
|
-
transform: scale(0.92);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
100% {
|
|
76
|
-
transform: scale(1);
|
|
77
|
-
}
|
|
78
|
-
`,fD=Te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),dD=Te($T,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
79
|
-
opacity: 0;
|
|
80
|
-
position: absolute;
|
|
81
|
-
|
|
82
|
-
&.${fi.rippleVisible} {
|
|
83
|
-
opacity: 0.3;
|
|
84
|
-
transform: scale(1);
|
|
85
|
-
animation-name: ${pD};
|
|
86
|
-
animation-duration: ${xy}ms;
|
|
87
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&.${fi.ripplePulsate} {
|
|
91
|
-
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
& .${fi.child} {
|
|
95
|
-
opacity: 1;
|
|
96
|
-
display: block;
|
|
97
|
-
width: 100%;
|
|
98
|
-
height: 100%;
|
|
99
|
-
border-radius: 50%;
|
|
100
|
-
background-color: currentColor;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
& .${fi.childLeaving} {
|
|
104
|
-
opacity: 0;
|
|
105
|
-
animation-name: ${cD};
|
|
106
|
-
animation-duration: ${xy}ms;
|
|
107
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
& .${fi.childPulsate} {
|
|
111
|
-
position: absolute;
|
|
112
|
-
/* @noflip */
|
|
113
|
-
left: 0px;
|
|
114
|
-
top: 0;
|
|
115
|
-
animation-name: ${uD};
|
|
116
|
-
animation-duration: 2500ms;
|
|
117
|
-
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
118
|
-
animation-iteration-count: infinite;
|
|
119
|
-
animation-delay: 200ms;
|
|
120
|
-
}
|
|
121
|
-
`,mD=tn.forwardRef(function(t,r){let i=Je({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:l={},className:p,...u}=i,[m,h]=tn.useState([]),v=tn.useRef(0),I=tn.useRef(null);tn.useEffect(()=>{I.current&&(I.current(),I.current=null)},[m]);let P=tn.useRef(!1),w=cp(),R=tn.useRef(null),G=tn.useRef(null),N=tn.useCallback(k=>{let{pulsate:j,rippleX:D,rippleY:Z,rippleSize:ne,cb:le}=k;h(de=>[...de,(0,jf.jsx)(dD,{classes:{ripple:ve(l.ripple,fi.ripple),rippleVisible:ve(l.rippleVisible,fi.rippleVisible),ripplePulsate:ve(l.ripplePulsate,fi.ripplePulsate),child:ve(l.child,fi.child),childLeaving:ve(l.childLeaving,fi.childLeaving),childPulsate:ve(l.childPulsate,fi.childPulsate)},timeout:xy,pulsate:j,rippleX:D,rippleY:Z,rippleSize:ne},v.current)]),v.current+=1,I.current=le},[l]),U=tn.useCallback((k={},j={},D=()=>{})=>{let{pulsate:Z=!1,center:ne=a||j.pulsate,fakeElement:le=!1}=j;if(k?.type==="mousedown"&&P.current){P.current=!1;return}k?.type==="touchstart"&&(P.current=!0);let de=le?null:G.current,ye=de?de.getBoundingClientRect():{width:0,height:0,left:0,top:0},E,q,re;if(ne||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)E=Math.round(ye.width/2),q=Math.round(ye.height/2);else{let{clientX:oe,clientY:ce}=k.touches&&k.touches.length>0?k.touches[0]:k;E=Math.round(oe-ye.left),q=Math.round(ce-ye.top)}if(ne)re=Math.sqrt((2*ye.width**2+ye.height**2)/3),re%2===0&&(re+=1);else{let oe=Math.max(Math.abs((de?de.clientWidth:0)-E),E)*2+2,ce=Math.max(Math.abs((de?de.clientHeight:0)-q),q)*2+2;re=Math.sqrt(oe**2+ce**2)}k?.touches?R.current===null&&(R.current=()=>{N({pulsate:Z,rippleX:E,rippleY:q,rippleSize:re,cb:D})},w.start(lD,()=>{R.current&&(R.current(),R.current=null)})):N({pulsate:Z,rippleX:E,rippleY:q,rippleSize:re,cb:D})},[a,N,w]),Y=tn.useCallback(()=>{U({},{pulsate:!0})},[U]),L=tn.useCallback((k,j)=>{if(w.clear(),k?.type==="touchend"&&R.current){R.current(),R.current=null,w.start(0,()=>{L(k,j)});return}R.current=null,h(D=>D.length>0?D.slice(1):D),I.current=j},[w]);return tn.useImperativeHandle(r,()=>({pulsate:Y,start:U,stop:L}),[Y,U,L]),(0,jf.jsx)(fD,{className:ve(fi.root,l.root,p),ref:G,...u,children:(0,jf.jsx)(gy,{component:null,exit:!0,children:m})})}),XT=mD;function YT(e){return Ye("MuiButtonBase",e)}var yD=$e("MuiButtonBase",["root","disabled","focusVisible"]),ZT=yD;var zf=xe("react/jsx-runtime"),gD=e=>{let{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:a}=e,p=Xe({root:["root",t&&"disabled",r&&"focusVisible"]},YT,a);return r&&i&&(p.root+=` ${i}`),p},hD=Te("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ZT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vD=pa.forwardRef(function(t,r){let i=Je({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:l=!1,children:p,className:u,component:m="button",disabled:h=!1,disableRipple:v=!1,disableTouchRipple:I=!1,focusRipple:P=!1,focusVisibleClassName:w,LinkComponent:R="a",onBlur:G,onClick:N,onContextMenu:U,onDragLeave:Y,onFocus:L,onFocusVisible:k,onKeyDown:j,onKeyUp:D,onMouseDown:Z,onMouseLeave:ne,onMouseUp:le,onTouchEnd:de,onTouchMove:ye,onTouchStart:E,tabIndex:q=0,TouchRippleProps:re,touchRippleRef:oe,type:ce,...Me}=i,He=pa.useRef(null),Ie=Gf(),yt=en(Ie.ref,oe),[ct,ut]=pa.useState(!1);h&&ct&&ut(!1),pa.useImperativeHandle(a,()=>({focusVisible:()=>{ut(!0),He.current.focus()}}),[]);let ft=Ie.shouldMount&&!v&&!h;pa.useEffect(()=>{ct&&P&&!v&&Ie.pulsate()},[v,P,ct,Ie]);let at=La(Ie,"start",Z,I),tt=La(Ie,"stop",U,I),ke=La(Ie,"stop",Y,I),Vt=La(Ie,"stop",le,I),Dt=La(Ie,"stop",it=>{ct&&it.preventDefault(),ne&&ne(it)},I),gt=La(Ie,"start",E,I),dt=La(Ie,"stop",de,I),_t=La(Ie,"stop",ye,I),Ft=La(Ie,"stop",it=>{Mc(it.target)||ut(!1),G&&G(it)},!1),$t=Ma(it=>{He.current||(He.current=it.currentTarget),Mc(it.target)&&(ut(!0),k&&k(it)),L&&L(it)}),Ut=()=>{let it=He.current;return m&&m!=="button"&&!(it.tagName==="A"&&it.href)},ir=Ma(it=>{P&&!it.repeat&&ct&&it.key===" "&&Ie.stop(it,()=>{Ie.start(it)}),it.target===it.currentTarget&&Ut()&&it.key===" "&&it.preventDefault(),j&&j(it),it.target===it.currentTarget&&Ut()&&it.key==="Enter"&&!h&&(it.preventDefault(),N&&N(it))}),Mt=Ma(it=>{P&&it.key===" "&&ct&&!it.defaultPrevented&&Ie.stop(it,()=>{Ie.pulsate(it)}),D&&D(it),N&&it.target===it.currentTarget&&Ut()&&it.key===" "&&!it.defaultPrevented&&N(it)}),or=m;or==="button"&&(Me.href||Me.to)&&(or=R);let ze={};or==="button"?(ze.type=ce===void 0?"button":ce,ze.disabled=h):(!Me.href&&!Me.to&&(ze.role="button"),h&&(ze["aria-disabled"]=h));let cr=en(r,He),xt={...i,centerRipple:l,component:m,disabled:h,disableRipple:v,disableTouchRipple:I,focusRipple:P,tabIndex:q,focusVisible:ct},Wt=gD(xt);return(0,zf.jsxs)(hD,{as:or,className:ve(Wt.root,u),ownerState:xt,onBlur:Ft,onClick:N,onContextMenu:tt,onFocus:$t,onKeyDown:ir,onKeyUp:Mt,onMouseDown:at,onMouseLeave:Dt,onMouseUp:Vt,onDragLeave:ke,onTouchEnd:dt,onTouchMove:_t,onTouchStart:gt,ref:cr,tabIndex:h?-1:q,type:ce,...ze,...Me,children:[p,ft?(0,zf.jsx)(XT,{ref:yt,center:l,...re}):null]})});function La(e,t,r,i=!1){return Ma(a=>(r&&r(a),i||e[t](a),!0))}var Jn=vD;var cx=me(Ee(),1);function bD(e){return typeof e.main=="string"}function TD(e,t=[]){if(!bD(e))return!1;for(let r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Br(e=[]){return([,t])=>t&&TD(t,e)}function QT(e){return Ye("MuiAlert",e)}var xD=$e("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Py=xD;var Vf=me(Ee(),1);var JT=me(Ee(),1);function qT(e){return Ye("MuiCircularProgress",e)}var U3=$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var fp=xe("react/jsx-runtime"),Wi=44,Ey=na`
|
|
122
|
-
0% {
|
|
123
|
-
transform: rotate(0deg);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
100% {
|
|
127
|
-
transform: rotate(360deg);
|
|
128
|
-
}
|
|
129
|
-
`,wy=na`
|
|
130
|
-
0% {
|
|
131
|
-
stroke-dasharray: 1px, 200px;
|
|
132
|
-
stroke-dashoffset: 0;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
50% {
|
|
136
|
-
stroke-dasharray: 100px, 200px;
|
|
137
|
-
stroke-dashoffset: -15px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
100% {
|
|
141
|
-
stroke-dasharray: 1px, 200px;
|
|
142
|
-
stroke-dashoffset: -126px;
|
|
143
|
-
}
|
|
144
|
-
`,PD=typeof Ey!="string"?As`
|
|
145
|
-
animation: ${Ey} 1.4s linear infinite;
|
|
146
|
-
`:null,ED=typeof wy!="string"?As`
|
|
147
|
-
animation: ${wy} 1.4s ease-in-out infinite;
|
|
148
|
-
`:null,wD=e=>{let{classes:t,variant:r,color:i,disableShrink:a}=e,l={root:["root",r,`color${Ne(i)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Ne(r)}`,a&&"circleDisableShrink"]};return Xe(l,qT,t)},ID=Te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Ne(r.color)}`]]}})(Pt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:PD||{animation:`${Ey} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Br()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),RD=Te("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),SD=Te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.circle,t[`circle${Ne(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Pt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:ED||{animation:`${wy} 1.4s ease-in-out infinite`}}]}))),OD=Te("circle",{name:"MuiCircularProgress",slot:"Track"})(Pt(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),CD=JT.forwardRef(function(t,r){let i=Je({props:t,name:"MuiCircularProgress"}),{className:a,color:l="primary",disableShrink:p=!1,enableTrackSlot:u=!1,size:m=40,style:h,thickness:v=3.6,value:I=0,variant:P="indeterminate",...w}=i,R={...i,color:l,disableShrink:p,size:m,thickness:v,value:I,variant:P,enableTrackSlot:u},G=wD(R),N={},U={},Y={};if(P==="determinate"){let L=2*Math.PI*((Wi-v)/2);N.strokeDasharray=L.toFixed(3),Y["aria-valuenow"]=Math.round(I),N.strokeDashoffset=`${((100-I)/100*L).toFixed(3)}px`,U.transform="rotate(-90deg)"}return(0,fp.jsx)(ID,{className:ve(G.root,a),style:{width:m,height:m,...U,...h},ownerState:R,ref:r,role:"progressbar",...Y,...w,children:(0,fp.jsxs)(RD,{className:G.svg,ownerState:R,viewBox:`${Wi/2} ${Wi/2} ${Wi} ${Wi}`,children:[u?(0,fp.jsx)(OD,{className:G.track,ownerState:R,cx:Wi,cy:Wi,r:(Wi-v)/2,fill:"none",strokeWidth:v,"aria-hidden":"true"}):null,(0,fp.jsx)(SD,{className:G.circle,style:N,ownerState:R,cx:Wi,cy:Wi,r:(Wi-v)/2,fill:"none",strokeWidth:v})]})})}),Nc=CD;function KT(e){return Ye("MuiIconButton",e)}var DD=$e("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Iy=DD;var dp=xe("react/jsx-runtime"),_D=e=>{let{classes:t,disabled:r,color:i,edge:a,size:l,loading:p}=e,u={root:["root",p&&"loading",r&&"disabled",i!=="default"&&`color${Ne(i)}`,a&&`edge${Ne(a)}`,`size${Ne(l)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Xe(u,KT,t)},AD=Te(Jn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Ne(r.color)}`],r.edge&&t[`edge${Ne(r.edge)}`],t[`size${Ne(r.size)}`]]}})(Pt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Pt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Br()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Br()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Iy.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Iy.loading}`]:{color:"transparent"}}))),MD=Te("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ND=Vf.forwardRef(function(t,r){let i=Je({props:t,name:"MuiIconButton"}),{edge:a=!1,children:l,className:p,color:u="default",disabled:m=!1,disableFocusRipple:h=!1,size:v="medium",id:I,loading:P=null,loadingIndicator:w,...R}=i,G=Pc(I),N=w??(0,dp.jsx)(Nc,{"aria-labelledby":G,color:"inherit",size:16}),U={...i,edge:a,color:u,disabled:m,disableFocusRipple:h,loading:P,loadingIndicator:N,size:v},Y=_D(U);return(0,dp.jsxs)(AD,{id:P?G:I,className:ve(Y.root,p),centerRipple:!0,focusRipple:!h,disabled:m||P,ref:r,...R,ownerState:U,children:[typeof P=="boolean"&&(0,dp.jsx)("span",{className:Y.loadingWrapper,style:{display:"contents"},children:(0,dp.jsx)(MD,{className:Y.loadingIndicator,ownerState:U,children:P&&N})}),l]})}),ka=ND;var v$=me(Ee(),1);var ex=xe("react/jsx-runtime"),tx=Jt((0,ex.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined");var x$=me(Ee(),1);var rx=xe("react/jsx-runtime"),ox=Jt((0,rx.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined");var w$=me(Ee(),1);var nx=xe("react/jsx-runtime"),ix=Jt((0,nx.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline");var S$=me(Ee(),1);var ax=xe("react/jsx-runtime"),sx=Jt((0,ax.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var D$=me(Ee(),1);var lx=xe("react/jsx-runtime"),Wf=Jt((0,lx.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var di=xe("react/jsx-runtime"),LD=e=>{let{variant:t,color:r,severity:i,classes:a}=e,l={root:["root",`color${Ne(r||i)}`,`${t}${Ne(r||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Xe(l,QT,a)},kD=Te(ui,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ne(r.color||r.severity)}`]]}})(Pt(({theme:e})=>{let t=e.palette.mode==="light"?e.darken:e.lighten,r=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Br(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:r(e.palette[i].light,.9),[`& .${Py.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(Br(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${Py.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(Br(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),FD=Te("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),BD=Te("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),GD=Te("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),px={success:(0,di.jsx)(tx,{fontSize:"inherit"}),warning:(0,di.jsx)(ox,{fontSize:"inherit"}),error:(0,di.jsx)(ix,{fontSize:"inherit"}),info:(0,di.jsx)(sx,{fontSize:"inherit"})},UD=cx.forwardRef(function(t,r){let i=Je({props:t,name:"MuiAlert"}),{action:a,children:l,className:p,closeText:u="Close",color:m,components:h={},componentsProps:v={},icon:I,iconMapping:P=px,onClose:w,role:R="alert",severity:G="success",slotProps:N={},slots:U={},variant:Y="standard",...L}=i,k={...i,color:m,severity:G,variant:Y,colorSeverity:m||G},j=LD(k),D={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...U},slotProps:{...v,...N}},[Z,ne]=Ct("root",{ref:r,shouldForwardComponentProp:!0,className:ve(j.root,p),elementType:kD,externalForwardedProps:{...D,...L},ownerState:k,additionalProps:{role:R,elevation:0}}),[le,de]=Ct("icon",{className:j.icon,elementType:FD,externalForwardedProps:D,ownerState:k}),[ye,E]=Ct("message",{className:j.message,elementType:BD,externalForwardedProps:D,ownerState:k}),[q,re]=Ct("action",{className:j.action,elementType:GD,externalForwardedProps:D,ownerState:k}),[oe,ce]=Ct("closeButton",{elementType:ka,externalForwardedProps:D,ownerState:k}),[Me,He]=Ct("closeIcon",{elementType:Wf,externalForwardedProps:D,ownerState:k});return(0,di.jsxs)(Z,{...ne,children:[I!==!1?(0,di.jsx)(le,{...de,children:I||P[G]||px[G]}):null,(0,di.jsx)(ye,{...E,children:l}),a!=null?(0,di.jsx)(q,{...re,children:a}):null,a==null&&w?(0,di.jsx)(q,{...re,children:(0,di.jsx)(oe,{size:"small","aria-label":u,title:u,color:"inherit",onClick:w,...ce,children:(0,di.jsx)(Me,{fontSize:"small",...He})})}):null]})}),mp=UD;var dx=me(Ee(),1);function ux(e){return Ye("MuiTypography",e)}var jD=$e("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Hf=jD;var mx=xe("react/jsx-runtime"),zD={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},VD=OT(),WD=e=>{let{align:t,gutterBottom:r,noWrap:i,paragraph:a,variant:l,classes:p}=e,u={root:["root",l,e.align!=="inherit"&&`align${Ne(t)}`,r&&"gutterBottom",i&&"noWrap",a&&"paragraph"]};return Xe(u,ux,p)},HD=Te("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Ne(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Pt(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(Br()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Ne(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),fx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},$D=dx.forwardRef(function(t,r){let{color:i,...a}=Je({props:t,name:"MuiTypography"}),l=!zD[i],p=VD({...a,...l&&{color:i}}),{align:u="inherit",className:m,component:h,gutterBottom:v=!1,noWrap:I=!1,paragraph:P=!1,variant:w="body1",variantMapping:R=fx,...G}=p,N={...p,align:u,color:i,className:m,component:h,gutterBottom:v,noWrap:I,paragraph:P,variant:w,variantMapping:R},U=h||(P?"p":R[w]||fx[w])||"span",Y=WD(N);return(0,mx.jsx)(HD,{as:U,ref:r,className:ve(Y.root,m),...G,ownerState:N,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...G.style}})}),oo=$D;var nd=me(Ee(),1);var Ho=me(Ee(),1);var $f=me(Ee(),1);function XD(e){let t=$f.useRef({});return $f.useEffect(()=>{t.current=e}),t.current}var Ry=XD;function yx({array1:e,array2:t,parser:r=i=>i}){return e&&t&&e.length===t.length&&e.every((i,a)=>r(i)===r(t[a]))}function gx(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Xf(e={}){let{ignoreAccents:t=!0,ignoreCase:r=!0,limit:i,matchFrom:a="any",stringify:l,trim:p=!1}=e;return(u,{inputValue:m,getOptionLabel:h})=>{let v=p?m.trim():m;r&&(v=v.toLowerCase()),t&&(v=gx(v));let I=v?u.filter(P=>{let w=(l||h)(P);return r&&(w=w.toLowerCase()),t&&(w=gx(w)),a==="start"?w.startsWith(v):w.includes(v)}):u;return typeof i=="number"?I.slice(0,i):I}}var YD=Xf(),hx=5,ZD=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),QD=[];function vx(e,t,r,i){if(t||e==null||i)return"";let a=r(e);return typeof a=="string"?a:""}function qD(e){let{unstable_isActiveElementInListbox:t=ZD,unstable_classNamePrefix:r="Mui",autoComplete:i=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:p=!1,clearOnBlur:u=!e.freeSolo,clearOnEscape:m=!1,componentName:h="useAutocomplete",defaultValue:v=e.multiple?QD:null,disableClearable:I=!1,disableCloseOnSelect:P=!1,disabled:w,disabledItemsFocusable:R=!1,disableListWrap:G=!1,filterOptions:N=YD,filterSelectedOptions:U=!1,freeSolo:Y=!1,getOptionDisabled:L,getOptionKey:k,getOptionLabel:j=Se=>Se.label??Se,groupBy:D,handleHomeEndKeys:Z=!e.freeSolo,id:ne,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:ye=(Se,we)=>Se===we,multiple:E=!1,onChange:q,onClose:re,onHighlightChange:oe,onInputChange:ce,onOpen:Me,open:He,openOnFocus:Ie=!1,options:yt,readOnly:ct=!1,renderValue:ut,selectOnFocus:ft=!e.freeSolo,value:at}=e,tt=Oi(ne),ke=j;ke=Se=>{let we=j(Se);return typeof we!="string"?String(we):we};let Vt=Ho.useRef(!1),Dt=Ho.useRef(!0),gt=Ho.useRef(null),dt=Ho.useRef(null),[_t,Ft]=Ho.useState(null),[$t,Ut]=Ho.useState(-1),ir=a?0:-1,Mt=Ho.useRef(ir),or=Ho.useRef(vx(v??at,E,ke)).current,[ze,cr]=ns({controlled:at,default:v,name:h}),[xt,Wt]=ns({controlled:de,default:or,name:h,state:"inputValue"}),[it,Gr]=Ho.useState(!1),Xt=Ho.useCallback((Se,we,rt)=>{if(!(E?ze.length<we.length:we!==null)&&!u)return;let Lt=vx(we,E,ke,ut);xt!==Lt&&(Wt(Lt),ce&&ce(Se,Lt,rt))},[ke,xt,E,ce,Wt,u,ze,ut]),[Ur,Qr]=ns({controlled:He,default:!1,name:h,state:"open"}),[Uo,qr]=Ho.useState(!0),Oo=!E&&ze!=null&&xt===ke(ze),ur=Ur&&!ct,Ke=ur?N(yt.filter(Se=>!(U&&(E?ze:[ze]).some(we=>we!==null&&ye(Se,we)))),{inputValue:Oo&&Uo?"":xt,getOptionLabel:ke}):[],jr=Ry({filteredOptions:Ke,value:ze,inputValue:xt});Ho.useEffect(()=>{let Se=ze!==jr.value;it&&!Se||Y&&!Se||Xt(null,ze,"reset")},[ze,Xt,it,jr.value,Y]);let xo=Ur&&Ke.length>0&&!ct,yo=ci(Se=>{if(Se===-1)gt.current.focus();else{let we=ut?"data-item-index":"data-tag-index";_t.querySelector(`[${we}="${Se}"]`).focus()}});Ho.useEffect(()=>{E&&$t>ze.length-1&&(Ut(-1),yo(-1))},[ze,E,$t,yo]);function jo(Se,we){if(!dt.current||Se<0||Se>=Ke.length)return-1;let rt=Se;for(;;){let Nt=dt.current.querySelector(`[data-option-index="${rt}"]`),Lt=R?!1:!Nt||Nt.disabled||Nt.getAttribute("aria-disabled")==="true";if(Nt&&Nt.hasAttribute("tabindex")&&!Lt)return rt;if(we==="next"?rt=(rt+1)%Ke.length:rt=(rt-1+Ke.length)%Ke.length,rt===Se)return-1}}let bt=ci(({event:Se,index:we,reason:rt})=>{if(Mt.current=we,we===-1?gt.current.removeAttribute("aria-activedescendant"):gt.current.setAttribute("aria-activedescendant",`${tt}-option-${we}`),oe&&["mouse","keyboard","touch"].includes(rt)&&oe(Se,we===-1?null:Ke[we],rt),!dt.current)return;let Nt=dt.current.querySelector(`[role="option"].${r}-focused`);Nt&&(Nt.classList.remove(`${r}-focused`),Nt.classList.remove(`${r}-focusVisible`));let Lt=dt.current;if(dt.current.getAttribute("role")!=="listbox"&&(Lt=dt.current.parentElement.querySelector('[role="listbox"]')),!Lt)return;if(we===-1){Lt.scrollTop=0;return}let Rr=dt.current.querySelector(`[data-option-index="${we}"]`);if(Rr&&(Rr.classList.add(`${r}-focused`),rt==="keyboard"&&Rr.classList.add(`${r}-focusVisible`),Lt.scrollHeight>Lt.clientHeight&&rt!=="mouse"&&rt!=="touch")){let Pr=Rr,Eo=Lt.clientHeight+Lt.scrollTop,hn=Pr.offsetTop+Pr.offsetHeight;hn>Eo?Lt.scrollTop=hn-Lt.clientHeight:Pr.offsetTop-Pr.offsetHeight*(D?1.3:0)<Lt.scrollTop&&(Lt.scrollTop=Pr.offsetTop-Pr.offsetHeight*(D?1.3:0))}}),Ht=ci(({event:Se,diff:we,direction:rt="next",reason:Nt})=>{if(!ur)return;let Rr=jo((()=>{let Pr=Ke.length-1;if(we==="reset")return ir;if(we==="start")return 0;if(we==="end")return Pr;let Eo=Mt.current+we;return Eo<0?Eo===-1&&le?-1:G&&Mt.current!==-1||Math.abs(we)>1?0:Pr:Eo>Pr?Eo===Pr+1&&le?-1:G||Math.abs(we)>1?Pr:0:Eo})(),rt);if(bt({index:Rr,reason:Nt,event:Se}),i&&we!=="reset")if(Rr===-1)gt.current.value=xt;else{let Pr=ke(Ke[Rr]);gt.current.value=Pr,Pr.toLowerCase().indexOf(xt.toLowerCase())===0&&xt.length>0&>.current.setSelectionRange(xt.length,Pr.length)}}),mr=!yx({array1:jr.filteredOptions,array2:Ke,parser:ke}),go=()=>{let Se=(we,rt)=>{let Nt=we?ke(we):"",Lt=rt?ke(rt):"";return Nt===Lt};if(Mt.current!==-1&&!yx({array1:jr.filteredOptions,array2:Ke,parser:ke})&&jr.inputValue===xt&&(E?ze.length===jr.value.length&&jr.value.every((we,rt)=>ke(ze[rt])===ke(we)):Se(jr.value,ze))){let we=jr.filteredOptions[Mt.current];if(we)return Ke.findIndex(rt=>ke(rt)===ke(we))}return-1},an=Ho.useCallback(()=>{if(!ur)return;let Se=go();if(Se!==-1){Mt.current=Se;return}let we=E?ze[0]:ze;if(Ke.length===0||we==null){Ht({diff:"reset"});return}if(dt.current){if(we!=null){let rt=Ke[Mt.current];if(E&&rt&&ze.findIndex(Lt=>ye(rt,Lt))!==-1)return;let Nt=Ke.findIndex(Lt=>ye(Lt,we));Nt===-1?Ht({diff:"reset"}):bt({index:Nt});return}if(Mt.current>=Ke.length-1){bt({index:Ke.length-1});return}bt({index:Mt.current})}},[Ke.length,E?!1:ze,U,Ht,bt,ur,xt,E]),Cr=ci(Se=>{Vs(dt,Se),Se&&an()});Ho.useEffect(()=>{(mr||ur)&&an()},[an,mr,ur]);let Jr=Se=>{Ur||(Qr(!0),qr(!0),Me&&Me(Se))},yn=(Se,we)=>{Ur&&(Qr(!1),re&&re(Se,we))},zo=(Se,we,rt,Nt)=>{if(E){if(ze.length===we.length&&ze.every((Lt,Rr)=>Lt===we[Rr]))return}else if(ze===we)return;q&&q(Se,we,rt,Nt),cr(we)},Dr=Ho.useRef(!1),Po=(Se,we,rt="selectOption",Nt="options")=>{let Lt=rt,Rr=we;if(E){Rr=Array.isArray(ze)?ze.slice():[];let Pr=Rr.findIndex(Eo=>ye(we,Eo));Pr===-1?Rr.push(we):Nt!=="freeSolo"&&(Rr.splice(Pr,1),Lt="removeOption")}Xt(Se,Rr,Lt),zo(Se,Rr,Lt,{option:we}),!P&&(!Se||!Se.ctrlKey&&!Se.metaKey)&&yn(Se,Lt),(p===!0||p==="touch"&&Dr.current||p==="mouse"&&!Dr.current)&>.current.blur()};function Mn(Se,we){if(Se===-1)return-1;let rt=Se;for(;;){if(we==="next"&&rt===ze.length||we==="previous"&&rt===-1)return-1;let Nt=ut?"data-item-index":"data-tag-index",Lt=_t.querySelector(`[${Nt}="${rt}"]`);if(!Lt||!Lt.hasAttribute("tabindex")||Lt.disabled||Lt.getAttribute("aria-disabled")==="true")rt+=we==="next"?1:-1;else return rt}}let Yo=(Se,we)=>{if(!E)return;xt===""&&yn(Se,"toggleInput");let rt=$t;$t===-1?xt===""&&we==="previous"&&(rt=ze.length-1):(rt+=we==="next"?1:-1,rt<0&&(rt=0),rt===ze.length&&(rt=-1)),rt=Mn(rt,we),Ut(rt),yo(rt)},st=Se=>{Vt.current=!0,Wt(""),ce&&ce(Se,"","clear"),zo(Se,E?[]:null,"clear")},Ot=Se=>we=>{if(Se.onKeyDown&&Se.onKeyDown(we),!we.defaultMuiPrevented&&($t!==-1&&!["ArrowLeft","ArrowRight"].includes(we.key)&&(Ut(-1),yo(-1)),we.which!==229))switch(we.key){case"Home":ur&&Z&&(we.preventDefault(),Ht({diff:"start",direction:"next",reason:"keyboard",event:we}));break;case"End":ur&&Z&&(we.preventDefault(),Ht({diff:"end",direction:"previous",reason:"keyboard",event:we}));break;case"PageUp":we.preventDefault(),Ht({diff:-hx,direction:"previous",reason:"keyboard",event:we}),Jr(we);break;case"PageDown":we.preventDefault(),Ht({diff:hx,direction:"next",reason:"keyboard",event:we}),Jr(we);break;case"ArrowDown":we.preventDefault(),Ht({diff:1,direction:"next",reason:"keyboard",event:we}),Jr(we);break;case"ArrowUp":we.preventDefault(),Ht({diff:-1,direction:"previous",reason:"keyboard",event:we}),Jr(we);break;case"ArrowLeft":!E&&ut?yo(0):Yo(we,"previous");break;case"ArrowRight":!E&&ut?yo(-1):Yo(we,"next");break;case"Enter":if(Mt.current!==-1&&ur){let rt=Ke[Mt.current],Nt=L?L(rt):!1;if(we.preventDefault(),Nt)return;Po(we,rt,"selectOption"),i&>.current.setSelectionRange(gt.current.value.length,gt.current.value.length)}else Y&&xt!==""&&Oo===!1&&(E&&we.preventDefault(),Po(we,xt,"createOption","freeSolo"));break;case"Escape":ur?(we.preventDefault(),we.stopPropagation(),yn(we,"escape")):m&&(xt!==""||E&&ze.length>0||ut)&&(we.preventDefault(),we.stopPropagation(),st(we));break;case"Backspace":if(E&&!ct&&xt===""&&ze.length>0){let rt=$t===-1?ze.length-1:$t,Nt=ze.slice();Nt.splice(rt,1),zo(we,Nt,"removeOption",{option:ze[rt]})}!E&&ut&&!ct&&(cr(null),yo(-1));break;case"Delete":if(E&&!ct&&xt===""&&ze.length>0&&$t!==-1){let rt=$t,Nt=ze.slice();Nt.splice(rt,1),zo(we,Nt,"removeOption",{option:ze[rt]})}!E&&ut&&!ct&&(cr(null),yo(-1));break;default:}},Yt=Se=>{Gr(!0),Ie&&!Vt.current&&Jr(Se)},zt=Se=>{if(t(dt)){gt.current.focus();return}Gr(!1),Dt.current=!0,Vt.current=!1,l&&Mt.current!==-1&&ur?Po(Se,Ke[Mt.current],"blur"):l&&Y&&xt!==""?Po(Se,xt,"blur","freeSolo"):u&&Xt(Se,ze,"blur"),yn(Se,"blur")},Zt=Se=>{let we=Se.target.value;xt!==we&&(Wt(we),qr(!1),ce&&ce(Se,we,"input")),we===""?!I&&!E&&zo(Se,null,"clear"):Jr(Se)},Vo=Se=>{let we=Number(Se.currentTarget.getAttribute("data-option-index"));Mt.current!==we&&bt({event:Se,index:we,reason:"mouse"})},zr=Se=>{bt({event:Se,index:Number(Se.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Dr.current=!0},gn=Se=>{let we=Number(Se.currentTarget.getAttribute("data-option-index"));Po(Se,Ke[we],"selectOption"),Dr.current=!1},Wn=Se=>we=>{let rt=ze.slice();rt.splice(Se,1),zo(we,rt,"removeOption",{option:ze[Se]})},io=Se=>{zo(Se,null,"removeOption",{option:ze})},Kr=Se=>{Ur?yn(Se,"toggleInput"):Jr(Se)},_r=Se=>{Se.currentTarget.contains(Se.target)&&Se.target.getAttribute("id")!==tt&&Se.preventDefault()},Hn=Se=>{Se.currentTarget.contains(Se.target)&&(gt.current.focus(),ft&&Dt.current&>.current.selectionEnd-gt.current.selectionStart===0&>.current.select(),Dt.current=!1)},ri=Se=>{!w&&(xt===""||!Ur)&&Kr(Se)},Zo=Y&&xt.length>0;Zo=Zo||(E?ze.length>0:ze!==null);let oi=Ke;if(D){let Se=new Map,we=!1;oi=Ke.reduce((rt,Nt,Lt)=>{let Rr=D(Nt);return rt.length>0&&rt[rt.length-1].group===Rr?rt[rt.length-1].options.push(Nt):rt.push({key:Lt,index:Lt,group:Rr,options:[Nt]}),rt},[])}return w&&it&&zt(),{getRootProps:(Se={})=>({...Se,onKeyDown:Ot(Se),onMouseDown:_r,onClick:Hn}),getInputLabelProps:()=>({id:`${tt}-label`,htmlFor:tt}),getInputProps:()=>({id:tt,value:xt,onBlur:zt,onFocus:Yt,onChange:Zt,onMouseDown:ri,"aria-activedescendant":ur?"":null,"aria-autocomplete":i?"both":"list","aria-controls":xo?`${tt}-listbox`:void 0,"aria-expanded":xo,autoComplete:"off",ref:gt,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:w}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:st}),getItemProps:({index:Se=0}={})=>({...E&&{key:Se},...ut?{"data-item-index":Se}:{"data-tag-index":Se},tabIndex:-1,...!ct&&{onDelete:E?Wn(Se):io}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Kr}),getTagProps:({index:Se})=>({key:Se,"data-tag-index":Se,tabIndex:-1,...!ct&&{onDelete:Wn(Se)}}),getListboxProps:()=>({role:"listbox",id:`${tt}-listbox`,"aria-labelledby":`${tt}-label`,ref:Cr,onMouseDown:Se=>{Se.preventDefault()}}),getOptionProps:({index:Se,option:we})=>{let rt=(E?ze:[ze]).some(Lt=>Lt!=null&&ye(we,Lt)),Nt=L?L(we):!1;return{key:k?.(we)??ke(we),tabIndex:-1,role:"option",id:`${tt}-option-${Se}`,onMouseMove:Vo,onClick:gn,onTouchStart:zr,"data-option-index":Se,"aria-disabled":Nt,"aria-selected":rt}},id:tt,inputValue:xt,value:ze,dirty:Zo,expanded:ur&&_t,popupOpen:ur,focused:it||$t!==-1,anchorEl:_t,setAnchorEl:Ft,focusedItem:$t,focusedTag:$t,groupedOptions:oi}}var Sy=qD;var Wx=me(Ee(),1);var Dn=me(Ee(),1);var _o="top",rn="bottom",$o="right",ko="left",Yf="auto",as=[_o,rn,$o,ko],Fa="start",Zs="end",bx="clippingParents",Zf="viewport",yp="popper",Tx="reference",Oy=as.reduce(function(e,t){return e.concat([t+"-"+Fa,t+"-"+Zs])},[]),Qf=[].concat(as,[Yf]).reduce(function(e,t){return e.concat([t,t+"-"+Fa,t+"-"+Zs])},[]),JD="beforeRead",KD="read",e_="afterRead",t_="beforeMain",r_="main",o_="afterMain",n_="beforeWrite",i_="write",a_="afterWrite",xx=[JD,KD,e_,t_,r_,o_,n_,i_,a_];function fn(e){return e?(e.nodeName||"").toLowerCase():null}function bo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _i(e){var t=bo(e).Element;return e instanceof t||e instanceof Element}function on(e){var t=bo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gp(e){if(typeof ShadowRoot>"u")return!1;var t=bo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function s_(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},l=t.elements[r];!on(l)||!fn(l)||(Object.assign(l.style,i),Object.keys(a).forEach(function(p){var u=a[p];u===!1?l.removeAttribute(p):l.setAttribute(p,u===!0?"":u)}))})}function l_(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],l=t.attributes[i]||{},p=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),u=p.reduce(function(m,h){return m[h]="",m},{});!on(a)||!fn(a)||(Object.assign(a.style,u),Object.keys(l).forEach(function(m){a.removeAttribute(m)}))})}}var Px={name:"applyStyles",enabled:!0,phase:"write",fn:s_,effect:l_,requires:["computeStyles"]};function dn(e){return e.split("-")[0]}var Hi=Math.max,Qs=Math.min,Ba=Math.round;function hp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Lc(){return!/^((?!chrome|android).)*safari/i.test(hp())}function Ai(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,l=1;t&&on(e)&&(a=e.offsetWidth>0&&Ba(i.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Ba(i.height)/e.offsetHeight||1);var p=_i(e)?bo(e):window,u=p.visualViewport,m=!Lc()&&r,h=(i.left+(m&&u?u.offsetLeft:0))/a,v=(i.top+(m&&u?u.offsetTop:0))/l,I=i.width/a,P=i.height/l;return{width:I,height:P,top:v,right:h+I,bottom:v+P,left:h,x:h,y:v}}function qs(e){var t=Ai(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function kc(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&gp(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Un(e){return bo(e).getComputedStyle(e)}function Cy(e){return["table","td","th"].indexOf(fn(e))>=0}function En(e){return((_i(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ga(e){return fn(e)==="html"?e:e.assignedSlot||e.parentNode||(gp(e)?e.host:null)||En(e)}function Ex(e){return!on(e)||Un(e).position==="fixed"?null:e.offsetParent}function p_(e){var t=/firefox/i.test(hp()),r=/Trident/i.test(hp());if(r&&on(e)){var i=Un(e);if(i.position==="fixed")return null}var a=Ga(e);for(gp(a)&&(a=a.host);on(a)&&["html","body"].indexOf(fn(a))<0;){var l=Un(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function $i(e){for(var t=bo(e),r=Ex(e);r&&Cy(r)&&Un(r).position==="static";)r=Ex(r);return r&&(fn(r)==="html"||fn(r)==="body"&&Un(r).position==="static")?t:r||p_(e)||t}function Js(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ks(e,t,r){return Hi(e,Qs(t,r))}function wx(e,t,r){var i=Ks(e,t,r);return i>r?r:i}function Fc(){return{top:0,right:0,bottom:0,left:0}}function Bc(e){return Object.assign({},Fc(),e)}function Gc(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var c_=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Bc(typeof t!="number"?t:Gc(t,as))};function u_(e){var t,r=e.state,i=e.name,a=e.options,l=r.elements.arrow,p=r.modifiersData.popperOffsets,u=dn(r.placement),m=Js(u),h=[ko,$o].indexOf(u)>=0,v=h?"height":"width";if(!(!l||!p)){var I=c_(a.padding,r),P=qs(l),w=m==="y"?_o:ko,R=m==="y"?rn:$o,G=r.rects.reference[v]+r.rects.reference[m]-p[m]-r.rects.popper[v],N=p[m]-r.rects.reference[m],U=$i(l),Y=U?m==="y"?U.clientHeight||0:U.clientWidth||0:0,L=G/2-N/2,k=I[w],j=Y-P[v]-I[R],D=Y/2-P[v]/2+L,Z=Ks(k,D,j),ne=m;r.modifiersData[i]=(t={},t[ne]=Z,t.centerOffset=Z-D,t)}}function f_(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||kc(t.elements.popper,a)&&(t.elements.arrow=a))}var Ix={name:"arrow",enabled:!0,phase:"main",fn:u_,effect:f_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mi(e){return e.split("-")[1]}var d_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m_(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:Ba(r*a)/a||0,y:Ba(i*a)/a||0}}function Rx(e){var t,r=e.popper,i=e.popperRect,a=e.placement,l=e.variation,p=e.offsets,u=e.position,m=e.gpuAcceleration,h=e.adaptive,v=e.roundOffsets,I=e.isFixed,P=p.x,w=P===void 0?0:P,R=p.y,G=R===void 0?0:R,N=typeof v=="function"?v({x:w,y:G}):{x:w,y:G};w=N.x,G=N.y;var U=p.hasOwnProperty("x"),Y=p.hasOwnProperty("y"),L=ko,k=_o,j=window;if(h){var D=$i(r),Z="clientHeight",ne="clientWidth";if(D===bo(r)&&(D=En(r),Un(D).position!=="static"&&u==="absolute"&&(Z="scrollHeight",ne="scrollWidth")),D=D,a===_o||(a===ko||a===$o)&&l===Zs){k=rn;var le=I&&D===j&&j.visualViewport?j.visualViewport.height:D[Z];G-=le-i.height,G*=m?1:-1}if(a===ko||(a===_o||a===rn)&&l===Zs){L=$o;var de=I&&D===j&&j.visualViewport?j.visualViewport.width:D[ne];w-=de-i.width,w*=m?1:-1}}var ye=Object.assign({position:u},h&&d_),E=v===!0?m_({x:w,y:G},bo(r)):{x:w,y:G};if(w=E.x,G=E.y,m){var q;return Object.assign({},ye,(q={},q[k]=Y?"0":"",q[L]=U?"0":"",q.transform=(j.devicePixelRatio||1)<=1?"translate("+w+"px, "+G+"px)":"translate3d("+w+"px, "+G+"px, 0)",q))}return Object.assign({},ye,(t={},t[k]=Y?G+"px":"",t[L]=U?w+"px":"",t.transform="",t))}function y_(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,l=r.adaptive,p=l===void 0?!0:l,u=r.roundOffsets,m=u===void 0?!0:u,h={placement:dn(t.placement),variation:Mi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rx(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:p,roundOffsets:m})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rx(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Sx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:y_,data:{}};var qf={passive:!0};function g_(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,l=a===void 0?!0:a,p=i.resize,u=p===void 0?!0:p,m=bo(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&h.forEach(function(v){v.addEventListener("scroll",r.update,qf)}),u&&m.addEventListener("resize",r.update,qf),function(){l&&h.forEach(function(v){v.removeEventListener("scroll",r.update,qf)}),u&&m.removeEventListener("resize",r.update,qf)}}var Ox={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:g_,data:{}};var h_={left:"right",right:"left",bottom:"top",top:"bottom"};function vp(e){return e.replace(/left|right|bottom|top/g,function(t){return h_[t]})}var v_={start:"end",end:"start"};function Jf(e){return e.replace(/start|end/g,function(t){return v_[t]})}function el(e){var t=bo(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function tl(e){return Ai(En(e)).left+el(e).scrollLeft}function Dy(e,t){var r=bo(e),i=En(e),a=r.visualViewport,l=i.clientWidth,p=i.clientHeight,u=0,m=0;if(a){l=a.width,p=a.height;var h=Lc();(h||!h&&t==="fixed")&&(u=a.offsetLeft,m=a.offsetTop)}return{width:l,height:p,x:u+tl(e),y:m}}function _y(e){var t,r=En(e),i=el(e),a=(t=e.ownerDocument)==null?void 0:t.body,l=Hi(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),p=Hi(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-i.scrollLeft+tl(e),m=-i.scrollTop;return Un(a||r).direction==="rtl"&&(u+=Hi(r.clientWidth,a?a.clientWidth:0)-l),{width:l,height:p,x:u,y:m}}function rl(e){var t=Un(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Kf(e){return["html","body","#document"].indexOf(fn(e))>=0?e.ownerDocument.body:on(e)&&rl(e)?e:Kf(Ga(e))}function ss(e,t){var r;t===void 0&&(t=[]);var i=Kf(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),l=bo(i),p=a?[l].concat(l.visualViewport||[],rl(i)?i:[]):i,u=t.concat(p);return a?u:u.concat(ss(Ga(p)))}function bp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function b_(e,t){var r=Ai(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Cx(e,t,r){return t===Zf?bp(Dy(e,r)):_i(t)?b_(t,r):bp(_y(En(e)))}function T_(e){var t=ss(Ga(e)),r=["absolute","fixed"].indexOf(Un(e).position)>=0,i=r&&on(e)?$i(e):e;return _i(i)?t.filter(function(a){return _i(a)&&kc(a,i)&&fn(a)!=="body"}):[]}function Ay(e,t,r,i){var a=t==="clippingParents"?T_(e):[].concat(t),l=[].concat(a,[r]),p=l[0],u=l.reduce(function(m,h){var v=Cx(e,h,i);return m.top=Hi(v.top,m.top),m.right=Qs(v.right,m.right),m.bottom=Qs(v.bottom,m.bottom),m.left=Hi(v.left,m.left),m},Cx(e,p,i));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function Uc(e){var t=e.reference,r=e.element,i=e.placement,a=i?dn(i):null,l=i?Mi(i):null,p=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,m;switch(a){case _o:m={x:p,y:t.y-r.height};break;case rn:m={x:p,y:t.y+t.height};break;case $o:m={x:t.x+t.width,y:u};break;case ko:m={x:t.x-r.width,y:u};break;default:m={x:t.x,y:t.y}}var h=a?Js(a):null;if(h!=null){var v=h==="y"?"height":"width";switch(l){case Fa:m[h]=m[h]-(t[v]/2-r[v]/2);break;case Zs:m[h]=m[h]+(t[v]/2-r[v]/2);break;default:}}return m}function Xi(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=i===void 0?e.placement:i,l=r.strategy,p=l===void 0?e.strategy:l,u=r.boundary,m=u===void 0?bx:u,h=r.rootBoundary,v=h===void 0?Zf:h,I=r.elementContext,P=I===void 0?yp:I,w=r.altBoundary,R=w===void 0?!1:w,G=r.padding,N=G===void 0?0:G,U=Bc(typeof N!="number"?N:Gc(N,as)),Y=P===yp?Tx:yp,L=e.rects.popper,k=e.elements[R?Y:P],j=Ay(_i(k)?k:k.contextElement||En(e.elements.popper),m,v,p),D=Ai(e.elements.reference),Z=Uc({reference:D,element:L,strategy:"absolute",placement:a}),ne=bp(Object.assign({},L,Z)),le=P===yp?ne:D,de={top:j.top-le.top+U.top,bottom:le.bottom-j.bottom+U.bottom,left:j.left-le.left+U.left,right:le.right-j.right+U.right},ye=e.modifiersData.offset;if(P===yp&&ye){var E=ye[a];Object.keys(de).forEach(function(q){var re=[$o,rn].indexOf(q)>=0?1:-1,oe=[_o,rn].indexOf(q)>=0?"y":"x";de[q]+=E[oe]*re})}return de}function My(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,l=r.rootBoundary,p=r.padding,u=r.flipVariations,m=r.allowedAutoPlacements,h=m===void 0?Qf:m,v=Mi(i),I=v?u?Oy:Oy.filter(function(R){return Mi(R)===v}):as,P=I.filter(function(R){return h.indexOf(R)>=0});P.length===0&&(P=I);var w=P.reduce(function(R,G){return R[G]=Xi(e,{placement:G,boundary:a,rootBoundary:l,padding:p})[dn(G)],R},{});return Object.keys(w).sort(function(R,G){return w[R]-w[G]})}function x_(e){if(dn(e)===Yf)return[];var t=vp(e);return[Jf(e),t,Jf(t)]}function P_(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,l=a===void 0?!0:a,p=r.altAxis,u=p===void 0?!0:p,m=r.fallbackPlacements,h=r.padding,v=r.boundary,I=r.rootBoundary,P=r.altBoundary,w=r.flipVariations,R=w===void 0?!0:w,G=r.allowedAutoPlacements,N=t.options.placement,U=dn(N),Y=U===N,L=m||(Y||!R?[vp(N)]:x_(N)),k=[N].concat(L).reduce(function(at,tt){return at.concat(dn(tt)===Yf?My(t,{placement:tt,boundary:v,rootBoundary:I,padding:h,flipVariations:R,allowedAutoPlacements:G}):tt)},[]),j=t.rects.reference,D=t.rects.popper,Z=new Map,ne=!0,le=k[0],de=0;de<k.length;de++){var ye=k[de],E=dn(ye),q=Mi(ye)===Fa,re=[_o,rn].indexOf(E)>=0,oe=re?"width":"height",ce=Xi(t,{placement:ye,boundary:v,rootBoundary:I,altBoundary:P,padding:h}),Me=re?q?$o:ko:q?rn:_o;j[oe]>D[oe]&&(Me=vp(Me));var He=vp(Me),Ie=[];if(l&&Ie.push(ce[E]<=0),u&&Ie.push(ce[Me]<=0,ce[He]<=0),Ie.every(function(at){return at})){le=ye,ne=!1;break}Z.set(ye,Ie)}if(ne)for(var yt=R?3:1,ct=function(tt){var ke=k.find(function(Vt){var Dt=Z.get(Vt);if(Dt)return Dt.slice(0,tt).every(function(gt){return gt})});if(ke)return le=ke,"break"},ut=yt;ut>0;ut--){var ft=ct(ut);if(ft==="break")break}t.placement!==le&&(t.modifiersData[i]._skip=!0,t.placement=le,t.reset=!0)}}var Dx={name:"flip",enabled:!0,phase:"main",fn:P_,requiresIfExists:["offset"],data:{_skip:!1}};function _x(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ax(e){return[_o,$o,rn,ko].some(function(t){return e[t]>=0})}function E_(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,p=Xi(t,{elementContext:"reference"}),u=Xi(t,{altBoundary:!0}),m=_x(p,i),h=_x(u,a,l),v=Ax(m),I=Ax(h);t.modifiersData[r]={referenceClippingOffsets:m,popperEscapeOffsets:h,isReferenceHidden:v,hasPopperEscaped:I},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":I})}var Mx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:E_};function w_(e,t,r){var i=dn(e),a=[ko,_o].indexOf(i)>=0?-1:1,l=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,p=l[0],u=l[1];return p=p||0,u=(u||0)*a,[ko,$o].indexOf(i)>=0?{x:u,y:p}:{x:p,y:u}}function I_(e){var t=e.state,r=e.options,i=e.name,a=r.offset,l=a===void 0?[0,0]:a,p=Qf.reduce(function(v,I){return v[I]=w_(I,t.rects,l),v},{}),u=p[t.placement],m=u.x,h=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=m,t.modifiersData.popperOffsets.y+=h),t.modifiersData[i]=p}var Nx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:I_};function R_(e){var t=e.state,r=e.name;t.modifiersData[r]=Uc({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Lx={name:"popperOffsets",enabled:!0,phase:"read",fn:R_,data:{}};function Ny(e){return e==="x"?"y":"x"}function S_(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,l=a===void 0?!0:a,p=r.altAxis,u=p===void 0?!1:p,m=r.boundary,h=r.rootBoundary,v=r.altBoundary,I=r.padding,P=r.tether,w=P===void 0?!0:P,R=r.tetherOffset,G=R===void 0?0:R,N=Xi(t,{boundary:m,rootBoundary:h,padding:I,altBoundary:v}),U=dn(t.placement),Y=Mi(t.placement),L=!Y,k=Js(U),j=Ny(k),D=t.modifiersData.popperOffsets,Z=t.rects.reference,ne=t.rects.popper,le=typeof G=="function"?G(Object.assign({},t.rects,{placement:t.placement})):G,de=typeof le=="number"?{mainAxis:le,altAxis:le}:Object.assign({mainAxis:0,altAxis:0},le),ye=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(D){if(l){var q,re=k==="y"?_o:ko,oe=k==="y"?rn:$o,ce=k==="y"?"height":"width",Me=D[k],He=Me+N[re],Ie=Me-N[oe],yt=w?-ne[ce]/2:0,ct=Y===Fa?Z[ce]:ne[ce],ut=Y===Fa?-ne[ce]:-Z[ce],ft=t.elements.arrow,at=w&&ft?qs(ft):{width:0,height:0},tt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Fc(),ke=tt[re],Vt=tt[oe],Dt=Ks(0,Z[ce],at[ce]),gt=L?Z[ce]/2-yt-Dt-ke-de.mainAxis:ct-Dt-ke-de.mainAxis,dt=L?-Z[ce]/2+yt+Dt+Vt+de.mainAxis:ut+Dt+Vt+de.mainAxis,_t=t.elements.arrow&&$i(t.elements.arrow),Ft=_t?k==="y"?_t.clientTop||0:_t.clientLeft||0:0,$t=(q=ye?.[k])!=null?q:0,Ut=Me+gt-$t-Ft,ir=Me+dt-$t,Mt=Ks(w?Qs(He,Ut):He,Me,w?Hi(Ie,ir):Ie);D[k]=Mt,E[k]=Mt-Me}if(u){var or,ze=k==="x"?_o:ko,cr=k==="x"?rn:$o,xt=D[j],Wt=j==="y"?"height":"width",it=xt+N[ze],Gr=xt-N[cr],Xt=[_o,ko].indexOf(U)!==-1,Ur=(or=ye?.[j])!=null?or:0,Qr=Xt?it:xt-Z[Wt]-ne[Wt]-Ur+de.altAxis,Uo=Xt?xt+Z[Wt]+ne[Wt]-Ur-de.altAxis:Gr,qr=w&&Xt?wx(Qr,xt,Uo):Ks(w?Qr:it,xt,w?Uo:Gr);D[j]=qr,E[j]=qr-xt}t.modifiersData[i]=E}}var kx={name:"preventOverflow",enabled:!0,phase:"main",fn:S_,requiresIfExists:["offset"]};function Ly(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ky(e){return e===bo(e)||!on(e)?el(e):Ly(e)}function O_(e){var t=e.getBoundingClientRect(),r=Ba(t.width)/e.offsetWidth||1,i=Ba(t.height)/e.offsetHeight||1;return r!==1||i!==1}function Fy(e,t,r){r===void 0&&(r=!1);var i=on(t),a=on(t)&&O_(t),l=En(t),p=Ai(e,a,r),u={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(i||!i&&!r)&&((fn(t)!=="body"||rl(l))&&(u=ky(t)),on(t)?(m=Ai(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):l&&(m.x=tl(l))),{x:p.left+u.scrollLeft-m.x,y:p.top+u.scrollTop-m.y,width:p.width,height:p.height}}function C_(e){var t=new Map,r=new Set,i=[];e.forEach(function(l){t.set(l.name,l)});function a(l){r.add(l.name);var p=[].concat(l.requires||[],l.requiresIfExists||[]);p.forEach(function(u){if(!r.has(u)){var m=t.get(u);m&&a(m)}}),i.push(l)}return e.forEach(function(l){r.has(l.name)||a(l)}),i}function By(e){var t=C_(e);return xx.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function Gy(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Uy(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Fx={placement:"bottom",modifiers:[],strategy:"absolute"};function Bx(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Gx(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,l=a===void 0?Fx:a;return function(u,m,h){h===void 0&&(h=l);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fx,l),modifiersData:{},elements:{reference:u,popper:m},attributes:{},styles:{}},I=[],P=!1,w={state:v,setOptions:function(U){var Y=typeof U=="function"?U(v.options):U;G(),v.options=Object.assign({},l,v.options,Y),v.scrollParents={reference:_i(u)?ss(u):u.contextElement?ss(u.contextElement):[],popper:ss(m)};var L=By(Uy([].concat(i,v.options.modifiers)));return v.orderedModifiers=L.filter(function(k){return k.enabled}),R(),w.update()},forceUpdate:function(){if(!P){var U=v.elements,Y=U.reference,L=U.popper;if(Bx(Y,L)){v.rects={reference:Fy(Y,$i(L),v.options.strategy==="fixed"),popper:qs(L)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(de){return v.modifiersData[de.name]=Object.assign({},de.data)});for(var k=0;k<v.orderedModifiers.length;k++){if(v.reset===!0){v.reset=!1,k=-1;continue}var j=v.orderedModifiers[k],D=j.fn,Z=j.options,ne=Z===void 0?{}:Z,le=j.name;typeof D=="function"&&(v=D({state:v,options:ne,name:le,instance:w})||v)}}}},update:Gy(function(){return new Promise(function(N){w.forceUpdate(),N(v)})}),destroy:function(){G(),P=!0}};if(!Bx(u,m))return w;w.setOptions(h).then(function(N){!P&&h.onFirstUpdate&&h.onFirstUpdate(N)});function R(){v.orderedModifiers.forEach(function(N){var U=N.name,Y=N.options,L=Y===void 0?{}:Y,k=N.effect;if(typeof k=="function"){var j=k({state:v,name:U,instance:w,options:L}),D=function(){};I.push(j||D)}})}function G(){I.forEach(function(N){return N()}),I=[]}return w}}var D_=[Ox,Lx,Sx,Px,Nx,Dx,kx,Ix,Mx],jy=Gx({defaultModifiers:D_});function __(e){let{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1,...l}=e,p=a?{}:Dc(r,i),{props:u,internalRef:m}=Ac({...l,externalSlotProps:p}),h=Ko(m,p?.ref,e.additionalProps?.ref);return Cc(t,{...u,ref:h},i)}var Yi=__;var Ua=me(Ee(),1),jx=me(Iu(),1);var Ux=me(Ee(),1);function Ni(e){return parseInt(Ux.version,10)>=19?e?.props?.ref||null:e?.ref||null}function A_(e){return typeof e=="function"?e():e}var M_=Ua.forwardRef(function(t,r){let{children:i,container:a,disablePortal:l=!1}=t,[p,u]=Ua.useState(null),m=Ko(Ua.isValidElement(i)?Ni(i):null,r);return Cn(()=>{l||u(A_(a)||document.body)},[a,l]),Cn(()=>{if(p&&!l)return Vs(r,p),()=>{Vs(r,null)}},[r,p,l]),l?Ua.isValidElement(i)?Ua.cloneElement(i,{ref:m}):i:p&&jx.createPortal(i,p)}),jc=M_;function zx(e){return Ye("MuiPopper",e)}var BY=$e("MuiPopper",["root"]);var ed=xe("react/jsx-runtime");function N_(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function zy(e){return typeof e=="function"?e():e}function L_(e){return e.nodeType!==void 0}var k_=e=>{let{classes:t}=e;return Xe({root:["root"]},zx,t)},F_={},B_=Dn.forwardRef(function(t,r){let{anchorEl:i,children:a,direction:l,disablePortal:p,modifiers:u,open:m,placement:h,popperOptions:v,popperRef:I,slotProps:P={},slots:w={},TransitionProps:R,ownerState:G,...N}=t,U=Dn.useRef(null),Y=Ko(U,r),L=Dn.useRef(null),k=Ko(L,I),j=Dn.useRef(k);Cn(()=>{j.current=k},[k]),Dn.useImperativeHandle(I,()=>L.current,[]);let D=N_(h,l),[Z,ne]=Dn.useState(D),[le,de]=Dn.useState(zy(i));Dn.useEffect(()=>{L.current&&L.current.forceUpdate()}),Dn.useEffect(()=>{i&&de(zy(i))},[i]),Cn(()=>{if(!le||!m)return;let oe=He=>{ne(He.placement)},ce=[{name:"preventOverflow",options:{altBoundary:p}},{name:"flip",options:{altBoundary:p}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:He})=>{oe(He)}}];u!=null&&(ce=ce.concat(u)),v&&v.modifiers!=null&&(ce=ce.concat(v.modifiers));let Me=jy(le,U.current,{placement:D,...v,modifiers:ce});return j.current(Me),()=>{Me.destroy(),j.current(null)}},[le,p,u,m,v,D]);let ye={placement:Z};R!==null&&(ye.TransitionProps=R);let E=k_(t),q=w.root??"div",re=Yi({elementType:q,externalSlotProps:P.root,externalForwardedProps:N,additionalProps:{role:"tooltip",ref:Y},ownerState:t,className:E.root});return(0,ed.jsx)(q,{...re,children:typeof a=="function"?a(ye):a})}),G_=Dn.forwardRef(function(t,r){let{anchorEl:i,children:a,container:l,direction:p="ltr",disablePortal:u=!1,keepMounted:m=!1,modifiers:h,open:v,placement:I="bottom",popperOptions:P=F_,popperRef:w,style:R,transition:G=!1,slotProps:N={},slots:U={},...Y}=t,[L,k]=Dn.useState(!0),j=()=>{k(!1)},D=()=>{k(!0)};if(!m&&!v&&(!G||L))return null;let Z;if(l)Z=l;else if(i){let de=zy(i);Z=de&&L_(de)?un(de).body:un(null).body}let ne=!v&&m&&(!G||L)?"none":void 0,le=G?{in:v,onEnter:j,onExited:D}:void 0;return(0,ed.jsx)(jc,{disablePortal:u,container:Z,children:(0,ed.jsx)(B_,{anchorEl:i,direction:p,disablePortal:u,modifiers:h,ref:r,open:G?!L:v,placement:I,popperOptions:P,popperRef:w,slotProps:N,slots:U,...Y,style:{position:"fixed",top:0,left:0,display:ne,...R},TransitionProps:le,children:a})})}),Vx=G_;var Hx=xe("react/jsx-runtime"),U_=Te(Vx,{name:"MuiPopper",slot:"Root"})({}),j_=Wx.forwardRef(function(t,r){let i=rs(),a=Je({props:t,name:"MuiPopper"}),{anchorEl:l,component:p,components:u,componentsProps:m,container:h,disablePortal:v,keepMounted:I,modifiers:P,open:w,placement:R,popperOptions:G,popperRef:N,transition:U,slots:Y,slotProps:L,...k}=a,j=Y?.root??u?.Root,D={anchorEl:l,container:h,disablePortal:v,keepMounted:I,modifiers:P,open:w,placement:R,popperOptions:G,popperRef:N,transition:U,...k};return(0,Hx.jsx)(U_,{as:p,direction:i?"rtl":"ltr",slots:{root:j},slotProps:L??m,...D,ref:r})}),td=j_;var Xx=me(Ee(),1);function $x(e){return Ye("MuiListSubheader",e)}var i7=$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var Yx=xe("react/jsx-runtime"),z_=e=>{let{classes:t,color:r,disableGutters:i,inset:a,disableSticky:l}=e,p={root:["root",r!=="default"&&`color${Ne(r)}`,!i&&"gutters",a&&"inset",!l&&"sticky"]};return Xe(p,$x,t)},V_=Te("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Ne(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Pt(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Vy=Xx.forwardRef(function(t,r){let i=Je({props:t,name:"MuiListSubheader"}),{className:a,color:l="default",component:p="li",disableGutters:u=!1,disableSticky:m=!1,inset:h=!1,...v}=i,I={...i,color:l,component:p,disableGutters:u,disableSticky:m,inset:h},P=z_(I);return(0,Yx.jsx)(V_,{as:p,className:ve(P.root,a),ref:r,ownerState:I,...v})});Vy&&(Vy.muiSkipListHighlight=!0);var Wy=Vy;var mi=me(Ee(),1);var v7=me(Ee(),1);var Zx=xe("react/jsx-runtime"),Qx=Jt((0,Zx.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function qx(e){return Ye("MuiChip",e)}var W_=$e("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),pr=W_;var zc=xe("react/jsx-runtime"),H_=e=>{let{classes:t,disabled:r,size:i,color:a,iconColor:l,onDelete:p,clickable:u,variant:m}=e,h={root:["root",m,r&&"disabled",`size${Ne(i)}`,`color${Ne(a)}`,u&&"clickable",u&&`clickableColor${Ne(a)}`,p&&"deletable",p&&`deletableColor${Ne(a)}`,`${m}${Ne(a)}`],label:["label",`label${Ne(i)}`],avatar:["avatar",`avatar${Ne(i)}`,`avatarColor${Ne(a)}`],icon:["icon",`icon${Ne(i)}`,`iconColor${Ne(l)}`],deleteIcon:["deleteIcon",`deleteIcon${Ne(i)}`,`deleteIconColor${Ne(a)}`,`deleteIcon${Ne(m)}Color${Ne(a)}`]};return Xe(h,qx,t)},$_=Te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{color:i,iconColor:a,clickable:l,onDelete:p,size:u,variant:m}=r;return[{[`& .${pr.avatar}`]:t.avatar},{[`& .${pr.avatar}`]:t[`avatar${Ne(u)}`]},{[`& .${pr.avatar}`]:t[`avatarColor${Ne(i)}`]},{[`& .${pr.icon}`]:t.icon},{[`& .${pr.icon}`]:t[`icon${Ne(u)}`]},{[`& .${pr.icon}`]:t[`iconColor${Ne(a)}`]},{[`& .${pr.deleteIcon}`]:t.deleteIcon},{[`& .${pr.deleteIcon}`]:t[`deleteIcon${Ne(u)}`]},{[`& .${pr.deleteIcon}`]:t[`deleteIconColor${Ne(i)}`]},{[`& .${pr.deleteIcon}`]:t[`deleteIcon${Ne(m)}Color${Ne(i)}`]},t.root,t[`size${Ne(u)}`],t[`color${Ne(i)}`],l&&t.clickable,l&&i!=="default"&&t[`clickableColor${Ne(i)})`],p&&t.deletable,p&&i!=="default"&&t[`deletableColor${Ne(i)}`],t[m],t[`${m}${Ne(i)}`]]}})(Pt(({theme:e})=>{let t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${pr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${pr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${pr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${pr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${pr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${pr.icon}`]:{marginLeft:5,marginRight:-6},[`& .${pr.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${pr.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${pr.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Br(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${pr.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${pr.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${pr.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${pr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Br(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${pr.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${pr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Br(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${pr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${pr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${pr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${pr.avatar}`]:{marginLeft:4},[`& .${pr.avatarSmall}`]:{marginLeft:2},[`& .${pr.icon}`]:{marginLeft:4},[`& .${pr.iconSmall}`]:{marginLeft:2},[`& .${pr.deleteIcon}`]:{marginRight:5},[`& .${pr.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Br()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.alpha((e.vars||e).palette[r].main,.7)}`,[`&.${pr.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${pr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.focusOpacity)},[`& .${pr.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),X_=Te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{let{ownerState:r}=e,{size:i}=r;return[t.label,t[`label${Ne(i)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Jx(e){return e.key==="Backspace"||e.key==="Delete"}var Y_=mi.forwardRef(function(t,r){let i=Je({props:t,name:"MuiChip"}),{avatar:a,className:l,clickable:p,color:u="default",component:m,deleteIcon:h,disabled:v=!1,icon:I,label:P,onClick:w,onDelete:R,onKeyDown:G,onKeyUp:N,size:U="medium",variant:Y="filled",tabIndex:L,skipFocusWhenDisabled:k=!1,slots:j={},slotProps:D={},...Z}=i,ne=mi.useRef(null),le=en(ne,r),de=ke=>{ke.stopPropagation(),R&&R(ke)},ye=ke=>{ke.currentTarget===ke.target&&Jx(ke)&&ke.preventDefault(),G&&G(ke)},E=ke=>{ke.currentTarget===ke.target&&R&&Jx(ke)&&R(ke),N&&N(ke)},q=p!==!1&&w?!0:p,re=q||R?Jn:m||"div",oe={...i,component:re,disabled:v,size:U,color:u,iconColor:mi.isValidElement(I)&&I.props.color||u,onDelete:!!R,clickable:q,variant:Y},ce=H_(oe),Me=re===Jn?{component:m||"div",focusVisibleClassName:ce.focusVisible,...R&&{disableRipple:!0}}:{},He=null;R&&(He=h&&mi.isValidElement(h)?mi.cloneElement(h,{className:ve(h.props.className,ce.deleteIcon),onClick:de}):(0,zc.jsx)(Qx,{className:ce.deleteIcon,onClick:de}));let Ie=null;a&&mi.isValidElement(a)&&(Ie=mi.cloneElement(a,{className:ve(ce.avatar,a.props.className)}));let yt=null;I&&mi.isValidElement(I)&&(yt=mi.cloneElement(I,{className:ve(ce.icon,I.props.className)}));let ct={slots:j,slotProps:D},[ut,ft]=Ct("root",{elementType:$_,externalForwardedProps:{...ct,...Z},ownerState:oe,shouldForwardComponentProp:!0,ref:le,className:ve(ce.root,l),additionalProps:{disabled:q&&v?!0:void 0,tabIndex:k&&v?-1:L,...Me},getSlotProps:ke=>({...ke,onClick:Vt=>{ke.onClick?.(Vt),w?.(Vt)},onKeyDown:Vt=>{ke.onKeyDown?.(Vt),ye(Vt)},onKeyUp:Vt=>{ke.onKeyUp?.(Vt),E(Vt)}})}),[at,tt]=Ct("label",{elementType:X_,externalForwardedProps:ct,ownerState:oe,className:ce.label});return(0,zc.jsxs)(ut,{as:re,...ft,children:[Ie||yt,(0,zc.jsx)(at,{...tt,children:P}),He]})}),Hy=Y_;var _n=me(Ee(),1);var yi=me(Ee(),1);var Vc=xe("react/jsx-runtime");function rd(e){return parseInt(e,10)||0}var Z_={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Q_(e){for(let t in e)return!1;return!0}function Kx(e){return Q_(e)||e.outerHeightStyle===0&&!e.overflowing}var q_=yi.forwardRef(function(t,r){let{onChange:i,maxRows:a,minRows:l=1,style:p,value:u,...m}=t,{current:h}=yi.useRef(u!=null),v=yi.useRef(null),I=Ko(r,v),P=yi.useRef(null),w=yi.useRef(null),R=yi.useCallback(()=>{let L=v.current,k=w.current;if(!L||!k)return;let D=Ci(L).getComputedStyle(L);if(D.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=D.width,k.value=L.value||t.placeholder||"x",k.value.slice(-1)===`
|
|
149
|
-
`&&(k.value+=" ");let Z=D.boxSizing,ne=rd(D.paddingBottom)+rd(D.paddingTop),le=rd(D.borderBottomWidth)+rd(D.borderTopWidth),de=k.scrollHeight;k.value="x";let ye=k.scrollHeight,E=de;l&&(E=Math.max(Number(l)*ye,E)),a&&(E=Math.min(Number(a)*ye,E)),E=Math.max(E,ye);let q=E+(Z==="border-box"?ne+le:0),re=Math.abs(E-de)<=1;return{outerHeightStyle:q,overflowing:re}},[a,l,t.placeholder]),G=ci(()=>{let L=v.current,k=R();if(!L||!k||Kx(k))return!1;let j=k.outerHeightStyle;return P.current!=null&&P.current!==j}),N=yi.useCallback(()=>{let L=v.current,k=R();if(!L||!k||Kx(k))return;let j=k.outerHeightStyle;P.current!==j&&(P.current=j,L.style.height=`${j}px`),L.style.overflow=k.overflowing?"hidden":""},[R]),U=yi.useRef(-1);return Cn(()=>{let L=tp(N),k=v?.current;if(!k)return;let j=Ci(k);j.addEventListener("resize",L);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(()=>{G()&&(D.unobserve(k),cancelAnimationFrame(U.current),N(),U.current=requestAnimationFrame(()=>{D.observe(k)}))}),D.observe(k)),()=>{L.clear(),cancelAnimationFrame(U.current),j.removeEventListener("resize",L),D&&D.disconnect()}},[R,N,G]),Cn(()=>{N()}),(0,Vc.jsxs)(yi.Fragment,{children:[(0,Vc.jsx)("textarea",{value:u,onChange:L=>{h||N();let k=L.target,j=k.value.length,D=k.value.endsWith(`
|
|
150
|
-
`),Z=k.selectionStart===j;D&&Z&&k.setSelectionRange(j,j),i&&i(L)},ref:I,rows:l,style:p,...m}),(0,Vc.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...Z_.shadow,...p,paddingTop:0,paddingBottom:0}})]})}),$y=q_;function jn({props:e,states:t,muiFormControl:r}){return t.reduce((i,a)=>(i[a]=e[a],r&&typeof e[a]>"u"&&(i[a]=r[a]),i),{})}var eP=me(Ee(),1),J_=eP.createContext(void 0),Tp=J_;var tP=me(Ee(),1);function mn(){return tP.useContext(Tp)}function rP(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ol(e,t=!1){return e&&(rP(e.value)&&e.value!==""||t&&rP(e.defaultValue)&&e.defaultValue!=="")}function oP(e){return e.startAdornment}function nP(e){return Ye("MuiInputBase",e)}var K_=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),nn=K_;var nl=xe("react/jsx-runtime"),iP,il=(e,t)=>{let{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Ne(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},al=(e,t)=>{let{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},eA=e=>{let{classes:t,color:r,disabled:i,error:a,endAdornment:l,focused:p,formControl:u,fullWidth:m,hiddenLabel:h,multiline:v,readOnly:I,size:P,startAdornment:w,type:R}=e,G={root:["root",`color${Ne(r)}`,i&&"disabled",a&&"error",m&&"fullWidth",p&&"focused",u&&"formControl",P&&P!=="medium"&&`size${Ne(P)}`,v&&"multiline",w&&"adornedStart",l&&"adornedEnd",h&&"hiddenLabel",I&&"readOnly"],input:["input",i&&"disabled",R==="search"&&"inputTypeSearch",v&&"inputMultiline",P==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",w&&"inputAdornedStart",l&&"inputAdornedEnd",I&&"readOnly"]};return Xe(G,nP,t)},sl=Te("div",{name:"MuiInputBase",slot:"Root",overridesResolver:il})(Pt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),ll=Te("input",{name:"MuiInputBase",slot:"Input",overridesResolver:al})(Pt(({theme:e})=>{let t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nn.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${nn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:l})=>!l.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:l})=>l.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),aP=ST({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),tA=_n.forwardRef(function(t,r){let i=Je({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:l,autoFocus:p,className:u,color:m,components:h={},componentsProps:v={},defaultValue:I,disabled:P,disableInjectingGlobalStyles:w,endAdornment:R,error:G,fullWidth:N=!1,id:U,inputComponent:Y="input",inputProps:L={},inputRef:k,margin:j,maxRows:D,minRows:Z,multiline:ne=!1,name:le,onBlur:de,onChange:ye,onClick:E,onFocus:q,onKeyDown:re,onKeyUp:oe,placeholder:ce,readOnly:Me,renderSuffix:He,rows:Ie,size:yt,slotProps:ct={},slots:ut={},startAdornment:ft,type:at="text",value:tt,...ke}=i,Vt=L.value!=null?L.value:tt,{current:Dt}=_n.useRef(Vt!=null),gt=_n.useRef(),dt=_n.useCallback(Ke=>{},[]),_t=en(gt,k,L.ref,dt),[Ft,$t]=_n.useState(!1),Ut=mn(),ir=jn({props:i,muiFormControl:Ut,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ir.focused=Ut?Ut.focused:Ft,_n.useEffect(()=>{!Ut&&P&&Ft&&($t(!1),de&&de())},[Ut,P,Ft,de]);let Mt=Ut&&Ut.onFilled,or=Ut&&Ut.onEmpty,ze=_n.useCallback(Ke=>{ol(Ke)?Mt&&Mt():or&&or()},[Mt,or]);Ws(()=>{Dt&&ze({value:Vt})},[Vt,ze,Dt]);let cr=Ke=>{q&&q(Ke),L.onFocus&&L.onFocus(Ke),Ut&&Ut.onFocus?Ut.onFocus(Ke):$t(!0)},xt=Ke=>{de&&de(Ke),L.onBlur&&L.onBlur(Ke),Ut&&Ut.onBlur?Ut.onBlur(Ke):$t(!1)},Wt=(Ke,...jr)=>{if(!Dt){let xo=Ke.target||gt.current;if(xo==null)throw new Error(pn(1));ze({value:xo.value})}L.onChange&&L.onChange(Ke,...jr),ye&&ye(Ke,...jr)};_n.useEffect(()=>{ze(gt.current)},[]);let it=Ke=>{gt.current&&Ke.currentTarget===Ke.target&>.current.focus(),E&&E(Ke)},Gr=Y,Xt=L;ne&&Gr==="input"&&(Ie?Xt={type:void 0,minRows:Ie,maxRows:Ie,...Xt}:Xt={type:void 0,maxRows:D,minRows:Z,...Xt},Gr=$y);let Ur=Ke=>{ze(Ke.animationName==="mui-auto-fill-cancel"?gt.current:{value:"x"})};_n.useEffect(()=>{Ut&&Ut.setAdornedStart(!!ft)},[Ut,ft]);let Qr={...i,color:ir.color||"primary",disabled:ir.disabled,endAdornment:R,error:ir.error,focused:ir.focused,formControl:Ut,fullWidth:N,hiddenLabel:ir.hiddenLabel,multiline:ne,size:ir.size,startAdornment:ft,type:at},Uo=eA(Qr),qr=ut.root||h.Root||sl,Oo=ct.root||v.root||{},ur=ut.input||h.Input||ll;return Xt={...Xt,...ct.input??v.input},(0,nl.jsxs)(_n.Fragment,{children:[!w&&typeof aP=="function"&&(iP||(iP=(0,nl.jsx)(aP,{}))),(0,nl.jsxs)(qr,{...Oo,ref:r,onClick:it,...ke,...!Vi(qr)&&{ownerState:{...Qr,...Oo.ownerState}},className:ve(Uo.root,Oo.className,u,Me&&"MuiInputBase-readOnly"),children:[ft,(0,nl.jsx)(Tp.Provider,{value:null,children:(0,nl.jsx)(ur,{"aria-invalid":ir.error,"aria-describedby":a,autoComplete:l,autoFocus:p,defaultValue:I,disabled:ir.disabled,id:U,onAnimationStart:Ur,name:le,placeholder:ce,readOnly:Me,required:ir.required,rows:Ie,value:Vt,onKeyDown:re,onKeyUp:oe,type:at,...Xt,...!Vi(ur)&&{as:Gr,ownerState:{...Qr,...Xt.ownerState}},ref:_t,className:ve(Uo.input,Xt.className,Me&&"MuiInputBase-readOnly"),onBlur:xt,onChange:Wt,onFocus:cr})}),R,He?He({...ir,startAdornment:ft}):null]})]})}),pl=tA;function sP(e){return Ye("MuiInput",e)}var rA={...nn,...$e("MuiInput",["root","underline","input"])},ca=rA;function lP(e){return Ye("MuiOutlinedInput",e)}var oA={...nn,...$e("MuiOutlinedInput",["root","notchedOutline","input"])},Kn=oA;function pP(e){return Ye("MuiFilledInput",e)}var nA={...nn,...$e("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},zn=nA;var LZ=me(Ee(),1);var cP=xe("react/jsx-runtime"),od=Jt((0,cP.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function uP(e){return Ye("MuiAutocomplete",e)}var iA=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),nr=iA;var Xo=xe("react/jsx-runtime"),fP,dP,aA=e=>{let{classes:t,disablePortal:r,expanded:i,focused:a,fullWidth:l,hasClearIcon:p,hasPopupIcon:u,inputFocused:m,popupOpen:h,size:v}=e,I={root:["root",i&&"expanded",a&&"focused",l&&"fullWidth",p&&"hasClearIcon",u&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",m&&"inputFocused"],tag:["tag",`tagSize${Ne(v)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",h&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Xe(I,uP,t)},sA=Te("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{fullWidth:i,hasClearIcon:a,hasPopupIcon:l,inputFocused:p,size:u}=r;return[{[`& .${nr.tag}`]:t.tag},{[`& .${nr.tag}`]:t[`tagSize${Ne(u)}`]},{[`& .${nr.inputRoot}`]:t.inputRoot},{[`& .${nr.input}`]:t.input},{[`& .${nr.input}`]:p&&t.inputFocused},t.root,i&&t.fullWidth,l&&t.hasPopupIcon,a&&t.hasClearIcon]}})({[`&.${nr.focused} .${nr.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${nr.clearIndicator}`]:{visibility:"visible"}},[`& .${nr.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${nr.inputRoot}`]:{[`.${nr.hasPopupIcon}&, .${nr.hasClearIcon}&`]:{paddingRight:30},[`.${nr.hasPopupIcon}.${nr.hasClearIcon}&`]:{paddingRight:56},[`& .${nr.input}`]:{width:0,minWidth:30}},[`& .${ca.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ca.root}.${nn.sizeSmall}`]:{[`& .${ca.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Kn.root}`]:{padding:9,[`.${nr.hasPopupIcon}&, .${nr.hasClearIcon}&`]:{paddingRight:39},[`.${nr.hasPopupIcon}.${nr.hasClearIcon}&`]:{paddingRight:65},[`& .${nr.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${nr.endAdornment}`]:{right:9}},[`& .${Kn.root}.${nn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${nr.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${zn.root}`]:{paddingTop:19,paddingLeft:8,[`.${nr.hasPopupIcon}&, .${nr.hasClearIcon}&`]:{paddingRight:39},[`.${nr.hasPopupIcon}.${nr.hasClearIcon}&`]:{paddingRight:65},[`& .${zn.input}`]:{padding:"7px 4px"},[`& .${nr.endAdornment}`]:{right:9}},[`& .${zn.root}.${nn.sizeSmall}`]:{paddingBottom:1,[`& .${zn.input}`]:{padding:"2.5px 4px"}},[`& .${nn.hiddenLabel}`]:{paddingTop:8},[`& .${zn.root}.${nn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${nr.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${zn.root}.${nn.hiddenLabel}.${nn.sizeSmall}`]:{[`& .${nr.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${nr.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${nr.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${nr.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${nr.inputRoot}`]:{flexWrap:"wrap"}}}]}),lA=Te("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),pA=Te(ka,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),cA=Te(ka,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),uA=Te(td,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${nr.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(Pt(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),fA=Te(ui,{name:"MuiAutocomplete",slot:"Paper"})(Pt(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),dA=Te("div",{name:"MuiAutocomplete",slot:"Loading"})(Pt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),mA=Te("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Pt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),yA=Te("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Pt(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${nr.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${nr.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${nr.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${nr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),gA=Te(Wy,{name:"MuiAutocomplete",slot:"GroupLabel"})(Pt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),hA=Te("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${nr.option}`]:{paddingLeft:24}});var vA=nd.forwardRef(function(t,r){let i=Je({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:l=!1,autoSelect:p=!1,blurOnSelect:u=!1,ChipProps:m,className:h,clearIcon:v=fP||(fP=(0,Xo.jsx)(Wf,{fontSize:"small"})),clearOnBlur:I=!i.freeSolo,clearOnEscape:P=!1,clearText:w="Clear",closeText:R="Close",componentsProps:G,defaultValue:N=i.multiple?[]:null,disableClearable:U=!1,disableCloseOnSelect:Y=!1,disabled:L=!1,disabledItemsFocusable:k=!1,disableListWrap:j=!1,disablePortal:D=!1,filterOptions:Z,filterSelectedOptions:ne=!1,forcePopupIcon:le="auto",freeSolo:de=!1,fullWidth:ye=!1,getLimitTagsText:E=tr=>`+${tr}`,getOptionDisabled:q,getOptionKey:re,getOptionLabel:oe,isOptionEqualToValue:ce,groupBy:Me,handleHomeEndKeys:He=!i.freeSolo,id:Ie,includeInputInList:yt=!1,inputValue:ct,limitTags:ut=-1,ListboxComponent:ft,ListboxProps:at,loading:tt=!1,loadingText:ke="Loading\u2026",multiple:Vt=!1,noOptionsText:Dt="No options",onChange:gt,onClose:dt,onHighlightChange:_t,onInputChange:Ft,onOpen:$t,open:Ut,openOnFocus:ir=!1,openText:Mt="Open",options:or,PaperComponent:ze,PopperComponent:cr,popupIcon:xt=dP||(dP=(0,Xo.jsx)(od,{})),readOnly:Wt=!1,renderGroup:it,renderInput:Gr,renderOption:Xt,renderTags:Ur,renderValue:Qr,selectOnFocus:Uo=!i.freeSolo,size:qr="medium",slots:Oo={},slotProps:ur={},value:Ke,...jr}=i,{getRootProps:xo,getInputProps:yo,getInputLabelProps:jo,getPopupIndicatorProps:bt,getClearProps:Ht,getItemProps:mr,getListboxProps:go,getOptionProps:an,value:Cr,dirty:Jr,expanded:yn,id:zo,popupOpen:Dr,focused:Po,focusedItem:Mn,anchorEl:Yo,setAnchorEl:st,inputValue:Ot,groupedOptions:Yt}=Sy({...i,componentName:"Autocomplete"}),zt=!U&&!L&&Jr&&!Wt,Zt=(!de||le===!0)&&le!==!1,{onMouseDown:Vo}=yo(),{ref:zr,...gn}=go(),io=oe||(tr=>tr.label??tr),Kr={...i,disablePortal:D,expanded:yn,focused:Po,fullWidth:ye,getOptionLabel:io,hasClearIcon:zt,hasPopupIcon:Zt,inputFocused:Mn===-1,popupOpen:Dr,size:qr},_r=aA(Kr),Hn={slots:{paper:ze,popper:cr,...Oo},slotProps:{chip:m,listbox:at,...G,...ur}},[ri,Zo]=Ct("listbox",{elementType:yA,externalForwardedProps:Hn,ownerState:Kr,className:_r.listbox,additionalProps:gn,ref:zr}),[oi,Se]=Ct("paper",{elementType:ui,externalForwardedProps:Hn,ownerState:Kr,className:_r.paper}),[we,rt]=Ct("popper",{elementType:td,externalForwardedProps:Hn,ownerState:Kr,className:_r.popper,additionalProps:{disablePortal:D,style:{width:Yo?Yo.clientWidth:null},role:"presentation",anchorEl:Yo,open:Dr}}),Nt,Lt=tr=>({className:_r.tag,disabled:L,...mr(tr)});if(Vt?Cr.length>0&&(Ur?Nt=Ur(Cr,Lt,Kr):Qr?Nt=Qr(Cr,Lt,Kr):Nt=Cr.map((tr,vn)=>{let{key:sn,...ni}=Lt({index:vn});return(0,Xo.jsx)(Hy,{label:io(tr),size:qr,...ni,...Hn.slotProps.chip},sn)})):Qr&&Cr!=null&&(Nt=Qr(Cr,Lt,Kr)),ut>-1&&Array.isArray(Nt)){let tr=Nt.length-ut;!Po&&tr>0&&(Nt=Nt.splice(0,ut),Nt.push((0,Xo.jsx)("span",{className:_r.tag,children:E(tr)},Nt.length)))}let Pr=it||(tr=>(0,Xo.jsxs)("li",{children:[(0,Xo.jsx)(gA,{className:_r.groupLabel,ownerState:Kr,component:"div",children:tr.group}),(0,Xo.jsx)(hA,{className:_r.groupUl,ownerState:Kr,children:tr.children})]},tr.key)),hn=Xt||((tr,vn)=>{let{key:sn,...ni}=tr;return(0,Xo.jsx)("li",{...ni,children:io(vn)},sn)}),$n=(tr,vn)=>{let sn=an({option:tr,index:vn});return hn({...sn,className:_r.option},tr,{selected:sn["aria-selected"],index:vn,inputValue:Ot},Kr)},bi=Hn.slotProps.clearIndicator,ki=Hn.slotProps.popupIndicator;return(0,Xo.jsxs)(nd.Fragment,{children:[(0,Xo.jsx)(sA,{ref:r,className:ve(_r.root,h),ownerState:Kr,...xo(jr),children:Gr({id:zo,disabled:L,fullWidth:!0,size:qr==="small"?"small":void 0,InputLabelProps:jo(),InputProps:{ref:st,className:_r.inputRoot,startAdornment:Nt,onMouseDown:tr=>{tr.target===tr.currentTarget&&Vo(tr)},...(zt||Zt)&&{endAdornment:(0,Xo.jsxs)(lA,{className:_r.endAdornment,ownerState:Kr,children:[zt?(0,Xo.jsx)(pA,{...Ht(),"aria-label":w,title:w,ownerState:Kr,...bi,className:ve(_r.clearIndicator,bi?.className),children:v}):null,Zt?(0,Xo.jsx)(cA,{...bt(),disabled:L,"aria-label":Dr?R:Mt,title:Dr?R:Mt,ownerState:Kr,...ki,className:ve(_r.popupIndicator,ki?.className),children:xt}):null]})}},inputProps:{className:_r.input,disabled:L,readOnly:Wt,...yo()}})}),Yo?(0,Xo.jsx)(uA,{as:we,...rt,children:(0,Xo.jsxs)(fA,{as:oi,...Se,children:[tt&&Yt.length===0?(0,Xo.jsx)(dA,{className:_r.loading,ownerState:Kr,children:ke}):null,Yt.length===0&&!de&&!tt?(0,Xo.jsx)(mA,{className:_r.noOptions,ownerState:Kr,role:"presentation",onMouseDown:tr=>{tr.preventDefault()},children:Dt}):null,Yt.length>0?(0,Xo.jsx)(ri,{as:ft,...Zo,children:Yt.map((tr,vn)=>Me?Pr({key:tr.key,group:tr.group,children:tr.options.map((sn,ni)=>$n(sn,tr.index+ni))}):$n(tr,vn))}):null]})}):null]})}),xp=vA;var gP=me(Ee(),1);var Pp=me(Ee(),1);var mP=xe("react/jsx-runtime"),bA={entering:{opacity:1},entered:{opacity:1}},TA=Pp.forwardRef(function(t,r){let i=qn(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:l,appear:p=!0,children:u,easing:m,in:h,onEnter:v,onEntered:I,onEntering:P,onExit:w,onExited:R,onExiting:G,style:N,timeout:U=a,TransitionComponent:Y=Sc,...L}=t,k=!0,j=Pp.useRef(null),D=en(j,Ni(u),r),Z=oe=>ce=>{if(oe){let Me=j.current;ce===void 0?oe(Me):oe(Me,ce)}},ne=Z(P),le=Z((oe,ce)=>{kf(oe);let Me=up({style:N,timeout:U,easing:m},{mode:"enter"});oe.style.webkitTransition=i.transitions.create("opacity",Me),oe.style.transition=i.transitions.create("opacity",Me),v&&v(oe,ce)}),de=Z(I),ye=Z(G),E=Z(oe=>{let ce=up({style:N,timeout:U,easing:m},{mode:"exit"});oe.style.webkitTransition=i.transitions.create("opacity",ce),oe.style.transition=i.transitions.create("opacity",ce),w&&w(oe)}),q=Z(R);return(0,mP.jsx)(Y,{appear:p,in:h,nodeRef:k?j:void 0,onEnter:le,onEntered:de,onEntering:ne,onExit:E,onExited:q,onExiting:ye,addEndListener:oe=>{l&&l(j.current,oe)},timeout:U,...L,children:(oe,{ownerState:ce,...Me})=>Pp.cloneElement(u,{style:{opacity:0,visibility:oe==="exited"&&!h?"hidden":void 0,...bA[oe],...N,...u.props.style},ref:D,...Me})})}),Ep=TA;function yP(e){return Ye("MuiBackdrop",e)}var xQ=$e("MuiBackdrop",["root","invisible"]);var Xy=xe("react/jsx-runtime"),xA=e=>{let{classes:t,invisible:r}=e;return Xe({root:["root",r&&"invisible"]},yP,t)},PA=Te("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),EA=gP.forwardRef(function(t,r){let i=Je({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:p="div",invisible:u=!1,open:m,components:h={},componentsProps:v={},slotProps:I={},slots:P={},TransitionComponent:w,transitionDuration:R,...G}=i,N={...i,component:p,invisible:u},U=xA(N),Y={transition:w,root:h.Root,...P},L={...v,...I},k={component:p,slots:Y,slotProps:L},[j,D]=Ct("root",{elementType:PA,externalForwardedProps:k,className:ve(U.root,l),ownerState:N}),[Z,ne]=Ct("transition",{elementType:Ep,externalForwardedProps:k,ownerState:N});return(0,Xy.jsx)(Z,{in:m,timeout:R,...G,...ne,children:(0,Xy.jsx)(j,{"aria-hidden":!0,...D,classes:U,ref:r,children:a})})}),Wc=EA;var wA=$e("MuiBox",["root"]),hP=wA;var IA=Kl(),RA=yc({themeId:sa,defaultTheme:IA,defaultClassName:hP.root,generateClassName:Rl.generate}),Fo=RA;var Hc=me(Ee(),1);function vP(e){return Ye("MuiButton",e)}var SA=$e("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),ls=SA;var bP=me(Ee(),1),OA=bP.createContext({}),TP=OA;var xP=me(Ee(),1),CA=xP.createContext(void 0),PP=CA;var ua=xe("react/jsx-runtime"),DA=e=>{let{color:t,disableElevation:r,fullWidth:i,size:a,variant:l,loading:p,loadingPosition:u,classes:m}=e,h={root:["root",p&&"loading",l,`${l}${Ne(t)}`,`size${Ne(a)}`,`${l}Size${Ne(a)}`,`color${Ne(t)}`,r&&"disableElevation",i&&"fullWidth",p&&`loadingPosition${Ne(u)}`],startIcon:["icon","startIcon",`iconSize${Ne(a)}`],endIcon:["icon","endIcon",`iconSize${Ne(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},v=Xe(h,vP,m);return{...m,...v}},wP=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],_A=Te(Jn,{shouldForwardProp:e=>fo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ne(r.color)}`],t[`size${Ne(r.size)}`],t[`${r.variant}Size${Ne(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Pt(({theme:e})=>{let t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ls.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ls.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ls.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ls.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Br()).map(([i])=>({props:{color:i},style:{"--variant-textColor":(e.vars||e).palette[i].main,"--variant-outlinedColor":(e.vars||e).palette[i].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[i].main,.5),"--variant-containedColor":(e.vars||e).palette[i].contrastText,"--variant-containedBg":(e.vars||e).palette[i].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[i].dark,"--variant-textBg":e.alpha((e.vars||e).palette[i].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[i].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[i].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ls.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ls.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ls.loading}`]:{color:"transparent"}}}]}})),AA=Te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${Ne(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...wP]})),MA=Te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${Ne(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...wP]})),NA=Te("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),EP=Te("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),LA=Hc.forwardRef(function(t,r){let i=Hc.useContext(TP),a=Hc.useContext(PP),l=ia(i,t),p=Je({props:l,name:"MuiButton"}),{children:u,color:m="primary",component:h="button",className:v,disabled:I=!1,disableElevation:P=!1,disableFocusRipple:w=!1,endIcon:R,focusVisibleClassName:G,fullWidth:N=!1,id:U,loading:Y=null,loadingIndicator:L,loadingPosition:k="center",size:j="medium",startIcon:D,type:Z,variant:ne="text",...le}=p,de=Pc(U),ye=L??(0,ua.jsx)(Nc,{"aria-labelledby":de,color:"inherit",size:16}),E={...p,color:m,component:h,disabled:I,disableElevation:P,disableFocusRipple:w,fullWidth:N,loading:Y,loadingIndicator:ye,loadingPosition:k,size:j,type:Z,variant:ne},q=DA(E),re=(D||Y&&k==="start")&&(0,ua.jsx)(AA,{className:q.startIcon,ownerState:E,children:D||(0,ua.jsx)(EP,{className:q.loadingIconPlaceholder,ownerState:E})}),oe=(R||Y&&k==="end")&&(0,ua.jsx)(MA,{className:q.endIcon,ownerState:E,children:R||(0,ua.jsx)(EP,{className:q.loadingIconPlaceholder,ownerState:E})}),ce=a||"",Me=typeof Y=="boolean"?(0,ua.jsx)("span",{className:q.loadingWrapper,style:{display:"contents"},children:Y&&(0,ua.jsx)(NA,{className:q.loadingIndicator,ownerState:E,children:ye})}):null;return(0,ua.jsxs)(_A,{ownerState:E,className:ve(i.className,q.root,v,ce),component:h,disabled:I||Y,focusRipple:!w,focusVisibleClassName:ve(q.focusVisible,G),ref:r,type:Z,id:Y?de:U,...le,classes:q,children:[re,k!=="end"&&Me,u,k==="end"&&Me,oe]})}),Bo=LA;var RP=me(Ee(),1);function IP(e){return Ye("MuiCard",e)}var bq=$e("MuiCard",["root"]);var SP=xe("react/jsx-runtime"),kA=e=>{let{classes:t}=e;return Xe({root:["root"]},IP,t)},FA=Te(ui,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),BA=RP.forwardRef(function(t,r){let i=Je({props:t,name:"MuiCard"}),{className:a,raised:l=!1,...p}=i,u={...i,raised:l},m=kA(u);return(0,SP.jsx)(FA,{className:ve(m.root,a),elevation:l?8:void 0,ref:r,ownerState:u,...p})}),id=BA;var CP=me(Ee(),1);function OP(e){return Ye("MuiCardContent",e)}var Mq=$e("MuiCardContent",["root"]);var DP=xe("react/jsx-runtime"),GA=e=>{let{classes:t}=e;return Xe({root:["root"]},OP,t)},UA=Te("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),jA=CP.forwardRef(function(t,r){let i=Je({props:t,name:"MuiCardContent"}),{className:a,component:l="div",...p}=i,u={...i,component:l},m=GA(u);return(0,DP.jsx)(UA,{as:l,className:ve(m.root,a),ownerState:u,ref:r,...p})}),ad=jA;var $c=me(Ee(),1);var AP=me(Ee(),1);function _P(e){return Ye("PrivateSwitchBase",e)}var $q=$e("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var sd=xe("react/jsx-runtime"),zA=e=>{let{classes:t,checked:r,disabled:i,edge:a}=e,l={root:["root",r&&"checked",i&&"disabled",a&&`edge${Ne(a)}`],input:["input"]};return Xe(l,_P,t)},VA=Te(Jn,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),WA=Te("input",{name:"MuiSwitchBase",shouldForwardProp:fo})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),HA=AP.forwardRef(function(t,r){let{autoFocus:i,checked:a,checkedIcon:l,defaultChecked:p,disabled:u,disableFocusRipple:m=!1,edge:h=!1,icon:v,id:I,inputProps:P,inputRef:w,name:R,onBlur:G,onChange:N,onFocus:U,readOnly:Y,required:L=!1,tabIndex:k,type:j,value:D,slots:Z={},slotProps:ne={},...le}=t,[de,ye]=Ec({controlled:a,default:!!p,name:"SwitchBase",state:"checked"}),E=mn(),q=tt=>{U&&U(tt),E&&E.onFocus&&E.onFocus(tt)},re=tt=>{G&&G(tt),E&&E.onBlur&&E.onBlur(tt)},oe=tt=>{if(tt.nativeEvent.defaultPrevented)return;let ke=tt.target.checked;ye(ke),N&&N(tt,ke)},ce=u;E&&typeof ce>"u"&&(ce=E.disabled);let Me=j==="checkbox"||j==="radio",He={...t,checked:de,disabled:ce,disableFocusRipple:m,edge:h},Ie=zA(He),yt={slots:Z,slotProps:{input:P,...ne}},[ct,ut]=Ct("root",{ref:r,elementType:VA,className:Ie.root,shouldForwardComponentProp:!0,externalForwardedProps:{...yt,component:"span",...le},getSlotProps:tt=>({...tt,onFocus:ke=>{tt.onFocus?.(ke),q(ke)},onBlur:ke=>{tt.onBlur?.(ke),re(ke)}}),ownerState:He,additionalProps:{centerRipple:!0,focusRipple:!m,disabled:ce,role:void 0,tabIndex:null}}),[ft,at]=Ct("input",{ref:w,elementType:WA,className:Ie.input,externalForwardedProps:yt,getSlotProps:tt=>({...tt,onChange:ke=>{tt.onChange?.(ke),oe(ke)}}),ownerState:He,additionalProps:{autoFocus:i,checked:a,defaultChecked:p,disabled:ce,id:Me?I:void 0,name:R,readOnly:Y,required:L,tabIndex:k,type:j,...j==="checkbox"&&D===void 0?{}:{value:D}}});return(0,sd.jsxs)(ct,{...ut,children:[(0,sd.jsx)(ft,{...at}),de?l:v]})}),MP=HA;var n8=me(Ee(),1);var NP=xe("react/jsx-runtime"),LP=Jt((0,NP.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank");var s8=me(Ee(),1);var kP=xe("react/jsx-runtime"),FP=Jt((0,kP.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox");var c8=me(Ee(),1);var BP=xe("react/jsx-runtime"),GP=Jt((0,BP.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function UP(e){return Ye("MuiCheckbox",e)}var $A=$e("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ld=$A;var Xc=xe("react/jsx-runtime"),XA=e=>{let{classes:t,indeterminate:r,color:i,size:a}=e,l={root:["root",r&&"indeterminate",`color${Ne(i)}`,`size${Ne(a)}`]},p=Xe(l,UP,t);return{...t,...p}},YA=Te(MP,{shouldForwardProp:e=>fo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Ne(r.size)}`],r.color!=="default"&&t[`color${Ne(r.color)}`]]}})(Pt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Br()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Br()).map(([t])=>({props:{color:t},style:{[`&.${ld.checked}, &.${ld.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${ld.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ZA=(0,Xc.jsx)(FP,{}),QA=(0,Xc.jsx)(LP,{}),qA=(0,Xc.jsx)(GP,{}),JA=$c.forwardRef(function(t,r){let i=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:a=ZA,color:l="primary",icon:p=QA,indeterminate:u=!1,indeterminateIcon:m=qA,inputProps:h,size:v="medium",disableRipple:I=!1,className:P,slots:w={},slotProps:R={},...G}=i,N=u?m:p,U=u?m:a,Y={...i,disableRipple:I,color:l,indeterminate:u,size:v},L=XA(Y),k=R.input??h,[j,D]=Ct("root",{ref:r,elementType:YA,className:ve(L.root,P),shouldForwardComponentProp:!0,externalForwardedProps:{slots:w,slotProps:R,...G},ownerState:Y,additionalProps:{type:"checkbox",icon:$c.cloneElement(N,{fontSize:N.props.fontSize??v}),checkedIcon:$c.cloneElement(U,{fontSize:U.props.fontSize??v}),disableRipple:I,slots:w,slotProps:{input:ip(typeof k=="function"?k(Y):k,{"data-indeterminate":u})}}});return(0,Xc.jsx)(j,{...D,classes:L})}),pd=JA;var Op=me(Ee(),1);function wp(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function KA(e){let t=un(e);return t.body===e?Ci(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ip(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jP(e){return parseInt(Ci(e).getComputedStyle(e).paddingRight,10)||0}function eM(e){let r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||i}function zP(e,t,r,i,a){let l=[t,r,...i];[].forEach.call(e.children,p=>{let u=!l.includes(p),m=!eM(p);u&&m&&Ip(p,a)})}function Yy(e,t){let r=-1;return e.some((i,a)=>t(i)?(r=a,!0):!1),r}function tM(e,t){let r=[],i=e.container;if(!t.disableScrollLock){if(KA(i)){let p=wp(Ci(i));r.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${jP(i)+p}px`;let u=un(i).querySelectorAll(".mui-fixed");[].forEach.call(u,m=>{r.push({value:m.style.paddingRight,property:"padding-right",el:m}),m.style.paddingRight=`${jP(m)+p}px`})}let l;if(i.parentNode instanceof DocumentFragment)l=un(i).body;else{let p=i.parentElement,u=Ci(i);l=p?.nodeName==="HTML"&&u.getComputedStyle(p).overflowY==="scroll"?p:i}r.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{r.forEach(({value:l,el:p,property:u})=>{l?p.style.setProperty(u,l):p.style.removeProperty(u)})}}function rM(e){let t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}var cd=class{constructor(){this.modals=[],this.containers=[]}add(t,r){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&Ip(t.modalRef,!1);let a=rM(r);zP(r,t.mount,t.modalRef,a,!0);let l=Yy(this.containers,p=>p.container===r);return l!==-1?(this.containers[l].modals.push(t),i):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),i)}mount(t,r){let i=Yy(this.containers,l=>l.modals.includes(t)),a=this.containers[i];a.restore||(a.restore=tM(a,r))}remove(t,r=!0){let i=this.modals.indexOf(t);if(i===-1)return i;let a=Yy(this.containers,p=>p.modals.includes(t)),l=this.containers[a];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(i,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&Ip(t.modalRef,r),zP(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(a,1);else{let p=l.modals[l.modals.length-1];p.modalRef&&Ip(p.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}};var fd=me(Ee(),1);var wn=me(Ee(),1);var Yc=xe("react/jsx-runtime"),oM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nM(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function iM(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;let t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`),r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function aM(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||iM(e))}function sM(e){let t=[],r=[];return Array.from(e.querySelectorAll(oM)).forEach((i,a)=>{let l=nM(i);l===-1||!aM(i)||(l===0?t.push(i):r.push({documentOrder:a,tabIndex:l,node:i}))}),r.sort((i,a)=>i.tabIndex===a.tabIndex?i.documentOrder-a.documentOrder:i.tabIndex-a.tabIndex).map(i=>i.node).concat(t)}function lM(){return!0}function pM(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:a=!1,getTabbable:l=sM,isEnabled:p=lM,open:u}=e,m=wn.useRef(!1),h=wn.useRef(null),v=wn.useRef(null),I=wn.useRef(null),P=wn.useRef(null),w=wn.useRef(!1),R=wn.useRef(null),G=Ko(Ni(t),R),N=wn.useRef(null);wn.useEffect(()=>{!u||!R.current||(w.current=!r)},[r,u]),wn.useEffect(()=>{if(!u||!R.current)return;let L=un(R.current);return R.current.contains(L.activeElement)||(R.current.hasAttribute("tabIndex")||R.current.setAttribute("tabIndex","-1"),w.current&&R.current.focus()),()=>{a||(I.current&&I.current.focus&&(m.current=!0,I.current.focus()),I.current=null)}},[u]),wn.useEffect(()=>{if(!u||!R.current)return;let L=un(R.current),k=Z=>{N.current=Z,!(i||!p()||Z.key!=="Tab")&&L.activeElement===R.current&&Z.shiftKey&&(m.current=!0,v.current&&v.current.focus())},j=()=>{let Z=R.current;if(Z===null)return;if(!L.hasFocus()||!p()||m.current){m.current=!1;return}if(Z.contains(L.activeElement)||i&&L.activeElement!==h.current&&L.activeElement!==v.current)return;if(L.activeElement!==P.current)P.current=null;else if(P.current!==null)return;if(!w.current)return;let ne=[];if((L.activeElement===h.current||L.activeElement===v.current)&&(ne=l(R.current)),ne.length>0){let le=!!(N.current?.shiftKey&&N.current?.key==="Tab"),de=ne[0],ye=ne[ne.length-1];typeof de!="string"&&typeof ye!="string"&&(le?ye.focus():de.focus())}else Z.focus()};L.addEventListener("focusin",j),L.addEventListener("keydown",k,!0);let D=setInterval(()=>{L.activeElement&&L.activeElement.tagName==="BODY"&&j()},50);return()=>{clearInterval(D),L.removeEventListener("focusin",j),L.removeEventListener("keydown",k,!0)}},[r,i,a,p,u,l]);let U=L=>{I.current===null&&(I.current=L.relatedTarget),w.current=!0,P.current=L.target;let k=t.props.onFocus;k&&k(L)},Y=L=>{I.current===null&&(I.current=L.relatedTarget),w.current=!0};return(0,Yc.jsxs)(wn.Fragment,{children:[(0,Yc.jsx)("div",{tabIndex:u?0:-1,onFocus:Y,ref:h,"data-testid":"sentinelStart"}),wn.cloneElement(t,{ref:G,onFocus:U}),(0,Yc.jsx)("div",{tabIndex:u?0:-1,onFocus:Y,ref:v,"data-testid":"sentinelEnd"})]})}var Zy=pM;var Zi=me(Ee(),1);function cM(e){return typeof e=="function"?e():e}function uM(e){return e?e.props.hasOwnProperty("in"):!1}var VP=()=>{},ud=new cd;function fM(e){let{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:p,children:u,onClose:m,open:h,rootRef:v}=e,I=Zi.useRef({}),P=Zi.useRef(null),w=Zi.useRef(null),R=Ko(w,v),[G,N]=Zi.useState(!h),U=uM(u),Y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(Y=!1);let L=()=>un(P.current),k=()=>(I.current.modalRef=w.current,I.current.mount=P.current,I.current),j=()=>{ud.mount(k(),{disableScrollLock:i}),w.current&&(w.current.scrollTop=0)},D=ci(()=>{let oe=cM(t)||L().body;ud.add(k(),oe),w.current&&j()}),Z=()=>ud.isTopModal(k()),ne=ci(oe=>{P.current=oe,oe&&(h&&Z()?j():w.current&&Ip(w.current,Y))}),le=Zi.useCallback(()=>{ud.remove(k(),Y)},[Y]);Zi.useEffect(()=>()=>{le()},[le]),Zi.useEffect(()=>{h?D():(!U||!a)&&le()},[h,le,U,a,D]);let de=oe=>ce=>{oe.onKeyDown?.(ce),!(ce.key!=="Escape"||ce.which===229||!Z())&&(r||(ce.stopPropagation(),m&&m(ce,"escapeKeyDown")))},ye=oe=>ce=>{oe.onClick?.(ce),ce.target===ce.currentTarget&&m&&m(ce,"backdropClick")};return{getRootProps:(oe={})=>{let ce=_c(e);delete ce.onTransitionEnter,delete ce.onTransitionExited;let Me={...ce,...oe};return{role:"presentation",...Me,onKeyDown:de(Me),ref:R}},getBackdropProps:(oe={})=>{let ce=oe;return{"aria-hidden":!0,...ce,onClick:ye(ce),open:h}},getTransitionProps:()=>{let oe=()=>{N(!1),l&&l()},ce=()=>{N(!0),p&&p(),a&&le()};return{onEnter:Qp(oe,u?.props.onEnter??VP),onExited:Qp(ce,u?.props.onExited??VP)}},rootRef:R,portalRef:ne,isTopModal:Z,exited:G,hasTransition:U}}var WP=fM;function HP(e){return Ye("MuiModal",e)}var oJ=$e("MuiModal",["root","hidden","backdrop"]);var Rp=xe("react/jsx-runtime"),dM=e=>{let{open:t,exited:r,classes:i}=e;return Xe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},HP,i)},mM=Te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Pt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),yM=Te(Wc,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),gM=fd.forwardRef(function(t,r){let i=Je({name:"MuiModal",props:t}),{BackdropComponent:a=yM,BackdropProps:l,classes:p,className:u,closeAfterTransition:m=!1,children:h,container:v,component:I,components:P={},componentsProps:w={},disableAutoFocus:R=!1,disableEnforceFocus:G=!1,disableEscapeKeyDown:N=!1,disablePortal:U=!1,disableRestoreFocus:Y=!1,disableScrollLock:L=!1,hideBackdrop:k=!1,keepMounted:j=!1,onClose:D,onTransitionEnter:Z,onTransitionExited:ne,open:le,slotProps:de={},slots:ye={},theme:E,...q}=i,re={...i,closeAfterTransition:m,disableAutoFocus:R,disableEnforceFocus:G,disableEscapeKeyDown:N,disablePortal:U,disableRestoreFocus:Y,disableScrollLock:L,hideBackdrop:k,keepMounted:j},{getRootProps:oe,getBackdropProps:ce,getTransitionProps:Me,portalRef:He,isTopModal:Ie,exited:yt,hasTransition:ct}=WP({...re,rootRef:r}),ut={...re,exited:yt},ft=dM(ut),at={};if(h.props.tabIndex===void 0&&(at.tabIndex="-1"),ct){let{onEnter:dt,onExited:_t}=Me();at.onEnter=dt,at.onExited=_t}let tt={slots:{root:P.Root,backdrop:P.Backdrop,...ye},slotProps:{...w,...de}},[ke,Vt]=Ct("root",{ref:r,elementType:mM,externalForwardedProps:{...tt,...q,component:I},getSlotProps:oe,ownerState:ut,className:ve(u,ft?.root,!ut.open&&ut.exited&&ft?.hidden)}),[Dt,gt]=Ct("backdrop",{ref:l?.ref,elementType:a,externalForwardedProps:tt,shouldForwardComponentProp:!0,additionalProps:l,getSlotProps:dt=>ce({...dt,onClick:_t=>{dt?.onClick&&dt.onClick(_t)}}),className:ve(l?.className,ft?.backdrop),ownerState:ut});return!j&&!le&&(!ct||yt)?null:(0,Rp.jsx)(jc,{ref:He,container:v,disablePortal:U,children:(0,Rp.jsxs)(ke,{...Vt,children:[!k&&a?(0,Rp.jsx)(Dt,{...gt}):null,(0,Rp.jsx)(Zy,{disableEnforceFocus:G,disableAutoFocus:R,disableRestoreFocus:Y,isEnabled:Ie,open:le,children:fd.cloneElement(h,at)})]})})}),Zc=gM;function $P(e){return Ye("MuiDialog",e)}var hM=$e("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),dd=hM;var XP=me(Ee(),1),vM=XP.createContext({}),md=vM;var Sp=xe("react/jsx-runtime"),bM=Te(Wc,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),TM=e=>{let{classes:t,scroll:r,maxWidth:i,fullWidth:a,fullScreen:l}=e,p={root:["root"],container:["container",`scroll${Ne(r)}`],paper:["paper",`paperScroll${Ne(r)}`,`paperWidth${Ne(String(i))}`,a&&"paperFullWidth",l&&"paperFullScreen"]};return Xe(p,$P,t)},xM=Te(Zc,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),PM=Te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.container,t[`scroll${Ne(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),EM=Te(ui,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t[`scrollPaper${Ne(r.scroll)}`],t[`paperWidth${Ne(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(Pt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${dd.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${dd.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${dd.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wM=Op.forwardRef(function(t,r){let i=Je({props:t,name:"MuiDialog"}),a=qn(),l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":p,"aria-labelledby":u,"aria-modal":m=!0,BackdropComponent:h,BackdropProps:v,children:I,className:P,disableEscapeKeyDown:w=!1,fullScreen:R=!1,fullWidth:G=!1,maxWidth:N="sm",onClick:U,onClose:Y,open:L,PaperComponent:k=ui,PaperProps:j={},scroll:D="paper",slots:Z={},slotProps:ne={},TransitionComponent:le=Ep,transitionDuration:de=l,TransitionProps:ye,...E}=i,q={...i,disableEscapeKeyDown:w,fullScreen:R,fullWidth:G,maxWidth:N,scroll:D},re=TM(q),oe=Op.useRef(),ce=$t=>{oe.current=$t.target===$t.currentTarget},Me=$t=>{U&&U($t),oe.current&&(oe.current=null,Y&&Y($t,"backdropClick"))},He=Oi(u),Ie=Op.useMemo(()=>({titleId:He}),[He]),yt={transition:le,...Z},ct={transition:ye,paper:j,backdrop:v,...ne},ut={slots:yt,slotProps:ct},[ft,at]=Ct("root",{elementType:xM,shouldForwardComponentProp:!0,externalForwardedProps:ut,ownerState:q,className:ve(re.root,P),ref:r}),[tt,ke]=Ct("backdrop",{elementType:bM,shouldForwardComponentProp:!0,externalForwardedProps:ut,ownerState:q}),[Vt,Dt]=Ct("paper",{elementType:EM,shouldForwardComponentProp:!0,externalForwardedProps:ut,ownerState:q,className:ve(re.paper,j.className)}),[gt,dt]=Ct("container",{elementType:PM,externalForwardedProps:ut,ownerState:q,className:re.container}),[_t,Ft]=Ct("transition",{elementType:Ep,externalForwardedProps:ut,ownerState:q,additionalProps:{appear:!0,in:L,timeout:de,role:"presentation"}});return(0,Sp.jsx)(ft,{closeAfterTransition:!0,slots:{backdrop:tt},slotProps:{backdrop:{transitionDuration:de,as:h,...ke}},disableEscapeKeyDown:w,onClose:Y,open:L,onClick:Me,...at,...E,children:(0,Sp.jsx)(_t,{...Ft,children:(0,Sp.jsx)(gt,{onMouseDown:ce,...dt,children:(0,Sp.jsx)(Vt,{as:k,elevation:24,role:"dialog","aria-describedby":p,"aria-labelledby":He,"aria-modal":m,...Dt,children:(0,Sp.jsx)(md.Provider,{value:Ie,children:I})})})})})}),yd=wM;var ZP=me(Ee(),1);function YP(e){return Ye("MuiDialogActions",e)}var WJ=$e("MuiDialogActions",["root","spacing"]);var QP=xe("react/jsx-runtime"),IM=e=>{let{classes:t,disableSpacing:r}=e;return Xe({root:["root",!r&&"spacing"]},YP,t)},RM=Te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),SM=ZP.forwardRef(function(t,r){let i=Je({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:l=!1,...p}=i,u={...i,disableSpacing:l},m=IM(u);return(0,QP.jsx)(RM,{className:ve(m.root,a),ownerState:u,ref:r,...p})}),Cp=SM;var e0=me(Ee(),1);function qP(e){return Ye("MuiDialogContent",e)}var oK=$e("MuiDialogContent",["root","dividers"]);function JP(e){return Ye("MuiDialogTitle",e)}var OM=$e("MuiDialogTitle",["root"]),KP=OM;var t0=xe("react/jsx-runtime"),CM=e=>{let{classes:t,dividers:r}=e;return Xe({root:["root",r&&"dividers"]},qP,t)},DM=Te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(Pt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${KP.root} + &`]:{paddingTop:0}}}]}))),_M=e0.forwardRef(function(t,r){let i=Je({props:t,name:"MuiDialogContent"}),{className:a,dividers:l=!1,...p}=i,u={...i,dividers:l},m=CM(u);return(0,t0.jsx)(DM,{className:ve(m.root,a),ownerState:u,ref:r,...p})}),gd=_M;var hd=me(Ee(),1);var r0=xe("react/jsx-runtime"),AM=e=>{let{classes:t}=e;return Xe({root:["root"]},JP,t)},MM=Te(oo,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),NM=hd.forwardRef(function(t,r){let i=Je({props:t,name:"MuiDialogTitle"}),{className:a,id:l,...p}=i,u=i,m=AM(u),{titleId:h=l}=hd.useContext(md);return(0,r0.jsx)(MM,{component:"h2",className:ve(m.root,a),ownerState:u,ref:r,variant:"h6",id:l??h,...p})}),vd=NM;var o0=me(Ee(),1);var n0=xe("react/jsx-runtime"),LM=e=>{let{classes:t,disableUnderline:r,startAdornment:i,endAdornment:a,size:l,hiddenLabel:p,multiline:u}=e,m={root:["root",!r&&"underline",i&&"adornedStart",a&&"adornedEnd",l==="small"&&`size${Ne(l)}`,p&&"hiddenLabel",u&&"multiline"],input:["input"]},h=Xe(m,pP,t);return{...t,...h}},kM=Te(sl,{shouldForwardProp:e=>fo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...il(e,t),!r.disableUnderline&&t.underline]}})(Pt(({theme:e})=>{let t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${zn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${zn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l},variants:[{props:({ownerState:p})=>!p.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zn.disabled}, .${zn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Br()).map(([p])=>({props:{disableUnderline:!1,color:p},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[p]?.main}`}}})),{props:({ownerState:p})=>p.startAdornment,style:{paddingLeft:12}},{props:({ownerState:p})=>p.endAdornment,style:{paddingRight:12}},{props:({ownerState:p})=>p.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:p,size:u})=>p.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:p})=>p.multiline&&p.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:p})=>p.multiline&&p.hiddenLabel&&p.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),FM=Te(ll,{name:"MuiFilledInput",slot:"Input",overridesResolver:al})(Pt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),i0=o0.forwardRef(function(t,r){let i=Je({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:l={},componentsProps:p,fullWidth:u=!1,hiddenLabel:m,inputComponent:h="input",multiline:v=!1,slotProps:I,slots:P={},type:w="text",...R}=i,G={...i,disableUnderline:a,fullWidth:u,inputComponent:h,multiline:v,type:w},N=LM(i),U={root:{ownerState:G},input:{ownerState:G}},Y=I??p?Yr(U,I??p):U,L=P.root??l.Root??kM,k=P.input??l.Input??FM;return(0,n0.jsx)(pl,{slots:{root:L,input:k},slotProps:Y,fullWidth:u,inputComponent:h,multiline:v,ref:r,type:w,...R,classes:N})});i0.muiName="Input";var Qc=i0;var An=me(Ee(),1);function a0(e){return Ye("MuiFormControl",e)}var XK=$e("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var Qy=xe("react/jsx-runtime"),BM=e=>{let{classes:t,margin:r,fullWidth:i}=e,a={root:["root",r!=="none"&&`margin${Ne(r)}`,i&&"fullWidth"]};return Xe(a,a0,t)},GM=Te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`margin${Ne(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),UM=An.forwardRef(function(t,r){let i=Je({props:t,name:"MuiFormControl"}),{children:a,className:l,color:p="primary",component:u="div",disabled:m=!1,error:h=!1,focused:v,fullWidth:I=!1,hiddenLabel:P=!1,margin:w="none",required:R=!1,size:G="medium",variant:N="outlined",...U}=i,Y={...i,color:p,component:u,disabled:m,error:h,fullWidth:I,hiddenLabel:P,margin:w,required:R,size:G,variant:N},L=BM(Y),[k,j]=An.useState(()=>{let ce=!1;return a&&An.Children.forEach(a,Me=>{if(!op(Me,["Input","Select"]))return;let He=op(Me,["Select"])?Me.props.input:Me;He&&oP(He.props)&&(ce=!0)}),ce}),[D,Z]=An.useState(()=>{let ce=!1;return a&&An.Children.forEach(a,Me=>{op(Me,["Input","Select"])&&(ol(Me.props,!0)||ol(Me.props.inputProps,!0))&&(ce=!0)}),ce}),[ne,le]=An.useState(!1);m&&ne&&le(!1);let de=v!==void 0&&!m?v:ne,ye,E=An.useRef(!1),q=An.useCallback(()=>{Z(!0)},[]),re=An.useCallback(()=>{Z(!1)},[]),oe=An.useMemo(()=>({adornedStart:k,setAdornedStart:j,color:p,disabled:m,error:h,filled:D,focused:de,fullWidth:I,hiddenLabel:P,size:G,onBlur:()=>{le(!1)},onFocus:()=>{le(!0)},onEmpty:re,onFilled:q,registerEffect:ye,required:R,variant:N}),[k,p,m,h,D,de,I,P,ye,re,q,R,G,N]);return(0,Qy.jsx)(Tp.Provider,{value:oe,children:(0,Qy.jsx)(GM,{as:u,ownerState:Y,className:ve(L.root,l),ref:r,...U,children:a})})}),qy=UM;var bd=me(Ee(),1);function s0(e){return Ye("MuiFormControlLabel",e)}var jM=$e("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Dp=jM;var _p=xe("react/jsx-runtime"),zM=e=>{let{classes:t,disabled:r,labelPlacement:i,error:a,required:l}=e,p={root:["root",r&&"disabled",`labelPlacement${Ne(i)}`,a&&"error",l&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return Xe(p,s0,t)},VM=Te("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${Dp.label}`]:t.label},t.root,t[`labelPlacement${Ne(r.labelPlacement)}`]]}})(Pt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Dp.disabled}`]:{cursor:"default"},[`& .${Dp.label}`]:{[`&.${Dp.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),WM=Te("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Pt(({theme:e})=>({[`&.${Dp.error}`]:{color:(e.vars||e).palette.error.main}}))),HM=bd.forwardRef(function(t,r){let i=Je({props:t,name:"MuiFormControlLabel"}),{checked:a,className:l,componentsProps:p={},control:u,disabled:m,disableTypography:h,inputRef:v,label:I,labelPlacement:P="end",name:w,onChange:R,required:G,slots:N={},slotProps:U={},value:Y,...L}=i,k=mn(),j=m??u.props.disabled??k?.disabled,D=G??u.props.required,Z={disabled:j,required:D};["checked","name","onChange","value","inputRef"].forEach(oe=>{typeof u.props[oe]>"u"&&typeof i[oe]<"u"&&(Z[oe]=i[oe])});let ne=jn({props:i,muiFormControl:k,states:["error"]}),le={...i,disabled:j,labelPlacement:P,required:D,error:ne.error},de=zM(le),ye={slots:N,slotProps:{...p,...U}},[E,q]=Ct("typography",{elementType:oo,externalForwardedProps:ye,ownerState:le}),re=I;return re!=null&&re.type!==oo&&!h&&(re=(0,_p.jsx)(E,{component:"span",...q,className:ve(de.label,q?.className),children:re})),(0,_p.jsxs)(VM,{className:ve(de.root,l),ownerState:le,ref:r,...L,children:[bd.cloneElement(u,Z),D?(0,_p.jsxs)("div",{children:[re,(0,_p.jsxs)(WM,{ownerState:le,"aria-hidden":!0,className:de.asterisk,children:["\u2009","*"]})]}):re]})}),Td=HM;var c0=me(Ee(),1);function l0(e){return Ye("MuiFormHelperText",e)}var $M=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Jy=$M;var Ky=xe("react/jsx-runtime"),p0,XM=e=>{let{classes:t,contained:r,size:i,disabled:a,error:l,filled:p,focused:u,required:m}=e,h={root:["root",a&&"disabled",l&&"error",i&&`size${Ne(i)}`,r&&"contained",u&&"focused",p&&"filled",m&&"required"]};return Xe(h,l0,t)},YM=Te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.size&&t[`size${Ne(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Pt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Jy.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Jy.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),ZM=c0.forwardRef(function(t,r){let i=Je({props:t,name:"MuiFormHelperText"}),{children:a,className:l,component:p="p",disabled:u,error:m,filled:h,focused:v,margin:I,required:P,variant:w,...R}=i,G=mn(),N=jn({props:i,muiFormControl:G,states:["variant","size","disabled","error","filled","focused","required"]}),U={...i,component:p,contained:N.variant==="filled"||N.variant==="outlined",variant:N.variant,size:N.size,disabled:N.disabled,error:N.error,filled:N.filled,focused:N.focused,required:N.required};delete U.ownerState;let Y=XM(U);return(0,Ky.jsx)(YM,{as:p,className:ve(Y.root,l),ref:r,...R,ownerState:U,children:a===" "?p0||(p0=(0,Ky.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"\u200B"})):a})}),eg=ZM;var f0=me(Ee(),1);function u0(e){return Ye("MuiFormLabel",e)}var QM=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ps=QM;var tg=xe("react/jsx-runtime"),qM=e=>{let{classes:t,color:r,focused:i,disabled:a,error:l,filled:p,required:u}=e,m={root:["root",`color${Ne(r)}`,a&&"disabled",l&&"error",p&&"filled",i&&"focused",u&&"required"],asterisk:["asterisk",l&&"error"]};return Xe(m,u0,t)},JM=Te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(Pt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Br()).map(([t])=>({props:{color:t},style:{[`&.${ps.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ps.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ps.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),KM=Te("span",{name:"MuiFormLabel",slot:"Asterisk"})(Pt(({theme:e})=>({[`&.${ps.error}`]:{color:(e.vars||e).palette.error.main}}))),eN=f0.forwardRef(function(t,r){let i=Je({props:t,name:"MuiFormLabel"}),{children:a,className:l,color:p,component:u="label",disabled:m,error:h,filled:v,focused:I,required:P,...w}=i,R=mn(),G=jn({props:i,muiFormControl:R,states:["color","required","focused","disabled","error","filled"]}),N={...i,color:G.color||"primary",component:u,disabled:G.disabled,error:G.error,filled:G.filled,focused:G.focused,required:G.required},U=qM(N);return(0,tg.jsxs)(JM,{as:u,ownerState:N,className:ve(U.root,l),ref:r,...w,children:[a,G.required&&(0,tg.jsxs)(KM,{ownerState:N,"aria-hidden":!0,className:U.asterisk,children:["\u2009","*"]})]})}),rg=eN;var tN=Ef({createStyledComponent:Te("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Je({props:e,name:"MuiGrid"}),useTheme:qn}),Ap=tN;var cl=me(Ee(),1);var d0=xe("react/jsx-runtime");function ng(e){return`scale(${e}, ${e**2})`}var rN={entering:{opacity:1,transform:ng(1)},entered:{opacity:1,transform:"none"}},og=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ig=cl.forwardRef(function(t,r){let{addEndListener:i,appear:a=!0,children:l,easing:p,in:u,onEnter:m,onEntered:h,onEntering:v,onExit:I,onExited:P,onExiting:w,style:R,timeout:G="auto",TransitionComponent:N=Sc,...U}=t,Y=cp(),L=cl.useRef(),k=qn(),j=cl.useRef(null),D=en(j,Ni(l),r),Z=oe=>ce=>{if(oe){let Me=j.current;ce===void 0?oe(Me):oe(Me,ce)}},ne=Z(v),le=Z((oe,ce)=>{kf(oe);let{duration:Me,delay:He,easing:Ie}=up({style:R,timeout:G,easing:p},{mode:"enter"}),yt;G==="auto"?(yt=k.transitions.getAutoHeightDuration(oe.clientHeight),L.current=yt):yt=Me,oe.style.transition=[k.transitions.create("opacity",{duration:yt,delay:He}),k.transitions.create("transform",{duration:og?yt:yt*.666,delay:He,easing:Ie})].join(","),m&&m(oe,ce)}),de=Z(h),ye=Z(w),E=Z(oe=>{let{duration:ce,delay:Me,easing:He}=up({style:R,timeout:G,easing:p},{mode:"exit"}),Ie;G==="auto"?(Ie=k.transitions.getAutoHeightDuration(oe.clientHeight),L.current=Ie):Ie=ce,oe.style.transition=[k.transitions.create("opacity",{duration:Ie,delay:Me}),k.transitions.create("transform",{duration:og?Ie:Ie*.666,delay:og?Me:Me||Ie*.333,easing:He})].join(","),oe.style.opacity=0,oe.style.transform=ng(.75),I&&I(oe)}),q=Z(P);return(0,d0.jsx)(N,{appear:a,in:u,nodeRef:j,onEnter:le,onEntered:de,onEntering:ne,onExit:E,onExited:q,onExiting:ye,addEndListener:oe=>{G==="auto"&&Y.start(L.current||0,oe),i&&i(j.current,oe)},timeout:G==="auto"?null:G,...U,children:(oe,{ownerState:ce,...Me})=>cl.cloneElement(l,{style:{opacity:0,transform:ng(.75),visibility:oe==="exited"&&!u?"hidden":void 0,...rN[oe],...R,...l.props.style},ref:D,...Me})})});ig&&(ig.muiSupportAuto=!0);var ag=ig;var m0=me(Ee(),1);var y0=xe("react/jsx-runtime"),oN=e=>{let{classes:t,disableUnderline:r}=e,a=Xe({root:["root",!r&&"underline"],input:["input"]},sP,t);return{...t,...a}},nN=Te(sl,{shouldForwardProp:e=>fo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...il(e,t),!r.disableUnderline&&t.underline]}})(Pt(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ca.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ca.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ca.disabled}, .${ca.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ca.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Br()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}}))]}})),iN=Te(ll,{name:"MuiInput",slot:"Input",overridesResolver:al})({}),g0=m0.forwardRef(function(t,r){let i=Je({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:l={},componentsProps:p,fullWidth:u=!1,inputComponent:m="input",multiline:h=!1,slotProps:v,slots:I={},type:P="text",...w}=i,R=oN(i),N={root:{ownerState:{disableUnderline:a}}},U=v??p?Yr(v??p,N):N,Y=I.root??l.Root??nN,L=I.input??l.Input??iN;return(0,y0.jsx)(pl,{slots:{root:Y,input:L},slotProps:U,fullWidth:u,inputComponent:m,multiline:h,ref:r,type:P,...w,classes:R})});g0.muiName="Input";var qc=g0;var v0=me(Ee(),1);function h0(e){return Ye("MuiInputLabel",e)}var zte=$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var b0=xe("react/jsx-runtime"),aN=e=>{let{classes:t,formControl:r,size:i,shrink:a,disableAnimation:l,variant:p,required:u}=e,m={root:["root",r&&"formControl",!l&&"animated",a&&"shrink",i&&i!=="medium"&&`size${Ne(i)}`,p],asterisk:[u&&"asterisk"]},h=Xe(m,h0,t);return{...t,...h}},sN=Te(rg,{shouldForwardProp:e=>fo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${ps.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Pt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:i})=>t==="filled"&&r.shrink&&i==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),lN=v0.forwardRef(function(t,r){let i=Je({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:l,shrink:p,variant:u,className:m,...h}=i,v=mn(),I=p;typeof I>"u"&&v&&(I=v.filled||v.focused||v.adornedStart);let P=jn({props:i,muiFormControl:v,states:["size","variant","required","focused"]}),w={...i,disableAnimation:a,formControl:v,shrink:I,size:P.size,variant:P.variant,required:P.required,focused:P.focused},R=aN(w);return(0,b0.jsx)(sN,{"data-shrink":I,ref:r,className:ve(R.root,m),...h,ownerState:w,classes:R})}),sg=lN;var xd=me(Ee(),1);var T0=me(Ee(),1),pN=T0.createContext({}),fa=pN;function x0(e){return Ye("MuiList",e)}var lre=$e("MuiList",["root","padding","dense","subheader"]);var Pd=xe("react/jsx-runtime"),cN=e=>{let{classes:t,disablePadding:r,dense:i,subheader:a}=e;return Xe({root:["root",!r&&"padding",i&&"dense",a&&"subheader"]},x0,t)},uN=Te("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),fN=xd.forwardRef(function(t,r){let i=Je({props:t,name:"MuiList"}),{children:a,className:l,component:p="ul",dense:u=!1,disablePadding:m=!1,subheader:h,...v}=i,I=xd.useMemo(()=>({dense:u}),[u]),P={...i,component:p,dense:u,disablePadding:m},w=cN(P);return(0,Pd.jsx)(fa.Provider,{value:I,children:(0,Pd.jsxs)(uN,{as:p,className:ve(w.root,l),ref:r,ownerState:P,...v,children:[h,a]})})}),Mp=fN;var da=me(Ee(),1);function P0(e){return Ye("MuiListItem",e)}var Pre=$e("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);var dN=$e("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),lg=dN;var Ed=me(Ee(),1);function E0(e){return Ye("MuiListItemSecondaryAction",e)}var _re=$e("MuiListItemSecondaryAction",["root","disableGutters"]);var w0=xe("react/jsx-runtime"),mN=e=>{let{disableGutters:t,classes:r}=e;return Xe({root:["root",t&&"disableGutters"]},E0,r)},yN=Te("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),I0=Ed.forwardRef(function(t,r){let i=Je({props:t,name:"MuiListItemSecondaryAction"}),{className:a,...l}=i,p=Ed.useContext(fa),u={...i,disableGutters:p.disableGutters},m=mN(u);return(0,w0.jsx)(yN,{className:ve(m.root,a),ownerState:u,ref:r,...l})});I0.muiName="ListItemSecondaryAction";var pg=I0;var cs=xe("react/jsx-runtime"),gN=(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.hasSecondaryAction&&t.secondaryAction]},hN=e=>{let{alignItems:t,classes:r,dense:i,disableGutters:a,disablePadding:l,divider:p,hasSecondaryAction:u}=e;return Xe({root:["root",i&&"dense",!a&&"gutters",!l&&"padding",p&&"divider",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction"],container:["container"]},P0,r)},vN=Te("div",{name:"MuiListItem",slot:"Root",overridesResolver:gN})(Pt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${lg.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),bN=Te("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),TN=da.forwardRef(function(t,r){let i=Je({props:t,name:"MuiListItem"}),{alignItems:a="center",children:l,className:p,component:u,components:m={},componentsProps:h={},ContainerComponent:v="li",ContainerProps:{className:I,...P}={},dense:w=!1,disableGutters:R=!1,disablePadding:G=!1,divider:N=!1,secondaryAction:U,slotProps:Y={},slots:L={},...k}=i,j=da.useContext(fa),D=da.useMemo(()=>({dense:w||j.dense||!1,alignItems:a,disableGutters:R}),[a,j.dense,w,R]),Z=da.useRef(null),ne=da.Children.toArray(l),le=ne.length&&op(ne[ne.length-1],["ListItemSecondaryAction"]),de={...i,alignItems:a,dense:D.dense,disableGutters:R,disablePadding:G,divider:N,hasSecondaryAction:le},ye=hN(de),E=en(Z,r),q=L.root||m.Root||vN,re=Y.root||h.root||{},oe={className:ve(ye.root,re.className,p),...k},ce=u||"li";return le?(ce=!oe.component&&!u?"div":ce,v==="li"&&(ce==="li"?ce="div":oe.component==="li"&&(oe.component="div")),(0,cs.jsx)(fa.Provider,{value:D,children:(0,cs.jsxs)(bN,{as:v,className:ve(ye.container,I),ref:E,ownerState:de,...P,children:[(0,cs.jsx)(q,{...re,...!Vi(q)&&{as:ce,ownerState:{...de,...re.ownerState}},...oe,children:ne}),ne.pop()]})})):(0,cs.jsx)(fa.Provider,{value:D,children:(0,cs.jsxs)(q,{...re,as:ce,ref:E,...!Vi(q)&&{ownerState:{...de,...re.ownerState}},...oe,children:[ne,U&&(0,cs.jsx)(pg,{children:U})]})})}),Np=TN;var wd=me(Ee(),1);function R0(e){return Ye("MuiListItemText",e)}var xN=$e("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Jc=xN;var Kc=xe("react/jsx-runtime"),PN=e=>{let{classes:t,inset:r,primary:i,secondary:a,dense:l}=e;return Xe({root:["root",r&&"inset",l&&"dense",i&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},R0,t)},EN=Te("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${Jc.primary}`]:t.primary},{[`& .${Jc.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Hf.root}:where(& .${Jc.primary})`]:{display:"block"},[`.${Hf.root}:where(& .${Jc.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),wN=wd.forwardRef(function(t,r){let i=Je({props:t,name:"MuiListItemText"}),{children:a,className:l,disableTypography:p=!1,inset:u=!1,primary:m,primaryTypographyProps:h,secondary:v,secondaryTypographyProps:I,slots:P={},slotProps:w={},...R}=i,{dense:G}=wd.useContext(fa),N=m??a,U=v,Y={...i,disableTypography:p,inset:u,primary:!!N,secondary:!!U,dense:G},L=PN(Y),k={slots:P,slotProps:{primary:h,secondary:I,...w}},[j,D]=Ct("root",{className:ve(L.root,l),elementType:EN,externalForwardedProps:{...k,...R},ownerState:Y,ref:r}),[Z,ne]=Ct("primary",{className:L.primary,elementType:oo,externalForwardedProps:k,ownerState:Y}),[le,de]=Ct("secondary",{className:L.secondary,elementType:oo,externalForwardedProps:k,ownerState:Y});return N!=null&&N.type!==oo&&!p&&(N=(0,Kc.jsx)(Z,{variant:G?"body2":"body1",component:ne?.variant?void 0:"span",...ne,children:N})),U!=null&&U.type!==oo&&!p&&(U=(0,Kc.jsx)(le,{variant:"body2",color:"textSecondary",...de,children:U})),(0,Kc.jsxs)(j,{...D,children:[N,U]})}),Lp=wN;var us=me(Ee(),1);var ei=me(Ee(),1);var S0=wp;var C0=xe("react/jsx-runtime");function cg(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function O0(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function D0(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function eu(e,t,r,i,a,l){let p=!1,u=a(e,t,t?r:!1);for(;u;){if(u===e.firstChild){if(p)return!1;p=!0}let m=i?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!D0(u,l)||m)u=a(e,u,r);else return u.focus(),!0}return!1}var IN=ei.forwardRef(function(t,r){let{actions:i,autoFocus:a=!1,autoFocusItem:l=!1,children:p,className:u,disabledItemsFocusable:m=!1,disableListWrap:h=!1,onKeyDown:v,variant:I="selectedMenu",...P}=t,w=ei.useRef(null),R=ei.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ws(()=>{a&&w.current.focus()},[a]),ei.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(L,{direction:k})=>{let j=!w.current.style.width;if(L.clientHeight<w.current.clientHeight&&j){let D=`${S0(la(L))}px`;w.current.style[k==="rtl"?"paddingLeft":"paddingRight"]=D,w.current.style.width=`calc(100% + ${D})`}return w.current}}),[]);let G=L=>{let k=w.current,j=L.key;if(L.ctrlKey||L.metaKey||L.altKey){v&&v(L);return}let Z=Aa(k).activeElement;if(j==="ArrowDown")L.preventDefault(),eu(k,Z,h,m,cg);else if(j==="ArrowUp")L.preventDefault(),eu(k,Z,h,m,O0);else if(j==="Home")L.preventDefault(),eu(k,null,h,m,cg);else if(j==="End")L.preventDefault(),eu(k,null,h,m,O0);else if(j.length===1){let ne=R.current,le=j.toLowerCase(),de=performance.now();ne.keys.length>0&&(de-ne.lastTime>500?(ne.keys=[],ne.repeating=!0,ne.previousKeyMatched=!0):ne.repeating&&le!==ne.keys[0]&&(ne.repeating=!1)),ne.lastTime=de,ne.keys.push(le);let ye=Z&&!ne.repeating&&D0(Z,ne);ne.previousKeyMatched&&(ye||eu(k,Z,!1,m,cg,ne))?L.preventDefault():ne.previousKeyMatched=!1}v&&v(L)},N=en(w,r),U=-1;ei.Children.forEach(p,(L,k)=>{if(!ei.isValidElement(L)){U===k&&(U+=1,U>=p.length&&(U=-1));return}L.props.disabled||(I==="selectedMenu"&&L.props.selected||U===-1)&&(U=k),U===k&&(L.props.disabled||L.props.muiSkipListHighlight||L.type.muiSkipListHighlight)&&(U+=1,U>=p.length&&(U=-1))});let Y=ei.Children.map(p,(L,k)=>{if(k===U){let j={};return l&&(j.autoFocus=!0),L.props.tabIndex===void 0&&I==="selectedMenu"&&(j.tabIndex=0),ei.cloneElement(L,j)}return L});return(0,C0.jsx)(Mp,{role:"menu",ref:N,className:u,onKeyDown:G,tabIndex:a?0:-1,...P,children:Y})}),ug=IN;var In=me(Ee(),1);function _0(e){return Ye("MuiPopover",e)}var Moe=$e("MuiPopover",["root","paper"]);var Rd=xe("react/jsx-runtime");function A0(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function M0(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function N0(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Id(e){return typeof e=="function"?e():e}var RN=e=>{let{classes:t}=e;return Xe({root:["root"],paper:["paper"]},_0,t)},SN=Te(Zc,{name:"MuiPopover",slot:"Root"})({}),fg=Te(ui,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ON=In.forwardRef(function(t,r){let i=Je({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:m="anchorEl",children:h,className:v,container:I,elevation:P=8,marginThreshold:w=16,open:R,PaperProps:G={},slots:N={},slotProps:U={},transformOrigin:Y={vertical:"top",horizontal:"left"},TransitionComponent:L,transitionDuration:k="auto",TransitionProps:j={},disableScrollLock:D=!1,...Z}=i,ne=In.useRef(),le={...i,anchorOrigin:p,anchorReference:m,elevation:P,marginThreshold:w,transformOrigin:Y,TransitionComponent:L,transitionDuration:k,TransitionProps:j},de=RN(le),ye=In.useCallback(()=>{if(m==="anchorPosition")return u;let dt=Id(l),Ft=(dt&&dt.nodeType===1?dt:Aa(ne.current).body).getBoundingClientRect();return{top:Ft.top+A0(Ft,p.vertical),left:Ft.left+M0(Ft,p.horizontal)}},[l,p.horizontal,p.vertical,u,m]),E=In.useCallback(dt=>({vertical:A0(dt,Y.vertical),horizontal:M0(dt,Y.horizontal)}),[Y.horizontal,Y.vertical]),q=In.useCallback(dt=>{let _t={width:dt.offsetWidth,height:dt.offsetHeight},Ft=E(_t);if(m==="none")return{top:null,left:null,transformOrigin:N0(Ft)};let $t=ye(),Ut=$t.top-Ft.vertical,ir=$t.left-Ft.horizontal,Mt=Ut+_t.height,or=ir+_t.width,ze=la(Id(l)),cr=ze.innerHeight-w,xt=ze.innerWidth-w;if(w!==null&&Ut<w){let Wt=Ut-w;Ut-=Wt,Ft.vertical+=Wt}else if(w!==null&&Mt>cr){let Wt=Mt-cr;Ut-=Wt,Ft.vertical+=Wt}if(w!==null&&ir<w){let Wt=ir-w;ir-=Wt,Ft.horizontal+=Wt}else if(or>xt){let Wt=or-xt;ir-=Wt,Ft.horizontal+=Wt}return{top:`${Math.round(Ut)}px`,left:`${Math.round(ir)}px`,transformOrigin:N0(Ft)}},[l,m,ye,E,w]),[re,oe]=In.useState(R),ce=In.useCallback(()=>{let dt=ne.current;if(!dt)return;let _t=q(dt);_t.top!==null&&dt.style.setProperty("top",_t.top),_t.left!==null&&(dt.style.left=_t.left),dt.style.transformOrigin=_t.transformOrigin,oe(!0)},[q]);In.useEffect(()=>(D&&window.addEventListener("scroll",ce),()=>window.removeEventListener("scroll",ce)),[l,D,ce]);let Me=()=>{ce()},He=()=>{oe(!1)};In.useEffect(()=>{R&&ce()}),In.useImperativeHandle(a,()=>R?{updatePosition:()=>{ce()}}:null,[R,ce]),In.useEffect(()=>{if(!R)return;let dt=rp(()=>{ce()}),_t=la(Id(l));return _t.addEventListener("resize",dt),()=>{dt.clear(),_t.removeEventListener("resize",dt)}},[l,R,ce]);let Ie=k,yt={slots:{transition:L,...N},slotProps:{transition:j,paper:G,...U}},[ct,ut]=Ct("transition",{elementType:ag,externalForwardedProps:yt,ownerState:le,getSlotProps:dt=>({...dt,onEntering:(_t,Ft)=>{dt.onEntering?.(_t,Ft),Me()},onExited:_t=>{dt.onExited?.(_t),He()}}),additionalProps:{appear:!0,in:R}});k==="auto"&&!ct.muiSupportAuto&&(Ie=void 0);let ft=I||(l?Aa(Id(l)).body:void 0),[at,{slots:tt,slotProps:ke,...Vt}]=Ct("root",{ref:r,elementType:SN,externalForwardedProps:{...yt,...Z},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:N.backdrop},slotProps:{backdrop:ip(typeof U.backdrop=="function"?U.backdrop(le):U.backdrop,{invisible:!0})},container:ft,open:R},ownerState:le,className:ve(de.root,v)}),[Dt,gt]=Ct("paper",{ref:ne,className:de.paper,elementType:fg,externalForwardedProps:yt,shouldForwardComponentProp:!0,additionalProps:{elevation:P,style:re?void 0:{opacity:0}},ownerState:le});return(0,Rd.jsx)(at,{...Vt,...!Vi(at)&&{slots:tt,slotProps:ke,disableScrollLock:D},children:(0,Rd.jsx)(ct,{...ut,timeout:Ie,children:(0,Rd.jsx)(Dt,{...gt,children:h})})})}),dg=ON;function L0(e){return Ye("MuiMenu",e)}var rne=$e("MuiMenu",["root","paper","list"]);var mg=xe("react/jsx-runtime"),CN={vertical:"top",horizontal:"right"},DN={vertical:"top",horizontal:"left"},_N=e=>{let{classes:t}=e;return Xe({root:["root"],paper:["paper"],list:["list"]},L0,t)},AN=Te(dg,{shouldForwardProp:e=>fo(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),MN=Te(fg,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),NN=Te(ug,{name:"MuiMenu",slot:"List"})({outline:0}),LN=us.forwardRef(function(t,r){let i=Je({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:p,disableAutoFocusItem:u=!1,MenuListProps:m={},onClose:h,open:v,PaperProps:I={},PopoverClasses:P,transitionDuration:w="auto",TransitionProps:{onEntering:R,...G}={},variant:N="selectedMenu",slots:U={},slotProps:Y={},...L}=i,k=rs(),j={...i,autoFocus:a,disableAutoFocusItem:u,MenuListProps:m,onEntering:R,PaperProps:I,transitionDuration:w,TransitionProps:G,variant:N},D=_N(j),Z=a&&!u&&v,ne=us.useRef(null),le=(Ie,yt)=>{ne.current&&ne.current.adjustStyleForScrollbar(Ie,{direction:k?"rtl":"ltr"}),R&&R(Ie,yt)},de=Ie=>{Ie.key==="Tab"&&(Ie.preventDefault(),h&&h(Ie,"tabKeyDown"))},ye=-1;us.Children.map(l,(Ie,yt)=>{us.isValidElement(Ie)&&(Ie.props.disabled||(N==="selectedMenu"&&Ie.props.selected||ye===-1)&&(ye=yt))});let E={slots:U,slotProps:{list:m,transition:G,paper:I,...Y}},q=Yi({elementType:U.root,externalSlotProps:Y.root,ownerState:j,className:[D.root,p]}),[re,oe]=Ct("paper",{className:D.paper,elementType:MN,externalForwardedProps:E,shouldForwardComponentProp:!0,ownerState:j}),[ce,Me]=Ct("list",{className:ve(D.list,m.className),elementType:NN,shouldForwardComponentProp:!0,externalForwardedProps:E,getSlotProps:Ie=>({...Ie,onKeyDown:yt=>{de(yt),Ie.onKeyDown?.(yt)}}),ownerState:j}),He=typeof E.slotProps.transition=="function"?E.slotProps.transition(j):E.slotProps.transition;return(0,mg.jsx)(AN,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?CN:DN,slots:{root:U.root,paper:re,backdrop:U.backdrop,...U.transition&&{transition:U.transition}},slotProps:{root:q,paper:oe,backdrop:typeof Y.backdrop=="function"?Y.backdrop(j):Y.backdrop,transition:{...He,onEntering:(...Ie)=>{le(...Ie),He?.onEntering?.(...Ie)}}},open:v,ref:r,transitionDuration:w,ownerState:j,...L,classes:P,children:(0,mg.jsx)(ce,{actions:ne,autoFocus:a&&(ye===-1||u),autoFocusItem:Z,variant:N,...Me,children:l})})}),k0=LN;var Od=me(Ee(),1);function F0(e){return Ye("MuiNativeSelect",e)}var kN=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Sd=kN;var tu=xe("react/jsx-runtime"),FN=e=>{let{classes:t,variant:r,disabled:i,multiple:a,open:l,error:p}=e,u={select:["select",r,i&&"disabled",a&&"multiple",p&&"error"],icon:["icon",`icon${Ne(r)}`,l&&"iconOpen",i&&"disabled"]};return Xe(u,F0,t)},yg=Te("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Sd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),BN=Te(yg,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:fo,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Sd.multiple}`]:t.multiple}]}})({}),gg=Te("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Sd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),GN=Te(gg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ne(r.variant)}`],r.open&&t.iconOpen]}})({}),UN=Od.forwardRef(function(t,r){let{className:i,disabled:a,error:l,IconComponent:p,inputRef:u,variant:m="standard",...h}=t,v={...t,disabled:a,variant:m,error:l},I=FN(v);return(0,tu.jsxs)(Od.Fragment,{children:[(0,tu.jsx)(BN,{ownerState:v,className:ve(I.select,i),disabled:a,ref:u||r,...h}),t.multiple?null:(0,tu.jsx)(GN,{as:p,ownerState:v,className:I.icon})]})}),B0=UN;var Cd=me(Ee(),1);var Rne=me(Ee(),1);var ru=xe("react/jsx-runtime"),G0,jN=Te("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:fo})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),zN=Te("legend",{name:"MuiNotchedOutlined",shouldForwardProp:fo})(Pt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function hg(e){let{children:t,classes:r,className:i,label:a,notched:l,...p}=e,u=a!=null&&a!=="",m={...e,notched:l,withLabel:u};return(0,ru.jsx)(jN,{"aria-hidden":!0,className:i,ownerState:m,...p,children:(0,ru.jsx)(zN,{ownerState:m,children:u?(0,ru.jsx)("span",{children:a}):G0||(G0=(0,ru.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"\u200B"}))})})}var ou=xe("react/jsx-runtime"),VN=e=>{let{classes:t}=e,i=Xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},lP,t);return{...t,...i}},WN=Te(sl,{shouldForwardProp:e=>fo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:il})(Pt(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Kn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Kn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Kn.focused} .${Kn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Br()).map(([r])=>({props:{color:r},style:{[`&.${Kn.focused} .${Kn.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${Kn.error} .${Kn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Kn.disabled} .${Kn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:i})=>r.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),HN=Te(hg,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Pt(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),$N=Te(ll,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:al})(Pt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),U0=Cd.forwardRef(function(t,r){let i=Je({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:p="input",label:u,multiline:m=!1,notched:h,slots:v={},slotProps:I={},type:P="text",...w}=i,R=VN(i),G=mn(),N=jn({props:i,muiFormControl:G,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),U={...i,color:N.color||"primary",disabled:N.disabled,error:N.error,focused:N.focused,formControl:G,fullWidth:l,hiddenLabel:N.hiddenLabel,multiline:m,size:N.size,type:P},Y=v.root??a.Root??WN,L=v.input??a.Input??$N,[k,j]=Ct("notchedOutline",{elementType:HN,className:R.notchedOutline,shouldForwardComponentProp:!0,ownerState:U,externalForwardedProps:{slots:v,slotProps:I},additionalProps:{label:u!=null&&u!==""&&N.required?(0,ou.jsxs)(Cd.Fragment,{children:[u,"\u2009","*"]}):u}});return(0,ou.jsx)(pl,{slots:{root:Y,input:L},slotProps:I,renderSuffix:D=>(0,ou.jsx)(k,{...j,notched:typeof h<"u"?h:!!(D.startAdornment||D.filled||D.focused)}),fullWidth:l,inputComponent:p,multiline:m,ref:r,type:P,...w,classes:{...R,notchedOutline:null}})});U0.muiName="Input";var nu=U0;var Fp=me(Ee(),1);var mo=me(Ee(),1);function Dd(e){return Ye("MuiSelect",e)}var XN=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),kp=XN;var fs=xe("react/jsx-runtime"),j0,YN=Te(yg,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`&.${kp.select}`]:t.select},{[`&.${kp.select}`]:t[r.variant]},{[`&.${kp.error}`]:t.error},{[`&.${kp.multiple}`]:t.multiple}]}})({[`&.${kp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ZN=Te(gg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ne(r.variant)}`],r.open&&t.iconOpen]}})({}),QN=Te("input",{shouldForwardProp:e=>Sf(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function z0(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function qN(e){return e==null||typeof e=="string"&&!e.trim()}var JN=e=>{let{classes:t,variant:r,disabled:i,multiple:a,open:l,error:p}=e,u={select:["select",r,i&&"disabled",a&&"multiple",p&&"error"],icon:["icon",`icon${Ne(r)}`,l&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return Xe(u,Dd,t)},KN=mo.forwardRef(function(t,r){let{"aria-describedby":i,"aria-label":a,autoFocus:l,autoWidth:p,children:u,className:m,defaultOpen:h,defaultValue:v,disabled:I,displayEmpty:P,error:w=!1,IconComponent:R,inputRef:G,labelId:N,MenuProps:U={},multiple:Y,name:L,onBlur:k,onChange:j,onClose:D,onFocus:Z,onOpen:ne,open:le,readOnly:de,renderValue:ye,required:E,SelectDisplayProps:q={},tabIndex:re,type:oe,value:ce,variant:Me="standard",...He}=t,[Ie,yt]=Ec({controlled:ce,default:v,name:"Select"}),[ct,ut]=Ec({controlled:le,default:h,name:"Select"}),ft=mo.useRef(null),at=mo.useRef(null),[tt,ke]=mo.useState(null),{current:Vt}=mo.useRef(le!=null),[Dt,gt]=mo.useState(),dt=en(r,G),_t=mo.useCallback(bt=>{at.current=bt,bt&&ke(bt)},[]),Ft=tt?.parentNode;mo.useImperativeHandle(dt,()=>({focus:()=>{at.current.focus()},node:ft.current,value:Ie}),[Ie]),mo.useEffect(()=>{h&&ct&&tt&&!Vt&&(gt(p?null:Ft.clientWidth),at.current.focus())},[tt,p]),mo.useEffect(()=>{l&&at.current.focus()},[l]),mo.useEffect(()=>{if(!N)return;let bt=Aa(at.current).getElementById(N);if(bt){let Ht=()=>{getSelection().isCollapsed&&at.current.focus()};return bt.addEventListener("click",Ht),()=>{bt.removeEventListener("click",Ht)}}},[N]);let $t=(bt,Ht)=>{bt?ne&&ne(Ht):D&&D(Ht),Vt||(gt(p?null:Ft.clientWidth),ut(bt))},Ut=bt=>{bt.button===0&&(bt.preventDefault(),at.current.focus(),$t(!0,bt))},ir=bt=>{$t(!1,bt)},Mt=mo.Children.toArray(u),or=bt=>{let Ht=Mt.find(mr=>mr.props.value===bt.target.value);Ht!==void 0&&(yt(Ht.props.value),j&&j(bt,Ht))},ze=bt=>Ht=>{let mr;if(Ht.currentTarget.hasAttribute("tabindex")){if(Y){mr=Array.isArray(Ie)?Ie.slice():[];let go=Ie.indexOf(bt.props.value);go===-1?mr.push(bt.props.value):mr.splice(go,1)}else mr=bt.props.value;if(bt.props.onClick&&bt.props.onClick(Ht),Ie!==mr&&(yt(mr),j)){let go=Ht.nativeEvent||Ht,an=new go.constructor(go.type,go);Object.defineProperty(an,"target",{writable:!0,value:{value:mr,name:L}}),j(an,bt)}Y||$t(!1,Ht)}},cr=bt=>{de||[" ","ArrowUp","ArrowDown","Enter"].includes(bt.key)&&(bt.preventDefault(),$t(!0,bt))},xt=tt!==null&&ct,Wt=bt=>{!xt&&k&&(Object.defineProperty(bt,"target",{writable:!0,value:{value:Ie,name:L}}),k(bt))};delete He["aria-invalid"];let it,Gr,Xt=[],Ur=!1,Qr=!1;(ol({value:Ie})||P)&&(ye?it=ye(Ie):Ur=!0);let Uo=Mt.map(bt=>{if(!mo.isValidElement(bt))return null;let Ht;if(Y){if(!Array.isArray(Ie))throw new Error(pn(2));Ht=Ie.some(mr=>z0(mr,bt.props.value)),Ht&&Ur&&Xt.push(bt.props.children)}else Ht=z0(Ie,bt.props.value),Ht&&Ur&&(Gr=bt.props.children);return Ht&&(Qr=!0),mo.cloneElement(bt,{"aria-selected":Ht?"true":"false",onClick:ze(bt),onKeyUp:mr=>{mr.key===" "&&mr.preventDefault(),bt.props.onKeyUp&&bt.props.onKeyUp(mr)},role:"option",selected:Ht,value:void 0,"data-value":bt.props.value})});Ur&&(Y?Xt.length===0?it=null:it=Xt.reduce((bt,Ht,mr)=>(bt.push(Ht),mr<Xt.length-1&&bt.push(", "),bt),[]):it=Gr);let qr=Dt;!p&&Vt&&tt&&(qr=Ft.clientWidth);let Oo;typeof re<"u"?Oo=re:Oo=I?null:0;let ur=q.id||(L?`mui-component-select-${L}`:void 0),Ke={...t,variant:Me,value:Ie,open:xt,error:w},jr=JN(Ke),xo={...U.PaperProps,...typeof U.slotProps?.paper=="function"?U.slotProps.paper(Ke):U.slotProps?.paper},yo={...U.MenuListProps,...typeof U.slotProps?.list=="function"?U.slotProps.list(Ke):U.slotProps?.list},jo=Oi();return(0,fs.jsxs)(mo.Fragment,{children:[(0,fs.jsx)(YN,{as:"div",ref:_t,tabIndex:Oo,role:"combobox","aria-controls":xt?jo:void 0,"aria-disabled":I?"true":void 0,"aria-expanded":xt?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[N,ur].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":E?"true":void 0,"aria-invalid":w?"true":void 0,onKeyDown:cr,onMouseDown:I||de?null:Ut,onBlur:Wt,onFocus:Z,...q,ownerState:Ke,className:ve(q.className,jr.select,m),id:ur,children:qN(it)?j0||(j0=(0,fs.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"\u200B"})):it}),(0,fs.jsx)(QN,{"aria-invalid":w,value:Array.isArray(Ie)?Ie.join(","):Ie,name:L,ref:ft,"aria-hidden":!0,onChange:or,tabIndex:-1,disabled:I,className:jr.nativeInput,autoFocus:l,required:E,...He,ownerState:Ke}),(0,fs.jsx)(ZN,{as:R,className:jr.icon,ownerState:Ke}),(0,fs.jsx)(k0,{id:`menu-${L||""}`,anchorEl:Ft,open:xt,onClose:ir,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...U,slotProps:{...U.slotProps,list:{"aria-labelledby":N,role:"listbox","aria-multiselectable":Y?"true":void 0,disableListWrap:!0,id:jo,...yo},paper:{...xo,style:{minWidth:qr,...xo!=null?xo.style:null}}},children:Uo})]})}),V0=KN;var iu=xe("react/jsx-runtime"),eL=e=>{let{classes:t}=e,i=Xe({root:["root"]},Dd,t);return{...t,...i}},vg={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>fo(e)&&e!=="variant"},tL=Te(qc,vg)(""),rL=Te(nu,vg)(""),oL=Te(Qc,vg)(""),W0=Fp.forwardRef(function(t,r){let i=Je({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:l,classes:p={},className:u,defaultOpen:m=!1,displayEmpty:h=!1,IconComponent:v=od,id:I,input:P,inputProps:w,label:R,labelId:G,MenuProps:N,multiple:U=!1,native:Y=!1,onClose:L,onOpen:k,open:j,renderValue:D,SelectDisplayProps:Z,variant:ne="outlined",...le}=i,de=Y?B0:V0,ye=mn(),E=jn({props:i,muiFormControl:ye,states:["variant","error"]}),q=E.variant||ne,re={...i,variant:q,classes:p},oe=eL(re),{root:ce,...Me}=oe,He=P||{standard:(0,iu.jsx)(tL,{ownerState:re}),outlined:(0,iu.jsx)(rL,{label:R,ownerState:re}),filled:(0,iu.jsx)(oL,{ownerState:re})}[q],Ie=en(r,Ni(He));return(0,iu.jsx)(Fp.Fragment,{children:Fp.cloneElement(He,{inputComponent:de,inputProps:{children:l,error:E.error,IconComponent:v,variant:q,type:void 0,multiple:U,...Y?{id:I}:{autoWidth:a,defaultOpen:m,displayEmpty:h,labelId:G,MenuProps:N,onClose:L,onOpen:k,open:j,renderValue:D,SelectDisplayProps:{id:I,...Z}},...w,classes:w?Yr(Me,w.classes):Me,...P?P.props.inputProps:{}},...(U&&Y||h)&&q==="outlined"?{notched:!0}:{},ref:Ie,className:ve(He.props.className,u,oe.root),...!P&&{variant:q},...le})})});W0.muiName="Select";var bg=W0;var ja=me(Ee(),1);function H0(e){return Ye("MuiTab",e)}var nL=$e("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),gi=nL;var _d=xe("react/jsx-runtime"),iL=e=>{let{classes:t,textColor:r,fullWidth:i,wrapped:a,icon:l,label:p,selected:u,disabled:m}=e,h={root:["root",l&&p&&"labelIcon",`textColor${Ne(r)}`,i&&"fullWidth",a&&"wrapped",u&&"selected",m&&"disabled"],icon:["iconWrapper","icon"]};return Xe(h,H0,t)},aL=Te(Jn,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Ne(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${gi.iconWrapper}`]:t.iconWrapper},{[`& .${gi.icon}`]:t.icon}]}})(Pt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${gi.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${gi.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${gi.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${gi.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${gi.selected}`]:{opacity:1},[`&.${gi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${gi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${gi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${gi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${gi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),sL=ja.forwardRef(function(t,r){let i=Je({props:t,name:"MuiTab"}),{className:a,disabled:l=!1,disableFocusRipple:p=!1,fullWidth:u,icon:m,iconPosition:h="top",indicator:v,label:I,onChange:P,onClick:w,onFocus:R,selected:G,selectionFollowsFocus:N,textColor:U="inherit",value:Y,wrapped:L=!1,...k}=i,j={...i,disabled:l,disableFocusRipple:p,selected:G,icon:!!m,iconPosition:h,label:!!I,fullWidth:u,textColor:U,wrapped:L},D=iL(j),Z=m&&I&&ja.isValidElement(m)?ja.cloneElement(m,{className:ve(D.icon,m.props.className)}):m,ne=de=>{!G&&P&&P(de,Y),w&&w(de)},le=de=>{N&&!G&&P&&P(de,Y),R&&R(de)};return(0,_d.jsxs)(aL,{focusRipple:!p,className:ve(D.root,a),ref:r,role:"tab","aria-selected":G,disabled:l,onClick:ne,onFocus:le,ownerState:j,tabIndex:G?0:-1,...k,children:[h==="top"||h==="start"?(0,_d.jsxs)(ja.Fragment,{children:[Z,I]}):(0,_d.jsxs)(ja.Fragment,{children:[I,Z]}),v]})}),Bp=sL;var Xie=me(Ee(),1);var $0=xe("react/jsx-runtime"),X0=Jt((0,$0.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft");var Qie=me(Ee(),1);var Y0=xe("react/jsx-runtime"),Z0=Jt((0,Y0.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var Zr=me(Ee(),1);function lL(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Tg(e,t,r,i={},a=()=>{}){let{ease:l=lL,duration:p=300}=i,u=null,m=t[e],h=!1,v=()=>{h=!0},I=P=>{if(h){a(new Error("Animation cancelled"));return}u===null&&(u=P);let w=Math.min(1,(P-u)/p);if(t[e]=l(w)*(r-m)+m,w>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(I)};return m===r?(a(new Error("Element already at target position")),v):(requestAnimationFrame(I),v)}var au=me(Ee(),1);var Q0=xe("react/jsx-runtime"),pL={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function xg(e){let{onChange:t,...r}=e,i=au.useRef(),a=au.useRef(null),l=()=>{i.current=a.current.offsetHeight-a.current.clientHeight};return Ws(()=>{let p=rp(()=>{let m=i.current;l(),m!==i.current&&t(i.current)}),u=la(a.current);return u.addEventListener("resize",p),()=>{p.clear(),u.removeEventListener("resize",p)}},[t]),au.useEffect(()=>{l(),t(i.current)},[t]),(0,Q0.jsx)("div",{style:pL,...r,ref:a})}var K0=me(Ee(),1);function q0(e){return Ye("MuiTabScrollButton",e)}var cL=$e("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),J0=cL;var Ad=xe("react/jsx-runtime"),uL=e=>{let{classes:t,orientation:r,disabled:i}=e;return Xe({root:["root",r,i&&"disabled"]},q0,t)},fL=Te(Jn,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${J0.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),dL=K0.forwardRef(function(t,r){let i=Je({props:t,name:"MuiTabScrollButton"}),{className:a,slots:l={},slotProps:p={},direction:u,orientation:m,disabled:h,...v}=i,I=rs(),P={isRtl:I,...i},w=uL(P),R=l.StartScrollButtonIcon??X0,G=l.EndScrollButtonIcon??Z0,N=Yi({elementType:R,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:P}),U=Yi({elementType:G,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:P});return(0,Ad.jsx)(fL,{component:"div",className:ve(w.root,a),ref:r,role:null,ownerState:P,tabIndex:null,...v,style:{...v.style,...m==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${I?-90:90}deg)`}},children:u==="left"?(0,Ad.jsx)(R,{...N}):(0,Ad.jsx)(G,{...U})})}),Pg=dL;function eE(e){return Ye("MuiTabs",e)}var mL=$e("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Md=mL;var za=xe("react/jsx-runtime"),tE=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,rE=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Nd=(e,t,r)=>{let i=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(i)return;i=!0}let l=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||l)a=r(e,a);else{a.focus();return}}},yL=e=>{let{vertical:t,fixed:r,hideScrollbar:i,scrollableX:a,scrollableY:l,centered:p,scrollButtonsHideMobile:u,classes:m}=e;return Xe({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",a&&"scrollableX",l&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",p&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},eE,m)},gL=Te("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${Md.scrollButtons}`]:t.scrollButtons},{[`& .${Md.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Pt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Md.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),hL=Te("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),vL=Te("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),bL=Te("span",{name:"MuiTabs",slot:"Indicator"})(Pt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),TL=Te(xg)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),oE={};var xL=Zr.forwardRef(function(t,r){let i=Je({props:t,name:"MuiTabs"}),a=qn(),l=rs(),{"aria-label":p,"aria-labelledby":u,action:m,centered:h=!1,children:v,className:I,component:P="div",allowScrollButtonsMobile:w=!1,indicatorColor:R="primary",onChange:G,orientation:N="horizontal",ScrollButtonComponent:U,scrollButtons:Y="auto",selectionFollowsFocus:L,slots:k={},slotProps:j={},TabIndicatorProps:D={},TabScrollButtonProps:Z={},textColor:ne="primary",value:le,variant:de="standard",visibleScrollbar:ye=!1,...E}=i,q=de==="scrollable",re=N==="vertical",oe=re?"scrollTop":"scrollLeft",ce=re?"top":"left",Me=re?"bottom":"right",He=re?"clientHeight":"clientWidth",Ie=re?"height":"width",yt={...i,component:P,allowScrollButtonsMobile:w,indicatorColor:R,orientation:N,vertical:re,scrollButtons:Y,textColor:ne,variant:de,visibleScrollbar:ye,fixed:!q,hideScrollbar:q&&!ye,scrollableX:q&&!re,scrollableY:q&&re,centered:h&&!q,scrollButtonsHideMobile:!w},ct=yL(yt),ut=Yi({elementType:k.StartScrollButtonIcon,externalSlotProps:j.startScrollButtonIcon,ownerState:yt}),ft=Yi({elementType:k.EndScrollButtonIcon,externalSlotProps:j.endScrollButtonIcon,ownerState:yt}),[at,tt]=Zr.useState(!1),[ke,Vt]=Zr.useState(oE),[Dt,gt]=Zr.useState(!1),[dt,_t]=Zr.useState(!1),[Ft,$t]=Zr.useState(!1),[Ut,ir]=Zr.useState({overflow:"hidden",scrollbarWidth:0}),Mt=new Map,or=Zr.useRef(null),ze=Zr.useRef(null),cr={slots:k,slotProps:{indicator:D,scrollButton:Z,...j}},xt=()=>{let st=or.current,Ot;if(st){let zt=st.getBoundingClientRect();Ot={clientWidth:st.clientWidth,scrollLeft:st.scrollLeft,scrollTop:st.scrollTop,scrollWidth:st.scrollWidth,top:zt.top,bottom:zt.bottom,left:zt.left,right:zt.right}}let Yt;if(st&&le!==!1){let zt=ze.current.children;if(zt.length>0){let Zt=zt[Mt.get(le)];Yt=Zt?Zt.getBoundingClientRect():null}}return{tabsMeta:Ot,tabMeta:Yt}},Wt=Ma(()=>{let{tabsMeta:st,tabMeta:Ot}=xt(),Yt=0,zt;re?(zt="top",Ot&&st&&(Yt=Ot.top-st.top+st.scrollTop)):(zt=l?"right":"left",Ot&&st&&(Yt=(l?-1:1)*(Ot[zt]-st[zt]+st.scrollLeft)));let Zt={[zt]:Yt,[Ie]:Ot?Ot[Ie]:0};if(typeof ke[zt]!="number"||typeof ke[Ie]!="number")Vt(Zt);else{let Vo=Math.abs(ke[zt]-Zt[zt]),zr=Math.abs(ke[Ie]-Zt[Ie]);(Vo>=1||zr>=1)&&Vt(Zt)}}),it=(st,{animation:Ot=!0}={})=>{Ot?Tg(oe,or.current,st,{duration:a.transitions.duration.standard}):or.current[oe]=st},Gr=st=>{let Ot=or.current[oe];re?Ot+=st:Ot+=st*(l?-1:1),it(Ot)},Xt=()=>{let st=or.current[He],Ot=0,Yt=Array.from(ze.current.children);for(let zt=0;zt<Yt.length;zt+=1){let Zt=Yt[zt];if(Ot+Zt[He]>st){zt===0&&(Ot=st);break}Ot+=Zt[He]}return Ot},Ur=()=>{Gr(-1*Xt())},Qr=()=>{Gr(Xt())},[Uo,{onChange:qr,...Oo}]=Ct("scrollbar",{className:ve(ct.scrollableX,ct.hideScrollbar),elementType:TL,shouldForwardComponentProp:!0,externalForwardedProps:cr,ownerState:yt}),ur=Zr.useCallback(st=>{qr?.(st),ir({overflow:null,scrollbarWidth:st})},[qr]),[Ke,jr]=Ct("scrollButtons",{className:ve(ct.scrollButtons,Z.className),elementType:Pg,externalForwardedProps:cr,ownerState:yt,additionalProps:{orientation:N,slots:{StartScrollButtonIcon:k.startScrollButtonIcon||k.StartScrollButtonIcon,EndScrollButtonIcon:k.endScrollButtonIcon||k.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:ut,endScrollButtonIcon:ft}}}),xo=()=>{let st={};st.scrollbarSizeListener=q?(0,za.jsx)(Uo,{...Oo,onChange:ur}):null;let Yt=q&&(Y==="auto"&&(Dt||dt)||Y===!0);return st.scrollButtonStart=Yt?(0,za.jsx)(Ke,{direction:l?"right":"left",onClick:Ur,disabled:!Dt,...jr}):null,st.scrollButtonEnd=Yt?(0,za.jsx)(Ke,{direction:l?"left":"right",onClick:Qr,disabled:!dt,...jr}):null,st},yo=Ma(st=>{let{tabsMeta:Ot,tabMeta:Yt}=xt();if(!(!Yt||!Ot)){if(Yt[ce]<Ot[ce]){let zt=Ot[oe]+(Yt[ce]-Ot[ce]);it(zt,{animation:st})}else if(Yt[Me]>Ot[Me]){let zt=Ot[oe]+(Yt[Me]-Ot[Me]);it(zt,{animation:st})}}}),jo=Ma(()=>{q&&Y!==!1&&$t(!Ft)});Zr.useEffect(()=>{let st=rp(()=>{or.current&&Wt()}),Ot,Yt=Vo=>{Vo.forEach(zr=>{zr.removedNodes.forEach(gn=>{Ot?.unobserve(gn)}),zr.addedNodes.forEach(gn=>{Ot?.observe(gn)})}),st(),jo()},zt=la(or.current);zt.addEventListener("resize",st);let Zt;return typeof ResizeObserver<"u"&&(Ot=new ResizeObserver(st),Array.from(ze.current.children).forEach(Vo=>{Ot.observe(Vo)})),typeof MutationObserver<"u"&&(Zt=new MutationObserver(Yt),Zt.observe(ze.current,{childList:!0})),()=>{st.clear(),zt.removeEventListener("resize",st),Zt?.disconnect(),Ot?.disconnect()}},[Wt,jo]),Zr.useEffect(()=>{let st=Array.from(ze.current.children),Ot=st.length;if(typeof IntersectionObserver<"u"&&Ot>0&&q&&Y!==!1){let Yt=st[0],zt=st[Ot-1],Zt={root:or.current,threshold:.99},Vo=io=>{gt(!io[0].isIntersecting)},zr=new IntersectionObserver(Vo,Zt);zr.observe(Yt);let gn=io=>{_t(!io[0].isIntersecting)},Wn=new IntersectionObserver(gn,Zt);return Wn.observe(zt),()=>{zr.disconnect(),Wn.disconnect()}}},[q,Y,Ft,v?.length]),Zr.useEffect(()=>{tt(!0)},[]),Zr.useEffect(()=>{Wt()}),Zr.useEffect(()=>{yo(oE!==ke)},[yo,ke]),Zr.useImperativeHandle(m,()=>({updateIndicator:Wt,updateScrollButtons:jo}),[Wt,jo]);let[bt,Ht]=Ct("indicator",{className:ve(ct.indicator,D.className),elementType:bL,externalForwardedProps:cr,ownerState:yt,additionalProps:{style:ke}}),mr=(0,za.jsx)(bt,{...Ht}),go=0,an=Zr.Children.map(v,st=>{if(!Zr.isValidElement(st))return null;let Ot=st.props.value===void 0?go:st.props.value;Mt.set(Ot,go);let Yt=Ot===le;return go+=1,Zr.cloneElement(st,{fullWidth:de==="fullWidth",indicator:Yt&&!at&&mr,selected:Yt,selectionFollowsFocus:L,onChange:G,textColor:ne,value:Ot,...go===1&&le===!1&&!st.props.tabIndex?{tabIndex:0}:{}})}),Cr=st=>{if(st.altKey||st.shiftKey||st.ctrlKey||st.metaKey)return;let Ot=ze.current,Yt=Aa(Ot).activeElement;if(Yt.getAttribute("role")!=="tab")return;let Zt=N==="horizontal"?"ArrowLeft":"ArrowUp",Vo=N==="horizontal"?"ArrowRight":"ArrowDown";switch(N==="horizontal"&&l&&(Zt="ArrowRight",Vo="ArrowLeft"),st.key){case Zt:st.preventDefault(),Nd(Ot,Yt,rE);break;case Vo:st.preventDefault(),Nd(Ot,Yt,tE);break;case"Home":st.preventDefault(),Nd(Ot,null,tE);break;case"End":st.preventDefault(),Nd(Ot,null,rE);break;default:break}},Jr=xo(),[yn,zo]=Ct("root",{ref:r,className:ve(ct.root,I),elementType:gL,externalForwardedProps:{...cr,...E,component:P},ownerState:yt}),[Dr,Po]=Ct("scroller",{ref:or,className:ct.scroller,elementType:hL,externalForwardedProps:cr,ownerState:yt,additionalProps:{style:{overflow:Ut.overflow,[re?`margin${l?"Left":"Right"}`:"marginBottom"]:ye?void 0:-Ut.scrollbarWidth}}}),[Mn,Yo]=Ct("list",{ref:ze,className:ve(ct.list,ct.flexContainer),elementType:vL,externalForwardedProps:cr,ownerState:yt,getSlotProps:st=>({...st,onKeyDown:Ot=>{Cr(Ot),st.onKeyDown?.(Ot)}})});return(0,za.jsxs)(yn,{...zo,children:[Jr.scrollButtonStart,Jr.scrollbarSizeListener,(0,za.jsxs)(Dr,{...Po,children:[(0,za.jsx)(Mn,{"aria-label":p,"aria-labelledby":u,"aria-orientation":N==="vertical"?"vertical":null,role:"tablist",...Yo,children:an}),at&&mr]}),Jr.scrollButtonEnd]})}),Ld=xL;var iE=me(Ee(),1);function nE(e){return Ye("MuiTextField",e)}var Hae=$e("MuiTextField",["root"]);var ul=xe("react/jsx-runtime"),PL={standard:qc,filled:Qc,outlined:nu},EL=e=>{let{classes:t}=e;return Xe({root:["root"]},nE,t)},wL=Te(qy,{name:"MuiTextField",slot:"Root"})({}),IL=iE.forwardRef(function(t,r){let i=Je({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:l=!1,children:p,className:u,color:m="primary",defaultValue:h,disabled:v=!1,error:I=!1,FormHelperTextProps:P,fullWidth:w=!1,helperText:R,id:G,InputLabelProps:N,inputProps:U,InputProps:Y,inputRef:L,label:k,maxRows:j,minRows:D,multiline:Z=!1,name:ne,onBlur:le,onChange:de,onFocus:ye,placeholder:E,required:q=!1,rows:re,select:oe=!1,SelectProps:ce,slots:Me={},slotProps:He={},type:Ie,value:yt,variant:ct="outlined",...ut}=i,ft={...i,autoFocus:l,color:m,disabled:v,error:I,fullWidth:w,multiline:Z,required:q,select:oe,variant:ct},at=EL(ft),tt=Oi(G),ke=R&&tt?`${tt}-helper-text`:void 0,Vt=k&&tt?`${tt}-label`:void 0,Dt=PL[ct],gt={slots:Me,slotProps:{input:Y,inputLabel:N,htmlInput:U,formHelperText:P,select:ce,...He}},dt={},_t=gt.slotProps.inputLabel;ct==="outlined"&&(_t&&typeof _t.shrink<"u"&&(dt.notched=_t.shrink),dt.label=k),oe&&((!ce||!ce.native)&&(dt.id=void 0),dt["aria-describedby"]=void 0);let[Ft,$t]=Ct("root",{elementType:wL,shouldForwardComponentProp:!0,externalForwardedProps:{...gt,...ut},ownerState:ft,className:ve(at.root,u),ref:r,additionalProps:{disabled:v,error:I,fullWidth:w,required:q,color:m,variant:ct}}),[Ut,ir]=Ct("input",{elementType:Dt,externalForwardedProps:gt,additionalProps:dt,ownerState:ft}),[Mt,or]=Ct("inputLabel",{elementType:sg,externalForwardedProps:gt,ownerState:ft}),[ze,cr]=Ct("htmlInput",{elementType:"input",externalForwardedProps:gt,ownerState:ft}),[xt,Wt]=Ct("formHelperText",{elementType:eg,externalForwardedProps:gt,ownerState:ft}),[it,Gr]=Ct("select",{elementType:bg,externalForwardedProps:gt,ownerState:ft}),Xt=(0,ul.jsx)(Ut,{"aria-describedby":ke,autoComplete:a,autoFocus:l,defaultValue:h,fullWidth:w,multiline:Z,name:ne,rows:re,maxRows:j,minRows:D,type:Ie,value:yt,id:tt,inputRef:L,onBlur:le,onChange:de,onFocus:ye,placeholder:E,inputProps:cr,slots:{input:Me.htmlInput?ze:void 0},...ir});return(0,ul.jsxs)(Ft,{...$t,children:[k!=null&&k!==""&&(0,ul.jsx)(Mt,{htmlFor:tt,id:Vt,...or,children:k}),oe?(0,ul.jsx)(it,{"aria-describedby":ke,id:tt,labelId:Vt,value:yt,input:Xt,...Gr,children:p}):Xt,R&&(0,ul.jsx)(xt,{id:ke,...Wt,children:R})]})}),ti=IL;var RL=$m({themeId:sa}),Eg=RL;var Vn=me(xn(),1),hw=me(ds(),1),Hd=me(su(),1),Ug=me(kd(),1),Sn=me(Ee(),1);var pE=me(xn(),1),cE=me(ds(),1),wg=(0,cE.generateApiDataObject)({resource:"aviw_Production_ElementsDamages",uniqueName:"atbx_Production_ElementsDamages",id:"dsDamages",allowUpdate:!0,allowInsert:!0,allowDelete:!0,dynamicLoading:!0,fields:[{name:"PrimKey",type:"string",nullable:!1},{name:"Created",type:"datetime",nullable:!1},{name:"CreatedBy",type:"string",nullable:!1},{name:"Updated",type:"datetime",nullable:!1},{name:"UpdatedBy",type:"string",nullable:!1},{name:"Domain",type:"string",nullable:!1},{name:"ProjectID",type:"string",nullable:!1},{name:"ProjectName",type:"string",nullable:!1},{name:"ElementID",type:"string",nullable:!0},{name:"ElementNumber",type:"string",nullable:!0},{name:"Name",type:"string",nullable:!0},{name:"DisplayName",type:"string",nullable:!0},{name:"ID",type:"number",nullable:!1},{name:"Date",type:"date",nullable:!1},{name:"Description",type:"string",nullable:!0},{name:"Action",type:"string",nullable:!0},{name:"RegisteredFix",type:"datetime",nullable:!0},{name:"RegisteredFixBy",type:"string",nullable:!0},{name:"Cause",type:"string",nullable:!0},{name:"FullName",type:"string",nullable:!0},{name:"SearchColumn",type:"string",nullable:!1},{name:"ElementRef",type:"string",nullable:!0}],parameters:{maxRecords:100}});(0,pE.expose)("af.article.dataObjects.dsDamages",wg,{overwrite:!0});var uE=me(ds(),1);var fE=new uE.DataObject({...wg.options});var dE=me(ds(),1),mE=new dE.ProcedureAPI({procedureId:"astp_Production_Elements_ApproveDamage",parameters:[{name:"ID",type:"number",hasDefault:!1,required:!1}],timeout:3e4});var yE=xe("react/jsx-runtime"),gE=Jt((0,yE.jsx)("path",{d:"M14.12 10.47 12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8z"}),"DeleteForeverOutlined");var hE=xe("react/jsx-runtime"),vE=Jt((0,hE.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var bE=xe("react/jsx-runtime"),TE=Jt((0,bE.jsx)("path",{d:"M9.5 6.5v3h-3v-3zM11 5H5v6h6zm-1.5 9.5v3h-3v-3zM11 13H5v6h6zm6.5-6.5v3h-3v-3zM19 5h-6v6h6zm-6 8h1.5v1.5H13zm1.5 1.5H16V16h-1.5zM16 13h1.5v1.5H16zm-3 3h1.5v1.5H13zm1.5 1.5H16V19h-1.5zM16 16h1.5v1.5H16zm1.5-1.5H19V16h-1.5zm0 3H19V19h-1.5zM22 7h-2V4h-3V2h5zm0 15v-5h-2v3h-3v2zM2 22h5v-2H4v-3H2zM2 2v5h2V4h3V2z"}),"QrCodeScanner");var xE=xe("react/jsx-runtime"),PE=Jt((0,xE.jsx)("path",{d:"M2 16v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7m0 4v3h3c0-1.66-1.34-3-3-3m0-8v2c4.97 0 9 4.03 9 9h2c0-6.08-4.92-11-11-11M17 1.01 7 1c-1.1 0-2 .9-2 2v7.37c.69.16 1.36.37 2 .64V5h10v13h-3.03c.52 1.25.84 2.59.95 4H17c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99"}),"TapAndPlay");var ml=me(xn(),1),HE=me(su(),1),zp=me(Ee(),1);var EE=me(Ee(),1);function SL(e=200,t="sine"){let r=window.AudioContext||window.webkitAudioContext,i=new r;return a=>{e=+e;let l=i.createOscillator();l.type=t,l.connect(i.destination),l.start(),setTimeout(()=>{l.stop(),a?.()},e)}}function wE(e=200,t="sine"){let[r]=(0,EE.useState)(()=>SL(e,t));return r}var Ig=xe("react/jsx-runtime"),IE=Jt([(0,Ig.jsx)("path",{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M9.88 4h4.24l1.83 2H20v12H4V6h4.05"},"0"),(0,Ig.jsx)("path",{d:"M15 11H9V8.5L5.5 12 9 15.5V13h6v2.5l3.5-3.5L15 8.5z"},"1")],"SwitchCameraOutlined");var ME=me(xn(),1),lu=me(Ee(),1);var Fd="f0068MgAAAANxSwGx926/p+panCB/t/lxxtrDYU0d2LFZhFiVZvQGh9fJ6+7AQ2S4w0KrYDE/+MHJO+GJ6I9EOPxRD40/CZE=";var RE=xe("react/jsx-runtime"),SE=Jt((0,RE.jsx)("path",{d:"m9.4 10.5 4.77-8.26C13.47 2.09 12.75 2 12 2c-2.4 0-4.6.85-6.32 2.25l3.66 6.35zM21.54 9c-.92-2.92-3.15-5.26-6-6.34L11.88 9zm.26 1h-7.49l.29.5 4.76 8.25C21 16.97 22 14.61 22 12c0-.69-.07-1.35-.2-2M8.54 12l-3.9-6.75C3.01 7.03 2 9.39 2 12c0 .69.07 1.35.2 2h7.49zm-6.08 3c.92 2.92 3.15 5.26 6 6.34L12.12 15zm11.27 0-3.9 6.76c.7.15 1.42.24 2.17.24 2.4 0 4.6-.85 6.32-2.25l-3.66-6.35z"}),"Camera");var Rg=xe("react/jsx-runtime");function OE(e){return(0,Rg.jsx)(zs,{...e,children:(0,Rg.jsx)("path",{fill:"currentColor",d:"M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2M6.76,8.82L7.82,7.76L8.88,8.82L9.94,7.76L11,8.82L9.94,9.88L11,10.94L9.94,12L8.88,10.94L7.82,12L6.76,10.94L7.82,9.88L6.76,8.82M6.89,17.5C7.69,15.46 9.67,14 12,14C14.33,14 16.31,15.46 17.11,17.5H6.89M17.24,10.94L16.18,12L15.12,10.94L14.06,12L13,10.94L14.06,9.88L13,8.82L14.06,7.76L15.12,8.82L16.18,7.76L17.24,8.82L16.18,9.88L17.24,10.94Z"})})}var fl=xe("react/jsx-runtime"),OL=Ms.div`
|
|
151
|
-
position: absolute;
|
|
152
|
-
bottom: 0;
|
|
153
|
-
left: 0;
|
|
154
|
-
right: 0;
|
|
155
|
-
top: 0;
|
|
156
|
-
|
|
157
|
-
display: flex;
|
|
158
|
-
align-items: center;
|
|
159
|
-
justify-content: center;
|
|
160
|
-
`,CL=Ms.div`
|
|
161
|
-
background: #111111;
|
|
162
|
-
border: 1px solid #3e3e3e;
|
|
163
|
-
border-radius: 3px;
|
|
164
|
-
|
|
165
|
-
max-width: 100%;
|
|
166
|
-
width: 335px;
|
|
167
|
-
|
|
168
|
-
color: white;
|
|
169
|
-
text-align: center;
|
|
170
|
-
`;function CE({icon:e,message:t}){let r=OE;return e==="camera"&&(r=SE),(0,fl.jsx)(OL,{children:(0,fl.jsxs)(CL,{children:[(0,fl.jsx)(r,{sx:{color:"#eee",fontSize:"3.5rem",my:2}}),(0,fl.jsx)("br",{}),(0,fl.jsx)("p",{children:t})]})})}var Sg=me(xn(),1),hi=me(Ee(),1),{BarcodeReader:DE}=window;function _E(e,t,r,i){let[a,l]=(0,hi.useState)(!0),[p,u]=(0,hi.useState)(null),[m,h]=(0,hi.useState)([]),[v,I]=(0,hi.useState)({all:[],current:{deviceId:"",label:""},width:0,height:0}),P=(0,hi.useRef)(null),w=(0,hi.useRef)(r),R=(0,hi.useRef)(null);(0,hi.useEffect)(()=>{w.current=r},[r]),(0,hi.useEffect)(()=>{if(i||!e.current)return;let N=!1,U=/iPhone|iPad/.test(navigator.userAgent);return R.current=new DE.Scanner({duplicateForgetTime:1e3,htmlElement:e.current,videoSettings:{video:{width:{ideal:U?1280:720},height:{ideal:U?1280:720},facingMode:{ideal:"environment"}}},runtimeSettings:{mBarcodeFormatIds:DE.EnumBarcodeFormat.DATAMATRIX,mAntiDamageLevel:3,mDeblurLevel:0},onFrameRead:Y=>{let L=[];for(let k of Y)L.push(k.LocalizationResult);L.length>0&&(h(k=>[...k,...L]),setTimeout(()=>{N||h(k=>k.slice(L.length))},300))},onNewCodeRead:Y=>{Y&&w.current(Y)}}),R.current.open().then(Y=>{if(N===!1){let{all:L,current:k}=Y;if(P.current=0,k?.deviceId)for(let j=0;j<L.length;j++)L[j].deviceId===k.deviceId&&(P.current=j);I(Y),l(!1)}}).catch(Y=>{if(N===!1){let L=Y.message||Y;l(!1),/Webassembly/.test(L)?u({icon:"unsupported",message:(0,Sg.getLocalizedString)("Your browser is not supported. A browser that supports WebAssembly is required.")}):/Permission/i.test(L)||/video/i.test(L)||/device/i.test(L)||/Media/i.test(L)||/agent/.test(L)||/found/.test(L)?u({icon:"camera",message:(0,Sg.getLocalizedString)("No camera available")}):u({icon:"generic",message:L})}}),()=>{N=!0,R.current&&typeof R.current.close=="function"&&R.current.close()}},[e,i]),(0,hi.useEffect)(()=>{if(t.current){let N=t.current.getContext("2d");N.clearRect(0,0,t.current.width,t.current.height),N.fillStyle="rgba(254,180,32,0.3)";let{width:U,height:Y}=t.current,L=U/v.width,k=Y/v.height;for(let j of m){let{X1:D,X2:Z,X3:ne,X4:le,Y1:de,Y2:ye,Y3:E,Y4:q}=j;N.beginPath(),N.moveTo(D*L,de*k),N.lineTo(Z*L,ye*k),N.lineTo(ne*L,E*k),N.lineTo(le*L,q*k),N.fill()}}},[v,t,m]);function G(){P.current=((P.current??0)+1)%v.all.length,R.current?.play(v.all[P.current].deviceId)}return{devices:v.all,error:p,isLoading:a,setNextDevice:G}}var Qi=xe("react/jsx-runtime"),{BarcodeReader:DL}=window;window.BarcodeReader&&(DL.licenseKey=Fd);var AE={position:"absolute",bottom:0,left:0,right:0,top:0,height:"100%",width:"100%"};function NE({onRead:e,isStory:t}){let r=(0,lu.useRef)(null),i=(0,lu.useRef)(null),{devices:a,error:l,setNextDevice:p}=_E(r,i,e,t);return(0,lu.useEffect)(()=>{window.BarcodeReader&&window.BarcodeReader.licenseKey!==Fd&&(window.BarcodeReader.licenseKey=Fd)},[]),(0,Qi.jsxs)(Fo,{sx:{position:"relative",bgcolor:"black",height:"100%"},children:[(0,Qi.jsxs)(Fo,{height:"100%",ref:r,children:[(0,Qi.jsx)(Fo,{component:"video",className:"dbrScanner-video",playsInline:!0,sx:AE}),(0,Qi.jsx)(Fo,{component:"canvas",sx:AE,width:"1280",height:"720",ref:i}),l&&(0,Qi.jsx)(CE,{...l})]}),(0,Qi.jsxs)(Fo,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",position:"absolute",bottom:0,left:0,right:0,py:1,px:3,color:"white"},children:[a.length<=1&&(0,Qi.jsx)("span",{}),a.length>1&&(0,Qi.jsx)(ka,{color:"inherit","aria-label":(0,ME.getLocalizedString)("Switch camera"),onClick:()=>p(),size:"large",children:(0,Qi.jsx)(IE,{})})]})]})}var Bd=me(xn(),1),kE=me(ds(),1);var LE=me(xn(),1),ms=class e{static PARTITION_TABLE=[40,37,34,30,27,24,20];static EPC_HEADER="00110100";static BARCODE_PREFIX="8004";static GROUP_SEPARATOR=String.fromCodePoint(29);static URN_PREFIX="urn:epc:id:giai:";static fromHex=t=>{let r=_L(t);if(r.substring(0,8)!==e.EPC_HEADER)throw new Error("EPC value is not a valid GIAI value.");let i=Number.parseInt(r.substr(11,3),2),a=e.PARTITION_TABLE[i],l=Number.parseInt(r.substring(8,11),2),p=BigInt(`0b${r.substring(14,14+a)}`),u=BigInt(`0b${r.substring(14+a)}`);return new e({assetReference:u,companyPrefix:p,filter:l})};static fromBarcode=t=>{let r=e.BARCODE_PREFIX.length;if(t[0]===e.GROUP_SEPARATOR&&(t=t.substr(1)),t.substr(0,r)!==e.BARCODE_PREFIX)throw new Error(`Barcode is not a valid GIAI barcode. (${e.BARCODE_PREFIX} prefix expected)`);let i=t.substring(r),a=i.indexOf(e.GROUP_SEPARATOR);return a>=0?new e({assetReference:i.substring(a+1),companyPrefix:i.substring(0,a)}):new e({assetReference:i.substring(7),companyPrefix:i.substring(0,7)})};static fromEpcPureIdentityUri(t){if(!t.startsWith(e.URN_PREFIX))throw Error("URI is not a valid GIAI URI");let[r,i]=t.substring(e.URN_PREFIX.length).split(".");return new e({assetReference:i,companyPrefix:r})}static fromString(t,r=!1){try{if(t.startsWith("0x"))return t=t.replace("0x",""),e.fromHex(t.substring(0,24));if(t.startsWith(e.URN_PREFIX))return e.fromEpcPureIdentityUri(t);if(t.startsWith(e.BARCODE_PREFIX))return e.fromBarcode(t);if(t.length===24)return e.fromHex(t)}catch(i){if(!r)throw i}if(!r)throw Error((0,LE.getLocalizedString)("Can't create GIAI from string. Failed to match value '{value}' with known input formats.").replace("{value}",t))}#e;#t;constructor({assetReference:t,companyPrefix:r}){this.#e=t,this.#t=r}get assetReference(){return this.#e}get companyPrefix(){return this.#t}toEpcPureIdentityUri(){return`${e.URN_PREFIX}${this.companyPrefix}.${this.assetReference}`}toGiaiBarcode(){return e.BARCODE_PREFIX+this.companyPrefix+e.GROUP_SEPARATOR+this.assetReference}toEpcHex(){let t=e.EPC_HEADER;t+="000",t+="101".padStart(3,"0");let r=["bigint","number"].includes(typeof this.#t)?this.#t:BigInt(this.#t),i=["bigint","number"].includes(typeof this.#e)?this.#e:BigInt(this.#e);return t+=r.toString(2).padStart(24,"0"),t+=i.toString(2).padStart(58,"0"),BigInt(`0b${t}`).toString(16).toUpperCase()}};function _L(e){let t="";for(let r=0;r<e.length;r+=2){let i=e.substr(r,2),a=Number.parseInt(i,16).toString(2);t+=a.padStart(8,"0")}return t}window.Giai=ms;var AL=new kE.DataProviderHandlerAPI({dataSourceId:"aviw_Fleet_DeliveryTickets_ElementsLookup",fields:[{name:"PrimKey",type:"string"},{name:"Created",type:"datetime"},{name:"ProjectID",type:"string"},{name:"ProjectName",type:"string"},{name:"ProjectDomain",type:"string"},{name:"ElementID",type:"string"},{name:"DisplayName",type:"string"},{name:"GiaiUri",type:"string"}]}),Og=new Map;async function Gd(e,t){let r;if(t.filter=e,typeof e=="string"&&Og.has(e))r=Og.get(e),t.method="cache",t.result=r,(0,Bd.logActivity)("GetElement",t);else{t.method="database";let i=(0,Bd.startActivity)("GetElement",t),a;typeof e=="string"?a=`[GiaiUri] = '${ms.fromString(e).toEpcPureIdentityUri()}'`:a=`[ProjectID] = '${e.projectID}' AND [ElementID] = '${e.elementID}'`;let l=await AL.retrieve({whereClause:a});if(!l.length)throw t.result=null,i(),Error("Element not found");r=l[0],t.result=r,i(),typeof e=="string"&&Og.set(e,r)}return r}var Cg=me(xn(),1),Gp=me(Ee(),1);var FE=me(Ee(),1);function BE(e,t=!1){(0,FE.useEffect)(()=>{if(!t)return;let r="ABCDEFabcdefxX0123456789",i="",a;function l(p){r.includes(p.key)?(clearTimeout(a),i+=p.key,a=setTimeout(()=>{i=""},500)):p.key==="Enter"&&(e(i),i="")}return document.body.addEventListener("keydown",l),()=>{document.body.removeEventListener("keydown",l)}},[e,t])}var pu=xe("react/jsx-runtime");function GE({onScan:e}){let[t,r]=(0,Gp.useState)(!1),i=(0,Gp.useRef)(null);return(0,Gp.useEffect)(()=>{if(!i.current)return;let a=i.current;function l(){r(!0)}function p(){r(!1)}return a.addEventListener("focus",l),a.addEventListener("blur",p),a.focus(),()=>{a.removeEventListener("focus",l),a.removeEventListener("blur",p)}},[]),BE(e,t),(0,pu.jsx)(Fo,{height:"100%",bgcolor:"#ddd",display:"flex",alignItems:"center",justifyContent:"center",tabIndex:0,ref:i,sx:{backgroundImage:t?"linear-gradient(var(--angle), #777, #bbb, #777)":"none",animation:t?"MovingBackground 8s linear infinite":"none"},children:t?(0,pu.jsxs)("span",{children:[(0,Cg.getLocalizedString)("Listening for scanned elements"),"..."]}):(0,pu.jsx)(Bo,{variant:"contained",onClick:()=>{i.current&&i.current.focus()},children:(0,Cg.getLocalizedString)("Start listening")})})}var dl=me(xn(),1),jp=me(Ee(),1);var zE=me(xn(),1),jd=me(kd(),1),cu=me(Ee(),1);var Up=me(ds(),1),Ud=(0,Up.generateApiDataObject)({resource:"atbx_Accounting_Projects",id:"dsProjects",allowUpdate:!1,allowInsert:!1,allowDelete:!1,dynamicLoading:!1,fields:[{name:"PrimKey",type:"string",nullable:!1},{name:"Created",type:"datetime",nullable:!1},{name:"Domain",type:"string",nullable:!1},{name:"ProjectID",type:"string",nullable:!1},{name:"ProjectName",type:"string",nullable:!1}],parameters:{maxRecords:100,sortOrder:[{Created:Up.SortOrder.Desc},{ProjectID:Up.SortOrder.Asc},{Domain:Up.SortOrder.Asc}],whereClause:"Category=2"}});var UE=me(ds(),1);var jE=new UE.DataObject({...Ud.options});var ma=xe("react/jsx-runtime");function VE({className:e,disabled:t,id:r,names:i,onChange:a,readOnly:l,required:p,defaultValue:u,value:m,label:h,sx:v,report:I}){let[P,w]=(0,cu.useState)(u??null),[R,G]=(0,cu.useState)(""),N=(0,jd.useDebounce)(R),U=(0,jd.useDataWithFilter)(I?jE:Ud,N?`[SearchColumn] LIKE '%${N}%'`:"");function Y(j){!t&&!l&&(a?a(j):w(j))}let L=m===void 0?P:m,k=(0,cu.useMemo)(()=>{let j=new Map;return U.forEach(D=>{j.set(D.ProjectID,(j.get(D.ProjectID)||0)+1)}),new Set([...j.entries()].filter(([,D])=>D>1).map(([D])=>D))},[U]);return(0,ma.jsxs)(ma.Fragment,{children:[(0,ma.jsx)(xp,{sx:v,autoHighlight:!0,className:e,options:U,disabled:t,getOptionLabel:j=>j?.ProjectID!==void 0?`${j.ProjectID}: ${j.ProjectName}`:"",isOptionEqualToValue:(j,D)=>j.Domain===D.Domain&&j.ProjectID===D.ProjectID,clearOnEscape:!0,onChange:(j,D)=>Y(D),onClose:()=>G(""),value:m!==void 0?m:P,renderInput:j=>(0,ma.jsx)(ti,{...j,label:h||(0,zE.getLocalizedString)("Project ID"),id:r??"ProjectLookup",fullWidth:!0,inputProps:{readOnly:l,...j.inputProps},autoComplete:"off",variant:"filled",required:p,onChange:D=>G(D.target.value),value:R}),renderOption:(j,D)=>{let Z=D.ProjectID&&k.has(D.ProjectID);return(0,ma.jsx)(Np,{...j,children:(0,ma.jsx)(Lp,{primary:Z?`${D.ProjectName} (${D.Domain})`:D.ProjectName,secondary:D.ProjectID})})}}),(0,ma.jsx)("input",{name:i?.projectId??"ProjectID",type:"hidden",value:L?.ProjectID??""})]})}var ya=xe("react/jsx-runtime");var ML=/([a-z]{2,4}[\s]*[0-9]{4,8})/gi;function WE({onAdd:e}){let t=(0,jp.useRef)(null),[r,i]=(0,jp.useState)(!1),[a,l]=(0,jp.useState)(null),[p,u]=(0,jp.useState)();async function m(){try{if(!p){alert((0,dl.getLocalizedString)("Project is required"));return}if(a){i(!0);let h=a.match(ML)?.map(I=>I.replace(/\s+/g,"")).map(I=>Gd({projectID:p.ProjectID,elementID:I},{mode:"manual"}));if(!h){alert((0,dl.getLocalizedString)("Invalid elmenets"));return}let v=(await Promise.all(h)).map(I=>e(I));await Promise.all(v),i(!1)}else if(p.Created&&p.ProjectID&&p.ProjectName&&p.ProjectName&&p.Domain)e({PrimKey:"",Created:p.Created,ProjectID:p.ProjectID,ProjectName:p.ProjectName,ProjectDomain:p.Domain,ElementID:"",DisplayName:"",GiaiUri:""});else{alert((0,dl.getLocalizedString)("Project is invalid. Missing key information"));return}}catch(h){i(!1),alert(h.message)}}return(0,ya.jsxs)(ya.Fragment,{children:[(0,ya.jsx)(mp,{severity:"warning",sx:{mb:2},children:(0,dl.getLocalizedString)("Manually entering elements is a major source of errors. Only use this as a last resort. If the camera or scanner is not working, please contact the IT department.")}),(0,ya.jsx)(VE,{onChange:h=>u(h||null),value:p,id:"AddElement_Project"}),(0,ya.jsx)(ti,{variant:"filled",fullWidth:!0,autoComplete:"off",margin:"normal",name:"ElementID",id:"AddElement_ElementID",label:(0,dl.getLocalizedString)("Element ID"),value:a,onChange:h=>l(h.target.value)}),(0,ya.jsx)(Bo,{ref:t,color:"primary",variant:"contained",size:"large",loading:r,loadingPosition:"end",endIcon:(0,ya.jsx)(is,{}),onClick:m,children:(0,dl.getLocalizedString)("Add")})]})}var po=xe("react/jsx-runtime");function $E({open:e,onClose:t,onAdd:r,initialTab:i,useSearch:a,isStory:l}){let[p,u]=(0,zp.useState)("camera"),[m,h]=(0,zp.useState)(),[v,I]=(0,zp.useState)(!1),P=wE();(0,zp.useEffect)(()=>{e&&(h(void 0),i&&u(i))},[e,i]);async function w(R,G){try{let N=typeof R=="string"?await Gd(R.replace("",""),{mode:G}):R;h(()=>(P(),{element:N,mode:G,scanTime:Date.now()}))}catch(N){alert(N.message)}}return(0,po.jsx)(HE.ResponsiveDialog,{open:e,onClose:t,children:(0,po.jsxs)(Fo,{display:"flex",flexDirection:"column",children:[(0,po.jsxs)(Ld,{value:p,onChange:(R,G)=>u(G),variant:"fullWidth",sx:{flexShrink:0},children:[!a&&(0,po.jsx)(Bp,{icon:(0,po.jsx)(vE,{}),label:(0,ml.getLocalizedString)("Manual"),value:"manual"}),(0,po.jsx)(Bp,{icon:(0,po.jsx)(PE,{}),label:(0,ml.getLocalizedString)("Scanner"),value:"scanner"}),(0,po.jsx)(Bp,{icon:(0,po.jsx)(TE,{}),label:(0,ml.getLocalizedString)("Camera"),value:"camera"})]}),p==="camera"&&(0,po.jsx)(Fo,{flexBasis:"14rem",flexGrow:1,flexShrink:2,children:(0,po.jsx)(NE,{onRead:R=>w(R,"camera-barcode"),isStory:l})}),p==="manual"&&(0,po.jsx)(Fo,{p:2,children:(0,po.jsx)(WE,{onAdd:R=>w(R,"manual")})}),p==="scanner"&&(0,po.jsx)(Fo,{flexBasis:"14rem",flexGrow:1,flexShrink:2,children:(0,po.jsx)(GE,{onScan:R=>w(R,R.startsWith(ms.BARCODE_PREFIX)?"hid-barcode":"hid-rfid")})}),m&&(0,po.jsx)(Mp,{disablePadding:!0,children:(0,po.jsxs)(Np,{children:[(0,po.jsx)(Lp,{primary:m.element.DisplayName||m.element.ProjectName,secondary:m.element.ElementID||m.element.ProjectID}),(0,po.jsx)(Bo,{color:"error",variant:"outlined",onClick:()=>{h(void 0)},children:(0,po.jsx)(gE,{})})]})}),(0,po.jsxs)(Cp,{sx:{flexShrink:0},children:[(0,po.jsx)(Bo,{onClick:t,children:(0,ml.getLocalizedString)("Cancel")}),(0,po.jsx)(Bo,{variant:"contained",loading:v,onClick:async()=>{try{I(!0),await r(m),h(void 0),I(!1),t()}catch(R){I(!1),alert(R.message)}},startIcon:(0,po.jsx)(is,{}),loadingPosition:"start",disabled:!m,children:a?(0,ml.getLocalizedString)("Search for element"):(0,ml.getLocalizedString)("Add element")})]})]})})}var ar=me(xn(),1),KE=me(kd(),1),uu=me(YE(),1),ew=me(ZE(),1),tw=me(QE(),1),rw=me(qE(),1),ow=me(JE(),1),ys=me(Ee(),1),Gg=xe("react/jsx-runtime");(0,uu.registerPlugin)(ew.default,rw.default,tw.default,ow.default);var NL=navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i),LL={labelIdle:NL?(0,ar.getLocalizedString)("Take a photo, or upload an existing image/file"):(0,ar.getLocalizedString)('Drag & Drop your files or <span class="filepond--label-action"> Browse </span>'),labelInvalidField:(0,ar.getLocalizedString)("Field contains invalid files"),labelFileWaitingForSize:(0,ar.getLocalizedString)("Waiting for size"),labelFileSizeNotAvailable:(0,ar.getLocalizedString)("Size not available"),labelFileLoading:(0,ar.getLocalizedString)("Loading"),labelFileLoadError:(0,ar.getLocalizedString)("Error during load"),labelFileProcessing:(0,ar.getLocalizedString)("Uploading"),labelFileProcessingComplete:(0,ar.getLocalizedString)("Upload complete"),labelFileProcessingAborted:(0,ar.getLocalizedString)("Upload cancelled"),labelFileProcessingError:(0,ar.getLocalizedString)("Error during upload"),labelFileProcessingRevertError:(0,ar.getLocalizedString)("Error during revert"),labelFileRemoveError:(0,ar.getLocalizedString)("Error during remove"),labelTapToCancel:(0,ar.getLocalizedString)("tap to cancel"),labelTapToRetry:(0,ar.getLocalizedString)("tap to retry"),labelTapToUndo:(0,ar.getLocalizedString)("tap to undo"),labelButtonRemoveItem:(0,ar.getLocalizedString)("Remove"),labelButtonAbortItemLoad:(0,ar.getLocalizedString)("Abort"),labelButtonRetryItemLoad:(0,ar.getLocalizedString)("Retry"),labelButtonAbortItemProcessing:(0,ar.getLocalizedString)("Cancel"),labelButtonUndoItemProcessing:(0,ar.getLocalizedString)("Undo"),labelButtonRetryItemProcessing:(0,ar.getLocalizedString)("Retry"),labelButtonProcessItem:(0,ar.getLocalizedString)("Upload"),labelMaxFileSizeExceeded:(0,ar.getLocalizedString)("File is too large"),labelMaxFileSize:(0,ar.getLocalizedString)("Maximum file size is {filesize}"),labelMaxTotalFileSizeExceeded:(0,ar.getLocalizedString)("Maximum total size exceeded"),labelMaxTotalFileSize:(0,ar.getLocalizedString)("Maximum total file size is {filesize}"),labelFileTypeNotAllowed:(0,ar.getLocalizedString)("File of invalid type"),fileValidateTypeLabelExpectedTypes:(0,ar.getLocalizedString)("Expects {allButLastType} or {lastType}"),imageValidateSizeLabelFormatError:(0,ar.getLocalizedString)("Image type not supported"),imageValidateSizeLabelImageSizeTooSmall:(0,ar.getLocalizedString)("Image is too small"),imageValidateSizeLabelImageSizeTooBig:(0,ar.getLocalizedString)("Image is too big"),imageValidateSizeLabelExpectedMinSize:(0,ar.getLocalizedString)("Minimum size is {minWidth} \xD7 {minHeight}"),imageValidateSizeLabelExpectedMaxSize:(0,ar.getLocalizedString)("Maximum size is {maxWidth} \xD7 {maxHeight}"),imageValidateSizeLabelImageResolutionTooLow:(0,ar.getLocalizedString)("Resolution is too low"),imageValidateSizeLabelImageResolutionTooHigh:(0,ar.getLocalizedString)("Resolution is too high"),imageValidateSizeLabelExpectedMinResolution:(0,ar.getLocalizedString)("Minimum resolution is {minResolution}"),imageValidateSizeLabelExpectedMaxResolution:(0,ar.getLocalizedString)("Maximum resolution is {maxResolution}")};function Bg(e,t,r="upload",i){let a=`/file/${r}/${af.article.id}/${e.getDataSourceId()}`;return t&&(a+=`/${t}`),i&&(a+=`/${i}`),a+="/",a}function nw({dataObject:e,fields:t,onFileStart:r,onFileProcessed:i,onFilesProcessed:a,onError:l,fieldName:p,filePondOptions:u,primKey:m,inputRef:h,...v}){let I=(0,ys.useRef)(null),P=(0,ys.useRef)(null),w=(0,KE.useData)(e),R=(0,ys.useRef)(!1);return(0,ys.useEffect)(()=>()=>{P.current?.destroy(),P.current=null},[]),(0,ys.useEffect)(()=>{async function G(U,Y,L){if(R.current)return;let{dataHandler:k}=e;try{await k.destroy({PrimKey:U})?Y():L("Failed to delete file on server. Delete request returned false")}catch(j){L(j.responseText??j.statusText??j.message??"Failed to delete file on server but no error was returned.")}}let N={allowMultiple:!!v.multiple,allowImageResize:!0,imageResizeMode:"contain",imageResizeTargetWidth:2400,imageResizeTargetHeight:2400,imageResizeUpscale:!1,...LL,onaddfilestart:()=>r(),onprocessfile:(U,Y)=>i(U,Y),onprocessfiles:()=>a(),onerror:()=>l(),beforeRemoveFile:U=>!!confirm((0,ar.getLocalizedString)("Are you sure you want to remove this file?")),server:{load:Bg(e,p,"view"),restore:Bg(e,p,"view"),revert:G,remove:G,process:{url:Bg(e,p),ondata:U=>{let L={...e.getParameter("masterChildCriteria"),...t};for(let[k,j]of Object.entries(L))j!==void 0&&U.append(k,String(j));return U},onload:U=>JSON.parse(U)}},...u};P.current?P.current.setOptions(N):P.current=(0,uu.create)(h?.current??I.current??void 0,N)},[e,v.multiple,t,p,h,u,l,i,r,a]),(0,ys.useEffect)(()=>(P.current&&w.forEach((G,N)=>{let U={index:N,type:"local"};P.current?.addFile(G.PrimKey,U)}),()=>{R.current=!0,P.current?.removeFiles(),R.current=!1}),[w]),(0,Gg.jsx)("div",{className:"filepond--wrapper",children:(0,Gg.jsx)("input",{type:"file",...v,name:"File",ref:h??I})})}var iw=xe("react/jsx-runtime"),aw=Jt((0,iw.jsx)("path",{d:"M3 4V1h2v3h3v2H5v3H3V6H0V4zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5m-3.2-5c0 1.77 1.43 3.2 3.2 3.2s3.2-1.43 3.2-3.2-1.43-3.2-3.2-3.2-3.2 1.43-3.2 3.2"}),"AddAPhoto");var vi=me(xn(),1),sw=me(Ee(),1),To=xe("react/jsx-runtime");function lw({editRecord:e,project:t,elementRecord:r,elementID:i,attachmentPrimKeys:a,handleAddElement:l,formName:p}){let[u,m]=(0,sw.useState)();function h(){let v=document.forms.namedItem(p);v&&(v.Cause.value=localStorage.getItem("ElementDamage_Cause")?.toString(),v.Action.value=localStorage.getItem("ElementDamage_Action")?.toString()),m(localStorage.getItem("ElementDamage_Description")?.toString())}return(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)("input",{type:"hidden",name:"ID",value:e?.ID??""}),(0,To.jsx)("input",{type:"hidden",name:"PrimKey",value:e?.PrimKey??""}),(0,To.jsx)("input",{type:"hidden",name:"ProjectID",value:t?.ProjectID??""}),(0,To.jsx)("input",{type:"hidden",name:"ProjectName",value:t?.ProjectName??""}),(0,To.jsx)("input",{type:"hidden",name:"Domain",value:t?.Domain??""}),(0,To.jsx)("input",{type:"hidden",name:"ElementRef",value:r[0]?.PrimKey??""}),(0,To.jsx)("input",{type:"hidden",name:"AttachmentPrimkeys",value:a}),(0,To.jsx)(ti,{name:"Date",type:"date",defaultValue:(e?.Date??new Date).toISOString().split("T")[0],id:"NewElementDamage_Date",label:(0,vi.getLocalizedString)("Date"),fullWidth:!0,required:!0,slotProps:{inputLabel:{shrink:!0}}}),(0,To.jsxs)(Fo,{display:"flex",gap:2,justifyContent:"flex-end",children:[(0,To.jsx)(Bo,{variant:"contained",onClick:()=>h(),disabled:!localStorage.getItem("ElementDamage_Description"),children:(0,vi.getLocalizedString)("Copy previous damage")}),(0,To.jsx)(Bo,{onClick:l,endIcon:(0,To.jsx)(aw,{}),variant:"contained",children:(0,vi.getLocalizedString)("Add element")})]}),(0,To.jsx)(ti,{id:"NewElementDamage_Project",value:t?`${t?.ProjectID}: ${t?.ProjectName}`:"",label:(0,vi.getLocalizedString)("Project"),fullWidth:!0,required:!0,autoComplete:"off",slotProps:{htmlInput:{readOnly:!0}}}),(0,To.jsx)(ti,{name:"ElementID",id:"NewElementDamage_ElementID",value:i,label:(0,vi.getLocalizedString)("Element ID"),fullWidth:!0,autoComplete:"off",slotProps:{htmlInput:{readOnly:!0}}}),(0,To.jsx)(ti,{name:"ElementNumber",id:"NewElementDamage_ElementNr",defaultValue:e?.ElementNumber??"",label:(0,vi.getLocalizedString)("Element number"),fullWidth:!0,autoComplete:"off",disabled:!!i}),(0,To.jsx)(xp,{value:u??e?.Description??"",options:[(0,vi.getLocalizedString)("Tear in element"),(0,vi.getLocalizedString)("Damage around lifting anchor"),(0,vi.getLocalizedString)("Damage on underside")],freeSolo:!0,renderInput:v=>(0,To.jsx)(ti,{name:"Description",required:!0,...v,label:(0,vi.getLocalizedString)("Description")})}),(0,To.jsx)(ti,{name:"Cause",id:"NewElementDamage_Cause",defaultValue:e?.Cause??"",label:(0,vi.getLocalizedString)("Cause"),fullWidth:!0,slotProps:{inputLabel:{shrink:document.forms.namedItem(p)?.Cause?.value?!0:void 0}}}),(0,To.jsx)(ti,{name:"Action",id:"NewElementDamage_Action",defaultValue:e?.Action??"",label:(0,vi.getLocalizedString)("Action"),fullWidth:!0,slotProps:{inputLabel:{shrink:document.forms.namedItem(p)?.Action?.value?!0:void 0}}})]})}var Wd=me(xn(),1),mw=me(su(),1);var pw=me(xn(),1),cw=me(su(),1),Go=xe("react/jsx-runtime");function ga({col:e,label:t,children:r,em:i,align:a,padding:l}){return(0,Go.jsxs)(Ap,{size:e,sx:{p:l??2,borderBottom:p=>`1px solid ${p.palette.divider}`},children:[t&&(0,Go.jsx)(oo,{variant:"body1",fontSize:"0.9rem",fontWeight:500,mb:1,textAlign:a,children:(0,pw.getLocalizedString)(t)}),r&&(0,Go.jsx)(oo,{fontSize:i?"1.4rem":"0.9rem",whiteSpace:"pre-line",fontWeight:i?600:void 0,textAlign:a,children:r})]})}function uw({record:e}){return(0,Go.jsxs)(Go.Fragment,{children:[(0,Go.jsx)(ga,{col:1.5,children:(0,Go.jsx)(cw.Link,{href:"#",onClick:t=>{t.preventDefault(),window.location.href=`${e.ID}`},children:e.ID})}),(0,Go.jsx)(ga,{col:2.5,align:"right",children:e.Date.toISOString().split("T")[0]}),(0,Go.jsx)(ga,{col:3,children:e.Description}),(0,Go.jsx)(ga,{col:2.5,children:e.Cause}),(0,Go.jsx)(ga,{col:2.5,children:e.Action})]})}function fw(){return(0,Go.jsxs)(Go.Fragment,{children:[(0,Go.jsx)(ga,{col:1.5,label:"ID"}),(0,Go.jsx)(ga,{col:2.5,label:"Date",align:"right"}),(0,Go.jsx)(ga,{col:3,label:"Description"}),(0,Go.jsx)(ga,{col:2.5,label:"Cause"}),(0,Go.jsx)(ga,{col:2.5,label:"Action"})]})}var Vd=me(xn(),1),Li=xe("react/jsx-runtime");function dw({record:e}){return(0,Li.jsx)(id,{variant:"outlined",onClick:()=>{window.location.href=`${e.ID}`},children:(0,Li.jsxs)(ad,{children:[(0,Li.jsx)(oo,{sx:{fontSize:14},color:"text.secondary",gutterBottom:!0,children:e.Date.toLocaleDateString()}),(0,Li.jsxs)(oo,{variant:"h5",mb:1.5,children:[e.ElementID," - ",e.DisplayName]}),(0,Li.jsxs)(oo,{children:[(0,Vd.getLocalizedString)("Description"),":"]}),(0,Li.jsx)(oo,{mb:1.5,color:"text.secondary",children:e.Description}),(0,Li.jsxs)(oo,{children:[(0,Vd.getLocalizedString)("Cause"),": "]}),(0,Li.jsx)(oo,{mb:1.5,color:"text.secondary",children:e.Cause}),(0,Li.jsxs)(oo,{children:[(0,Vd.getLocalizedString)("Action"),": "]}),(0,Li.jsx)(oo,{mb:1.5,color:"text.secondary",children:e.Action})]})})}var Rn=xe("react/jsx-runtime");function yw({open:e,onClose:t,record:r,fallBack:i}){let a=Eg(mw.theme.breakpoints.up("lg"));return(0,Rn.jsxs)(yd,{open:e,onClose:()=>t(!1),fullWidth:!0,fullScreen:!a,children:[(0,Rn.jsx)(vd,{sx:{backgroundColor:"#e9ebee"},children:(0,Wd.getLocalizedString)("This element has one or more unfixed registered damage")}),(0,Rn.jsx)(gd,{sx:{backgroundColor:"#e9ebee"},children:(0,Rn.jsx)(Ap,{container:!0,children:a?(0,Rn.jsxs)(Rn.Fragment,{children:[(0,Rn.jsx)(fw,{}),r.map(l=>(0,Rn.jsx)(uw,{record:l},l.PrimKey))]}):(0,Rn.jsx)("div",{className:"flow",style:{width:"100%"},children:r.map(l=>(0,Rn.jsx)(dw,{record:l},l.PrimKey))})})}),(0,Rn.jsxs)(Cp,{sx:{backgroundColor:"#e9ebee"},children:[(0,Rn.jsx)(Bo,{onClick:i,children:(0,Wd.getLocalizedString)("Cancel")}),(0,Rn.jsx)(Bo,{startIcon:(0,Rn.jsx)(is,{}),variant:"contained",type:"submit",children:(0,Wd.getLocalizedString)("Register damage anyway")})]})]})}var no=xe("react/jsx-runtime"),kL=new Intl.DateTimeFormat(af.userSession.culture,{day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",timeZone:"UTC"});function gw(e,t){for(let r of t){let i=e.findIndex(a=>a.PrimKey===r);i>-1&&e.deleteRow(i)}}function FL({editRecord:e,damageDataObject:t,fixedThisSession:r,setFixedThisSession:i}){let[a,l]=(0,Sn.useState)(!1);async function p(){try{confirm((0,Vn.getLocalizedString)("Are you sure you want to register a fix for this damage?"))&&(l(!0),await mE.execute({ID:e?.ID}),await t.refreshCurrentRow(),l(!1),i(!0))}catch(u){alert(u.message)}}return(0,no.jsxs)(no.Fragment,{children:[e?(0,no.jsx)(Fo,{display:"flex",justifyContent:"flex-end",children:(0,no.jsx)(Bo,{loading:a,loadingPosition:"end",endIcon:(0,no.jsx)(NT,{}),onClick:p,disabled:!!e.RegisteredFix||r,variant:"contained",children:(0,Vn.getLocalizedString)("Register fix")})}):(0,no.jsx)(Td,{control:(0,no.jsx)(pd,{}),label:(0,Vn.getLocalizedString)("Register fixed"),name:"RegisteredFix",id:"NewElementDamage_RegisteredFix"}),e?.RegisteredFix&&(0,no.jsx)(oo,{mb:1.5,color:"text.secondary",children:Vn.localize`Registered fix by ${e.FullName??e.RegisteredFixBy} on the ${kL.format(e.RegisteredFix)}`})]})}function vw({editRecord:e,elementsDataObject:t,damagesDataObject:r,attachmentsDataObject:i,currentAttachmentDataObject:a,isStory:l,fallBack:p}){let u=(0,Sn.useId)(),m=(0,Sn.useRef)(null),[h,v]=(0,Sn.useState)(e?{ProjectID:e.ProjectID,ProjectName:e.ProjectName,Domain:e.Domain}:null),[I,P]=(0,Sn.useState)(e?.ElementID??""),[w,R]=(0,Sn.useState)([]),[G,N]=(0,Sn.useState)([]),U=(0,Ug.useDataWithFilter)(fE,"1=1","whereClause"),Y=(0,Ug.useDataWithFilter)(t,`ProjectID = '${h?.ProjectID}' AND ElementID = '${I}'`,"whereClause"),[L,k]=(0,Sn.useState)(!e),[j,D]=(0,Sn.useState)(!1),[Z,ne]=(0,Sn.useState)(!1),[le,de]=(0,Sn.useState)(!1),[ye,E]=(0,Sn.useState)(!1),[q,re]=(0,Sn.useState)(!1),[oe,ce]=(0,Sn.useState)(null);async function Me(ft){v({ProjectID:ft.element.ProjectID,ProjectName:ft.element.ProjectName,Domain:ft.element.ProjectDomain}),P(ft.element.ElementID)}async function He(ft){try{let at=r.findIndex(tt=>tt.PrimKey===ft.PrimKey);if(at>=0&&confirm((0,Vn.getLocalizedString)("Are you sure you want to delete this item?"))){let tt=a.map(ke=>ke.PrimKey);gw(a,tt),await r.deleteRow(at)}p()}catch(at){ce(at.message)}}async function Ie(){if(e&&ye&&(r.setCurrentIndex(r.findIndex(ft=>ft.ID===e.ID)),await r.refreshCurrentRow(),await r.save({RegisteredFix:null,RegisteredFixBy:null})),w){await i.refreshDataSource();let ft=w.toString().split(",");gw(i,ft)}p()}function yt(){if(e)return!1;let ft=U.filter(at=>at.ElementID===I&&at.ProjectID===h?.ProjectID&&!at.RegisteredFix);return ft.length>0?(N(ft),re(!0),!0):!1}async function ct(ft){if(ft.preventDefault(),ne(!0),!(G.length<=0&&yt()))try{let at=new FormData(ft.currentTarget),tt=at.get("AttachmentPrimkeys"),ke=at.get("ElementID"),Vt=at.get("ElementNumber");if(at.delete("File"),at.delete("AttachmentPrimkeys"),!ke&&!Vt){ce((0,Vn.getLocalizedString)("Please fill in either Element ID or Element Number"));return}localStorage.setItem("ElementDamage_Description",at.get("Description")?.toString()??""),localStorage.setItem("ElementDamage_Cause",at.get("Cause")?.toString()??""),localStorage.setItem("ElementDamage_Action",at.get("Action")?.toString()??"");let Dt=Object.assign({...(0,hw.formDataToDataObjectRecord)(at,r)});if(at.get("ID")){Dt.ID=void 0,await r.dataHandler.update(Dt),ut();return}else{r.setCurrentIndex(-1);let gt;if("RegisteredFix"in Dt?gt=await r.save({...Dt,RegisteredFix:new Date,RegisteredFixBy:af.userSession.login}):gt=await r.save(Dt),await new Promise(dt=>setTimeout(dt,1500)),gt){if(tt){await i.refreshDataSource();let dt=tt.toString().split(",");for(let _t of dt)i.setCurrentIndex(i.findIndex(Ft=>Ft.PrimKey===_t)),i.getCurrentIndex()>-1&&(i.currentRow("DamageID",gt.ID),i.currentRow("ElementRef",gt.ElementRef),i.currentRow("ProjectID",gt.ProjectID),i.currentRow("ElementID",gt.ElementID),i.currentRow("ElementNumber",gt.ElementNumber),i.currentRow("Domain",at.get("Domain")?.toString()??af.userSession.domain),i.currentRow("Damage",!0),await i.endEdit())}ut();return}else{ce((0,Vn.getLocalizedString)("No job returned when creating new job."));return}}}catch(at){ut(at.message);return}}function ut(ft){ft?ce(ft):(p(),ne(!1))}return(0,no.jsxs)(Hd.PageContainer,{maxWidth:"sm",children:[(0,no.jsx)(Hd.PageTitle,{variant:"h1",gutterBottom:!0,children:(0,Vn.getLocalizedString)("New element damage")}),(0,no.jsxs)("form",{name:u,ref:m,method:"POST",onSubmit:ct,className:"flow",children:[(0,no.jsx)(yw,{open:q,onClose:re,record:G,fallBack:p}),(0,no.jsx)($E,{open:L,onClose:()=>k(!1),onAdd:Me,isStory:l}),oe&&(0,no.jsx)(mp,{severity:"error",variant:"filled",children:oe}),(0,no.jsx)(lw,{editRecord:e,project:h,elementRecord:Y,attachmentPrimKeys:[],elementID:I,formName:u,handleAddElement:()=>{k(!0),D(!0)}}),(0,no.jsxs)(Fo,{display:"flex",flexDirection:"column",children:[(0,no.jsx)(oo,{variant:"h3",children:(0,Vn.getLocalizedString)("Pictures")}),(0,no.jsx)(nw,{multiple:!0,dataObject:a,fields:{DamageID:e?.ID,ElementID:e?.ElementID,ProjectID:e?.ProjectID,ElementRef:e?.ElementRef,Damage:!0},onFileStart:()=>e??de(!0),onFileProcessed:(ft,at)=>R([...w,at.serverId]),onFilesProcessed:()=>de(!1),onError:()=>de(!1)})]}),(0,no.jsx)(FL,{editRecord:e,damageDataObject:r,fixedThisSession:ye,setFixedThisSession:E}),(0,no.jsxs)(Fo,{display:"flex",flexWrap:"wrap",gap:2,justifyContent:"flex-end",children:[e&&(0,no.jsx)(Bo,{onClick:()=>He(e),children:(0,Vn.getLocalizedString)("Delete")}),(0,no.jsx)(Bo,{onClick:Ie,children:(0,Vn.getLocalizedString)("Cancel")}),(0,no.jsx)(Bo,{loading:Z||le,loadingPosition:"start",startIcon:(0,no.jsx)(is,{}),type:"submit",variant:"contained",children:e?(0,Vn.getLocalizedString)("Save changes"):(0,Vn.getLocalizedString)("Register damage")})]})]})]})}return SS(BL);})();
|
|
171
|
-
/*! Bundled license information:
|
|
172
|
-
|
|
173
|
-
localforage/dist/localforage.js:
|
|
174
|
-
(*!
|
|
175
|
-
localForage -- Offline Storage, Improved
|
|
176
|
-
Version 1.10.0
|
|
177
|
-
https://localforage.github.io/localForage
|
|
178
|
-
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
179
|
-
*)
|
|
180
|
-
|
|
181
|
-
react-is/cjs/react-is.production.js:
|
|
182
|
-
(**
|
|
183
|
-
* @license React
|
|
184
|
-
* react-is.production.js
|
|
185
|
-
*
|
|
186
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the MIT license found in the
|
|
189
|
-
* LICENSE file in the root directory of this source tree.
|
|
190
|
-
*)
|
|
191
|
-
|
|
192
|
-
react-is/cjs/react-is.production.min.js:
|
|
193
|
-
(** @license React v16.13.1
|
|
194
|
-
* react-is.production.min.js
|
|
195
|
-
*
|
|
196
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the MIT license found in the
|
|
199
|
-
* LICENSE file in the root directory of this source tree.
|
|
200
|
-
*)
|
|
201
|
-
|
|
202
|
-
filepond/dist/filepond.js:
|
|
203
|
-
(*!
|
|
204
|
-
* FilePond 4.32.9
|
|
205
|
-
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
206
|
-
* Please visit https://pqina.nl/filepond/ for details.
|
|
207
|
-
*)
|
|
208
|
-
|
|
209
|
-
filepond-plugin-image-exif-orientation/dist/filepond-plugin-image-exif-orientation.js:
|
|
210
|
-
(*!
|
|
211
|
-
* FilePondPluginImageExifOrientation 1.0.11
|
|
212
|
-
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
213
|
-
* Please visit https://pqina.nl/filepond/ for details.
|
|
214
|
-
*)
|
|
215
|
-
|
|
216
|
-
filepond-plugin-image-preview/dist/filepond-plugin-image-preview.js:
|
|
217
|
-
(*!
|
|
218
|
-
* FilePondPluginImagePreview 4.6.12
|
|
219
|
-
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
220
|
-
* Please visit https://pqina.nl/filepond/ for details.
|
|
221
|
-
*)
|
|
222
|
-
|
|
223
|
-
filepond-plugin-image-resize/dist/filepond-plugin-image-resize.js:
|
|
224
|
-
(*!
|
|
225
|
-
* FilePondPluginImageResize 2.0.10
|
|
226
|
-
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
227
|
-
* Please visit https://pqina.nl/filepond/ for details.
|
|
228
|
-
*)
|
|
229
|
-
|
|
230
|
-
filepond-plugin-image-transform/dist/filepond-plugin-image-transform.js:
|
|
231
|
-
(*!
|
|
232
|
-
* FilePondPluginImageTransform 3.8.7
|
|
233
|
-
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
234
|
-
* Please visit https://pqina.nl/filepond/ for details.
|
|
235
|
-
*)
|
|
236
|
-
|
|
237
|
-
@mui/styled-engine/esm/index.js:
|
|
238
|
-
(**
|
|
239
|
-
* @mui/styled-engine v7.3.3
|
|
240
|
-
*
|
|
241
|
-
* @license MIT
|
|
242
|
-
* This source code is licensed under the MIT license found in the
|
|
243
|
-
* LICENSE file in the root directory of this source tree.
|
|
244
|
-
*)
|
|
245
|
-
|
|
246
|
-
@mui/system/esm/index.js:
|
|
247
|
-
(**
|
|
248
|
-
* @mui/system v7.3.3
|
|
249
|
-
*
|
|
250
|
-
* @license MIT
|
|
251
|
-
* This source code is licensed under the MIT license found in the
|
|
252
|
-
* LICENSE file in the root directory of this source tree.
|
|
253
|
-
*)
|
|
254
|
-
|
|
255
|
-
@mui/material/esm/index.js:
|
|
256
|
-
(**
|
|
257
|
-
* @mui/material v7.3.4
|
|
258
|
-
*
|
|
259
|
-
* @license MIT
|
|
260
|
-
* This source code is licensed under the MIT license found in the
|
|
261
|
-
* LICENSE file in the root directory of this source tree.
|
|
262
|
-
*)
|
|
263
|
-
*/
|
|
264
|
-
//# sourceMappingURL=ob.react.min.js.map
|