vendor: 29,616 bytes, lines 1-6
1import{co as ue,c2 as fe,bK as Vr,j as P,an as je,cr as Kr,t as E,T as _e,ag as Qr,h as Gr,s as He,ah as Xr,a9 as kr,r as Jr,aa as Zr,b5 as qr,F as et,eF as rt}from"./WarningIcon-CDl7XdC4.js";import{T as tt}from"./Tooltip-BL_i3Lon.js";var be={exports:{}};/*! 2 localForage -- Offline Storage, Improved 3 Version 1.10.0 4 https://localforage.github.io/localForage 5 (c) 2013-2017 Mozilla, Apache License 2.0 6*/var Ye;function nt(){return Ye||(Ye=1,function(x,j){(function(N){x.exports=N()})(function(){return function N(A,M,I){function T(R,U){if(!M[R]){if(!A[R]){var d=typeof ue=="function"&&ue;if(!U&&d)return d(R,!0);if(p)return p(R,!0);var h=new Error("Cannot find module '"+R+"'");throw h.code="MODULE_NOT_FOUND",h}var D=M[R]={exports:{}};A[R][0].call(D.exports,function(B){var H=A[R][1][B];return T(H||B)},D,D.exports,N,A,M,I)}return M[R].exports}for(var p=typeof ue=="function"&&ue,C=0;C<I.length;C++)T(I[C]);return T}({1:[function(N,A,M){(function(I){var T=I.MutationObserver||I.WebKitMutationObserver,p;if(T){var C=0,R=new T(B),U=I.document.createTextNode("");R.observe(U,{characterData:!0}),p=function(){U.data=C=++C%2}}else if(!I.setImmediate&&typeof I.MessageChannel<"u"){var d=new I.MessageChannel;d.port1.onmessage=B,p=function(){d.port2.postMessage(0)}}else"document"in I&&"onreadystatechange"in I.document.createElement("script")?p=function(){var O=I.document.createElement("script");O.onreadystatechange=function(){B(),O.onreadystatechange=null,O.parentNode.removeChild(O),O=null},I.document.documentElement.appendChild(O)}:p=function(){setTimeout(B,0)};var h,D=[];function B(){h=!0;for(var O,K,g=D.length;g;){for(K=D,D=[],O=-1;++O<g;)K[O]();g=D.length}h=!1}A.exports=H;function H(O){D.push(O)===1&&!h&&p()}}).call(this,typeof fe<"u"?fe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(N,A,M){var I=N(1);function T(){}var p={},C=["REJECTED"],R=["FULFILLED"],U=["PENDING"];A.exports=d;function d(l){if(typeof l!="function")throw new TypeError("resolver must be a function");this.state=U,this.queue=[],this.outcome=void 0,l!==T&&H(this,l)}d.prototype.catch=function(l){return this.then(null,l)},d.prototype.then=function(l,b){if(typeof l!="function"&&this.state===R||typeof b!="function"&&this.state===C)return this;var m=new this.constructor(T);if(this.state!==U){var _=this.state===R?l:b;D(m,_,this.outcome)}else this.queue.push(new h(m,l,b));return m};function h(l,b,m){this.promise=l,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof m=="function"&&(this.onRejected=m,this.callRejected=this.otherCallRejected)}h.prototype.callFulfilled=function(l){p.resolve(this.promise,l)},h.prototype.otherCallFulfilled=function(l){D(this.promise,this.onFulfilled,l)},h.prototype.callRejected=function(l){p.reject(this.promise,l)},h.prototype.otherCallRejected=function(l){D(this.promise,this.onRejected,l)};function D(l,b,m){I(function(){var _;try{_=b(m)}catch(F){return p.reject(l,F)}_===l?p.reject(l,new TypeError("Cannot resolve promise with itself")):p.resolve(l,_)})}p.resolve=function(l,b){var m=O(B,b);if(m.status==="error")return p.reject(l,m.value);var _=m.value;if(_)H(l,_);else{l.state=R,l.outcome=b;for(var F=-1,$=l.queue.length;++F<$;)l.queue[F].callFulfilled(b)}return l},p.reject=function(l,b){l.state=C,l.outcome=b;for(var m=-1,_=l.queue.length;++m<_;)l.queue[m].callRejected(b);return l};function B(l){var b=l&&l.then;if(l&&(typeof l=="object"||typeof l=="function")&&typeof b=="function")return function(){b.apply(l,arguments)}}function H(l,b){var m=!1;function _(Y){m||(m=!0,p.reject(l,Y))}function F(Y){m||(m=!0,p.resolve(l,Y))}function $(){b(F,_)}var W=O($);W.status==="error"&&_(W.value)}function O(l,b){var m={};try{m.value=l(b),m.status="success"}catch(_){m.status="error",m.value=_}return m}d.resolve=K;function K(l){return l instanceof this?l:p.resolve(new this(T),l)}d.reject=g;function g(l){var b=new this(T);return p.reject(b,l)}d.all=ee;function ee(l){var b=this;if(Object.prototype.toString.call(l)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=l.length,_=!1;if(!m)return this.resolve([]);for(var F=new Array(m),$=0,W=-1,Y=new this(T);++W<m;)G(l[W],W);return Y;function G(re,oe){b.resolve(re).then(se,function(Z){_||(_=!0,p.reject(Y,Z))});function se(Z){F[oe]=Z,++$===m&&!_&&(_=!0,p.resolve(Y,F))}}}d.race=Q;function Q(l){var b=this;if(Object.prototype.toString.call(l)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=l.length,_=!1;if(!m)return this.resolve([]);for(var F=-1,$=new this(T);++F<m;)W(l[F]);return $;function W(Y){b.resolve(Y).then(function(G){_||(_=!0,p.resolve($,G))},function(G){_||(_=!0,p.reject($,G))})}}},{1:1}],3:[function(N,A,M){(function(I){typeof I.Promise!="function"&&(I.Promise=N(2))}).call(this,typeof fe<"u"?fe:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(N,A,M){var I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(){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 C=p();function R(){try{if(!C||!C.open)return!1;var e=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||t)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function U(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(n){if(n.name!=="TypeError")throw n;for(var r=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,o=new r,a=0;a<e.length;a+=1)o.append(e[a]);return o.getBlob(t.type)}}typeof Promise>"u"&&N(3);var d=Promise;function h(e,t){t&&e.then(function(r){t(null,r)},function(r){t(r)})}function D(e,t,r){typeof t=="function"&&e.then(t),typeof r=="function"&&e.catch(r)}function B(e){return typeof e!="string"&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function H(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var O="local-forage-detect-blob-support",K=void 0,g={},ee=Object.prototype.toString,Q="readonly",l="readwrite";function b(e){for(var t=e.length,r=new ArrayBuffer(t),o=new Uint8Array(r),a=0;a<t;a++)o[a]=e.charCodeAt(a);return r}function m(e){return new d(function(t){var r=e.transaction(O,l),o=U([""]);r.objectStore(O).put(o,"key"),r.onabort=function(a){a.preventDefault(),a.stopPropagation(),t(!1)},r.oncomplete=function(){var a=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!a||parseInt(a[1],10)>=43)}}).catch(function(){return!1})}function _(e){return typeof K=="boolean"?d.resolve(K):m(e).then(function(t){return K=t,K})}function F(e){var t=g[e.name],r={};r.promise=new d(function(o,a){r.resolve=o,r.reject=a}),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then(function(){return r.promise}):t.dbReady=r.promise}function $(e){var t=g[e.name],r=t.deferredOperations.pop();if(r)return r.resolve(),r.promise}function W(e,t){var r=g[e.name],o=r.deferredOperations.pop();if(o)return o.reject(t),o.promise}function Y(e,t){return new d(function(r,o){if(g[e.name]=g[e.name]||Ie(),e.db)if(t)F(e),e.db.close();else return r(e.db);var a=[e.name];t&&a.push(e.version);var n=C.open.apply(C,a);t&&(n.onupgradeneeded=function(i){var u=n.result;try{u.createObjectStore(e.storeName),i.oldVersion<=1&&u.createObjectStore(O)}catch(f){if(f.name==="ConstraintError")console.warn('The database "'+e.name+'" has been upgraded from version '+i.oldVersion+" to version "+i.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw f}}),n.onerror=function(i){i.preventDefault(),o(n.error)},n.onsuccess=function(){var i=n.result;i.onversionchange=function(u){u.target.close()},r(i),$(e)}})}function G(e){return Y(e,!1)}function re(e){return Y(e,!0)}function oe(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),o=e.version<e.db.version,a=e.version>e.db.version;if(o&&(e.version!==t&&console.warn('The database "'+e.name+`" can't be downgraded from version `+e.db.version+" to version "+e.version+"."),e.version=e.db.version),a||r){if(r){var n=e.db.version+1;n>e.version&&(e.version=n)}return!0}return!1}function se(e){return new d(function(t,r){var o=new FileReader;o.onerror=r,o.onloadend=function(a){var n=btoa(a.target.result||"");t({__local_forage_encoded_blob:!0,data:n,type:e.type})},o.readAsBinaryString(e)})}function Z(e){var t=b(atob(e.data));return U([t],{type:e.type})}function Se(e){return e&&e.__local_forage_encoded_blob}function Ke(e){var t=this,r=t._initReady().then(function(){var o=g[t._dbInfo.name];if(o&&o.dbReady)return o.dbReady});return D(r,e,e),r}function Qe(e){F(e);for(var t=g[e.name],r=t.forages,o=0;o<r.length;o++){var a=r[o];a._dbInfo.db&&(a._dbInfo.db.close(),a._dbInfo.db=null)}return e.db=null,G(e).then(function(n){return e.db=n,oe(e)?re(e):n}).then(function(n){e.db=t.db=n;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=n}).catch(function(n){throw W(e,n),n})}function X(e,t,r,o){o===void 0&&(o=1);try{var a=e.db.transaction(e.storeName,t);r(null,a)}catch(n){if(o>0&&(!e.db||n.name==="InvalidStateError"||n.name==="NotFoundError"))return d.resolve().then(function(){if(!e.db||n.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),re(e)}).then(function(){return Qe(e).then(function(){X(e,t,r,o-1)})}).catch(r);r(n)}}function Ie(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Ge(e){var t=this,r={db:null};if(e)for(var o in e)r[o]=e[o];var a=g[r.name];a||(a=Ie(),g[r.name]=a),a.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=Ke);var n=[];function i(){return d.resolve()}for(var u=0;u<a.forages.length;u++){var f=a.forages[u];f!==t&&n.push(f._initReady().catch(i))}var s=a.forages.slice(0);return d.all(n).then(function(){return r.db=a.db,G(r)}).then(function(c){return r.db=c,oe(r,t._defaultConfig.version)?re(r):c}).then(function(c){r.db=a.db=c,t._dbInfo=r;for(var v=0;v<s.length;v++){var y=s[v];y!==t&&(y._dbInfo.db=r.db,y._dbInfo.version=r.version)}})}function Xe(e,t){var r=this;e=B(e);var o=new d(function(a,n){r.ready().then(function(){X(r._dbInfo,Q,function(i,u){if(i)return n(i);try{var f=u.objectStore(r._dbInfo.storeName),s=f.get(e);s.onsuccess=function(){var c=s.result;c===void 0&&(c=null),Se(c)&&(c=Z(c)),a(c)},s.onerror=function(){n(s.error)}}catch(c){n(c)}})}).catch(n)});return h(o,t),o}function ke(e,t){var r=this,o=new d(function(a,n){r.ready().then(function(){X(r._dbInfo,Q,function(i,u){if(i)return n(i);try{var f=u.objectStore(r._dbInfo.storeName),s=f.openCursor(),c=1;s.onsuccess=function(){var v=s.result;if(v){var y=v.value;Se(y)&&(y=Z(y));var S=e(y,v.key,c++);S!==void 0?a(S):v.continue()}else a()},s.onerror=function(){n(s.error)}}catch(v){n(v)}})}).catch(n)});return h(o,t),o}function Je(e,t,r){var o=this;e=B(e);var a=new d(function(n,i){var u;o.ready().then(function(){return u=o._dbInfo,ee.call(t)==="[object Blob]"?_(u.db).then(function(f){return f?t:se(t)}):t}).then(function(f){X(o._dbInfo,l,function(s,c){if(s)return i(s);try{var v=c.objectStore(o._dbInfo.storeName);f===null&&(f=void 0);var y=v.put(f,e);c.oncomplete=function(){f===void 0&&(f=null),n(f)},c.onabort=c.onerror=function(){var S=y.error?y.error:y.transaction.error;i(S)}}catch(S){i(S)}})}).catch(i)});return h(a,r),a}function Ze(e,t){var r=this;e=B(e);var o=new d(function(a,n){r.ready().then(function(){X(r._dbInfo,l,function(i,u){if(i)return n(i);try{var f=u.objectStore(r._dbInfo.storeName),s=f.delete(e);u.oncomplete=function(){a()},u.onerror=function(){n(s.error)},u.onabort=function(){var c=s.error?s.error:s.transaction.error;n(c)}}catch(c){n(c)}})}).catch(n)});return h(o,t),o}function qe(e){var t=this,r=new d(function(o,a){t.ready().then(function(){X(t._dbInfo,l,function(n,i){if(n)return a(n);try{var u=i.objectStore(t._dbInfo.storeName),f=u.clear();i.oncomplete=function(){o()},i.onabort=i.onerror=function(){var s=f.error?f.error:f.transaction.error;a(s)}}catch(s){a(s)}})}).catch(a)});return h(r,e),r}function er(e){var t=this,r=new d(function(o,a){t.ready().then(function(){X(t._dbInfo,Q,function(n,i){if(n)return a(n);try{var u=i.objectStore(t._dbInfo.storeName),f=u.count();f.onsuccess=function(){o(f.result)},f.onerror=function(){a(f.error)}}catch(s){a(s)}})}).catch(a)});return h(r,e),r}function rr(e,t){var r=this,o=new d(function(a,n){if(e<0){a(null);return}r.ready().then(function(){X(r._dbInfo,Q,function(i,u){if(i)return n(i);try{var f=u.objectStore(r._dbInfo.storeName),s=!1,c=f.openKeyCursor();c.onsuccess=function(){var v=c.result;if(!v){a(null);return}e===0||s?a(v.key):(s=!0,v.advance(e))},c.onerror=function(){n(c.error)}}catch(v){n(v)}})}).catch(n)});return h(o,t),o}function tr(e){var t=this,r=new d(function(o,a){t.ready().then(function(){X(t._dbInfo,Q,function(n,i){if(n)return a(n);try{var u=i.objectStore(t._dbInfo.storeName),f=u.openKeyCursor(),s=[];f.onsuccess=function(){var c=f.result;if(!c){o(s);return}s.push(c.key),c.continue()},f.onerror=function(){a(f.error)}}catch(c){a(c)}})}).catch(a)});return h(r,e),r}function nr(e,t){t=H.apply(this,arguments);var r=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var o=this,a;if(!e.name)a=d.reject("Invalid arguments");else{var n=e.name===r.name&&o._dbInfo.db,i=n?d.resolve(o._dbInfo.db):G(e).then(function(u){var f=g[e.name],s=f.forages;f.db=u;for(var c=0;c<s.length;c++)s[c]._dbInfo.db=u;return u});e.storeName?a=i.then(function(u){if(u.objectStoreNames.contains(e.storeName)){var f=u.version+1;F(e);var s=g[e.name],c=s.forages;u.close();for(var v=0;v<c.length;v++){var y=c[v];y._dbInfo.db=null,y._dbInfo.version=f}var S=new d(function(w,z){var L=C.open(e.name,f);L.onerror=function(V){var ne=L.result;ne.close(),z(V)},L.onupgradeneeded=function(){var V=L.result;V.deleteObjectStore(e.storeName)},L.onsuccess=function(){var V=L.result;V.close(),w(V)}});return S.then(function(w){s.db=w;for(var z=0;z<c.length;z++){var L=c[z];L._dbInfo.db=w,$(L._dbInfo)}}).catch(function(w){throw(W(e,w)||d.resolve()).catch(function(){}),w})}}):a=i.then(function(u){F(e);var f=g[e.name],s=f.forages;u.close();for(var c=0;c<s.length;c++){var v=s[c];v._dbInfo.db=null}var y=new d(function(S,w){var z=C.deleteDatabase(e.name);z.onerror=function(){var L=z.result;L&&L.close(),w(z.error)},z.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},z.onsuccess=function(){var L=z.result;L&&L.close(),S(L)}});return y.then(function(S){f.db=S;for(var w=0;w<s.length;w++){var z=s[w];$(z._dbInfo)}}).catch(function(S){throw(W(e,S)||d.resolve()).catch(function(){}),S})})}return h(a,t),a}var or={_driver:"asyncStorage",_initStorage:Ge,_support:R(),iterate:ke,getItem:Xe,setItem:Je,removeItem:Ze,clear:qe,length:er,key:rr,keys:tr,dropInstance:nr};function ar(){return typeof openDatabase=="function"}var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ir="~~local_forage_type~",we=/^~~local_forage_type~([^~]+)~/,ae="__lfsc__:",ce=ae.length,le="arbf",de="blob",Ee="si08",xe="ui08",Re="uic8",Ne="si16",Ae="si32",Te="ur16",De="ui32",Ce="fl32",Be="fl64",Oe=ce+le.length,Le=Object.prototype.toString;function Pe(e){var t=e.length*.75,r=e.length,o,a=0,n,i,u,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var s=new ArrayBuffer(t),c=new Uint8Array(s);for(o=0;o<r;o+=4)n=k.indexOf(e[o]),i=k.indexOf(e[o+1]),u=k.indexOf(e[o+2]),f=k.indexOf(e[o+3]),c[a++]=n<<2|i>>4,c[a++]=(i&15)<<4|u>>2,c[a++]=(u&3)<<6|f&63;return s}function ve(e){var t=new Uint8Array(e),r="",o;for(o=0;o<t.length;o+=3)r+=k[t[o]>>2],r+=k[(t[o]&3)<<4|t[o+1]>>4],r+=k[(t[o+1]&15)<<2|t[o+2]>>6],r+=k[t[o+2]&63];return t.length%3===2?r=r.substring(0,r.length-1)+"=":t.length%3===1&&(r=r.substring(0,r.length-2)+"=="),r}function ur(e,t){var r="";if(e&&(r=Le.call(e)),e&&(r==="[object ArrayBuffer]"||e.buffer&&Le.call(e.buffer)==="[object ArrayBuffer]")){var o,a=ae;e instanceof ArrayBuffer?(o=e,a+=le):(o=e.buffer,r==="[object Int8Array]"?a+=Ee:r==="[object Uint8Array]"?a+=xe:r==="[object Uint8ClampedArray]"?a+=Re:r==="[object Int16Array]"?a+=Ne:r==="[object Uint16Array]"?a+=Te:r==="[object Int32Array]"?a+=Ae:r==="[object Uint32Array]"?a+=De:r==="[object Float32Array]"?a+=Ce:r==="[object Float64Array]"?a+=Be:t(new Error("Failed to get type for BinaryArray"))),t(a+ve(o))}else if(r==="[object Blob]"){var n=new FileReader;n.onload=function(){var i=ir+e.type+"~"+ve(this.result);t(ae+de+i)},n.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(i){console.error("Couldn't convert value into a JSON string: ",e),t(null,i)}}function fr(e){if(e.substring(0,ce)!==ae)return JSON.parse(e);var t=e.substring(Oe),r=e.substring(ce,Oe),o;if(r===de&&we.test(t)){var a=t.match(we);o=a[1],t=t.substring(a[0].length)}var n=Pe(t);switch(r){case le:return n;case de:return U([n],{type:o});case Ee:return new Int8Array(n);case xe:return new Uint8Array(n);case Re:return new Uint8ClampedArray(n);case Ne:return new Int16Array(n);case Te:return new Uint16Array(n);case Ae:return new Int32Array(n);case De:return new Uint32Array(n);case Ce:return new Float32Array(n);case Be:return new Float64Array(n);default:throw new Error("Unkown type: "+r)}}var he={serialize:ur,deserialize:fr,stringToBuffer:Pe,bufferToString:ve};function Me(e,t,r,o){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,o)}function sr(e){var t=this,r={db:null};if(e)for(var o in e)r[o]=typeof e[o]!="string"?e[o].toString():e[o];var a=new d(function(n,i){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(u){return i(u)}r.db.transaction(function(u){Me(u,r,function(){t._dbInfo=r,n()},function(f,s){i(s)})},i)});return r.serializer=he,a}function J(e,t,r,o,a,n){e.executeSql(r,o,a,function(i,u){u.code===u.SYNTAX_ERR?i.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(f,s){s.rows.length?n(f,u):Me(f,t,function(){f.executeSql(r,o,a,n)},n)},n):n(i,u)},n)}function cr(e,t){var r=this;e=B(e);var o=new d(function(a,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){J(u,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],function(f,s){var c=s.rows.length?s.rows.item(0).value:null;c&&(c=i.serializer.deserialize(c)),a(c)},function(f,s){n(s)})})}).catch(n)});return h(o,t),o}function lr(e,t){var r=this,o=new d(function(a,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){J(u,i,"SELECT * FROM "+i.storeName,[],function(f,s){for(var c=s.rows,v=c.length,y=0;y<v;y++){var S=c.item(y),w=S.value;if(w&&(w=i.serializer.deserialize(w)),w=e(w,S.key,y+1),w!==void 0){a(w);return}}a()},function(f,s){n(s)})})}).catch(n)});return h(o,t),o}function Fe(e,t,r,o){var a=this;e=B(e);var n=new d(function(i,u){a.ready().then(function(){t===void 0&&(t=null);var f=t,s=a._dbInfo;s.serializer.serialize(t,function(c,v){v?u(v):s.db.transaction(function(y){J(y,s,"INSERT OR REPLACE INTO "+s.storeName+" (key, value) VALUES (?, ?)",[e,c],function(){i(f)},function(S,w){u(w)})},function(y){if(y.code===y.QUOTA_ERR){if(o>0){i(Fe.apply(a,[e,f,r,o-1]));return}u(y)}})})}).catch(u)});return h(n,r),n}function dr(e,t,r){return Fe.apply(this,[e,t,r,1])}function vr(e,t){var r=this;e=B(e);var o=new d(function(a,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){J(u,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],function(){a()},function(f,s){n(s)})})}).catch(n)});return h(o,t),o}function hr(e){var t=this,r=new d(function(o,a){t.ready().then(function(){var n=t._dbInfo;n.db.transaction(function(i){J(i,n,"DELETE FROM "+n.storeName,[],function(){o()},function(u,f){a(f)})})}).catch(a)});return h(r,e),r}function mr(e){var t=this,r=new d(function(o,a){t.ready().then(function(){var n=t._dbInfo;n.db.transaction(function(i){J(i,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],function(u,f){var s=f.rows.item(0).c;o(s)},function(u,f){a(f)})})}).catch(a)});return h(r,e),r}function gr(e,t){var r=this,o=new d(function(a,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){J(u,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],function(f,s){var c=s.rows.length?s.rows.item(0).key:null;a(c)},function(f,s){n(s)})})}).catch(n)});return h(o,t),o}function yr(e){var t=this,r=new d(function(o,a){t.ready().then(function(){var n=t._dbInfo;n.db.transaction(function(i){J(i,n,"SELECT key FROM "+n.storeName,[],function(u,f){for(var s=[],c=0;c<f.rows.length;c++)s.push(f.rows.item(c).key);o(s)},function(u,f){a(f)})})}).catch(a)});return h(r,e),r}function pr(e){return new d(function(t,r){e.transaction(function(o){o.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(a,n){for(var i=[],u=0;u<n.rows.length;u++)i.push(n.rows.item(u).name);t({db:e,storeNames:i})},function(a,n){r(n)})},function(o){r(o)})})}function br(e,t){t=H.apply(this,arguments);var r=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var o=this,a;return e.name?a=new d(function(n){var i;e.name===r.name?i=o._dbInfo.db:i=openDatabase(e.name,"","",0),e.storeName?n({db:i,storeNames:[e.storeName]}):n(pr(i))}).then(function(n){return new d(function(i,u){n.db.transaction(function(f){function s(S){return new d(function(w,z){f.executeSql("DROP TABLE IF EXISTS "+S,[],function(){w()},function(L,V){z(V)})})}for(var c=[],v=0,y=n.storeNames.length;v<y;v++)c.push(s(n.storeNames[v]));d.all(c).then(function(){i()}).catch(function(S){u(S)})},function(f){u(f)})})}):a=d.reject("Invalid arguments"),h(a,t),a}var _r={_driver:"webSQLStorage",_initStorage:sr,_support:ar(),iterate:lr,getItem:cr,setItem:dr,removeItem:vr,clear:hr,length:mr,key:gr,keys:yr,dropInstance:br};function Sr(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function ze(e,t){var r=e.name+"/";return e.storeName!==t.storeName&&(r+=e.storeName+"/"),r}function Ir(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function wr(){return!Ir()||localStorage.length>0}function Er(e){var t=this,r={};if(e)for(var o in e)r[o]=e[o];return r.keyPrefix=ze(e,t._defaultConfig),wr()?(t._dbInfo=r,r.serializer=he,d.resolve()):d.reject()}function xr(e){var t=this,r=t.ready().then(function(){for(var o=t._dbInfo.keyPrefix,a=localStorage.length-1;a>=0;a--){var n=localStorage.key(a);n.indexOf(o)===0&&localStorage.removeItem(n)}});return h(r,e),r}function Rr(e,t){var r=this;e=B(e);var o=r.ready().then(function(){var a=r._dbInfo,n=localStorage.getItem(a.keyPrefix+e);return n&&(n=a.serializer.deserialize(n)),n});return h(o,t),o}function Nr(e,t){var r=this,o=r.ready().then(function(){for(var a=r._dbInfo,n=a.keyPrefix,i=n.length,u=localStorage.length,f=1,s=0;s<u;s++){var c=localStorage.key(s);if(c.indexOf(n)===0){var v=localStorage.getItem(c);if(v&&(v=a.serializer.deserialize(v)),v=e(v,c.substring(i),f++),v!==void 0)return v}}});return h(o,t),o}function Ar(e,t){var r=this,o=r.ready().then(function(){var a=r._dbInfo,n;try{n=localStorage.key(e)}catch{n=null}return n&&(n=n.substring(a.keyPrefix.length)),n});return h(o,t),o}function Tr(e){var t=this,r=t.ready().then(function(){for(var o=t._dbInfo,a=localStorage.length,n=[],i=0;i<a;i++){var u=localStorage.key(i);u.indexOf(o.keyPrefix)===0&&n.push(u.substring(o.keyPrefix.length))}return n});return h(r,e),r}function Dr(e){var t=this,r=t.keys().then(function(o){return o.length});return h(r,e),r}function Cr(e,t){var r=this;e=B(e);var o=r.ready().then(function(){var a=r._dbInfo;localStorage.removeItem(a.keyPrefix+e)});return h(o,t),o}function Br(e,t,r){var o=this;e=B(e);var a=o.ready().then(function(){t===void 0&&(t=null);var n=t;return new d(function(i,u){var f=o._dbInfo;f.serializer.serialize(t,function(s,c){if(c)u(c);else try{localStorage.setItem(f.keyPrefix+e,s),i(n)}catch(v){(v.name==="QuotaExceededError"||v.name==="NS_ERROR_DOM_QUOTA_REACHED")&&u(v),u(v)}})})});return h(a,r),a}function Or(e,t){if(t=H.apply(this,arguments),e=typeof e!="function"&&e||{},!e.name){var r=this.config();e.name=e.name||r.name,e.storeName=e.storeName||r.storeName}var o=this,a;return e.name?a=new d(function(n){e.storeName?n(ze(e,o._defaultConfig)):n(e.name+"/")}).then(function(n){for(var i=localStorage.length-1;i>=0;i--){var u=localStorage.key(i);u.indexOf(n)===0&&localStorage.removeItem(u)}}):a=d.reject("Invalid arguments"),h(a,t),a}var Lr={_driver:"localStorageWrapper",_initStorage:Er,_support:Sr(),iterate:Nr,getItem:Rr,setItem:Br,removeItem:Cr,clear:xr,length:Dr,key:Ar,keys:Tr,dropInstance:Or},Pr=function(t,r){return t===r||typeof t=="number"&&typeof r=="number"&&isNaN(t)&&isNaN(r)},Mr=function(t,r){for(var o=t.length,a=0;a<o;){if(Pr(t[a],r))return!0;a++}return!1},Ue=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},te={},We={},q={INDEXEDDB:or,WEBSQL:_r,LOCALSTORAGE:Lr},Fr=[q.INDEXEDDB._driver,q.WEBSQL._driver,q.LOCALSTORAGE._driver],ie=["dropInstance"],me=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ie),zr={description:"",driver:Fr.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Ur(e,t){e[t]=function(){var r=arguments;return e.ready().then(function(){return e[t].apply(e,r)})}}function ge(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var r in t)t.hasOwnProperty(r)&&(Ue(t[r])?arguments[0][r]=t[r].slice():arguments[0][r]=t[r])}return arguments[0]}var Wr=function(){function e(t){T(this,e);for(var r in q)if(q.hasOwnProperty(r)){var o=q[r],a=o._driver;this[r]=a,te[a]||this.defineDriver(o)}this._defaultConfig=ge({},zr),this._config=ge({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(r){if((typeof r>"u"?"undefined":I(r))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var o in r){if(o==="storeName"&&(r[o]=r[o].replace(/\W/g,"_")),o==="version"&&typeof r[o]!="number")return new Error("Database version must be a number.");this._config[o]=r[o]}return"driver"in r&&r.driver?this.setDriver(this._config.driver):!0}else return typeof r=="string"?this._config[r]:this._config},e.prototype.defineDriver=function(r,o,a){var n=new d(function(i,u){try{var f=r._driver,s=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!r._driver){u(s);return}for(var c=me.concat("_initStorage"),v=0,y=c.length;v<y;v++){var S=c[v],w=!Mr(ie,S);if((w||r[S])&&typeof r[S]!="function"){u(s);return}}var z=function(){for(var ne=function(jr){return function(){var Hr=new Error("Method "+jr+" is not implemented by the current driver"),$e=d.reject(Hr);return h($e,arguments[arguments.length-1]),$e}},ye=0,Yr=ie.length;ye<Yr;ye++){var pe=ie[ye];r[pe]||(r[pe]=ne(pe))}};z();var L=function(ne){te[f]&&console.info("Redefining LocalForage driver: "+f),te[f]=r,We[f]=ne,i()};"_support"in r?r._support&&typeof r._support=="function"?r._support().then(L,u):L(!!r._support):L(!0)}catch(V){u(V)}});return D(n,o,a),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(r,o,a){var n=te[r]?d.resolve(te[r]):d.reject(new Error("Driver not found."));return D(n,o,a),n},e.prototype.getSerializer=function(r){var o=d.resolve(he);return D(o,r),o},e.prototype.ready=function(r){var o=this,a=o._driverSet.then(function(){return o._ready===null&&(o._ready=o._initDriver()),o._ready});return D(a,r,r),a},e.prototype.setDriver=function(r,o,a){var n=this;Ue(r)||(r=[r]);var i=this._getSupportedDrivers(r);function u(){n._config.driver=n.driver()}function f(v){return n._extend(v),u(),n._ready=n._initStorage(n._config),n._ready}function s(v){return function(){var y=0;function S(){for(;y<v.length;){var w=v[y];return y++,n._dbInfo=null,n._ready=null,n.getDriver(w).then(f).catch(S)}u();var z=new Error("No available storage method found.");return n._driverSet=d.reject(z),n._driverSet}return S()}}var c=this._driverSet!==null?this._driverSet.catch(function(){return d.resolve()}):d.resolve();return this._driverSet=c.then(function(){var v=i[0];return n._dbInfo=null,n._ready=null,n.getDriver(v).then(function(y){n._driver=y._driver,u(),n._wrapLibraryMethodsWithReady(),n._initDriver=s(i)})}).catch(function(){u();var v=new Error("No available storage method found.");return n._driverSet=d.reject(v),n._driverSet}),D(this._driverSet,o,a),this._driverSet},e.prototype.supports=function(r){return!!We[r]},e.prototype._extend=function(r){ge(this,r)},e.prototype._getSupportedDrivers=function(r){for(var o=[],a=0,n=r.length;a<n;a++){var i=r[a];this.supports(i)&&o.push(i)}return o},e.prototype._wrapLibraryMethodsWithReady=function(){for(var r=0,o=me.length;r<o;r++)Ur(this,me[r])},e.prototype.createInstance=function(r){return new e(r)},e}(),$r=new Wr;A.exports=$r},{3:3}]},{},[4])(4)}
6)}(be)),be.exports}var ot=nt();const mt=Vr(ot),at=({errorText:x,id:j="",noErrorMessage:N=!1,errorElement:A,hideIcon:M=!1})=>P.jsx(P.Fragment,{children:N?null:P.jsxs(je,{className:"error-stack",direction:"row",spacing:1,alignItems:"top",sx:{minHeight:"18px",pb:"8px"},children:[x&&!M?P.jsxs("div",{style:{paddingTop:4},children:[" ",P.jsx(Kr,{color:E.error.errorBase,size:12})]}):null,P.jsxs(_e,{component:"span",variant:"labelXsEmphasis",color:"error",sx:{textTransform:"none"},id:j,"data-testid":j,children:[x||"",A]})]})}),it=x=>{const{id:j,disabled:N,label:A,readOnly:M,...I}=x;return P.jsx(_e,{variant:"subtitleBase",id:`${j}-label`,color:N&&!M?E.neutral.primaryLight:E.elementNeutralOnLight.elementNeutralOnLightActive,...I,children:A})},ut=x=>{const{className:j="",fullWidth:N=!0,noErrorMessage:A=!1,tooltip:M,id:I,label:T,disabled:p,readOnly:C,errorElement:R,labelComponents:U,FieldLabelProps:d,ErrorTextProps:h}=x;return P.jsxs(Qr,{className:j,style:{width:N?"100%":"auto"},id:`${x.id}__form-control`,children:[P.jsxs(je,{direction:"row",alignItems:"center",children:[x.required&&T?P.jsx(Gr,{marginRight:"1px",className:"required",children:"*"}):null,P.jsx(it,{id:I,label:T,disabled:p,readOnly:C,...d}),!!M&&P.jsx(tt,{...M}),U]}),P.jsx(_e,{variant:"subtitleS",id:`${x.id}-helper-text`,color:p?E.elementNeutralOnLight.elementNeutralPrimaryOnLight:E.elementNeutral.neutralSecondaryOnLight,children:x.descriptionText}),x.children,P.jsx(at,{errorText:x.errorText,id:x.errorId,noErrorMessage:A,errorElement:R,...h})]})},ft=He(Xr,{shouldForwardProp:x=>x!=="readOnly"})(({readOnly:x})=>({backgroundColor:E.neutral.scale000,"& legend":{display:"none"},"& fieldset":{top:0,borderColor:E.neutral.scale400},"&.Mui-error":{backgroundColor:E.neutral.scale000},"&.Mui-disabled":{background:"none"},"&.MuiOutlinedInput-root.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:E.error.errorBorder},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:E.neutralOnLight.neutralBorder},"&.MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:E.neutral.scale300,"&:hover":{borderColor:E.neutral.scale300}},"& .MuiSelect-select":{fontFamily:E.typography.labelBaseRegular.fontFamily,fontSize:E.typography.labelBaseRegular.fontSize,lineHeight:E.typography.labelBaseRegular.lineHeight,letterSpacing:E.typography.labelBaseRegular.letterSpacing,"&.MuiSelect-outlined":{padding:"7.5px 14px"},"&.MuiSelect-standard":{padding:"8px 8px 8px 12px",border:"none",borderBottom:`1px solid ${E.neutral.scale300}`,borderRadius:"0px"},"&.Mui-disabled":{backgroundColor:x?E.neutral.scale000:E.neutralOpacity.neutral03,textFillColor:x?E.neutral.primaryLight:E.elementNeutralOnLight.elementNeutralOnLightDisabled}},"& .MuiSelect-icon":{right:15}})),st=ft,ct=He(kr)({"&.MuiMenuItem-root":{fontFamily:E.typography.labelBaseRegular.fontFamily,fontSize:E.typography.labelBaseRegular.fontSize,lineHeight:E.typography.labelBaseRegular.lineHeight,letterSpacing:E.typography.labelBaseRegular.letterSpacing}}),Ve=Zr.memo(({isLoading:x,readOnly:j,disabled:N,...A})=>x?P.jsx("div",{...A,children:P.jsx(qr,{size:16})}):P.jsx(et,{style:{color:j||N?E.elementNeutralOnLight.elementNeutralOnLightDisabled:E.neutral.scale700},icon:rt,...A}));Ve.displayName="SelectIcon";const lt=({isLoading:x,readOnly:j,disabled:N})=>Jr.useMemo(()=>{const M=I=>P.jsx(Ve,{isLoading:x,readOnly:j,disabled:N,...I});return M.displayName="IconWrapper",M},[x,j,N]),gt=({customClasses:x,errorId:j="",errorText:N,menuId:A="",menuMaxHeight:M,noErrorMessage:I=!1,options:T,width:p=305,dataPrivate:C=!1,readOnly:R=!1,disabled:U,isMenuLeftAligned:d,isLoading:h,FieldWrapperProps:D,descriptionText:B,tooltip:H,label:O,required:K,...g})=>{var _,F,$;const{customLabelClass:ee="",customSelectClass:Q="",customListClass:l=""}=x||{customLabelClass:"",customSelectClass:"",customListClass:""},b=lt({isLoading:h,readOnly:R,disabled:U}),m=(W,Y)=>P.jsx(ct,{value:W.key,"data-private":C,role:"option",className:l,children:W.value},`${W.key}-${Y}`);return P.jsx(ut,{className:ee,descriptionText:B,disabled:U||h,errorId:j,errorText:N,id:g.id,label:O,required:K,noErrorMessage:I,tooltip:H,readOnly:R,fullWidth:g.fullWidth,...D,children:P.jsx(st,{...g,readOnly:R,disabled:R||U||h,"data-private":C,"aria-describedby":`${g.id}-helper-text`,className:Q,error:!!N,id:g.id,IconComponent:b,inputProps:{"aria-label":`${g.id}-label`},MenuProps:{...g.MenuProps,MenuListProps:{id:A,...(_=g==null?void 0:g.MenuProps)==null?void 0:_.MenuListProps},sx:{maxHeight:M,...(F=g==null?void 0:g.MenuProps)==null?void 0:F.s
6x},anchorOrigin:{vertical:"bottom",horizontal:d?"left":"center"},transformOrigin:{vertical:"top",horizontal:d?"left":"center"},PaperProps:(($=g==null?void 0:g.MenuProps)==null?void 0:$.PaperProps)||{}},sx:{width:g.fullWidth?"100%":p,"& .MuiSelect-select .notranslate::after":g.placeholder?{content:`"${g.placeholder}"`,color:U||h?E.elementNeutral.neutralSecondaryOnLight:E.elementNeutralOnLight.elementNeutralOnLightDisabled}:{}},variant:R?"standard":"outlined",children:T==null?void 0:T.map((W,Y)=>m(W,Y))})})};export{at as E,ut as F,gt as S,it as a,st as b,ct as c,mt as l,lt as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.