f7cloud_client/apps/text/js/index-CRQM6PVi.chunk.mjs
2026-03-05 13:40:40 +00:00

6 lines
18 KiB
JavaScript

import{g as ie}from"./emoji-picker-MDCGxHB0.chunk.mjs";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).observe(document,{childList:!0,subtree:!0});function e(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=e(i);fetch(i.href,a)}})();const Ie="modulepreload",me=function(t,e){return new URL(t,e).href},W={},Ke=function(t,e,n){let i=Promise.resolve();if(e&&e.length>0){let u=function(o){return Promise.all(o.map(r=>Promise.resolve(r).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};const I=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),s=f?.nonce||f?.getAttribute("nonce");i=u(e.map(o=>{if(o=me(o,n),o in W)return;W[o]=!0;const r=o.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(n)for(let h=I.length-1;h>=0;h--){const v=I[h];if(v.href===o&&(!r||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const E=document.createElement("link");if(E.rel=r?"stylesheet":Ie,r||(E.as="script"),E.crossOrigin="",E.href=o,s&&E.setAttribute("nonce",s),document.head.appendChild(E),r)return new Promise((h,v)=>{E.addEventListener("load",h),E.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${o}`)))})}))}function a(u){const I=new Event("vite:preloadError",{cancelable:!0});if(I.payload=u,window.dispatchEvent(I),!I.defaultPrevented)throw u}return i.then(u=>{for(const I of u||[])I.status==="rejected"&&a(I.reason);return t().catch(a)})};function Le(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var oe={exports:{}},p=oe.exports={},m,L;function k(){throw new Error("setTimeout has not been defined")}function B(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?m=setTimeout:m=k}catch{m=k}try{typeof clearTimeout=="function"?L=clearTimeout:L=B}catch{L=B}})();function ae(t){if(m===setTimeout)return setTimeout(t,0);if((m===k||!m)&&setTimeout)return m=setTimeout,setTimeout(t,0);try{return m(t,0)}catch{try{return m.call(null,t,0)}catch{return m.call(this,t,0)}}}function Re(t){if(L===clearTimeout)return clearTimeout(t);if((L===B||!L)&&clearTimeout)return L=clearTimeout,clearTimeout(t);try{return L(t)}catch{try{return L.call(null,t)}catch{return L.call(this,t)}}}var O=[],$=!1,g,_=-1;function Ne(){!$||!g||($=!1,g.length?O=g.concat(O):_=-1,O.length&&ce())}function ce(){if(!$){var t=ae(Ne);$=!0;for(var e=O.length;e;){for(g=O,O=[];++_<e;)g&&g[_].run();_=-1,e=O.length}g=null,$=!1,Re(t)}}p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];O.push(new le(t,e)),O.length===1&&!$&&ae(ce)};function le(t,e){this.fun=t,this.array=e}le.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={};function N(){}p.on=N,p.addListener=N,p.once=N,p.off=N,p.removeListener=N,p.removeAllListeners=N,p.emit=N,p.prependListener=N,p.prependOnceListener=N,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0};var Oe=oe.exports;const ge=Le(Oe);var D,z;function Ee(){if(z)return D;z=1;var t={};return D=typeof ge=="object"&&t&&t.NODE_DEBUG&&/\bsemver\b/i.test(t.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},D}var C,K;function ue(){if(K)return C;K=1;const t="2.0.0",e=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,a=e-6;return C={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:a,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},C}var F={exports:{}},q;function ve(){return q||(q=1,function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:a}=ue(),u=Ee();e=t.exports={};const I=e.re=[],f=e.safeRe=[],s=e.src=[],o=e.safeSrc=[],r=e.t={};let l=0;const E="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",a],[E,i]],v=w=>{for(const[R,b]of h)w=w.split(`${R}*`).join(`${R}{0,${b}}`).split(`${R}+`).join(`${R}{1,${b}}`);return w},c=(w,R,b)=>{const H=v(R),A=l++;u(w,A,R),r[w]=A,s[A]=R,o[A]=H,I[A]=new RegExp(R,b?"g":void 0),f[A]=new RegExp(H,b?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","\\d+"),c("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${E}*`),c("MAINVERSION",`(${s[r.NUMERICIDENTIFIER]})\\.(${s[r.NUMERICIDENTIFIER]})\\.(${s[r.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${s[r.NUMERICIDENTIFIERLOOSE]})\\.(${s[r.NUMERICIDENTIFIERLOOSE]})\\.(${s[r.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${s[r.NONNUMERICIDENTIFIER]}|${s[r.NUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${s[r.NONNUMERICIDENTIFIER]}|${s[r.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASE",`(?:-(${s[r.PRERELEASEIDENTIFIER]}(?:\\.${s[r.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${s[r.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[r.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER",`${E}+`),c("BUILD",`(?:\\+(${s[r.BUILDIDENTIFIER]}(?:\\.${s[r.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${s[r.MAINVERSION]}${s[r.PRERELEASE]}?${s[r.BUILD]}?`),c("FULL",`^${s[r.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${s[r.MAINVERSIONLOOSE]}${s[r.PRERELEASELOOSE]}?${s[r.BUILD]}?`),c("LOOSE",`^${s[r.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${s[r.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${s[r.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${s[r.XRANGEIDENTIFIER]})(?:\\.(${s[r.XRANGEIDENTIFIER]})(?:\\.(${s[r.XRANGEIDENTIFIER]})(?:${s[r.PRERELEASE]})?${s[r.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${s[r.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[r.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[r.XRANGEIDENTIFIERLOOSE]})(?:${s[r.PRERELEASELOOSE]})?${s[r.BUILD]}?)?)?`),c("XRANGE",`^${s[r.GTLT]}\\s*${s[r.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${s[r.GTLT]}\\s*${s[r.XRANGEPLAINLOOSE]}$`),c("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),c("COERCE",`${s[r.COERCEPLAIN]}(?:$|[^\\d])`),c("COERCEFULL",s[r.COERCEPLAIN]+`(?:${s[r.PRERELEASE]})?(?:${s[r.BUILD]})?(?:$|[^\\d])`),c("COERCERTL",s[r.COERCE],!0),c("COERCERTLFULL",s[r.COERCEFULL],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${s[r.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",c("TILDE",`^${s[r.LONETILDE]}${s[r.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${s[r.LONETILDE]}${s[r.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${s[r.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",c("CARET",`^${s[r.LONECARET]}${s[r.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${s[r.LONECARET]}${s[r.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${s[r.GTLT]}\\s*(${s[r.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${s[r.GTLT]}\\s*(${s[r.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${s[r.GTLT]}\\s*(${s[r.LOOSEPLAIN]}|${s[r.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${s[r.XRANGEPLAIN]})\\s+-\\s+(${s[r.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${s[r.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[r.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(F,F.exports)),F.exports}var G,Y;function we(){if(Y)return G;Y=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return G=n=>n?typeof n!="object"?t:n:e,G}var M,Z;function Ae(){if(Z)return M;Z=1;const t=/^[0-9]+$/,e=(n,i)=>{if(typeof n=="number"&&typeof i=="number")return n===i?0:n<i?-1:1;const a=t.test(n),u=t.test(i);return a&&u&&(n=+n,i=+i),n===i?0:a&&!u?-1:u&&!a?1:n<i?-1:1};return M={compareIdentifiers:e,rcompareIdentifiers:(n,i)=>e(i,n)},M}var U,J;function he(){if(J)return U;J=1;const t=Ee(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:n}=ue(),{safeRe:i,t:a}=ve(),u=we(),{compareIdentifiers:I}=Ae();class f{constructor(o,r){if(r=u(r),o instanceof f){if(o.loose===!!r.loose&&o.includePrerelease===!!r.includePrerelease)return o;o=o.version}else if(typeof o!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof o}".`);if(o.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",o,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const l=o.trim().match(r.loose?i[a.LOOSE]:i[a.FULL]);if(!l)throw new TypeError(`Invalid Version: ${o}`);if(this.raw=o,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map(E=>{if(/^[0-9]+$/.test(E)){const h=+E;if(h>=0&&h<n)return h}return E}):this.prerelease=[],this.build=l[5]?l[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(o){if(t("SemVer.compare",this.version,this.options,o),!(o instanceof f)){if(typeof o=="string"&&o===this.version)return 0;o=new f(o,this.options)}return o.version===this.version?0:this.compareMain(o)||this.comparePre(o)}compareMain(o){return o instanceof f||(o=new f(o,this.options)),this.major<o.major?-1:this.major>o.major?1:this.minor<o.minor?-1:this.minor>o.minor?1:this.patch<o.patch?-1:this.patch>o.patch?1:0}comparePre(o){if(o instanceof f||(o=new f(o,this.options)),this.prerelease.length&&!o.prerelease.length)return-1;if(!this.prerelease.length&&o.prerelease.length)return 1;if(!this.prerelease.length&&!o.prerelease.length)return 0;let r=0;do{const l=this.prerelease[r],E=o.prerelease[r];if(t("prerelease compare",r,l,E),l===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(l===void 0)return-1;if(l!==E)return I(l,E)}while(++r)}compareBuild(o){o instanceof f||(o=new f(o,this.options));let r=0;do{const l=this.build[r],E=o.build[r];if(t("build compare",r,l,E),l===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(l===void 0)return-1;if(l!==E)return I(l,E)}while(++r)}inc(o,r,l){if(o.startsWith("pre")){if(!r&&l===!1)throw new Error("invalid increment argument: identifier is empty");if(r){const E=`-${r}`.match(this.options.loose?i[a.PRERELEASELOOSE]:i[a.PRERELEASE]);if(!E||E[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(o){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,l);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,l);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,l),this.inc("pre",r,l);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,l),this.inc("pre",r,l);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const E=Number(l)?1:0;if(this.prerelease.length===0)this.prerelease=[E];else{let h=this.prerelease.length;for(;--h>=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(r===this.prerelease.join(".")&&l===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(E)}}if(r){let h=[r,E];l===!1&&(h=[r]),I(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=h):this.prerelease=h}break}default:throw new Error(`invalid increment argument: ${o}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return U=f,U}var j,Q;function Te(){if(Q)return j;Q=1;const t=he();return j=(e,n)=>new t(e,n).major,j}var $e=Te();const ee=ie($e);var x,te;function be(){if(te)return x;te=1;const t=he();return x=(e,n,i=!1)=>{if(e instanceof t)return e;try{return new t(e,n)}catch(a){if(!i)return null;throw a}},x}var X,re;function Se(){if(re)return X;re=1;const t=be();return X=(e,n)=>{const i=t(e,n);return i?i.version:null},X}var ye=Se();const Pe=ie(ye);class _e{bus;constructor(e){typeof e.getVersion!="function"||!Pe(e.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):ee(e.getVersion())!==ee(this.getVersion())&&console.warn("Proxying an event bus of version "+e.getVersion()+" with "+this.getVersion()),this.bus=e}getVersion(){return"3.3.3"}subscribe(e,n){this.bus.subscribe(e,n)}unsubscribe(e,n){this.bus.unsubscribe(e,n)}emit(e,...n){this.bus.emit(e,...n)}}class De{handlers=new Map;getVersion(){return"3.3.3"}subscribe(e,n){this.handlers.set(e,(this.handlers.get(e)||[]).concat(n))}unsubscribe(e,n){this.handlers.set(e,(this.handlers.get(e)||[]).filter(i=>i!==n))}emit(e,...n){(this.handlers.get(e)||[]).forEach(i=>{try{i(n[0])}catch(a){console.error("could not invoke event listener",a)}})}}let S=null;function V(){return S!==null?S:typeof window>"u"?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&typeof window._nc_event_bus>"u"&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window?._nc_event_bus<"u"?S=new _e(window._nc_event_bus):S=window._nc_event_bus=new De,S)}function Ce(t,e){V().subscribe(t,e)}function qe(t,e){V().unsubscribe(t,e)}function Ye(t,...e){V().emit(t,...e)}class P{static GLOBAL_SCOPE_VOLATILE="nextcloud_vol";static GLOBAL_SCOPE_PERSISTENT="nextcloud_per";scope;wrapped;constructor(e,n,i){this.scope=`${i?P.GLOBAL_SCOPE_PERSISTENT:P.GLOBAL_SCOPE_VOLATILE}_${btoa(e)}_`,this.wrapped=n}scopeKey(e){return`${this.scope}${e}`}setItem(e,n){this.wrapped.setItem(this.scopeKey(e),n)}getItem(e){return this.wrapped.getItem(this.scopeKey(e))}removeItem(e){this.wrapped.removeItem(this.scopeKey(e))}clear(){Object.keys(this.wrapped).filter(e=>e.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}class Fe{appId;persisted=!1;clearedOnLogout=!1;constructor(e){this.appId=e}persist(e=!0){return this.persisted=e,this}clearOnLogout(e=!0){return this.clearedOnLogout=e,this}build(){return new P(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}function pe(t){return new Fe(t)}function de(t,e){Object.keys(t).filter(n=>e?e(n):!0).map(t.removeItem.bind(t))}function Ge(){[window.sessionStorage,window.localStorage].map(t=>de(t))}function Me(){[window.sessionStorage,window.localStorage].map(t=>de(t,e=>!e.startsWith(P.GLOBAL_SCOPE_PERSISTENT)))}const Ze=Object.freeze(Object.defineProperty({__proto__:null,clearAll:Ge,clearNonPersistent:Me,getBuilder:pe},Symbol.toStringTag,{value:"Module"}));let y;const fe=[];function Je(){return y===void 0&&(y=document.head.dataset.requesttoken??null),y}function Qe(t){fe.push(t)}Ce("csrf-token-update",t=>{y=t.token,fe.forEach(e=>{try{e(y)}catch(n){console.error("Error updating CSRF token observer",n)}})});pe("public").persist().build();let T;function ne(t,e){return t?t.getAttribute(e):null}function Ue(){if(T!==void 0)return T;const t=document?.getElementsByTagName("head")[0];if(!t)return null;const e=ne(t,"data-user");return e===null?(T=null,T):(T={uid:e,displayName:ne(t,"data-user-displayname"),isAdmin:!!window._oc_isadmin},T)}var d=(t=>(t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Fatal=4]="Fatal",t))(d||{}),je=Object.defineProperty,xe=(t,e,n)=>e in t?je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xe=(t,e,n)=>(xe(t,e+"",n),n);class ke{constructor(e){Xe(this,"context"),this.context=e||{}}formatMessage(e,n,i){let a="["+d[n].toUpperCase()+"] ";return i&&i.app&&(a+=i.app+": "),typeof e=="string"?a+e:(a+="Unexpected ".concat(e.name),e.message&&(a+=' "'.concat(e.message,'"')),n===d.Debug&&e.stack&&(a+=`
Stack trace:
`.concat(e.stack)),a)}log(e,n,i){var a,u;if(!(typeof((a=this.context)==null?void 0:a.level)=="number"&&e<((u=this.context)==null?void 0:u.level)))switch(typeof n=="object"&&i?.error===void 0&&(i.error=n),e){case d.Debug:console.debug(this.formatMessage(n,d.Debug,i),i);break;case d.Info:console.info(this.formatMessage(n,d.Info,i),i);break;case d.Warn:console.warn(this.formatMessage(n,d.Warn,i),i);break;case d.Error:console.error(this.formatMessage(n,d.Error,i),i);break;case d.Fatal:default:console.error(this.formatMessage(n,d.Fatal,i),i);break}}debug(e,n){this.log(d.Debug,e,Object.assign({},this.context,n))}info(e,n){this.log(d.Info,e,Object.assign({},this.context,n))}warn(e,n){this.log(d.Warn,e,Object.assign({},this.context,n))}error(e,n){this.log(d.Error,e,Object.assign({},this.context,n))}fatal(e,n){this.log(d.Fatal,e,Object.assign({},this.context,n))}}function Be(t){return new ke(t)}var Ve=Object.defineProperty,He=(t,e,n)=>e in t?Ve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,se=(t,e,n)=>(He(t,typeof e!="symbol"?e+"":e,n),n);class We{constructor(e){se(this,"context"),se(this,"factory"),this.context={},this.factory=e}setApp(e){return this.context.app=e,this}setLogLevel(e){return this.context.level=e,this}setUid(e){return this.context.uid=e,this}detectUser(){const e=Ue();return e!==null&&(this.context.uid=e.uid),this}detectLogLevel(){const e=this,n=()=>{var i,a;document.readyState==="complete"||document.readyState==="interactive"?(e.context.level=(a=(i=window._oc_config)==null?void 0:i.loglevel)!=null?a:d.Warn,window._oc_debug&&(e.context.level=d.Debug),document.removeEventListener("readystatechange",n)):document.addEventListener("readystatechange",n)};return n(),this}build(){return this.context.level===void 0&&this.detectLogLevel(),this.factory(this.context)}}function et(){return new We(Be)}export{Ke as _,Ue as a,Je as b,pe as c,Se as d,Ye as e,Ze as f,et as g,Qe as o,ge as p,Te as r,Ce as s,qe as u};
//# sourceMappingURL=index-CRQM6PVi.chunk.mjs.map