var vm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function li(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ul(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var uc={exports:{}},rt=uc.exports={},qt,Xt;function Po(){throw new Error("setTimeout has not been defined")}function Io(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?qt=setTimeout:qt=Po}catch{qt=Po}try{typeof clearTimeout=="function"?Xt=clearTimeout:Xt=Io}catch{Xt=Io}})();function lc(t){if(qt===setTimeout)return setTimeout(t,0);if((qt===Po||!qt)&&setTimeout)return qt=setTimeout,setTimeout(t,0);try{return qt(t,0)}catch{try{return qt.call(null,t,0)}catch{return qt.call(this,t,0)}}}function ll(t){if(Xt===clearTimeout)return clearTimeout(t);if((Xt===Io||!Xt)&&clearTimeout)return Xt=clearTimeout,clearTimeout(t);try{return Xt(t)}catch{try{return Xt.call(null,t)}catch{return Xt.call(this,t)}}}var oe=[],Ye=!1,xe,ar=-1;function fl(){!Ye||!xe||(Ye=!1,xe.length?oe=xe.concat(oe):ar=-1,oe.length&&fc())}function fc(){if(!Ye){var t=lc(fl);Ye=!0;for(var e=oe.length;e;){for(xe=oe,oe=[];++ar1)for(var n=1;n2){var f=s.lastIndexOf("/");if(f!==s.length-1){f===-1?(s="",a=0):(s=s.slice(0,f),a=s.length-1-s.lastIndexOf("/")),u=p,l=0;continue}}else if(s.length===2||s.length===1){s="",a=0,u=p,l=0;continue}}i&&(s.length>0?s+="/..":s="..",a=2)}else s.length>0?s+="/"+o.slice(u+1,p):s=o.slice(u+1,p),a=p-u-1;u=p,l=0}else c===46&&l!==-1?++l:l=-1}return s}function n(o,i){var s=i.dir||i.root,a=i.base||(i.name||"")+(i.ext||"");return s?s===i.root?s+a:s+o+a:a}var r={resolve:function(){for(var o="",i=!1,s,a=arguments.length-1;a>=-1&&!i;a--){var u;a>=0?u=arguments[a]:(s===void 0&&(s=Ke.cwd()),u=s),t(u),u.length!==0&&(o=u+"/"+o,i=u.charCodeAt(0)===47)}return o=e(o,!i),i?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(t(o),o.length===0)return".";var i=o.charCodeAt(0)===47,s=o.charCodeAt(o.length-1)===47;return o=e(o,!i),o.length===0&&!i&&(o="."),o.length>0&&s&&(o+="/"),i?"/"+o:o},isAbsolute:function(o){return t(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,i=0;i0&&(o===void 0?o=s:o+="/"+s)}return o===void 0?".":r.normalize(o)},relative:function(o,i){if(t(o),t(i),o===i||(o=r.resolve(o),i=r.resolve(i),o===i))return"";for(var s=1;sf){if(i.charCodeAt(l+d)===47)return i.slice(l+d+1);if(d===0)return i.slice(l+d)}else u>f&&(o.charCodeAt(s+d)===47?h=d:d===0&&(h=0));break}var g=o.charCodeAt(s+d),v=i.charCodeAt(l+d);if(g!==v)break;g===47&&(h=d)}var x="";for(d=s+h+1;d<=a;++d)(d===a||o.charCodeAt(d)===47)&&(x.length===0?x+="..":x+="/..");return x.length>0?x+i.slice(l+h):(l+=h,i.charCodeAt(l)===47&&++l,i.slice(l))},_makeLong:function(o){return o},dirname:function(o){if(t(o),o.length===0)return".";for(var i=o.charCodeAt(0),s=i===47,a=-1,u=!0,l=o.length-1;l>=1;--l)if(i=o.charCodeAt(l),i===47){if(!u){a=l;break}}else u=!1;return a===-1?s?"/":".":s&&a===1?"//":o.slice(0,a)},basename:function(o,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');t(o);var s=0,a=-1,u=!0,l;if(i!==void 0&&i.length>0&&i.length<=o.length){if(i.length===o.length&&i===o)return"";var c=i.length-1,p=-1;for(l=o.length-1;l>=0;--l){var f=o.charCodeAt(l);if(f===47){if(!u){s=l+1;break}}else p===-1&&(u=!1,p=l+1),c>=0&&(f===i.charCodeAt(c)?--c===-1&&(a=l):(c=-1,a=p))}return s===a?a=p:a===-1&&(a=o.length),o.slice(s,a)}else{for(l=o.length-1;l>=0;--l)if(o.charCodeAt(l)===47){if(!u){s=l+1;break}}else a===-1&&(u=!1,a=l+1);return a===-1?"":o.slice(s,a)}},extname:function(o){t(o);for(var i=-1,s=0,a=-1,u=!0,l=0,c=o.length-1;c>=0;--c){var p=o.charCodeAt(c);if(p===47){if(!u){s=c+1;break}continue}a===-1&&(u=!1,a=c+1),p===46?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}return i===-1||a===-1||l===0||l===1&&i===a-1&&i===s+1?"":o.slice(i,a)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return n("/",o)},parse:function(o){t(o);var i={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return i;var s=o.charCodeAt(0),a=s===47,u;a?(i.root="/",u=1):u=0;for(var l=-1,c=0,p=-1,f=!0,h=o.length-1,d=0;h>=u;--h){if(s=o.charCodeAt(h),s===47){if(!f){c=h+1;break}continue}p===-1&&(f=!1,p=h+1),s===46?l===-1?l=h:d!==1&&(d=1):l!==-1&&(d=-1)}return l===-1||p===-1||d===0||d===1&&l===p-1&&l===c+1?p!==-1&&(c===0&&a?i.base=i.name=o.slice(1,p):i.base=i.name=o.slice(c,p)):(c===0&&a?(i.name=o.slice(1,l),i.base=o.slice(1,p)):(i.name=o.slice(c,l),i.base=o.slice(c,p)),i.ext=o.slice(l,p)),c>0?i.dir=o.slice(0,c-1):a&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,Kr=r,Kr}var Oe=hl();function dl(t){return t&&t.split("/").map(encodeURIComponent).join("/")}function ym(t){return t.replace(/\\/g,"/").replace(/.*\//,"")}function bm(...t){if(arguments.length<1)return"";const e=t.filter(u=>u.length>0);if(e.length<1)return"";const n=e[e.length-1],r=e[0].charAt(0)==="/",o=n.charAt(n.length-1)==="/",i=e.reduce((u,l)=>u.concat(l.split("/")),[]);let s=!r;const a=i.reduce((u,l)=>l===""?u:s?(s=!1,u+l):u+"/"+l,"");return o?a+"/":a}var Zr,ms;function hc(){if(ms)return Zr;ms=1;var t={};return Zr=typeof Ke=="object"&&t&&t.NODE_DEBUG&&/\bsemver\b/i.test(t.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},Zr}var Jr,vs;function dc(){if(vs)return Jr;vs=1;const t="2.0.0",e=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=16,o=e-6;return Jr={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Jr}var Qr={exports:{}},ys;function gl(){return ys||(ys=1,function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=dc(),i=hc();e=t.exports={};const s=e.re=[],a=e.safeRe=[],u=e.src=[],l=e.safeSrc=[],c=e.t={};let p=0;const f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[f,r]],d=v=>{for(const[x,m]of h)v=v.split(`${x}*`).join(`${x}{0,${m}}`).split(`${x}+`).join(`${x}{1,${m}}`);return v},g=(v,x,m)=>{const b=d(x),E=p++;i(v,E,x),c[v]=E,u[E]=x,l[E]=b,s[E]=new RegExp(x,m?"g":void 0),a[E]=new RegExp(b,m?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),g("MAINVERSION",`(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${u[c.NUMERICIDENTIFIER]}|${u[c.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${u[c.NUMERICIDENTIFIERLOOSE]}|${u[c.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${u[c.PRERELEASEIDENTIFIER]}(?:\\.${u[c.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${u[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[c.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${f}+`),g("BUILD",`(?:\\+(${u[c.BUILDIDENTIFIER]}(?:\\.${u[c.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${u[c.MAINVERSION]}${u[c.PRERELEASE]}?${u[c.BUILD]}?`),g("FULL",`^${u[c.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${u[c.MAINVERSIONLOOSE]}${u[c.PRERELEASELOOSE]}?${u[c.BUILD]}?`),g("LOOSE",`^${u[c.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${u[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${u[c.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:${u[c.PRERELEASE]})?${u[c.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:${u[c.PRERELEASELOOSE]})?${u[c.BUILD]}?)?)?`),g("XRANGE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),g("COERCE",`${u[c.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",u[c.COERCEPLAIN]+`(?:${u[c.PRERELEASE]})?(?:${u[c.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",u[c.COERCE],!0),g("COERCERTLFULL",u[c.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${u[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",g("TILDE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${u[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",g("CARET",`^${u[c.LONECARET]}${u[c.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${u[c.LONECARET]}${u[c.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${u[c.GTLT]}\\s*(${u[c.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]}|${u[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${u[c.XRANGEPLAIN]})\\s+-\\s+(${u[c.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${u[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[c.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Qr,Qr.exports)),Qr.exports}var to,bs;function ml(){if(bs)return to;bs=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return to=n=>n?typeof n!="object"?t:n:e,to}var eo,_s;function vl(){if(_s)return eo;_s=1;const t=/^[0-9]+$/,e=(n,r)=>{const o=t.test(n),i=t.test(r);return o&&i&&(n=+n,r=+r),n===r?0:o&&!i?-1:i&&!o?1:ne(r,n)},eo}var no,ws;function gc(){if(ws)return no;ws=1;const t=hc(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:n}=dc(),{safeRe:r,safeSrc:o,t:i}=gl(),s=ml(),{compareIdentifiers:a}=vl();class u{constructor(c,p){if(p=s(p),c instanceof u){if(c.loose===!!p.loose&&c.includePrerelease===!!p.includePrerelease)return c;c=c.version}else if(typeof c!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",c,p),this.options=p,this.loose=!!p.loose,this.includePrerelease=!!p.includePrerelease;const f=c.trim().match(p.loose?r[i.LOOSE]:r[i.FULL]);if(!f)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+f[1],this.minor=+f[2],this.patch=+f[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");f[4]?this.prerelease=f[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const d=+h;if(d>=0&&d=0;)typeof this.prerelease[d]=="number"&&(this.prerelease[d]++,d=-2);if(d===-1){if(p===this.prerelease.join(".")&&f===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(p){let d=[p,h];f===!1&&(d=[p]),a(this.prerelease[0],p)===0?isNaN(this.prerelease[1])&&(this.prerelease=d):this.prerelease=d}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return no=u,no}var ro,Es;function yl(){if(Es)return ro;Es=1;const t=gc();return ro=(e,n,r=!1)=>{if(e instanceof t)return e;try{return new t(e,n)}catch(o){if(!r)return null;throw o}},ro}var oo,Os;function bl(){if(Os)return oo;Os=1;const t=yl();return oo=(e,n)=>{const r=t(e,n);return r?r.version:null},oo}var _l=bl();const wl=li(_l);var io,xs;function El(){if(xs)return io;xs=1;const t=gc();return io=(e,n)=>new t(e,n).major,io}var Ol=El();const Ts=li(Ol);class xl{bus;constructor(e){typeof e.getVersion!="function"||!wl(e.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):Ts(e.getVersion())!==Ts(this.getVersion())&&console.warn("Proxying an event bus of version "+e.getVersion()+" with "+this.getVersion()),this.bus=e}getVersion(){return"3.3.2"}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 Tl{handlers=new Map;getVersion(){return"3.3.2"}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(r=>r!==n))}emit(e,...n){(this.handlers.get(e)||[]).forEach(r=>{try{r(n[0])}catch(o){console.error("could not invoke event listener",o)}})}}let cn=null;function fi(){return cn!==null?cn: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"?cn=new xl(window._nc_event_bus):cn=window._nc_event_bus=new Tl,cn)}function Nl(t,e){fi().subscribe(t,e)}function _m(t,e){fi().unsubscribe(t,e)}function wm(t,...e){fi().emit(t,...e)}var Ue={},un={},ln={},Ns;function mc(){if(Ns)return ln;Ns=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.default=void 0;function t(o,i,s){return i=e(i),i in o?Object.defineProperty(o,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[i]=s,o}function e(o){var i=n(o,"string");return typeof i=="symbol"?i:i+""}function n(o,i){if(typeof o!="object"||!o)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var a=s.call(o,i);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}class r{constructor(i,s,a){t(this,"scope",void 0),t(this,"wrapped",void 0),this.scope="".concat(a?r.GLOBAL_SCOPE_PERSISTENT:r.GLOBAL_SCOPE_VOLATILE,"_").concat(btoa(i),"_"),this.wrapped=s}scopeKey(i){return"".concat(this.scope).concat(i)}setItem(i,s){this.wrapped.setItem(this.scopeKey(i),s)}getItem(i){return this.wrapped.getItem(this.scopeKey(i))}removeItem(i){this.wrapped.removeItem(this.scopeKey(i))}clear(){Object.keys(this.wrapped).filter(i=>i.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}return ln.default=r,t(r,"GLOBAL_SCOPE_VOLATILE","nextcloud_vol"),t(r,"GLOBAL_SCOPE_PERSISTENT","nextcloud_per"),ln}var As;function Al(){if(As)return un;As=1,Object.defineProperty(un,"__esModule",{value:!0}),un.default=void 0;var t=e(mc());function e(s){return s&&s.__esModule?s:{default:s}}function n(s,a,u){return a=r(a),a in s?Object.defineProperty(s,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[a]=u,s}function r(s){var a=o(s,"string");return typeof a=="symbol"?a:a+""}function o(s,a){if(typeof s!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var l=u.call(s,a);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(s)}class i{constructor(a){n(this,"appId",void 0),n(this,"persisted",!1),n(this,"clearedOnLogout",!1),this.appId=a}persist(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.persisted=a,this}clearOnLogout(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.clearedOnLogout=a,this}build(){return new t.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}return un.default=i,un}var Ss;function Sl(){if(Ss)return Ue;Ss=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.clearAll=i,Ue.clearNonPersistent=s,Ue.getBuilder=r;var t=n(Al()),e=n(mc());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){return new t.default(a)}function o(a,u){Object.keys(a).filter(l=>u?u(l):!0).map(a.removeItem.bind(a))}function i(){[window.sessionStorage,window.localStorage].map(a=>o(a))}function s(){[window.sessionStorage,window.localStorage].map(a=>o(a,u=>!u.startsWith(e.default.GLOBAL_SCOPE_PERSISTENT)))}return Ue}var Cl=Sl();let xn;const vc=[];function $l(){return xn===void 0&&(xn=document.head.dataset.requesttoken??null),xn}function Pl(t){vc.push(t)}Nl("csrf-token-update",t=>{xn=t.token,vc.forEach(e=>{try{e(xn)}catch(n){console.error("Error updating CSRF token observer",n)}})}),Cl.getBuilder("public").persist().build();let ze;const Cs=(t,e)=>t?t.getAttribute(e):null;function kr(){if(ze!==void 0)return ze;const t=document?.getElementsByTagName("head")[0];if(!t)return null;const e=Cs(t,"data-user");return e===null?(ze=null,ze):(ze={uid:e,displayName:Cs(t,"data-user-displayname"),isAdmin:!!window._oc_isadmin},ze)}var it=(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))(it||{}),Il=Object.defineProperty,Rl=(t,e,n)=>e in t?Il(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ll=(t,e,n)=>(Rl(t,e+"",n),n);class kl{constructor(e){Ll(this,"context"),this.context=e||{}}formatMessage(e,n,r){let o="["+it[n].toUpperCase()+"] ";return r&&r.app&&(o+=r.app+": "),typeof e=="string"?o+e:(o+="Unexpected ".concat(e.name),e.message&&(o+=' "'.concat(e.message,'"')),n===it.Debug&&e.stack&&(o+=` Stack trace: `.concat(e.stack)),o)}log(e,n,r){var o,i;if(!(typeof((o=this.context)==null?void 0:o.level)=="number"&&e<((i=this.context)==null?void 0:i.level)))switch(typeof n=="object"&&r?.error===void 0&&(r.error=n),e){case it.Debug:console.debug(this.formatMessage(n,it.Debug,r),r);break;case it.Info:console.info(this.formatMessage(n,it.Info,r),r);break;case it.Warn:console.warn(this.formatMessage(n,it.Warn,r),r);break;case it.Error:console.error(this.formatMessage(n,it.Error,r),r);break;case it.Fatal:default:console.error(this.formatMessage(n,it.Fatal,r),r);break}}debug(e,n){this.log(it.Debug,e,Object.assign({},this.context,n))}info(e,n){this.log(it.Info,e,Object.assign({},this.context,n))}warn(e,n){this.log(it.Warn,e,Object.assign({},this.context,n))}error(e,n){this.log(it.Error,e,Object.assign({},this.context,n))}fatal(e,n){this.log(it.Fatal,e,Object.assign({},this.context,n))}}function jl(t){return new kl(t)}var Dl=Object.defineProperty,Ml=(t,e,n)=>e in t?Dl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$s=(t,e,n)=>(Ml(t,typeof e!="symbol"?e+"":e,n),n);class Fl{constructor(e){$s(this,"context"),$s(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=kr();return e!==null&&(this.context.uid=e.uid),this}detectLogLevel(){const e=this,n=()=>{var r,o;document.readyState==="complete"||document.readyState==="interactive"?(e.context.level=(o=(r=window._oc_config)==null?void 0:r.loglevel)!=null?o:it.Warn,window._oc_debug&&(e.context.level=it.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 Ul(){return new Fl(jl)}const zl=t=>"/remote.php/"+t,Gl=(t,e)=>{var n;return((n=void 0)!=null?n:yc())+zl(t)},Em=(t,e,n)=>{var r;const o=Object.assign({ocsVersion:2},{}).ocsVersion===1?1:2;return((r=void 0)!=null?r:yc())+"/ocs/v"+o+".php"+Ro(t,e,n)},Ro=(t,e,n)=>{const r=Object.assign({escape:!0},n||{}),o=function(i,s){return s=s||{},i.replace(/{([^{}]*)}/g,function(a,u){const l=s[u];return r.escape?encodeURIComponent(typeof l=="string"||typeof l=="number"?l.toString():a):typeof l=="string"||typeof l=="number"?l.toString():a})};return t.charAt(0)!=="/"&&(t="/"+t),o(t,e||{})},Om=(t,e,n)=>{var r,o,i;const s=Object.assign({noRewrite:!1},n||{}),a=(r=n?.baseURL)!=null?r:pi();return((i=(o=window?.OC)==null?void 0:o.config)==null?void 0:i.modRewriteWorking)===!0&&!s.noRewrite?a+Ro(t,e,n):a+"/index.php"+Ro(t,e,n)},xm=(t,e)=>e.includes(".")?Ps(t,"img",e):Ps(t,"img","".concat(e,".svg")),Ps=(t,e,n)=>{var r,o,i;const s=(i=(o=(r=window?.OC)==null?void 0:r.coreApps)==null?void 0:o.includes(t))!=null?i:!1,a=n.slice(-3)==="php";let u=pi();return a&&!s?(u+="/index.php/apps/".concat(t),u+="/".concat(encodeURI(e)),n!=="index.php"&&(u+="/".concat(n))):!a&&!s?(u=Bl(t),u+="/".concat(e,"/"),u.at(-1)!=="/"&&(u+="/"),u+=n):(u+="/".concat(t),u+="/".concat(e),u+="/".concat(n)),u},yc=()=>window.location.protocol+"//"+window.location.host+pi();function pi(){let t=window._oc_webroot;if(typeof t>"u"){t=location.pathname;const e=t.indexOf("/index.php/");if(e!==-1)t=t.slice(0,e);else{const n=t.indexOf("/",1);t=t.slice(0,n>0?n:void 0)}}return t}function Bl(t){var e,n;return(n=((e=window._oc_appswebroots)!=null?e:{})[t])!=null?n:""}function le(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Is(t,e,n){Vl(t,e),e.set(t,n)}function Vl(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ht(t,e){var n=bc(t,e,"get");return Wl(t,n)}function Wl(t,e){return e.get?e.get.call(t):e.value}function Rs(t,e,n){var r=bc(t,e,"set");return Hl(t,r,n),n}function bc(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Hl(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}var ql=typeof Symbol<"u"?Symbol.toStringTag:"@@toStringTag",gt=new WeakMap,fn=new WeakMap;class jr{constructor(e){var{executor:n=()=>{},internals:r=di(),promise:o=new Promise((i,s)=>n(i,s,a=>{r.onCancelList.push(a)}))}=e;Is(this,gt,{writable:!0,value:void 0}),Is(this,fn,{writable:!0,value:void 0}),le(this,ql,"CancelablePromise"),this.cancel=this.cancel.bind(this),Rs(this,gt,r),Rs(this,fn,o||new Promise((i,s)=>n(i,s,a=>{r.onCancelList.push(a)})))}then(e,n){return cr(ht(this,fn).then(Xn(e,ht(this,gt)),Xn(n,ht(this,gt))),ht(this,gt))}catch(e){return cr(ht(this,fn).catch(Xn(e,ht(this,gt))),ht(this,gt))}finally(e,n){return n&&ht(this,gt).onCancelList.push(e),cr(ht(this,fn).finally(Xn(()=>{if(e)return n&&(ht(this,gt).onCancelList=ht(this,gt).onCancelList.filter(r=>r!==e)),e()},ht(this,gt))),ht(this,gt))}cancel(){ht(this,gt).isCanceled=!0;var e=ht(this,gt).onCancelList;ht(this,gt).onCancelList=[];for(var n of e)if(typeof n=="function")try{n()}catch(r){console.error(r)}}isCanceled(){return ht(this,gt).isCanceled===!0}}class ne extends jr{constructor(e){super({executor:e})}}le(ne,"all",function(t){return Yn(t,Promise.all(t))}),le(ne,"allSettled",function(t){return Yn(t,Promise.allSettled(t))}),le(ne,"any",function(t){return Yn(t,Promise.any(t))}),le(ne,"race",function(t){return Yn(t,Promise.race(t))}),le(ne,"resolve",function(t){return Ls(Promise.resolve(t))}),le(ne,"reject",function(t){return Ls(Promise.reject(t))}),le(ne,"isCancelable",hi);function Ls(t){return cr(t,di())}function hi(t){return t instanceof ne||t instanceof jr}function Xn(t,e){if(t)return n=>{if(!e.isCanceled){var r=t(n);return hi(r)&&e.onCancelList.push(r.cancel),r}return n}}function cr(t,e){return new jr({internals:e,promise:t})}function Yn(t,e){var n=di();return n.onCancelList.push(()=>{for(var r of t)hi(r)&&r.cancel()}),new jr({internals:n,promise:e})}function di(){return{isCanceled:!1,onCancelList:[]}}const Be=globalThis||void 0||self;var so={},Xl={2:t=>{function e(o,i,s){o instanceof RegExp&&(o=n(o,s)),i instanceof RegExp&&(i=n(i,s));var a=r(o,i,s);return a&&{start:a[0],end:a[1],pre:s.slice(0,a[0]),body:s.slice(a[0]+o.length,a[1]),post:s.slice(a[1]+i.length)}}function n(o,i){var s=i.match(o);return s?s[0]:null}function r(o,i,s){var a,u,l,c,p,f=s.indexOf(o),h=s.indexOf(i,f+1),d=f;if(f>=0&&h>0){for(a=[],l=s.length;d>=0&&!p;)d==f?(a.push(d),f=s.indexOf(o,d+1)):a.length==1?p=[a.pop(),h]:((u=a.pop())=0?f:h;a.length&&(p=[l,c])}return p}t.exports=e,e.range=r},101:function(t,e,n){var r;t=n.nmd(t),function(o){var i=(t&&t.exports,typeof Be=="object"&&Be);i.global!==i&&i.window;var s=function(p){this.message=p};(s.prototype=new Error).name="InvalidCharacterError";var a=function(p){throw new s(p)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,c={encode:function(p){p=String(p),/[^\0-\xFF]/.test(p)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var f,h,d,g,v=p.length%3,x="",m=-1,b=p.length-v;++m>18&63)+u.charAt(g>>12&63)+u.charAt(g>>6&63)+u.charAt(63&g);return v==2?(f=p.charCodeAt(m)<<8,h=p.charCodeAt(++m),x+=u.charAt((g=f+h)>>10)+u.charAt(g>>4&63)+u.charAt(g<<2&63)+"="):v==1&&(g=p.charCodeAt(m),x+=u.charAt(g>>2)+u.charAt(g<<4&63)+"=="),x},decode:function(p){var f=(p=String(p).replace(l,"")).length;f%4==0&&(f=(p=p.replace(/==?$/,"")).length),(f%4==1||/[^+a-zA-Z0-9/]/.test(p))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var h,d,g=0,v="",x=-1;++x>(-2*g&6)));return v},version:"1.0.0"};(r=function(){return c}.call(e,n,e,t))===void 0||(t.exports=r)}()},172:(t,e)=>{e.d=function(n){if(!n)return 0;for(var r=(n=n.toString()).length,o=n.length;o--;){var i=n.charCodeAt(o);56320<=i&&i<=57343&&o--,127{var e={utf8:{stringToBytes:function(n){return e.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(e.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var r=[],o=0;o{var e,n;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(r,o){return r<>>32-o},rotr:function(r,o){return r<<32-o|r>>>o},endian:function(r){if(r.constructor==Number)return 16711935&n.rotl(r,8)|4278255360&n.rotl(r,24);for(var o=0;o0;r--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(r){for(var o=[],i=0,s=0;i>>5]|=r[i]<<24-s%32;return o},wordsToBytes:function(r){for(var o=[],i=0;i<32*r.length;i+=8)o.push(r[i>>>5]>>>24-i%32&255);return o},bytesToHex:function(r){for(var o=[],i=0;i>>4).toString(16)),o.push((15&r[i]).toString(16));return o.join("")},hexToBytes:function(r){for(var o=[],i=0;i>>6*(3-a)&63)):o.push("=");return o.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],i=0,s=0;i>>6-2*s);return o}},t.exports=n},635:(t,e,n)=>{const r=n(31),o=n(338),i=n(221);t.exports={XMLParser:o,XMLValidator:r,XMLBuilder:i}},118:t=>{t.exports=function(e){return typeof e=="function"?e:Array.isArray(e)?n=>{for(const r of e)if(typeof r=="string"&&n===r||r instanceof RegExp&&r.test(n))return!0}:()=>!1}},705:(t,e)=>{const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+r+"$");e.isExist=function(i){return i!==void 0},e.isEmptyObject=function(i){return Object.keys(i).length===0},e.merge=function(i,s,a){if(s){const u=Object.keys(s),l=u.length;for(let c=0;c{const r=n(705),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(m){return m===" "||m===" "||m===` `||m==="\r"}function s(m,b){const E=b;for(;b5&&N==="xml")return d("InvalidXml","XML declaration allowed only at the start of the document.",v(m,b));if(m[b]=="?"&&m[b+1]==">"){b++;break}}return b}function a(m,b){if(m.length>b+5&&m[b+1]==="-"&&m[b+2]==="-"){for(b+=3;b"){b+=2;break}}else if(m.length>b+8&&m[b+1]==="D"&&m[b+2]==="O"&&m[b+3]==="C"&&m[b+4]==="T"&&m[b+5]==="Y"&&m[b+6]==="P"&&m[b+7]==="E"){let E=1;for(b+=8;b"&&(E--,E===0))break}else if(m.length>b+9&&m[b+1]==="["&&m[b+2]==="C"&&m[b+3]==="D"&&m[b+4]==="A"&&m[b+5]==="T"&&m[b+6]==="A"&&m[b+7]==="["){for(b+=8;b"){b+=2;break}}return b}e.validate=function(m,b){b=Object.assign({},o,b);const E=[];let N=!1,O=!1;m[0]==="\uFEFF"&&(m=m.substr(1));for(let T=0;T"&&m[T]!==" "&&m[T]!==" "&&m[T]!==` `&&m[T]!=="\r";T++)I+=m[T];if(I=I.trim(),I[I.length-1]==="/"&&(I=I.substring(0,I.length-1),T--),C=I,!r.isName(C)){let A;return A=I.trim().length===0?"Invalid space after '<'.":"Tag '"+I+"' is an invalid name.",d("InvalidTag",A,v(m,T))}const _=c(m,T);if(_===!1)return d("InvalidAttr","Attributes for '"+I+"' have open quote.",v(m,T));let y=_.value;if(T=_.index,y[y.length-1]==="/"){const A=T-y.length;y=y.substring(0,y.length-1);const $=f(y,b);if($!==!0)return d($.err.code,$.err.msg,v(m,A+$.err.line));N=!0}else if(R){if(!_.tagClosed)return d("InvalidTag","Closing tag '"+I+"' doesn't have proper closing.",v(m,T));if(y.trim().length>0)return d("InvalidTag","Closing tag '"+I+"' can't have attributes or invalid starting.",v(m,P));if(E.length===0)return d("InvalidTag","Closing tag '"+I+"' has not been opened.",v(m,P));{const A=E.pop();if(I!==A.tagName){let $=v(m,A.tagStartPos);return d("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+$.line+", col "+$.col+") instead of closing tag '"+I+"'.",v(m,P))}E.length==0&&(O=!0)}}else{const A=f(y,b);if(A!==!0)return d(A.err.code,A.err.msg,v(m,T-y.length+A.err.line));if(O===!0)return d("InvalidXml","Multiple possible root nodes found.",v(m,T));b.unpairedTags.indexOf(I)!==-1||E.push({tagName:I,tagStartPos:P}),N=!0}for(T++;T0)||d("InvalidXml","Invalid '"+JSON.stringify(E.map(T=>T.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):d("InvalidXml","Start tag expected.",1)};const u='"',l="'";function c(m,b){let E="",N="",O=!1;for(;b"&&N===""){O=!0;break}E+=m[b]}return N===""&&{value:E,index:b,tagClosed:O}}const p=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function f(m,b){const E=r.getAllMatches(m,p),N={};for(let O=0;O{const r=n(87),o=n(118),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(c,p){return p},attributeValueProcessor:function(c,p){return p},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function s(c){this.options=Object.assign({},i,c),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=o(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=a,this.options.format?(this.indentate=u,this.tagEndChar=`> `,this.newLine=` `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function a(c,p,f,h){const d=this.j2x(c,f+1,h.concat(p));return c[this.options.textNodeName]!==void 0&&Object.keys(c).length===1?this.buildTextValNode(c[this.options.textNodeName],p,d.attrStr,f):this.buildObjectNode(d.val,p,d.attrStr,f)}function u(c){return this.options.indentBy.repeat(c)}function l(c){return!(!c.startsWith(this.options.attributeNamePrefix)||c===this.options.textNodeName)&&c.substr(this.attrPrefixLen)}s.prototype.build=function(c){return this.options.preserveOrder?r(c,this.options):(Array.isArray(c)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(c={[this.options.arrayNodeName]:c}),this.j2x(c,0,[]).val)},s.prototype.j2x=function(c,p,f){let h="",d="";const g=f.join(".");for(let v in c)if(Object.prototype.hasOwnProperty.call(c,v))if(c[v]===void 0)this.isAttribute(v)&&(d+="");else if(c[v]===null)this.isAttribute(v)?d+="":v[0]==="?"?d+=this.indentate(p)+"<"+v+"?"+this.tagEndChar:d+=this.indentate(p)+"<"+v+"/"+this.tagEndChar;else if(c[v]instanceof Date)d+=this.buildTextValNode(c[v],v,"",p);else if(typeof c[v]!="object"){const x=this.isAttribute(v);if(x&&!this.ignoreAttributesFn(x,g))h+=this.buildAttrPairStr(x,""+c[v]);else if(!x)if(v===this.options.textNodeName){let m=this.options.tagValueProcessor(v,""+c[v]);d+=this.replaceEntitiesValue(m)}else d+=this.buildTextValNode(c[v],v,"",p)}else if(Array.isArray(c[v])){const x=c[v].length;let m="",b="";for(let E=0;E`+this.newLine:this.indentate(h)+"<"+p+f+g+this.tagEndChar+c+this.indentate(h)+d:this.indentate(h)+"<"+p+f+g+">"+c+d}},s.prototype.closeTag=function(c){let p="";return this.options.unpairedTags.indexOf(c)!==-1?this.options.suppressUnpairedNode||(p="/"):p=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(this.options.commentPropName!==!1&&p===this.options.commentPropName)return this.indentate(h)+``+this.newLine;if(p[0]==="?")return this.indentate(h)+"<"+p+f+"?"+this.tagEndChar;{let d=this.options.tagValueProcessor(p,c);return d=this.replaceEntitiesValue(d),d===""?this.indentate(h)+"<"+p+f+this.closeTag(p)+this.tagEndChar:this.indentate(h)+"<"+p+f+">"+d+"0&&this.options.processEntities)for(let p=0;p{function e(s,a,u,l){let c="",p=!1;for(let f=0;f`,p=!1;continue}if(d===a.commentPropName){c+=l+``,p=!0;continue}if(d[0]==="?"){const b=r(h[":@"],a),E=d==="?xml"?"":l;let N=h[d][0][a.textNodeName];N=N.length!==0?" "+N:"",c+=E+`<${d}${N}${b}?>`,p=!0;continue}let v=l;v!==""&&(v+=a.indentBy);const x=l+`<${d}${r(h[":@"],a)}`,m=e(h[d],a,g,v);a.unpairedTags.indexOf(d)!==-1?a.suppressUnpairedNode?c+=x+">":c+=x+"/>":m&&m.length!==0||!a.suppressEmptyNode?m&&m.endsWith(">")?c+=x+`>${m}${l}`:(c+=x+">",m&&l!==""&&(m.includes("/>")||m.includes("`):c+=x+"/>",p=!0}return c}function n(s){const a=Object.keys(s);for(let u=0;u0&&a.processEntities)for(let u=0;u0&&(u=` `),e(s,a,"",u)}},193:(t,e,n)=>{const r=n(705);function o(p,f){let h="";for(;f"){if(v?p[f-1]==="-"&&p[f-2]==="-"&&(v=!1,d--):d--,d===0)break}else p[f]==="["?g=!0:x+=p[f];else{if(g&&s(p,f)){let m,b;f+=7,[m,b,f]=o(p,f+1),b.indexOf("&")===-1&&(h[c(m)]={regx:RegExp(`&${m};`,"g"),val:b})}else if(g&&a(p,f))f+=8;else if(g&&u(p,f))f+=8;else if(g&&l(p,f))f+=9;else{if(!i)throw new Error("Invalid DOCTYPE");v=!0}d++,x=""}if(d!==0)throw new Error("Unclosed DOCTYPE")}return{entities:h,i:f}}},63:(t,e)=>{const n={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,o){return o},attributeValueProcessor:function(r,o){return o},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,o,i){return r}};e.buildOptions=function(r){return Object.assign({},n,r)},e.defaultOptions=n},299:(t,e,n)=>{const r=n(705),o=n(365),i=n(193),s=n(494),a=n(118);function u(O){const C=Object.keys(O);for(let T=0;T0)){_||(O=this.replaceEntitiesValue(O));const y=this.options.tagValueProcessor(C,O,T,R,I);return y==null?O:typeof y!=typeof O||y!==O?y:this.options.trimValues||O.trim()===O?N(O,this.options.parseTagValue,this.options.numberParseOptions):O}}function c(O){if(this.options.removeNSPrefix){const C=O.split(":"),T=O.charAt(0)==="/"?"/":"";if(C[0]==="xmlns")return"";C.length===2&&(O=T+C[1])}return O}const p=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function f(O,C,T){if(this.options.ignoreAttributes!==!0&&typeof O=="string"){const P=r.getAllMatches(O,p),R=P.length,I={};for(let _=0;_",I,"Closing Tag is not closed.");let y=O.substring(I+2,_).trim();if(this.options.removeNSPrefix){const k=y.indexOf(":");k!==-1&&(y=y.substr(k+1))}this.options.transformTagName&&(y=this.options.transformTagName(y)),T&&(P=this.saveTextToParentTag(P,T,R));const A=R.substring(R.lastIndexOf(".")+1);if(y&&this.options.unpairedTags.indexOf(y)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let $=0;A&&this.options.unpairedTags.indexOf(A)!==-1?($=R.lastIndexOf(".",R.lastIndexOf(".")-1),this.tagsNodeStack.pop()):$=R.lastIndexOf("."),R=R.substring(0,$),T=this.tagsNodeStack.pop(),P="",I=_}else if(O[I+1]==="?"){let _=b(O,I,!1,"?>");if(!_)throw new Error("Pi Tag is not closed.");if(P=this.saveTextToParentTag(P,T,R),!(this.options.ignoreDeclaration&&_.tagName==="?xml"||this.options.ignorePiTags)){const y=new o(_.tagName);y.add(this.options.textNodeName,""),_.tagName!==_.tagExp&&_.attrExpPresent&&(y[":@"]=this.buildAttributesMap(_.tagExp,R,_.tagName)),this.addChild(T,y,R)}I=_.closeIndex+1}else if(O.substr(I+1,3)==="!--"){const _=m(O,"-->",I+4,"Comment is not closed.");if(this.options.commentPropName){const y=O.substring(I+4,_-2);P=this.saveTextToParentTag(P,T,R),T.add(this.options.commentPropName,[{[this.options.textNodeName]:y}])}I=_}else if(O.substr(I+1,2)==="!D"){const _=i(O,I);this.docTypeEntities=_.entities,I=_.i}else if(O.substr(I+1,2)==="!["){const _=m(O,"]]>",I,"CDATA is not closed.")-2,y=O.substring(I+9,_);P=this.saveTextToParentTag(P,T,R);let A=this.parseTextData(y,T.tagname,R,!0,!1,!0,!0);A==null&&(A=""),this.options.cdataPropName?T.add(this.options.cdataPropName,[{[this.options.textNodeName]:y}]):T.add(this.options.textNodeName,A),I=_+2}else{let _=b(O,I,this.options.removeNSPrefix),y=_.tagName;const A=_.rawTagName;let $=_.tagExp,k=_.attrExpPresent,U=_.closeIndex;this.options.transformTagName&&(y=this.options.transformTagName(y)),T&&P&&T.tagname!=="!xml"&&(P=this.saveTextToParentTag(P,T,R,!1));const F=T;if(F&&this.options.unpairedTags.indexOf(F.tagname)!==-1&&(T=this.tagsNodeStack.pop(),R=R.substring(0,R.lastIndexOf("."))),y!==C.tagname&&(R+=R?"."+y:y),this.isItStopNode(this.options.stopNodes,R,y)){let M="";if($.length>0&&$.lastIndexOf("/")===$.length-1)y[y.length-1]==="/"?(y=y.substr(0,y.length-1),R=R.substr(0,R.length-1),$=y):$=$.substr(0,$.length-1),I=_.closeIndex;else if(this.options.unpairedTags.indexOf(y)!==-1)I=_.closeIndex;else{const j=this.readStopNodeData(O,A,U+1);if(!j)throw new Error(`Unexpected end of ${A}`);I=j.i,M=j.tagContent}const z=new o(y);y!==$&&k&&(z[":@"]=this.buildAttributesMap($,R,y)),M&&(M=this.parseTextData(M,y,R,!0,k,!0,!0)),R=R.substr(0,R.lastIndexOf(".")),z.add(this.options.textNodeName,M),this.addChild(T,z,R)}else{if($.length>0&&$.lastIndexOf("/")===$.length-1){y[y.length-1]==="/"?(y=y.substr(0,y.length-1),R=R.substr(0,R.length-1),$=y):$=$.substr(0,$.length-1),this.options.transformTagName&&(y=this.options.transformTagName(y));const M=new o(y);y!==$&&k&&(M[":@"]=this.buildAttributesMap($,R,y)),this.addChild(T,M,R),R=R.substr(0,R.lastIndexOf("."))}else{const M=new o(y);this.tagsNodeStack.push(T),y!==$&&k&&(M[":@"]=this.buildAttributesMap($,R,y)),this.addChild(T,M,R),T=M}P="",I=U}}else P+=O[I];return C.child};function d(O,C,T){const P=this.options.updateTag(C.tagname,T,C[":@"]);P===!1||(typeof P=="string"&&(C.tagname=P),O.addChild(C))}const g=function(O){if(this.options.processEntities){for(let C in this.docTypeEntities){const T=this.docTypeEntities[C];O=O.replace(T.regx,T.val)}for(let C in this.lastEntities){const T=this.lastEntities[C];O=O.replace(T.regex,T.val)}if(this.options.htmlEntities)for(let C in this.htmlEntities){const T=this.htmlEntities[C];O=O.replace(T.regex,T.val)}O=O.replace(this.ampEntity.regex,this.ampEntity.val)}return O};function v(O,C,T,P){return O&&(P===void 0&&(P=Object.keys(C.child).length===0),(O=this.parseTextData(O,C.tagname,T,!1,!!C[":@"]&&Object.keys(C[":@"]).length!==0,P))!==void 0&&O!==""&&C.add(this.options.textNodeName,O),O=""),O}function x(O,C,T){const P="*."+T;for(const R in O){const I=O[R];if(P===I||C===I)return!0}return!1}function m(O,C,T,P){const R=O.indexOf(C,T);if(R===-1)throw new Error(P);return R+C.length-1}function b(O,C,T){const P=function(k,U){let F,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",z="";for(let j=U;j3&&arguments[3]!==void 0?arguments[3]:">");if(!P)return;let R=P.data;const I=P.index,_=R.search(/\s/);let y=R,A=!0;_!==-1&&(y=R.substring(0,_),R=R.substring(_+1).trimStart());const $=y;if(T){const k=y.indexOf(":");k!==-1&&(y=y.substr(k+1),A=y!==P.data.substr(k+1))}return{tagName:y,tagExp:R,closeIndex:I,attrExpPresent:A,rawTagName:$}}function E(O,C,T){const P=T;let R=1;for(;T",T,`${C} is not closed`);if(O.substring(T+2,I).trim()===C&&(R--,R===0))return{tagContent:O.substring(P,T),i:I};T=I}else if(O[T+1]==="?")T=m(O,"?>",T+1,"StopNode is not closed.");else if(O.substr(T+1,3)==="!--")T=m(O,"-->",T+3,"StopNode is not closed.");else if(O.substr(T+1,2)==="![")T=m(O,"]]>",T,"StopNode is not closed.")-2;else{const I=b(O,T,">");I&&((I&&I.tagName)===C&&I.tagExp[I.tagExp.length-1]!=="/"&&R++,T=I.closeIndex)}}function N(O,C,T){if(C&&typeof O=="string"){const P=O.trim();return P==="true"||P!=="false"&&s(O,T)}return r.isExist(O)?O:""}t.exports=class{constructor(O){this.options=O,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(C,T)=>String.fromCharCode(Number.parseInt(T,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(C,T)=>String.fromCharCode(Number.parseInt(T,16))}},this.addExternalEntities=u,this.parseXml=h,this.parseTextData=l,this.resolveNameSpace=c,this.buildAttributesMap=f,this.isItStopNode=x,this.replaceEntitiesValue=g,this.readStopNodeData=E,this.saveTextToParentTag=v,this.addChild=d,this.ignoreAttributesFn=a(this.options.ignoreAttributes)}}},338:(t,e,n)=>{const{buildOptions:r}=n(63),o=n(299),{prettify:i}=n(728),s=n(31);t.exports=class{constructor(a){this.externalEntities={},this.options=r(a)}parse(a,u){if(typeof a!="string"){if(!a.toString)throw new Error("XML data is accepted in String or Bytes[] form.");a=a.toString()}if(u){u===!0&&(u={});const p=s.validate(a,u);if(p!==!0)throw Error(`${p.err.msg}:${p.err.line}:${p.err.col}`)}const l=new o(this.options);l.addExternalEntities(this.externalEntities);const c=l.parseXml(a);return this.options.preserveOrder||c===void 0?c:i(c,this.options)}addEntity(a,u){if(u.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(a.indexOf("&")!==-1||a.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(u==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[a]=u}}},728:(t,e)=>{function n(s,a,u){let l;const c={};for(let p=0;p0&&(c[a.textNodeName]=l):l!==void 0&&(c[a.textNodeName]=l),c}function r(s){const a=Object.keys(s);for(let u=0;u{t.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,n){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:n})}addChild(e){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}},135:t=>{function e(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}t.exports=function(n){return n!=null&&(e(n)||function(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&e(r.slice(0,0))}(n)||!!n._isBuffer)}},542:(t,e,n)=>{(function(){var r=n(298),o=n(526).utf8,i=n(135),s=n(526).bin,a=function(u,l){u.constructor==String?u=l&&l.encoding==="binary"?s.stringToBytes(u):o.stringToBytes(u):i(u)?u=Array.prototype.slice.call(u,0):Array.isArray(u)||u.constructor===Uint8Array||(u=u.toString());for(var c=r.bytesToWords(u),p=8*u.length,f=1732584193,h=-271733879,d=-1732584194,g=271733878,v=0;v>>24)|4278255360&(c[v]<<24|c[v]>>>8);c[p>>>5]|=128<>>9<<4)]=p;var x=a._ff,m=a._gg,b=a._hh,E=a._ii;for(v=0;v>>0,h=h+O>>>0,d=d+C>>>0,g=g+T>>>0}return r.endian([f,h,d,g])};a._ff=function(u,l,c,p,f,h,d){var g=u+(l&c|~l&p)+(f>>>0)+d;return(g<>>32-h)+l},a._gg=function(u,l,c,p,f,h,d){var g=u+(l&p|c&~p)+(f>>>0)+d;return(g<>>32-h)+l},a._hh=function(u,l,c,p,f,h,d){var g=u+(l^c^p)+(f>>>0)+d;return(g<>>32-h)+l},a._ii=function(u,l,c,p,f,h,d){var g=u+(c^(l|~p))+(f>>>0)+d;return(g<>>32-h)+l},a._blocksize=16,a._digestsize=16,t.exports=function(u,l){if(u==null)throw new Error("Illegal argument "+u);var c=r.wordsToBytes(a(u,l));return l&&l.asBytes?c:l&&l.asString?s.bytesToString(c):r.bytesToHex(c)}})()},285:(t,e,n)=>{var r=n(2);t.exports=function(x){return x?(x.substr(0,2)==="{}"&&(x="\\{\\}"+x.substr(2)),v(function(m){return m.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(s).split("\\,").join(a).split("\\.").join(u)}(x),!0).map(c)):[]};var o="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function l(x){return parseInt(x,10)==x?parseInt(x,10):x.charCodeAt(0)}function c(x){return x.split(o).join("\\").split(i).join("{").split(s).join("}").split(a).join(",").split(u).join(".")}function p(x){if(!x)return[""];var m=[],b=r("{","}",x);if(!b)return x.split(",");var E=b.pre,N=b.body,O=b.post,C=E.split(",");C[C.length-1]+="{"+N+"}";var T=p(O);return O.length&&(C[C.length-1]+=T.shift(),C.push.apply(C,T)),m.push.apply(m,C),m}function f(x){return"{"+x+"}"}function h(x){return/^-?0\d/.test(x)}function d(x,m){return x<=m}function g(x,m){return x>=m}function v(x,m){var b=[],E=r("{","}",x);if(!E)return[x];var N=E.pre,O=E.post.length?v(E.post,!1):[""];if(/\$$/.test(E.pre))for(var C=0;C=0;if(!y&&!A)return E.post.match(/,.*\}/)?v(x=E.pre+"{"+E.body+s+E.post):[x];if(y)P=E.body.split(/\.\./);else if((P=p(E.body)).length===1&&(P=v(P[0],!1).map(f)).length===1)return O.map(function(wt){return E.pre+P[0]+wt});if(y){var $=l(P[0]),k=l(P[1]),U=Math.max(P[0].length,P[1].length),F=P.length==3?Math.abs(l(P[2])):1,M=d;k<$&&(F*=-1,M=g);var z=P.some(h);R=[];for(var j=$;M(j,k);j+=F){var B;if(_)(B=String.fromCharCode(j))==="\\"&&(B="");else if(B=String(j),z){var V=U-B.length;if(V>0){var lt=new Array(V+1).join("0");B=j<0?"-"+lt+B.slice(1):lt+B}}R.push(B)}}else{R=[];for(var q=0;q{function e(l){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(l)}function n(l){var c=typeof Map=="function"?new Map:void 0;return n=function(p){if(p===null||(f=p,Function.toString.call(f).indexOf("[native code]")===-1))return p;var f;if(typeof p!="function")throw new TypeError("Super expression must either be null or a function");if(c!==void 0){if(c.has(p))return c.get(p);c.set(p,h)}function h(){return r(p,arguments,i(this).constructor)}return h.prototype=Object.create(p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),o(h,p)},n(l)}function r(l,c,p){return r=function(){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}}()?Reflect.construct:function(f,h,d){var g=[null];g.push.apply(g,h);var v=new(Function.bind.apply(f,g));return d&&o(v,d.prototype),v},r.apply(null,arguments)}function o(l,c){return o=Object.setPrototypeOf||function(p,f){return p.__proto__=f,p},o(l,c)}function i(l){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},i(l)}var s=function(l){function c(p){var f;return function(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}(this,c),(f=function(h,d){return!d||e(d)!=="object"&&typeof d!="function"?function(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(h):d}(this,i(c).call(this,p))).name="ObjectPrototypeMutationError",f}return function(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),f&&o(p,f)}(c,l),c}(n(Error));function a(l,c){for(var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},f=c.split("."),h=f.length,d=function(x){var m=f[x];if(!l)return{v:void 0};if(m==="+"){if(Array.isArray(l))return{v:l.map(function(E,N){var O=f.slice(x+1);return O.length>0?a(E,O.join("."),p):p(l,N,f,x)})};var b=f.slice(0,x).join(".");throw new Error("Object at wildcard (".concat(b,") is not an array"))}l=p(l,m,f,x)},g=0;g2&&arguments[2]!==void 0?arguments[2]:{};if(e(l)!="object"||l===null||c===void 0)return!1;if(typeof c=="number")return c in l;try{var f=!1;return a(l,c,function(h,d,g,v){if(!u(g,v))return h&&h[d];f=p.own?h.hasOwnProperty(d):d in h}),f}catch{return!1}},hasOwn:function(l,c,p){return this.has(l,c,p||{own:!0})},isIn:function(l,c,p){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(e(l)!="object"||l===null||c===void 0)return!1;try{var h=!1,d=!1;return a(l,c,function(g,v,x,m){return h=h||g===p||!!g&&g[v]===p,d=u(x,m)&&e(g)==="object"&&v in g,g&&g[v]}),f.validPath?h&&d:h}catch{return!1}},ObjectPrototypeMutationError:s}},47:(t,e,n)=>{var r=n(410),o=function(l){return typeof l=="string"};function i(l,c){for(var p=[],f=0;f=-1&&!c;p--){var f=p>=0?arguments[p]:Ke.cwd();if(!o(f))throw new TypeError("Arguments to path.resolve must be strings");f&&(l=f+"/"+l,c=f.charAt(0)==="/")}return(c?"/":"")+(l=i(l.split("/"),!c).join("/"))||"."},a.normalize=function(l){var c=a.isAbsolute(l),p=l.substr(-1)==="/";return(l=i(l.split("/"),!c).join("/"))||c||(l="."),l&&p&&(l+="/"),(c?"/":"")+l},a.isAbsolute=function(l){return l.charAt(0)==="/"},a.join=function(){for(var l="",c=0;c=0&&m[E]==="";E--);return b>E?[]:m.slice(b,E+1)}l=a.resolve(l).substr(1),c=a.resolve(c).substr(1);for(var f=p(l.split("/")),h=p(c.split("/")),d=Math.min(f.length,h.length),g=d,v=0;v{var n=Object.prototype.hasOwnProperty;function r(i){try{return decodeURIComponent(i.replace(/\+/g," "))}catch{return null}}function o(i){try{return encodeURIComponent(i)}catch{return null}}e.stringify=function(i,s){s=s||"";var a,u,l=[];for(u in typeof s!="string"&&(s="?"),i)if(n.call(i,u)){if((a=i[u])||a!=null&&!isNaN(a)||(a=""),u=o(u),a=o(a),u===null||a===null)continue;l.push(u+"="+a)}return l.length?s+l.join("&"):""},e.parse=function(i){for(var s,a=/([^=?#&]+)=?([^&]*)/g,u={};s=a.exec(i);){var l=r(s[1]),c=r(s[2]);l===null||c===null||l in u||(u[l]=c)}return u}},670:t=>{t.exports=function(e,n){if(n=n.split(":")[0],!(e=+e))return!1;switch(n){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}},494:t=>{const e=/^[-+]?0x[a-fA-F0-9]+$/,n=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};t.exports=function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i=Object.assign({},r,i),!o||typeof o!="string")return o;let s=o.trim();if(i.skipLike!==void 0&&i.skipLike.test(s))return o;if(i.hex&&e.test(s))return Number.parseInt(s,16);{const u=n.exec(s);if(u){const l=u[1],c=u[2];let p=((a=u[3])&&a.indexOf(".")!==-1&&((a=a.replace(/0+$/,""))==="."?a="0":a[0]==="."?a="0"+a:a[a.length-1]==="."&&(a=a.substr(0,a.length-1))),a);const f=u[4]||u[6];if(!i.leadingZeros&&c.length>0&&l&&s[2]!=="."||!i.leadingZeros&&c.length>0&&!l&&s[1]!==".")return o;{const h=Number(s),d=""+h;return d.search(/[eE]/)!==-1||f?i.eNotation?h:o:s.indexOf(".")!==-1?d==="0"&&p===""||d===p||l&&d==="-"+p?h:o:c?p===d||l+p===d?h:o:s===d||s===l+d?h:o}}return o}var a}},737:(t,e,n)=>{var r=n(670),o=n(647),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function p(m){return(m||"").toString().replace(i,"")}var f=[["#","hash"],["?","query"],function(m,b){return g(b.protocol)?m.replace(/\\/g,"/"):m},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function d(m){var b,E=(typeof window<"u"?window:typeof Be<"u"?Be:typeof self<"u"?self:{}).location||{},N={},O=typeof(m=m||E);if(m.protocol==="blob:")N=new x(unescape(m.pathname),{});else if(O==="string")for(b in N=new x(m,{}),h)delete N[b];else if(O==="object"){for(b in m)b in h||(N[b]=m[b]);N.slashes===void 0&&(N.slashes=a.test(m.href))}return N}function g(m){return m==="file:"||m==="ftp:"||m==="http:"||m==="https:"||m==="ws:"||m==="wss:"}function v(m,b){m=(m=p(m)).replace(s,""),b=b||{};var E,N=l.exec(m),O=N[1]?N[1].toLowerCase():"",C=!!N[2],T=!!N[3],P=0;return C?T?(E=N[2]+N[3]+N[4],P=N[2].length+N[3].length):(E=N[2]+N[4],P=N[2].length):T?(E=N[3]+N[4],P=N[3].length):E=N[4],O==="file:"?P>=2&&(E=E.slice(2)):g(O)?E=N[4]:O?C&&(E=E.slice(2)):P>=2&&g(b.protocol)&&(E=N[4]),{protocol:O,slashes:C||g(O),slashesCount:P,rest:E}}function x(m,b,E){if(m=(m=p(m)).replace(s,""),!(this instanceof x))return new x(m,b,E);var N,O,C,T,P,R,I=f.slice(),_=typeof b,y=this,A=0;for(_!=="object"&&_!=="string"&&(E=b,b=null),E&&typeof E!="function"&&(E=o.parse),N=!(O=v(m||"",b=d(b))).protocol&&!O.slashes,y.slashes=O.slashes||N&&b.slashes,y.protocol=O.protocol||b.protocol||"",m=O.rest,(O.protocol==="file:"&&(O.slashesCount!==2||c.test(m))||!O.slashes&&(O.protocol||O.slashesCount<2||!g(y.protocol)))&&(I[3]=[/(.*)/,"pathname"]);A{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},ks={};function K(t){var e=ks[t];if(e!==void 0)return e.exports;var n=ks[t]={id:t,loaded:!1,exports:{}};return Xl[t].call(n.exports,n,n.exports,K),n.loaded=!0,n.exports}K.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return K.d(e,{a:e}),e},K.d=(t,e)=>{for(var n in e)K.o(e,n)&&!K.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},K.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),K.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var Dt={};K.d(Dt,{hT:()=>xt,O4:()=>ae,Kd:()=>rf,YK:()=>of,UU:()=>fp,Gu:()=>Oc,ky:()=>Ic,h4:()=>Ln,ch:()=>Dr,hq:()=>Pe,i5:()=>Rc});var Yl=K(737),Kl=K.n(Yl);function ao(t){if(!Lo(t))throw new Error("Parameter was not an error")}function Lo(t){return!!t&&typeof t=="object"&&(e=t,Object.prototype.toString.call(e)==="[object Error]")||t instanceof Error;var e}class Nt extends Error{constructor(e,n){const r=[...arguments],{options:o,shortMessage:i}=function(a){let u,l="";if(a.length===0)u={};else if(Lo(a[0]))u={cause:a[0]},l=a.slice(1).join(" ")||"";else if(a[0]&&typeof a[0]=="object")u=Object.assign({},a[0]),l=a.slice(1).join(" ")||"";else{if(typeof a[0]!="string")throw new Error("Invalid arguments passed to Layerr");u={},l=l=a.join(" ")||""}return{options:u,shortMessage:l}}(r);let s=i;if(o.cause&&(s=`${s}: ${o.cause.message}`),super(s),this.message=s,o.name&&typeof o.name=="string"?this.name=o.name:this.name="Layerr",o.cause&&Object.defineProperty(this,"_cause",{value:o.cause}),Object.defineProperty(this,"_info",{value:{}}),o.info&&typeof o.info=="object"&&Object.assign(this._info,o.info),Error.captureStackTrace){const a=o.constructorOpt||this.constructor;Error.captureStackTrace(this,a)}}static cause(e){return ao(e),e._cause&&Lo(e._cause)?e._cause:null}static fullStack(e){ao(e);const n=Nt.cause(e);return n?`${e.stack} caused by: ${Nt.fullStack(n)}`:e.stack??""}static info(e){ao(e);const n={},r=Nt.cause(e);return r&&Object.assign(n,Nt.info(r)),e._info&&Object.assign(n,e._info),n}toString(){let e=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e=`${e}: ${this.message}`),e}}var Zl=K(47),vr=K.n(Zl);const js="__PATH_SEPARATOR_POSIX__",Ds="__PATH_SEPARATOR_WINDOWS__";function tt(t){try{const e=t.replace(/\//g,js).replace(/\\\\/g,Ds);return encodeURIComponent(e).split(Ds).join("\\\\").split(js).join("/")}catch(e){throw new Nt(e,"Failed encoding path")}}function Ms(t){return t.startsWith("/")?t:"/"+t}function An(t){let e=t;return e[0]!=="/"&&(e="/"+e),/^.+\/$/.test(e)&&(e=e.substr(0,e.length-1)),e}function Jl(t){let e=new(Kl())(t).pathname;return e.length<=0&&(e="/"),An(e)}function et(){for(var t=arguments.length,e=new Array(t),n=0;n1){var i=r.shift();r[0]=i+r[0]}r[0].match(/^file:\/\/\//)?r[0]=r[0].replace(/^([^/:]+):\/*/,"$1:///"):r[0]=r[0].replace(/^([^/:]+):\/*/,"$1://");for(var s=0;s0&&(a=a.replace(/^[\/]+/,"")),a=s0?"?":"")+l.join("&")}(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}(e.reduce((r,o,i)=>((i===0||o!=="/"||o==="/"&&r[r.length-1]!=="/")&&r.push(o),r),[]))}var Ql=K(542),pn=K.n(Ql);const tf="abcdef0123456789";function Fs(t,e){const n=t.url.replace("//",""),r=n.indexOf("/")==-1?"/":n.slice(n.indexOf("/")),o=t.method?t.method.toUpperCase():"GET",i=!!/(^|,)\s*auth\s*($|,)/.test(e.qop)&&"auth",s=`00000000${e.nc}`.slice(-8),a=function(f,h,d,g,v,x,m){const b=m||pn()(`${h}:${d}:${g}`);return f&&f.toLowerCase()==="md5-sess"?pn()(`${b}:${v}:${x}`):b}(e.algorithm,e.username,e.realm,e.password,e.nonce,e.cnonce,e.ha1),u=pn()(`${o}:${r}`),l=i?pn()(`${a}:${e.nonce}:${s}:${e.cnonce}:${i}:${u}`):pn()(`${a}:${e.nonce}:${u}`),c={username:e.username,realm:e.realm,nonce:e.nonce,uri:r,qop:i,response:l,nc:s,cnonce:e.cnonce,algorithm:e.algorithm,opaque:e.opaque},p=[];for(const f in c)c[f]&&(f==="qop"||f==="nc"||f==="algorithm"?p.push(`${f}=${c[f]}`):p.push(`${f}="${c[f]}"`));return`Digest ${p.join(", ")}`}function _c(t){return(t.headers&&t.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var ef=K(101),wc=K.n(ef);function Us(t){return wc().decode(t)}function zs(t,e){var n;return`Basic ${n=`${t}:${e}`,wc().encode(n)}`}const yr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,nf=yr.fetch.bind(yr),rf=yr.Request,of=yr.Response;let xt=function(t){return t.Auto="auto",t.Digest="digest",t.None="none",t.Password="password",t.Token="token",t}({}),ae=function(t){return t.DataTypeNoLength="data-type-no-length",t.InvalidAuthType="invalid-auth-type",t.InvalidOutputFormat="invalid-output-format",t.LinkUnsupportedAuthType="link-unsupported-auth",t.InvalidUpdateRange="invalid-update-range",t.NotSupported="not-supported",t}({});function Ec(t,e,n,r,o){switch(t.authType){case xt.Auto:e&&n&&(t.headers.Authorization=zs(e,n));break;case xt.Digest:t.digest=function(s,a,u){return{username:s,password:a,ha1:u,nc:0,algorithm:"md5",hasDigestAuth:!1}}(e,n,o);break;case xt.None:break;case xt.Password:t.headers.Authorization=zs(e,n);break;case xt.Token:t.headers.Authorization=`${(i=r).token_type} ${i.access_token}`;break;default:throw new Nt({info:{code:ae.InvalidAuthType}},`Invalid auth type: ${t.authType}`)}var i}K(345),K(800);const Gs="@@HOTPATCHER",sf=()=>{};function co(t){return{original:t,methods:[t],final:!1}}class af{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Gs}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(e){this.configuration.getEmptyAction=e}control(e){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!e||e.__type__!==Gs)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(e.configuration.registry).forEach(r=>{this.configuration.registry.hasOwnProperty(r)?n&&(this.configuration.registry[r]=Object.assign({},e.configuration.registry[r])):this.configuration.registry[r]=Object.assign({},e.configuration.registry[r])}),e._configuration=this.configuration,this}execute(e){const n=this.get(e)||sf;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i0;)l=[o.shift().apply(c,l)];return l[0]}}(...n.methods)}isPatched(e){return!!this.configuration.registry[e]}patch(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:o=!1}=r;if(this.configuration.registry[e]&&this.configuration.registry[e].final)throw new Error(`Failed patching '${e}': Method marked as being final`);if(typeof n!="function")throw new Error(`Failed patching '${e}': Provided method is not a function`);if(o)this.configuration.registry[e]?this.configuration.registry[e].methods.push(n):this.configuration.registry[e]=co(n);else if(this.isPatched(e)){const{original:i}=this.configuration.registry[e];this.configuration.registry[e]=Object.assign(co(n),{original:i})}else this.configuration.registry[e]=co(n);return this}patchInline(e,n){this.isPatched(e)||this.patch(e,n);for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i1?n-1:0),o=1;o{this.patch(e,i,{chain:!0})}),this}restore(e){if(!this.isPatched(e))throw new Error(`Failed restoring method: No method present for key: ${e}`);if(typeof this.configuration.registry[e].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${e}`);return this.configuration.registry[e].methods=[this.configuration.registry[e].original],this}setFinal(e){if(!this.configuration.registry.hasOwnProperty(e))throw new Error(`Failed marking '${e}' as final: No method found for key`);return this.configuration.registry[e].final=!0,this}}let uo=null;function Oc(){return uo||(uo=new af),uo}function br(t){return function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}(t)?Object.assign({},t):Object.setPrototypeOf(Object.assign({},t),Object.getPrototypeOf(t))}function Bs(){for(var t=arguments.length,e=new Array(t),n=0;n0;){const i=o.shift();r=r?xc(r,i):br(i)}return r}function xc(t,e){const n=br(t);return Object.keys(e).forEach(r=>{n.hasOwnProperty(r)?Array.isArray(e[r])?n[r]=Array.isArray(n[r])?[...n[r],...e[r]]:[...e[r]]:typeof e[r]=="object"&&e[r]?n[r]=typeof n[r]=="object"&&n[r]?xc(n[r],e[r]):br(e[r]):n[r]=e[r]:n[r]=e[r]}),n}function cf(t){const e={};for(const n of t.keys())e[n]=t.get(n);return e}function ko(){for(var t=arguments.length,e=new Array(t),n=0;n(Object.keys(i).forEach(s=>{const a=s.toLowerCase();r.hasOwnProperty(a)?o[r[a]]=i[s]:(r[a]=s,o[s]=i[s])}),o),{})}K(805);const uf=typeof ArrayBuffer=="function",{toString:lf}=Object.prototype;function Tc(t){return uf&&(t instanceof ArrayBuffer||lf.call(t)==="[object ArrayBuffer]")}function Nc(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function gi(t){return function(){for(var e=[],n=0;ne.patchInline("fetch",nf,n.url,function(r){let o={};const i={method:r.method};if(r.headers&&(o=ko(o,r.headers)),r.data!==void 0){const[s,a]=function(u){if(typeof u=="string")return[u,{}];if(Nc(u))return[u,{}];if(Tc(u))return[u,{}];if(u&&typeof u=="object")return[JSON.stringify(u),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof u)}(r.data);i.body=s,o=ko(o,a)}return r.signal&&(i.signal=r.signal),r.withCredentials&&(i.credentials="include"),i.headers=o,i}(n)),t)}var pf=K(285);const wr=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},hf={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},hn=t=>t.replace(/[[\]\\-]/g,"\\$&"),Vs=t=>t.join(""),df=(t,e)=>{const n=e;if(t.charAt(n)!=="[")throw new Error("not in a brace expression");const r=[],o=[];let i=n+1,s=!1,a=!1,u=!1,l=!1,c=n,p="";t:for(;ip?r.push(hn(p)+"-"+hn(g)):g===p&&r.push(hn(g)),p="",i++):t.startsWith("-]",i+1)?(r.push(hn(g+"-")),i+=2):t.startsWith("-",i+1)?(p=g,i+=2):(r.push(hn(g)),i++)}else u=!0,i++}else l=!0,i++}if(c1&&arguments[1]!==void 0?arguments[1]:{};return e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},gf=new Set(["!","?","+","*","@"]),Ws=t=>gf.has(t),lo="(?!\\.)",mf=new Set(["[","."]),vf=new Set(["..","."]),yf=new Set("().*{}+?[]^$\\!"),mi="[^/]",Hs=mi+"*?",qs=mi+"+?";class Ot{type;#n;#r;#i=!1;#t=[];#e;#s;#c;#a=!1;#o;#u;#f=!1;constructor(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=e,e&&(this.#r=!0),this.#e=n,this.#n=this.#e?this.#e.#n:this,this.#o=this.#n===this?r:this.#n.#o,this.#c=this.#n===this?[]:this.#n.#c,e!=="!"||this.#n.#a||this.#c.push(this),this.#s=this.#e?this.#e.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(const e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#u=this.#t.map(e=>String(e)).join("")}#h(){if(this!==this.#n)throw new Error("should only call on root");if(this.#a)return this;let e;for(this.toString(),this.#a=!0;e=this.#c.pop();){if(e.type!=="!")continue;let n=e,r=n.#e;for(;r;){for(let o=n.#s+1;!r.type&&otypeof n=="string"?n:n.toJSON()):[this.type,...this.#t.map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#n||this.#n.#a&&this.#e?.type==="!")&&e.push({}),e}isStart(){if(this.#n===this)return!0;if(!this.#e?.isStart())return!1;if(this.#s===0)return!0;const e=this.#e;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:{};const r=new Ot(null,void 0,n);return Ot.#l(e,r,0,n),r}toMMPattern(){if(this!==this.#n)return this.#n.toMMPattern();const e=this.toString(),[n,r,o,i]=this.toRegExpSource();if(!(o||this.#r||this.#o.nocase&&!this.#o.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;const s=(this.#o.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${n}$`,s),{_src:n,_glob:e})}get options(){return this.#o}toRegExpSource(e){const n=e??!!this.#o.dot;if(this.#n===this&&this.#h(),!this.type){const u=this.isStart()&&this.isEnd(),l=this.#t.map(f=>{const[h,d,g,v]=typeof f=="string"?Ot.#d(f,this.#r,u):f.toRegExpSource(e);return this.#r=this.#r||g,this.#i=this.#i||v,h}).join("");let c="";if(this.isStart()&&typeof this.#t[0]=="string"&&(this.#t.length!==1||!vf.has(this.#t[0]))){const f=mf,h=n&&f.has(l.charAt(0))||l.startsWith("\\.")&&f.has(l.charAt(2))||l.startsWith("\\.\\.")&&f.has(l.charAt(4)),d=!n&&!e&&f.has(l.charAt(0));c=h?"(?!(?:^|/)\\.\\.?(?:$|/))":d?lo:""}let p="";return this.isEnd()&&this.#n.#a&&this.#e?.type==="!"&&(p="(?:$|\\/)"),[c+l+p,En(l),this.#r=!!this.#r,this.#i]}const r=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=this.#p(n);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const u=this.toString();return this.#t=[u],this.type=null,this.#r=void 0,[u,En(this.toString()),!1,!1]}let s=!r||e||n?"":this.#p(!0);s===i&&(s=""),s&&(i=`(?:${i})(?:${s})*?`);let a="";return a=this.type==="!"&&this.#f?(this.isStart()&&!n?lo:"")+qs:o+i+(this.type==="!"?"))"+(!this.isStart()||n||e?"":lo)+Hs+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&s?")":this.type==="*"&&s?")?":`)${this.type}`),[a,En(i),this.#r=!!this.#r,this.#i]}#p(e){return this.#t.map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");const[r,o,i,s]=n.toRegExpSource(e);return this.#i=this.#i||s,r}).filter(n=>!(this.isStart()&&this.isEnd()&&!n)).join("|")}static#d(e,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,i="",s=!1;for(let a=0;a2&&arguments[2]!==void 0?arguments[2]:{};return wr(e),!(!n.nocomment&&e.charAt(0)==="#")&&new Er(e,n).match(t)},bf=/^\*+([^+@!?\*\[\(]*)$/,_f=t=>e=>!e.startsWith(".")&&e.endsWith(t),wf=t=>e=>e.endsWith(t),Ef=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Of=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),xf=/^\*+\.\*+$/,Tf=t=>!t.startsWith(".")&&t.includes("."),Nf=t=>t!=="."&&t!==".."&&t.includes("."),Af=/^\.\*+$/,Sf=t=>t!=="."&&t!==".."&&t.startsWith("."),Cf=/^\*+$/,$f=t=>t.length!==0&&!t.startsWith("."),Pf=t=>t.length!==0&&t!=="."&&t!=="..",If=/^\?+([^+@!?\*\[\(]*)?$/,Rf=t=>{let[e,n=""]=t;const r=Sc([e]);return n?(n=n.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(n)):r},Lf=t=>{let[e,n=""]=t;const r=Cc([e]);return n?(n=n.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(n)):r},kf=t=>{let[e,n=""]=t;const r=Cc([e]);return n?o=>r(o)&&o.endsWith(n):r},jf=t=>{let[e,n=""]=t;const r=Sc([e]);return n?o=>r(o)&&o.endsWith(n):r},Sc=t=>{let[e]=t;const n=e.length;return r=>r.length===n&&!r.startsWith(".")},Cc=t=>{let[e]=t;const n=e.length;return r=>r.length===n&&r!=="."&&r!==".."},$c=typeof Ke=="object"&&Ke?typeof so=="object"&&so&&so.__MINIMATCH_TESTING_PLATFORM__||Ke.platform:"posix";vt.sep=$c==="win32"?"\\":"/";const jt=Symbol("globstar **");vt.GLOBSTAR=jt,vt.filter=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n=>vt(n,t,e)};const kt=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},t,e)};vt.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return vt;const e=vt;return Object.assign(function(n,r){return e(n,r,kt(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))},{Minimatch:class extends e.Minimatch{constructor(n){super(n,kt(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(n){return e.defaults(kt(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,r){super(n,r,kt(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.AST.fromGlob(n,kt(t,r))}},unescape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.unescape(n,kt(t,r))},escape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.escape(n,kt(t,r))},filter:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.filter(n,kt(t,r))},defaults:n=>e.defaults(kt(t,n)),makeRe:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.makeRe(n,kt(t,r))},braceExpand:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.braceExpand(n,kt(t,r))},match:function(n,r){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.match(n,r,kt(t,o))},sep:e.sep,GLOBSTAR:jt})};const Pc=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return wr(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:pf(t)};vt.braceExpand=Pc,vt.makeRe=function(t){return new Er(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},vt.match=function(t,e){const n=new Er(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return t=t.filter(r=>n.match(r)),n.options.nonull&&!t.length&&t.push(e),t};const Xs=/[?*]|[+@!]\(.*?\)|\[|\]/;class Er{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};wr(e),n=n||{},this.options=n,this.pattern=e,this.platform=n.platform||$c,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const n of e)if(typeof n!="string")return!0;return!1}debug(){}make(){const e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#")return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const r=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let o=this.globParts.map((i,s,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){const u=!(i[0]!==""||i[1]!==""||i[2]!=="?"&&Xs.test(i[2])||Xs.test(i[3])),l=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,4),...i.slice(4).map(c=>this.parse(c))];if(l)return[i[0],...i.slice(1).map(c=>this.parse(c))]}return i.map(u=>this.parse(u))});if(this.debug(this.pattern,o),this.set=o.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=n>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let o=r;for(;n[o+1]==="**";)o++;o!==r&&n.splice(r,o-r)}return n})}levelOneOptimize(e){return e.map(n=>(n=n.reduce((r,o)=>{const i=r[r.length-1];return o==="**"&&i==="**"?r:o===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(r.pop(),r):(r.push(o),r)},[])).length===0?[""]:n)}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let o=1;oo&&r.splice(o+1,s-o);let a=r[o+1];const u=r[o+2],l=r[o+3];if(a!==".."||!u||u==="."||u===".."||!l||l==="."||l==="..")continue;n=!0,r.splice(o,1);const c=r.slice(0);c[o]="**",e.push(c),o--}if(!this.preserveMultipleSlashes){for(let s=1;sn.length)}partsMatch(e,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=0,i=0,s=[],a="";for(;o2&&arguments[2]!==void 0&&arguments[2];const o=this.options;if(this.isWindows){const g=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),v=!g&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),x=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),m=v?3:g?0:void 0,b=!x&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3])?3:x?0:void 0;if(typeof m=="number"&&typeof b=="number"){const[E,N]=[e[m],n[b]];E.toLowerCase()===N.toLowerCase()&&(n[b]=E,b>m?n=n.slice(b):m>b&&(e=e.slice(m)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:n}),this.debug("matchOne",e.length,n.length);for(var s=0,a=0,u=e.length,l=n.length;s>> no match, partial?`,e,f,n,h),f!==u))}let g;if(typeof c=="string"?(g=p===c,this.debug("string match",c,p,g)):(g=c.test(p),this.debug("pattern match",c,p,g)),!g)return!1}if(s===u&&a===l)return!0;if(s===u)return r;if(a===l)return s===u-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return Pc(this.pattern,this.options)}parse(e){wr(e);const n=this.options;if(e==="**")return jt;if(e==="")return"";let r,o=null;(r=e.match(Cf))?o=n.dot?Pf:$f:(r=e.match(bf))?o=(n.nocase?n.dot?Of:Ef:n.dot?wf:_f)(r[1]):(r=e.match(If))?o=(n.nocase?n.dot?Lf:Rf:n.dot?kf:jf)(r):(r=e.match(xf))?o=n.dot?Nf:Tf:(r=e.match(Af))&&(o=Sf);const i=Ot.fromGlob(e,this.options).toMMPattern();return o&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:o}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const n=this.options,r=n.noglobstar?"[^/]*?":n.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=new Set(n.nocase?["i"]:[]);let i=e.map(u=>{const l=u.map(c=>{if(c instanceof RegExp)for(const p of c.flags.split(""))o.add(p);return typeof c=="string"?c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):c===jt?jt:c._src});return l.forEach((c,p)=>{const f=l[p+1],h=l[p-1];c===jt&&h!==jt&&(h===void 0?f!==void 0&&f!==jt?l[p+1]="(?:\\/|"+r+"\\/)?"+f:l[p]=r:f===void 0?l[p-1]=h+"(?:\\/|"+r+")?":f!==jt&&(l[p-1]=h+"(?:\\/|\\/"+r+"\\/)"+f,l[p+1]=jt))}),l.filter(c=>c!==jt).join("/")}).join("|");const[s,a]=e.length>1?["(?:",")"]:["",""];i="^"+s+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;const r=this.options;this.isWindows&&(e=e.split("\\").join("/"));const o=this.slashSplit(e);this.debug(this.pattern,"split",o);const i=this.set;this.debug(this.pattern,"set",i);let s=o[o.length-1];if(!s)for(let a=o.length-2;!s&&a>=0;a--)s=o[a];for(let a=0;a1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${t.status} ${t.statusText}`);return e.status=t.status,e.response=t,e}function ut(t,e){const{status:n}=e;if(n===401&&t.digest)return e;if(n>=400)throw vi(e);return e}function Pe(t,e){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:e,headers:t.headers?cf(t.headers):{},status:t.status,statusText:t.statusText}:e}vt.AST=Ot,vt.Minimatch=Er,vt.escape=function(t){let{windowsPathsNoEscape:e=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&")},vt.unescape=En;const Df=(Ys=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=ct({url:et(t.remoteURL,tt(e)),method:"COPY",headers:{Destination:et(t.remoteURL,tt(n)),Overwrite:r.overwrite===!1?"F":"T",Depth:r.shallow?"0":"infinity"}},t,r);return s=function(a){ut(t,a)},(i=at(o,t))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s},function(){for(var t=[],e=0;e2&&arguments[2]!==void 0?arguments[2]:Ve.Original;const r=re().get(t,e);return n==="array"&&Array.isArray(r)===!1?[r]:n==="object"&&Array.isArray(r)?r[0]:r}function Ln(t){return new Promise(e=>{e(function(n){const{multistatus:r}=n;if(r==="")return{multistatus:{response:[]}};if(!r)throw new Error("Invalid response: No root multistatus found");const o={multistatus:Array.isArray(r)?r[0]:r};return re().set(o,"multistatus.response",Kn(o,"multistatus.response",Ve.Array)),re().set(o,"multistatus.response",re().get(o,"multistatus.response").map(i=>function(s){const a=Object.assign({},s);return a.status?re().set(a,"status",Kn(a,"status",Ve.Object)):(re().set(a,"propstat",Kn(a,"propstat",Ve.Object)),re().set(a,"propstat.prop",Kn(a,"propstat.prop",Ve.Object))),a}(i))),o}(new yi.XMLParser({allowBooleanAttributes:!0,attributeNamePrefix:"",textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor:(n,r,o)=>r==="true"||r==="false"?r==="true":r,tagValueProcessor(n,r,o){if(!o.endsWith("propstat.prop.displayname"))return r}}).parse(t)))})}function Dr(t,e){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const{getlastmodified:r=null,getcontentlength:o="0",resourcetype:i=null,getcontenttype:s=null,getetag:a=null}=t,u=i&&typeof i=="object"&&i.collection!==void 0?"directory":"file",l={filename:e,basename:vr().basename(e),lastmod:r,size:parseInt(o,10),type:u,etag:typeof a=="string"?a.replace(/"/g,""):null};return u==="file"&&(l.mime=s&&typeof s=="string"?s.split(";")[0]:""),n&&(t.displayname!==void 0&&(t.displayname=String(t.displayname)),l.props=t),l}function Ic(t,e){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=null;try{t.multistatus.response[0].propstat&&(r=t.multistatus.response[0])}catch{}if(!r)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:o,status:i}}=r,[s,a,u]=i.split(" ",3),l=parseInt(a,10);if(l>=400){const c=new Error(`Invalid response: ${l} ${u}`);throw c.status=l,c}return Dr(o,An(e),n)}function Rc(t){switch(String(t)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(t),10)}}function fo(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const bi=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const{details:r=!1}=n,o=ct({url:et(t.remoteURL,tt(e)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},t,n);return fo(at(o,t),function(i){return ut(t,i),fo(i.text(),function(s){return fo(Ln(s),function(a){const u=Ic(a,e,r);return Pe(i,u,r)})})})});function Lc(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Ff=kc(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=function(i){if(!i||i==="/")return[];let s=i;const a=[];do a.push(s),s=vr().dirname(s);while(s&&s!=="/");return a}(An(e));r.sort((i,s)=>i.length>s.length?1:s.length>i.length?-1:0);let o=!1;return function(i,s,a){if(typeof i[Zs]=="function"){let g=function(v){try{for(;!(u=p.next()).done;)if((v=s(u.value))&&v.then){if(!Js(v))return void v.then(g,c||(c=Tt.bind(null,l=new We,2)));v=v.v}l?Tt(l,1,v):l=v}catch(x){Tt(l||(l=new We),2,x)}};var u,l,c,p=i[Zs]();if(g(),p.return){var f=function(v){try{u.done||p.return()}catch{}return v};if(l&&l.then)return l.then(f,function(v){throw f(v)});f()}return l}if(!("length"in i))throw new TypeError("Object is not iterable");for(var h=[],d=0;d2&&arguments[2]!==void 0?arguments[2]:{};if(n.recursive===!0)return Ff(t,e,n);const r=ct({url:et(t.remoteURL,(o=tt(e),o.endsWith("/")?o:o+"/")),method:"MKCOL"},t,n);var o;return Lc(at(r,t),function(i){ut(t,i)})});var zf=K(388),Qs=K.n(zf);const Gf=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r={};if(typeof n.range=="object"&&typeof n.range.start=="number"){let a=`bytes=${n.range.start}-`;typeof n.range.end=="number"&&(a=`${a}${n.range.end}`),r.Range=a}const o=ct({url:et(t.remoteURL,tt(e)),method:"GET",headers:r},t,n);return s=function(a){if(ut(t,a),r.Range&&a.status!==206){const u=new Error(`Invalid response code for partial request: ${a.status}`);throw u.status=a.status,u}return n.callback&&setTimeout(()=>{n.callback(a)},0),a.body},(i=at(o,t))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s}),Bf=()=>{},Vf=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:et(t.remoteURL,tt(e)),method:"DELETE"},t,n);return i=function(s){ut(t,s)},(o=at(r,t))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),Hf=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};return function(r,o){try{var i=(s=bi(t,e,n),a=function(){return!0},u?a?a(s):s:(s&&s.then||(s=Promise.resolve(s)),a?s.then(a):s))}catch(l){return o(l)}var s,a,u;return i&&i.then?i.then(void 0,o):i}(0,function(r){if(r.status===404)return!1;throw r})});function po(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const qf=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:et(t.remoteURL,tt(e),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:n.deep?"infinity":"1"}},t,n);return po(at(r,t),function(o){return ut(t,o),po(o.text(),function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return po(Ln(i),function(s){const a=Ms(e);let u=function(l,c,p){let f=arguments.length>3&&arguments[3]!==void 0&&arguments[3],h=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const d=vr().join(c,"/"),{multistatus:{response:g}}=l,v=g.map(x=>{const m=function(E){try{return E.replace(/^https?:\/\/[^\/]+/,"")}catch(N){throw new Nt(N,"Failed normalising HREF")}}(x.href),{propstat:{prop:b}}=x;return Dr(b,d==="/"?decodeURIComponent(An(m)):An(vr().relative(decodeURIComponent(d),decodeURIComponent(m))),f)});return h?v:v.filter(x=>x.basename&&(x.type==="file"||x.filename!==p.replace(/\/$/,"")))}(s,Ms(t.remoteBasePath||t.remotePath),a,n.details,n.includeSelf);return n.glob&&(u=function(l,c){return l.filter(p=>vt(p.filename,c,{matchBase:!0}))}(u,n.glob)),Pe(o,u,n.details)})})})});function _i(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:et(t.remoteURL,tt(e)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[Zf]},t,n);return Or(at(r,t),function(o){return ut(t,o),Or(o.text(),function(i){return Pe(o,i,n.details)})})});function Or(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const Yf=_i(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:et(t.remoteURL,tt(e)),method:"GET"},t,n);return Or(at(r,t),function(o){let i;return ut(t,o),function(s,a){var u=s();return u&&u.then?u.then(a):a()}(function(){return Or(o.arrayBuffer(),function(s){i=s})},function(){return Pe(o,i,n.details)})})}),Kf=_i(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{format:r="binary"}=n;if(r!=="binary"&&r!=="text")throw new Nt({info:{code:ae.InvalidOutputFormat}},`Invalid output format: ${r}`);return r==="text"?Xf(t,e,n):Yf(t,e,n)}),Zf=t=>t;function Jf(t){return new yi.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(jc({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:t}}},"d"))}function jc(t,e){const n={...t};for(const r in n)n.hasOwnProperty(r)&&(n[r]&&typeof n[r]=="object"&&r.indexOf(":")===-1?(n[`${e}:${r}`]=jc(n[r],e),delete n[r]):/^@_/.test(r)===!1&&(n[`${e}:${r}`]=n[r],delete n[r]));return n}function Mo(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}function Dc(t){return function(){for(var e=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{};const o=ct({url:et(t.remoteURL,tt(e)),method:"UNLOCK",headers:{"Lock-Token":n}},t,r);return Mo(at(o,t),function(i){if(ut(t,i),i.status!==204&&i.status!==200)throw vi(i)})}),tp=Dc(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:r,timeout:o=ep}=n,i={Accept:"text/plain,application/xml",Timeout:o};r&&(i.If=r);const s=ct({url:et(t.remoteURL,tt(e)),method:"LOCK",headers:i,data:Jf(t.contactHref)},t,n);return Mo(at(s,t),function(a){return ut(t,a),Mo(a.text(),function(u){const l=(f=u,new yi.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(f)),c=re().get(l,"prop.lockdiscovery.activelock.locktoken.href"),p=re().get(l,"prop.lockdiscovery.activelock.timeout");var f;if(!c)throw vi(a,"No lock token received: ");return{token:c,serverTimeout:p}})})}),ep="Infinite, Second-4100000000";function ho(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const np=function(t){return function(){for(var e=[],n=0;n1&&arguments[1]!==void 0?arguments[1]:{};const n=e.path||"/",r=ct({url:et(t.remoteURL,n),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},t,e);return ho(at(r,t),function(o){return ut(t,o),ho(o.text(),function(i){return ho(Ln(i),function(s){const a=function(u){try{const[l]=u.multistatus.response,{propstat:{prop:{"quota-used-bytes":c,"quota-available-bytes":p}}}=l;return c!==void 0&&p!==void 0?{used:parseInt(String(c),10),available:Rc(p)}:null}catch{}return null}(s);return Pe(o,a,e.details)})})})});function go(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const rp=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const{details:r=!1}=n,o=ct({url:et(t.remoteURL,tt(e)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":t.headers["Content-Type"]||"application/xml; charset=utf-8"}},t,n);return go(at(o,t),function(i){return ut(t,i),go(i.text(),function(s){return go(Ln(s),function(a){const u=function(l,c,p){const f={truncated:!1,results:[]};return f.truncated=l.multistatus.response.some(h=>(h.status||h.propstat?.status).split(" ",3)?.[1]==="507"&&h.href.replace(/\/$/,"").endsWith(tt(c).replace(/\/$/,""))),l.multistatus.response.forEach(h=>{if(h.propstat===void 0)return;const d=h.href.split("/").map(decodeURIComponent).join("/");f.results.push(Dr(h.propstat.prop,d,p))}),f}(a,e,r);return Pe(i,u,r)})})})}),op=function(t){return function(){for(var e=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{};const o=ct({url:et(t.remoteURL,tt(e)),method:"MOVE",headers:{Destination:et(t.remoteURL,tt(n)),Overwrite:r.overwrite===!1?"F":"T"}},t,r);return s=function(a){ut(t,a)},(i=at(o,t))&&i.then||(i=Promise.resolve(i)),s?i.then(s):i;var i,s});var ip=K(172);const sp=function(t){return function(){for(var e=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{};const{contentLength:o=!0,overwrite:i=!0}=r,s={"Content-Type":"application/octet-stream"};o===!1||(s["Content-Length"]=typeof o=="number"?`${o}`:`${function(c){if(Tc(c))return c.byteLength;if(Nc(c))return c.length;if(typeof c=="string")return(0,ip.d)(c);throw new Nt({info:{code:ae.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(n)}`),i||(s["If-None-Match"]="*");const a=ct({url:et(t.remoteURL,tt(e)),method:"PUT",headers:s,data:n},t,r);return l=function(c){try{ut(t,c)}catch(p){const f=p;if(f.status!==412||i)throw f;return!1}return!0},(u=at(a,t))&&u.then||(u=Promise.resolve(u)),l?u.then(l):u;var u,l}),Mc=function(t){return function(){for(var e=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=ct({url:et(t.remoteURL,tt(e)),method:"OPTIONS"},t,n);return i=function(s){try{ut(t,s)}catch(a){throw a}return{compliance:(s.headers.get("DAV")??"").split(",").map(a=>a.trim()),server:s.headers.get("Server")??""}},(o=at(r,t))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i});function Tn(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}const ap=wi(function(t,e,n,r,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new Nt({info:{code:ae.InvalidUpdateRange}},`Invalid update range ${n} for partial update`);const s={"Content-Type":"application/octet-stream","Content-Length":""+(r-n+1),"Content-Range":`bytes ${n}-${r}/*`},a=ct({url:et(t.remoteURL,tt(e)),method:"PUT",headers:s,data:o},t,i);return Tn(at(a,t),function(u){ut(t,u)})});function ta(t,e){var n=t();return n&&n.then?n.then(e):e(n)}const cp=wi(function(t,e,n,r,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new Nt({info:{code:ae.InvalidUpdateRange}},`Invalid update range ${n} for partial update`);const s={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(r-n+1),"X-Update-Range":`bytes=${n}-${r}`},a=ct({url:et(t.remoteURL,tt(e)),method:"PATCH",headers:s,data:o},t,i);return Tn(at(a,t),function(u){ut(t,u)})});function wi(t){return function(){for(var e=[],n=0;n5&&arguments[5]!==void 0?arguments[5]:{};return Tn(Mc(t,e,i),function(s){let a=!1;return ta(function(){if(s.compliance.includes("sabredav-partialupdate"))return Tn(cp(t,e,n,r,o,i),function(u){return a=!0,u})},function(u){let l=!1;return a?u:ta(function(){if(s.server.includes("Apache")&&s.compliance.includes(""))return Tn(ap(t,e,n,r,o,i),function(c){return l=!0,c})},function(c){if(l)return c;throw new Nt({info:{code:ae.NotSupported}},"Not supported")})})})}),lp="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function fp(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:n=null,remoteBasePath:r,contactHref:o=lp,ha1:i,headers:s={},httpAgent:a,httpsAgent:u,password:l,token:c,username:p,withCredentials:f}=e;let h=n;h||(h=p||l?xt.Password:xt.None);const d={authType:h,remoteBasePath:r,contactHref:o,ha1:i,headers:Object.assign({},s),httpAgent:a,httpsAgent:u,password:l,remotePath:Jl(t),remoteURL:t,token:c,username:p,withCredentials:f};return Ec(d,p,l,c,i),{copyFile:(g,v,x)=>Df(d,g,v,x),createDirectory:(g,v)=>Do(d,g,v),createReadStream:(g,v)=>function(x,m){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const E=new(Qs()).PassThrough;return Gf(x,m,b).then(N=>{N.pipe(E)}).catch(N=>{E.emit("error",N)}),E}(d,g,v),createWriteStream:(g,v,x)=>function(m,b){let E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Bf;const O=new(Qs()).PassThrough,C={};E.overwrite===!1&&(C["If-None-Match"]="*");const T=ct({url:et(m.remoteURL,tt(b)),method:"PUT",headers:C,data:O,maxRedirects:0},m,E);return at(T,m).then(P=>ut(m,P)).then(P=>{setTimeout(()=>{N(P)},0)}).catch(P=>{O.emit("error",P)}),O}(d,g,v,x),customRequest:(g,v)=>Vf(d,g,v),deleteFile:(g,v)=>Wf(d,g,v),exists:(g,v)=>Hf(d,g,v),getDirectoryContents:(g,v)=>qf(d,g,v),getFileContents:(g,v)=>Kf(d,g,v),getFileDownloadLink:g=>function(v,x){let m=et(v.remoteURL,tt(x));const b=/^https:/i.test(m)?"https":"http";switch(v.authType){case xt.None:break;case xt.Password:{const E=Us(v.headers.Authorization.replace(/^Basic /i,"").trim());m=m.replace(/^https?:\/\//,`${b}://${E}@`);break}default:throw new Nt({info:{code:ae.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${v.authType}`)}return m}(d,g),getFileUploadLink:g=>function(v,x){let m=`${et(v.remoteURL,tt(x))}?Content-Type=application/octet-stream`;const b=/^https:/i.test(m)?"https":"http";switch(v.authType){case xt.None:break;case xt.Password:{const E=Us(v.headers.Authorization.replace(/^Basic /i,"").trim());m=m.replace(/^https?:\/\//,`${b}://${E}@`);break}default:throw new Nt({info:{code:ae.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${v.authType}`)}return m}(d,g),getHeaders:()=>Object.assign({},d.headers),getQuota:g=>np(d,g),lock:(g,v)=>tp(d,g,v),moveFile:(g,v,x)=>op(d,g,v,x),putFileContents:(g,v,x)=>sp(d,g,v,x),partialUpdateFileContents:(g,v,x,m,b)=>up(d,g,v,x,m,b),getDAVCompliance:g=>Mc(d,g),search:(g,v)=>rp(d,g,v),setHeaders:g=>{d.headers=Object.assign({},g)},stat:(g,v)=>bi(d,g,v),unlock:(g,v,x)=>Qf(d,g,v,x)}}Dt.hT,Dt.O4,Dt.Kd,Dt.YK;var pp=Dt.UU,hp=Dt.Gu;Dt.ky,Dt.h4,Dt.ch,Dt.hq,Dt.i5;function Fc(t,e,n){const r=document.querySelector(`#initial-state-${t}-${e}`);if(r===null){if(n!==void 0)return n;throw new Error(`Could not find initial state ${e} of ${t}`)}try{return JSON.parse(atob(r.value))}catch{throw new Error(`Could not parse initial state ${e} of ${t}`)}}function Ei(){return Fc("files_sharing","isPublic",null)??document.querySelector('input#isPublic[type="hidden"][name="isPublic"][value="1"]')!==null}function dp(){return Fc("files_sharing","sharingToken",null)??document.querySelector('input#sharingToken[type="hidden"]')?.value??null}const ur=Ul().setApp("@f7cloud/files").detectUser().build();var Bt=(t=>(t[t.NONE=0]="NONE",t[t.CREATE=4]="CREATE",t[t.READ=1]="READ",t[t.UPDATE=2]="UPDATE",t[t.DELETE=8]="DELETE",t[t.SHARE=16]="SHARE",t[t.ALL=31]="ALL",t))(Bt||{}),Oi=(t=>(t.Folder="folder",t.File="file",t))(Oi||{});const Uc=function(t,e){return t.match(e)!==null},ea=(t,e)=>{if(t.id&&typeof t.id!="number")throw new Error("Invalid id type of value");if(!t.source)throw new Error("Missing mandatory source");try{new URL(t.source)}catch{throw new Error("Invalid source format, source must be a valid URL")}if(!t.source.startsWith("http"))throw new Error("Invalid source format, only http(s) is supported");if(t.displayname&&typeof t.displayname!="string")throw new Error("Invalid displayname type");if(t.mtime&&!(t.mtime instanceof Date))throw new Error("Invalid mtime type");if(t.crtime&&!(t.crtime instanceof Date))throw new Error("Invalid crtime type");if(!t.mime||typeof t.mime!="string"||!t.mime.match(/^[-\w.]+\/[-+\w.]+$/gi))throw new Error("Missing or invalid mandatory mime");if("size"in t&&typeof t.size!="number"&&t.size!==void 0)throw new Error("Invalid size type");if("permissions"in t&&t.permissions!==void 0&&!(typeof t.permissions=="number"&&t.permissions>=Bt.NONE&&t.permissions<=Bt.ALL))throw new Error("Invalid permissions");if(t.owner&&t.owner!==null&&typeof t.owner!="string")throw new Error("Invalid owner type");if(t.attributes&&typeof t.attributes!="object")throw new Error("Invalid attributes type");if(t.root&&typeof t.root!="string")throw new Error("Invalid root type");if(t.root&&!t.root.startsWith("/"))throw new Error("Root must start with a leading slash");if(t.root&&!t.source.includes(t.root))throw new Error("Root must be part of the source");if(t.root&&Uc(t.source,e)){const n=t.source.match(e)[0];if(!t.source.includes(Oe.join(n,t.root)))throw new Error("The root must be relative to the service. e.g /files/emma")}if(t.status&&!Object.values(xi).includes(t.status))throw new Error("Status must be a valid NodeStatus")};var xi=(t=>(t.NEW="new",t.FAILED="failed",t.LOADING="loading",t.LOCKED="locked",t))(xi||{});class Mr{_data;_attributes;_knownDavService=/(remote|public)\.php\/(web)?dav/i;readonlyAttributes=Object.entries(Object.getOwnPropertyDescriptors(Mr.prototype)).filter(e=>typeof e[1].get=="function"&&e[0]!=="__proto__").map(e=>e[0]);handler={set:(e,n,r)=>this.readonlyAttributes.includes(n)?!1:Reflect.set(e,n,r),deleteProperty:(e,n)=>this.readonlyAttributes.includes(n)?!1:Reflect.deleteProperty(e,n),get:(e,n,r)=>this.readonlyAttributes.includes(n)?(ur.warn(`Accessing "Node.attributes.${n}" is deprecated, access it directly on the Node instance.`),Reflect.get(this,n)):Reflect.get(e,n,r)};constructor(e,n){ea(e,n||this._knownDavService),this._data={displayname:e.attributes?.displayname,...e,attributes:{}},this._attributes=new Proxy(this._data.attributes,this.handler),this.update(e.attributes??{}),n&&(this._knownDavService=n)}get source(){return this._data.source.replace(/\/$/i,"")}get encodedSource(){const{origin:e}=new URL(this.source);return e+dl(this.source.slice(e.length))}get basename(){return Oe.basename(this.source)}get displayname(){return this._data.displayname||this.basename}set displayname(e){this._data.displayname=e}get extension(){return Oe.extname(this.source)}get dirname(){if(this.root){let n=this.source;this.isDavResource&&(n=n.split(this._knownDavService).pop());const r=n.indexOf(this.root),o=this.root.replace(/\/$/,"");return Oe.dirname(n.slice(r+o.length)||"/")}const e=new URL(this.source);return Oe.dirname(e.pathname)}get mime(){return this._data.mime}get mtime(){return this._data.mtime}set mtime(e){this._data.mtime=e}get crtime(){return this._data.crtime}get size(){return this._data.size}set size(e){this.updateMtime(),this._data.size=e}get attributes(){return this._attributes}get permissions(){return this.owner===null&&!this.isDavResource?Bt.READ:this._data.permissions!==void 0?this._data.permissions:Bt.NONE}set permissions(e){this.updateMtime(),this._data.permissions=e}get owner(){return this.isDavResource?this._data.owner:null}get isDavResource(){return Uc(this.source,this._knownDavService)}get isDavRessource(){return this.isDavResource}get root(){return this._data.root?this._data.root.replace(/^(.+)\/$/,"$1"):this.isDavResource&&Oe.dirname(this.source).split(this._knownDavService).pop()||null}get path(){if(this.root){let e=this.source;this.isDavResource&&(e=e.split(this._knownDavService).pop());const n=e.indexOf(this.root),r=this.root.replace(/\/$/,"");return e.slice(n+r.length)||"/"}return(this.dirname+"/"+this.basename).replace(/\/\//g,"/")}get fileid(){return this._data?.id}get status(){return this._data?.status}set status(e){this._data.status=e}get data(){return structuredClone(this._data)}move(e){ea({...this._data,source:e},this._knownDavService);const n=this.basename;this._data.source=e,this.displayname===n&&this.basename!==n&&(this.displayname=this.basename),this.updateMtime()}rename(e){if(e.includes("/"))throw new Error("Invalid basename");this.move(Oe.dirname(this.source)+"/"+e)}updateMtime(){this._data.mtime&&(this._data.mtime=new Date)}update(e){for(const[n,r]of Object.entries(e))try{r===void 0?delete this.attributes[n]:this.attributes[n]=r}catch(o){if(o instanceof TypeError)continue;throw o}}}class Ti extends Mr{get type(){return Oi.File}clone(){return new Ti(this.data)}}class Ni extends Mr{constructor(e){super({...e,mime:"httpd/unix-directory"})}get type(){return Oi.Folder}get extension(){return null}get mime(){return"httpd/unix-directory"}clone(){return new Ni(this.data)}}const gp=function(t=""){let e=Bt.NONE;return t&&((t.includes("C")||t.includes("K"))&&(e|=Bt.CREATE),t.includes("G")&&(e|=Bt.READ),(t.includes("W")||t.includes("N")||t.includes("V"))&&(e|=Bt.UPDATE),t.includes("D")&&(e|=Bt.DELETE),t.includes("R")&&(e|=Bt.SHARE)),e},zc=["d:getcontentlength","d:getcontenttype","d:getetag","d:getlastmodified","d:creationdate","d:displayname","d:quota-available-bytes","d:resourcetype","nc:has-preview","nc:is-encrypted","nc:mount-type","oc:comments-unread","oc:favorite","oc:fileid","oc:owner-display-name","oc:owner-id","oc:permissions","oc:size"],Gc={d:"DAV:",nc:"http://nextcloud.org/ns",oc:"http://owncloud.org/ns",ocs:"http://open-collaboration-services.org/ns"},Tm=function(t,e={nc:"http://nextcloud.org/ns"}){typeof window._nc_dav_properties>"u"&&(window._nc_dav_properties=[...zc],window._nc_dav_namespaces={...Gc});const n={...window._nc_dav_namespaces,...e};if(window._nc_dav_properties.find(o=>o===t))return ur.warn(`${t} already registered`,{prop:t}),!1;if(t.startsWith("<")||t.split(":").length!==2)return ur.error(`${t} is not valid. See example: 'oc:fileid'`,{prop:t}),!1;const r=t.split(":")[0];return n[r]?(window._nc_dav_properties.push(t),window._nc_dav_namespaces=n,!0):(ur.error(`${t} namespace unknown`,{prop:t,namespaces:n}),!1)},Ai=function(){return typeof window._nc_dav_properties>"u"&&(window._nc_dav_properties=[...zc]),window._nc_dav_properties.map(t=>`<${t} />`).join(" ")},Si=function(){return typeof window._nc_dav_namespaces>"u"&&(window._nc_dav_namespaces={...Gc}),Object.keys(window._nc_dav_namespaces).map(t=>`xmlns:${t}="${window._nc_dav_namespaces?.[t]}"`).join(" ")},Nm=function(){return` ${Ai()} `},mp=function(){return` ${Ai()} 1 `},Am=function(t){return` ${Ai()} /files/${kr()?.uid}/ infinity httpd/unix-directory 0 ${t} 100 0 `};function vp(){return Ei()?`/files/${dp()}`:`/files/${kr()?.uid}`}const Bc=vp();function yp(){const t=Gl("dav");return Ei()?t.replace("remote.php","public.php"):t}const Vc=yp(),Sm=function(t=Vc,e={}){const n=pp(t,{headers:e});function r(o){n.setHeaders({...e,"X-Requested-With":"XMLHttpRequest",requesttoken:o??""})}return Pl(r),r($l()),hp().patch("fetch",(o,i)=>{const s=i.headers;return s?.method&&(i.method=s.method,delete s.method),fetch(o,i)}),n},Cm=(t,e="/",n=Bc)=>{const r=new AbortController;return new ne(async(o,i,s)=>{s(()=>r.abort());try{const a=(await t.getDirectoryContents(`${n}${e}`,{signal:r.signal,details:!0,data:mp(),headers:{method:"REPORT"},includeSelf:!0})).data.filter(u=>u.filename!==e).map(u=>bp(u,n));o(a)}catch(a){i(a)}})},bp=function(t,e=Bc,n=Vc){let r=kr()?.uid;if(Ei())r=r??"anonymous";else if(!r)throw new Error("No user id found");const o=t.props,i=gp(o?.permissions),s=String(o?.["owner-id"]||r),a=o.fileid||0,u=new Date(Date.parse(t.lastmod)),l=new Date(Date.parse(o.creationdate)),c={id:a,source:`${n}${t.filename}`,mtime:!isNaN(u.getTime())&&u.getTime()!==0?u:void 0,crtime:!isNaN(l.getTime())&&l.getTime()!==0?l:void 0,mime:t.mime||"application/octet-stream",displayname:o.displayname!==void 0?String(o.displayname):void 0,size:o?.size||Number.parseInt(o.getcontentlength||"0"),status:a<0?xi.FAILED:void 0,permissions:i,owner:s,root:e,attributes:{...t,...o,hasPreview:o?.["has-preview"]}};return delete c.attributes?.props,t.type==="file"?new Ti(c):new Ni(c)},{entries:Wc,setPrototypeOf:na,isFrozen:_p,getPrototypeOf:wp,getOwnPropertyDescriptor:Ep}=Object;let{freeze:St,seal:Ft,create:Hc}=Object,{apply:Fo,construct:Uo}=typeof Reflect<"u"&&Reflect;St||(St=function(t){return t}),Ft||(Ft=function(t){return t}),Fo||(Fo=function(t,e,n){return t.apply(e,n)}),Uo||(Uo=function(t,e){return new t(...e)});const Zn=Ct(Array.prototype.forEach),Op=Ct(Array.prototype.lastIndexOf),ra=Ct(Array.prototype.pop),dn=Ct(Array.prototype.push),xp=Ct(Array.prototype.splice),lr=Ct(String.prototype.toLowerCase),mo=Ct(String.prototype.toString),oa=Ct(String.prototype.match),gn=Ct(String.prototype.replace),Tp=Ct(String.prototype.indexOf),Np=Ct(String.prototype.trim),Gt=Ct(Object.prototype.hasOwnProperty),Et=Ct(RegExp.prototype.test),mn=Ap(TypeError);function Ct(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:lr;na&&na(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(_p(e)||(e[r]=i),o=i)}t[o]=!0}return t}function Sp(t){for(let e=0;e/gm),Rp=Ft(/\$\{[\w\W]*/gm),Lp=Ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),kp=Ft(/^aria-[\-\w]+$/),qc=Ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jp=Ft(/^(?:\w+script|data):/i),Dp=Ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xc=Ft(/^html$/i),Mp=Ft(/^[a-z][.\w]*(-[.\w]+)+$/i);var ua=Object.freeze({__proto__:null,ARIA_ATTR:kp,ATTR_WHITESPACE:Dp,CUSTOM_ELEMENT:Mp,DATA_ATTR:Lp,DOCTYPE_NAME:Xc,ERB_EXPR:Ip,IS_ALLOWED_URI:qc,IS_SCRIPT_OR_DATA:jp,MUSTACHE_EXPR:Pp,TMPLIT_EXPR:Rp});const yn={element:1,text:3,progressingInstruction:7,comment:8,document:9},Fp=function(){return typeof window>"u"?null:window},Up=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},la=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Yc(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fp();const e=w=>Yc(w);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==yn.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:u,NodeFilter:l,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:h}=t,d=u.prototype,g=vn(d,"cloneNode"),v=vn(d,"remove"),x=vn(d,"nextSibling"),m=vn(d,"childNodes"),b=vn(d,"parentNode");if(typeof s=="function"){const w=n.createElement("template");w.content&&w.content.ownerDocument&&(n=w.content.ownerDocument)}let E,N="";const{implementation:O,createNodeIterator:C,createDocumentFragment:T,getElementsByTagName:P}=n,{importNode:R}=r;let I=la();e.isSupported=typeof Wc=="function"&&typeof b=="function"&&O&&O.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:_,ERB_EXPR:y,TMPLIT_EXPR:A,DATA_ATTR:$,ARIA_ATTR:k,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:M}=ua;let{IS_ALLOWED_URI:z}=ua,j=null;const B=H({},[...ia,...vo,...yo,...bo,...sa]);let V=null;const lt=H({},[...aa,..._o,...ca,...Jn]);let q=Object.seal(Hc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),wt=null,Lt=null,on=!0,be=!0,Ki=!1,Zi=!0,Re=!1,zn=!0,_e=!1,zr=!1,Gr=!1,Le=!1,Gn=!1,Bn=!1,Ji=!0,Qi=!1;const tl="user-content-";let Br=!0,sn=!1,ke={},je=null;const ts=H({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let es=null;const ns=H({},["audio","video","img","source","image","track"]);let Vr=null;const rs=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vn="http://www.w3.org/1998/Math/MathML",Wn="http://www.w3.org/2000/svg",Zt="http://www.w3.org/1999/xhtml";let De=Zt,Wr=!1,Hr=null;const el=H({},[Vn,Wn,Zt],mo);let Hn=H({},["mi","mo","mn","ms","mtext"]),qn=H({},["annotation-xml"]);const nl=H({},["title","style","font","a","script"]);let an=null;const rl=["application/xhtml+xml","text/html"],ol="text/html";let ft=null,Me=null;const il=n.createElement("form"),os=function(w){return w instanceof RegExp||w instanceof Function},qr=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Me&&Me===w)){if((!w||typeof w!="object")&&(w={}),w=ee(w),an=rl.indexOf(w.PARSER_MEDIA_TYPE)===-1?ol:w.PARSER_MEDIA_TYPE,ft=an==="application/xhtml+xml"?mo:lr,j=Gt(w,"ALLOWED_TAGS")?H({},w.ALLOWED_TAGS,ft):B,V=Gt(w,"ALLOWED_ATTR")?H({},w.ALLOWED_ATTR,ft):lt,Hr=Gt(w,"ALLOWED_NAMESPACES")?H({},w.ALLOWED_NAMESPACES,mo):el,Vr=Gt(w,"ADD_URI_SAFE_ATTR")?H(ee(rs),w.ADD_URI_SAFE_ATTR,ft):rs,es=Gt(w,"ADD_DATA_URI_TAGS")?H(ee(ns),w.ADD_DATA_URI_TAGS,ft):ns,je=Gt(w,"FORBID_CONTENTS")?H({},w.FORBID_CONTENTS,ft):ts,wt=Gt(w,"FORBID_TAGS")?H({},w.FORBID_TAGS,ft):ee({}),Lt=Gt(w,"FORBID_ATTR")?H({},w.FORBID_ATTR,ft):ee({}),ke=Gt(w,"USE_PROFILES")?w.USE_PROFILES:!1,on=w.ALLOW_ARIA_ATTR!==!1,be=w.ALLOW_DATA_ATTR!==!1,Ki=w.ALLOW_UNKNOWN_PROTOCOLS||!1,Zi=w.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=w.SAFE_FOR_TEMPLATES||!1,zn=w.SAFE_FOR_XML!==!1,_e=w.WHOLE_DOCUMENT||!1,Le=w.RETURN_DOM||!1,Gn=w.RETURN_DOM_FRAGMENT||!1,Bn=w.RETURN_TRUSTED_TYPE||!1,Gr=w.FORCE_BODY||!1,Ji=w.SANITIZE_DOM!==!1,Qi=w.SANITIZE_NAMED_PROPS||!1,Br=w.KEEP_CONTENT!==!1,sn=w.IN_PLACE||!1,z=w.ALLOWED_URI_REGEXP||qc,De=w.NAMESPACE||Zt,Hn=w.MATHML_TEXT_INTEGRATION_POINTS||Hn,qn=w.HTML_INTEGRATION_POINTS||qn,q=w.CUSTOM_ELEMENT_HANDLING||{},w.CUSTOM_ELEMENT_HANDLING&&os(w.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=w.CUSTOM_ELEMENT_HANDLING.tagNameCheck),w.CUSTOM_ELEMENT_HANDLING&&os(w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=w.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),w.CUSTOM_ELEMENT_HANDLING&&typeof w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=w.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(be=!1),Gn&&(Le=!0),ke&&(j=H({},sa),V=[],ke.html===!0&&(H(j,ia),H(V,aa)),ke.svg===!0&&(H(j,vo),H(V,_o),H(V,Jn)),ke.svgFilters===!0&&(H(j,yo),H(V,_o),H(V,Jn)),ke.mathMl===!0&&(H(j,bo),H(V,ca),H(V,Jn))),w.ADD_TAGS&&(j===B&&(j=ee(j)),H(j,w.ADD_TAGS,ft)),w.ADD_ATTR&&(V===lt&&(V=ee(V)),H(V,w.ADD_ATTR,ft)),w.ADD_URI_SAFE_ATTR&&H(Vr,w.ADD_URI_SAFE_ATTR,ft),w.FORBID_CONTENTS&&(je===ts&&(je=ee(je)),H(je,w.FORBID_CONTENTS,ft)),Br&&(j["#text"]=!0),_e&&H(j,["html","head","body"]),j.table&&(H(j,["tbody"]),delete wt.tbody),w.TRUSTED_TYPES_POLICY){if(typeof w.TRUSTED_TYPES_POLICY.createHTML!="function")throw mn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof w.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw mn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=w.TRUSTED_TYPES_POLICY,N=E.createHTML("")}else E===void 0&&(E=Up(h,o)),E!==null&&typeof N=="string"&&(N=E.createHTML(""));St&&St(w),Me=w}},is=H({},[...vo,...yo,...Cp]),ss=H({},[...bo,...$p]),sl=function(w){let D=b(w);(!D||!D.tagName)&&(D={namespaceURI:De,tagName:"template"});const L=lr(w.tagName),X=lr(D.tagName);return Hr[w.namespaceURI]?w.namespaceURI===Wn?D.namespaceURI===Zt?L==="svg":D.namespaceURI===Vn?L==="svg"&&(X==="annotation-xml"||Hn[X]):!!is[L]:w.namespaceURI===Vn?D.namespaceURI===Zt?L==="math":D.namespaceURI===Wn?L==="math"&&qn[X]:!!ss[L]:w.namespaceURI===Zt?D.namespaceURI===Wn&&!qn[X]||D.namespaceURI===Vn&&!Hn[X]?!1:!ss[L]&&(nl[L]||!is[L]):!!(an==="application/xhtml+xml"&&Hr[w.namespaceURI]):!1},we=function(w){dn(e.removed,{element:w});try{b(w).removeChild(w)}catch{v(w)}},Fe=function(w,D){try{dn(e.removed,{attribute:D.getAttributeNode(w),from:D})}catch{dn(e.removed,{attribute:null,from:D})}if(D.removeAttribute(w),w==="is")if(Le||Gn)try{we(D)}catch{}else try{D.setAttribute(w,"")}catch{}},as=function(w){let D=null,L=null;if(Gr)w=""+w;else{const nt=oa(w,/^[\r\n\t ]+/);L=nt&&nt[0]}an==="application/xhtml+xml"&&De===Zt&&(w=''+w+"");const X=E?E.createHTML(w):w;if(De===Zt)try{D=new f().parseFromString(X,an)}catch{}if(!D||!D.documentElement){D=O.createDocument(De,"template",null);try{D.documentElement.innerHTML=Wr?N:X}catch{}}const pt=D.body||D.documentElement;return w&&L&&pt.insertBefore(n.createTextNode(L),pt.childNodes[0]||null),De===Zt?P.call(D,_e?"html":"body")[0]:_e?D.documentElement:pt},cs=function(w){return C.call(w.ownerDocument||w,w,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Xr=function(w){return w instanceof p&&(typeof w.nodeName!="string"||typeof w.textContent!="string"||typeof w.removeChild!="function"||!(w.attributes instanceof c)||typeof w.removeAttribute!="function"||typeof w.setAttribute!="function"||typeof w.namespaceURI!="string"||typeof w.insertBefore!="function"||typeof w.hasChildNodes!="function")},us=function(w){return typeof a=="function"&&w instanceof a};function Jt(w,D,L){Zn(w,X=>{X.call(e,D,L,Me)})}const ls=function(w){let D=null;if(Jt(I.beforeSanitizeElements,w,null),Xr(w))return we(w),!0;const L=ft(w.nodeName);if(Jt(I.uponSanitizeElement,w,{tagName:L,allowedTags:j}),zn&&w.hasChildNodes()&&!us(w.firstElementChild)&&Et(/<[/\w!]/g,w.innerHTML)&&Et(/<[/\w!]/g,w.textContent)||w.nodeType===yn.progressingInstruction||zn&&w.nodeType===yn.comment&&Et(/<[/\w]/g,w.data))return we(w),!0;if(!j[L]||wt[L]){if(!wt[L]&&ps(L)&&(q.tagNameCheck instanceof RegExp&&Et(q.tagNameCheck,L)||q.tagNameCheck instanceof Function&&q.tagNameCheck(L)))return!1;if(Br&&!je[L]){const X=b(w)||w.parentNode,pt=m(w)||w.childNodes;if(pt&&X){const nt=pt.length;for(let Qt=nt-1;Qt>=0;--Qt){const zt=g(pt[Qt],!0);zt.__removalCount=(w.__removalCount||0)+1,X.insertBefore(zt,x(w))}}}return we(w),!0}return w instanceof u&&!sl(w)||(L==="noscript"||L==="noembed"||L==="noframes")&&Et(/<\/no(script|embed|frames)/i,w.innerHTML)?(we(w),!0):(Re&&w.nodeType===yn.text&&(D=w.textContent,Zn([_,y,A],X=>{D=gn(D,X," ")}),w.textContent!==D&&(dn(e.removed,{element:w.cloneNode()}),w.textContent=D)),Jt(I.afterSanitizeElements,w,null),!1)},fs=function(w,D,L){if(Ji&&(D==="id"||D==="name")&&(L in n||L in il))return!1;if(!(be&&!Lt[D]&&Et($,D))&&!(on&&Et(k,D))){if(!V[D]||Lt[D]){if(!(ps(w)&&(q.tagNameCheck instanceof RegExp&&Et(q.tagNameCheck,w)||q.tagNameCheck instanceof Function&&q.tagNameCheck(w))&&(q.attributeNameCheck instanceof RegExp&&Et(q.attributeNameCheck,D)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(D))||D==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Et(q.tagNameCheck,L)||q.tagNameCheck instanceof Function&&q.tagNameCheck(L))))return!1}else if(!Vr[D]&&!Et(z,gn(L,F,""))&&!((D==="src"||D==="xlink:href"||D==="href")&&w!=="script"&&Tp(L,"data:")===0&&es[w])&&!(Ki&&!Et(U,gn(L,F,"")))&&L)return!1}return!0},ps=function(w){return w!=="annotation-xml"&&oa(w,M)},hs=function(w){Jt(I.beforeSanitizeAttributes,w,null);const{attributes:D}=w;if(!D||Xr(w))return;const L={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let X=D.length;for(;X--;){const pt=D[X],{name:nt,namespaceURI:Qt,value:zt}=pt,Ht=ft(nt),Yr=zt;let dt=nt==="value"?Yr:Np(Yr);if(L.attrName=Ht,L.attrValue=dt,L.keepAttr=!0,L.forceKeepAttr=void 0,Jt(I.uponSanitizeAttribute,w,L),dt=L.attrValue,Qi&&(Ht==="id"||Ht==="name")&&(Fe(nt,w),dt=tl+dt),zn&&Et(/((--!?|])>)|<\/(style|title)/i,dt)){Fe(nt,w);continue}if(L.forceKeepAttr)continue;if(!L.keepAttr){Fe(nt,w);continue}if(!Zi&&Et(/\/>/i,dt)){Fe(nt,w);continue}Re&&Zn([_,y,A],cl=>{dt=gn(dt,cl," ")});const ds=ft(w.nodeName);if(!fs(ds,Ht,dt)){Fe(nt,w);continue}if(E&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Qt)switch(h.getAttributeType(ds,Ht)){case"TrustedHTML":{dt=E.createHTML(dt);break}case"TrustedScriptURL":{dt=E.createScriptURL(dt);break}}if(dt!==Yr)try{Qt?w.setAttributeNS(Qt,nt,dt):w.setAttribute(nt,dt),Xr(w)?we(w):ra(e.removed)}catch{Fe(nt,w)}}Jt(I.afterSanitizeAttributes,w,null)},al=function w(D){let L=null;const X=cs(D);for(Jt(I.beforeSanitizeShadowDOM,D,null);L=X.nextNode();)Jt(I.uponSanitizeShadowNode,L,null),ls(L),hs(L),L.content instanceof i&&w(L.content);Jt(I.afterSanitizeShadowDOM,D,null)};return e.sanitize=function(w){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=null,X=null,pt=null,nt=null;if(Wr=!w,Wr&&(w=""),typeof w!="string"&&!us(w))if(typeof w.toString=="function"){if(w=w.toString(),typeof w!="string")throw mn("dirty is not a string, aborting")}else throw mn("toString is not a function");if(!e.isSupported)return w;if(zr||qr(D),e.removed=[],typeof w=="string"&&(sn=!1),sn){if(w.nodeName){const Ht=ft(w.nodeName);if(!j[Ht]||wt[Ht])throw mn("root node is forbidden and cannot be sanitized in-place")}}else if(w instanceof a)L=as(""),X=L.ownerDocument.importNode(w,!0),X.nodeType===yn.element&&X.nodeName==="BODY"||X.nodeName==="HTML"?L=X:L.appendChild(X);else{if(!Le&&!Re&&!_e&&w.indexOf("<")===-1)return E&&Bn?E.createHTML(w):w;if(L=as(w),!L)return Le?null:Bn?N:""}L&&Gr&&we(L.firstChild);const Qt=cs(sn?w:L);for(;pt=Qt.nextNode();)ls(pt),hs(pt),pt.content instanceof i&&al(pt.content);if(sn)return w;if(Le){if(Gn)for(nt=T.call(L.ownerDocument);L.firstChild;)nt.appendChild(L.firstChild);else nt=L;return(V.shadowroot||V.shadowrootmode)&&(nt=R.call(r,nt,!0)),nt}let zt=_e?L.outerHTML:L.innerHTML;return _e&&j["!doctype"]&&L.ownerDocument&&L.ownerDocument.doctype&&L.ownerDocument.doctype.name&&Et(Xc,L.ownerDocument.doctype.name)&&(zt=" `+zt),Re&&Zn([_,y,A],Ht=>{zt=gn(zt,Ht," ")}),E&&Bn?E.createHTML(zt):zt},e.setConfig=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qr(w),zr=!0},e.clearConfig=function(){Me=null,zr=!1},e.isValidAttribute=function(w,D,L){Me||qr({});const X=ft(w),pt=ft(D);return fs(X,pt,L)},e.addHook=function(w,D){typeof D=="function"&&dn(I[w],D)},e.removeHook=function(w,D){if(D!==void 0){const L=Op(I[w],D);return L===-1?void 0:xp(I[w],L,1)[0]}return ra(I[w])},e.removeHooks=function(w){I[w]=[]},e.removeAllHooks=function(){I=la()},e}var zp=Yc(),wo,fa;function Gp(){if(fa)return wo;fa=1;var t=/["'&<>]/;wo=e;function e(n){var r=""+n,o=t.exec(r);if(!o)return r;var i,s="",a=0,u=0;for(a=o.index;ae)}}function Eo(t,e,n,r,o){const i=typeof n=="object"?n:void 0,s=typeof r=="number"?r:typeof n=="number"?n:void 0,a={escape:!0,sanitize:!0,...typeof o=="object"?o:typeof r=="object"?r:{}},u=d=>d,l=a.sanitize?zp.sanitize:u,c=a.escape?pa:u,p=d=>typeof d=="string"||typeof d=="number",f=(d,g,v)=>d.replace(/%n/g,""+v).replace(/{([^{}]*)}/g,(x,m)=>{if(g===void 0||!(m in g))return c(x);const b=g[m];return p(b)?c(`${b}`):typeof b=="object"&&p(b.value)?(b.escape!==!1?pa:u)(`${b.value}`):c(x)});let h=(o?.bundle??Zc(t)).translations[e]||e;return h=Array.isArray(h)?h[0]:h,l(typeof i=="object"||s!==void 0?f(h,i,s):h)}function Im(t,e,n,r,o,i){const s="_"+e+"_::_"+n+"_",a=i?.bundle??Zc(t),u=a.translations[s];if(typeof u<"u"){const l=u;if(Array.isArray(l)){const c=a.pluralFunction(r);return Eo(t,l[c],o,r,i)}}return r===1?Eo(t,e,o,r,i):Eo(t,n,o,r,i)}function Rm(t,e=Kc()){switch(e==="pt-BR"&&(e="xbr"),e.length>3&&(e=e.substring(0,e.lastIndexOf("-"))),e){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"oc":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return t===1?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return t===0||t===1?0:1;case"be":case"bs":case"hr":case"ru":case"sh":case"sr":case"uk":return t%10===1&&t%100!==11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"sk":return t===1?0:t>=2&&t<=4?1:2;case"ga":return t===1?0:t===2?1:2;case"lt":return t%10===1&&t%100!==11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"sl":return t%100===1?0:t%100===2?1:t%100===3||t%100===4?2:3;case"mk":return t%10===1?0:1;case"mt":return t===1?0:t===0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"lv":return t===0?0:t%10===1&&t%100!==11?1:2;case"pl":return t===1?0:t%10>=2&&t%10<=4&&(t%100<12||t%100>14)?1:2;case"cy":return t===1?0:t===2?1:t===8||t===11?2:3;case"ro":return t===1?0:t===0||t%100>0&&t%100<20?1:2;case"ar":return t===0?0:t===1?1:t===2?2:t%100>=3&&t%100<=10?3:t%100>=11&&t%100<=99?4:5;default:return 0}}var Hp={},Pt=Object.freeze({}),W=Array.isArray;function G(t){return t==null}function S(t){return t!=null}function Q(t){return t===!0}function qp(t){return t===!1}function kn(t){return typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="boolean"}function Y(t){return typeof t=="function"}function _t(t){return t!==null&&typeof t=="object"}var Ci=Object.prototype.toString;function $t(t){return Ci.call(t)==="[object Object]"}function Xp(t){return Ci.call(t)==="[object RegExp]"}function Jc(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function zo(t){return S(t)&&typeof t.then=="function"&&typeof t.catch=="function"}function Yp(t){return t==null?"":Array.isArray(t)||$t(t)&&t.toString===Ci?JSON.stringify(t,Kp,2):String(t)}function Kp(t,e){return e&&e.__v_isRef?e.value:e}function Sn(t){var e=parseFloat(t);return isNaN(e)?t:e}function Wt(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(r,1)}}var Jp=Object.prototype.hasOwnProperty;function At(t,e){return Jp.call(t,e)}function Ie(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var Qp=/-(\w)/g,Ae=Ie(function(t){return t.replace(Qp,function(e,n){return n?n.toUpperCase():""})}),th=Ie(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),eh=/\B([A-Z])/g,jn=Ie(function(t){return t.replace(eh,"-$1").toLowerCase()});function nh(t,e){function n(r){var o=arguments.length;return o?o>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return n._length=t.length,n}function rh(t,e){return t.bind(e)}var Qc=Function.prototype.bind?rh:nh;function Go(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function Z(t,e){for(var n in e)t[n]=e[n];return t}function tu(t){for(var e={},n=0;n0,iu=Ut&&Ut.indexOf("edge/")>0;Ut&&Ut.indexOf("android")>0;var ch=Ut&&/iphone|ipad|ipod|ios/.test(Ut),da=Ut&&Ut.match(/firefox\/(\d+)/),Vo={}.watch,su=!1;if(It)try{var ga={};Object.defineProperty(ga,"passive",{get:function(){su=!0}}),window.addEventListener("test-passive",null,ga)}catch{}var tr,ye=function(){return tr===void 0&&(!It&&typeof Be<"u"?tr=Be.process&&Hp.VUE_ENV==="server":tr=!1),tr},Tr=It&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Ze(t){return typeof t=="function"&&/native code/.test(t.toString())}var Dn=typeof Symbol<"u"&&Ze(Symbol)&&typeof Reflect<"u"&&Ze(Reflect.ownKeys),Cn;typeof Set<"u"&&Ze(Set)?Cn=Set:Cn=function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(e){return this.set[e]===!0},t.prototype.add=function(e){this.set[e]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var yt=null;function Lm(){return yt&&{proxy:yt}}function de(t){t===void 0&&(t=null),t||yt&&yt._scope.off(),yt=t,t&&t._scope.on()}var Rt=function(){function t(e,n,r,o,i,s,a,u){this.tag=e,this.data=n,this.children=r,this.text=o,this.elm=i,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=n&&n.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=u,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),Je=function(t){t===void 0&&(t="");var e=new Rt;return e.text=t,e.isComment=!0,e};function He(t){return new Rt(void 0,void 0,void 0,String(t))}function Wo(t){var e=new Rt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var uh=0,fr=[],lh=function(){for(var t=0;t1)return n&&Y(e)?e.call(r):e}}var wa=Ie(function(t){var e=t.charAt(0)==="&";t=e?t.slice(1):t;var n=t.charAt(0)==="~";t=n?t.slice(1):t;var r=t.charAt(0)==="!";return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}});function Xo(t,e){function n(){var r=n.fns;if(W(r))for(var o=r.slice(),i=0;i0&&(o=mu(o,"".concat(e||"","_").concat(r)),bn(o[0])&&bn(s)&&(n[i]=He(s.text+o[0].text),o.shift()),n.push.apply(n,o)):kn(o)?bn(s)?n[i]=He(s.text+o):o!==""&&n.push(He(o)):bn(o)&&bn(s)?n[i]=He(s.text+o.text):(Q(t._isVList)&&S(o.tag)&&G(o.key)&&S(e)&&(o.key="__vlist".concat(e,"_").concat(r,"__")),n.push(o)));return n}function Nh(t,e){var n=null,r,o,i,s;if(W(t)||typeof t=="string")for(n=new Array(t.length),r=0,o=t.length;r0,s=e?!!e.$stable:!i,a=e&&e.$key;if(!e)o={};else{if(e._normalized)return e._normalized;if(s&&r&&r!==Pt&&a===r.$key&&!i&&!r.$hasNormal)return r;o={};for(var u in e)e[u]&&u[0]!=="$"&&(o[u]=Dh(t,n,u,e[u]))}for(var l in n)l in o||(o[l]=Mh(n,l));return e&&Object.isExtensible(e)&&(e._normalized=o),ot(o,"$stable",s),ot(o,"$key",a),ot(o,"$hasNormal",i),o}function Dh(t,e,n,r){var o=function(){var i=yt;de(t);var s=arguments.length?r.apply(null,arguments):r({});s=s&&typeof s=="object"&&!W(s)?[s]:Ri(s);var a=s&&s[0];return de(i),s&&(!a||s.length===1&&a.isComment&&!$n(a))?void 0:s};return r.proxy&&Object.defineProperty(e,n,{get:o,enumerable:!0,configurable:!0}),o}function Mh(t,e){return function(){return t[e]}}function Fh(t){var e=t.$options,n=e.setup;if(n){var r=t._setupContext=_u(t);de(t),nn();var o=ue(n,null,[t._props||fu({}),r],t,"setup");if(rn(),de(),Y(o))e.render=o;else if(_t(o))if(t._setupState=o,o.__sfc){var i=t._setupProxy={};for(var s in o)s!=="__sfc"&&qo(i,o,s)}else for(var s in o)ou(s)||qo(t,o,s)}}function _u(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};ot(e,"_v_attr_proxy",!0),Ar(e,t.$attrs,Pt,t,"$attrs")}return t._attrsProxy},get listeners(){if(!t._listenersProxy){var e=t._listenersProxy={};Ar(e,t.$listeners,Pt,t,"$listeners")}return t._listenersProxy},get slots(){return zh(t)},emit:Qc(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach(function(n){return qo(t,e,n)})}}}function Ar(t,e,n,r,o){var i=!1;for(var s in e)s in t?e[s]!==n[s]&&(i=!0):(i=!0,Uh(t,s,r,o));for(var s in t)s in e||(i=!0,delete t[s]);return i}function Uh(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function zh(t){return t._slotsProxy||wu(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}function wu(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}function Xm(){return Gh().slots}function Gh(){var t=yt;return t._setupContext||(t._setupContext=_u(t))}function Bh(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=Li(e._renderChildren,r),t.$scopedSlots=n?Nn(t.$parent,n.data.scopedSlots,t.$slots):Pt,t._c=function(i,s,a,u){return Sr(t,i,s,a,u,!1)},t.$createElement=function(i,s,a,u){return Sr(t,i,s,a,u,!0)};var o=n&&n.data;me(t,"$attrs",o&&o.attrs||Pt,null,!0),me(t,"$listeners",e._parentListeners||Pt,null,!0)}var dr=null;function Vh(t){bu(t.prototype),t.prototype.$nextTick=function(e){return ki(e,this)},t.prototype._render=function(){var e=this,n=e.$options,r=n.render,o=n._parentVnode;o&&e._isMounted&&(e.$scopedSlots=Nn(e.$parent,o.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&wu(e._slotsProxy,e.$scopedSlots)),e.$vnode=o;var i=yt,s=dr,a;try{de(e),dr=e,a=r.call(e._renderProxy,e.$createElement)}catch(u){Ce(u,e,"render"),a=e._vnode}finally{dr=s,de(i)}return W(a)&&a.length===1&&(a=a[0]),a instanceof Rt||(a=Je()),a.parent=o,a}}function Oo(t,e){return(t.__esModule||Dn&&t[Symbol.toStringTag]==="Module")&&(t=t.default),_t(t)?e.extend(t):t}function Wh(t,e,n,r,o){var i=Je();return i.asyncFactory=t,i.asyncMeta={data:e,context:n,children:r,tag:o},i}function Hh(t,e){if(Q(t.error)&&S(t.errorComp))return t.errorComp;if(S(t.resolved))return t.resolved;var n=dr;if(n&&S(t.owners)&&t.owners.indexOf(n)===-1&&t.owners.push(n),Q(t.loading)&&S(t.loadingComp))return t.loadingComp;if(n&&!S(t.owners)){var r=t.owners=[n],o=!0,i=null,s=null;n.$on("hook:destroyed",function(){return ve(r,n)});var a=function(p){for(var f=0,h=r.length;f1?Go(o):o;for(var i=Go(arguments,1),s='event handler for "'.concat(n,'"'),a=0,u=o.length;adocument.createEvent("Event").timeStamp&&(Qo=function(){return xo.now()})}var fd=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function pd(){$u=Qo(),Mi=!0;var t,e;for(ie.sort(fd),qe=0;qeqe&&ie[n].id>t.id;)n--;ie.splice(n+1,0,t)}Jo||(Jo=!0,ki(pd))}}function md(t){var e=t.$options.provide;if(e){var n=Y(e)?e.call(t):e;if(!_t(n))return;for(var r=Oh(t),o=Dn?Reflect.ownKeys(n):Object.keys(n),i=0;i-1){if(i&&!At(o,"default"))s=!1;else if(s===""||s===jn(t)){var u=ka(String,o.type);(u<0||a-1)return this;var r=Go(arguments,1);return r.unshift(this),Y(e.install)?e.install.apply(e,r):Y(e)&&e.apply(null,r),n.push(e),this}}function Hd(t){t.mixin=function(e){return this.options=$e(this.options,e),this}}function qd(t){t.cid=0;var e=1;t.extend=function(n){n=n||{};var r=this,o=r.cid,i=n._Ctor||(n._Ctor={});if(i[o])return i[o];var s=$r(n)||$r(r.options),a=function(u){this._init(u)};return a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.cid=e++,a.options=$e(r.options,n),a.super=r,a.options.props&&Xd(a),a.options.computed&&Yd(a),a.extend=r.extend,a.mixin=r.mixin,a.use=r.use,Fr.forEach(function(u){a[u]=r[u]}),s&&(a.options.components[s]=a),a.superOptions=r.options,a.extendOptions=n,a.sealedOptions=Z({},a.options),i[o]=a,a}}function Xd(t){var e=t.options.props;for(var n in e)Gi(t.prototype,"_props",n)}function Yd(t){var e=t.options.computed;for(var n in e)Ru(t.prototype,n,e[n])}function Kd(t){Fr.forEach(function(e){t[e]=function(n,r){return r?(e==="component"&&$t(r)&&(r.name=r.name||n,r=this.options._base.extend(r)),e==="directive"&&Y(r)&&(r={bind:r,update:r}),this.options[e+"s"][n]=r,r):this.options[e+"s"][n]}})}function Ma(t){return t&&($r(t.Ctor.options)||t.tag)}function rr(t,e){return W(t)?t.indexOf(e)>-1:typeof t=="string"?t.split(",").indexOf(e)>-1:Xp(t)?t.test(e):!1}function Fa(t,e){var n=t.cache,r=t.keys,o=t._vnode,i=t.$vnode;for(var s in n){var a=n[s];if(a){var u=a.name;u&&!e(u)&&ri(n,s,r,o)}}i.componentOptions.children=void 0}function ri(t,e,n,r){var o=t[e];o&&(!r||o.tag!==r.tag)&&o.componentInstance.$destroy(),t[e]=null,ve(n,e)}var Ua=[String,RegExp,Array],Zd={name:"keep-alive",abstract:!0,props:{include:Ua,exclude:Ua,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,r=t.vnodeToCache,o=t.keyToCache;if(r){var i=r.tag,s=r.componentInstance,a=r.componentOptions;e[o]={name:Ma(a),tag:i,componentInstance:s},n.push(o),this.max&&n.length>parseInt(this.max)&&ri(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)ri(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",function(e){Fa(t,function(n){return rr(e,n)})}),this.$watch("exclude",function(e){Fa(t,function(n){return!rr(e,n)})})},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Eu(t),n=e&&e.componentOptions;if(n){var r=Ma(n),o=this,i=o.include,s=o.exclude;if(i&&(!r||!rr(i,r))||s&&r&&rr(s,r))return e;var a=this,u=a.cache,l=a.keys,c=e.key==null?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;u[c]?(e.componentInstance=u[c].componentInstance,ve(l,c),l.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}},Jd={KeepAlive:Zd};function Qd(t){var e={};e.get=function(){return Mt},Object.defineProperty(t,"config",e),t.util={warn:Od,extend:Z,mergeOptions:$e,defineReactive:me},t.set=Pi,t.delete=uu,t.nextTick=ki,t.observable=function(n){return ce(n),n},t.options=Object.create(null),Fr.forEach(function(n){t.options[n+"s"]=Object.create(null)}),t.options._base=t,Z(t.options.components,Jd),Wd(t),Hd(t),qd(t),Kd(t)}Qd(st),Object.defineProperty(st.prototype,"$isServer",{get:ye}),Object.defineProperty(st.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(st,"FunctionalRenderContext",{value:Fi}),st.version=Qh;var tg=Wt("style,class"),eg=Wt("input,textarea,option,select,progress"),ng=function(t,e,n){return n==="value"&&eg(t)&&e!=="button"||n==="selected"&&t==="option"||n==="checked"&&t==="input"||n==="muted"&&t==="video"},Lu=Wt("contenteditable,draggable,spellcheck"),rg=Wt("events,caret,typing,plaintext-only"),og=function(t,e){return Ir(e)||e==="false"?"false":t==="contenteditable"&&rg(e)?e:"true"},ig=Wt("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),oi="http://www.w3.org/1999/xlink",Vi=function(t){return t.charAt(5)===":"&&t.slice(0,5)==="xlink"},ku=function(t){return Vi(t)?t.slice(6,t.length):""},Ir=function(t){return t==null||t===!1};function sg(t){for(var e=t.data,n=t,r=t;S(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(e=za(r.data,e));for(;S(n=n.parent);)n&&n.data&&(e=za(e,n.data));return ag(e.staticClass,e.class)}function za(t,e){return{staticClass:Wi(t.staticClass,e.staticClass),class:S(t.class)?[t.class,e.class]:e.class}}function ag(t,e){return S(t)||S(e)?Wi(t,Hi(e)):""}function Wi(t,e){return t?e?t+" "+e:t:e||""}function Hi(t){return Array.isArray(t)?cg(t):_t(t)?ug(t):typeof t=="string"?t:""}function cg(t){for(var e="",n,r=0,o=t.length;r-1?or[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:or[t]=/HTMLUnknownElement/.test(e.toString())}var ii=Wt("text,number,password,search,email,tel,url");function dg(t){if(typeof t=="string"){var e=document.querySelector(t);return e||document.createElement("div")}else return t}function gg(t,e){var n=document.createElement(t);return t!=="select"||e.data&&e.data.attrs&&e.data.attrs.multiple!==void 0&&n.setAttribute("multiple","multiple"),n}function mg(t,e){return document.createElementNS(lg[t],e)}function vg(t){return document.createTextNode(t)}function yg(t){return document.createComment(t)}function bg(t,e,n){t.insertBefore(e,n)}function _g(t,e){t.removeChild(e)}function wg(t,e){t.appendChild(e)}function Eg(t){return t.parentNode}function Og(t){return t.nextSibling}function xg(t){return t.tagName}function Tg(t,e){t.textContent=e}function Ng(t,e){t.setAttribute(e,"")}var Ag=Object.freeze({__proto__:null,createElement:gg,createElementNS:mg,createTextNode:vg,createComment:yg,insertBefore:bg,removeChild:_g,appendChild:wg,parentNode:Eg,nextSibling:Og,tagName:xg,setTextContent:Tg,setStyleScope:Ng}),Sg={create:function(t,e){Xe(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Xe(t,!0),Xe(e))},destroy:function(t){Xe(t,!0)}};function Xe(t,e){var n=t.data.ref;if(S(n)){var r=t.context,o=t.componentInstance||t.elm,i=e?null:o,s=e?void 0:o;if(Y(n)){ue(n,r,[i],r,"template ref function");return}var a=t.data.refInFor,u=typeof n=="string"||typeof n=="number",l=bt(n),c=r.$refs;if(u||l){if(a){var p=u?c[n]:n.value;e?W(p)&&ve(p,o):W(p)?p.includes(o)||p.push(o):u?(c[n]=[o],Ga(r,n,c[n])):n.value=[o]}else if(u){if(e&&c[n]!==o)return;c[n]=s,Ga(r,n,i)}else if(l){if(e&&n.value!==o)return;n.value=i}}}}function Ga(t,e,n){var r=t._setupState;r&&At(r,e)&&(bt(r[e])?r[e].value=n:r[e]=n)}var he=new Rt("",{},[]),_n=["create","activate","update","remove","destroy"];function Ee(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&S(t.data)===S(e.data)&&Cg(t,e)||Q(t.isAsyncPlaceholder)&&G(e.asyncFactory.error))}function Cg(t,e){if(t.tag!=="input")return!0;var n,r=S(n=t.data)&&S(n=n.attrs)&&n.type,o=S(n=e.data)&&S(n=n.attrs)&&n.type;return r===o||ii(r)&&ii(o)}function $g(t,e,n){var r,o,i={};for(r=e;r<=n;++r)o=t[r].key,S(o)&&(i[o]=r);return i}function Pg(t){var e,n,r={},o=t.modules,i=t.nodeOps;for(e=0;e<_n.length;++e)for(r[_n[e]]=[],n=0;nM?(on=G(A[B+1])?null:A[B+1].elm,m(_,on,A,F,B,$)):F>B&&E(y,U,M)}function C(_,y,A,$){for(var k=A;k<$;k++){var U=y[k];if(S(U)&&Ee(_,U))return k}}function T(_,y,A,$,k,U){if(_!==y){S(y.elm)&&S($)&&(y=$[k]=Wo(y));var F=y.elm=_.elm;if(Q(_.isAsyncPlaceholder)){S(y.asyncFactory.resolved)?I(_.elm,y,A):y.isAsyncPlaceholder=!0;return}if(Q(y.isStatic)&&Q(_.isStatic)&&y.key===_.key&&(Q(y.isCloned)||Q(y.isOnce))){y.componentInstance=_.componentInstance;return}var M,z=y.data;S(z)&&S(M=z.hook)&&S(M=M.prepatch)&&M(_,y);var j=_.children,B=y.children;if(S(z)&&g(y)){for(M=0;M-1?Ha(t,e,n):ig(e)?Ir(n)?t.removeAttribute(e):(n=e==="allowfullscreen"&&t.tagName==="EMBED"?"true":e,t.setAttribute(e,n)):Lu(e)?t.setAttribute(e,og(e,n)):Vi(e)?Ir(n)?t.removeAttributeNS(oi,ku(e)):t.setAttributeNS(oi,e,n):Ha(t,e,n)}function Ha(t,e,n){if(Ir(n))t.removeAttribute(e);else{if(tn&&!en&&t.tagName==="TEXTAREA"&&e==="placeholder"&&n!==""&&!t.__ieph){var r=function(o){o.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Dg={create:Va,update:Va};function qa(t,e){var n=e.elm,r=e.data,o=t.data;if(!(G(r.staticClass)&&G(r.class)&&(G(o)||G(o.staticClass)&&G(o.class)))){var i=sg(e),s=n._transitionClasses;S(s)&&(i=Wi(i,Hi(s))),i!==n._prevClass&&(n.setAttribute("class",i),n._prevClass=i)}}var Mg={create:qa,update:qa},No="__r",Ao="__c";function Fg(t){if(S(t[No])){var e=tn?"change":"input";t[e]=[].concat(t[No],t[e]||[]),delete t[No]}S(t[Ao])&&(t.change=[].concat(t[Ao],t.change||[]),delete t[Ao])}var Rn;function Ug(t,e,n){var r=Rn;return function o(){var i=e.apply(null,arguments);i!==null&&Du(t,o,n,r)}}var zg=Yo&&!(da&&Number(da[1])<=53);function Gg(t,e,n,r){if(zg){var o=$u,i=e;e=i._wrapper=function(s){if(s.target===s.currentTarget||s.timeStamp>=o||s.timeStamp<=0||s.target.ownerDocument!==document)return i.apply(this,arguments)}}Rn.addEventListener(t,e,su?{capture:n,passive:r}:n)}function Du(t,e,n,r){(r||Rn).removeEventListener(t,e._wrapper||e,n)}function So(t,e){if(!(G(t.data.on)&&G(e.data.on))){var n=e.data.on||{},r=t.data.on||{};Rn=e.elm||t.elm,Fg(n),gu(n,r,Gg,Du,Ug,e.context),Rn=void 0}}var Bg={create:So,update:So,destroy:function(t){return So(t,he)}},ir;function Xa(t,e){if(!(G(t.data.domProps)&&G(e.data.domProps))){var n,r,o=e.elm,i=t.data.domProps||{},s=e.data.domProps||{};(S(s.__ob__)||Q(s._v_attr_proxy))&&(s=e.data.domProps=Z({},s));for(n in i)n in s||(o[n]="");for(n in s){if(r=s[n],n==="textContent"||n==="innerHTML"){if(e.children&&(e.children.length=0),r===i[n])continue;o.childNodes.length===1&&o.removeChild(o.childNodes[0])}if(n==="value"&&o.tagName!=="PROGRESS"){o._value=r;var a=G(r)?"":String(r);Vg(o,a)&&(o.value=a)}else if(n==="innerHTML"&&qi(o.tagName)&&G(o.innerHTML)){ir=ir||document.createElement("div"),ir.innerHTML="".concat(r,"");for(var u=ir.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;u.firstChild;)o.appendChild(u.firstChild)}else if(r!==i[n])try{o[n]=r}catch{}}}}function Vg(t,e){return!t.composing&&(t.tagName==="OPTION"||Wg(t,e)||Hg(t,e))}function Wg(t,e){var n=!0;try{n=document.activeElement!==t}catch{}return n&&t.value!==e}function Hg(t,e){var n=t.value,r=t._vModifiers;if(S(r)){if(r.number)return Sn(n)!==Sn(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var qg={create:Xa,update:Xa},Xg=Ie(function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach(function(o){if(o){var i=o.split(r);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e});function Co(t){var e=Mu(t.style);return t.staticStyle?Z(t.staticStyle,e):e}function Mu(t){return Array.isArray(t)?tu(t):typeof t=="string"?Xg(t):t}function Yg(t,e){for(var n={},r,o=t;o.componentInstance;)o=o.componentInstance._vnode,o&&o.data&&(r=Co(o.data))&&Z(n,r);(r=Co(t.data))&&Z(n,r);for(var i=t;i=i.parent;)i.data&&(r=Co(i.data))&&Z(n,r);return n}var Kg=/^--/,Ya=/\s*!important$/,Ka=function(t,e,n){if(Kg.test(e))t.style.setProperty(e,n);else if(Ya.test(n))t.style.setProperty(jn(e),n.replace(Ya,""),"important");else{var r=Zg(e);if(Array.isArray(n))for(var o=0,i=n.length;o-1?e.split(Fu).forEach(function(r){return t.classList.add(r)}):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function zu(t,e){if(!(!e||!(e=e.trim())))if(t.classList)e.indexOf(" ")>-1?e.split(Fu).forEach(function(o){return t.classList.remove(o)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Gu(t){if(t){if(typeof t=="object"){var e={};return t.css!==!1&&Z(e,Qa(t.name||"v")),Z(e,t),e}else if(typeof t=="string")return Qa(t)}}var Qa=Ie(function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}}),Bu=It&&!en,Ge="transition",$o="animation",mr="transition",Rr="transitionend",si="animation",Vu="animationend";Bu&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(mr="WebkitTransition",Rr="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(si="WebkitAnimation",Vu="webkitAnimationEnd"));var tc=It?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Wu(t){tc(function(){tc(t)})}function Ne(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Uu(t,e))}function se(t,e){t._transitionClasses&&ve(t._transitionClasses,e),zu(t,e)}function Hu(t,e,n){var r=qu(t,e),o=r.type,i=r.timeout,s=r.propCount;if(!o)return n();var a=o===Ge?Rr:Vu,u=0,l=function(){t.removeEventListener(a,c),n()},c=function(p){p.target===t&&++u>=s&&l()};setTimeout(function(){u0&&(l=Ge,c=i,p=o.length):e===$o?u>0&&(l=$o,c=u,p=a.length):(c=Math.max(i,u),l=c>0?i>u?Ge:$o:null,p=l?l===Ge?o.length:a.length:0);var f=l===Ge&&Qg.test(n[mr+"Property"]);return{type:l,timeout:c,propCount:p,hasTransform:f}}function ec(t,e){for(;t.length1}function rc(t,e){e.data.show!==!0&&ai(e)}var tm=It?{create:rc,activate:rc,remove:function(t,e){t.data.show!==!0?Xu(t,e):e()}}:{},em=[Dg,Mg,Bg,qg,Jg,tm],nm=em.concat(jg),rm=Pg({nodeOps:Ag,modules:nm});en&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Yi(t,"input")});var Ku={inserted:function(t,e,n,r){n.tag==="select"?(r.elm&&!r.elm._vOptions?pe(n,"postpatch",function(){Ku.componentUpdated(t,e,n)}):oc(t,e,n.context),t._vOptions=[].map.call(t.options,Lr)):(n.tag==="textarea"||ii(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",om),t.addEventListener("compositionend",ac),t.addEventListener("change",ac),en&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if(n.tag==="select"){oc(t,e,n.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,Lr);if(o.some(function(s,a){return!Se(s,r[a])})){var i=t.multiple?e.value.some(function(s){return sc(s,o)}):e.value!==e.oldValue&&sc(e.value,o);i&&Yi(t,"change")}}}};function oc(t,e,n){ic(t,e),(tn||iu)&&setTimeout(function(){ic(t,e)},0)}function ic(t,e,n){var r=e.value,o=t.multiple;if(!(o&&!Array.isArray(r))){for(var i,s,a=0,u=t.options.length;a-1,s.selected!==i&&(s.selected=i);else if(Se(Lr(s),r)){t.selectedIndex!==a&&(t.selectedIndex=a);return}o||(t.selectedIndex=-1)}}function sc(t,e){return e.every(function(n){return!Se(n,t)})}function Lr(t){return"_value"in t?t._value:t.value}function om(t){t.target.composing=!0}function ac(t){t.target.composing&&(t.target.composing=!1,Yi(t.target,"input"))}function Yi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ci(t){return t.componentInstance&&(!t.data||!t.data.transition)?ci(t.componentInstance._vnode):t}var im={bind:function(t,e,n){var r=e.value;n=ci(n);var o=n.data&&n.data.transition,i=t.__vOriginalDisplay=t.style.display==="none"?"":t.style.display;r&&o?(n.data.show=!0,ai(n,function(){t.style.display=i})):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value,o=e.oldValue;if(!r!=!o){n=ci(n);var i=n.data&&n.data.transition;i?(n.data.show=!0,r?ai(n,function(){t.style.display=t.__vOriginalDisplay}):Xu(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}},sm={model:Ku,show:im},Zu={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ui(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ui(Eu(e.children)):t}function Ju(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var r in o)e[Ae(r)]=o[r];return e}function cc(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function am(t){for(;t=t.parent;)if(t.data.transition)return!0}function cm(t,e){return e.key===t.key&&e.tag===t.tag}var um=function(t){return t.tag||$n(t)},lm=function(t){return t.name==="show"},fm={name:"transition",props:Zu,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(um),!!n.length)){var r=this.mode,o=n[0];if(am(this.$vnode))return o;var i=ui(o);if(!i)return o;if(this._leaving)return cc(t,o);var s="__transition-".concat(this._uid,"-");i.key=i.key==null?i.isComment?s+"comment":s+i.tag:kn(i.key)?String(i.key).indexOf(s)===0?i.key:s+i.key:i.key;var a=(i.data||(i.data={})).transition=Ju(this),u=this._vnode,l=ui(u);if(i.data.directives&&i.data.directives.some(lm)&&(i.data.show=!0),l&&l.data&&!cm(i,l)&&!$n(l)&&!(l.componentInstance&&l.componentInstance._vnode.isComment)){var c=l.data.transition=Z({},a);if(r==="out-in")return this._leaving=!0,pe(c,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),cc(t,o);if(r==="in-out"){if($n(i))return u;var p,f=function(){p()};pe(a,"afterEnter",f),pe(a,"enterCancelled",f),pe(c,"delayLeave",function(h){p=h})}}return o}}},Qu=Z({tag:String,moveClass:String},Zu);delete Qu.mode;var pm={props:Qu,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Au(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],s=Ju(this),a=0;a