cocoda-sdk 3.4.2 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  /*!
2
- * cocoda-sdk v3.4.2
2
+ * cocoda-sdk v3.4.4
3
3
  * Copyright (c) 2021 Verbundzentrale des GBV (VZG)
4
4
  * @license MIT
5
5
  *
6
6
  * For dependency license information, please see ./dist/cocoda-sdk.js.LICENSES.txt.
7
7
  */
8
- var CDK=(()=>{var Xd=Object.create;var Et=Object.defineProperty,Zd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptor,em=Object.getOwnPropertyDescriptors,rm=Object.getOwnPropertyNames,mn=Object.getOwnPropertySymbols,tm=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty,uo=Object.prototype.propertyIsEnumerable;var ao=(r,e,t)=>e in r?Et(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,M=(r,e)=>{for(var t in e||(e={}))gi.call(e,t)&&ao(r,t,e[t]);if(mn)for(var t of mn(e))uo.call(e,t)&&ao(r,t,e[t]);return r},k=(r,e)=>Zd(r,em(e));var Ct=(r=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(r,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):r)(function(r){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var V=(r,e)=>{var t={};for(var n in r)gi.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&mn)for(var n of mn(r))e.indexOf(n)<0&&uo.call(r,n)&&(t[n]=r[n]);return t};var _=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),gn=(r,e)=>{for(var t in e)Et(r,t,{get:e[t],enumerable:!0})},fo=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of rm(e))!gi.call(r,i)&&i!==t&&Et(r,i,{get:()=>e[i],enumerable:!(n=Qd(e,i))||n.enumerable});return r};var pe=(r,e,t)=>(t=r!=null?Xd(tm(r)):{},fo(e||!r||!r.__esModule?Et(t,"default",{value:r,enumerable:!0}):t,r)),nm=r=>fo(Et({},"__esModule",{value:!0}),r);var L=(r,e,t)=>new Promise((n,i)=>{var s=a=>{try{u(t.next(a))}catch(f){i(f)}},o=a=>{try{u(t.throw(a))}catch(f){i(f)}},u=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,o);u((t=t.apply(r,e)).next())});var We=_((pP,Ho)=>{var eg=Array.isArray;Ho.exports=eg});var ji=_((dP,Wo)=>{var rg=typeof global=="object"&&global&&global.Object===Object&&global;Wo.exports=rg});var Ze=_((mP,Go)=>{var tg=ji(),ng=typeof self=="object"&&self&&self.Object===Object&&self,ig=tg||ng||Function("return this")();Go.exports=ig});var $r=_((gP,Ko)=>{var sg=Ze(),og=sg.Symbol;Ko.exports=og});var Xo=_((yP,Yo)=>{var Jo=$r(),Vo=Object.prototype,ag=Vo.hasOwnProperty,ug=Vo.toString,$t=Jo?Jo.toStringTag:void 0;function fg(r){var e=ag.call(r,$t),t=r[$t];try{r[$t]=void 0;var n=!0}catch(s){}var i=ug.call(r);return n&&(e?r[$t]=t:delete r[$t]),i}Yo.exports=fg});var Qo=_((vP,Zo)=>{var cg=Object.prototype,lg=cg.toString;function hg(r){return lg.call(r)}Zo.exports=hg});var Sr=_((wP,ta)=>{var ea=$r(),pg=Xo(),dg=Qo(),mg="[object Null]",gg="[object Undefined]",ra=ea?ea.toStringTag:void 0;function yg(r){return r==null?r===void 0?gg:mg:ra&&ra in Object(r)?pg(r):dg(r)}ta.exports=yg});var Qe=_((_P,na)=>{function vg(r){return r!=null&&typeof r=="object"}na.exports=vg});var In=_((bP,ia)=>{var wg=Sr(),_g=Qe(),bg="[object Symbol]";function Sg(r){return typeof r=="symbol"||_g(r)&&wg(r)==bg}ia.exports=Sg});var oa=_((SP,sa)=>{var xg=We(),Ag=In(),Og=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Eg=/^\w*$/;function Cg(r,e){if(xg(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||Ag(r)?!0:Eg.test(r)||!Og.test(r)||e!=null&&r in Object(e)}sa.exports=Cg});var er=_((xP,aa)=>{function Tg(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}aa.exports=Tg});var Pn=_((AP,ua)=>{var Ig=Sr(),Pg=er(),qg="[object AsyncFunction]",Rg="[object Function]",Mg="[object GeneratorFunction]",Lg="[object Proxy]";function Ng(r){if(!Pg(r))return!1;var e=Ig(r);return e==Rg||e==Mg||e==qg||e==Lg}ua.exports=Ng});var ca=_((OP,fa)=>{var jg=Ze(),Ug=jg["__core-js_shared__"];fa.exports=Ug});var pa=_((EP,ha)=>{var Ui=ca(),la=function(){var r=/[^.]+$/.exec(Ui&&Ui.keys&&Ui.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Dg(r){return!!la&&la in r}ha.exports=Dg});var Di=_((CP,da)=>{var Fg=Function.prototype,Bg=Fg.toString;function kg(r){if(r!=null){try{return Bg.call(r)}catch(e){}try{return r+""}catch(e){}}return""}da.exports=kg});var ga=_((TP,ma)=>{var $g=Pn(),zg=pa(),Hg=er(),Wg=Di(),Gg=/[\\^$.*+?()[\]{}|]/g,Kg=/^\[object .+?Constructor\]$/,Jg=Function.prototype,Vg=Object.prototype,Yg=Jg.toString,Xg=Vg.hasOwnProperty,Zg=RegExp("^"+Yg.call(Xg).replace(Gg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qg(r){if(!Hg(r)||zg(r))return!1;var e=$g(r)?Zg:Kg;return e.test(Wg(r))}ma.exports=Qg});var va=_((IP,ya)=>{function ey(r,e){return r==null?void 0:r[e]}ya.exports=ey});var xr=_((PP,wa)=>{var ry=ga(),ty=va();function ny(r,e){var t=ty(r,e);return ry(t)?t:void 0}wa.exports=ny});var zt=_((qP,_a)=>{var iy=xr(),sy=iy(Object,"create");_a.exports=sy});var xa=_((RP,Sa)=>{var ba=zt();function oy(){this.__data__=ba?ba(null):{},this.size=0}Sa.exports=oy});var Oa=_((MP,Aa)=>{function ay(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}Aa.exports=ay});var Ca=_((LP,Ea)=>{var uy=zt(),fy="__lodash_hash_undefined__",cy=Object.prototype,ly=cy.hasOwnProperty;function hy(r){var e=this.__data__;if(uy){var t=e[r];return t===fy?void 0:t}return ly.call(e,r)?e[r]:void 0}Ea.exports=hy});var Ia=_((NP,Ta)=>{var py=zt(),dy=Object.prototype,my=dy.hasOwnProperty;function gy(r){var e=this.__data__;return py?e[r]!==void 0:my.call(e,r)}Ta.exports=gy});var qa=_((jP,Pa)=>{var yy=zt(),vy="__lodash_hash_undefined__";function wy(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=yy&&e===void 0?vy:e,this}Pa.exports=wy});var Ma=_((UP,Ra)=>{var _y=xa(),by=Oa(),Sy=Ca(),xy=Ia(),Ay=qa();function ot(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ot.prototype.clear=_y;ot.prototype.delete=by;ot.prototype.get=Sy;ot.prototype.has=xy;ot.prototype.set=Ay;Ra.exports=ot});var Na=_((DP,La)=>{function Oy(){this.__data__=[],this.size=0}La.exports=Oy});var at=_((FP,ja)=>{function Ey(r,e){return r===e||r!==r&&e!==e}ja.exports=Ey});var Ht=_((BP,Ua)=>{var Cy=at();function Ty(r,e){for(var t=r.length;t--;)if(Cy(r[t][0],e))return t;return-1}Ua.exports=Ty});var Fa=_((kP,Da)=>{var Iy=Ht(),Py=Array.prototype,qy=Py.splice;function Ry(r){var e=this.__data__,t=Iy(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():qy.call(e,t,1),--this.size,!0}Da.exports=Ry});var ka=_(($P,Ba)=>{var My=Ht();function Ly(r){var e=this.__data__,t=My(e,r);return t<0?void 0:e[t][1]}Ba.exports=Ly});var za=_((zP,$a)=>{var Ny=Ht();function jy(r){return Ny(this.__data__,r)>-1}$a.exports=jy});var Wa=_((HP,Ha)=>{var Uy=Ht();function Dy(r,e){var t=this.__data__,n=Uy(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}Ha.exports=Dy});var Wt=_((WP,Ga)=>{var Fy=Na(),By=Fa(),ky=ka(),$y=za(),zy=Wa();function ut(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ut.prototype.clear=Fy;ut.prototype.delete=By;ut.prototype.get=ky;ut.prototype.has=$y;ut.prototype.set=zy;Ga.exports=ut});var qn=_((GP,Ka)=>{var Hy=xr(),Wy=Ze(),Gy=Hy(Wy,"Map");Ka.exports=Gy});var Ya=_((KP,Va)=>{var Ja=Ma(),Ky=Wt(),Jy=qn();function Vy(){this.size=0,this.__data__={hash:new Ja,map:new(Jy||Ky),string:new Ja}}Va.exports=Vy});var Za=_((JP,Xa)=>{function Yy(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}Xa.exports=Yy});var Gt=_((VP,Qa)=>{var Xy=Za();function Zy(r,e){var t=r.__data__;return Xy(e)?t[typeof e=="string"?"string":"hash"]:t.map}Qa.exports=Zy});var ru=_((YP,eu)=>{var Qy=Gt();function ev(r){var e=Qy(this,r).delete(r);return this.size-=e?1:0,e}eu.exports=ev});var nu=_((XP,tu)=>{var rv=Gt();function tv(r){return rv(this,r).get(r)}tu.exports=tv});var su=_((ZP,iu)=>{var nv=Gt();function iv(r){return nv(this,r).has(r)}iu.exports=iv});var au=_((QP,ou)=>{var sv=Gt();function ov(r,e){var t=sv(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}ou.exports=ov});var Rn=_((eq,uu)=>{var av=Ya(),uv=ru(),fv=nu(),cv=su(),lv=au();function ft(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ft.prototype.clear=av;ft.prototype.delete=uv;ft.prototype.get=fv;ft.prototype.has=cv;ft.prototype.set=lv;uu.exports=ft});var lu=_((rq,cu)=>{var fu=Rn(),hv="Expected a function";function Fi(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(hv);var t=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=t.cache;if(s.has(i))return s.get(i);var o=r.apply(this,n);return t.cache=s.set(i,o)||s,o};return t.cache=new(Fi.Cache||fu),t}Fi.Cache=fu;cu.exports=Fi});var pu=_((tq,hu)=>{var pv=lu(),dv=500;function mv(r){var e=pv(r,function(n){return t.size===dv&&t.clear(),n}),t=e.cache;return e}hu.exports=mv});var mu=_((nq,du)=>{var gv=pu(),yv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vv=/\\(\\)?/g,wv=gv(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(yv,function(t,n,i,s){e.push(i?s.replace(vv,"$1"):n||t)}),e});du.exports=wv});var Kt=_((iq,gu)=>{function _v(r,e){for(var t=-1,n=r==null?0:r.length,i=Array(n);++t<n;)i[t]=e(r[t],t,r);return i}gu.exports=_v});var Su=_((sq,bu)=>{var yu=$r(),bv=Kt(),Sv=We(),xv=In(),Av=1/0,vu=yu?yu.prototype:void 0,wu=vu?vu.toString:void 0;function _u(r){if(typeof r=="string")return r;if(Sv(r))return bv(r,_u)+"";if(xv(r))return wu?wu.call(r):"";var e=r+"";return e=="0"&&1/r==-Av?"-0":e}bu.exports=_u});var Au=_((oq,xu)=>{var Ov=Su();function Ev(r){return r==null?"":Ov(r)}xu.exports=Ev});var Jt=_((aq,Ou)=>{var Cv=We(),Tv=oa(),Iv=mu(),Pv=Au();function qv(r,e){return Cv(r)?r:Tv(r,e)?[r]:Iv(Pv(r))}Ou.exports=qv});var Mn=_((uq,Eu)=>{var Rv=In(),Mv=1/0;function Lv(r){if(typeof r=="string"||Rv(r))return r;var e=r+"";return e=="0"&&1/r==-Mv?"-0":e}Eu.exports=Lv});var Bi=_((fq,Cu)=>{var Nv=Jt(),jv=Mn();function Uv(r,e){e=Nv(e,r);for(var t=0,n=e.length;r!=null&&t<n;)r=r[jv(e[t++])];return t&&t==n?r:void 0}Cu.exports=Uv});var Iu=_((cq,Tu)=>{var Dv=Bi();function Fv(r,e,t){var n=r==null?void 0:Dv(r,e);return n===void 0?t:n}Tu.exports=Fv});var ki=_((lq,Pu)=>{var Bv=xr(),kv=function(){try{var r=Bv(Object,"defineProperty");return r({},"",{}),r}catch(e){}}();Pu.exports=kv});var Ln=_((hq,Ru)=>{var qu=ki();function $v(r,e,t){e=="__proto__"&&qu?qu(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}Ru.exports=$v});var Nn=_((pq,Mu)=>{var zv=Ln(),Hv=at(),Wv=Object.prototype,Gv=Wv.hasOwnProperty;function Kv(r,e,t){var n=r[e];(!(Gv.call(r,e)&&Hv(n,t))||t===void 0&&!(e in r))&&zv(r,e,t)}Mu.exports=Kv});var jn=_((dq,Lu)=>{var Jv=9007199254740991,Vv=/^(?:0|[1-9]\d*)$/;function Yv(r,e){var t=typeof r;return e=e==null?Jv:e,!!e&&(t=="number"||t!="symbol"&&Vv.test(r))&&r>-1&&r%1==0&&r<e}Lu.exports=Yv});var Uu=_((mq,ju)=>{var Xv=Nn(),Zv=Jt(),Qv=jn(),Nu=er(),ew=Mn();function rw(r,e,t,n){if(!Nu(r))return r;e=Zv(e,r);for(var i=-1,s=e.length,o=s-1,u=r;u!=null&&++i<s;){var a=ew(e[i]),f=t;if(a==="__proto__"||a==="constructor"||a==="prototype")return r;if(i!=o){var d=u[a];f=n?n(d,a,u):void 0,f===void 0&&(f=Nu(d)?d:Qv(e[i+1])?[]:{})}Xv(u,a,f),u=u[a]}return r}ju.exports=rw});var Fu=_((gq,Du)=>{var tw=Uu();function nw(r,e,t){return r==null?r:tw(r,e,t)}Du.exports=nw});var ku=_((yq,Bu)=>{var iw="__lodash_hash_undefined__";function sw(r){return this.__data__.set(r,iw),this}Bu.exports=sw});var zu=_((vq,$u)=>{function ow(r){return this.__data__.has(r)}$u.exports=ow});var Dn=_((wq,Hu)=>{var aw=Rn(),uw=ku(),fw=zu();function Un(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new aw;++e<t;)this.add(r[e])}Un.prototype.add=Un.prototype.push=uw;Un.prototype.has=fw;Hu.exports=Un});var Gu=_((_q,Wu)=>{function cw(r,e,t,n){for(var i=r.length,s=t+(n?1:-1);n?s--:++s<i;)if(e(r[s],s,r))return s;return-1}Wu.exports=cw});var Ju=_((bq,Ku)=>{function lw(r){return r!==r}Ku.exports=lw});var Yu=_((Sq,Vu)=>{function hw(r,e,t){for(var n=t-1,i=r.length;++n<i;)if(r[n]===e)return n;return-1}Vu.exports=hw});var Zu=_((xq,Xu)=>{var pw=Gu(),dw=Ju(),mw=Yu();function gw(r,e,t){return e===e?mw(r,e,t):pw(r,dw,t)}Xu.exports=gw});var $i=_((Aq,Qu)=>{var yw=Zu();function vw(r,e){var t=r==null?0:r.length;return!!t&&yw(r,e,0)>-1}Qu.exports=vw});var zi=_((Oq,ef)=>{function ww(r,e,t){for(var n=-1,i=r==null?0:r.length;++n<i;)if(t(e,r[n]))return!0;return!1}ef.exports=ww});var Fn=_((Eq,rf)=>{function _w(r,e){return r.has(e)}rf.exports=_w});var Hi=_((Cq,tf)=>{var bw=xr(),Sw=Ze(),xw=bw(Sw,"Set");tf.exports=xw});var sf=_((Tq,nf)=>{function Aw(){}nf.exports=Aw});var Bn=_((Iq,of)=>{function Ow(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}of.exports=Ow});var uf=_((Pq,af)=>{var Wi=Hi(),Ew=sf(),Cw=Bn(),Tw=1/0,Iw=Wi&&1/Cw(new Wi([,-0]))[1]==Tw?function(r){return new Wi(r)}:Ew;af.exports=Iw});var Gi=_((qq,ff)=>{var Pw=Dn(),qw=$i(),Rw=zi(),Mw=Fn(),Lw=uf(),Nw=Bn(),jw=200;function Uw(r,e,t){var n=-1,i=qw,s=r.length,o=!0,u=[],a=u;if(t)o=!1,i=Rw;else if(s>=jw){var f=e?null:Lw(r);if(f)return Nw(f);o=!1,i=Mw,a=new Pw}else a=e?[]:u;e:for(;++n<s;){var d=r[n],v=e?e(d):d;if(d=t||d!==0?d:0,o&&v===v){for(var w=a.length;w--;)if(a[w]===v)continue e;e&&a.push(v),u.push(d)}else i(a,v,t)||(a!==u&&a.push(v),u.push(d))}return u}ff.exports=Uw});var lf=_((Rq,cf)=>{var Dw=Gi();function Fw(r){return r&&r.length?Dw(r):[]}cf.exports=Fw});var Vt=_((Mq,hf)=>{function Bw(r){return function(e){return r(e)}}hf.exports=Bw});var mf=_((Lq,df)=>{var kw=Dn(),$w=$i(),zw=zi(),Hw=Kt(),Ww=Vt(),pf=Fn(),Gw=Math.min;function Kw(r,e,t){for(var n=t?zw:$w,i=r[0].length,s=r.length,o=s,u=Array(s),a=1/0,f=[];o--;){var d=r[o];o&&e&&(d=Hw(d,Ww(e))),a=Gw(d.length,a),u[o]=!t&&(e||i>=120&&d.length>=120)?new kw(o&&d):void 0}d=r[0];var v=-1,w=u[0];e:for(;++v<i&&f.length<a;){var O=d[v],p=e?e(O):O;if(O=t||O!==0?O:0,!(w?pf(w,p):n(f,p,t))){for(o=s;--o;){var C=u[o];if(!(C?pf(C,p):n(r[o],p,t)))continue e}w&&w.push(p),f.push(O)}}return f}df.exports=Kw});var kn=_((Nq,gf)=>{function Jw(r){return r}gf.exports=Jw});var vf=_((jq,yf)=>{function Vw(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}yf.exports=Vw});var Ki=_((Uq,_f)=>{var Yw=vf(),wf=Math.max;function Xw(r,e,t){return e=wf(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,s=wf(n.length-e,0),o=Array(s);++i<s;)o[i]=n[e+i];i=-1;for(var u=Array(e+1);++i<e;)u[i]=n[i];return u[e]=t(o),Yw(r,this,u)}}_f.exports=Xw});var Sf=_((Dq,bf)=>{function Zw(r){return function(){return r}}bf.exports=Zw});var Of=_((Fq,Af)=>{var Qw=Sf(),xf=ki(),e_=kn(),r_=xf?function(r,e){return xf(r,"toString",{configurable:!0,enumerable:!1,value:Qw(e),writable:!0})}:e_;Af.exports=r_});var Cf=_((Bq,Ef)=>{var t_=800,n_=16,i_=Date.now;function s_(r){var e=0,t=0;return function(){var n=i_(),i=n_-(n-t);if(t=n,i>0){if(++e>=t_)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}Ef.exports=s_});var Ji=_((kq,Tf)=>{var o_=Of(),a_=Cf(),u_=a_(o_);Tf.exports=u_});var $n=_(($q,If)=>{var f_=kn(),c_=Ki(),l_=Ji();function h_(r,e){return l_(c_(r,e,f_),r+"")}If.exports=h_});var Vi=_((zq,Pf)=>{var p_=9007199254740991;function d_(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=p_}Pf.exports=d_});var ct=_((Hq,qf)=>{var m_=Pn(),g_=Vi();function y_(r){return r!=null&&g_(r.length)&&!m_(r)}qf.exports=y_});var zn=_((Wq,Rf)=>{var v_=ct(),w_=Qe();function __(r){return w_(r)&&v_(r)}Rf.exports=__});var Lf=_((Gq,Mf)=>{var b_=zn();function S_(r){return b_(r)?r:[]}Mf.exports=S_});var jf=_((Kq,Nf)=>{var x_=Kt(),A_=mf(),O_=$n(),E_=Lf(),C_=O_(function(r){var e=x_(r,E_);return e.length&&e[0]===r[0]?A_(e):[]});Nf.exports=C_});var Yt=_((Jq,Uf)=>{function T_(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}Uf.exports=T_});var Ff=_((Vq,Df)=>{var I_=Sr(),P_=Qe(),q_="[object Arguments]";function R_(r){return P_(r)&&I_(r)==q_}Df.exports=R_});var Xt=_((Yq,$f)=>{var Bf=Ff(),M_=Qe(),kf=Object.prototype,L_=kf.hasOwnProperty,N_=kf.propertyIsEnumerable,j_=Bf(function(){return arguments}())?Bf:function(r){return M_(r)&&L_.call(r,"callee")&&!N_.call(r,"callee")};$f.exports=j_});var Gf=_((Xq,Wf)=>{var zf=$r(),U_=Xt(),D_=We(),Hf=zf?zf.isConcatSpreadable:void 0;function F_(r){return D_(r)||U_(r)||!!(Hf&&r&&r[Hf])}Wf.exports=F_});var Hn=_((Zq,Jf)=>{var B_=Yt(),k_=Gf();function Kf(r,e,t,n,i){var s=-1,o=r.length;for(t||(t=k_),i||(i=[]);++s<o;){var u=r[s];e>0&&t(u)?e>1?Kf(u,e-1,t,n,i):B_(i,u):n||(i[i.length]=u)}return i}Jf.exports=Kf});var Yf=_((Qq,Vf)=>{var $_=Hn(),z_=$n(),H_=Gi(),W_=zn(),G_=z_(function(r){return H_($_(r,1,W_,!0))});Vf.exports=G_});var Zf=_((eR,Xf)=>{function K_(r){return function(e,t,n){for(var i=-1,s=Object(e),o=n(e),u=o.length;u--;){var a=o[r?u:++i];if(t(s[a],a,s)===!1)break}return e}}Xf.exports=K_});var Yi=_((rR,Qf)=>{var J_=Zf(),V_=J_();Qf.exports=V_});var rc=_((tR,ec)=>{function Y_(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}ec.exports=Y_});var nc=_((nR,tc)=>{function X_(){return!1}tc.exports=X_});var ht=_((Zt,lt)=>{var Z_=Ze(),Q_=nc(),oc=typeof Zt=="object"&&Zt&&!Zt.nodeType&&Zt,ic=oc&&typeof lt=="object"&&lt&&!lt.nodeType&&lt,eb=ic&&ic.exports===oc,sc=eb?Z_.Buffer:void 0,rb=sc?sc.isBuffer:void 0,tb=rb||Q_;lt.exports=tb});var uc=_((iR,ac)=>{var nb=Sr(),ib=Vi(),sb=Qe(),ob="[object Arguments]",ab="[object Array]",ub="[object Boolean]",fb="[object Date]",cb="[object Error]",lb="[object Function]",hb="[object Map]",pb="[object Number]",db="[object Object]",mb="[object RegExp]",gb="[object Set]",yb="[object String]",vb="[object WeakMap]",wb="[object ArrayBuffer]",_b="[object DataView]",bb="[object Float32Array]",Sb="[object Float64Array]",xb="[object Int8Array]",Ab="[object Int16Array]",Ob="[object Int32Array]",Eb="[object Uint8Array]",Cb="[object Uint8ClampedArray]",Tb="[object Uint16Array]",Ib="[object Uint32Array]",Se={};Se[bb]=Se[Sb]=Se[xb]=Se[Ab]=Se[Ob]=Se[Eb]=Se[Cb]=Se[Tb]=Se[Ib]=!0;Se[ob]=Se[ab]=Se[wb]=Se[ub]=Se[_b]=Se[fb]=Se[cb]=Se[lb]=Se[hb]=Se[pb]=Se[db]=Se[mb]=Se[gb]=Se[yb]=Se[vb]=!1;function Pb(r){return sb(r)&&ib(r.length)&&!!Se[nb(r)]}ac.exports=Pb});var Wn=_((Qt,pt)=>{var qb=ji(),fc=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,en=fc&&typeof pt=="object"&&pt&&!pt.nodeType&&pt,Rb=en&&en.exports===fc,Xi=Rb&&qb.process,Mb=function(){try{var r=en&&en.require&&en.require("util").types;return r||Xi&&Xi.binding&&Xi.binding("util")}catch(e){}}();pt.exports=Mb});var rn=_((sR,hc)=>{var Lb=uc(),Nb=Vt(),cc=Wn(),lc=cc&&cc.isTypedArray,jb=lc?Nb(lc):Lb;hc.exports=jb});var Zi=_((oR,pc)=>{var Ub=rc(),Db=Xt(),Fb=We(),Bb=ht(),kb=jn(),$b=rn(),zb=Object.prototype,Hb=zb.hasOwnProperty;function Wb(r,e){var t=Fb(r),n=!t&&Db(r),i=!t&&!n&&Bb(r),s=!t&&!n&&!i&&$b(r),o=t||n||i||s,u=o?Ub(r.length,String):[],a=u.length;for(var f in r)(e||Hb.call(r,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||kb(f,a)))&&u.push(f);return u}pc.exports=Wb});var tn=_((aR,dc)=>{var Gb=Object.prototype;function Kb(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||Gb;return r===t}dc.exports=Kb});var Qi=_((uR,mc)=>{function Jb(r,e){return function(t){return r(e(t))}}mc.exports=Jb});var yc=_((fR,gc)=>{var Vb=Qi(),Yb=Vb(Object.keys,Object);gc.exports=Yb});var es=_((cR,vc)=>{var Xb=tn(),Zb=yc(),Qb=Object.prototype,e0=Qb.hasOwnProperty;function r0(r){if(!Xb(r))return Zb(r);var e=[];for(var t in Object(r))e0.call(r,t)&&t!="constructor"&&e.push(t);return e}vc.exports=r0});var nn=_((lR,wc)=>{var t0=Zi(),n0=es(),i0=ct();function s0(r){return i0(r)?t0(r):n0(r)}wc.exports=s0});var bc=_((hR,_c)=>{var o0=Yi(),a0=nn();function u0(r,e){return r&&o0(r,e,a0)}_c.exports=u0});var xc=_((pR,Sc)=>{var f0=kn();function c0(r){return typeof r=="function"?r:f0}Sc.exports=c0});var Oc=_((dR,Ac)=>{var l0=bc(),h0=xc();function p0(r,e){return r&&l0(r,h0(e))}Ac.exports=p0});var Cc=_((mR,Ec)=>{var d0=Sr(),m0=We(),g0=Qe(),y0="[object String]";function v0(r){return typeof r=="string"||!m0(r)&&g0(r)&&d0(r)==y0}Ec.exports=v0});var Ic=_((gR,Tc)=>{var w0=xr(),_0=Ze(),b0=w0(_0,"DataView");Tc.exports=b0});var qc=_((yR,Pc)=>{var S0=xr(),x0=Ze(),A0=S0(x0,"Promise");Pc.exports=A0});var Mc=_((vR,Rc)=>{var O0=xr(),E0=Ze(),C0=O0(E0,"WeakMap");Rc.exports=C0});var mt=_((wR,Bc)=>{var rs=Ic(),ts=qn(),ns=qc(),is=Hi(),ss=Mc(),Fc=Sr(),dt=Di(),Lc="[object Map]",T0="[object Object]",Nc="[object Promise]",jc="[object Set]",Uc="[object WeakMap]",Dc="[object DataView]",I0=dt(rs),P0=dt(ts),q0=dt(ns),R0=dt(is),M0=dt(ss),zr=Fc;(rs&&zr(new rs(new ArrayBuffer(1)))!=Dc||ts&&zr(new ts)!=Lc||ns&&zr(ns.resolve())!=Nc||is&&zr(new is)!=jc||ss&&zr(new ss)!=Uc)&&(zr=function(r){var e=Fc(r),t=e==T0?r.constructor:void 0,n=t?dt(t):"";if(n)switch(n){case I0:return Dc;case P0:return Lc;case q0:return Nc;case R0:return jc;case M0:return Uc}return e});Bc.exports=zr});var $c=_((_R,kc)=>{var L0=es(),N0=mt(),j0=Xt(),U0=We(),D0=ct(),F0=ht(),B0=tn(),k0=rn(),$0="[object Map]",z0="[object Set]",H0=Object.prototype,W0=H0.hasOwnProperty;function G0(r){if(r==null)return!0;if(D0(r)&&(U0(r)||typeof r=="string"||typeof r.splice=="function"||F0(r)||k0(r)||j0(r)))return!r.length;var e=N0(r);if(e==$0||e==z0)return!r.size;if(B0(r))return!L0(r).length;for(var t in r)if(W0.call(r,t))return!1;return!0}kc.exports=G0});var Hc=_((bR,zc)=>{var K0=Wt();function J0(){this.__data__=new K0,this.size=0}zc.exports=J0});var Gc=_((SR,Wc)=>{function V0(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}Wc.exports=V0});var Jc=_((xR,Kc)=>{function Y0(r){return this.__data__.get(r)}Kc.exports=Y0});var Yc=_((AR,Vc)=>{function X0(r){return this.__data__.has(r)}Vc.exports=X0});var Zc=_((OR,Xc)=>{var Z0=Wt(),Q0=qn(),eS=Rn(),rS=200;function tS(r,e){var t=this.__data__;if(t instanceof Z0){var n=t.__data__;if(!Q0||n.length<rS-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new eS(n)}return t.set(r,e),this.size=t.size,this}Xc.exports=tS});var Gn=_((ER,Qc)=>{var nS=Wt(),iS=Hc(),sS=Gc(),oS=Jc(),aS=Yc(),uS=Zc();function gt(r){var e=this.__data__=new nS(r);this.size=e.size}gt.prototype.clear=iS;gt.prototype.delete=sS;gt.prototype.get=oS;gt.prototype.has=aS;gt.prototype.set=uS;Qc.exports=gt});var rl=_((CR,el)=>{function fS(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}el.exports=fS});var os=_((TR,tl)=>{var cS=Dn(),lS=rl(),hS=Fn(),pS=1,dS=2;function mS(r,e,t,n,i,s){var o=t&pS,u=r.length,a=e.length;if(u!=a&&!(o&&a>u))return!1;var f=s.get(r),d=s.get(e);if(f&&d)return f==e&&d==r;var v=-1,w=!0,O=t&dS?new cS:void 0;for(s.set(r,e),s.set(e,r);++v<u;){var p=r[v],C=e[v];if(n)var G=o?n(C,p,v,e,r,s):n(p,C,v,r,e,s);if(G!==void 0){if(G)continue;w=!1;break}if(O){if(!lS(e,function(K,te){if(!hS(O,te)&&(p===K||i(p,K,t,n,s)))return O.push(te)})){w=!1;break}}else if(!(p===C||i(p,C,t,n,s))){w=!1;break}}return s.delete(r),s.delete(e),w}tl.exports=mS});var as=_((IR,nl)=>{var gS=Ze(),yS=gS.Uint8Array;nl.exports=yS});var sl=_((PR,il)=>{function vS(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}il.exports=vS});var cl=_((qR,fl)=>{var ol=$r(),al=as(),wS=at(),_S=os(),bS=sl(),SS=Bn(),xS=1,AS=2,OS="[object Boolean]",ES="[object Date]",CS="[object Error]",TS="[object Map]",IS="[object Number]",PS="[object RegExp]",qS="[object Set]",RS="[object String]",MS="[object Symbol]",LS="[object ArrayBuffer]",NS="[object DataView]",ul=ol?ol.prototype:void 0,us=ul?ul.valueOf:void 0;function jS(r,e,t,n,i,s,o){switch(t){case NS:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case LS:return!(r.byteLength!=e.byteLength||!s(new al(r),new al(e)));case OS:case ES:case IS:return wS(+r,+e);case CS:return r.name==e.name&&r.message==e.message;case PS:case RS:return r==e+"";case TS:var u=bS;case qS:var a=n&xS;if(u||(u=SS),r.size!=e.size&&!a)return!1;var f=o.get(r);if(f)return f==e;n|=AS,o.set(r,e);var d=_S(u(r),u(e),n,i,s,o);return o.delete(r),d;case MS:if(us)return us.call(r)==us.call(e)}return!1}fl.exports=jS});var fs=_((RR,ll)=>{var US=Yt(),DS=We();function FS(r,e,t){var n=e(r);return DS(r)?n:US(n,t(r))}ll.exports=FS});var pl=_((MR,hl)=>{function BS(r,e){for(var t=-1,n=r==null?0:r.length,i=0,s=[];++t<n;){var o=r[t];e(o,t,r)&&(s[i++]=o)}return s}hl.exports=BS});var cs=_((LR,dl)=>{function kS(){return[]}dl.exports=kS});var Kn=_((NR,gl)=>{var $S=pl(),zS=cs(),HS=Object.prototype,WS=HS.propertyIsEnumerable,ml=Object.getOwnPropertySymbols,GS=ml?function(r){return r==null?[]:(r=Object(r),$S(ml(r),function(e){return WS.call(r,e)}))}:zS;gl.exports=GS});var ls=_((jR,yl)=>{var KS=fs(),JS=Kn(),VS=nn();function YS(r){return KS(r,VS,JS)}yl.exports=YS});var _l=_((UR,wl)=>{var vl=ls(),XS=1,ZS=Object.prototype,QS=ZS.hasOwnProperty;function ex(r,e,t,n,i,s){var o=t&XS,u=vl(r),a=u.length,f=vl(e),d=f.length;if(a!=d&&!o)return!1;for(var v=a;v--;){var w=u[v];if(!(o?w in e:QS.call(e,w)))return!1}var O=s.get(r),p=s.get(e);if(O&&p)return O==e&&p==r;var C=!0;s.set(r,e),s.set(e,r);for(var G=o;++v<a;){w=u[v];var K=r[w],te=e[w];if(n)var D=o?n(te,K,w,e,r,s):n(K,te,w,r,e,s);if(!(D===void 0?K===te||i(K,te,t,n,s):D)){C=!1;break}G||(G=w=="constructor")}if(C&&!G){var Q=r.constructor,ne=e.constructor;Q!=ne&&"constructor"in r&&"constructor"in e&&!(typeof Q=="function"&&Q instanceof Q&&typeof ne=="function"&&ne instanceof ne)&&(C=!1)}return s.delete(r),s.delete(e),C}wl.exports=ex});var Tl=_((DR,Cl)=>{var hs=Gn(),rx=os(),tx=cl(),nx=_l(),bl=mt(),Sl=We(),xl=ht(),ix=rn(),sx=1,Al="[object Arguments]",Ol="[object Array]",Jn="[object Object]",ox=Object.prototype,El=ox.hasOwnProperty;function ax(r,e,t,n,i,s){var o=Sl(r),u=Sl(e),a=o?Ol:bl(r),f=u?Ol:bl(e);a=a==Al?Jn:a,f=f==Al?Jn:f;var d=a==Jn,v=f==Jn,w=a==f;if(w&&xl(r)){if(!xl(e))return!1;o=!0,d=!1}if(w&&!d)return s||(s=new hs),o||ix(r)?rx(r,e,t,n,i,s):tx(r,e,a,t,n,i,s);if(!(t&sx)){var O=d&&El.call(r,"__wrapped__"),p=v&&El.call(e,"__wrapped__");if(O||p){var C=O?r.value():r,G=p?e.value():e;return s||(s=new hs),i(C,G,t,n,s)}}return w?(s||(s=new hs),nx(r,e,t,n,i,s)):!1}Cl.exports=ax});var Rl=_((FR,ql)=>{var ux=Tl(),Il=Qe();function Pl(r,e,t,n,i){return r===e?!0:r==null||e==null||!Il(r)&&!Il(e)?r!==r&&e!==e:ux(r,e,t,n,Pl,i)}ql.exports=Pl});var Ll=_((BR,Ml)=>{var fx=Rl();function cx(r,e){return fx(r,e)}Ml.exports=cx});var ps=_((kR,Nl)=>{var lx=Ln(),hx=at();function px(r,e,t){(t!==void 0&&!hx(r[e],t)||t===void 0&&!(e in r))&&lx(r,e,t)}Nl.exports=px});var ds=_((sn,yt)=>{var dx=Ze(),Fl=typeof sn=="object"&&sn&&!sn.nodeType&&sn,jl=Fl&&typeof yt=="object"&&yt&&!yt.nodeType&&yt,mx=jl&&jl.exports===Fl,Ul=mx?dx.Buffer:void 0,Dl=Ul?Ul.allocUnsafe:void 0;function gx(r,e){if(e)return r.slice();var t=r.length,n=Dl?Dl(t):new r.constructor(t);return r.copy(n),n}yt.exports=gx});var Vn=_(($R,kl)=>{var Bl=as();function yx(r){var e=new r.constructor(r.byteLength);return new Bl(e).set(new Bl(r)),e}kl.exports=yx});var ms=_((zR,$l)=>{var vx=Vn();function wx(r,e){var t=e?vx(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}$l.exports=wx});var Yn=_((HR,zl)=>{function _x(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}zl.exports=_x});var Gl=_((WR,Wl)=>{var bx=er(),Hl=Object.create,Sx=function(){function r(){}return function(e){if(!bx(e))return{};if(Hl)return Hl(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();Wl.exports=Sx});var Xn=_((GR,Kl)=>{var xx=Qi(),Ax=xx(Object.getPrototypeOf,Object);Kl.exports=Ax});var gs=_((KR,Jl)=>{var Ox=Gl(),Ex=Xn(),Cx=tn();function Tx(r){return typeof r.constructor=="function"&&!Cx(r)?Ox(Ex(r)):{}}Jl.exports=Tx});var ys=_((JR,Yl)=>{var Ix=Sr(),Px=Xn(),qx=Qe(),Rx="[object Object]",Mx=Function.prototype,Lx=Object.prototype,Vl=Mx.toString,Nx=Lx.hasOwnProperty,jx=Vl.call(Object);function Ux(r){if(!qx(r)||Ix(r)!=Rx)return!1;var e=Px(r);if(e===null)return!0;var t=Nx.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Vl.call(t)==jx}Yl.exports=Ux});var vs=_((VR,Xl)=>{function Dx(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}Xl.exports=Dx});var Hr=_((YR,Zl)=>{var Fx=Nn(),Bx=Ln();function kx(r,e,t,n){var i=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var u=e[s],a=n?n(t[u],r[u],u,t,r):void 0;a===void 0&&(a=r[u]),i?Bx(t,u,a):Fx(t,u,a)}return t}Zl.exports=kx});var eh=_((XR,Ql)=>{function $x(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}Ql.exports=$x});var th=_((ZR,rh)=>{var zx=er(),Hx=tn(),Wx=eh(),Gx=Object.prototype,Kx=Gx.hasOwnProperty;function Jx(r){if(!zx(r))return Wx(r);var e=Hx(r),t=[];for(var n in r)n=="constructor"&&(e||!Kx.call(r,n))||t.push(n);return t}rh.exports=Jx});var vt=_((QR,nh)=>{var Vx=Zi(),Yx=th(),Xx=ct();function Zx(r){return Xx(r)?Vx(r,!0):Yx(r)}nh.exports=Zx});var sh=_((eM,ih)=>{var Qx=Hr(),eA=vt();function rA(r){return Qx(r,eA(r))}ih.exports=rA});var lh=_((rM,ch)=>{var oh=ps(),tA=ds(),nA=ms(),iA=Yn(),sA=gs(),ah=Xt(),uh=We(),oA=zn(),aA=ht(),uA=Pn(),fA=er(),cA=ys(),lA=rn(),fh=vs(),hA=sh();function pA(r,e,t,n,i,s,o){var u=fh(r,t),a=fh(e,t),f=o.get(a);if(f){oh(r,t,f);return}var d=s?s(u,a,t+"",r,e,o):void 0,v=d===void 0;if(v){var w=uh(a),O=!w&&aA(a),p=!w&&!O&&lA(a);d=a,w||O||p?uh(u)?d=u:oA(u)?d=iA(u):O?(v=!1,d=tA(a,!0)):p?(v=!1,d=nA(a,!0)):d=[]:cA(a)||ah(a)?(d=u,ah(u)?d=hA(u):(!fA(u)||uA(u))&&(d=sA(a))):v=!1}v&&(o.set(a,d),i(d,a,n,s,o),o.delete(a)),oh(r,t,d)}ch.exports=pA});var dh=_((tM,ph)=>{var dA=Gn(),mA=ps(),gA=Yi(),yA=lh(),vA=er(),wA=vt(),_A=vs();function hh(r,e,t,n,i){r!==e&&gA(e,function(s,o){if(i||(i=new dA),vA(s))yA(r,e,o,t,hh,n,i);else{var u=n?n(_A(r,o),s,o+"",r,e,i):void 0;u===void 0&&(u=s),mA(r,o,u)}},wA)}ph.exports=hh});var gh=_((nM,mh)=>{var bA=at(),SA=ct(),xA=jn(),AA=er();function OA(r,e,t){if(!AA(t))return!1;var n=typeof e;return(n=="number"?SA(t)&&xA(e,t.length):n=="string"&&e in t)?bA(t[e],r):!1}mh.exports=OA});var vh=_((iM,yh)=>{var EA=$n(),CA=gh();function TA(r){return EA(function(e,t){var n=-1,i=t.length,s=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(s=r.length>3&&typeof s=="function"?(i--,s):void 0,o&&CA(t[0],t[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var u=t[n];u&&r(e,u,n,s)}return e})}yh.exports=TA});var _h=_((sM,wh)=>{var IA=dh(),PA=vh(),qA=PA(function(r,e,t){IA(r,e,t)});wh.exports=qA});var ws=_((oM,bh)=>{function RA(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}bh.exports=RA});var xh=_((aM,Sh)=>{function MA(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}Sh.exports=MA});var Oh=_((uM,Ah)=>{var LA=Hr(),NA=nn();function jA(r,e){return r&&LA(e,NA(e),r)}Ah.exports=jA});var Ch=_((fM,Eh)=>{var UA=Hr(),DA=vt();function FA(r,e){return r&&UA(e,DA(e),r)}Eh.exports=FA});var Ih=_((cM,Th)=>{var BA=Hr(),kA=Kn();function $A(r,e){return BA(r,kA(r),e)}Th.exports=$A});var _s=_((lM,Ph)=>{var zA=Yt(),HA=Xn(),WA=Kn(),GA=cs(),KA=Object.getOwnPropertySymbols,JA=KA?function(r){for(var e=[];r;)zA(e,WA(r)),r=HA(r);return e}:GA;Ph.exports=JA});var Rh=_((hM,qh)=>{var VA=Hr(),YA=_s();function XA(r,e){return VA(r,YA(r),e)}qh.exports=XA});var bs=_((pM,Mh)=>{var ZA=fs(),QA=_s(),eO=vt();function rO(r){return ZA(r,eO,QA)}Mh.exports=rO});var Nh=_((dM,Lh)=>{var tO=Object.prototype,nO=tO.hasOwnProperty;function iO(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&nO.call(r,"index")&&(t.index=r.index,t.input=r.input),t}Lh.exports=iO});var Uh=_((mM,jh)=>{var sO=Vn();function oO(r,e){var t=e?sO(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}jh.exports=oO});var Fh=_((gM,Dh)=>{var aO=/\w*$/;function uO(r){var e=new r.constructor(r.source,aO.exec(r));return e.lastIndex=r.lastIndex,e}Dh.exports=uO});var Hh=_((yM,zh)=>{var Bh=$r(),kh=Bh?Bh.prototype:void 0,$h=kh?kh.valueOf:void 0;function fO(r){return $h?Object($h.call(r)):{}}zh.exports=fO});var Gh=_((vM,Wh)=>{var cO=Vn(),lO=Uh(),hO=Fh(),pO=Hh(),dO=ms(),mO="[object Boolean]",gO="[object Date]",yO="[object Map]",vO="[object Number]",wO="[object RegExp]",_O="[object Set]",bO="[object String]",SO="[object Symbol]",xO="[object ArrayBuffer]",AO="[object DataView]",OO="[object Float32Array]",EO="[object Float64Array]",CO="[object Int8Array]",TO="[object Int16Array]",IO="[object Int32Array]",PO="[object Uint8Array]",qO="[object Uint8ClampedArray]",RO="[object Uint16Array]",MO="[object Uint32Array]";function LO(r,e,t){var n=r.constructor;switch(e){case xO:return cO(r);case mO:case gO:return new n(+r);case AO:return lO(r,t);case OO:case EO:case CO:case TO:case IO:case PO:case qO:case RO:case MO:return dO(r,t);case yO:return new n;case vO:case bO:return new n(r);case wO:return hO(r);case _O:return new n;case SO:return pO(r)}}Wh.exports=LO});var Jh=_((wM,Kh)=>{var NO=mt(),jO=Qe(),UO="[object Map]";function DO(r){return jO(r)&&NO(r)==UO}Kh.exports=DO});var Zh=_((_M,Xh)=>{var FO=Jh(),BO=Vt(),Vh=Wn(),Yh=Vh&&Vh.isMap,kO=Yh?BO(Yh):FO;Xh.exports=kO});var ep=_((bM,Qh)=>{var $O=mt(),zO=Qe(),HO="[object Set]";function WO(r){return zO(r)&&$O(r)==HO}Qh.exports=WO});var ip=_((SM,np)=>{var GO=ep(),KO=Vt(),rp=Wn(),tp=rp&&rp.isSet,JO=tp?KO(tp):GO;np.exports=JO});var fp=_((xM,up)=>{var VO=Gn(),YO=xh(),XO=Nn(),ZO=Oh(),QO=Ch(),eE=ds(),rE=Yn(),tE=Ih(),nE=Rh(),iE=ls(),sE=bs(),oE=mt(),aE=Nh(),uE=Gh(),fE=gs(),cE=We(),lE=ht(),hE=Zh(),pE=er(),dE=ip(),mE=nn(),gE=vt(),yE=1,vE=2,wE=4,sp="[object Arguments]",_E="[object Array]",bE="[object Boolean]",SE="[object Date]",xE="[object Error]",op="[object Function]",AE="[object GeneratorFunction]",OE="[object Map]",EE="[object Number]",ap="[object Object]",CE="[object RegExp]",TE="[object Set]",IE="[object String]",PE="[object Symbol]",qE="[object WeakMap]",RE="[object ArrayBuffer]",ME="[object DataView]",LE="[object Float32Array]",NE="[object Float64Array]",jE="[object Int8Array]",UE="[object Int16Array]",DE="[object Int32Array]",FE="[object Uint8Array]",BE="[object Uint8ClampedArray]",kE="[object Uint16Array]",$E="[object Uint32Array]",be={};be[sp]=be[_E]=be[RE]=be[ME]=be[bE]=be[SE]=be[LE]=be[NE]=be[jE]=be[UE]=be[DE]=be[OE]=be[EE]=be[ap]=be[CE]=be[TE]=be[IE]=be[PE]=be[FE]=be[BE]=be[kE]=be[$E]=!0;be[xE]=be[op]=be[qE]=!1;function Zn(r,e,t,n,i,s){var o,u=e&yE,a=e&vE,f=e&wE;if(t&&(o=i?t(r,n,i,s):t(r)),o!==void 0)return o;if(!pE(r))return r;var d=cE(r);if(d){if(o=aE(r),!u)return rE(r,o)}else{var v=oE(r),w=v==op||v==AE;if(lE(r))return eE(r,u);if(v==ap||v==sp||w&&!i){if(o=a||w?{}:fE(r),!u)return a?nE(r,QO(o,r)):tE(r,ZO(o,r))}else{if(!be[v])return i?r:{};o=uE(r,v,u)}}s||(s=new VO);var O=s.get(r);if(O)return O;s.set(r,o),dE(r)?r.forEach(function(G){o.add(Zn(G,e,t,G,r,s))}):hE(r)&&r.forEach(function(G,K){o.set(K,Zn(G,e,t,K,r,s))});var p=f?a?sE:iE:a?gE:mE,C=d?void 0:p(r);return YO(C||r,function(G,K){C&&(K=G,G=r[K]),XO(o,K,Zn(G,e,t,K,r,s))}),o}up.exports=Zn});var lp=_((AM,cp)=>{function zE(r,e,t){var n=-1,i=r.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++n<i;)s[n]=r[n+e];return s}cp.exports=zE});var pp=_((OM,hp)=>{var HE=Bi(),WE=lp();function GE(r,e){return e.length<2?r:HE(r,WE(e,0,-1))}hp.exports=GE});var mp=_((EM,dp)=>{var KE=Jt(),JE=ws(),VE=pp(),YE=Mn();function XE(r,e){return e=KE(e,r),r=VE(r,e),r==null||delete r[YE(JE(e))]}dp.exports=XE});var yp=_((CM,gp)=>{var ZE=ys();function QE(r){return ZE(r)?void 0:r}gp.exports=QE});var wp=_((TM,vp)=>{var eC=Hn();function rC(r){var e=r==null?0:r.length;return e?eC(r,1):[]}vp.exports=rC});var bp=_((IM,_p)=>{var tC=wp(),nC=Ki(),iC=Ji();function sC(r){return iC(nC(r,void 0,tC),r+"")}_p.exports=sC});var xp=_((PM,Sp)=>{var oC=Kt(),aC=fp(),uC=mp(),fC=Jt(),cC=Hr(),lC=yp(),hC=bp(),pC=bs(),dC=1,mC=2,gC=4,yC=hC(function(r,e){var t={};if(r==null)return t;var n=!1;e=oC(e,function(s){return s=fC(s,r),n||(n=s.length>1),s}),cC(r,pC(r),t),n&&(t=aC(t,dC|mC|gC,lC));for(var i=e.length;i--;)uC(t,e[i]);return t});Sp.exports=yC});var Op=_((qM,Ap)=>{var vC=Yt(),wC=Hn(),_C=Yn(),bC=We();function SC(){var r=arguments.length;if(!r)return[];for(var e=Array(r-1),t=arguments[0],n=r;n--;)e[n-1]=arguments[n];return vC(bC(t)?_C(t):[t],wC(e,1))}Ap.exports=SC});var Cp=_((RM,Ep)=>{Ep.exports=function(e){var t=function(ne,E){var ee=ne<<E|ne>>>32-E;return ee},n=function(ne){var E="",ee,J;for(ee=7;ee>=0;ee--)J=ne>>>ee*4&15,E+=J.toString(16);return E},i,s,o,u=new Array(80),a=1732584193,f=4023233417,d=2562383102,v=271733878,w=3285377520,O,p,C,G,K,te;e=unescape(encodeURIComponent(e));var D=e.length,Q=[];for(s=0;s<D-3;s+=4)o=e.charCodeAt(s)<<24|e.charCodeAt(s+1)<<16|e.charCodeAt(s+2)<<8|e.charCodeAt(s+3),Q.push(o);switch(D%4){case 0:s=2147483648;break;case 1:s=e.charCodeAt(D-1)<<24|8388608;break;case 2:s=e.charCodeAt(D-2)<<24|e.charCodeAt(D-1)<<16|32768;break;case 3:s=e.charCodeAt(D-3)<<24|e.charCodeAt(D-2)<<16|e.charCodeAt(D-1)<<8|128;break}for(Q.push(s);Q.length%16!==14;)Q.push(0);for(Q.push(D>>>29),Q.push(D<<3&4294967295),i=0;i<Q.length;i+=16){for(s=0;s<16;s++)u[s]=Q[i+s];for(s=16;s<=79;s++)u[s]=t(u[s-3]^u[s-8]^u[s-14]^u[s-16],1);for(O=a,p=f,C=d,G=v,K=w,s=0;s<=19;s++)te=t(O,5)+(p&C|~p&G)+K+u[s]+1518500249&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=20;s<=39;s++)te=t(O,5)+(p^C^G)+K+u[s]+1859775393&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=40;s<=59;s++)te=t(O,5)+(p&C|p&G|C&G)+K+u[s]+2400959708&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=60;s<=79;s++)te=t(O,5)+(p^C^G)+K+u[s]+3395469782&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;a=a+O&4294967295,f=f+p&4294967295,d=d+C&4294967295,v=v+G&4294967295,w=w+K&4294967295}return te=n(a)+n(f)+n(d)+n(v)+n(w),te.toLowerCase()}});var Dp=_((MM,Up)=>{var Ip=Cp();function Pp(r){return r.map(e=>e&&e.uri).filter(Boolean)}function Ts(r){return["memberSet","memberList","memberChoice"].find(e=>r[e])}function Tp(r){let e=Ts(r),t=r[e]?Pp(r[e]):[];return{[t.length>1?e:"memberSet"]:t.map(n=>({uri:n}))}}function qp(r){let{from:e,to:t,type:n}=r,i={from:Tp(e||{}),to:Tp(t||{}),type:[n&&n[0]||"http://www.w3.org/2004/02/skos/core#mappingRelation"]};for(let s of["from","to"])if((i[s][Ts(i[s])]||[]).length==0){let o=r[s+"Scheme"];o&&o.uri&&(i[s+"Scheme"]={uri:o.uri})}return i}function Rp(r){let{from:e,to:t}=r,n=[e,t].filter(Boolean).map(i=>Pp(i[Ts(i)]||[]));return[].concat(...n).sort()}function Mp(r){let e=JSON.stringify(qp(r),["from","fromScheme","to","toScheme","type","memberSet","memberList","memberChoice","uri"]);return"urn:jskos:mapping:content:"+Ip(e+`
9
- `)}function Lp(r){let e=JSON.stringify(Rp(r));return"urn:jskos:mapping:members:"+Ip(e+`
10
- `)}function Cs(r){let e=(r.identifier||[]).filter(t=>t&&!t.startsWith("urn:jskos:mapping:")).concat([Lp(r),Mp(r)]).sort();return Object.assign({},r,{identifier:e})}function Np(r,e,t){r=r&&Cs(r),e=e&&Cs(e);let n=r&&r.identifier?r.identifier.find(s=>s.startsWith(t)):null,i=e&&e.identifier?e.identifier.find(s=>s.startsWith(t)):null;return n==i}function jp(r,e){return Np(r,e,"urn:jskos:mapping:content:")}var AC=jp;function OC(r,e){return Np(r,e,"urn:jskos:mapping:members:")}Up.exports={mappingContent:qp,mappingMembers:Rp,mappingContentIdentifier:Mp,mappingMembersIdentifier:Lp,addMappingIdentifiers:Cs,compareMappings:jp,compareMappingContent:AC,compareMappingMembers:OC}});var Is=_((LM,Bp)=>{function Fp(r,e,t){var n=Array.prototype.slice,i=typeof Object.keys=="function"?Object.keys:function(f){var d=[];for(var v in f)d.push(v);return d},s=function(f,d){return f===d?!0:f instanceof Date&&d instanceof Date?f.getTime()===d.getTime():typeof f!="object"&&typeof d!="object"?f==d:a(f,d)};function o(f){return f==null}function u(f){return Object.prototype.toString.call(f)=="[object Arguments]"}function a(f,d){if(o(f)||o(d)||f.prototype!==d.prototype)return!1;if(u(f))return u(d)?(f=n.call(f),d=n.call(d),s(f,d)):!1;try{var v=i(f),w=i(d),O,p}catch(C){return!1}if(v.length!=w.length)return!1;for(v.sort(),w.sort(),p=v.length-1;p>=0;p--)if(v[p]!=w[p])return!1;for(p=v.length-1;p>=0;p--)if(O=v[p],t){let C=t(f[O],d[O],O);if(C===void 0&&(C=Fp(f[O],d[O])),!C)return!1}else if(!s(f[O],d[O]))return!1;return!0}return s(r,e)}Bp.exports={get:(r,e,t=void 0)=>{let n=s=>String.prototype.split.call(e,s).filter(Boolean).reduce((o,u)=>o!=null?o[u]:o,r),i=n(/[,[\]]+?/)||n(/[,[\].]+?/);return i===void 0||i===r?t:i},pick:(r,e)=>e.reduce((t,n)=>(r&&r.hasOwnProperty(n)&&(t[n]=r[n]),t),{}),forOwn:(r,e)=>{for(let t in r)r.hasOwnProperty(t)&&e(r[t],t)},isEqualWith:Fp,intersection:(...r)=>r.reduce((e,t)=>e.filter(n=>t.includes(n))),isObject:r=>typeof r=="object"&&r!==null,isString:r=>!!(r&&typeof r.valueOf()=="string"),union:(r,e)=>[...new Set([...r,...e])],unionWith:(r,e,t)=>[...r,...e].reduce((n,i)=>(n.findIndex(s=>t(s,i))!==-1||n.push(i),n),[]),omitMod:(r,e)=>{for(let t of e){typeof t=="string"&&(t=t.split("."));for(let n=0;n<t.length-1;n++)r=r[t[n]];delete r[t.pop()]}}}});var Ps=_((NM,EC)=>{EC.exports=[{RELEVANCE:"very high",broader:[{uri:"http://www.w3.org/2004/02/skos/core#closeMatch"}],definition:{de:["gleiche Bedeutung"],en:["same meaning"]},notation:["="],prefLabel:{ar:"\u062A\u0637\u0627\u0628\u0642 \u062A\u0627\u0645",be:"\u0434\u0430\u043A\u043B\u0430\u0434\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u0446\u044C","be-tarask":"\u0434\u0430\u043A\u043B\u0430\u0434\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",bn:"\u09B9\u09C1\u09AC\u09C1\u09B9\u09C1 \u09AE\u09BF\u09B2",bs:"ta\u010Dno podudaranje",ca:"equival\xE8ncia exacta",cs:"p\u0159esn\xE1 shoda",da:"exact match",de:"exakte \xDCbereinstimmung",en:"exact match",eo:"ekzakta ekvivalento",es:"equivalencia exacta",fi:"vastaava k\xE4site",fr:"\xE9quivalence exacte",gl:"correspondencia exacta",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05DE\u05D3\u05D5\u05D9\u05E7\u05EA",hu:"pontos egyez\xE9s",id:"sama persis",it:"corrispondenza esatta",ja:"\u5B8C\u5168\u4E00\u81F4",lv:"tie\u0161a sakrit\u012Bba",mk:"\u0442\u043E\u0447\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan tepat","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u062A\u06A4\u062A",nb:"eksakt samsvar",nl:"exacte match",nn:"eksakt samsvar",pl:"dok\u0142adne dopasowanie",pt:"correspond\xEAncia exata",ro:"echivalentul exact",ru:"\u0442\u043E\u0447\u043D\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sq:"p\xEBrputhje e p\xEBrpikt\xEB",sr:"\u0442\u0430\u0447\u043D\u043E \u043F\u043E\u0434\u0443\u0434\u0430\u0440\u0430\u045A\u0435",sv:"exakt tr\xE4ff",tr:"tam e\u015Fle\u015Fme",uk:"\u0442\u043E\u0447\u043D\u0430 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u043D\u0456\u0441\u0442\u044C",ur:"\u0628\u0627\u0644\u06A9\u0644 \u062F\u0631\u0633\u062A \u062C\u0648\u0691",zh:"\u7CBE\u78BA\u5339\u914D","zh-cn":"\u7CBE\u786E\u5339\u914D","zh-hans":"\u7CBE\u786E\u5339\u914D","zh-hant":"\u7CBE\u78BA\u5339\u914D"},SHORT:"exact",uri:"http://www.w3.org/2004/02/skos/core#exactMatch"},{RELEVANCE:"high",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["in etwa gleiche Bedeutung"],en:["same general idea but not fully identical meaning"]},notation:["\u2248"],prefLabel:{ar:"\u062A\u0637\u0627\u0628\u0642 \u0642\u0631\u064A\u0628","be-tarask":"\u0431\u043B\u0456\u0437\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"equival\xE8ncia inexacta",de:"hohe \xDCbereinstimmung",en:"close match",eo:"proksima kongrua\u0135o",es:"equivalencia inexacta",fi:"l\xE4hes vastaava k\xE4site",fr:"quasi-\xE9quivalence",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E7\u05E8\u05D5\u05D1\u05D4",hu:"kv\xE1zi-egyen\xE9rt\xE9k\u0171s\xE9g",it:"corrispondenza parziale",mk:"\u0431\u043B\u0438\u0441\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan dekat","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u062F\u06A9\u062A",nb:"n\xE6rt samsvar",nl:"nabije match",nn:"n\xE6rt samsvar",pl:"cz\u0119\u015Bciowe dopasowanie",pt:"correspond\xEAncia pr\xF3xima",ru:"\u0431\u043B\u0438\u0437\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0431\u043B\u0438\u0441\u043A\u043E \u043F\u043E\u043A\u043B\u0430\u043F\u0430\u045A\u0435",sv:"n\xE4ra matchning",tr:"yak\u0131n e\u015Fle\u015Fme","zh-hans":"\u9AD8\u5EA6\u5339\u914D"},SHORT:"close",uri:"http://www.w3.org/2004/02/skos/core#closeMatch"},{RELEVANCE:"medium",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["umfassendere Bedeutung"],en:["broader meaning"]},notation:[">"],prefLabel:{"be-tarask":"\u0448\u044B\u0440\u043E\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"relaci\xF3 llunyana",cs:"\u0161ir\u0161\xED koncept",de:"allgemeinere Bedeutung",en:"broad match",eo:"malstrikta kongruo",fi:"vastaava laajempi k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E8\u05D7\u05D1\u05D4",it:"corrispondenza con termine pi\xF9 generico",ja:"\u90E8\u5206\u4E00\u81F4",mk:"\u043F\u043E\u0448\u0438\u0440\u043E\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",nb:"bredere samsvar",nl:"brede match",nn:"breitt samsvar",pl:"dopasowanie poj\u0119cia o szerszym znaczeniu","pt-br":"correspond\xEAncia gen\xE9rica",ru:"\u0431\u043E\u043B\u0435\u0435 \u0448\u0438\u0440\u043E\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0443 \u0448\u0438\u0440\u0435\u043C \u0441\u043C\u0438\u0441\u043B\u0443",sv:"bred tr\xE4ff","zh-hans":"\u5E7F\u6CDB\u5339\u914D"},related:[{uri:"http://www.w3.org/2004/02/skos/core#narrowMatch"}],SHORT:"broad",uri:"http://www.w3.org/2004/02/skos/core#broadMatch"},{RELEVANCE:"medium",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{en:["more specific meaning"]},notation:["<"],prefLabel:{"be-tarask":"\u0432\u0443\u0437\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"relaci\xF3 estreta",de:"spezifischere Bedeutung",en:"narrow match",eo:"strikta kongruo",fi:"vastaava suppeampi k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E6\u05E8\u05D4",it:"corrispondenza con termine pi\xF9 specifico",mk:"\u043F\u043E\u0442\u0435\u0441\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",nb:"smalere samsvar",nl:"nauwe match",nn:"snevert samsvar",pl:"dopasowanie poj\u0119cia o w\u0119\u017Cszym znaczeniu","pt-br":"correspond\xEAncia aproximada",ru:"\u0431\u043E\u043B\u0435\u0435 \u0443\u0437\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0443 \u0443\u0436\u0435\u043C \u0441\u043C\u0438\u0441\u043B\u0443",sv:"smal tr\xE4ff",ur:"\u0646\u06CC\u0631\u0648 \u0645\u06CC\u0686","zh-hans":"\u6709\u9650\u5339\u914D"},related:[{uri:"http://www.w3.org/2004/02/skos/core#broadMatch"}],SHORT:"narrow",uri:"http://www.w3.org/2004/02/skos/core#narrowMatch"},{RELEVANCE:"low",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["assoziative Verkn\xFCpfung unterschiedlicher Bedeutungen"],en:["associative link between meanings"]},notation:["~"],prefLabel:{"be-tarask":"\u0437\u044C\u0432\u044F\u0437\u0430\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"parella relacionada",de:"verwandte Bedeutung",en:"related match",eo:"rilata kongruo",fi:"liittyv\xE4 k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E7\u05E9\u05D5\u05E8\u05D4",it:"corrispondenza correlata",lv:"saist\u012Bta sakrit\u012Bba",mk:"\u043F\u043E\u0432\u0440\u0437\u0430\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan berkaitan","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u0628\u0631\u06A9\u0627\u0621\u064A\u062A\u0646",nb:"relatert samsvar",nl:"gerelateerde match",pl:"dopasowanie poj\u0119cia o powi\u0105zanym znaczeniu",ru:"\u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0442\u0438\u0432\u043D\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",tr:"ili\u015Fkili benze\u015Fme",ur:"\u0645\u062A\u0639\u0644\u0642\u06C1 \u0645\u06CC\u0686",vec:"parente\u0142a re\u0142asionada","zh-hans":"\u5173\u8054\u5339\u914D"},SHORT:"related",uri:"http://www.w3.org/2004/02/skos/core#relatedMatch"},{RELEVANCE:"generic",definition:{de:["unbekannter Bedeutungszusammenhang"],en:["unknown type of link between meanings"]},notation:["\u2192"],prefLabel:{ar:"\u0646\u0648\u0639 \u0639\u0644\u0627\u0642\u0629 \u0627\u0644\u062A\u0637\u0628\u064A\u0642",be:"\u0445\u0430\u0440\u0430\u043A\u0442\u044D\u0440\u043D\u0430\u044F \u0430\u0434\u043D\u043E\u0441\u0456\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u043D\u044F","be-tarask":"\u0445\u0430\u0440\u0430\u043A\u0442\u044D\u0440\u043D\u0430\u044F \u0430\u0434\u043D\u043E\u0441\u0456\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u044C\u043D\u044F",ca:"relaci\xF3 de mapatge",de:"allgemeine Mapping-Relation",en:"SKOS generic mapping relation",fi:"SKOS mappaussuhde",fr:"lien de correspondance SKOS",he:"\u05D9\u05D7\u05E1 \u05DE\u05D9\u05E4\u05D5\u05D9 \u05DB\u05DC\u05DC\u05D9",id:"relasi pemetaan",ja:"SKOS\u4E00\u822C\u30DE\u30C3\u30D4\u30F3\u30B0\u95A2\u4FC2",mk:"\u043F\u0440\u0435\u0441\u043B\u0438\u043A\u0443\u0432\u0430\u0447\u043A\u0438 \u043E\u0434\u043D\u043E\u0441",nb:"SKOS generisk mappingrelasjon","pt-br":"rela\xE7\xE3o gen\xE9rica de mapeamento",sr:"\u0440\u0435\u043B\u0430\u0446\u0438\u0458\u0430 \u043C\u0430\u043F\u0438\u0440\u0430\u045A\u0430",sv:"mappnings relation",zh:"\u6620\u5C04\u95DC\u4FC2","zh-hant":"\u6620\u5C04\u95DC\u4FC2"},SHORT:"",uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}]});var $p=_((jM,kp)=>{var CC=Ps(),ei={Concept:{type:["http://www.w3.org/2004/02/skos/core#Concept"]},ConceptScheme:{type:["http://www.w3.org/2004/02/skos/core#ConceptScheme"]},ConceptMapping:{type:CC.map(r=>r.uri)},ConceptOccurrence:{type:["http://purl.org/cld/cdtype/CatalogueOrIndex"]},Registry:{type:["http://www.w3.org/ns/dcat#Catalog"]},Distribution:{type:["http://www.w3.org/ns/dcat#Distribution"]},Concordance:{type:["http://rdfs.org/ns/void#Linkset","http://rdf-vocabulary.ddialliance.org/xkos#Correspondence"]},Resource:{},Item:{},ConceptBundle:{},Annotation:{type:["Annotation","http://www.w3.org/ns/oa#Annotation"]}},Qn=Object.keys(ei).reduce((r,e)=>{for(let t of ei[e].type||[])r[t]=e;return r},{});function TC(r,e=!1){var t;if(typeof r=="string"&&r)r in Qn?t=Qn[r]:(r=r.toLowerCase().replace(/s$/,""),t=Object.keys(ei).find(n=>{let i=n.toLowerCase();if(i===r||i==="concept"+r)return!0}));else if(typeof r=="object"&&r.type){let n=Array.isArray(r.type)?r.type:[r.type];for(let i of n)if(i in Qn){t=Qn[i];break}}return e&&t?t.toLowerCase().replace(/^concept(.+)/,"$1"):t}kp.exports={objectTypes:ei,guessObjectType:TC}});var Rs=_((UM,zp)=>{var IC=/[\\^$.*+?()[\]{}|]/g,PC=r=>r.replace(IC,"\\$&"),qC=/[%ÄÖÜäöü ]/g,qs=class{constructor(e={}){if(Object.assign(this,e),this.notationPattern||(this.notationPattern=".+"),!this.uriPattern&&this.namespace){this.uriPattern="^"+PC(this.namespace);let t=this.notationPattern.replace(qC,encodeURI);this.uriPattern+="("+t+")$"}this.NOTATION_REGEX=RegExp("^"+this.notationPattern+"$"),this.uriPattern&&(this.URI_REGEX=RegExp(this.uriPattern))}isValidNotation(e){return this.NOTATION_REGEX.exec(e)}notationFromUri(e){if(this.URI_REGEX){let t=this.URI_REGEX.exec(e);if(t)return decodeURI(t[1])}}uriFromNotation(e){if(this.uriPattern)return e=encodeURI(e),this.uriPattern.replace(/^\^|\$$/g,"").replace(/\\/g,"").replace(/\(.*\)/,e)}conceptFromUri(e,t={}){let n=this.notationFromUri(e);if(n===void 0)return;let i={uri:e,notation:[n]};return t.inScheme&&(i.inScheme=[{uri:this.uri}]),t.topConcept&&(i.topConceptOf=[{uri:this.uri}]),i}conceptFromNotation(e,t){if(this.isValidNotation(e))return this.conceptFromUri(this.uriFromNotation(e),t)}};zp.exports=qs});var Ms=_((DM,Wp)=>{var RC=Is(),ri={store:null,path:"",defaults:["en"],getLanguages:Hp,selectLanguage:MC};function Hp(){return RC.get(ri.store,ri.path)||ri.defaults}function MC(r){if(!r)return null;for(let e of Hp())if(r[e])return e;for(let e of Object.keys(r))if(e!="-")return e;return null}Wp.exports=ri});var ed=_((FM,Qp)=>{var ie=Is(),LC=r=>/^[A-Z]*$/.test(r),wt=(r,e)=>e.split(".").reduce((t,n)=>t&&t[n]?t[n]:null,r),NC=r=>((r instanceof Array?r:[r]).forEach(t=>{t["@context"]="https://gbv.github.io/jskos/context.json"}),r),Us=r=>(Object.keys(r).forEach(e=>{LC(e)||e.startsWith("_")?delete r[e]:r[e]!=null&&typeof r[e]=="object"&&(r[e]=Us(r[e]))}),r),jC=Us,ti=(r,e=[],t=!0)=>{e=e.concat(["ancestors","narrower","broader","mappings","memberList","TOPCONCEPTS","MAPPINGS","PROVIDER"]);let n=Array.isArray(r)?[]:{};for(let i in r)if(!(t&&i[0]=="_")){if(e.includes(i))if(r[i]&&Array.isArray(r[i])){r[i].length>0?n[i]=[null]:n[i]=[];continue}else{n[i]=null;continue}if(i=="inScheme"){let s=[];for(let o of r.inScheme){let u={uri:o.uri};o.notation&&(u.notation=o.notation),o.prefLabel&&(u.prefLabel=o.prefLabel),s.push(u)}n.inScheme=s;continue}r[i]!=null&&typeof r[i]=="object"?n[i]=ti(r[i]):n[i]=r[i]}return n},UC=ti,Ls=r=>r?(r.uri?[r.uri]:[]).concat(r.identifier||[]):[],Or=(r,e)=>{if(r==null&&e==null)return!0;let t=s=>s.replace("http://").replace("https://"),n=Ls(r).map(t),i=Ls(e).map(t);return ie.intersection(n,i).length>0},DC=Or,FC=Or,BC=Or,kC=r=>ie.get(r,"type",[]).includes("http://www.w3.org/2004/02/skos/core#Concept")||ie.get(r,"inScheme")!=null||ie.get(r,"topConceptOf")!=null,Gp=r=>ie.get(r,"type",[]).includes("http://www.w3.org/2004/02/skos/core#ConceptScheme"),Kp=(r,e)=>{if(!r||!e)return!1;for(let t of e)if(Or(r,t))return!0;return!1},$C=Kp,zC=(r,e=!1)=>r.sort((t,n)=>{let i=ie.get(t,"notation[0]"),s=ie.get(n,"notation[0]");if(i&&s&&(i=i.toLowerCase(),s=s.toLowerCase()),e&&(i=parseFloat(i)||i,s=parseFloat(s)||s),(!i||!s||i==s)&&(i=t.uri,s=n.uri),i&&s){if(i>s)return 1;if(i<s)return-1}return 0}),HC=r=>{let e=["notation[0]",["prefLabel.de","prefLabel.en"],"uri"];return r.sort((t,n)=>{for(let i of e){let s,o;if(Array.isArray(i))for(let u of i)s=s||ie.get(t,u),o=o||ie.get(n,u);else s=ie.get(t,i),o=ie.get(n,i);if(s!=null&&o!=null){if(s=s.toLowerCase(),o=o.toLowerCase(),s>o)return 1;if(s<o)return-1}}return 0})},WC=r=>{let e=ie.pick(ti(r),["from","to","fromScheme","toScheme","creator","contributor","type","created","modified","note","identifier","uri","partOf","mappingRelevance"]);for(let t of[e.from,e.to])ie.forOwn(t,(n,i)=>{let s=[];for(let o of n)s.push(ie.pick(o,["uri","notation"]));t[i]=s});return e.fromScheme&&(e.fromScheme=ie.pick(e.fromScheme,["uri","notation"])),e.toScheme&&(e.toScheme=ie.pick(e.toScheme,["uri","notation"])),e.partOf&&(e.partOf=e.partOf.map(t=>ie.pick(t,["uri"]))),e},Jp=Ps(),un=function(r){for(let e of Jp)if(r==e.uri)return e;return null},Vp=un("http://www.w3.org/2004/02/skos/core#mappingRelation"),GC=function(r,e=Vp){let t;return Array.isArray(r)&&r.length>0?t=r[0]:t=r,un(t)||e},KC=(r,e={})=>{let{language:t}=e,n=wt(r,"from.memberSet.0.notation.0"),i=wt(r,"to.memberSet.0.notation.0");n=n!==null?n:"",i=i!==null?i:"";let s=un(wt(r,"type.0"));s=s?s.SHORT:"";let o=_t(wt(r,"from.memberSet.0"),{language:t,fallbackToUri:!1})||"",u=_t(wt(r,"to.memberSet.0"),{language:t,fallbackToUri:!1})||"",a=_t(wt(r,"creator.0"),{language:t,fallbackToUri:!1})||"";return{fromNotation:n,toNotation:i,fromLabel:o,toLabel:u,type:s,creator:a}},JC=(r={})=>{let e=r.delimiter||",",t=r.quoteChar||'"',n=r.lineTerminator||`
11
- `,i=t+t,s=o=>t+(o==null?"":o.split(t).join(i))+t;return o=>o.map(s).join(e)+n},Wr=(r,e)=>{let t=[];for(let n of["from","to"])(e==null||n===e)&&(t=t.concat(ie.get(r,`${n}.memberSet`)||ie.get(r,`${n}.memberChoice`)||ie.get(r,`${n}.memberList`)||[]));return t.filter(n=>n!=null)},VC=(r={})=>{let e=JC(r),t=r.language||"en";r.type==null&&(r.type=!0);let n=o=>{o=o||[];let u=[];for(let a of["from","to"]){r.schemes&&u.push(`${a}Scheme`);let f=Math.max(...o.map(d=>Wr(d,a).length),1);for(let d=0;d<f;d+=1)u.push(`${a}Notation${d?d+1:""}`),r.labels&&u.push(`${a}Label${d?d+1:""}`)}return r.type&&u.push("type"),r.creator&&u.push("creator"),e(u)},i=(o,u={})=>{let a=[];for(let f of["from","to"]){r.schemes&&a.push(ie.get(o,`${f}Scheme.notation[0]`,""));let d=Wr(o,f),v=u[`${f}Count`];v==null&&(v=d.length),v=Math.max(v,1);for(let w=0;w<v;w+=1)a.push(ie.get(d[w],"notation[0]","")),r.labels&&a.push(_t(d[w],{language:t,fallbackToUri:!1}))}return r.type&&a.push(ie.get(un(ie.get(o,"type[0]")),"SHORT","")),r.creator&&a.push(_t(ie.get(o,"creator[0]"),{language:t,fallbackToUri:!1})),e(a)};return{header:n,fromMapping:i,fromMappings:(o,u={header:!0})=>{let a="";u.header&&(a+=n(o));let f={fromCount:Math.max(...o.map(d=>Wr(d,"from").length)),toCount:Math.max(...o.map(d=>Wr(d,"to").length))};for(let d of o)a+=i(d,f);return a}}};function YC(r,e){return ie.isEqualWith(r,e,(t,n,i)=>{let s={[i]:t},o={[i]:n};if(i=="from"||i=="to")return ie.isEqualWith(Object.getOwnPropertyNames(ie.get(t,i,{})),Object.getOwnPropertyNames(ie.get(n,i,{})))?ie.isEqualWith(Wr(s,i),Wr(o,i),(u,a,f)=>{if(f!=null)return Or(u,a)}):!1;if(i=="fromScheme"||i=="toScheme")return Or(t,n)})}var{objectTypes:XC,guessObjectType:Ns}=$p(),ZC=(r,e)=>{let t=Ns(r),n=Ns(e);return!(t&&n&&t!=n)},Yp=r=>{Array.isArray(r)&&r.sort((e,t)=>e===null?1:t===null?-1:0)},Xp=(r,e)=>(!r||!e||((Array.isArray(r.identifier)||Array.isArray(e.identifier))&&(r.identifier=ie.union(r.identifier||[],e.identifier||[])),!r.uri&&e.uri&&(r.uri=e.uri),r.uri&&e.uri&&r.uri!=e.uri&&!(r.identifier||[]).includes(e.uri)&&(r.identifier=(r.identifier||[]).concat([e.uri])),Array.isArray(r.identifier)&&r.uri&&(r.identifier=r.identifier.filter(t=>t!==r.uri)),(r.identifier||[]).length==0&&delete r.identifier,Yp(r.identifier)),r),Zp=(r,e,t)=>{if(!r||!e)return r||e;t=t||{};let n=t._path||"",i=t.detectMismatch||[],s=t.skipPaths||[],o={};return ie.forOwn(r,(u,a)=>{if(!s.includes(n+a))if(Array.isArray(u)&&Array.isArray(e[a]))o[a]=ie.unionWith(u,e[a],(f,d)=>ie.isObject(f)&&ie.isObject(d)?Or(f,d):f===d),Yp(o[a]);else if(ie.isObject(u)&&ie.isObject(e[a]))o[a]=Zp(u,e[a],Object.assign({_path:`${n}${a}.`},t));else{if(u&&e[a]&&i.includes(n+a)&&!ie.isEqualWith(u,e[a]))throw new Error("Property mismatch in "+n+a);o[a]=u}}),ie.forOwn(e,(u,a)=>{r[a]||(o[a]=u)}),n==""&&ie.omitMod(o,s),t.mergeUris&&Xp(o,e),o},js=r=>Array.isArray(r)?r.map(e=>js(e)):ie.isObject(r)?(ie.forOwn(r,(e,t)=>{r[t]=js(e)}),r):ie.isString(r)?r.normalize():r,QC=r=>{var e=/^[A-Za-z][A-Za-z0-9+\-.]*:(?:\/\/(?:(?:[A-Za-z0-9\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\.[A-Za-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\/(?:(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\?(?:[A-Za-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?(?:#(?:[A-Za-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?$/;return r.match(e)!==null},eT={mappingsByConcepts:(r,e,t)=>{let n=["memberSet","memberList","memberChoice"],i,s;for(let o of n)i=i||ie.get(r,t+"."+o+"[0].notation[0]"),s=s||ie.get(e,t+"."+o+"[0].notation[0]");return i==null||i<s?-1:s==null||i>s?1:0}},rT=(r,e)=>!r||!e?!1:[r.uri].concat(Object.values(r.identities||{}).map(t=>t.uri)).filter(t=>t!=null).includes(ie.get(e,"creator[0].uri")),tT=Rs(),nT=Ms();function iT(r,e){let t;if(r&&r.notation&&r.notation.length)t=r.notation[0],(Gp(r)||e=="scheme")&&(t=t.toUpperCase());else if(r&&r.inScheme&&r.inScheme[0]&&r.uri)try{t=new tT(r&&r.inScheme&&r.inScheme[0]).notationFromUri(r.uri)}catch(n){}return t||""}function Ds(r,e,{language:t}={}){let n=r&&e?r[e]:r;return n&&(n[t]||(t=nT.selectLanguage(n),t))?n[t]:null}function _t(r,e={}){e=e||{};let t=e.fallbackToUri==null?!0:e.fallbackToUri;return ie.get(r,`prefLabel.${e.language}`)||Ds(r,"prefLabel",e)||(t&&r&&r.uri?r.uri:"")}function sT(r,e={}){e=e||{};let t=ie.get(r,`definition.${e.language}`)||Ds(r,"definition",e)||[];return ie.isString(t)&&(t=[t]),t}function oT(r){return ie.get(r,"stored",ie.get(r,"constructor.stored",ie.get(r,"provider.constructor.stored",!1)))}function aT(r){return ie.isString(r.creator)?r.creator:r.creator&&r.creator.id}function uT(r){return ie.get(r,"creator.name")||""}function fT(r,e){return!!(r&&ie.isString(r.creator)?e&&e.includes(r.creator):e&&r.creator&&e.includes(r.creator.id))}Qp.exports={addContext:NC,clean:Us,cleanJSKOS:jC,copyDeep:ti,deepCopy:UC,getAllUris:Ls,compare:Or,compareObjects:DC,compareSchemes:FC,compareConcepts:BC,isConcept:kC,isScheme:Gp,isContainedIn:Kp,isSchemeInList:$C,sortConcepts:zC,sortSchemes:HC,minifyMapping:WC,mappingTypes:Jp,mappingTypeByUri:un,mappingTypeByType:GC,flattenMapping:KC,mappingCSV:VC,defaultMappingType:Vp,conceptsOfMapping:Wr,compareMappingsDeep:YC,objectTypes:XC,guessObjectType:Ns,matchObjectTypes:ZC,mergeUris:Xp,merge:Zp,normalize:js,isValidUri:QC,compareFunctions:eT,userOwnsMapping:rT,notation:iT,languageMapContent:Ds,prefLabel:_t,definition:sT,mappingRegistryIsStored:oT,annotationCreatorUri:aT,annotationCreatorName:uT,annotationCreatorMatches:fT}});var Ge=_((BM,rd)=>{var cT=Dp(),lT=ed(),hT=Rs(),pT=Ms();rd.exports=Object.assign({ConceptScheme:hT,languagePreference:pT},cT,lT)});var nd=_((td,Bs)=>{(function(r){if(typeof td=="object"&&typeof Bs!="undefined")Bs.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=r()}})(function(){var r,e,t;return function n(i,s,o){function u(d,v){if(!s[d]){if(!i[d]){var w=typeof Ct=="function"&&Ct;if(!v&&w)return w(d,!0);if(a)return a(d,!0);var O=new Error("Cannot find module '"+d+"'");throw O.code="MODULE_NOT_FOUND",O}var p=s[d]={exports:{}};i[d][0].call(p.exports,function(C){var G=i[d][1][C];return u(G||C)},p,p.exports,n,i,s,o)}return s[d].exports}for(var a=typeof Ct=="function"&&Ct,f=0;f<o.length;f++)u(o[f]);return u}({1:[function(n,i,s){(function(o){"use strict";var u=o.MutationObserver||o.WebKitMutationObserver,a;if(u){var f=0,d=new u(C),v=o.document.createTextNode("");d.observe(v,{characterData:!0}),a=function(){v.data=f=++f%2}}else if(!o.setImmediate&&typeof o.MessageChannel!="undefined"){var w=new o.MessageChannel;w.port1.onmessage=C,a=function(){w.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?a=function(){var K=o.document.createElement("script");K.onreadystatechange=function(){C(),K.onreadystatechange=null,K.parentNode.removeChild(K),K=null},o.document.documentElement.appendChild(K)}:a=function(){setTimeout(C,0)};var O,p=[];function C(){O=!0;for(var K,te,D=p.length;D;){for(te=p,p=[],K=-1;++K<D;)te[K]();D=p.length}O=!1}i.exports=G;function G(K){p.push(K)===1&&!O&&a()}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(n,i,s){"use strict";var o=n(1);function u(){}var a={},f=["REJECTED"],d=["FULFILLED"],v=["PENDING"];i.exports=w;function w(E){if(typeof E!="function")throw new TypeError("resolver must be a function");this.state=v,this.queue=[],this.outcome=void 0,E!==u&&G(this,E)}w.prototype.catch=function(E){return this.then(null,E)},w.prototype.then=function(E,ee){if(typeof E!="function"&&this.state===d||typeof ee!="function"&&this.state===f)return this;var J=new this.constructor(u);if(this.state!==v){var ge=this.state===d?E:ee;p(J,ge,this.outcome)}else this.queue.push(new O(J,E,ee));return J};function O(E,ee,J){this.promise=E,typeof ee=="function"&&(this.onFulfilled=ee,this.callFulfilled=this.otherCallFulfilled),typeof J=="function"&&(this.onRejected=J,this.callRejected=this.otherCallRejected)}O.prototype.callFulfilled=function(E){a.resolve(this.promise,E)},O.prototype.otherCallFulfilled=function(E){p(this.promise,this.onFulfilled,E)},O.prototype.callRejected=function(E){a.reject(this.promise,E)},O.prototype.otherCallRejected=function(E){p(this.promise,this.onRejected,E)};function p(E,ee,J){o(function(){var ge;try{ge=ee(J)}catch(Te){return a.reject(E,Te)}ge===E?a.reject(E,new TypeError("Cannot resolve promise with itself")):a.resolve(E,ge)})}a.resolve=function(E,ee){var J=K(C,ee);if(J.status==="error")return a.reject(E,J.value);var ge=J.value;if(ge)G(E,ge);else{E.state=d,E.outcome=ee;for(var Te=-1,we=E.queue.length;++Te<we;)E.queue[Te].callFulfilled(ee)}return E},a.reject=function(E,ee){E.state=f,E.outcome=ee;for(var J=-1,ge=E.queue.length;++J<ge;)E.queue[J].callRejected(ee);return E};function C(E){var ee=E&&E.then;if(E&&(typeof E=="object"||typeof E=="function")&&typeof ee=="function")return function(){ee.apply(E,arguments)}}function G(E,ee){var J=!1;function ge(Me){J||(J=!0,a.reject(E,Me))}function Te(Me){J||(J=!0,a.resolve(E,Me))}function we(){ee(Te,ge)}var ke=K(we);ke.status==="error"&&ge(ke.value)}function K(E,ee){var J={};try{J.value=E(ee),J.status="success"}catch(ge){J.status="error",J.value=ge}return J}w.resolve=te;function te(E){return E instanceof this?E:a.resolve(new this(u),E)}w.reject=D;function D(E){var ee=new this(u);return a.reject(ee,E)}w.all=Q;function Q(E){var ee=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=E.length,ge=!1;if(!J)return this.resolve([]);for(var Te=new Array(J),we=0,ke=-1,Me=new this(u);++ke<J;)Ye(E[ke],ke);return Me;function Ye(mr,Dr){ee.resolve(mr).then(Je,function(gr){ge||(ge=!0,a.reject(Me,gr))});function Je(gr){Te[Dr]=gr,++we===J&&!ge&&(ge=!0,a.resolve(Me,Te))}}}w.race=ne;function ne(E){var ee=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=E.length,ge=!1;if(!J)return this.resolve([]);for(var Te=-1,we=new this(u);++Te<J;)ke(E[Te]);return we;function ke(Me){ee.resolve(Me).then(function(Ye){ge||(ge=!0,a.resolve(we,Ye))},function(Ye){ge||(ge=!0,a.reject(we,Ye))})}}},{1:1}],3:[function(n,i,s){(function(o){"use strict";typeof o.Promise!="function"&&(o.Promise=n(2))}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(n,i,s){"use strict";var o=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};function u(c,y){if(!(c instanceof y))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(c){return}}var f=a();function d(){try{if(!f||!f.open)return!1;var c=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),y=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!c||y)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(l){return!1}}function v(c,y){c=c||[],y=y||{};try{return new Blob(c,y)}catch(b){if(b.name!=="TypeError")throw b;for(var l=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,S=new l,x=0;x<c.length;x+=1)S.append(c[x]);return S.getBlob(y.type)}}typeof Promise=="undefined"&&n(3);var w=Promise;function O(c,y){y&&c.then(function(l){y(null,l)},function(l){y(l)})}function p(c,y,l){typeof y=="function"&&c.then(y),typeof l=="function"&&c.catch(l)}function C(c){return typeof c!="string"&&(console.warn(c+" used as a key, but it is not a string."),c=String(c)),c}function G(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var K="local-forage-detect-blob-support",te=void 0,D={},Q=Object.prototype.toString,ne="readonly",E="readwrite";function ee(c){for(var y=c.length,l=new ArrayBuffer(y),S=new Uint8Array(l),x=0;x<y;x++)S[x]=c.charCodeAt(x);return l}function J(c){return new w(function(y){var l=c.transaction(K,E),S=v([""]);l.objectStore(K).put(S,"key"),l.onabort=function(x){x.preventDefault(),x.stopPropagation(),y(!1)},l.oncomplete=function(){var x=navigator.userAgent.match(/Chrome\/(\d+)/),b=navigator.userAgent.match(/Edge\//);y(b||!x||parseInt(x[1],10)>=43)}}).catch(function(){return!1})}function ge(c){return typeof te=="boolean"?w.resolve(te):J(c).then(function(y){return te=y,te})}function Te(c){var y=D[c.name],l={};l.promise=new w(function(S,x){l.resolve=S,l.reject=x}),y.deferredOperations.push(l),y.dbReady?y.dbReady=y.dbReady.then(function(){return l.promise}):y.dbReady=l.promise}function we(c){var y=D[c.name],l=y.deferredOperations.pop();if(l)return l.resolve(),l.promise}function ke(c,y){var l=D[c.name],S=l.deferredOperations.pop();if(S)return S.reject(y),S.promise}function Me(c,y){return new w(function(l,S){if(D[c.name]=D[c.name]||g(),c.db)if(y)Te(c),c.db.close();else return l(c.db);var x=[c.name];y&&x.push(c.version);var b=f.open.apply(f,x);y&&(b.onupgradeneeded=function(P){var j=b.result;try{j.createObjectStore(c.storeName),P.oldVersion<=1&&j.createObjectStore(K)}catch(F){if(F.name==="ConstraintError")console.warn('The database "'+c.name+'" has been upgraded from version '+P.oldVersion+" to version "+P.newVersion+', but the storage "'+c.storeName+'" already exists.');else throw F}}),b.onerror=function(P){P.preventDefault(),S(b.error)},b.onsuccess=function(){var P=b.result;P.onversionchange=function(j){j.target.close()},l(P),we(c)}})}function Ye(c){return Me(c,!1)}function mr(c){return Me(c,!0)}function Dr(c,y){if(!c.db)return!0;var l=!c.db.objectStoreNames.contains(c.storeName),S=c.version<c.db.version,x=c.version>c.db.version;if(S&&(c.version!==y&&console.warn('The database "'+c.name+`" can't be downgraded from version `+c.db.version+" to version "+c.version+"."),c.version=c.db.version),x||l){if(l){var b=c.db.version+1;b>c.version&&(c.version=b)}return!0}return!1}function Je(c){return new w(function(y,l){var S=new FileReader;S.onerror=l,S.onloadend=function(x){var b=btoa(x.target.result||"");y({__local_forage_encoded_blob:!0,data:b,type:c.type})},S.readAsBinaryString(c)})}function gr(c){var y=ee(atob(c.data));return v([y],{type:c.type})}function ar(c){return c&&c.__local_forage_encoded_blob}function fi(c){var y=this,l=y._initReady().then(function(){var S=D[y._dbInfo.name];if(S&&S.dbReady)return S.dbReady});return p(l,c,c),l}function h(c){Te(c);for(var y=D[c.name],l=y.forages,S=0;S<l.length;S++){var x=l[S];x._dbInfo.db&&(x._dbInfo.db.close(),x._dbInfo.db=null)}return c.db=null,Ye(c).then(function(b){return c.db=b,Dr(c)?mr(c):b}).then(function(b){c.db=y.db=b;for(var P=0;P<l.length;P++)l[P]._dbInfo.db=b}).catch(function(b){throw ke(c,b),b})}function m(c,y,l,S){S===void 0&&(S=1);try{var x=c.db.transaction(c.storeName,y);l(null,x)}catch(b){if(S>0&&(!c.db||b.name==="InvalidStateError"||b.name==="NotFoundError"))return w.resolve().then(function(){if(!c.db||b.name==="NotFoundError"&&!c.db.objectStoreNames.contains(c.storeName)&&c.version<=c.db.version)return c.db&&(c.version=c.db.version+1),mr(c)}).then(function(){return h(c).then(function(){m(c,y,l,S-1)})}).catch(l);l(b)}}function g(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function A(c){var y=this,l={db:null};if(c)for(var S in c)l[S]=c[S];var x=D[l.name];x||(x=g(),D[l.name]=x),x.forages.push(y),y._initReady||(y._initReady=y.ready,y.ready=fi);var b=[];function P(){return w.resolve()}for(var j=0;j<x.forages.length;j++){var F=x.forages[j];F!==y&&b.push(F._initReady().catch(P))}var B=x.forages.slice(0);return w.all(b).then(function(){return l.db=x.db,Ye(l)}).then(function(z){return l.db=z,Dr(l,y._defaultConfig.version)?mr(l):z}).then(function(z){l.db=x.db=z,y._dbInfo=l;for(var Z=0;Z<B.length;Z++){var fe=B[Z];fe!==y&&(fe._dbInfo.db=l.db,fe._dbInfo.version=l.version)}})}function T(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.get(c);B.onsuccess=function(){var z=B.result;z===void 0&&(z=null),ar(z)&&(z=gr(z)),x(z)},B.onerror=function(){b(B.error)}}catch(z){b(z)}})}).catch(b)});return O(S,y),S}function q(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.openCursor(),z=1;B.onsuccess=function(){var Z=B.result;if(Z){var fe=Z.value;ar(fe)&&(fe=gr(fe));var me=c(fe,Z.key,z++);me!==void 0?x(me):Z.continue()}else x()},B.onerror=function(){b(B.error)}}catch(Z){b(Z)}})}).catch(b)});return O(S,y),S}function N(c,y,l){var S=this;c=C(c);var x=new w(function(b,P){var j;S.ready().then(function(){return j=S._dbInfo,Q.call(y)==="[object Blob]"?ge(j.db).then(function(F){return F?y:Je(y)}):y}).then(function(F){m(S._dbInfo,E,function(B,z){if(B)return P(B);try{var Z=z.objectStore(S._dbInfo.storeName);F===null&&(F=void 0);var fe=Z.put(F,c);z.oncomplete=function(){F===void 0&&(F=null),b(F)},z.onabort=z.onerror=function(){var me=fe.error?fe.error:fe.transaction.error;P(me)}}catch(me){P(me)}})}).catch(P)});return O(x,l),x}function R(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,E,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.delete(c);j.oncomplete=function(){x()},j.onerror=function(){b(B.error)},j.onabort=function(){var z=B.error?B.error:B.transaction.error;b(z)}}catch(z){b(z)}})}).catch(b)});return O(S,y),S}function U(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,E,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.clear();P.oncomplete=function(){S()},P.onabort=P.onerror=function(){var B=F.error?F.error:F.transaction.error;x(B)}}catch(B){x(B)}})}).catch(x)});return O(l,c),l}function $(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,ne,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.count();F.onsuccess=function(){S(F.result)},F.onerror=function(){x(F.error)}}catch(B){x(B)}})}).catch(x)});return O(l,c),l}function X(c,y){var l=this,S=new w(function(x,b){if(c<0){x(null);return}l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=!1,z=F.openKeyCursor();z.onsuccess=function(){var Z=z.result;if(!Z){x(null);return}c===0||B?x(Z.key):(B=!0,Z.advance(c))},z.onerror=function(){b(z.error)}}catch(Z){b(Z)}})}).catch(b)});return O(S,y),S}function Y(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,ne,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.openKeyCursor(),B=[];F.onsuccess=function(){var z=F.result;if(!z){S(B);return}B.push(z.key),z.continue()},F.onerror=function(){x(F.error)}}catch(z){x(z)}})}).catch(x)});return O(l,c),l}function W(c,y){y=G.apply(this,arguments);var l=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||l.name,c.storeName=c.storeName||l.storeName);var S=this,x;if(!c.name)x=w.reject("Invalid arguments");else{var b=c.name===l.name&&S._dbInfo.db,P=b?w.resolve(S._dbInfo.db):Ye(c).then(function(j){var F=D[c.name],B=F.forages;F.db=j;for(var z=0;z<B.length;z++)B[z]._dbInfo.db=j;return j});c.storeName?x=P.then(function(j){if(j.objectStoreNames.contains(c.storeName)){var F=j.version+1;Te(c);var B=D[c.name],z=B.forages;j.close();for(var Z=0;Z<z.length;Z++){var fe=z[Z];fe._dbInfo.db=null,fe._dbInfo.version=F}var me=new w(function(ye,Ce){var Ee=f.open(c.name,F);Ee.onerror=function(Ve){var Ot=Ee.result;Ot.close(),Ce(Ve)},Ee.onupgradeneeded=function(){var Ve=Ee.result;Ve.deleteObjectStore(c.storeName)},Ee.onsuccess=function(){var Ve=Ee.result;Ve.close(),ye(Ve)}});return me.then(function(ye){B.db=ye;for(var Ce=0;Ce<z.length;Ce++){var Ee=z[Ce];Ee._dbInfo.db=ye,we(Ee._dbInfo)}}).catch(function(ye){throw(ke(c,ye)||w.resolve()).catch(function(){}),ye})}}):x=P.then(function(j){Te(c);var F=D[c.name],B=F.forages;j.close();for(var z=0;z<B.length;z++){var Z=B[z];Z._dbInfo.db=null}var fe=new w(function(me,ye){var Ce=f.deleteDatabase(c.name);Ce.onerror=function(){var Ee=Ce.result;Ee&&Ee.close(),ye(Ce.error)},Ce.onblocked=function(){console.warn('dropInstance blocked for database "'+c.name+'" until all open connections are closed')},Ce.onsuccess=function(){var Ee=Ce.result;Ee&&Ee.close(),me(Ee)}});return fe.then(function(me){F.db=me;for(var ye=0;ye<B.length;ye++){var Ce=B[ye];we(Ce._dbInfo)}}).catch(function(me){throw(ke(c,me)||w.resolve()).catch(function(){}),me})})}return O(x,y),x}var ae={_driver:"asyncStorage",_initStorage:A,_support:d(),iterate:q,getItem:T,setItem:N,removeItem:R,clear:U,length:$,key:X,keys:Y,dropInstance:W};function oe(){return typeof openDatabase=="function"}var he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_e="~~local_forage_type~",ve=/^~~local_forage_type~([^~]+)~/,se="__lfsc__:",ue=se.length,de="arbf",$e="blob",Pe="si08",Le="ui08",Xe="uic8",Xr="si16",Fr="si32",Zr="ur16",Br="ui32",pn="fl32",kr="fl64",Zs=ue+de.length,Qs=Object.prototype.toString;function eo(c){var y=c.length*.75,l=c.length,S,x=0,b,P,j,F;c[c.length-1]==="="&&(y--,c[c.length-2]==="="&&y--);var B=new ArrayBuffer(y),z=new Uint8Array(B);for(S=0;S<l;S+=4)b=he.indexOf(c[S]),P=he.indexOf(c[S+1]),j=he.indexOf(c[S+2]),F=he.indexOf(c[S+3]),z[x++]=b<<2|P>>4,z[x++]=(P&15)<<4|j>>2,z[x++]=(j&3)<<6|F&63;return B}function ci(c){var y=new Uint8Array(c),l="",S;for(S=0;S<y.length;S+=3)l+=he[y[S]>>2],l+=he[(y[S]&3)<<4|y[S+1]>>4],l+=he[(y[S+1]&15)<<2|y[S+2]>>6],l+=he[y[S+2]&63];return y.length%3===2?l=l.substring(0,l.length-1)+"=":y.length%3===1&&(l=l.substring(0,l.length-2)+"=="),l}function pd(c,y){var l="";if(c&&(l=Qs.call(c)),c&&(l==="[object ArrayBuffer]"||c.buffer&&Qs.call(c.buffer)==="[object ArrayBuffer]")){var S,x=se;c instanceof ArrayBuffer?(S=c,x+=de):(S=c.buffer,l==="[object Int8Array]"?x+=Pe:l==="[object Uint8Array]"?x+=Le:l==="[object Uint8ClampedArray]"?x+=Xe:l==="[object Int16Array]"?x+=Xr:l==="[object Uint16Array]"?x+=Zr:l==="[object Int32Array]"?x+=Fr:l==="[object Uint32Array]"?x+=Br:l==="[object Float32Array]"?x+=pn:l==="[object Float64Array]"?x+=kr:y(new Error("Failed to get type for BinaryArray"))),y(x+ci(S))}else if(l==="[object Blob]"){var b=new FileReader;b.onload=function(){var P=_e+c.type+"~"+ci(this.result);y(se+$e+P)},b.readAsArrayBuffer(c)}else try{y(JSON.stringify(c))}catch(P){console.error("Couldn't convert value into a JSON string: ",c),y(null,P)}}function dd(c){if(c.substring(0,ue)!==se)return JSON.parse(c);var y=c.substring(Zs),l=c.substring(ue,Zs),S;if(l===$e&&ve.test(y)){var x=y.match(ve);S=x[1],y=y.substring(x[0].length)}var b=eo(y);switch(l){case de:return b;case $e:return v([b],{type:S});case Pe:return new Int8Array(b);case Le:return new Uint8Array(b);case Xe:return new Uint8ClampedArray(b);case Xr:return new Int16Array(b);case Zr:return new Uint16Array(b);case Fr:return new Int32Array(b);case Br:return new Uint32Array(b);case pn:return new Float32Array(b);case kr:return new Float64Array(b);default:throw new Error("Unkown type: "+l)}}var li={serialize:pd,deserialize:dd,stringToBuffer:eo,bufferToString:ci};function ro(c,y,l,S){c.executeSql("CREATE TABLE IF NOT EXISTS "+y.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],l,S)}function md(c){var y=this,l={db:null};if(c)for(var S in c)l[S]=typeof c[S]!="string"?c[S].toString():c[S];var x=new w(function(b,P){try{l.db=openDatabase(l.name,String(l.version),l.description,l.size)}catch(j){return P(j)}l.db.transaction(function(j){ro(j,l,function(){y._dbInfo=l,b()},function(F,B){P(B)})},P)});return l.serializer=li,x}function yr(c,y,l,S,x,b){c.executeSql(l,S,x,function(P,j){j.code===j.SYNTAX_ERR?P.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[y.storeName],function(F,B){B.rows.length?b(F,j):ro(F,y,function(){F.executeSql(l,S,x,b)},b)},b):b(P,j)},b)}function gd(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){yr(j,P,"SELECT * FROM "+P.storeName+" WHERE key = ? LIMIT 1",[c],function(F,B){var z=B.rows.length?B.rows.item(0).value:null;z&&(z=P.serializer.deserialize(z)),x(z)},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function yd(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){yr(j,P,"SELECT * FROM "+P.storeName,[],function(F,B){for(var z=B.rows,Z=z.length,fe=0;fe<Z;fe++){var me=z.item(fe),ye=me.value;if(ye&&(ye=P.serializer.deserialize(ye)),ye=c(ye,me.key,fe+1),ye!==void 0){x(ye);return}}x()},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function to(c,y,l,S){var x=this;c=C(c);var b=new w(function(P,j){x.ready().then(function(){y===void 0&&(y=null);var F=y,B=x._dbInfo;B.serializer.serialize(y,function(z,Z){Z?j(Z):B.db.transaction(function(fe){yr(fe,B,"INSERT OR REPLACE INTO "+B.storeName+" (key, value) VALUES (?, ?)",[c,z],function(){P(F)},function(me,ye){j(ye)})},function(fe){if(fe.code===fe.QUOTA_ERR){if(S>0){P(to.apply(x,[c,F,l,S-1]));return}j(fe)}})})}).catch(j)});return O(b,l),b}function vd(c,y,l){return to.apply(this,[c,y,l,1])}function wd(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){yr(j,P,"DELETE FROM "+P.storeName+" WHERE key = ?",[c],function(){x()},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function _d(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){yr(P,b,"DELETE FROM "+b.storeName,[],function(){S()},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function bd(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){yr(P,b,"SELECT COUNT(key) as c FROM "+b.storeName,[],function(j,F){var B=F.rows.item(0).c;S(B)},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function Sd(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){yr(j,P,"SELECT key FROM "+P.storeName+" WHERE id = ? LIMIT 1",[c+1],function(F,B){var z=B.rows.length?B.rows.item(0).key:null;x(z)},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function xd(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){yr(P,b,"SELECT key FROM "+b.storeName,[],function(j,F){for(var B=[],z=0;z<F.rows.length;z++)B.push(F.rows.item(z).key);S(B)},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function Ad(c){return new w(function(y,l){c.transaction(function(S){S.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(x,b){for(var P=[],j=0;j<b.rows.length;j++)P.push(b.rows.item(j).name);y({db:c,storeNames:P})},function(x,b){l(b)})},function(S){l(S)})})}function Od(c,y){y=G.apply(this,arguments);var l=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||l.name,c.storeName=c.storeName||l.storeName);var S=this,x;return c.name?x=new w(function(b){var P;c.name===l.name?P=S._dbInfo.db:P=openDatabase(c.name,"","",0),c.storeName?b({db:P,storeNames:[c.storeName]}):b(Ad(P))}).then(function(b){return new w(function(P,j){b.db.transaction(function(F){function B(me){return new w(function(ye,Ce){F.executeSql("DROP TABLE IF EXISTS "+me,[],function(){ye()},function(Ee,Ve){Ce(Ve)})})}for(var z=[],Z=0,fe=b.storeNames.length;Z<fe;Z++)z.push(B(b.storeNames[Z]));w.all(z).then(function(){P()}).catch(function(me){j(me)})},function(F){j(F)})})}):x=w.reject("Invalid arguments"),O(x,y),x}var Ed={_driver:"webSQLStorage",_initStorage:md,_support:oe(),iterate:yd,getItem:gd,setItem:vd,removeItem:wd,clear:_d,length:bd,key:Sd,keys:xd,dropInstance:Od};function Cd(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(c){return!1}}function no(c,y){var l=c.name+"/";return c.storeName!==y.storeName&&(l+=c.storeName+"/"),l}function Td(){var c="_localforage_support_test";try{return localStorage.setItem(c,!0),localStorage.removeItem(c),!1}catch(y){return!0}}function Id(){return!Td()||localStorage.length>0}function Pd(c){var y=this,l={};if(c)for(var S in c)l[S]=c[S];return l.keyPrefix=no(c,y._defaultConfig),Id()?(y._dbInfo=l,l.serializer=li,w.resolve()):w.reject()}function qd(c){var y=this,l=y.ready().then(function(){for(var S=y._dbInfo.keyPrefix,x=localStorage.length-1;x>=0;x--){var b=localStorage.key(x);b.indexOf(S)===0&&localStorage.removeItem(b)}});return O(l,c),l}function Rd(c,y){var l=this;c=C(c);var S=l.ready().then(function(){var x=l._dbInfo,b=localStorage.getItem(x.keyPrefix+c);return b&&(b=x.serializer.deserialize(b)),b});return O(S,y),S}function Md(c,y){var l=this,S=l.ready().then(function(){for(var x=l._dbInfo,b=x.keyPrefix,P=b.length,j=localStorage.length,F=1,B=0;B<j;B++){var z=localStorage.key(B);if(z.indexOf(b)===0){var Z=localStorage.getItem(z);if(Z&&(Z=x.serializer.deserialize(Z)),Z=c(Z,z.substring(P),F++),Z!==void 0)return Z}}});return O(S,y),S}function Ld(c,y){var l=this,S=l.ready().then(function(){var x=l._dbInfo,b;try{b=localStorage.key(c)}catch(P){b=null}return b&&(b=b.substring(x.keyPrefix.length)),b});return O(S,y),S}function Nd(c){var y=this,l=y.ready().then(function(){for(var S=y._dbInfo,x=localStorage.length,b=[],P=0;P<x;P++){var j=localStorage.key(P);j.indexOf(S.keyPrefix)===0&&b.push(j.substring(S.keyPrefix.length))}return b});return O(l,c),l}function jd(c){var y=this,l=y.keys().then(function(S){return S.length});return O(l,c),l}function Ud(c,y){var l=this;c=C(c);var S=l.ready().then(function(){var x=l._dbInfo;localStorage.removeItem(x.keyPrefix+c)});return O(S,y),S}function Dd(c,y,l){var S=this;c=C(c);var x=S.ready().then(function(){y===void 0&&(y=null);var b=y;return new w(function(P,j){var F=S._dbInfo;F.serializer.serialize(y,function(B,z){if(z)j(z);else try{localStorage.setItem(F.keyPrefix+c,B),P(b)}catch(Z){(Z.name==="QuotaExceededError"||Z.name==="NS_ERROR_DOM_QUOTA_REACHED")&&j(Z),j(Z)}})})});return O(x,l),x}function Fd(c,y){if(y=G.apply(this,arguments),c=typeof c!="function"&&c||{},!c.name){var l=this.config();c.name=c.name||l.name,c.storeName=c.storeName||l.storeName}var S=this,x;return c.name?x=new w(function(b){c.storeName?b(no(c,S._defaultConfig)):b(c.name+"/")}).then(function(b){for(var P=localStorage.length-1;P>=0;P--){var j=localStorage.key(P);j.indexOf(b)===0&&localStorage.removeItem(j)}}):x=w.reject("Invalid arguments"),O(x,y),x}var Bd={_driver:"localStorageWrapper",_initStorage:Pd,_support:Cd(),iterate:Md,getItem:Rd,setItem:Dd,removeItem:Ud,clear:qd,length:jd,key:Ld,keys:Nd,dropInstance:Fd},kd=function(y,l){return y===l||typeof y=="number"&&typeof l=="number"&&isNaN(y)&&isNaN(l)},$d=function(y,l){for(var S=y.length,x=0;x<S;){if(kd(y[x],l))return!0;x++}return!1},io=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"},At={},so={},Qr={INDEXEDDB:ae,WEBSQL:Ed,LOCALSTORAGE:Bd},zd=[Qr.INDEXEDDB._driver,Qr.WEBSQL._driver,Qr.LOCALSTORAGE._driver],dn=["dropInstance"],hi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(dn),Hd={description:"",driver:zd.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Wd(c,y){c[y]=function(){var l=arguments;return c.ready().then(function(){return c[y].apply(c,l)})}}function pi(){for(var c=1;c<arguments.length;c++){var y=arguments[c];if(y)for(var l in y)y.hasOwnProperty(l)&&(io(y[l])?arguments[0][l]=y[l].slice():arguments[0][l]=y[l])}return arguments[0]}var Gd=function(){function c(y){u(this,c);for(var l in Qr)if(Qr.hasOwnProperty(l)){var S=Qr[l],x=S._driver;this[l]=x,At[x]||this.defineDriver(S)}this._defaultConfig=pi({},Hd),this._config=pi({},this._defaultConfig,y),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return c.prototype.config=function(l){if((typeof l=="undefined"?"undefined":o(l))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var S in l){if(S==="storeName"&&(l[S]=l[S].replace(/\W/g,"_")),S==="version"&&typeof l[S]!="number")return new Error("Database version must be a number.");this._config[S]=l[S]}return"driver"in l&&l.driver?this.setDriver(this._config.driver):!0}else return typeof l=="string"?this._config[l]:this._config},c.prototype.defineDriver=function(l,S,x){var b=new w(function(P,j){try{var F=l._driver,B=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!l._driver){j(B);return}for(var z=hi.concat("_initStorage"),Z=0,fe=z.length;Z<fe;Z++){var me=z[Z],ye=!$d(dn,me);if((ye||l[me])&&typeof l[me]!="function"){j(B);return}}var Ce=function(){for(var Ot=function(Vd){return function(){var Yd=new Error("Method "+Vd+" is not implemented by the current driver"),oo=w.reject(Yd);return O(oo,arguments[arguments.length-1]),oo}},di=0,Jd=dn.length;di<Jd;di++){var mi=dn[di];l[mi]||(l[mi]=Ot(mi))}};Ce();var Ee=function(Ot){At[F]&&console.info("Redefining LocalForage driver: "+F),At[F]=l,so[F]=Ot,P()};"_support"in l?l._support&&typeof l._support=="function"?l._support().then(Ee,j):Ee(!!l._support):Ee(!0)}catch(Ve){j(Ve)}});return p(b,S,x),b},c.prototype.driver=function(){return this._driver||null},c.prototype.getDriver=function(l,S,x){var b=At[l]?w.resolve(At[l]):w.reject(new Error("Driver not found."));return p(b,S,x),b},c.prototype.getSerializer=function(l){var S=w.resolve(li);return p(S,l),S},c.prototype.ready=function(l){var S=this,x=S._driverSet.then(function(){return S._ready===null&&(S._ready=S._initDriver()),S._ready});return p(x,l,l),x},c.prototype.setDriver=function(l,S,x){var b=this;io(l)||(l=[l]);var P=this._getSupportedDrivers(l);function j(){b._config.driver=b.driver()}function F(Z){return b._extend(Z),j(),b._ready=b._initStorage(b._config),b._ready}function B(Z){return function(){var fe=0;function me(){for(;fe<Z.length;){var ye=Z[fe];return fe++,b._dbInfo=null,b._ready=null,b.getDriver(ye).then(F).catch(me)}j();var Ce=new Error("No available storage method found.");return b._driverSet=w.reject(Ce),b._driverSet}return me()}}var z=this._driverSet!==null?this._driverSet.catch(function(){return w.resolve()}):w.resolve();return this._driverSet=z.then(function(){var Z=P[0];return b._dbInfo=null,b._ready=null,b.getDriver(Z).then(function(fe){b._driver=fe._driver,j(),b._wrapLibraryMethodsWithReady(),b._initDriver=B(P)})}).catch(function(){j();var Z=new Error("No available storage method found.");return b._driverSet=w.reject(Z),b._driverSet}),p(this._driverSet,S,x),this._driverSet},c.prototype.supports=function(l){return!!so[l]},c.prototype._extend=function(l){pi(this,l)},c.prototype._getSupportedDrivers=function(l){for(var S=[],x=0,b=l.length;x<b;x++){var P=l[x];this.supports(P)&&S.push(P)}return S},c.prototype._wrapLibraryMethodsWithReady=function(){for(var l=0,S=hi.length;l<S;l++)Wd(this,hi[l])},c.prototype.createInstance=function(l){return new c(l)},c}(),Kd=new Gd;i.exports=Kd},{3:3}]},{},[4])(4)})});var Ks=_((Gs,ad)=>{"use strict";(function(r,e,t){let n;(n=t.define)&&n.amd?n([],function(){return e}):(n=t.modules)?n[r.toLowerCase()]=e:typeof Gs=="object"?ad.exports=e:t[r]=e})("FlexSearch",function r(e){function t(h,m){let g=m?m.id:h&&h.id;this.id=g||g===0?g:Ye++,this.init(h,m),u(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)}),u(this,"length",function(){return this.index.length})}function n(h,m,g,A){return this.u!==this.g&&(this.o=this.o.concat(g),this.u++,A&&this.o.length>=A&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(m,this.o),this.F&&this.F(this.o))),this}function i(h){let m=J();for(let g in h)if(h.hasOwnProperty(g)){let A=h[g];D(A)?m[g]=A.slice(0):ne(A)?m[g]=i(A):m[g]=A}return m}function s(h,m){let g=h.length,A=Q(m),T=[];for(let q=0,N=0;q<g;q++){let R=h[q];(A&&m(R)||!A&&!m[R])&&(T[N++]=R)}return T}function o(h,m,g,A,T,q,N,R,U,$){g=K(g,N?0:T,R,q,m,U,$);let X;if(R&&(R=g.page,X=g.next,g=g.result),N)m=this.where(N,null,T,g);else{for(m=g,g=this.l,T=m.length,q=Array(T),N=0;N<T;N++)q[N]=g[m[N]];m=q}return g=m,A&&(Q(A)||(Je=A.split(":"),1<Je.length?A=C:(Je=Je[0],A=p)),g.sort(A)),g=G(R,X,g),this.cache&&this.j.set(h,g),g}function u(h,m,g){Object.defineProperty(h,m,{get:g})}function a(h){return new RegExp(h,"g")}function f(h,m){for(let g=0;g<m.length;g+=2)h=h.replace(m[g],m[g+1]);return h}function d(h,m,g,A,T,q,N,R){return m[g]?m[g]:(T=T?(R-(N||R/1.5))*q+(N||R/1.5)*T:q,m[g]=T,T>=N&&(h=h[R-(T+.5>>0)],h=h[g]||(h[g]=[]),h[h.length]=A),T)}function v(h,m){if(h){let g=Object.keys(h);for(let A=0,T=g.length;A<T;A++){let q=g[A],N=h[q];if(N)for(let R=0,U=N.length;R<U;R++)if(N[R]===m){U===1?delete h[q]:N.splice(R,1);break}else ne(N[R])&&v(N[R],m)}}}function w(h){let m="",g="";var A="";for(let T=0;T<h.length;T++){let q=h[T];q!==g&&(T&&q==="h"?(A=A==="a"||A==="e"||A==="i"||A==="o"||A==="u"||A==="y",((g==="a"||g==="e"||g==="i"||g==="o"||g==="u"||g==="y")&&A||g===" ")&&(m+=q)):m+=q),A=T===h.length-1?"":h[T+1],g=q}return m}function O(h,m){return h=h.length-m.length,0>h?1:h?-1:0}function p(h,m){return h=h[Je],m=m[Je],h<m?-1:h>m?1:0}function C(h,m){let g=Je.length;for(let A=0;A<g;A++)h=h[Je[A]],m=m[Je[A]];return h<m?-1:h>m?1:0}function G(h,m,g){return h?{page:h,next:m?""+m:null,result:g}:g}function K(h,m,g,A,T,q,N){let R,U=[];if(g===!0){g="0";var $=""}else $=g&&g.split(":");let X=h.length;if(1<X){let ve=J(),se=[],ue,de;var Y=0,W;let $e;var ae=!0;let Pe,Le=0,Xe,Xr,Fr,Zr;if($&&($.length===2?(Fr=$,$=!1):$=Zr=parseInt($[0],10)),N){for(ue=J();Y<X;Y++)if(T[Y]==="not")for(de=h[Y],$e=de.length,W=0;W<$e;W++)ue["@"+de[W]]=1;else Xr=Y+1;if(E(Xr))return G(g,R,U);Y=0}else Xe=te(T)&&T;let Br;for(;Y<X;Y++){let pn=Y===(Xr||X)-1;if(!Xe||!Y)if((W=Xe||T&&T[Y])&&W!=="and")if(W==="or")Br=!1;else continue;else Br=q=!0;if(de=h[Y],$e=de.length){if(ae)if(Pe){var oe=Pe.length;for(W=0;W<oe;W++){ae=Pe[W];var he="@"+ae;N&&ue[he]||(ve[he]=1,q||(U[Le++]=ae))}Pe=null,ae=!1}else{Pe=de;continue}for(he=!1,W=0;W<$e;W++){oe=de[W];var _e="@"+oe;let kr=q?ve[_e]||0:Y;if(!(!kr&&!A||N&&ue[_e]||!q&&ve[_e]))if(kr===Y){if(pn){if((!Zr||--Zr<Le)&&(U[Le++]=oe,m&&Le===m))return G(g,Le+($||0),U)}else ve[_e]=Y+1;he=!0}else A&&(_e=se[kr]||(se[kr]=[]),_e[_e.length]=oe)}if(Br&&!he&&!A)break}else if(Br&&!A)return G(g,R,de)}if(Pe)if(Y=Pe.length,N)for(W=$?parseInt($,10):0;W<Y;W++)h=Pe[W],ue["@"+h]||(U[Le++]=h);else U=Pe;if(A){for(Le=U.length,Fr?(Y=parseInt(Fr[0],10)+1,W=parseInt(Fr[1],10)+1):(Y=se.length,W=0);Y--;)if(oe=se[Y]){for($e=oe.length;W<$e;W++)if(A=oe[W],(!N||!ue["@"+A])&&(U[Le++]=A,m&&Le===m))return G(g,Y+":"+W,U);W=0}}}else!X||T&&T[0]==="not"||(U=h[0],$&&($=parseInt($[0],10)));return m&&(N=U.length,$&&$>N&&($=0),$=$||0,R=$+m,R<N?U=U.slice($,R):(R=0,$&&(U=U.slice($)))),G(g,R,U)}function te(h){return typeof h=="string"}function D(h){return h.constructor===Array}function Q(h){return typeof h=="function"}function ne(h){return typeof h=="object"}function E(h){return typeof h=="undefined"}function ee(h){let m=Array(h);for(let g=0;g<h;g++)m[g]=J();return m}function J(){return Object.create(null)}function ge(){let h,m;self.onmessage=function(g){if(g=g.data)if(g.search){let A=m.search(g.content,g.threshold?{limit:g.limit,threshold:g.threshold,where:g.where}:g.limit);self.postMessage({id:h,content:g.content,limit:g.limit,result:A})}else g.add?m.add(g.id,g.content):g.update?m.update(g.id,g.content):g.remove?m.remove(g.id):g.clear?m.clear():g.info?(g=m.info(),g.worker=h,console.log(g)):g.register&&(h=g.id,g.options.cache=!1,g.options.async=!1,g.options.worker=!1,m=new Function(g.register.substring(g.register.indexOf("{")+1,g.register.lastIndexOf("}")))(),m=new m(g.options))}}function Te(h,m,g,A){h=e("flexsearch","id"+h,ge,function(q){(q=q.data)&&q.result&&A(q.id,q.content,q.result,q.limit,q.where,q.cursor,q.suggest)},m);let T=r.toString();return g.id=m,h.postMessage({register:T,options:g,id:m}),h}let we={encode:"icase",f:"forward",split:/\W+/,cache:!1,async:!1,g:!1,D:!1,a:!1,b:9,threshold:0,depth:0},ke={memory:{encode:"extra",f:"strict",threshold:0,b:1},speed:{encode:"icase",f:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",f:"full",threshold:1,b:3},score:{encode:"extra",f:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",f:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",f:"strict",threshold:8,b:9,depth:1}},Me=[],Ye=0,mr={},Dr={};t.create=function(h,m){return new t(h,m)},t.registerMatcher=function(h){for(let m in h)h.hasOwnProperty(m)&&Me.push(a(m),h[m]);return this},t.registerEncoder=function(h,m){return ar[h]=m.bind(ar),this},t.registerLanguage=function(h,m){return mr[h]=m.filter,Dr[h]=m.stemmer,this},t.encode=function(h,m){return ar[h](m)},t.prototype.init=function(h,m){if(this.v=[],m){var g=m.preset;h=m}else h||(h=we),g=h.preset;if(m={},te(h)?(m=ke[h],h={}):g&&(m=ke[g]),g=h.worker)if(typeof Worker=="undefined")h.worker=!1,this.m=null;else{var A=parseInt(g,10)||4;this.C=-1,this.u=0,this.o=[],this.F=null,this.m=Array(A);for(var T=0;T<A;T++)this.m[T]=Te(this.id,T,h,n.bind(this))}if(this.f=h.tokenize||m.f||this.f||we.f,this.split=E(g=h.split)?this.split||we.split:te(g)?a(g):g,this.D=h.rtl||this.D||we.D,this.async=typeof Promise=="undefined"||E(g=h.async)?this.async||we.async:g,this.g=E(g=h.worker)?this.g||we.g:g,this.threshold=E(g=h.threshold)?m.threshold||this.threshold||we.threshold:g,this.b=E(g=h.resolution)?g=m.b||this.b||we.b:g,g<=this.threshold&&(this.b=this.threshold+1),this.depth=this.f!=="strict"||E(g=h.depth)?m.depth||this.depth||we.depth:g,this.w=(g=E(g=h.encode)?m.encode||we.encode:g)&&ar[g]&&ar[g].bind(ar)||(Q(g)?g:this.w||!1),(g=h.matcher)&&this.addMatcher(g),g=(m=h.lang)||h.filter){if(te(g)&&(g=mr[g]),D(g)){A=this.w,T=J();for(var q=0;q<g.length;q++){var N=A?A(g[q]):g[q];T[N]=1}g=T}this.filter=g}if(g=m||h.stemmer){var R;m=te(g)?Dr[g]:g,A=this.w,T=[];for(R in m)m.hasOwnProperty(R)&&(q=A?A(R):R,T.push(a(q+"($|\\W)"),A?A(m[R]):m[R]));this.stemmer=R=T}if(this.a=T=(g=h.doc)?i(g):this.a||we.a,this.i=ee(this.b-(this.threshold||0)),this.h=J(),this.c=J(),T){if(this.l=J(),h.doc=null,R=T.index={},m=T.keys=[],A=T.field,q=T.tag,N=T.store,D(T.id)||(T.id=T.id.split(":")),N){var U=J();if(te(N))U[N]=1;else if(D(N))for(let $=0;$<N.length;$++)U[N[$]]=1;else ne(N)&&(U=N);T.store=U}if(q){if(this.G=J(),N=J(),A)if(te(A))N[A]=h;else if(D(A))for(U=0;U<A.length;U++)N[A[U]]=h;else ne(A)&&(N=A);for(D(q)||(T.tag=q=[q]),A=0;A<q.length;A++)this.G[q[A]]=J();this.I=q,A=N}if(A){let $;for(D(A)||(ne(A)?($=A,T.field=A=Object.keys(A)):T.field=A=[A]),T=0;T<A.length;T++)q=A[T],D(q)||($&&(h=$[q]),m[T]=q,A[T]=q.split(":")),R[q]=new t(h)}h.doc=g}return this.B=!0,this.j=(this.cache=g=E(g=h.cache)?this.cache||we.cache:g)?new fi(g):!1,this},t.prototype.encode=function(h){return h&&(Me.length&&(h=f(h,Me)),this.v.length&&(h=f(h,this.v)),this.w&&(h=this.w(h)),this.stemmer&&(h=f(h,this.stemmer))),h},t.prototype.addMatcher=function(h){let m=this.v;for(let g in h)h.hasOwnProperty(g)&&m.push(a(g),h[g]);return this},t.prototype.add=function(h,m,g,A,T){if(this.a&&ne(h))return this.A("add",h,m);if(m&&te(m)&&(h||h===0)){var q="@"+h;if(this.c[q]&&!A)return this.update(h,m);if(this.g)return++this.C>=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:h,content:m}),this.c[q]=""+this.C,g&&g(),this;if(!T){if(this.async&&typeof importScripts!="function"){let se=this;if(q=new Promise(function(ue){setTimeout(function(){se.add(h,m,null,A,!0),se=null,ue()})}),g)q.then(g);else return q;return this}if(g)return this.add(h,m,null,A,!0),g(),this}if(m=this.encode(m),!m.length)return this;g=this.f,T=Q(g)?g(m):m.split(this.split),this.filter&&(T=s(T,this.filter));let Y=J();Y._ctx=J();let W=T.length,ae=this.threshold,oe=this.depth,he=this.b,_e=this.i,ve=this.D;for(let se=0;se<W;se++){var N=T[se];if(N){var R=N.length,U=(ve?se+1:W-se)/W,$="";switch(g){case"reverse":case"both":for(var X=R;--X;)$=N[X]+$,d(_e,Y,$,h,ve?1:(R-X)/R,U,ae,he-1);$="";case"forward":for(X=0;X<R;X++)$+=N[X],d(_e,Y,$,h,ve?(X+1)/R:1,U,ae,he-1);break;case"full":for(X=0;X<R;X++){let ue=(ve?X+1:R-X)/R;for(let de=R;de>X;de--)$=N.substring(X,de),d(_e,Y,$,h,ue,U,ae,he-1)}break;default:if(R=d(_e,Y,N,h,1,U,ae,he-1),oe&&1<W&&R>=ae)for(R=Y._ctx[N]||(Y._ctx[N]=J()),N=this.h[N]||(this.h[N]=ee(he-(ae||0))),U=se-oe,$=se+oe+1,0>U&&(U=0),$>W&&($=W);U<$;U++)U!==se&&d(N,R,T[U],h,0,he-(U<se?se-U:U-se),ae,he-1)}}}this.c[q]=1,this.B=!1}return this},t.prototype.A=function(h,m,g){if(D(m)){var A=m.length;if(A--){for(var T=0;T<A;T++)this.A(h,m[T]);return this.A(h,m[A],g)}}else{var q=this.a.index,N=this.a.keys,R=this.a.tag;T=this.a.store;var U,$=this.a.id;A=m;for(var X=0;X<$.length;X++)A=A[$[X]];if(h==="remove"&&(delete this.l[A],$=N.length,$--)){for(m=0;m<$;m++)q[N[m]].remove(A);return q[N[$]].remove(A,g)}if(R){for(U=0;U<R.length;U++){var Y=R[U],W=m;for($=Y.split(":"),X=0;X<$.length;X++)W=W[$[X]];W="@"+W}U=this.G[Y],U=U[W]||(U[W]=[])}$=this.a.field;for(let ae=0,oe=$.length;ae<oe;ae++){for(Y=$[ae],R=m,W=0;W<Y.length;W++)R=R[Y[W]];Y=q[N[ae]],W=h==="add"?Y.add:Y.update,ae===oe-1?W.call(Y,A,R,g):W.call(Y,A,R)}if(T){for(g=Object.keys(T),h=J(),q=0;q<g.length;q++)if(N=g[q],T[N]){N=N.split(":");let ae,oe;for($=0;$<N.length;$++)R=N[$],ae=(ae||m)[R],oe=(oe||h)[R]=ae}m=h}U&&(U[U.length]=m),this.l[A]=m}return this},t.prototype.update=function(h,m,g){return this.a&&ne(h)?this.A("update",h,m):(this.c["@"+h]&&te(m)&&(this.remove(h),this.add(h,m,g,!0)),this)},t.prototype.remove=function(h,m,g){if(this.a&&ne(h))return this.A("remove",h,m);var A="@"+h;if(this.c[A]){if(this.g)return this.m[this.c[A]].postMessage({remove:!0,id:h}),delete this.c[A],m&&m(),this;if(!g){if(this.async&&typeof importScripts!="function"){let T=this;if(A=new Promise(function(q){setTimeout(function(){T.remove(h,null,!0),T=null,q()})}),m)A.then(m);else return A;return this}if(m)return this.remove(h,null,!0),m(),this}for(m=0;m<this.b-(this.threshold||0);m++)v(this.i[m],h);this.depth&&v(this.h,h),delete this.c[A],this.B=!1}return this};let Je;t.prototype.search=function(h,m,g,A){if(ne(m)){if(D(m))for(var T=0;T<m.length;T++)m[T].query=h;else m.query=h;h=m,m=1e3}else m&&Q(m)?(g=m,m=1e3):m||m===0||(m=1e3);if(this.g){this.F=g,this.u=0,this.o=[];for(var q=0;q<this.g;q++)this.m[q].postMessage({search:!0,limit:m,content:h})}else{var N=[],R=h;if(ne(h)&&!D(h)){g||(g=h.callback)&&(R.callback=null);var U=h.sort,$=h.page;m=h.limit,q=h.threshold;var X=h.suggest;h=h.query}if(this.a){q=this.a.index;let ve=R.where;var Y=R.bool||"or",W=R.field;let se=Y,ue,de;if(W)D(W)||(W=[W]);else if(D(R)){var ae=R;W=[],se=[];for(var oe=0;oe<R.length;oe++)A=R[oe],T=A.bool||Y,W[oe]=A.field,se[oe]=T,T==="not"?ue=!0:T==="and"&&(de=!0)}else W=this.a.keys;for(Y=W.length,oe=0;oe<Y;oe++)ae&&(R=ae[oe]),$&&!te(R)&&(R.page=null,R.limit=0),N[oe]=q[W[oe]].search(R,0);if(g)return g(o.call(this,h,se,N,U,m,X,ve,$,de,ue));if(this.async){let $e=this;return new Promise(function(Pe){Promise.all(N).then(function(Le){Pe(o.call($e,h,se,Le,U,m,X,ve,$,de,ue))})})}return o.call(this,h,se,N,U,m,X,ve,$,de,ue)}if(q||(q=this.threshold||0),!A){if(this.async&&typeof importScripts!="function"){let ve=this;if(q=new Promise(function(se){setTimeout(function(){se(ve.search(R,m,null,!0)),ve=null})}),g)q.then(g);else return q;return this}if(g)return g(this.search(R,m,null,!0)),this}if(!h||!te(h))return N;if(R=h,this.cache)if(this.B){if(g=this.j.get(h))return g}else this.j.clear(),this.B=!0;if(R=this.encode(R),!R.length)return N;g=this.f,g=Q(g)?g(R):R.split(this.split),this.filter&&(g=s(g,this.filter)),ae=g.length,A=!0,T=[];var he=J(),_e=0;if(1<ae&&(this.depth&&this.f==="strict"?Y=!0:g.sort(O)),!Y||(oe=this.h)){let ve=this.b;for(;_e<ae;_e++){let se=g[_e];if(se){if(Y){if(!W){if(oe[se])W=se,he[se]=1;else if(!X)return N}if(X&&_e===ae-1&&!T.length)Y=!1,se=W||se,he[se]=0;else if(!W)continue}if(!he[se]){let ue=[],de=!1,$e=0,Pe=Y?oe[W]:this.i;if(Pe){let Le;for(let Xe=0;Xe<ve-q;Xe++)(Le=Pe[Xe]&&Pe[Xe][se])&&(ue[$e++]=Le,de=!0)}if(de)W=se,T[T.length]=1<$e?ue.concat.apply([],ue):ue[0];else if(!X){A=!1;break}he[se]=1}}}}else A=!1;return A&&(N=K(T,m,$,X)),this.cache&&this.j.set(h,N),N}},t.prototype.find=function(h,m){return this.where(h,m,1)[0]||null},t.prototype.where=function(h,m,g,A){let T=this.l,q=[],N=0,R;var U;let $;if(ne(h)){g||(g=m);var X=Object.keys(h),Y=X.length;if(R=!1,Y===1&&X[0]==="id")return[T[h.id]];if((U=this.I)&&!A)for(var W=0;W<U.length;W++){var ae=U[W],oe=h[ae];if(!E(oe)){if($=this.G[ae]["@"+oe],--Y===0)return $;X.splice(X.indexOf(ae),1),delete h[ae];break}}for(U=Array(Y),W=0;W<Y;W++)U[W]=X[W].split(":")}else{if(Q(h)){for(m=A||Object.keys(T),g=m.length,X=0;X<g;X++)Y=T[m[X]],h(Y)&&(q[N++]=Y);return q}if(E(m))return[T[h]];if(h==="id")return[T[m]];X=[h],Y=1,U=[h.split(":")],R=!0}for(A=$||A||Object.keys(T),W=A.length,ae=0;ae<W;ae++){oe=$?A[ae]:T[A[ae]];let he=!0;for(let _e=0;_e<Y;_e++){R||(m=h[X[_e]]);let ve=U[_e],se=ve.length,ue=oe;if(1<se)for(let de=0;de<se;de++)ue=ue[ve[de]];else ue=ue[ve[0]];if(ue!==m){he=!1;break}}if(he&&(q[N++]=oe,g&&N===g))break}return q},t.prototype.info=function(){if(this.g)for(let h=0;h<this.g;h++)this.m[h].postMessage({info:!0,id:this.id});else return{id:this.id,items:this.length,cache:this.cache&&this.cache.s?this.cache.s.length:!1,matcher:Me.length+(this.v?this.v.length:0),worker:this.g,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&this.f==="strict"}},t.prototype.clear=function(){return this.destroy().init()},t.prototype.destroy=function(){if(this.cache&&(this.j.clear(),this.j=null),this.i=this.h=this.c=null,this.a){let h=this.a.keys;for(let m=0;m<h.length;m++)this.a.index[h[m]].destroy();this.a=this.l=null}return this},t.prototype.export=function(h){let m=!h||E(h.serialize)||h.serialize;if(this.a){let A=!h||E(h.doc)||h.doc;var g=!h||E(h.index)||h.index;h=[];let T=0;if(g)for(g=this.a.keys;T<g.length;T++){let q=this.a.index[g[T]];h[T]=[q.i,q.h,Object.keys(q.c)]}A&&(h[T]=this.l)}else h=[this.i,this.h,Object.keys(this.c)];return m&&(h=JSON.stringify(h)),h},t.prototype.import=function(h,m){(!m||E(m.serialize)||m.serialize)&&(h=JSON.parse(h));let g=J();if(this.a){var A=!m||E(m.doc)||m.doc,T=0;if(!m||E(m.index)||m.index){m=this.a.keys;let N=m.length;for(var q=h[0][2];T<q.length;T++)g[q[T]]=1;for(T=0;T<N;T++){q=this.a.index[m[T]];let R=h[T];R&&(q.i=R[0],q.h=R[1],q.c=g)}}A&&(this.l=ne(A)?A:h[T])}else{for(A=h[2],T=0;T<A.length;T++)g[A[T]]=1;this.i=h[0],this.h=h[1],this.c=g}};let gr=function(){let h=a("\\s+"),m=a("[^a-z0-9 ]"),g=[a("[-/]")," ",m,"",h," "];return function(A){return w(f(A.toLowerCase(),g))}}(),ar={icase:function(h){return h.toLowerCase()},simple:function(){let h=a("\\s+"),m=a("[^a-z0-9 ]"),g=a("[-/]"),A=a("[\xE0\xE1\xE2\xE3\xE4\xE5]"),T=a("[\xE8\xE9\xEA\xEB]"),q=a("[\xEC\xED\xEE\xEF]"),N=a("[\xF2\xF3\xF4\xF5\xF6\u0151]"),R=a("[\xF9\xFA\xFB\xFC\u0171]"),U=a("[\xFD\u0177\xFF]"),$=a("\xF1"),X=a("[\xE7c]"),Y=a("\xDF"),W=a(" & "),ae=[A,"a",T,"e",q,"i",N,"o",R,"u",U,"y",$,"n",X,"k",Y,"s",W," and ",g," ",m,"",h," "];return function(oe){return oe=f(oe.toLowerCase(),ae),oe===" "?"":oe}}(),advanced:function(){let h=a("ae"),m=a("ai"),g=a("ay"),A=a("ey"),T=a("oe"),q=a("ue"),N=a("ie"),R=a("sz"),U=a("zs"),$=a("ck"),X=a("cc"),Y=a("sh"),W=a("th"),ae=a("dt"),oe=a("ph"),he=a("pf"),_e=a("ou"),ve=a("uo"),se=[h,"a",m,"ei",g,"ei",A,"ei",T,"o",q,"u",N,"i",R,"s",U,"s",Y,"s",$,"k",X,"k",W,"t",ae,"t",oe,"f",he,"f",_e,"o",ve,"u"];return function(ue,de){return ue&&(ue=this.simple(ue),2<ue.length&&(ue=f(ue,se)),de||1<ue.length&&(ue=w(ue)),ue)}}(),extra:function(){let h=a("p"),m=a("z"),g=a("[cgq]"),A=a("n"),T=a("d"),q=a("[vw]"),N=a("[aeiouy]"),R=[h,"b",m,"s",g,"k",A,"m",T,"t",q,"f",N,""];return function(U){if(!U)return U;if(U=this.advanced(U,!0),1<U.length){U=U.split(" ");for(let $=0;$<U.length;$++){let X=U[$];1<X.length&&(U[$]=X[0]+f(X.substring(1),R))}U=U.join(" "),U=w(U)}return U}}(),balance:gr},fi=function(){function h(m){this.clear(),this.H=m!==!0&&m}return h.prototype.clear=function(){this.cache=J(),this.count=J(),this.index=J(),this.s=[]},h.prototype.set=function(m,g){if(this.H&&E(this.cache[m])){let A=this.s.length;if(A===this.H){A--;let T=this.s[A];delete this.cache[T],delete this.count[T],delete this.index[T]}this.index[m]=A,this.s[A]=m,this.count[m]=-1,this.cache[m]=g,this.get(m)}else this.cache[m]=g},h.prototype.get=function(m){let g=this.cache[m];if(this.H&&g){var A=++this.count[m];let q=this.index,N=q[m];if(0<N){let R=this.s;for(var T=N;this.count[R[--N]]<=A&&N!==-1;);if(N++,N!==T){for(A=T;A>N;A--)T=R[A-1],R[A]=T,q[T]=A;R[N]=m,q[m]=N}}}return g},h}();return t}(function(){let r={},e=typeof Blob!="undefined"&&typeof URL!="undefined"&&URL.createObjectURL;return function(t,n,i,s,o){return i=e?URL.createObjectURL(new Blob(["("+i.toString()+")()"],{type:"text/javascript"})):t+".min.js",t+="-"+n,r[t]||(r[t]=[]),r[t][o]=new Worker(i),r[t][o].onmessage=s,r[t][o]}}()),Gs)});var bT={};gn(bT,{BaseProvider:()=>le,CocodaSDK:()=>Ur,ConceptApiProvider:()=>sr,LabelSearchSuggestionProvider:()=>qr,LobidApiProvider:()=>Yr,LocApiProvider:()=>Mr,LocalMappingsProvider:()=>Cr,MappingsApiProvider:()=>ir,MyCoReProvider:()=>Nr,OccurrencesApiProvider:()=>Tr,ReconciliationApiProvider:()=>Pr,SkohubProvider:()=>Lr,SkosmosApiProvider:()=>Rr,addAllProviders:()=>_T,cdk:()=>hd,errors:()=>Ue,utils:()=>Er});var Ue={};gn(Ue,{BackendError:()=>It,BackendUnavailableError:()=>Pt,CDKError:()=>qe,InvalidOrMissingParameterError:()=>H,InvalidProviderError:()=>et,InvalidRequestError:()=>tr,MethodNotImplementedError:()=>Tt,MissingApiUrlError:()=>ze,NetworkError:()=>qt});var qe=class extends Error{constructor({message:e="",relatedError:t=null,code:n=null}={}){!e&&t&&t.message&&(e=t.message),super(e),this.name=this.constructor.name,this.relatedError=t,this.code=n}},Tt=class extends qe{constructor(i){var s=i,{method:e,message:t=""}=s,n=V(s,["method","message"]);n.message=`Method not implemented: ${e} (${t})`,super(n)}},H=class extends qe{constructor(i){var s=i,{parameter:e,message:t=""}=s,n=V(s,["parameter","message"]);n.message=`Invalid or missing parameter: ${e} (${t})`,super(n)}},tr=class extends qe{},It=class extends qe{},Pt=class extends qe{},qt=class extends qe{},ze=class extends qe{},et=class extends qe{};function Rt(r,e){return function(){return r.apply(e,arguments)}}var{toString:ho}=Object.prototype,{getPrototypeOf:wi}=Object,_i=(r=>e=>{let t=ho.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ur=r=>(r=r.toLowerCase(),e=>_i(e)===r),vn=r=>e=>typeof e===r,{isArray:rt}=Array,Mt=vn("undefined");function im(r){return r!==null&&!Mt(r)&&r.constructor!==null&&!Mt(r.constructor)&&vr(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}var po=ur("ArrayBuffer");function sm(r){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&po(r.buffer),e}var om=vn("string"),vr=vn("function"),mo=vn("number"),bi=r=>r!==null&&typeof r=="object",am=r=>r===!0||r===!1,yn=r=>{if(_i(r)!=="object")return!1;let e=wi(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},um=ur("Date"),fm=ur("File"),cm=ur("Blob"),lm=ur("FileList"),hm=r=>bi(r)&&vr(r.pipe),pm=r=>{let e="[object FormData]";return r&&(typeof FormData=="function"&&r instanceof FormData||ho.call(r)===e||vr(r.toString)&&r.toString()===e)},dm=ur("URLSearchParams"),mm=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lt(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r=="undefined")return;let n,i;if(typeof r!="object"&&(r=[r]),rt(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{let s=t?Object.getOwnPropertyNames(r):Object.keys(r),o=s.length,u;for(n=0;n<o;n++)u=s[n],e.call(null,r[u],u,r)}}function go(r,e){e=e.toLowerCase();let t=Object.keys(r),n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}var yo=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),vo=r=>!Mt(r)&&r!==yo;function vi(){let{caseless:r}=vo(this)&&this||{},e={},t=(n,i)=>{let s=r&&go(e,i)||i;yn(e[s])&&yn(n)?e[s]=vi(e[s],n):yn(n)?e[s]=vi({},n):rt(n)?e[s]=n.slice():e[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Lt(arguments[n],t);return e}var gm=(r,e,t,{allOwnKeys:n}={})=>(Lt(e,(i,s)=>{t&&vr(i)?r[s]=Rt(i,t):r[s]=i},{allOwnKeys:n}),r),ym=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),vm=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},wm=(r,e,t,n)=>{let i,s,o,u={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)o=i[s],(!n||n(o,r,e))&&!u[o]&&(e[o]=r[o],u[o]=!0);r=t!==!1&&wi(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},_m=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},bm=r=>{if(!r)return null;if(rt(r))return r;let e=r.length;if(!mo(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},Sm=(r=>e=>r&&e instanceof r)(typeof Uint8Array!="undefined"&&wi(Uint8Array)),xm=(r,e)=>{let n=(r&&r[Symbol.iterator]).call(r),i;for(;(i=n.next())&&!i.done;){let s=i.value;e.call(r,s[0],s[1])}},Am=(r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Om=ur("HTMLFormElement"),Em=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),co=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Cm=ur("RegExp"),wo=(r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};Lt(t,(i,s)=>{e(i,s,r)!==!1&&(n[s]=i)}),Object.defineProperties(r,n)},Tm=r=>{wo(r,(e,t)=>{if(vr(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(vr(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Im=(r,e)=>{let t={},n=i=>{i.forEach(s=>{t[s]=!0})};return rt(r)?n(r):n(String(r).split(e)),t},Pm=()=>{},qm=(r,e)=>(r=+r,Number.isFinite(r)?r:e),yi="abcdefghijklmnopqrstuvwxyz",lo="0123456789",_o={DIGIT:lo,ALPHA:yi,ALPHA_DIGIT:yi+yi.toUpperCase()+lo},Rm=(r=16,e=_o.ALPHA_DIGIT)=>{let t="",{length:n}=e;for(;r--;)t+=e[Math.random()*n|0];return t};function Mm(r){return!!(r&&vr(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}var Lm=r=>{let e=new Array(10),t=(n,i)=>{if(bi(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;let s=rt(n)?[]:{};return Lt(n,(o,u)=>{let a=t(o,i+1);!Mt(a)&&(s[u]=a)}),e[i]=void 0,s}}return n};return t(r,0)},I={isArray:rt,isArrayBuffer:po,isBuffer:im,isFormData:pm,isArrayBufferView:sm,isString:om,isNumber:mo,isBoolean:am,isObject:bi,isPlainObject:yn,isUndefined:Mt,isDate:um,isFile:fm,isBlob:cm,isRegExp:Cm,isFunction:vr,isStream:hm,isURLSearchParams:dm,isTypedArray:Sm,isFileList:lm,forEach:Lt,merge:vi,extend:gm,trim:mm,stripBOM:ym,inherits:vm,toFlatObject:wm,kindOf:_i,kindOfTest:ur,endsWith:_m,toArray:bm,forEachEntry:xm,matchAll:Am,isHTMLForm:Om,hasOwnProperty:co,hasOwnProp:co,reduceDescriptors:wo,freezeMethods:Tm,toObjectSet:Im,toCamelCase:Em,noop:Pm,toFiniteNumber:qm,findKey:go,global:yo,isContextDefined:vo,ALPHABET:_o,generateString:Rm,isSpecCompliantForm:Mm,toJSONObject:Lm};function tt(r,e,t,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),i&&(this.response=i)}I.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var bo=tt.prototype,So={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{So[r]={value:r}});Object.defineProperties(tt,So);Object.defineProperty(bo,"isAxiosError",{value:!0});tt.from=(r,e,t,n,i,s)=>{let o=Object.create(bo);return I.toFlatObject(r,o,function(a){return a!==Error.prototype},u=>u!=="isAxiosError"),tt.call(o,r.message,e,t,n,i),o.cause=r,o.name=r.name,s&&Object.assign(o,s),o};var ce=tt;var wn=null;function Si(r){return I.isPlainObject(r)||I.isArray(r)}function Ao(r){return I.endsWith(r,"[]")?r.slice(0,-2):r}function xo(r,e,t){return r?r.concat(e).map(function(i,s){return i=Ao(i),!t&&s?"["+i+"]":i}).join(t?".":""):e}function Nm(r){return I.isArray(r)&&!r.some(Si)}var jm=I.toFlatObject(I,{},null,function(e){return/^is[A-Z]/.test(e)});function Um(r,e,t){if(!I.isObject(r))throw new TypeError("target must be an object");e=e||new(wn||FormData),t=I.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,G){return!I.isUndefined(G[C])});let n=t.metaTokens,i=t.visitor||d,s=t.dots,o=t.indexes,a=(t.Blob||typeof Blob!="undefined"&&Blob)&&I.isSpecCompliantForm(e);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function f(p){if(p===null)return"";if(I.isDate(p))return p.toISOString();if(!a&&I.isBlob(p))throw new ce("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(p)||I.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,C,G){let K=p;if(p&&!G&&typeof p=="object"){if(I.endsWith(C,"{}"))C=n?C:C.slice(0,-2),p=JSON.stringify(p);else if(I.isArray(p)&&Nm(p)||(I.isFileList(p)||I.endsWith(C,"[]"))&&(K=I.toArray(p)))return C=Ao(C),K.forEach(function(D,Q){!(I.isUndefined(D)||D===null)&&e.append(o===!0?xo([C],Q,s):o===null?C:C+"[]",f(D))}),!1}return Si(p)?!0:(e.append(xo(G,C,s),f(p)),!1)}let v=[],w=Object.assign(jm,{defaultVisitor:d,convertValue:f,isVisitable:Si});function O(p,C){if(!I.isUndefined(p)){if(v.indexOf(p)!==-1)throw Error("Circular reference detected in "+C.join("."));v.push(p),I.forEach(p,function(K,te){(!(I.isUndefined(K)||K===null)&&i.call(e,K,I.isString(te)?te.trim():te,C,w))===!0&&O(K,C?C.concat(te):[te])}),v.pop()}}if(!I.isObject(r))throw new TypeError("data must be an object");return O(r),e}var wr=Um;function Oo(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Eo(r,e){this._pairs=[],r&&wr(r,this,e)}var Co=Eo.prototype;Co.append=function(e,t){this._pairs.push([e,t])};Co.toString=function(e){let t=e?function(n){return e.call(this,n,Oo)}:Oo;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};var _n=Eo;function Dm(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nt(r,e,t){if(!e)return r;let n=t&&t.encode||Dm,i=t&&t.serialize,s;if(i?s=i(e,t):s=I.isURLSearchParams(e)?e.toString():new _n(e,t).toString(n),s){let o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}var xi=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,function(n){n!==null&&e(n)})}},Ai=xi;var bn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var To=typeof URLSearchParams!="undefined"?URLSearchParams:_n;var Io=typeof FormData!="undefined"?FormData:null;var Fm=(()=>{let r;return typeof navigator!="undefined"&&((r=navigator.product)==="ReactNative"||r==="NativeScript"||r==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),Bm=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),De={isBrowser:!0,classes:{URLSearchParams:To,FormData:Io,Blob},isStandardBrowserEnv:Fm,isStandardBrowserWebWorkerEnv:Bm,protocols:["http","https","file","blob","url","data"]};function Oi(r,e){return wr(r,new De.classes.URLSearchParams,Object.assign({visitor:function(t,n,i,s){return De.isNode&&I.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function km(r){return I.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function $m(r){let e={},t=Object.keys(r),n,i=t.length,s;for(n=0;n<i;n++)s=t[n],e[s]=r[s];return e}function zm(r){function e(t,n,i,s){let o=t[s++],u=Number.isFinite(+o),a=s>=t.length;return o=!o&&I.isArray(i)?i.length:o,a?(I.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!I.isObject(i[o]))&&(i[o]=[]),e(t,n,i[o],s)&&I.isArray(i[o])&&(i[o]=$m(i[o])),!u)}if(I.isFormData(r)&&I.isFunction(r.entries)){let t={};return I.forEachEntry(r,(n,i)=>{e(km(n),i,t,0)}),t}return null}var Sn=zm;var Hm={"Content-Type":void 0};function Wm(r,e,t){if(I.isString(r))try{return(e||JSON.parse)(r),I.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}var xn={transitional:bn,adapter:["xhr","http"],transformRequest:[function(e,t){let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=I.isObject(e);if(s&&I.isHTMLForm(e)&&(e=new FormData(e)),I.isFormData(e))return i&&i?JSON.stringify(Sn(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Oi(e,this.formSerializer).toString();if((u=I.isFileList(e))||n.indexOf("multipart/form-data")>-1){let a=this.env&&this.env.FormData;return wr(u?{"files[]":e}:e,a&&new a,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),Wm(e)):e}],transformResponse:[function(e){let t=this.transitional||xn.transitional,n=t&&t.forcedJSONParsing,i=this.responseType==="json";if(e&&I.isString(e)&&(n&&!this.responseType||i)){let o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(u){if(o)throw u.name==="SyntaxError"?ce.from(u,ce.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],function(e){xn.headers[e]={}});I.forEach(["post","put","patch"],function(e){xn.headers[e]=I.merge(Hm)});var nt=xn;var Gm=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Po=r=>{let e={},t,n,i;return r&&r.split(`
12
- `).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!t||e[t]&&Gm[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};var qo=Symbol("internals");function jt(r){return r&&String(r).trim().toLowerCase()}function An(r){return r===!1||r==null?r:I.isArray(r)?r.map(An):String(r)}function Km(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}function Jm(r){return/^[-_a-zA-Z]+$/.test(r.trim())}function Ei(r,e,t,n,i){if(I.isFunction(n))return n.call(this,e,t);if(i&&(e=t),!!I.isString(e)){if(I.isString(n))return e.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(e)}}function Vm(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Ym(r,e){let t=I.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}var it=class{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function s(u,a,f){let d=jt(a);if(!d)throw new Error("header name must be a non-empty string");let v=I.findKey(i,d);(!v||i[v]===void 0||f===!0||f===void 0&&i[v]!==!1)&&(i[v||a]=An(u))}let o=(u,a)=>I.forEach(u,(f,d)=>s(f,d,a));return I.isPlainObject(e)||e instanceof this.constructor?o(e,t):I.isString(e)&&(e=e.trim())&&!Jm(e)?o(Po(e),t):e!=null&&s(t,e,n),this}get(e,t){if(e=jt(e),e){let n=I.findKey(this,e);if(n){let i=this[n];if(!t)return i;if(t===!0)return Km(i);if(I.isFunction(t))return t.call(this,i,n);if(I.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=jt(e),e){let n=I.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ei(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function s(o){if(o=jt(o),o){let u=I.findKey(n,o);u&&(!t||Ei(n,n[u],u,t))&&(delete n[u],i=!0)}}return I.isArray(e)?e.forEach(s):s(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let s=t[n];(!e||Ei(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){let t=this,n={};return I.forEach(this,(i,s)=>{let o=I.findKey(n,s);if(o){t[o]=An(i),delete t[s];return}let u=e?Vm(s):String(s).trim();u!==s&&delete t[s],t[u]=An(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return I.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&I.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
13
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[qo]=this[qo]={accessors:{}}).accessors,i=this.prototype;function s(o){let u=jt(o);n[u]||(Ym(i,o),n[u]=!0)}return I.isArray(e)?e.forEach(s):s(e),this}};it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.freezeMethods(it.prototype);I.freezeMethods(it);var He=it;function Ut(r,e){let t=this||nt,n=e||t,i=He.from(n.headers),s=n.data;return I.forEach(r,function(u){s=u.call(t,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Dt(r){return!!(r&&r.__CANCEL__)}function Ro(r,e,t){ce.call(this,r==null?"canceled":r,ce.ERR_CANCELED,e,t),this.name="CanceledError"}I.inherits(Ro,ce,{__CANCEL__:!0});var _r=Ro;function Ci(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new ce("Request failed with status code "+t.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}var Mo=De.isStandardBrowserEnv?function(){return{write:function(t,n,i,s,o,u){let a=[];a.push(t+"="+encodeURIComponent(n)),I.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),I.isString(s)&&a.push("path="+s),I.isString(o)&&a.push("domain="+o),u===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){let n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Ti(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Ii(r,e){return e?r.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):r}function Ft(r,e){return r&&!Ti(e)?Ii(r,e):e}var Lo=De.isStandardBrowserEnv?function(){let e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),n;function i(s){let o=s;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(o){let u=I.isString(o)?i(o):o;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}();function Pi(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Xm(r,e){r=r||10;let t=new Array(r),n=new Array(r),i=0,s=0,o;return e=e!==void 0?e:1e3,function(a){let f=Date.now(),d=n[s];o||(o=f),t[i]=a,n[i]=f;let v=s,w=0;for(;v!==i;)w+=t[v++],v=v%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),f-o<e)return;let O=d&&f-d;return O?Math.round(w*1e3/O):void 0}}var No=Xm;function jo(r,e){let t=0,n=No(50,250);return i=>{let s=i.loaded,o=i.lengthComputable?i.total:void 0,u=s-t,a=n(u),f=s<=o;t=s;let d={loaded:s,total:o,progress:o?s/o:void 0,bytes:u,rate:a||void 0,estimated:a&&o&&f?(o-s)/a:void 0,event:i};d[e?"download":"upload"]=!0,r(d)}}var Zm=typeof XMLHttpRequest!="undefined",Uo=Zm&&function(r){return new Promise(function(t,n){let i=r.data,s=He.from(r.headers).normalize(),o=r.responseType,u;function a(){r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}I.isFormData(i)&&(De.isStandardBrowserEnv||De.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let f=new XMLHttpRequest;if(r.auth){let O=r.auth.username||"",p=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";s.set("Authorization","Basic "+btoa(O+":"+p))}let d=Ft(r.baseURL,r.url);f.open(r.method.toUpperCase(),Nt(d,r.params,r.paramsSerializer),!0),f.timeout=r.timeout;function v(){if(!f)return;let O=He.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),C={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:O,config:r,request:f};Ci(function(K){t(K),a()},function(K){n(K),a()},C),f=null}if("onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(v)},f.onabort=function(){f&&(n(new ce("Request aborted",ce.ECONNABORTED,r,f)),f=null)},f.onerror=function(){n(new ce("Network Error",ce.ERR_NETWORK,r,f)),f=null},f.ontimeout=function(){let p=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",C=r.transitional||bn;r.timeoutErrorMessage&&(p=r.timeoutErrorMessage),n(new ce(p,C.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,r,f)),f=null},De.isStandardBrowserEnv){let O=(r.withCredentials||Lo(d))&&r.xsrfCookieName&&Mo.read(r.xsrfCookieName);O&&s.set(r.xsrfHeaderName,O)}i===void 0&&s.setContentType(null),"setRequestHeader"in f&&I.forEach(s.toJSON(),function(p,C){f.setRequestHeader(C,p)}),I.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),o&&o!=="json"&&(f.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&f.addEventListener("progress",jo(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",jo(r.onUploadProgress)),(r.cancelToken||r.signal)&&(u=O=>{f&&(n(!O||O.type?new _r(null,r,f):O),f.abort(),f=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));let w=Pi(d);if(w&&De.protocols.indexOf(w)===-1){n(new ce("Unsupported protocol "+w+":",ce.ERR_BAD_REQUEST,r));return}f.send(i||null)})};var On={http:wn,xhr:Uo};I.forEach(On,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch(t){}Object.defineProperty(r,"adapterName",{value:e})}});var Do={getAdapter:r=>{r=I.isArray(r)?r:[r];let{length:e}=r,t,n;for(let i=0;i<e&&(t=r[i],!(n=I.isString(t)?On[t.toLowerCase()]:t));i++);if(!n)throw n===!1?new ce(`Adapter ${t} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(I.hasOwnProp(On,t)?`Adapter '${t}' is not available in the build`:`Unknown adapter '${t}'`);if(!I.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:On};function qi(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new _r(null,r)}function En(r){return qi(r),r.headers=He.from(r.headers),r.data=Ut.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Do.getAdapter(r.adapter||nt.adapter)(r).then(function(n){return qi(r),n.data=Ut.call(r,r.transformResponse,n),n.headers=He.from(n.headers),n},function(n){return Dt(n)||(qi(r),n&&n.response&&(n.response.data=Ut.call(r,r.transformResponse,n.response),n.response.headers=He.from(n.response.headers))),Promise.reject(n)})}var Fo=r=>r instanceof He?r.toJSON():r;function fr(r,e){e=e||{};let t={};function n(f,d,v){return I.isPlainObject(f)&&I.isPlainObject(d)?I.merge.call({caseless:v},f,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function i(f,d,v){if(I.isUndefined(d)){if(!I.isUndefined(f))return n(void 0,f,v)}else return n(f,d,v)}function s(f,d){if(!I.isUndefined(d))return n(void 0,d)}function o(f,d){if(I.isUndefined(d)){if(!I.isUndefined(f))return n(void 0,f)}else return n(void 0,d)}function u(f,d,v){if(v in e)return n(f,d);if(v in r)return n(void 0,f)}let a={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(f,d)=>i(Fo(f),Fo(d),!0)};return I.forEach(Object.keys(r).concat(Object.keys(e)),function(d){let v=a[d]||i,w=v(r[d],e[d],d);I.isUndefined(w)&&v!==u||(t[d]=w)}),t}var Cn="1.3.3";var Ri={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{Ri[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});var Bo={};Ri.transitional=function(e,t,n){function i(s,o){return"[Axios v"+Cn+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,u)=>{if(e===!1)throw new ce(i(o," has been removed"+(t?" in "+t:"")),ce.ERR_DEPRECATED);return t&&!Bo[o]&&(Bo[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,o,u):!0}};function Qm(r,e,t){if(typeof r!="object")throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE);let n=Object.keys(r),i=n.length;for(;i-- >0;){let s=n[i],o=e[s];if(o){let u=r[s],a=u===void 0||o(u,s,r);if(a!==!0)throw new ce("option "+s+" must be "+a,ce.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ce("Unknown option "+s,ce.ERR_BAD_OPTION)}}var Tn={assertOptions:Qm,validators:Ri};var br=Tn.validators,st=class{constructor(e){this.defaults=e,this.interceptors={request:new Ai,response:new Ai}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=fr(this.defaults,t);let{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&Tn.assertOptions(n,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean)},!1),i!==void 0&&Tn.assertOptions(i,{encode:br.function,serialize:br.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o;o=s&&I.merge(s.common,s[t.method]),o&&I.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),t.headers=He.concat(o,s);let u=[],a=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(t)===!1||(a=a&&C.synchronous,u.unshift(C.fulfilled,C.rejected))});let f=[];this.interceptors.response.forEach(function(C){f.push(C.fulfilled,C.rejected)});let d,v=0,w;if(!a){let p=[En.bind(this),void 0];for(p.unshift.apply(p,u),p.push.apply(p,f),w=p.length,d=Promise.resolve(t);v<w;)d=d.then(p[v++],p[v++]);return d}w=u.length;let O=t;for(v=0;v<w;){let p=u[v++],C=u[v++];try{O=p(O)}catch(G){C.call(this,G);break}}try{d=En.call(this,O)}catch(p){return Promise.reject(p)}for(v=0,w=f.length;v<w;)d=d.then(f[v++],f[v++]);return d}getUri(e){e=fr(this.defaults,e);let t=Ft(e.baseURL,e.url);return Nt(t,e.params,e.paramsSerializer)}};I.forEach(["delete","get","head","options"],function(e){st.prototype[e]=function(t,n){return this.request(fr(n||{},{method:e,url:t,data:(n||{}).data}))}});I.forEach(["post","put","patch"],function(e){function t(n){return function(s,o,u){return this.request(fr(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}st.prototype[e]=t(),st.prototype[e+"Form"]=t(!0)});var Bt=st;var kt=class{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s,o,u){n.reason||(n.reason=new _r(s,o,u),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new kt(function(i){e=i}),cancel:e}}},ko=kt;function Mi(r){return function(t){return r.apply(null,t)}}function Li(r){return I.isObject(r)&&r.isAxiosError===!0}var Ni={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ni).forEach(([r,e])=>{Ni[e]=r});var $o=Ni;function zo(r){let e=new Bt(r),t=Rt(Bt.prototype.request,e);return I.extend(t,Bt.prototype,e,{allOwnKeys:!0}),I.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return zo(fr(r,i))},t}var Ie=zo(nt);Ie.Axios=Bt;Ie.CanceledError=_r;Ie.CancelToken=ko;Ie.isCancel=Dt;Ie.VERSION=Cn;Ie.toFormData=wr;Ie.AxiosError=ce;Ie.Cancel=Ie.CanceledError;Ie.all=function(e){return Promise.all(e)};Ie.spread=Mi;Ie.isAxiosError=Li;Ie.mergeConfig=fr;Ie.AxiosHeaders=He;Ie.formToJSON=r=>Sn(I.isHTMLForm(r)?new FormData(r):r);Ie.HttpStatusCode=$o;Ie.default=Ie;var Fe=Ie;var{Axios:XI,AxiosError:ZI,CanceledError:QI,isCancel:eP,CancelToken:rP,VERSION:tP,all:nP,Cancel:iP,isAxiosError:sP,spread:oP,toFormData:aP,AxiosHeaders:uP,HttpStatusCode:fP,formToJSON:cP,mergeConfig:lP}=Fe;var re=pe(Iu(),1),Ae=pe(Fu(),1),Ar=pe(lf(),1),on=pe(jf(),1),Ss=pe(Yf(),1),xs=pe(Oc(),1),Re=pe(We(),1),an=pe(er(),1),xe=pe(Cc(),1),As=pe($c(),1),nr=pe(Ll(),1),xC=pe(_h(),1),Os=pe(ws(),1),cr=pe(xp(),1),Es=pe(Op(),1);var jr=pe(Ge(),1);var hn={};gn(hn,{BaseProvider:()=>le,ConceptApiProvider:()=>sr,LabelSearchSuggestionProvider:()=>qr,LobidApiProvider:()=>Yr,LocApiProvider:()=>Mr,LocalMappingsProvider:()=>Cr,MappingsApiProvider:()=>ir,MyCoReProvider:()=>Nr,OccurrencesApiProvider:()=>Tr,ReconciliationApiProvider:()=>Pr,SkohubProvider:()=>Lr,SkosmosApiProvider:()=>Rr});var bt=pe(Ge(),1);var Er={};gn(Er,{concatUrl:()=>lr,listOfCapabilities:()=>Oe,requestMethods:()=>Fs,withCustomProps:()=>Gr});var Fs=[{method:"getRegistries",fallback:[],type:"Registries"},{method:"getSchemes",fallback:[],type:"Schemes"},{method:"vocSearch",fallback:[],type:"Schemes"},{method:"getTypes",fallback:[],type:"Types"},{method:"suggest",fallback:["",[],[],[]]},{method:"vocSuggest",fallback:["",[],[],[]]},{method:"getConcordances",fallback:[],type:"Concordances"},{method:"getOccurrences",fallback:[],type:"Occurrences"},{method:"getTop",fallback:[],type:"Concepts"},{method:"getConcepts",fallback:[],type:"Concepts"},{method:"getNarrower",fallback:[],type:"Concepts"},{method:"getAncestors",fallback:[],type:"Concepts"},{method:"search",fallback:[],type:"Concepts"},{method:"getMapping",fallback:null,type:"Mapping"},{method:"getMappings",fallback:[],type:"Mappings"},{method:"postMapping",fallback:null,type:"Mapping"},{method:"postMappings",fallback:[],type:"Mapping"},{method:"putMapping",fallback:null,type:"Mapping"},{method:"patchMapping",fallback:null,type:"Mapping"},{method:"deleteMapping",fallback:!1},{method:"deleteMappings",fallback:[]},{method:"getAnnotations",fallback:[],type:"Annotations"},{method:"postAnnotation",fallback:null,type:"Annotation"},{method:"putAnnotation",fallback:null,type:"Annotation"},{method:"patchAnnotation",fallback:null,type:"Annotation"},{method:"deleteAnnotation",fallback:!1}];function lr(...r){let[e,...t]=r;for(let n of t)e.endsWith("/")||(e+="/"),n.startsWith("/")&&(n=n.slice(1)),e+=n;return e}function Gr(r,e){return r._totalCount=e._totalCount,r._url=e._url,r}var Oe=["schemes","top","data","concepts","narrower","ancestors","types","suggest","search","auth","mappings","concordances","annotations","occurrences"];var le=class{constructor(e={}){this._jskos=e,this.axios=Fe.create({timeout:2e4}),this._path=typeof window!="undefined"&&window.location.pathname,this.has={},this._defaultLanguages="en,de,fr,es,nl,it,fi,pl,ru,cs,jp".split(","),this.languages=[],this._auth={key:null,bearerToken:null},this._repeating=[],this._api={status:e.status,schemes:Array.isArray(e.schemes)?void 0:e.schemes,top:e.top,data:e.data,concepts:e.concepts,narrower:e.narrower,ancestors:e.ancestors,types:e.types,suggest:e.suggest,search:e.search,"voc-suggest":e["voc-suggest"],"voc-search":e["voc-search"],mappings:e.mappings,concordances:e.concordances,annotations:e.annotations,occurrences:e.occurrences,reconcile:e.reconcile,api:e.api},this._config={},this.setRetryConfig(),this.axios.interceptors.request.use(n=>{if(!n._skipAdditionalParameters){let i=Ar.default([].concat(re.default(n,"params.language","").split(","),this.languages,this._defaultLanguages).filter(s=>s!="")).join(",");Ae.default(n,"params.language",i),this.has.auth&&this._auth.bearerToken&&!re.default(n,"headers.Authorization")&&Ae.default(n,"headers.Authorization",`Bearer ${this._auth.bearerToken}`)}if(n.url.startsWith("http:")&&typeof window!="undefined"&&window.location.protocol=="https:")throw new Fe.Cancel("Can't call http API from https.");return n}),this.axios.interceptors.response.use(({data:n,headers:i={},config:s={}})=>{n=bt.default.normalize(n);let o=s.url;if(o.endsWith("?")||(o+="?"),xs.default(s.params||{},(u,a)=>{o+=`${a}=${encodeURIComponent(u)}&`}),Re.default(n)||an.default(n)){let u=parseInt(i["x-total-count"]);isNaN(u)||(n._totalCount=u),n._url=o}return n},n=>{let i=re.default(n,"config._retryCount",0),s=re.default(n,"config.method"),o=re.default(n,"response.status");return this._retryConfig.methods.includes(s)&&this._retryConfig.statusCodes.includes(o)&&i<this._retryConfig.count?(n.config._retryCount=i+1,n.config.data&&(n.config.data=JSON.parse(n.config.data)),new Promise((u,a)=>{setTimeout(()=>{this.axios(n.config).then(u).catch(a)},(()=>{let f=this._retryConfig.delay;return typeof f=="function"?f(i):f})())})):Promise.reject(n)});let t=[];for(let{method:n,type:i}of Fs){let s=this[n]&&this[n].bind(this);if(!s){this[n]=()=>{throw new Tt({method:n})};continue}this[n]=(o={})=>{if(o._raw)return delete o._raw,s(o);let u=t.find(v=>v.method==n&&nr.default(v.options,o));if(u)return u.promise;let a;o.cancelToken||(a=this.getCancelTokenSource(),o.cancelToken=a.token);let f=this.init().then(()=>s(o)).then(v=>(Re.default(v)&&v._totalCount===void 0?v._totalCount=v.length:an.default(v)&&v._totalCount===void 0&&(v._totalCount=1),v&&i&&this[`adjust${i}`]&&(v=this[`adjust${i}`](v)),v)).catch(v=>{throw v instanceof qe?v:v.response?v.response.status.toString().startsWith(4)?new tr({relatedError:v,code:v.response.status}):new It({relatedError:v,code:v.response.status}):v.request?typeof navigator!="undefined"&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection)?new Pt({relatedError:v}):new qt({relatedError:v}):new qe({relatedError:v})});a&&(f.cancel=(...v)=>a.cancel(...v));let d={method:n,options:cr.default(o,["cancelToken"]),promise:f};return t.push(d),f.catch(()=>{}).then(()=>t.splice(t.indexOf(d),1)),f}}}get uri(){return this._jskos.uri}get notation(){return this._jskos.notation}get prefLabel(){return this._jskos.prefLabel}get definition(){return this._jskos.definition}get schemes(){return this._jskos.schemes}get excludedSchemes(){return this._jskos.excludedSchemes}get stored(){return this._jskos.stored!==void 0?this._jskos.stored:this.constructor.stored}init(){return L(this,null,function*(){return this._init?this._init:(this._init=(()=>L(this,null,function*(){this._prepare();let e;if(xe.default(this._api.status))try{e=yield this.axios({method:"get",url:this._api.status})}catch(t){re.default(t,"response.status")===404&&(this._api.status=null)}else e=this._api.status;if(an.default(e)&&!As.default(e)){this._config=e.config||{};for(let t of Object.keys(this._api))this._api[t]===void 0&&(this._api[t]=e[t]||null)}this._setup()}))(),this._init)})}_prepare(){}_setup(){}getCancelTokenSource(){return Fe.CancelToken.source()}setAuth({key:e=this._auth.key,bearerToken:t=this._auth.bearerToken}){this._auth.key=e,this._auth.bearerToken=t}setRetryConfig(e={}){this._retryConfig=Object.assign({methods:["get","head","options"],statusCodes:[401,403],count:3,delay:t=>300*t},e)}isAuthorizedFor({type:e,action:t,user:n,crossUser:i}){if(t=="read"&&this.has[e]===!0)return!0;if(!this.has[e])return!1;let s=re.default(this._config,`${e}.${t}`);if(!s)return!!this.has[e][t];if(s.auth&&(!n||!this._auth.key)||s.auth&&this._auth.key!=re.default(this._config,"auth.key"))return!1;let o=[n.uri].concat(Object.values(n.identities||{}).map(u=>u.uri)).filter(u=>u!=null);if(s.auth&&s.identities&&on.default(o,s.identities).length==0)return!1;if(s.auth&&s.identityProviders){let u=Object.keys(n&&n.identities||{});if(on.default(u,s.identityProviders).length==0)return!1}return i?s.crossUser===!0||on.default(s.crossUser||[],o).length>0:!!this.has[e][t]}supportsScheme(e){if(!e)return!1;let t=Re.default(this.schemes)?this.schemes:null;return t==null&&!bt.default.isContainedIn(e,this.excludedSchemes||[])?!0:bt.default.isContainedIn(e,t)}adjustConcept(e){if(!e||e.__SAVED__)return e;e._getNarrower=t=>this.getNarrower(k(M({},t),{concept:e})),e._getAncestors=t=>this.getAncestors(k(M({},t),{concept:e})),e._getDetails=t=>L(this,null,function*(){return(yield this.getConcepts(k(M({},t),{concepts:[e]})))[0]});for(let t of["broader","narrower","ancestors"])Array.isArray(e[t])&&e[t].length&&!e[t].includes(null)&&(e[t]=this.adjustConcepts(e[t]));return e._registry=this,e}adjustConcepts(e){return Gr(e.map(t=>this.adjustConcept(t)),e)}adjustRegistries(e){return e}adjustScheme(e){if(!e||e.__SAVED__)return e;let t=e._registry;return e._registry=this.cdk&&this.cdk.registryForScheme(e),!e._registry||t===e._registry||e._registry._api.api===this._api.api?e._registry=t||this:["concepts","topConcepts"].forEach(n=>{Array.isArray(e[n])&&(e[n].length===0||e[n][0]===null)&&delete e[n]}),e._registry&&(e._getTop=n=>e._registry.getTop(k(M({},n),{scheme:e})),e._getTypes=n=>e._registry.getTypes(k(M({},n),{scheme:e})),e._suggest=s=>{var o=s,{search:n}=o,i=V(o,["search"]);return e._registry.suggest(k(M({},i),{search:n,scheme:e}))}),e}adjustSchemes(e){return Gr(e.map(t=>this.adjustScheme(t)),e)}adjustConcordances(e){for(let t of e)t._registry=this;return e}adjustMapping(e){for(let t of["from","to"]){let n=`${t}Scheme`;e[n]||(e[n]=re.default(bt.default.conceptsOfMapping(e,t),"[0].inScheme[0]",null))}if(e._registry=this,!e.identifier){let t=re.default(bt.default.addMappingIdentifiers(e),"identifier");t&&(e.identifier=t)}return e}adjustMappings(e){return Gr(e.map(t=>this.adjustMapping(t)),e)}postMappings(){return L(this,arguments,function*(n={}){var i=n,{mappings:e}=i,t=V(i,["mappings"]);if(!e||!e.length)throw new H({parameter:"mappings"});return this._callHelperForArrayWrappers({method:"postMapping",items:e,itemProperty:"mapping",config:t})})}deleteMappings(){return L(this,arguments,function*(n={}){var i=n,{mappings:e}=i,t=V(i,["mappings"]);if(!e||!e.length)throw new H({parameter:"mappings"});return this._callHelperForArrayWrappers({method:"deleteMapping",items:e,itemProperty:"mapping",config:t})})}_callHelperForArrayWrappers(s){return L(this,arguments,function*({method:e,items:t,itemProperty:n,config:i}){let o=[],u=yield Promise.all(t.map(a=>L(this,null,function*(){try{return yield this[e](k(M({[n]:a},i),{_raw:!0}))}catch(f){return o[t.indexOf(a)]=f,null}})));return u._errors=o,u})}};le.providerName="Base";var je=pe(Ge(),1);var hr=pe(nd(),1);var ni,dT=new Uint8Array(16);function ks(){if(!ni&&(ni=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ni))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ni(dT)}var Ne=[];for(let r=0;r<256;++r)Ne.push((r+256).toString(16).slice(1));function id(r,e=0){return(Ne[r[e+0]]+Ne[r[e+1]]+Ne[r[e+2]]+Ne[r[e+3]]+"-"+Ne[r[e+4]]+Ne[r[e+5]]+"-"+Ne[r[e+6]]+Ne[r[e+7]]+"-"+Ne[r[e+8]]+Ne[r[e+9]]+"-"+Ne[r[e+10]]+Ne[r[e+11]]+Ne[r[e+12]]+Ne[r[e+13]]+Ne[r[e+14]]+Ne[r[e+15]]).toLowerCase()}var mT=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$s={randomUUID:mT};function gT(r,e,t){if($s.randomUUID&&!e&&!r)return $s.randomUUID();r=r||{};let n=r.random||(r.rng||ks)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=n[i];return e}return id(n)}var ii=gT;var si="urn:uuid:",Cr=class extends le{_prepare(){this.has.mappings={read:!0,create:!0,update:!0,delete:!0},Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this.queue=[],this.localStorageKey="cocoda-mappings--"+this._path;let e="mappings",t=()=>hr.default.getItem(this.localStorageKey).then(n=>{n=n||[];let i=0;for(let s of n.filter(o=>!o.uri||!o.uri.startsWith(si)))s.uri&&(s.identifier||(s.identifier=[]),s.identifier.push(s.uri)),s.uri=`${si}${ii()}`,i+=1;return i&&console.warn(`URIs added to ${i} local mappings.`),hr.default.setItem(this.localStorageKey,n)});hr.default.getItem(e).then(n=>{n&&console.warn(`Warning: There is old data in local storage (or IndexedDB, depending on the ) with the key "${e}". This data will not be used anymore. A manual export is necessary to get this data back.`)}),this.queue.push(t().catch(n=>{console.warn("Error when adding URIs to local mappings:",n)}))}isAuthorizedFor({type:e,action:t}){return e=="mappings"&&t!="anonymous"}_getMappingsQueue(){let e=Os.default(this.queue)||Promise.resolve();return new Promise(t=>{function n(){var o,u,a=new Promise((f,d)=>{o=f,u=d});return a.resolve=o,a.reject=u,a}let i=n(),s=()=>{i.resolve()};this.queue.push(i),e.then(()=>hr.default.getItem(this.localStorageKey)).then(o=>{t({mappings:o,done:s})})})}getMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(t._raw=!0,!e||!e.uri)throw new H({parameter:"mapping"});return(yield this.getMappings(k(M({},t),{uri:e.uri})))[0]})}getMappings(){return L(this,arguments,function*({from:e,fromScheme:t,to:n,toScheme:i,creator:s,type:o,partOf:u,offset:a,limit:f,direction:d,mode:v,identifier:w,uri:O}={}){let p={};return e&&(p.from=xe.default(e)?e:e.uri),t&&(p.fromScheme=xe.default(t)?{uri:t}:t),n&&(p.to=xe.default(n)?n:n.uri),i&&(p.toScheme=xe.default(i)?{uri:i}:i),s&&(p.creator=xe.default(s)?s:je.default.prefLabel(s)),o&&(p.type=xe.default(o)?o:o.uri),u&&(p.partOf=xe.default(u)?u:u.uri),a&&(p.offset=a),f&&(p.limit=f),d&&(p.direction=d),v&&(p.mode=v),w&&(p.identifier=w),O&&(p.uri=O),this._getMappingsQueue().catch(C=>{throw new qe({message:"Could not get mappings from local storage",relatedError:C})}).then(({mappings:C,done:G})=>{G();let K=(D,Q)=>D.uri==Q||Q&&D.notation&&D.notation[0].toLowerCase()==Q.toLowerCase();if((p.from||p.to)&&(C=C.filter(D=>{let Q=je.default.conceptsOfMapping(D,"from").find(J=>K(J,p.from))!=null,ne=je.default.conceptsOfMapping(D,"to").find(J=>K(J,p.from))!=null,E=je.default.conceptsOfMapping(D,"from").find(J=>K(J,p.to))!=null,ee=je.default.conceptsOfMapping(D,"to").find(J=>K(J,p.to))!=null;return p.direction=="backward"?p.mode=="or"?p.from&&ne||p.to&&E:(!p.from||ne)&&(!p.to||E):p.direction=="both"?p.mode=="or"?p.from&&(Q||ne)||p.to&&(E||ee):(!p.from||Q)&&(!p.to||ee)||(!p.from||ne)&&(!p.to||E):p.mode=="or"?p.from&&Q||p.to&&ee:(!p.from||Q)&&(!p.to||ee)})),(p.fromScheme||p.toScheme)&&(C=C.filter(D=>{let Q=je.default.compare(D.fromScheme,p.fromScheme),ne=je.default.compare(D.toScheme,p.fromScheme),E=je.default.compare(D.fromScheme,p.toScheme),ee=je.default.compare(D.toScheme,p.toScheme);return p.direction=="backward"?p.mode=="or"?p.fromScheme&&ne||p.toScheme&&E:(!p.fromScheme||ne)&&(!p.toScheme||E):p.direction=="both"?p.mode=="or"?p.fromScheme&&(Q||ne)||p.toScheme&&(E||ee):(!p.fromScheme||Q)&&(!p.toScheme||ee)||(!p.fromScheme||ne)&&(!p.toScheme||E):p.mode=="or"?p.fromScheme&&Q||p.toScheme&&ee:(!p.fromScheme||Q)&&(!p.toScheme||ee)})),p.creator){let D=p.creator.split("|");C=C.filter(Q=>(Q.creator&&Q.creator.find(ne=>D.includes(je.default.prefLabel(ne))||D.includes(ne.uri)))!=null)}p.type&&(C=C.filter(D=>(D.type||[je.default.defaultMappingType.uri]).includes(p.type))),p.partOf&&(C=C.filter(D=>D.partOf!=null&&D.partOf.find(Q=>je.default.compare(Q,{uri:p.partOf}))!=null)),p.identifier&&(C=C.filter(D=>p.identifier.split("|").map(Q=>(D.identifier||[]).includes(Q)||D.uri==Q).reduce((Q,ne)=>Q||ne))),p.uri&&(C=C.filter(D=>D.uri==p.uri));let te=C.length;return C=C.sort((D,Q)=>{let ne=D.modified||D.created,E=Q.modified||Q.created;return E==null?-1:ne==null?1:ne>E?-1:1}),C=C.slice(p.offset||0),C=C.slice(0,p.limit),C._totalCount=te,C})})}postMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue();if((!e.uri||!e.uri.startsWith(si))&&(e.uri&&(e.identifier||(e.identifier=[]),e.identifier.push(e.uri)),e.uri=`${si}${ii()}`),n.find(s=>s.uri==e.uri))throw i(),new H({parameter:"mapping",message:"Duplicate URI"});e.created||(e.created=new Date().toISOString()),e.modified||(e.modified=e.created),n.push(e),n=n.map(s=>je.default.minifyMapping(s));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(s){throw i(),s}})}putMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue(),s=n.findIndex(o=>o.uri==e.uri);if(s==-1)throw i(),new H({parameter:"mapping",message:"Mapping not found"});e.created||(e.created=n[s].created),e.modified=new Date().toISOString(),n[s]=e,n=n.map(o=>je.default.minifyMapping(o));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(o){throw i(),o}})}patchMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue(),s=n.findIndex(o=>o.uri==e.uri);if(s==-1)throw i(),new H({parameter:"mapping",message:"Mapping not found"});e.created||(e.created=n[s].created),e.modified=new Date().toISOString(),n[s]=Object.assign(n[s],e),n=n.map(o=>je.default.minifyMapping(o));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(o){throw i(),o}})}deleteMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue();try{return n=n.filter(s=>s.uri!=e.uri),n=n.map(s=>je.default.minifyMapping(s)),yield hr.default.setItem(this.localStorageKey,n),i(),!0}catch(s){throw i(),s}})}};Cr.providerName="LocalMappings";Cr.stored=!0;var St=pe(Ge(),1);var ir=class extends le{_prepare(){this._api.api&&this._api.status===void 0&&(this._api.status=lr(this._api.api,"/status")),this.has.mappings=!0,this.has.concordances=!0,this.has.annotations=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){if(this._api.api){let e={mappings:"/mappings",concordances:"/concordances",annotations:"/annotations"};for(let t of Object.keys(e))this._api[t]===void 0&&(this._api[t]=lr(this._api.api,e[t]))}this.has.mappings=this._api.mappings?{}:!1,this.has.mappings&&(this.has.mappings.read=!!re.default(this._config,"mappings.read",!0),this.has.mappings.create=!!re.default(this._config,"mappings.create"),this.has.mappings.update=!!re.default(this._config,"mappings.update"),this.has.mappings.delete=!!re.default(this._config,"mappings.delete"),this.has.mappings.anonymous=!!re.default(this._config,"mappings.anonymous")),this.has.concordances=this._api.concordances?{}:!1,this.has.concordances&&(this.has.concordances.read=!!re.default(this._config,"concordances.read"),this.has.concordances.create=!!re.default(this._config,"concordances.create"),this.has.concordances.update=!!re.default(this._config,"concordances.update"),this.has.concordances.delete=!!re.default(this._config,"concordances.delete")),this.has.annotations=this._api.annotations?{}:!1,this.has.annotations&&(this.has.annotations.read=!!re.default(this._config,"annotations.read"),this.has.annotations.create=!!re.default(this._config,"annotations.create"),this.has.annotations.update=!!re.default(this._config,"annotations.update"),this.has.annotations.delete=!!re.default(this._config,"annotations.delete")),this.has.auth=re.default(this._config,"auth.key")!=null,this._defaultParams={properties:"annotations"}}getMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});if(!e.uri||!e.uri.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});try{return yield this.axios(k(M({},t),{url:e.uri,params:M(M({},this._defaultParams),t.params||{})}))}catch(s){if(re.default(s,"response.status")==404)return null;throw s}})}getMappings(Q){return L(this,null,function*(){var ne=Q,{from:e,fromScheme:t,to:n,toScheme:i,creator:s,type:o,partOf:u,offset:a,limit:f,direction:d,mode:v,identifier:w,cardinality:O,annotatedBy:p,annotatedFor:C,annotatedWith:G,sort:K,order:te}=ne,D=V(ne,["from","fromScheme","to","toScheme","creator","type","partOf","offset","limit","direction","mode","identifier","cardinality","annotatedBy","annotatedFor","annotatedWith","sort","order"]);let E={},ee=this._api.mappings;return e&&(E.from=xe.default(e)?e:e.uri),t&&(E.fromScheme=xe.default(t)?t:t.uri),n&&(E.to=xe.default(n)?n:n.uri),i&&(E.toScheme=xe.default(i)?i:i.uri),s&&(E.creator=xe.default(s)?s:St.default.prefLabel(s)),o&&(E.type=xe.default(o)?o:o.uri),u&&(E.partOf=xe.default(u)?u:u.uri),a&&(E.offset=a),f&&(E.limit=f),d&&(E.direction=d),O&&(E.cardinality=O),p&&(E.annotatedBy=p),C&&(E.annotatedFor=C),G&&(E.annotatedWith=G),v&&(E.mode=v),w&&(E.identifier=w),K&&(E.sort=K),te&&(E.order=te),this.axios(k(M({},D),{method:"get",url:ee,params:M(M(M({},this._defaultParams),D.params||{}),E)}))})}postMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});return e=St.default.minifyMapping(e),e=St.default.addMappingIdentifiers(e),this.axios(k(M({},t),{method:"post",url:this._api.mappings,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}putMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});e=St.default.minifyMapping(e),e=St.default.addMappingIdentifiers(e);let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}patchMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:cr.default(e,"uri"),params:M(M({},this._defaultParams),t.params||{})}))})}deleteMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}getAnnotations(n){return L(this,null,function*(){var i=n,{target:e}=i,t=V(i,["target"]);return e&&Ae.default(t,"params.target",e),this.axios(k(M({},t),{method:"get",url:this._api.annotations}))})}postAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);return this.axios(k(M({},t),{method:"post",url:this._api.annotations,data:e}))})}putAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e}))})}patchAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:e}))})}deleteAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}getConcordances(e){return L(this,null,function*(){return this.axios(k(M({},e),{method:"get",url:this._api.concordances}))})}postConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});return this.axios(k(M({},t),{method:"post",url:this._api.concordances,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}putConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}patchConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:cr.default(e,"uri"),params:M(M({},this._defaultParams),t.params||{})}))})}deleteConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}};ir.providerName="MappingsApi";ir.stored=!0;var xt=pe(Ge(),1);var zs={},Tr=class extends le{get _cache(){return zs[this.uri]}_prepare(){zs[this.uri]=[],this._occurrencesSupportedSchemes=[],this.has.occurrences=!0,this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_occurrencesIsSupported(e){return L(this,null,function*(){if(!(this._occurrencesSupportedSchemes&&this._occurrencesSupportedSchemes.length))try{let n=lr(this._api.api,"voc"),i=yield this.axios({method:"get",url:n});this._occurrencesSupportedSchemes=i||[]}catch(n){}let t=!1;for(let n of this._occurrencesSupportedSchemes)xt.default.compare(e,n)&&(t=!0);return t})}getMappings(e){return L(this,null,function*(){let t=yield this.getOccurrences(e),n=e.from,i=re.default(n,"inScheme[0]")||e.fromScheme,s=e.to,o=re.default(s,"inScheme[0]")||e.toScheme,u=[];for(let a of t){if(!a)continue;let f={};f.from=re.default(a,"memberSet[0]"),f.from?f.from={memberSet:[f.from]}:f.from=null,f.fromScheme=re.default(a,"memberSet[0].inScheme[0]"),f.to=re.default(a,"memberSet[1]"),f.to?f.to={memberSet:[f.to]}:f.to={memberSet:[]},f.toScheme=re.default(a,"memberSet[1].inScheme[0]"),(n&&xt.default.compare(n,re.default(f,"to.memberSet[0]"))||s&&xt.default.compare(s,re.default(f,"from.memberSet[0]")))&&([f.from,f.fromScheme,f.to,f.toScheme]=[f.to,f.toScheme,f.from,f.fromScheme]),!f.fromScheme&&i&&(f.fromScheme=i),!f.toScheme&&o&&(f.toScheme=o),f.type=[xt.default.defaultMappingType.uri],f._occurrence=a,f=xt.default.addMappingIdentifiers(f),u.push(f)}return u._url=t._url,u})}getOccurrences(o){return L(this,null,function*(){var u=o,{from:e,to:t,concepts:n,threshold:i=0}=u,s=V(u,["from","to","concepts","threshold"]);let a=[];n=(n||[]).concat([e,t]).filter(p=>!!p);for(let p of n)a.push(this._occurrencesIsSupported(re.default(p,"inScheme[0]")).then(C=>C&&p.uri?p.uri:null));let f=yield Promise.all(a);if(f=f.filter(p=>p!=null),f.length==0)throw new H({parameter:"concepts"});a=[];for(let p of f)a.push(this._getOccurrences(k(M({},s),{params:{member:p,scheme:"*",threshold:i}})));let d=yield Promise.all(a),v=Es.default([],...d),w=[],O=[];for(let p=0;p<v.length;p+=1){let C=v[p];if(!C)continue;let G=C.memberSet.reduce((K,te)=>K.concat(te.uri),[]).sort().join(" ");w.includes(G)?O.push(p):w.push(G)}return O.forEach(p=>{delete v[p]}),v=v.filter(p=>p!=null),v=v.sort((p,C)=>parseInt(C.count||0)-parseInt(p.count||0)),v._url=d.map(p=>p._url),v})}_getOccurrences(e){return L(this,null,function*(){let t=this._cache.find(i=>nr.default(i.config.params,e.params));if(t)return t.data;let n=yield this.axios(k(M({},e),{method:"get",url:this._api.api}));return this._cache.push({config:e,data:n}),this._cache.length>20&&(zs[this.uri]=this._cache.slice(this._cache.length-20)),n})}};Tr.providerName="OccurrencesApi";Tr.stored=!1;var Ir=pe(Ge(),1);var sr=class extends le{_prepare(){this._api.api&&this._api.status===void 0&&(this._api.status=lr(this._api.api,"/status")),this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.types=!0,this.has.suggest=!0,this.has.search=!0,this.has.auth=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){if(this._api.api){let e={schemes:"/voc",top:"/voc/top",concepts:"/voc/concepts",data:"/data",narrower:"/narrower",ancestors:"/ancestors",types:"/types",suggest:"/suggest",search:"/search"};for(let t of Object.keys(e))this._api[t]===void 0&&(this._api[t]=lr(this._api.api,e[t]))}this.has.schemes=!!this._api.schemes,!this.has.schemes&&Array.isArray(this.schemes)&&(this.has.schemes=!0),this.has.top=!!this._api.top,this.has.data=!!this._api.data,this.has.concepts=!!this._api.concepts||this.has.data,this.has.narrower=!!this._api.narrower,this.has.ancestors=!!this._api.ancestors,this.has.types=!!this._api.types,this.has.suggest=!!this._api.suggest,this.has.search=!!this._api.search,this.has.auth=re.default(this._config,"auth.key")!=null,this._defaultParams={properties:"+created,issued,modified,editorialNote,scopeNote"}}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{api:e,schemes:[t]}}_getSchemeUri(e){return L(this,null,function*(){this._approvedSchemes=this._approvedSchemes||[],this._rejectedSchemes=this._rejectedSchemes||[];let t=this._approvedSchemes.find(s=>Ir.default.compare(e,s));if(t)return t.uri;if(this._rejectedSchemes.find(s=>Ir.default.compare(e,s)))return null;let i=(yield this.getSchemes({params:{uri:Ir.default.getAllUris(e).join("|")}})).find(s=>Ir.default.compare(s,e));return i?(this._approvedSchemes.push({uri:i.uri,identifier:Ir.default.getAllUris(e)}),i.uri):(this._rejectedSchemes.push({uri:e.uri,identifier:e.identifier}),null)})}getSchemes(e){return L(this,null,function*(){if(!this._api.schemes){if(Array.isArray(this.schemes))return this.schemes;throw new ze}let t=yield this.axios(k(M({},e),{method:"get",url:this._api.schemes,params:M(k(M({},this._defaultParams),{limit:500}),e.params||{})}));return Array.isArray(this.schemes)?Gr(t.filter(n=>Ir.default.isContainedIn(n,this.schemes)),t):t})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!this._api.top)throw new ze;if(!e)throw new H({parameter:"scheme"});let s=yield this._getSchemeUri(e);if(!s)throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return Array.isArray(this._api.top)?this._api.top:this.axios(k(M({},t),{method:"get",url:this._api.top,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:s})}))})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);if(this.has.data===!1)throw new ze;if(!e)throw new H({parameter:"concepts"});Array.isArray(e)||(e=[e]);let s=e.map(o=>o.uri).filter(o=>o!=null);return this.axios(k(M({},t),{method:"get",url:this._api.data,params:k(M(k(M({},this._defaultParams),{limit:500}),t.params||{}),{uri:s.join("|")})}))})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!this._api.narrower)throw new ze;if(!e||!e.uri)throw new H({parameter:"concept"});return this.axios(k(M({},t),{method:"get",url:this._api.narrower,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:e.uri})}))})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!this._api.ancestors)throw new ze;if(!e||!e.uri)throw new H({parameter:"concept"});return this.axios(k(M({},t),{method:"get",url:this._api.ancestors,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:e.uri})}))})}suggest(o){return L(this,null,function*(){var u=o,{use:e="notation,label",types:t=[],sort:n="score",params:i={}}=u,s=V(u,["use","types","sort","params"]);return this._search(k(M({},s),{endpoint:"suggest",params:k(M({},i),{type:t.join("|"),use:e,sort:n})}))})}search(i){return L(this,null,function*(){var s=i,{types:e=[],params:t={}}=s,n=V(s,["types","params"]);return this._search(k(M({},n),{endpoint:"search",params:k(M({},t),{type:e.join("|")})}))})}vocSuggest(s){return L(this,null,function*(){var o=s,{use:e="notation,label",sort:t="score",params:n={}}=o,i=V(o,["use","sort","params"]);return this._search(k(M({},i),{endpoint:"voc-suggest",params:k(M({},n),{use:e,sort:t})}))})}vocSearch(e){return L(this,null,function*(){return this._search(k(M({},e),{endpoint:"voc-search"}))})}_search(f){return L(this,null,function*(){var d=f,{endpoint:e,scheme:t,search:n,limit:i,offset:s,params:o,url:u}=d,a=V(d,["endpoint","scheme","search","limit","offset","params","url"]);if(u=u!=null?u:this._api[e],!u)throw new ze;if(!n)throw new H({parameter:"search"});i=i||this._jskos.suggestResultLimit||100,s=s||0;let v=t&&(yield this._getSchemeUri(t));return u=u.replace("{searchTerms}",n),this.axios(k(M({},a),{params:k(M(M({},this._defaultParams),o),{limit:i,count:i,offset:s,search:n,query:n,voc:v}),method:"get",url:u}))})}getTypes(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!this._api.types)throw new ze;if(Array.isArray(this._api.types))return this._api.types;let s=e&&(yield this._getSchemeUri(e));s&&Ae.default(t,"params.uri",s);let o=yield this.axios(k(M({},t),{method:"get",url:this._api.types}));return s&&(o=o.filter(u=>!u.inScheme||Ir.default.isContainedIn(e,u.inScheme))),o})}};sr.providerName="ConceptApi";sr.providerType="http://bartoc.org/api-type/jskos";var fn=pe(Ge(),1);var Hs={},Pr=class extends le{get _cache(){return Hs[this.uri]}_prepare(){Hs[this.uri]=[],this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}getMappings(s){return L(this,null,function*(){var o=s,{from:e,to:t,mode:n}=o,i=V(o,["from","to","mode"]);let u=[];Re.default(this.schemes)&&(u=this.schemes);let a,f,d=re.default(e,"inScheme[0]"),v=re.default(t,"inScheme[0]"),w,O;if(!e||fn.default.isContainedIn(d,u)?(a=!0,f=t,w=v,O=u.find(E=>fn.default.compare(E,d))||u[0]):(a=!1,f=e,w=d,O=u.find(E=>fn.default.compare(E,v))||u[0]),n!="or")return[];if(!this._api.api)throw new ze;if(!f)throw new H({parameter:a?"to":"from"});let p=fn.default.languagePreference.selectLanguage(f.prefLabel);if(!p)throw new H({parameter:a?"to":"from",message:"Missing language"});let C=re.default(f,`altLabel.${p}`,[]);xe.default(C)&&(C=[C]);let G=re.default(f,`prefLabel.${p}`),K=C.concat([G]);K=[G];let{url:te,data:D}=yield this._getReconciliationResults(k(M({},i),{labels:K,language:p}));D=[].concat(...Object.values(D).map(E=>E.result)).filter(E=>E),D=D.sort((E,ee)=>E.score!=ee.score?ee.score-E.score:E.match!=ee.match?E.match?-1:1:E.id.length-ee.id.length);let Q=re.default(O,"namespace",""),ne=D.map(E=>({fromScheme:w,from:{memberSet:[f]},toScheme:O,to:{memberSet:[{uri:Q+E.id}]},type:[E.match?"http://www.w3.org/2004/02/skos/core#exactMatch":E.score>=80?"http://www.w3.org/2004/02/skos/core#closeMatch":"http://www.w3.org/2004/02/skos/core#mappingRelation"]}));return a&&(ne=ne.map(E=>Object.assign(E,{fromScheme:E.toScheme,from:E.to,toScheme:E.fromScheme,to:E.from}))),ne._url=te,ne})}_getReconciliationResults(i){return L(this,null,function*(){var s=i,{labels:e,language:t}=s,n=V(s,["labels","language"]);e=e.sort();let o=this._cache.find(O=>nr.default(O.labels,e)&&O.language==t);if(o)return o;let u={},a=0;for(let O of e)u[`q${a}`]={query:O},a+=1;let f=this._api.api;t&&(f=f.replace("{language}",t));let d=`queries=${encodeURIComponent(JSON.stringify(u))}`;Ae.default(n,["headers","Content-Type"],"application/x-www-form-urlencoded");let v=yield this.axios(k(M({},n),{method:"post",url:f,data:d}));v=v||{};let w={labels:e,language:t,data:v,url:`${f}${f.includes("?")?"&":"?"}${d}`};return this._cache.push(w),this._cache.length>20&&(Hs[this.uri]=this._cache.slice(this._cache.length-20)),w})}};Pr.providerName="ReconciliationApi";Pr.stored=!1;var Kr=pe(Ge(),1);var qr=class extends le{_prepare(){this._cache=[],this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}supportsScheme(e){return super.supportsScheme(e)&&re.default(e,"_registry.has.search",!1)}getMappings(u){return L(this,null,function*(){var a=u,{from:e,to:t,mode:n,selected:i,limit:s=10}=a,o=V(a,["from","to","mode","selected","limit"]);if(n!="or")return[];if(!i)throw new H({parameter:"selected"});let f=[];e&&this.supportsScheme(i.scheme[!1])?f.push(this._getMappings(k(M({},o),{concept:e,sourceScheme:i.scheme[!0],targetScheme:i.scheme[!1],limit:s}))):f.push(Promise.resolve([])),t&&this.supportsScheme(i.scheme[!0])?f.push(this._getMappings(k(M({},o),{concept:t,sourceScheme:i.scheme[!1],targetScheme:i.scheme[!0],limit:s,swap:!0}))):f.push(Promise.resolve([]));let[d,v]=yield Promise.all(f);for(v=v.filter(w=>!d.find(O=>Kr.default.compareMappingMembers(w,O)));d.length+v.length>s;)v.length>=d.length?v=v.slice(0,-1):d=d.slice(0,-1);return Ss.default(d,v)})}_getMappings(u){return L(this,null,function*(){var a=u,{concept:e,sourceScheme:t,targetScheme:n,limit:i,swap:s=!1}=a,o=V(a,["concept","sourceScheme","targetScheme","limit","swap"]);var p;if(!e||!t||!n)return[];if(Kr.default.compare(t,n))return[];let f=Kr.default.languagePreference.selectLanguage(e.prefLabel)||this._defaultLanguages[0],d=Kr.default.prefLabel(e,{fallbackToUri:!1,language:f});if(!d)return[];let v=/^[\s\wäüöÄÜÖß]*\w/.exec(d);d=v?v[0]:d;let w=yield this._getResults(k(M({},o),{label:d,targetScheme:n,limit:i}));if(!w.length&&((p=e.broader)!=null&&p.length))for(let C of e.broader){let G=Kr.default.prefLabel(C,{fallbackToUri:!1,language:f});if(G&&(w=yield this._getResults(k(M({},o),{label:G,targetScheme:n,limit:i})),w.length))break}let O=w.map(C=>({fromScheme:t,from:{memberSet:[e]},toScheme:n,to:{memberSet:[C]},type:["http://www.w3.org/2004/02/skos/core#mappingRelation"]}));return s&&(O=O.map(C=>Object.assign(C,{fromScheme:C.toScheme,from:C.to,toScheme:C.fromScheme,to:C.from}))),O})}_getResults(s){return L(this,null,function*(){var o=s,{label:e,targetScheme:t,limit:n}=o,i=V(o,["label","targetScheme","limit"]);var v;let u=(this._cache[t.uri]||{})[e];if(u&&u._limit>=n)return u;let a=re.default(t,"_registry");if(!a||a.has.search===!1)return[];let f=(v=(this._jskos.overrides||[]).find(w=>Kr.default.compare(w,t)))==null?void 0:v.search,d=yield a.search(k(M({},i),{url:f,search:e,scheme:t,limit:n}));return this._cache[t.uri]||(this._cache[t.uri]={}),this._cache[t.uri][e]=d,this._cache[t.uri][e]._limit=n,d})}};qr.providerName="LabelSearchSuggestion";qr.stored=!1;var Be=pe(Ge(),1);var Rr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.types=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){if(!e||!t)return null;let n={},i=e.match(/(.+\/)([^/]+)\/$/);return i?(n.api=i[1]+"rest/v1/",t.VOCID=i[2],n.schemes=[t],n):null}get _language(){return this.languages[0]||this._defaultLanguages[0]||"en"}_getApiUrl(e,t,n){let i=e&&e.VOCID||re.default(this.schemes.find(o=>Be.default.compare(o,e)),"VOCID");if(!i)throw new H({parameter:"scheme",message:"Missing scheme or VOCID property on scheme"});t=t||"",n=n||{},n.lang||(n.lang=this._language);let s=Object.keys(n).map(o=>`${o}=${encodeURIComponent(n[o])}`).join("&");return`${this._api.api}${i}${t}${s?"?"+s:""}`}_getDataUrl(e,{addFormatParameter:t=!0}={}){let n=re.default(e,"inScheme[0]");if(!e||!e.uri)throw new H({parameter:"concept",message:"Missing concept URI"});return this._getApiUrl(n,"/data",t?{format:"application/json"}:{})}_getSchemeUri(e){return L(this,null,function*(){this._approvedSchemes=this._approvedSchemes||[],this._rejectedSchemes=this._rejectedSchemes||[];let t=this._approvedSchemes.find(o=>Be.default.compare(e,o));if(t)return t.uri;if(this._rejectedSchemes.find(o=>Be.default.compare(e,o)))return null;let n=this._getApiUrl(e,"/"),s=(yield this.axios({method:"get",url:n})).conceptschemes.find(o=>Be.default.compare(o,e));return s?(this._approvedSchemes.push({uri:s.uri,identifier:Be.default.getAllUris(e)}),s.uri):(this._rejectedSchemes.push({uri:e.uri,identifier:e.identifier}),null)})}_toJskosConcept(e,{concept:t,scheme:n,result:i,language:s}={}){if(!e)return null;t=Be.default.deepCopy(t||{}),s=s||e.lang||"en",t.uri=e.uri,n&&(t.inScheme=[n]);let o=e.matchedPrefLabel||e.prefLabel||e.label;if(xe.default(o))Ae.default(t,`prefLabel.${s}`,o);else{o&&!Re.default(o)&&(o=[o]);for(let f of o||[])Ae.default(t,`prefLabel.${f.lang}`,f.value)}let u=e.altLabel;if(xe.default(u))Ae.default(t,`altLabel.${s}`,[u]);else{u&&!Re.default(u)&&(u=[u]);for(let f of u||[])re.default(t,`altLabel.${f.lang}`)?(t.altLabel[f.lang].push(f.value),t.altLabel[f.lang]=Ar.default(t.altLabel[f.lang])):Ae.default(t,`altLabel.${f.lang}`,[f.value])}let a=e.notation||e["skos:notation"]||Be.default.notation(t);a&&(t.notation=[a.value||a]),e.broader&&(Re.default(e.broader)||(e.broader=[e.broader]),t.broader=e.broader.map(f=>xe.default(f)?{uri:f}:f)),e.hasChildren===!0?t.narrower=[null]:e.hasChildren===!1&&(t.narrower=[]),e.type&&!Re.default(e.type)&&(e.type=[e.type]),t.type=t.type||[];for(let f of e.type||[]){if(!Be.default.isValidUri(f))continue;let d=f.slice(0,f.indexOf(":"));i&&i["@context"]&&i["@context"][d]&&(f=f.replace(d+":",i["@context"][d])),t.type.push(f)}return t.type=Ar.default(t.type),t.type.length||(t.type=["http://www.w3.org/2004/02/skos/core#Concept"]),t}getSchemes(t){return L(this,null,function*(){var e=V(t,[]);let n=[];for(let i of this.schemes||[]){let s=this._getApiUrl(i,"/"),u=(yield this.axios(k(M({},e),{method:"get",url:s}))).conceptschemes.find(f=>Be.default.compare(f,i)),a=u&&(u.prefLabel||u.label||u.title);a&&Ae.default(i,`prefLabel.${this._language}`,a),n.push(i),this._approvedSchemes=this._approvedSchemes||[],this._approvedSchemes.find(f=>Be.default.compare(i,f))||this._approvedSchemes.push({uri:u.uri,identifier:Be.default.getAllUris(i)})}return n})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=this._getApiUrl(e,"/topConcepts"),o=yield this._getSchemeUri(e);if(!o)throw new H({parameter:"scheme",message:"Missing or unsupported scheme or VOCID property on scheme"});Ae.default(t,"params.scheme",o);let u=yield this.axios(k(M({},t),{method:"get",url:s})),a=[];for(let f of u.topconcepts||[]){let d=this._toJskosConcept(f,{scheme:e,language:this._language});d.topConceptOf=[e],a.push(d)}return a})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);Re.default(e)||(e=[e]),e=e.map(o=>({uri:o.uri,inScheme:o.inScheme}));let s=[];for(let o of e){let u=this._getDataUrl(o,{addFormatParameter:!1});if(!u)continue;let a=yield this.axios(k(M({},t),{method:"get",url:u,params:{uri:o.uri,format:"application/json"}})),f=a&&a.graph&&a.graph.find(d=>Be.default.compare(d,o));if(f){let d=this._toJskosConcept(f,{concept:o,result:a});for(let v of["broader","narrower"]){let w=f[v]||d[v];w&&!Re.default(w)&&(w=[w]),w||(w=[]),d[v]=w.map(O=>this._toJskosConcept(a.graph.find(p=>Be.default.compare(p,O)),{scheme:o.inScheme[0],result:a}))}d.ancestors=[],s.push(d)}}return s})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});let s=e.inScheme[0],o=this._getApiUrl(s,"/children");return Ae.default(t,"params.uri",e.uri),((yield this.axios(k(M({},t),{method:"get",url:o}))).narrower||[]).map(f=>this._toJskosConcept(f,{scheme:s}))})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});let s=e.inScheme[0],o=this._getApiUrl(s,"/broaderTransitive");Ae.default(t,"params.uri",e.uri);let u=yield this.axios(k(M({},t),{method:"get",url:o})),a=[],f=e.uri;for(;f;){if(f!=e.uri){let v=re.default(u,`broaderTransitive["${f}"]`);a=a.concat([v])}f=re.default(u,`broaderTransitive["${f}"].broader[0]`)}return a.map(v=>this._toJskosConcept(v,{scheme:s})).filter(v=>v.uri!=e.uri)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=Be.default.notation(i),o=Be.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}search(o){return L(this,null,function*(){var u=o,{search:e,scheme:t,limit:n,types:i=[]}=u,s=V(u,["search","scheme","limit","types"]);let a=this._getApiUrl(t,"/search");return Ae.default(s,"params.query",`${e}*`),Ae.default(s,"params.unique",1),Ae.default(s,"params.maxhits",n||100),Ae.default(s,"params.type",i.join(" ")),((yield this.axios(k(M({},s),{method:"get",url:a}))).results||[]).map(v=>this._toJskosConcept(v,{scheme:t}))})}getTypes(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=this._getApiUrl(e,"/types"),o=[],u=yield this.axios(k(M({},t),{method:"get",url:s}));for(let a of u&&u.types||[])a.uri!="http://www.w3.org/2004/02/skos/core#Concept"&&(a.label&&(a.prefLabel={[u["@context"]["@language"]]:a.label},delete a.label),o.push(a));return o._url=s,o})}};Rr.providerName="SkosmosApi";Rr.providerType="http://bartoc.org/api-type/skosmos";var pr=pe(Ge(),1);var ai="http://id.loc.gov/authorities/",oi=[{uri:`${ai}subjects`,identifier:["http://bartoc.org/en/node/454"],notation:["LCSH"],concepts:[null],topConcepts:[]},{uri:`${ai}names`,identifier:["http://bartoc.org/en/node/18536"],notation:["LCNAF"],concepts:[null],topConcepts:[]}],sd=`${ai}classification`;function od(r){let e={};e.uri=r["@id"],e.notation=(r["http://www.loc.gov/mads/rdf/v1#code"]||[]).map(i=>i["@value"]);let t=r["http://www.loc.gov/mads/rdf/v1#authoritativeLabel"]||r["http://www.w3.org/2000/01/rdf-schema#label"]||[];t.length&&(e.prefLabel={},e.prefLabel[t[0]["@language"]||"en"]=t[0]["@value"]);let n=r["http://www.w3.org/2004/02/skos/core#altLabel"]||[];n.length&&(e.altLabel={en:n.map(i=>i["@value"])});for(let i of r["http://www.w3.org/2000/01/rdf-schema#comment"]||[])e.definition=e.definition||{},e.definition.en=e.definition.en||[],e.definition.en.push(i["@value"]);return e}function yT(r){let e=od(r);return e.namespace=e.uri+"/",e.type=["http://www.w3.org/2004/02/skos/core#ConceptScheme"],e}var Ws=r=>e=>!e||!r||!r.namespace?!0:e.uri.startsWith(r.namespace);function vT(r,{scheme:e}){let t=od(r);t.type=["http://www.w3.org/2004/02/skos/core#Concept"],t.inScheme=e?[e]:(r["http://www.loc.gov/mads/rdf/v1#isMemberOfMADSScheme"]||[]).map(s=>oi.find(o=>o.uri===s["@id"])),(!t.inScheme.length||!t.inScheme[0])&&delete t.inScheme;let n=r["http://www.loc.gov/mads/rdf/v1#hasNarrowerAuthority"]||pr.default.compare(t.inScheme[0],{uri:sd})&&r["http://www.loc.gov/mads/rdf/v1#hasMADSCollectionMember"]||[];t.narrower=n.map(s=>({uri:s["@id"]})).filter(Ws(t.inScheme&&t.inScheme[0]));let i=r["http://www.loc.gov/mads/rdf/v1#hasBroaderAuthority"]||pr.default.compare(t.inScheme[0],{uri:sd})&&r["http://www.loc.gov/mads/rdf/v1#isMemberOfMADSCollection"]||[];return t.broader=i.map(s=>({uri:s["@id"]})).filter(Ws(t.inScheme&&t.inScheme[0])),t}var Mr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!1,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!1,this.has.ancestors=!1,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({scheme:e}={}){return!e||!oi.find(t=>pr.default.compare(t,e))?null:{schemes:[e]}}getSchemes(){return L(this,null,function*(){let e=[];for(let t of yield Promise.all(oi.filter(n=>!this.schemes||!this.schemes.length||this.schemes.find(i=>pr.default.compare(n,i))).map(n=>Fe({method:"get",url:`${n.uri.replace("http:","https:")}.json`}).then(({status:i,data:s})=>{if(i===200){let o=s.find(u=>n.uri===u["@id"]);if(o)return o=pr.default.merge(yT(o),n),o.topConcepts=(o.topConcepts||[]).filter(u=>u),o}return null}))))t&&e.push(t);return e})}getConcepts(t){return L(this,arguments,function*({concepts:e}){Array.isArray(e)||(e=[e]);let n=[];for(let i of yield Promise.all(e.map(s=>Fe({method:"get",url:`${s.uri.replace("http:","https:")}.json`}).then(({status:o,data:u})=>{if(o===200){let a=u.find(f=>s.uri===f["@id"]);return a?vT(a,{scheme:s.inScheme&&s.inScheme[0]}):null}}))))i&&n.push(i);return n})}suggest(e){return L(this,null,function*(){let t=yield this.search(e);return[e.search,t.map(n=>pr.default.prefLabel(n,{fallbackToUri:!0})),[],t.map(n=>n.uri)]})}search(s){return L(this,arguments,function*({search:e,scheme:t,limit:n,offset:i}){let o=pr.default.getAllUris(t).find(a=>a.startsWith(ai));if(!o||!oi.find(a=>pr.default.compare(a,{uri:o})))throw new H({parameter:"scheme",message:"provided scheme is not supported (yet)"});if(!e)throw new H({parameter:"search",message:"parameter is empty or missing"});n=n||this._jskos.suggestResultLimit||100,i=i||0;let{data:u}=yield Fe({method:"get",url:`${o}/suggest2`.replace("http:","https:"),params:{q:e,count:n||100,offset:i,searchtype:"keyword"}});return(u.hits||[]).map(a=>({uri:a.uri,notation:[a.token],prefLabel:{en:a.aLabel},inScheme:[t]})).filter(Ws(t))})}};Mr.providerName="LocApi";Mr.providerType="http://bartoc.org/api-type/loc";var Vr=pe(Ge(),1),ud=pe(Ks(),1);function ui(r){return r.replace(/\\u[\dA-F]{4}/gi,function(e){return String.fromCharCode(parseInt(e.replace(/\\u/g,""),16))})}var Jr={},Lr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1}),Jr[this.uri]={index:{},conceptCache:{},schemeCache:{}}}get _index(){return Jr[this.uri]&&Jr[this.uri].index}get _conceptCache(){return Jr[this.uri]&&Jr[this.uri].conceptCache}get _schemeCache(){return Jr[this.uri]&&Jr[this.uri].schemeCache}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{schemes:[{uri:e,identifier:Vr.default.getAllUris(t).filter(i=>i!==e)}]}}_loadScheme(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=Vr.default.getAllUris(e);for(let p of s)if(this._schemeCache[p])return this._schemeCache[p];let o=this.schemes.find(p=>Vr.default.compare(p,e));if(!o||!o.uri)throw new tr({message:`Tried to load unsupported scheme (${e&&e.uri})`});let u=o.uri;s=Ar.default(s.concat(Vr.default.getAllUris(o)));let a=".json";u.endsWith("/")&&(a="index.json");let f=yield this.axios(k(M({},t),{url:`${u}${a}`,_skipAdditionalParameters:!0}));if(f.id!==u)throw new tr({message:"Skohub URL did not return expected concept scheme"});let{title:d,preferredNamespaceUri:v,hasTopConcept:w,description:O}=f;e={uri:u,identifier:s.filter(p=>p!==u)},e.prefLabel=d,Object.keys(e.prefLabel||{}).forEach(p=>{e.prefLabel[p]=ui(e.prefLabel[p])}),e.namespace=v,e.topConcepts=(w||[]).map(p=>this._toJskosConcept(p)),e.concepts=[null],O&&(e.definition=O,Object.keys(e.definition).forEach(p=>{e.definition[p]=[ui(e.definition[p])]}));for(let p of Object.keys(e).filter(C=>!e[C]))delete e[p];for(let p of s)this._schemeCache[p]=e;return e})}_loadConcept(n){return L(this,null,function*(){var i=n,{uri:e}=i,t=V(i,["uri"]);if(this._conceptCache[e])return this._conceptCache[e];try{let s=yield this.axios(k(M({},t),{url:`${e}.json`,_skipAdditionalParameters:!0}));if(s.id!==e)throw new tr({message:"Skohub URL did not return expected concept URI"});let o=this._toJskosConcept(s);return this._conceptCache[e]=o,o}catch(s){return null}})}_toJskosConcept(e){let t={uri:e.id};return t.prefLabel=e.prefLabel,Object.keys(t.prefLabel||{}).forEach(n=>{t.prefLabel[n]=ui(t.prefLabel[n])}),t.narrower=(e.narrower||[]).map(n=>this._toJskosConcept(n)),t.notation=e.notation||[],e.broader&&e.broader.id&&(t.broader=[{uri:e.broader.id}]),e.inScheme&&e.inScheme.id&&(t.inScheme=[{uri:e.inScheme.id}]),e.scopeNote&&(t.scopeNote=e.scopeNote,Object.keys(t.scopeNote).forEach(n=>{t.scopeNote[n]=[ui(t.scopeNote[n])]})),t}getSchemes(t){return L(this,null,function*(){var e=V(t,[]);return Promise.all(this.schemes.map(n=>this._loadScheme(k(M({},e),{scheme:n}))))})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!e||!e.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});return e=yield this._loadScheme(M({scheme:e},t)),e.topConcepts||[]})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);return Re.default(e)||(e=[e]),(yield Promise.all(e.map(({uri:s})=>this._loadConcept(k(M({},t),{uri:s}))))).filter(Boolean)})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});if(e.ancestors&&e.ancestors[0]!==null)return e.ancestors;if(e=yield this._loadConcept(k(M({},t),{uri:e.uri})),!e||!e.broader||!e.broader.length)return[];let s=e.broader[0];return[s].concat(yield this.getAncestors(M({concept:s},t))).map(o=>({uri:o.uri}))})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});return e.narrower&&e.narrower[0]!==null||(e=yield this._loadConcept(k(M({},t),{uri:e.uri}))),e.narrower})}search(i){return L(this,arguments,function*({search:e,scheme:t,limit:n=100}){if(t=yield this._loadScheme({scheme:t}),!t||!t.uri)throw new H({parameter:"scheme"});if(!e)throw new H({parameter:"search"});let s;this._index[t.uri]||(this._index[t.uri]={});for(let a of[""].concat(this.languages)){if(this._index[t.uri][a]){s=this._index[t.uri][a];break}if(this._index[t.uri][a]!==null)try{let f=a?`.${a}.index`:".index";t.uri.endsWith("/")&&(f=`index${f}`);let d=yield this.axios({url:`${t.uri}${f}`,_skipAdditionalParameters:!0});if(d.length<100){this._index[t.uri][a]=null;continue}s=ud.default.create(),s.import(d),this._index[t.uri][a]=s;break}catch(f){this._index[t.uri][a]=null}}if(!s)throw new tr({message:"Could not find search index for any of the available languages "+this.languages.join(",")});let o=s.search(e);return(yield this.getConcepts({concepts:o.map(a=>({uri:a}))})).slice(0,n)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=Vr.default.notation(i),o=Vr.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}};Lr.providerName="Skohub";Lr.providerType="http://bartoc.org/api-type/skohub";var cn=pe(Ge(),1);var fd="https://lobid.org/gnd/",dr={uri:"http://bartoc.org/en/node/430",concepts:[null],topConcepts:[],type:["http://www.w3.org/2004/02/skos/core#ConceptScheme"],DISPLAY:{hideNotation:!0},identifier:["http://www.wikidata.org/entity/Q36578"],license:[{uri:"http://creativecommons.org/publicdomain/zero/1.0/"}],namespace:"https://d-nb.info/gnd/",notation:["GND"],notationPattern:"[0-9X-]+",prefLabel:{de:"Gemeinsame Normdatei",en:"Integrated Authority File"},types:[{uri:"https://d-nb.info/standards/elementset/gnd#DifferentiatedPerson",prefLabel:{de:"Person",en:"Person"}},{uri:"https://d-nb.info/standards/elementset/gnd#PlaceOrGeographicName",prefLabel:{de:"Geografikum",en:"Place"}},{uri:"https://d-nb.info/standards/elementset/gnd#CorporateBody",prefLabel:{de:"Organisation",en:"Organization"}},{uri:"https://d-nb.info/standards/elementset/gnd#SubjectHeading",prefLabel:{de:"Sachbegriff",en:"Subject"}},{uri:"https://d-nb.info/standards/elementset/gnd#Work",prefLabel:{de:"Werk",en:"Work"}},{uri:"https://d-nb.info/standards/elementset/gnd#ConferenceOrEvent",prefLabel:{de:"Konferenz oder Veranstaltung",en:"ConferenceOrEvent"}}]},Ys=new cn.default.ConceptScheme({uri:"https://d-nb.info/standards/elementset/gnd",namespace:"https://d-nb.info/standards/elementset/gnd#"});dr.types.forEach(r=>{r.notation=[Ys.notationFromUri(r.uri)]});var wT=new cn.default.ConceptScheme(dr),cd=["broaderTerm","broaderTermGeneral","broaderTermGeneric","broaderTermInstantial","broaderTermPartitive"];function Js(r){let e={uri:r.id,notation:[r.gndIdentifier],prefLabel:{de:r.preferredName},inScheme:[{uri:dr.uri}]};return r.variantName&&(e.altLabel={de:r.variantName}),e.type=r.type.map(t=>Ys.uriFromNotation(t)).filter(Boolean),e.broader=[],cd.forEach(t=>{e.broader=e.broader.concat(r[t]||[])}),e.broader=e.broader.map(t=>({uri:t.id})),e.identifier=[e.uri.replace("https://","http://")],r.sameAs&&r.sameAs.length&&(e.mappings=r.sameAs.map(t=>({from:{memberSet:[{uri:e.uri}]},fromScheme:{uri:dr.uri},to:{memberSet:[{uri:t.id}]},toScheme:{uri:t.collection.id},type:["http://www.w3.org/2004/02/skos/core#exactMatch"]}))),e}function Vs(r){return r&&r.startsWith("http://")?r.replace("http://","https://"):r}var Yr=class extends le{_prepare(){this.has.schemes=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.suggest=!0,this.has.search=!0,this.has.types=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this._api.api||(this._api.api=fd)}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t||!cn.default.compare(t,dr)||e!=="https://lobid.org/gnd/api"?null:{api:fd,schemes:[dr]}}getSchemes(){return L(this,null,function*(){return[dr]})}getTop(){return L(this,null,function*(){return[]})}getConcepts(t){return L(this,arguments,function*({concepts:e}){if(!e)throw new i.InvalidOrMissingParameterError({parameter:"concepts"});Array.isArray(e)||(e=[e]);let n=e.map(o=>{var u,a;return(u=o==null?void 0:o.notation)!=null&&u[0]?(a=o==null?void 0:o.notation)==null?void 0:a[0]:wT.notationFromUri(Vs(o==null?void 0:o.uri))}).filter(Boolean),i=[],s=yield Promise.all(n.map(o=>L(this,null,function*(){try{let u=yield Fe.get(`${this._api.api}${o}.json`);return Js(u.data)}catch(u){i.push(u)}})));if(i.length===e.length)throw i[0];return s.filter(Boolean)})}getNarrower(i){return L(this,arguments,function*({concept:e,limit:t=200,offset:n=0}){if(!e||!e.uri)throw new H({parameter:"concept"});let s=Vs(e.uri),o=cd.map(a=>`${a}.id:"${s}"`).join(" OR ");return(yield Fe.get(`${this._api.api}search`,{params:{q:o,format:"json",size:t,from:n}})).data.member.map(a=>Js(a))})}suggest(e){return L(this,null,function*(){let t=yield this._search(k(M({},e),{format:"json:suggest"}));return[e.search,t.map(n=>n.label),[],t.map(n=>n.id)]})}search(e){return L(this,null,function*(){return(yield this._search(e)).member.map(n=>Js(n))})}_search(o){return L(this,arguments,function*({search:e,types:t,limit:n=100,offset:i=0,format:s="json"}){if(!e)throw new H({parameter:"search"});let u="";return t=(t==null?void 0:t.map(f=>Ys.notationFromUri(Vs(f))).filter(Boolean))||[],t.length&&(u=t.map(f=>`type:${f}`).join(" OR ")),(yield Fe.get(`${this._api.api}search`,{params:{q:e,filter:u,format:s,size:n,from:i}})).data})}getTypes(t){return L(this,arguments,function*({scheme:e}){if(!e||!cn.default.compare(e,dr))throw new H({parameter:"search",message:e!=null&&e.uri?`scheme ${e==null?void 0:e.uri} not supported`:""});return dr.types})}};Yr.providerName="LobidApi";var ln=pe(Ge(),1),ld=pe(Ks(),1);var Ke={},Nr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this._scheme=null}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{api:e}}_schemeInfoToJSKOS(e){let t=e.labels.find(s=>s.lang==="x-uri").text,n={};e.labels.filter(s=>!s.lang.startsWith("x-")).forEach(s=>{n[s.lang]=s.text});let i={uri:t,prefLabel:n};return e.categories&&e.categories.length&&(i.topConcepts=[null]),e.category&&e.category.length&&(i.concepts=[null]),i}_categoryToJSKOS(e,{scheme:t,broader:n=[]}){if(!e||!t)return null;let i=e.ID,s=`${t.uri}/${i}`;if(Ke[t.uri].concepts[s])return Ke[t.uri].concepts[s];let o={};e.labels.filter(a=>!a.lang.startsWith("x-")&&a.text).forEach(a=>{o[a.lang]=a.text.replace(`${i} `,""),Ke[t.uri].searchIndex.add(s,o[a.lang])});let u={};return e.labels.filter(a=>!a.lang.startsWith("x-")&&a.description).forEach(a=>{u[a.lang]||(u[a.lang]=[]),u[a.lang].push(a.description)}),Ke[t.uri].concepts[s]={uri:s,notation:[i],prefLabel:o,scopeNote:u,inScheme:[{uri:t.uri}],narrower:(e.categories||[]).map(a=>({uri:`${t.uri}/${a.ID}`})),broader:n},Ke[t.uri].concepts[s]}_removeNarrower(e){return e&&Object.assign({},e,{narrower:e.narrower&&e.narrower.length?[null]:[]})}_loadSchemeData(e){return L(this,null,function*(){let t=yield this.axios(k(M({},e),{method:"get",url:this._api.api,_skipAdditionalParameters:!0}));this._scheme=this._schemeInfoToJSKOS(t);let n=this._scheme.uri;Ke[n]={schemeInfo:t,searchIndex:ld.default.create({tokenize:"full"}),concepts:{}};let i=(s,{broader:o=[]}={})=>{let u=this._categoryToJSKOS(s,{scheme:this._scheme,broader:o});(s.categories||[]).forEach(a=>i(a,{broader:[{uri:u.uri}]}))};t.categories.forEach(s=>i(s)),Ke[n].topConcepts=t.categories.map(s=>this._categoryToJSKOS(s,{scheme:this._scheme}))})}getSchemes(){return L(this,arguments,function*(e={}){if(!this._api.api)throw new ze;return this._scheme||(this._loadSchemeDataPromise||(this._loadSchemeDataPromise=this._loadSchemeData(e)),yield this._loadSchemeDataPromise),[this._scheme]})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!e||!e.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});if(this._scheme||(yield this.getSchemes(t)),!ln.default.compare(e,this._scheme))throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return Ke[this._scheme.uri].topConcepts.map(this._removeNarrower)})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);return Re.default(e)||(e=[e]),this._scheme||(yield this.getSchemes(t)),e.map(s=>Ke[this._scheme.uri].concepts[s.uri]).map(this._removeNarrower)})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});if(e.ancestors&&e.ancestors[0]!==null)return e.ancestors;this._scheme||(yield this.getSchemes(t)),e=Ke[this._scheme.uri].concepts[e.uri];let s=e&&e.broader&&e.broader[0];return s?[s].concat(yield this.getAncestors(M({concept:s},t))):[]})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});return e.narrower&&e.narrower[0]!==null?e.narrower:(this._scheme||(yield this.getSchemes(t)),e=Ke[this._scheme.uri].concepts[e.uri],(e&&e.narrower||[]).map(s=>Ke[this._scheme.uri].concepts[s.uri]).map(this._removeNarrower))})}search(i){return L(this,arguments,function*({search:e,scheme:t,limit:n=100}){if(!t||!t.uri)throw new H({parameter:"scheme"});if(!e)throw new H({parameter:"search"});if(!t||!t.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});if(this._scheme||(yield this.getSchemes()),!ln.default.compare(t,this._scheme))throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return(yield Ke[this._scheme.uri].searchIndex.search(e)).map(o=>Ke[this._scheme.uri].concepts[o]).map(this._removeNarrower).slice(0,n)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=ln.default.notation(i),o=ln.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}};Nr.providerName="MyCoRe";Nr.providerType="http://bartoc.org/api-type/mycore";var or={[le.providerName]:le,init(r){if(this[r.provider])return new this[r.provider](r);throw new et},addProvider(r){if(r.prototype instanceof le||r===le)this[r.providerName]=r;else throw new et}};or.addProvider(sr);or.addProvider(ir);Object.values(hn).forEach(r=>{or.addProvider(r)});var Xs={},Ur=class{constructor(e){this.config=e,this.axios=Fe.create()}setConfig(e){this.config=e}get config(){return this._config}set config(e){e=e||{},e.registries=e.registries||[],e.registries=e.registries.map(t=>or.init(t)).filter(t=>t),e.registries.forEach(t=>{t.cdk=this}),this._config=e}get providers(){return or}createInstance(e){return new Ur(e)}loadConfig(e){return L(this,null,function*(){let t=yield this.axios.get(e);this.config=t.data})}loadBuildInfo(o){var u=o,{url:e,buildInfo:t=null,interval:n=6e4,callback:i}=u,s=V(u,["url","buildInfo","interval","callback"]);if(!e&&!this.config.cocodaBaseUrl)throw new qe({message:"Could not determine URL to load build config."});return e||(e=`${this.config.cocodaBaseUrl}build-info.json`),this.repeat(k(M({},s),{function:()=>L(this,null,function*(){return(yield this.axios.get(e,{headers:{"Cache-Control":"no-cache"}})).data}),interval:n,callback:(a,f,d)=>{a?i(a):(d||!d&&t&&!nr.default(f,t))&&i(null,f,d||t)}}))}getRegistryForUri(e){return this.config.registries.find(t=>t.uri==e)}initializeRegistry(e){return e=or.init(e),e.cdk=this,e}addProvider(e){or.addProvider(e)}static addProvider(e){or.addProvider(e)}repeat({function:e,interval:t=15e3,callback:n,callImmediately:i=!0}={}){if(!e)throw new H({parameter:"function"});if(typeof e!="function")throw new H({parameter:"function",message:"function needs to be a function"});let s=()=>L(this,null,function*(){return e()});if(t=parseInt(t),isNaN(t))throw new H({parameter:"interval"});if(!n)throw new H({parameter:"callback"});if(typeof n!="function")throw new H({parameter:"callback",message:"callback needs to be a function"});let o={timer:null,result:null,error:null,isPaused:!1,interval:t},u=w=>{let O=o.result;nr.default(O,w)||(o.result=w,o.error=null,n(null,w,O))},a=w=>{o.error=w,n(w)},f=w=>{o.isPaused||(o.timer=setTimeout(()=>{w()},o.interval))},d=()=>s().then(u).catch(a).then(()=>f(d)),v=(w=i)=>{w?d():f(d)};return v(),{start:(...w)=>{o.isPaused=!1,v(...w)},stop:()=>{o.isPaused=!0,o.timer?clearTimeout(o.timer):setTimeout(()=>{o.timer&&clearTimeout(o.timer)},o.interval)},get isPaused(){return o.isPaused},get lastResult(){return o.result},get hasErrored(){return!!o.error},get interval(){return o.interval},set interval(w){o.interval=w}}}getSchemes(){return L(this,arguments,function*(e={}){let t=[],n=[];for(let i of this.config.registries)if(i.has.schemes!==!1){let s=i.getSchemes(e).then(o=>{for(let u of o){u._registry=i,u.__DETAILSLOADED__=1,u.type=u.type||["http://www.w3.org/2004/02/skos/core#ConceptScheme"];let a=t.find(w=>jr.default.compare(w,u)),f,d,v=!1;if(a){f=this.config.registries.indexOf(i),f!=-1&&(f=this.config.registries.length-f),d=this.config.registries.indexOf(re.default(a,"_registry")),d!=-1&&(d=this.config.registries.length-d);let w=u.concepts?u.concepts.length==0?-1:1:0,O=a.concepts?a.concepts.length==0?-1:1:0;w>O?v=!0:w<O?v=!1:v=d<f}if(!a||v){if(v){let w=t.findIndex(O=>jr.default.compare(O,a));w!=-1&&t.splice(w,1),u=jr.default.merge(u,cr.default(a,["concepts","topConcepts"]),{mergeUris:!0,skipPaths:["_registry"]})}u._registry=i,t.push(u)}else{let w=t.findIndex(O=>jr.default.compare(O,u));if(w!=-1){let O=t[w]._registry;t[w]=jr.default.merge(t[w],cr.default(u,["concepts","topConcepts"]),{mergeUris:!0,skipPaths:["_registry"]}),t[w]._registry=O}}}}).catch(o=>{console.warn("Couldn't load schemes for registry",i.uri,o)});n.push(s)}return yield Promise.all(n),t.forEach(i=>{let s=i._registry;delete i._registry;let o=this.registryForScheme(i);!o||o._api.api===s._api.api?i._registry=s:i._registry=o}),jr.default.sortSchemes(t.filter(Boolean))})}registryForScheme(e){let t=e._registry;if(t)return t;for(let n of e.API||[]){let i=n,{type:s}=i,o=V(i,["type"]);let u=o.url;if(Xs[u]){let a=Xs[u];return Array.isArray(a._jskos.schemes)&&!jr.default.isContainedIn(e,a._jskos.schemes)&&a._jskos.schemes.push(e),a}else{o.scheme=e;for(let a of Object.values(or)){if(a.providerType&&a.providerType!==s||!a._registryConfigForBartocApiConfig)continue;let f=a.providerName,d=or[f]._registryConfigForBartocApiConfig(o);if(d){d.provider=f;try{if(t=this.initializeRegistry(d),t)return Xs[u]=t,t}catch(v){continue}}}}}return null}};var hd=new Ur;function _T(r){Object.values(hn).forEach(e=>(r||hd).addProvider(e))}return nm(bT);})();
8
+ var CDK=(()=>{var Zd=Object.create;var Et=Object.defineProperty,Qd=Object.defineProperties,em=Object.getOwnPropertyDescriptor,rm=Object.getOwnPropertyDescriptors,tm=Object.getOwnPropertyNames,mn=Object.getOwnPropertySymbols,nm=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty,uo=Object.prototype.propertyIsEnumerable;var ao=(r,e,t)=>e in r?Et(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,M=(r,e)=>{for(var t in e||(e={}))gi.call(e,t)&&ao(r,t,e[t]);if(mn)for(var t of mn(e))uo.call(e,t)&&ao(r,t,e[t]);return r},k=(r,e)=>Qd(r,rm(e));var Ct=(r=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(r,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):r)(function(r){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var V=(r,e)=>{var t={};for(var n in r)gi.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&mn)for(var n of mn(r))e.indexOf(n)<0&&uo.call(r,n)&&(t[n]=r[n]);return t};var _=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),gn=(r,e)=>{for(var t in e)Et(r,t,{get:e[t],enumerable:!0})},fo=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of tm(e))!gi.call(r,i)&&i!==t&&Et(r,i,{get:()=>e[i],enumerable:!(n=em(e,i))||n.enumerable});return r};var pe=(r,e,t)=>(t=r!=null?Zd(nm(r)):{},fo(e||!r||!r.__esModule?Et(t,"default",{value:r,enumerable:!0}):t,r)),im=r=>fo(Et({},"__esModule",{value:!0}),r);var L=(r,e,t)=>new Promise((n,i)=>{var s=a=>{try{u(t.next(a))}catch(f){i(f)}},o=a=>{try{u(t.throw(a))}catch(f){i(f)}},u=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,o);u((t=t.apply(r,e)).next())});var We=_((gP,Wo)=>{var rg=Array.isArray;Wo.exports=rg});var ji=_((yP,Go)=>{var tg=typeof global=="object"&&global&&global.Object===Object&&global;Go.exports=tg});var Ze=_((vP,Ko)=>{var ng=ji(),ig=typeof self=="object"&&self&&self.Object===Object&&self,sg=ng||ig||Function("return this")();Ko.exports=sg});var $r=_((wP,Jo)=>{var og=Ze(),ag=og.Symbol;Jo.exports=ag});var Zo=_((_P,Xo)=>{var Vo=$r(),Yo=Object.prototype,ug=Yo.hasOwnProperty,fg=Yo.toString,$t=Vo?Vo.toStringTag:void 0;function cg(r){var e=ug.call(r,$t),t=r[$t];try{r[$t]=void 0;var n=!0}catch(s){}var i=fg.call(r);return n&&(e?r[$t]=t:delete r[$t]),i}Xo.exports=cg});var ea=_((bP,Qo)=>{var lg=Object.prototype,hg=lg.toString;function pg(r){return hg.call(r)}Qo.exports=pg});var Sr=_((SP,na)=>{var ra=$r(),dg=Zo(),mg=ea(),gg="[object Null]",yg="[object Undefined]",ta=ra?ra.toStringTag:void 0;function vg(r){return r==null?r===void 0?yg:gg:ta&&ta in Object(r)?dg(r):mg(r)}na.exports=vg});var Qe=_((xP,ia)=>{function wg(r){return r!=null&&typeof r=="object"}ia.exports=wg});var In=_((AP,sa)=>{var _g=Sr(),bg=Qe(),Sg="[object Symbol]";function xg(r){return typeof r=="symbol"||bg(r)&&_g(r)==Sg}sa.exports=xg});var aa=_((OP,oa)=>{var Ag=We(),Og=In(),Eg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cg=/^\w*$/;function Tg(r,e){if(Ag(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||Og(r)?!0:Cg.test(r)||!Eg.test(r)||e!=null&&r in Object(e)}oa.exports=Tg});var er=_((EP,ua)=>{function Ig(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}ua.exports=Ig});var Pn=_((CP,fa)=>{var Pg=Sr(),qg=er(),Rg="[object AsyncFunction]",Mg="[object Function]",Lg="[object GeneratorFunction]",Ng="[object Proxy]";function jg(r){if(!qg(r))return!1;var e=Pg(r);return e==Mg||e==Lg||e==Rg||e==Ng}fa.exports=jg});var la=_((TP,ca)=>{var Ug=Ze(),Dg=Ug["__core-js_shared__"];ca.exports=Dg});var da=_((IP,pa)=>{var Ui=la(),ha=function(){var r=/[^.]+$/.exec(Ui&&Ui.keys&&Ui.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Fg(r){return!!ha&&ha in r}pa.exports=Fg});var Di=_((PP,ma)=>{var Bg=Function.prototype,kg=Bg.toString;function $g(r){if(r!=null){try{return kg.call(r)}catch(e){}try{return r+""}catch(e){}}return""}ma.exports=$g});var ya=_((qP,ga)=>{var zg=Pn(),Hg=da(),Wg=er(),Gg=Di(),Kg=/[\\^$.*+?()[\]{}|]/g,Jg=/^\[object .+?Constructor\]$/,Vg=Function.prototype,Yg=Object.prototype,Xg=Vg.toString,Zg=Yg.hasOwnProperty,Qg=RegExp("^"+Xg.call(Zg).replace(Kg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ey(r){if(!Wg(r)||Hg(r))return!1;var e=zg(r)?Qg:Jg;return e.test(Gg(r))}ga.exports=ey});var wa=_((RP,va)=>{function ry(r,e){return r==null?void 0:r[e]}va.exports=ry});var xr=_((MP,_a)=>{var ty=ya(),ny=wa();function iy(r,e){var t=ny(r,e);return ty(t)?t:void 0}_a.exports=iy});var zt=_((LP,ba)=>{var sy=xr(),oy=sy(Object,"create");ba.exports=oy});var Aa=_((NP,xa)=>{var Sa=zt();function ay(){this.__data__=Sa?Sa(null):{},this.size=0}xa.exports=ay});var Ea=_((jP,Oa)=>{function uy(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}Oa.exports=uy});var Ta=_((UP,Ca)=>{var fy=zt(),cy="__lodash_hash_undefined__",ly=Object.prototype,hy=ly.hasOwnProperty;function py(r){var e=this.__data__;if(fy){var t=e[r];return t===cy?void 0:t}return hy.call(e,r)?e[r]:void 0}Ca.exports=py});var Pa=_((DP,Ia)=>{var dy=zt(),my=Object.prototype,gy=my.hasOwnProperty;function yy(r){var e=this.__data__;return dy?e[r]!==void 0:gy.call(e,r)}Ia.exports=yy});var Ra=_((FP,qa)=>{var vy=zt(),wy="__lodash_hash_undefined__";function _y(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=vy&&e===void 0?wy:e,this}qa.exports=_y});var La=_((BP,Ma)=>{var by=Aa(),Sy=Ea(),xy=Ta(),Ay=Pa(),Oy=Ra();function ot(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ot.prototype.clear=by;ot.prototype.delete=Sy;ot.prototype.get=xy;ot.prototype.has=Ay;ot.prototype.set=Oy;Ma.exports=ot});var ja=_((kP,Na)=>{function Ey(){this.__data__=[],this.size=0}Na.exports=Ey});var at=_(($P,Ua)=>{function Cy(r,e){return r===e||r!==r&&e!==e}Ua.exports=Cy});var Ht=_((zP,Da)=>{var Ty=at();function Iy(r,e){for(var t=r.length;t--;)if(Ty(r[t][0],e))return t;return-1}Da.exports=Iy});var Ba=_((HP,Fa)=>{var Py=Ht(),qy=Array.prototype,Ry=qy.splice;function My(r){var e=this.__data__,t=Py(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():Ry.call(e,t,1),--this.size,!0}Fa.exports=My});var $a=_((WP,ka)=>{var Ly=Ht();function Ny(r){var e=this.__data__,t=Ly(e,r);return t<0?void 0:e[t][1]}ka.exports=Ny});var Ha=_((GP,za)=>{var jy=Ht();function Uy(r){return jy(this.__data__,r)>-1}za.exports=Uy});var Ga=_((KP,Wa)=>{var Dy=Ht();function Fy(r,e){var t=this.__data__,n=Dy(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}Wa.exports=Fy});var Wt=_((JP,Ka)=>{var By=ja(),ky=Ba(),$y=$a(),zy=Ha(),Hy=Ga();function ut(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ut.prototype.clear=By;ut.prototype.delete=ky;ut.prototype.get=$y;ut.prototype.has=zy;ut.prototype.set=Hy;Ka.exports=ut});var qn=_((VP,Ja)=>{var Wy=xr(),Gy=Ze(),Ky=Wy(Gy,"Map");Ja.exports=Ky});var Xa=_((YP,Ya)=>{var Va=La(),Jy=Wt(),Vy=qn();function Yy(){this.size=0,this.__data__={hash:new Va,map:new(Vy||Jy),string:new Va}}Ya.exports=Yy});var Qa=_((XP,Za)=>{function Xy(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}Za.exports=Xy});var Gt=_((ZP,eu)=>{var Zy=Qa();function Qy(r,e){var t=r.__data__;return Zy(e)?t[typeof e=="string"?"string":"hash"]:t.map}eu.exports=Qy});var tu=_((QP,ru)=>{var ev=Gt();function rv(r){var e=ev(this,r).delete(r);return this.size-=e?1:0,e}ru.exports=rv});var iu=_((eq,nu)=>{var tv=Gt();function nv(r){return tv(this,r).get(r)}nu.exports=nv});var ou=_((rq,su)=>{var iv=Gt();function sv(r){return iv(this,r).has(r)}su.exports=sv});var uu=_((tq,au)=>{var ov=Gt();function av(r,e){var t=ov(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}au.exports=av});var Rn=_((nq,fu)=>{var uv=Xa(),fv=tu(),cv=iu(),lv=ou(),hv=uu();function ft(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ft.prototype.clear=uv;ft.prototype.delete=fv;ft.prototype.get=cv;ft.prototype.has=lv;ft.prototype.set=hv;fu.exports=ft});var hu=_((iq,lu)=>{var cu=Rn(),pv="Expected a function";function Fi(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(pv);var t=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=t.cache;if(s.has(i))return s.get(i);var o=r.apply(this,n);return t.cache=s.set(i,o)||s,o};return t.cache=new(Fi.Cache||cu),t}Fi.Cache=cu;lu.exports=Fi});var du=_((sq,pu)=>{var dv=hu(),mv=500;function gv(r){var e=dv(r,function(n){return t.size===mv&&t.clear(),n}),t=e.cache;return e}pu.exports=gv});var gu=_((oq,mu)=>{var yv=du(),vv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wv=/\\(\\)?/g,_v=yv(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(vv,function(t,n,i,s){e.push(i?s.replace(wv,"$1"):n||t)}),e});mu.exports=_v});var Kt=_((aq,yu)=>{function bv(r,e){for(var t=-1,n=r==null?0:r.length,i=Array(n);++t<n;)i[t]=e(r[t],t,r);return i}yu.exports=bv});var xu=_((uq,Su)=>{var vu=$r(),Sv=Kt(),xv=We(),Av=In(),Ov=1/0,wu=vu?vu.prototype:void 0,_u=wu?wu.toString:void 0;function bu(r){if(typeof r=="string")return r;if(xv(r))return Sv(r,bu)+"";if(Av(r))return _u?_u.call(r):"";var e=r+"";return e=="0"&&1/r==-Ov?"-0":e}Su.exports=bu});var Ou=_((fq,Au)=>{var Ev=xu();function Cv(r){return r==null?"":Ev(r)}Au.exports=Cv});var Jt=_((cq,Eu)=>{var Tv=We(),Iv=aa(),Pv=gu(),qv=Ou();function Rv(r,e){return Tv(r)?r:Iv(r,e)?[r]:Pv(qv(r))}Eu.exports=Rv});var Mn=_((lq,Cu)=>{var Mv=In(),Lv=1/0;function Nv(r){if(typeof r=="string"||Mv(r))return r;var e=r+"";return e=="0"&&1/r==-Lv?"-0":e}Cu.exports=Nv});var Bi=_((hq,Tu)=>{var jv=Jt(),Uv=Mn();function Dv(r,e){e=jv(e,r);for(var t=0,n=e.length;r!=null&&t<n;)r=r[Uv(e[t++])];return t&&t==n?r:void 0}Tu.exports=Dv});var Pu=_((pq,Iu)=>{var Fv=Bi();function Bv(r,e,t){var n=r==null?void 0:Fv(r,e);return n===void 0?t:n}Iu.exports=Bv});var ki=_((dq,qu)=>{var kv=xr(),$v=function(){try{var r=kv(Object,"defineProperty");return r({},"",{}),r}catch(e){}}();qu.exports=$v});var Ln=_((mq,Mu)=>{var Ru=ki();function zv(r,e,t){e=="__proto__"&&Ru?Ru(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}Mu.exports=zv});var Nn=_((gq,Lu)=>{var Hv=Ln(),Wv=at(),Gv=Object.prototype,Kv=Gv.hasOwnProperty;function Jv(r,e,t){var n=r[e];(!(Kv.call(r,e)&&Wv(n,t))||t===void 0&&!(e in r))&&Hv(r,e,t)}Lu.exports=Jv});var jn=_((yq,Nu)=>{var Vv=9007199254740991,Yv=/^(?:0|[1-9]\d*)$/;function Xv(r,e){var t=typeof r;return e=e==null?Vv:e,!!e&&(t=="number"||t!="symbol"&&Yv.test(r))&&r>-1&&r%1==0&&r<e}Nu.exports=Xv});var Du=_((vq,Uu)=>{var Zv=Nn(),Qv=Jt(),ew=jn(),ju=er(),rw=Mn();function tw(r,e,t,n){if(!ju(r))return r;e=Qv(e,r);for(var i=-1,s=e.length,o=s-1,u=r;u!=null&&++i<s;){var a=rw(e[i]),f=t;if(a==="__proto__"||a==="constructor"||a==="prototype")return r;if(i!=o){var d=u[a];f=n?n(d,a,u):void 0,f===void 0&&(f=ju(d)?d:ew(e[i+1])?[]:{})}Zv(u,a,f),u=u[a]}return r}Uu.exports=tw});var Bu=_((wq,Fu)=>{var nw=Du();function iw(r,e,t){return r==null?r:nw(r,e,t)}Fu.exports=iw});var $u=_((_q,ku)=>{var sw="__lodash_hash_undefined__";function ow(r){return this.__data__.set(r,sw),this}ku.exports=ow});var Hu=_((bq,zu)=>{function aw(r){return this.__data__.has(r)}zu.exports=aw});var Dn=_((Sq,Wu)=>{var uw=Rn(),fw=$u(),cw=Hu();function Un(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new uw;++e<t;)this.add(r[e])}Un.prototype.add=Un.prototype.push=fw;Un.prototype.has=cw;Wu.exports=Un});var Ku=_((xq,Gu)=>{function lw(r,e,t,n){for(var i=r.length,s=t+(n?1:-1);n?s--:++s<i;)if(e(r[s],s,r))return s;return-1}Gu.exports=lw});var Vu=_((Aq,Ju)=>{function hw(r){return r!==r}Ju.exports=hw});var Xu=_((Oq,Yu)=>{function pw(r,e,t){for(var n=t-1,i=r.length;++n<i;)if(r[n]===e)return n;return-1}Yu.exports=pw});var Qu=_((Eq,Zu)=>{var dw=Ku(),mw=Vu(),gw=Xu();function yw(r,e,t){return e===e?gw(r,e,t):dw(r,mw,t)}Zu.exports=yw});var $i=_((Cq,ef)=>{var vw=Qu();function ww(r,e){var t=r==null?0:r.length;return!!t&&vw(r,e,0)>-1}ef.exports=ww});var zi=_((Tq,rf)=>{function _w(r,e,t){for(var n=-1,i=r==null?0:r.length;++n<i;)if(t(e,r[n]))return!0;return!1}rf.exports=_w});var Fn=_((Iq,tf)=>{function bw(r,e){return r.has(e)}tf.exports=bw});var Hi=_((Pq,nf)=>{var Sw=xr(),xw=Ze(),Aw=Sw(xw,"Set");nf.exports=Aw});var of=_((qq,sf)=>{function Ow(){}sf.exports=Ow});var Bn=_((Rq,af)=>{function Ew(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}af.exports=Ew});var ff=_((Mq,uf)=>{var Wi=Hi(),Cw=of(),Tw=Bn(),Iw=1/0,Pw=Wi&&1/Tw(new Wi([,-0]))[1]==Iw?function(r){return new Wi(r)}:Cw;uf.exports=Pw});var Gi=_((Lq,cf)=>{var qw=Dn(),Rw=$i(),Mw=zi(),Lw=Fn(),Nw=ff(),jw=Bn(),Uw=200;function Dw(r,e,t){var n=-1,i=Rw,s=r.length,o=!0,u=[],a=u;if(t)o=!1,i=Mw;else if(s>=Uw){var f=e?null:Nw(r);if(f)return jw(f);o=!1,i=Lw,a=new qw}else a=e?[]:u;e:for(;++n<s;){var d=r[n],v=e?e(d):d;if(d=t||d!==0?d:0,o&&v===v){for(var w=a.length;w--;)if(a[w]===v)continue e;e&&a.push(v),u.push(d)}else i(a,v,t)||(a!==u&&a.push(v),u.push(d))}return u}cf.exports=Dw});var hf=_((Nq,lf)=>{var Fw=Gi();function Bw(r){return r&&r.length?Fw(r):[]}lf.exports=Bw});var Vt=_((jq,pf)=>{function kw(r){return function(e){return r(e)}}pf.exports=kw});var gf=_((Uq,mf)=>{var $w=Dn(),zw=$i(),Hw=zi(),Ww=Kt(),Gw=Vt(),df=Fn(),Kw=Math.min;function Jw(r,e,t){for(var n=t?Hw:zw,i=r[0].length,s=r.length,o=s,u=Array(s),a=1/0,f=[];o--;){var d=r[o];o&&e&&(d=Ww(d,Gw(e))),a=Kw(d.length,a),u[o]=!t&&(e||i>=120&&d.length>=120)?new $w(o&&d):void 0}d=r[0];var v=-1,w=u[0];e:for(;++v<i&&f.length<a;){var O=d[v],p=e?e(O):O;if(O=t||O!==0?O:0,!(w?df(w,p):n(f,p,t))){for(o=s;--o;){var C=u[o];if(!(C?df(C,p):n(r[o],p,t)))continue e}w&&w.push(p),f.push(O)}}return f}mf.exports=Jw});var kn=_((Dq,yf)=>{function Vw(r){return r}yf.exports=Vw});var wf=_((Fq,vf)=>{function Yw(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}vf.exports=Yw});var Ki=_((Bq,bf)=>{var Xw=wf(),_f=Math.max;function Zw(r,e,t){return e=_f(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,s=_f(n.length-e,0),o=Array(s);++i<s;)o[i]=n[e+i];i=-1;for(var u=Array(e+1);++i<e;)u[i]=n[i];return u[e]=t(o),Xw(r,this,u)}}bf.exports=Zw});var xf=_((kq,Sf)=>{function Qw(r){return function(){return r}}Sf.exports=Qw});var Ef=_(($q,Of)=>{var e_=xf(),Af=ki(),r_=kn(),t_=Af?function(r,e){return Af(r,"toString",{configurable:!0,enumerable:!1,value:e_(e),writable:!0})}:r_;Of.exports=t_});var Tf=_((zq,Cf)=>{var n_=800,i_=16,s_=Date.now;function o_(r){var e=0,t=0;return function(){var n=s_(),i=i_-(n-t);if(t=n,i>0){if(++e>=n_)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}Cf.exports=o_});var Ji=_((Hq,If)=>{var a_=Ef(),u_=Tf(),f_=u_(a_);If.exports=f_});var $n=_((Wq,Pf)=>{var c_=kn(),l_=Ki(),h_=Ji();function p_(r,e){return h_(l_(r,e,c_),r+"")}Pf.exports=p_});var Vi=_((Gq,qf)=>{var d_=9007199254740991;function m_(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=d_}qf.exports=m_});var ct=_((Kq,Rf)=>{var g_=Pn(),y_=Vi();function v_(r){return r!=null&&y_(r.length)&&!g_(r)}Rf.exports=v_});var zn=_((Jq,Mf)=>{var w_=ct(),__=Qe();function b_(r){return __(r)&&w_(r)}Mf.exports=b_});var Nf=_((Vq,Lf)=>{var S_=zn();function x_(r){return S_(r)?r:[]}Lf.exports=x_});var Uf=_((Yq,jf)=>{var A_=Kt(),O_=gf(),E_=$n(),C_=Nf(),T_=E_(function(r){var e=A_(r,C_);return e.length&&e[0]===r[0]?O_(e):[]});jf.exports=T_});var Yt=_((Xq,Df)=>{function I_(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}Df.exports=I_});var Bf=_((Zq,Ff)=>{var P_=Sr(),q_=Qe(),R_="[object Arguments]";function M_(r){return q_(r)&&P_(r)==R_}Ff.exports=M_});var Xt=_((Qq,zf)=>{var kf=Bf(),L_=Qe(),$f=Object.prototype,N_=$f.hasOwnProperty,j_=$f.propertyIsEnumerable,U_=kf(function(){return arguments}())?kf:function(r){return L_(r)&&N_.call(r,"callee")&&!j_.call(r,"callee")};zf.exports=U_});var Kf=_((eR,Gf)=>{var Hf=$r(),D_=Xt(),F_=We(),Wf=Hf?Hf.isConcatSpreadable:void 0;function B_(r){return F_(r)||D_(r)||!!(Wf&&r&&r[Wf])}Gf.exports=B_});var Hn=_((rR,Vf)=>{var k_=Yt(),$_=Kf();function Jf(r,e,t,n,i){var s=-1,o=r.length;for(t||(t=$_),i||(i=[]);++s<o;){var u=r[s];e>0&&t(u)?e>1?Jf(u,e-1,t,n,i):k_(i,u):n||(i[i.length]=u)}return i}Vf.exports=Jf});var Xf=_((tR,Yf)=>{var z_=Hn(),H_=$n(),W_=Gi(),G_=zn(),K_=H_(function(r){return W_(z_(r,1,G_,!0))});Yf.exports=K_});var Qf=_((nR,Zf)=>{function J_(r){return function(e,t,n){for(var i=-1,s=Object(e),o=n(e),u=o.length;u--;){var a=o[r?u:++i];if(t(s[a],a,s)===!1)break}return e}}Zf.exports=J_});var Yi=_((iR,ec)=>{var V_=Qf(),Y_=V_();ec.exports=Y_});var tc=_((sR,rc)=>{function X_(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}rc.exports=X_});var ic=_((oR,nc)=>{function Z_(){return!1}nc.exports=Z_});var ht=_((Zt,lt)=>{var Q_=Ze(),eb=ic(),ac=typeof Zt=="object"&&Zt&&!Zt.nodeType&&Zt,sc=ac&&typeof lt=="object"&&lt&&!lt.nodeType&&lt,rb=sc&&sc.exports===ac,oc=rb?Q_.Buffer:void 0,tb=oc?oc.isBuffer:void 0,nb=tb||eb;lt.exports=nb});var fc=_((aR,uc)=>{var ib=Sr(),sb=Vi(),ob=Qe(),ab="[object Arguments]",ub="[object Array]",fb="[object Boolean]",cb="[object Date]",lb="[object Error]",hb="[object Function]",pb="[object Map]",db="[object Number]",mb="[object Object]",gb="[object RegExp]",yb="[object Set]",vb="[object String]",wb="[object WeakMap]",_b="[object ArrayBuffer]",bb="[object DataView]",Sb="[object Float32Array]",xb="[object Float64Array]",Ab="[object Int8Array]",Ob="[object Int16Array]",Eb="[object Int32Array]",Cb="[object Uint8Array]",Tb="[object Uint8ClampedArray]",Ib="[object Uint16Array]",Pb="[object Uint32Array]",Se={};Se[Sb]=Se[xb]=Se[Ab]=Se[Ob]=Se[Eb]=Se[Cb]=Se[Tb]=Se[Ib]=Se[Pb]=!0;Se[ab]=Se[ub]=Se[_b]=Se[fb]=Se[bb]=Se[cb]=Se[lb]=Se[hb]=Se[pb]=Se[db]=Se[mb]=Se[gb]=Se[yb]=Se[vb]=Se[wb]=!1;function qb(r){return ob(r)&&sb(r.length)&&!!Se[ib(r)]}uc.exports=qb});var Wn=_((Qt,pt)=>{var Rb=ji(),cc=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,en=cc&&typeof pt=="object"&&pt&&!pt.nodeType&&pt,Mb=en&&en.exports===cc,Xi=Mb&&Rb.process,Lb=function(){try{var r=en&&en.require&&en.require("util").types;return r||Xi&&Xi.binding&&Xi.binding("util")}catch(e){}}();pt.exports=Lb});var rn=_((uR,pc)=>{var Nb=fc(),jb=Vt(),lc=Wn(),hc=lc&&lc.isTypedArray,Ub=hc?jb(hc):Nb;pc.exports=Ub});var Zi=_((fR,dc)=>{var Db=tc(),Fb=Xt(),Bb=We(),kb=ht(),$b=jn(),zb=rn(),Hb=Object.prototype,Wb=Hb.hasOwnProperty;function Gb(r,e){var t=Bb(r),n=!t&&Fb(r),i=!t&&!n&&kb(r),s=!t&&!n&&!i&&zb(r),o=t||n||i||s,u=o?Db(r.length,String):[],a=u.length;for(var f in r)(e||Wb.call(r,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||$b(f,a)))&&u.push(f);return u}dc.exports=Gb});var tn=_((cR,mc)=>{var Kb=Object.prototype;function Jb(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||Kb;return r===t}mc.exports=Jb});var Qi=_((lR,gc)=>{function Vb(r,e){return function(t){return r(e(t))}}gc.exports=Vb});var vc=_((hR,yc)=>{var Yb=Qi(),Xb=Yb(Object.keys,Object);yc.exports=Xb});var es=_((pR,wc)=>{var Zb=tn(),Qb=vc(),e0=Object.prototype,r0=e0.hasOwnProperty;function t0(r){if(!Zb(r))return Qb(r);var e=[];for(var t in Object(r))r0.call(r,t)&&t!="constructor"&&e.push(t);return e}wc.exports=t0});var nn=_((dR,_c)=>{var n0=Zi(),i0=es(),s0=ct();function o0(r){return s0(r)?n0(r):i0(r)}_c.exports=o0});var Sc=_((mR,bc)=>{var a0=Yi(),u0=nn();function f0(r,e){return r&&a0(r,e,u0)}bc.exports=f0});var Ac=_((gR,xc)=>{var c0=kn();function l0(r){return typeof r=="function"?r:c0}xc.exports=l0});var Ec=_((yR,Oc)=>{var h0=Sc(),p0=Ac();function d0(r,e){return r&&h0(r,p0(e))}Oc.exports=d0});var Tc=_((vR,Cc)=>{var m0=Sr(),g0=We(),y0=Qe(),v0="[object String]";function w0(r){return typeof r=="string"||!g0(r)&&y0(r)&&m0(r)==v0}Cc.exports=w0});var Pc=_((wR,Ic)=>{var _0=xr(),b0=Ze(),S0=_0(b0,"DataView");Ic.exports=S0});var Rc=_((_R,qc)=>{var x0=xr(),A0=Ze(),O0=x0(A0,"Promise");qc.exports=O0});var Lc=_((bR,Mc)=>{var E0=xr(),C0=Ze(),T0=E0(C0,"WeakMap");Mc.exports=T0});var mt=_((SR,kc)=>{var rs=Pc(),ts=qn(),ns=Rc(),is=Hi(),ss=Lc(),Bc=Sr(),dt=Di(),Nc="[object Map]",I0="[object Object]",jc="[object Promise]",Uc="[object Set]",Dc="[object WeakMap]",Fc="[object DataView]",P0=dt(rs),q0=dt(ts),R0=dt(ns),M0=dt(is),L0=dt(ss),zr=Bc;(rs&&zr(new rs(new ArrayBuffer(1)))!=Fc||ts&&zr(new ts)!=Nc||ns&&zr(ns.resolve())!=jc||is&&zr(new is)!=Uc||ss&&zr(new ss)!=Dc)&&(zr=function(r){var e=Bc(r),t=e==I0?r.constructor:void 0,n=t?dt(t):"";if(n)switch(n){case P0:return Fc;case q0:return Nc;case R0:return jc;case M0:return Uc;case L0:return Dc}return e});kc.exports=zr});var zc=_((xR,$c)=>{var N0=es(),j0=mt(),U0=Xt(),D0=We(),F0=ct(),B0=ht(),k0=tn(),$0=rn(),z0="[object Map]",H0="[object Set]",W0=Object.prototype,G0=W0.hasOwnProperty;function K0(r){if(r==null)return!0;if(F0(r)&&(D0(r)||typeof r=="string"||typeof r.splice=="function"||B0(r)||$0(r)||U0(r)))return!r.length;var e=j0(r);if(e==z0||e==H0)return!r.size;if(k0(r))return!N0(r).length;for(var t in r)if(G0.call(r,t))return!1;return!0}$c.exports=K0});var Wc=_((AR,Hc)=>{var J0=Wt();function V0(){this.__data__=new J0,this.size=0}Hc.exports=V0});var Kc=_((OR,Gc)=>{function Y0(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}Gc.exports=Y0});var Vc=_((ER,Jc)=>{function X0(r){return this.__data__.get(r)}Jc.exports=X0});var Xc=_((CR,Yc)=>{function Z0(r){return this.__data__.has(r)}Yc.exports=Z0});var Qc=_((TR,Zc)=>{var Q0=Wt(),eS=qn(),rS=Rn(),tS=200;function nS(r,e){var t=this.__data__;if(t instanceof Q0){var n=t.__data__;if(!eS||n.length<tS-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new rS(n)}return t.set(r,e),this.size=t.size,this}Zc.exports=nS});var Gn=_((IR,el)=>{var iS=Wt(),sS=Wc(),oS=Kc(),aS=Vc(),uS=Xc(),fS=Qc();function gt(r){var e=this.__data__=new iS(r);this.size=e.size}gt.prototype.clear=sS;gt.prototype.delete=oS;gt.prototype.get=aS;gt.prototype.has=uS;gt.prototype.set=fS;el.exports=gt});var tl=_((PR,rl)=>{function cS(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}rl.exports=cS});var os=_((qR,nl)=>{var lS=Dn(),hS=tl(),pS=Fn(),dS=1,mS=2;function gS(r,e,t,n,i,s){var o=t&dS,u=r.length,a=e.length;if(u!=a&&!(o&&a>u))return!1;var f=s.get(r),d=s.get(e);if(f&&d)return f==e&&d==r;var v=-1,w=!0,O=t&mS?new lS:void 0;for(s.set(r,e),s.set(e,r);++v<u;){var p=r[v],C=e[v];if(n)var G=o?n(C,p,v,e,r,s):n(p,C,v,r,e,s);if(G!==void 0){if(G)continue;w=!1;break}if(O){if(!hS(e,function(K,te){if(!pS(O,te)&&(p===K||i(p,K,t,n,s)))return O.push(te)})){w=!1;break}}else if(!(p===C||i(p,C,t,n,s))){w=!1;break}}return s.delete(r),s.delete(e),w}nl.exports=gS});var as=_((RR,il)=>{var yS=Ze(),vS=yS.Uint8Array;il.exports=vS});var ol=_((MR,sl)=>{function wS(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}sl.exports=wS});var ll=_((LR,cl)=>{var al=$r(),ul=as(),_S=at(),bS=os(),SS=ol(),xS=Bn(),AS=1,OS=2,ES="[object Boolean]",CS="[object Date]",TS="[object Error]",IS="[object Map]",PS="[object Number]",qS="[object RegExp]",RS="[object Set]",MS="[object String]",LS="[object Symbol]",NS="[object ArrayBuffer]",jS="[object DataView]",fl=al?al.prototype:void 0,us=fl?fl.valueOf:void 0;function US(r,e,t,n,i,s,o){switch(t){case jS:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case NS:return!(r.byteLength!=e.byteLength||!s(new ul(r),new ul(e)));case ES:case CS:case PS:return _S(+r,+e);case TS:return r.name==e.name&&r.message==e.message;case qS:case MS:return r==e+"";case IS:var u=SS;case RS:var a=n&AS;if(u||(u=xS),r.size!=e.size&&!a)return!1;var f=o.get(r);if(f)return f==e;n|=OS,o.set(r,e);var d=bS(u(r),u(e),n,i,s,o);return o.delete(r),d;case LS:if(us)return us.call(r)==us.call(e)}return!1}cl.exports=US});var fs=_((NR,hl)=>{var DS=Yt(),FS=We();function BS(r,e,t){var n=e(r);return FS(r)?n:DS(n,t(r))}hl.exports=BS});var dl=_((jR,pl)=>{function kS(r,e){for(var t=-1,n=r==null?0:r.length,i=0,s=[];++t<n;){var o=r[t];e(o,t,r)&&(s[i++]=o)}return s}pl.exports=kS});var cs=_((UR,ml)=>{function $S(){return[]}ml.exports=$S});var Kn=_((DR,yl)=>{var zS=dl(),HS=cs(),WS=Object.prototype,GS=WS.propertyIsEnumerable,gl=Object.getOwnPropertySymbols,KS=gl?function(r){return r==null?[]:(r=Object(r),zS(gl(r),function(e){return GS.call(r,e)}))}:HS;yl.exports=KS});var ls=_((FR,vl)=>{var JS=fs(),VS=Kn(),YS=nn();function XS(r){return JS(r,YS,VS)}vl.exports=XS});var bl=_((BR,_l)=>{var wl=ls(),ZS=1,QS=Object.prototype,ex=QS.hasOwnProperty;function rx(r,e,t,n,i,s){var o=t&ZS,u=wl(r),a=u.length,f=wl(e),d=f.length;if(a!=d&&!o)return!1;for(var v=a;v--;){var w=u[v];if(!(o?w in e:ex.call(e,w)))return!1}var O=s.get(r),p=s.get(e);if(O&&p)return O==e&&p==r;var C=!0;s.set(r,e),s.set(e,r);for(var G=o;++v<a;){w=u[v];var K=r[w],te=e[w];if(n)var D=o?n(te,K,w,e,r,s):n(K,te,w,r,e,s);if(!(D===void 0?K===te||i(K,te,t,n,s):D)){C=!1;break}G||(G=w=="constructor")}if(C&&!G){var Q=r.constructor,ne=e.constructor;Q!=ne&&"constructor"in r&&"constructor"in e&&!(typeof Q=="function"&&Q instanceof Q&&typeof ne=="function"&&ne instanceof ne)&&(C=!1)}return s.delete(r),s.delete(e),C}_l.exports=rx});var Il=_((kR,Tl)=>{var hs=Gn(),tx=os(),nx=ll(),ix=bl(),Sl=mt(),xl=We(),Al=ht(),sx=rn(),ox=1,Ol="[object Arguments]",El="[object Array]",Jn="[object Object]",ax=Object.prototype,Cl=ax.hasOwnProperty;function ux(r,e,t,n,i,s){var o=xl(r),u=xl(e),a=o?El:Sl(r),f=u?El:Sl(e);a=a==Ol?Jn:a,f=f==Ol?Jn:f;var d=a==Jn,v=f==Jn,w=a==f;if(w&&Al(r)){if(!Al(e))return!1;o=!0,d=!1}if(w&&!d)return s||(s=new hs),o||sx(r)?tx(r,e,t,n,i,s):nx(r,e,a,t,n,i,s);if(!(t&ox)){var O=d&&Cl.call(r,"__wrapped__"),p=v&&Cl.call(e,"__wrapped__");if(O||p){var C=O?r.value():r,G=p?e.value():e;return s||(s=new hs),i(C,G,t,n,s)}}return w?(s||(s=new hs),ix(r,e,t,n,i,s)):!1}Tl.exports=ux});var Ml=_(($R,Rl)=>{var fx=Il(),Pl=Qe();function ql(r,e,t,n,i){return r===e?!0:r==null||e==null||!Pl(r)&&!Pl(e)?r!==r&&e!==e:fx(r,e,t,n,ql,i)}Rl.exports=ql});var Nl=_((zR,Ll)=>{var cx=Ml();function lx(r,e){return cx(r,e)}Ll.exports=lx});var ps=_((HR,jl)=>{var hx=Ln(),px=at();function dx(r,e,t){(t!==void 0&&!px(r[e],t)||t===void 0&&!(e in r))&&hx(r,e,t)}jl.exports=dx});var ds=_((sn,yt)=>{var mx=Ze(),Bl=typeof sn=="object"&&sn&&!sn.nodeType&&sn,Ul=Bl&&typeof yt=="object"&&yt&&!yt.nodeType&&yt,gx=Ul&&Ul.exports===Bl,Dl=gx?mx.Buffer:void 0,Fl=Dl?Dl.allocUnsafe:void 0;function yx(r,e){if(e)return r.slice();var t=r.length,n=Fl?Fl(t):new r.constructor(t);return r.copy(n),n}yt.exports=yx});var Vn=_((WR,$l)=>{var kl=as();function vx(r){var e=new r.constructor(r.byteLength);return new kl(e).set(new kl(r)),e}$l.exports=vx});var ms=_((GR,zl)=>{var wx=Vn();function _x(r,e){var t=e?wx(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}zl.exports=_x});var Yn=_((KR,Hl)=>{function bx(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}Hl.exports=bx});var Kl=_((JR,Gl)=>{var Sx=er(),Wl=Object.create,xx=function(){function r(){}return function(e){if(!Sx(e))return{};if(Wl)return Wl(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();Gl.exports=xx});var Xn=_((VR,Jl)=>{var Ax=Qi(),Ox=Ax(Object.getPrototypeOf,Object);Jl.exports=Ox});var gs=_((YR,Vl)=>{var Ex=Kl(),Cx=Xn(),Tx=tn();function Ix(r){return typeof r.constructor=="function"&&!Tx(r)?Ex(Cx(r)):{}}Vl.exports=Ix});var ys=_((XR,Xl)=>{var Px=Sr(),qx=Xn(),Rx=Qe(),Mx="[object Object]",Lx=Function.prototype,Nx=Object.prototype,Yl=Lx.toString,jx=Nx.hasOwnProperty,Ux=Yl.call(Object);function Dx(r){if(!Rx(r)||Px(r)!=Mx)return!1;var e=qx(r);if(e===null)return!0;var t=jx.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Yl.call(t)==Ux}Xl.exports=Dx});var vs=_((ZR,Zl)=>{function Fx(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}Zl.exports=Fx});var Hr=_((QR,Ql)=>{var Bx=Nn(),kx=Ln();function $x(r,e,t,n){var i=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var u=e[s],a=n?n(t[u],r[u],u,t,r):void 0;a===void 0&&(a=r[u]),i?kx(t,u,a):Bx(t,u,a)}return t}Ql.exports=$x});var rh=_((eM,eh)=>{function zx(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}eh.exports=zx});var nh=_((rM,th)=>{var Hx=er(),Wx=tn(),Gx=rh(),Kx=Object.prototype,Jx=Kx.hasOwnProperty;function Vx(r){if(!Hx(r))return Gx(r);var e=Wx(r),t=[];for(var n in r)n=="constructor"&&(e||!Jx.call(r,n))||t.push(n);return t}th.exports=Vx});var vt=_((tM,ih)=>{var Yx=Zi(),Xx=nh(),Zx=ct();function Qx(r){return Zx(r)?Yx(r,!0):Xx(r)}ih.exports=Qx});var oh=_((nM,sh)=>{var eA=Hr(),rA=vt();function tA(r){return eA(r,rA(r))}sh.exports=tA});var hh=_((iM,lh)=>{var ah=ps(),nA=ds(),iA=ms(),sA=Yn(),oA=gs(),uh=Xt(),fh=We(),aA=zn(),uA=ht(),fA=Pn(),cA=er(),lA=ys(),hA=rn(),ch=vs(),pA=oh();function dA(r,e,t,n,i,s,o){var u=ch(r,t),a=ch(e,t),f=o.get(a);if(f){ah(r,t,f);return}var d=s?s(u,a,t+"",r,e,o):void 0,v=d===void 0;if(v){var w=fh(a),O=!w&&uA(a),p=!w&&!O&&hA(a);d=a,w||O||p?fh(u)?d=u:aA(u)?d=sA(u):O?(v=!1,d=nA(a,!0)):p?(v=!1,d=iA(a,!0)):d=[]:lA(a)||uh(a)?(d=u,uh(u)?d=pA(u):(!cA(u)||fA(u))&&(d=oA(a))):v=!1}v&&(o.set(a,d),i(d,a,n,s,o),o.delete(a)),ah(r,t,d)}lh.exports=dA});var mh=_((sM,dh)=>{var mA=Gn(),gA=ps(),yA=Yi(),vA=hh(),wA=er(),_A=vt(),bA=vs();function ph(r,e,t,n,i){r!==e&&yA(e,function(s,o){if(i||(i=new mA),wA(s))vA(r,e,o,t,ph,n,i);else{var u=n?n(bA(r,o),s,o+"",r,e,i):void 0;u===void 0&&(u=s),gA(r,o,u)}},_A)}dh.exports=ph});var yh=_((oM,gh)=>{var SA=at(),xA=ct(),AA=jn(),OA=er();function EA(r,e,t){if(!OA(t))return!1;var n=typeof e;return(n=="number"?xA(t)&&AA(e,t.length):n=="string"&&e in t)?SA(t[e],r):!1}gh.exports=EA});var wh=_((aM,vh)=>{var CA=$n(),TA=yh();function IA(r){return CA(function(e,t){var n=-1,i=t.length,s=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(s=r.length>3&&typeof s=="function"?(i--,s):void 0,o&&TA(t[0],t[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var u=t[n];u&&r(e,u,n,s)}return e})}vh.exports=IA});var bh=_((uM,_h)=>{var PA=mh(),qA=wh(),RA=qA(function(r,e,t){PA(r,e,t)});_h.exports=RA});var ws=_((fM,Sh)=>{function MA(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}Sh.exports=MA});var Ah=_((cM,xh)=>{function LA(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}xh.exports=LA});var Eh=_((lM,Oh)=>{var NA=Hr(),jA=nn();function UA(r,e){return r&&NA(e,jA(e),r)}Oh.exports=UA});var Th=_((hM,Ch)=>{var DA=Hr(),FA=vt();function BA(r,e){return r&&DA(e,FA(e),r)}Ch.exports=BA});var Ph=_((pM,Ih)=>{var kA=Hr(),$A=Kn();function zA(r,e){return kA(r,$A(r),e)}Ih.exports=zA});var _s=_((dM,qh)=>{var HA=Yt(),WA=Xn(),GA=Kn(),KA=cs(),JA=Object.getOwnPropertySymbols,VA=JA?function(r){for(var e=[];r;)HA(e,GA(r)),r=WA(r);return e}:KA;qh.exports=VA});var Mh=_((mM,Rh)=>{var YA=Hr(),XA=_s();function ZA(r,e){return YA(r,XA(r),e)}Rh.exports=ZA});var bs=_((gM,Lh)=>{var QA=fs(),eO=_s(),rO=vt();function tO(r){return QA(r,rO,eO)}Lh.exports=tO});var jh=_((yM,Nh)=>{var nO=Object.prototype,iO=nO.hasOwnProperty;function sO(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&iO.call(r,"index")&&(t.index=r.index,t.input=r.input),t}Nh.exports=sO});var Dh=_((vM,Uh)=>{var oO=Vn();function aO(r,e){var t=e?oO(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}Uh.exports=aO});var Bh=_((wM,Fh)=>{var uO=/\w*$/;function fO(r){var e=new r.constructor(r.source,uO.exec(r));return e.lastIndex=r.lastIndex,e}Fh.exports=fO});var Wh=_((_M,Hh)=>{var kh=$r(),$h=kh?kh.prototype:void 0,zh=$h?$h.valueOf:void 0;function cO(r){return zh?Object(zh.call(r)):{}}Hh.exports=cO});var Kh=_((bM,Gh)=>{var lO=Vn(),hO=Dh(),pO=Bh(),dO=Wh(),mO=ms(),gO="[object Boolean]",yO="[object Date]",vO="[object Map]",wO="[object Number]",_O="[object RegExp]",bO="[object Set]",SO="[object String]",xO="[object Symbol]",AO="[object ArrayBuffer]",OO="[object DataView]",EO="[object Float32Array]",CO="[object Float64Array]",TO="[object Int8Array]",IO="[object Int16Array]",PO="[object Int32Array]",qO="[object Uint8Array]",RO="[object Uint8ClampedArray]",MO="[object Uint16Array]",LO="[object Uint32Array]";function NO(r,e,t){var n=r.constructor;switch(e){case AO:return lO(r);case gO:case yO:return new n(+r);case OO:return hO(r,t);case EO:case CO:case TO:case IO:case PO:case qO:case RO:case MO:case LO:return mO(r,t);case vO:return new n;case wO:case SO:return new n(r);case _O:return pO(r);case bO:return new n;case xO:return dO(r)}}Gh.exports=NO});var Vh=_((SM,Jh)=>{var jO=mt(),UO=Qe(),DO="[object Map]";function FO(r){return UO(r)&&jO(r)==DO}Jh.exports=FO});var Qh=_((xM,Zh)=>{var BO=Vh(),kO=Vt(),Yh=Wn(),Xh=Yh&&Yh.isMap,$O=Xh?kO(Xh):BO;Zh.exports=$O});var rp=_((AM,ep)=>{var zO=mt(),HO=Qe(),WO="[object Set]";function GO(r){return HO(r)&&zO(r)==WO}ep.exports=GO});var sp=_((OM,ip)=>{var KO=rp(),JO=Vt(),tp=Wn(),np=tp&&tp.isSet,VO=np?JO(np):KO;ip.exports=VO});var cp=_((EM,fp)=>{var YO=Gn(),XO=Ah(),ZO=Nn(),QO=Eh(),eE=Th(),rE=ds(),tE=Yn(),nE=Ph(),iE=Mh(),sE=ls(),oE=bs(),aE=mt(),uE=jh(),fE=Kh(),cE=gs(),lE=We(),hE=ht(),pE=Qh(),dE=er(),mE=sp(),gE=nn(),yE=vt(),vE=1,wE=2,_E=4,op="[object Arguments]",bE="[object Array]",SE="[object Boolean]",xE="[object Date]",AE="[object Error]",ap="[object Function]",OE="[object GeneratorFunction]",EE="[object Map]",CE="[object Number]",up="[object Object]",TE="[object RegExp]",IE="[object Set]",PE="[object String]",qE="[object Symbol]",RE="[object WeakMap]",ME="[object ArrayBuffer]",LE="[object DataView]",NE="[object Float32Array]",jE="[object Float64Array]",UE="[object Int8Array]",DE="[object Int16Array]",FE="[object Int32Array]",BE="[object Uint8Array]",kE="[object Uint8ClampedArray]",$E="[object Uint16Array]",zE="[object Uint32Array]",be={};be[op]=be[bE]=be[ME]=be[LE]=be[SE]=be[xE]=be[NE]=be[jE]=be[UE]=be[DE]=be[FE]=be[EE]=be[CE]=be[up]=be[TE]=be[IE]=be[PE]=be[qE]=be[BE]=be[kE]=be[$E]=be[zE]=!0;be[AE]=be[ap]=be[RE]=!1;function Zn(r,e,t,n,i,s){var o,u=e&vE,a=e&wE,f=e&_E;if(t&&(o=i?t(r,n,i,s):t(r)),o!==void 0)return o;if(!dE(r))return r;var d=lE(r);if(d){if(o=uE(r),!u)return tE(r,o)}else{var v=aE(r),w=v==ap||v==OE;if(hE(r))return rE(r,u);if(v==up||v==op||w&&!i){if(o=a||w?{}:cE(r),!u)return a?iE(r,eE(o,r)):nE(r,QO(o,r))}else{if(!be[v])return i?r:{};o=fE(r,v,u)}}s||(s=new YO);var O=s.get(r);if(O)return O;s.set(r,o),mE(r)?r.forEach(function(G){o.add(Zn(G,e,t,G,r,s))}):pE(r)&&r.forEach(function(G,K){o.set(K,Zn(G,e,t,K,r,s))});var p=f?a?oE:sE:a?yE:gE,C=d?void 0:p(r);return XO(C||r,function(G,K){C&&(K=G,G=r[K]),ZO(o,K,Zn(G,e,t,K,r,s))}),o}fp.exports=Zn});var hp=_((CM,lp)=>{function HE(r,e,t){var n=-1,i=r.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++n<i;)s[n]=r[n+e];return s}lp.exports=HE});var dp=_((TM,pp)=>{var WE=Bi(),GE=hp();function KE(r,e){return e.length<2?r:WE(r,GE(e,0,-1))}pp.exports=KE});var gp=_((IM,mp)=>{var JE=Jt(),VE=ws(),YE=dp(),XE=Mn();function ZE(r,e){return e=JE(e,r),r=YE(r,e),r==null||delete r[XE(VE(e))]}mp.exports=ZE});var vp=_((PM,yp)=>{var QE=ys();function eC(r){return QE(r)?void 0:r}yp.exports=eC});var _p=_((qM,wp)=>{var rC=Hn();function tC(r){var e=r==null?0:r.length;return e?rC(r,1):[]}wp.exports=tC});var Sp=_((RM,bp)=>{var nC=_p(),iC=Ki(),sC=Ji();function oC(r){return sC(iC(r,void 0,nC),r+"")}bp.exports=oC});var Ap=_((MM,xp)=>{var aC=Kt(),uC=cp(),fC=gp(),cC=Jt(),lC=Hr(),hC=vp(),pC=Sp(),dC=bs(),mC=1,gC=2,yC=4,vC=pC(function(r,e){var t={};if(r==null)return t;var n=!1;e=aC(e,function(s){return s=cC(s,r),n||(n=s.length>1),s}),lC(r,dC(r),t),n&&(t=uC(t,mC|gC|yC,hC));for(var i=e.length;i--;)fC(t,e[i]);return t});xp.exports=vC});var Ep=_((LM,Op)=>{var wC=Yt(),_C=Hn(),bC=Yn(),SC=We();function xC(){var r=arguments.length;if(!r)return[];for(var e=Array(r-1),t=arguments[0],n=r;n--;)e[n-1]=arguments[n];return wC(SC(t)?bC(t):[t],_C(e,1))}Op.exports=xC});var Tp=_((NM,Cp)=>{Cp.exports=function(e){var t=function(ne,E){var ee=ne<<E|ne>>>32-E;return ee},n=function(ne){var E="",ee,J;for(ee=7;ee>=0;ee--)J=ne>>>ee*4&15,E+=J.toString(16);return E},i,s,o,u=new Array(80),a=1732584193,f=4023233417,d=2562383102,v=271733878,w=3285377520,O,p,C,G,K,te;e=unescape(encodeURIComponent(e));var D=e.length,Q=[];for(s=0;s<D-3;s+=4)o=e.charCodeAt(s)<<24|e.charCodeAt(s+1)<<16|e.charCodeAt(s+2)<<8|e.charCodeAt(s+3),Q.push(o);switch(D%4){case 0:s=2147483648;break;case 1:s=e.charCodeAt(D-1)<<24|8388608;break;case 2:s=e.charCodeAt(D-2)<<24|e.charCodeAt(D-1)<<16|32768;break;case 3:s=e.charCodeAt(D-3)<<24|e.charCodeAt(D-2)<<16|e.charCodeAt(D-1)<<8|128;break}for(Q.push(s);Q.length%16!==14;)Q.push(0);for(Q.push(D>>>29),Q.push(D<<3&4294967295),i=0;i<Q.length;i+=16){for(s=0;s<16;s++)u[s]=Q[i+s];for(s=16;s<=79;s++)u[s]=t(u[s-3]^u[s-8]^u[s-14]^u[s-16],1);for(O=a,p=f,C=d,G=v,K=w,s=0;s<=19;s++)te=t(O,5)+(p&C|~p&G)+K+u[s]+1518500249&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=20;s<=39;s++)te=t(O,5)+(p^C^G)+K+u[s]+1859775393&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=40;s<=59;s++)te=t(O,5)+(p&C|p&G|C&G)+K+u[s]+2400959708&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;for(s=60;s<=79;s++)te=t(O,5)+(p^C^G)+K+u[s]+3395469782&4294967295,K=G,G=C,C=t(p,30),p=O,O=te;a=a+O&4294967295,f=f+p&4294967295,d=d+C&4294967295,v=v+G&4294967295,w=w+K&4294967295}return te=n(a)+n(f)+n(d)+n(v)+n(w),te.toLowerCase()}});var Fp=_((jM,Dp)=>{var Pp=Tp();function qp(r){return r.map(e=>e&&e.uri).filter(Boolean)}function Ts(r){return["memberSet","memberList","memberChoice"].find(e=>r[e])}function Ip(r){let e=Ts(r),t=r[e]?qp(r[e]):[];return{[t.length>1?e:"memberSet"]:t.map(n=>({uri:n}))}}function Rp(r){let{from:e,to:t,type:n}=r,i={from:Ip(e||{}),to:Ip(t||{}),type:[n&&n[0]||"http://www.w3.org/2004/02/skos/core#mappingRelation"]};for(let s of["from","to"])if((i[s][Ts(i[s])]||[]).length==0){let o=r[s+"Scheme"];o&&o.uri&&(i[s+"Scheme"]={uri:o.uri})}return i}function Mp(r){let{from:e,to:t}=r,n=[e,t].filter(Boolean).map(i=>qp(i[Ts(i)]||[]));return[].concat(...n).sort()}function Lp(r){let e=JSON.stringify(Rp(r),["from","fromScheme","to","toScheme","type","memberSet","memberList","memberChoice","uri"]);return"urn:jskos:mapping:content:"+Pp(e+`
9
+ `)}function Np(r){let e=JSON.stringify(Mp(r));return"urn:jskos:mapping:members:"+Pp(e+`
10
+ `)}function Cs(r){let e=(r.identifier||[]).filter(t=>t&&!t.startsWith("urn:jskos:mapping:")).concat([Np(r),Lp(r)]).sort();return Object.assign({},r,{identifier:e})}function jp(r,e,t){r=r&&Cs(r),e=e&&Cs(e);let n=r&&r.identifier?r.identifier.find(s=>s.startsWith(t)):null,i=e&&e.identifier?e.identifier.find(s=>s.startsWith(t)):null;return n==i}function Up(r,e){return jp(r,e,"urn:jskos:mapping:content:")}var OC=Up;function EC(r,e){return jp(r,e,"urn:jskos:mapping:members:")}Dp.exports={mappingContent:Rp,mappingMembers:Mp,mappingContentIdentifier:Lp,mappingMembersIdentifier:Np,addMappingIdentifiers:Cs,compareMappings:Up,compareMappingContent:OC,compareMappingMembers:EC}});var Is=_((UM,kp)=>{function Bp(r,e,t){var n=Array.prototype.slice,i=typeof Object.keys=="function"?Object.keys:function(f){var d=[];for(var v in f)d.push(v);return d},s=function(f,d){return f===d?!0:f instanceof Date&&d instanceof Date?f.getTime()===d.getTime():typeof f!="object"&&typeof d!="object"?f==d:a(f,d)};function o(f){return f==null}function u(f){return Object.prototype.toString.call(f)=="[object Arguments]"}function a(f,d){if(o(f)||o(d)||f.prototype!==d.prototype)return!1;if(u(f))return u(d)?(f=n.call(f),d=n.call(d),s(f,d)):!1;try{var v=i(f),w=i(d),O,p}catch(C){return!1}if(v.length!=w.length)return!1;for(v.sort(),w.sort(),p=v.length-1;p>=0;p--)if(v[p]!=w[p])return!1;for(p=v.length-1;p>=0;p--)if(O=v[p],t){let C=t(f[O],d[O],O);if(C===void 0&&(C=Bp(f[O],d[O])),!C)return!1}else if(!s(f[O],d[O]))return!1;return!0}return s(r,e)}kp.exports={get:(r,e,t=void 0)=>{let n=s=>String.prototype.split.call(e,s).filter(Boolean).reduce((o,u)=>o!=null?o[u]:o,r),i=n(/[,[\]]+?/)||n(/[,[\].]+?/);return i===void 0||i===r?t:i},pick:(r,e)=>e.reduce((t,n)=>(r&&r.hasOwnProperty(n)&&(t[n]=r[n]),t),{}),forOwn:(r,e)=>{for(let t in r)r.hasOwnProperty(t)&&e(r[t],t)},isEqualWith:Bp,intersection:(...r)=>r.reduce((e,t)=>e.filter(n=>t.includes(n))),isObject:r=>typeof r=="object"&&r!==null,isString:r=>!!(r&&typeof r.valueOf()=="string"),union:(r,e)=>[...new Set([...r,...e])],unionWith:(r,e,t)=>[...r,...e].reduce((n,i)=>(n.findIndex(s=>t(s,i))!==-1||n.push(i),n),[]),omitMod:(r,e)=>{for(let t of e){typeof t=="string"&&(t=t.split("."));for(let n=0;n<t.length-1;n++)r=r[t[n]];delete r[t.pop()]}}}});var Ps=_((DM,CC)=>{CC.exports=[{RELEVANCE:"very high",broader:[{uri:"http://www.w3.org/2004/02/skos/core#closeMatch"}],definition:{de:["gleiche Bedeutung"],en:["same meaning"]},notation:["="],prefLabel:{ar:"\u062A\u0637\u0627\u0628\u0642 \u062A\u0627\u0645",be:"\u0434\u0430\u043A\u043B\u0430\u0434\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u0446\u044C","be-tarask":"\u0434\u0430\u043A\u043B\u0430\u0434\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",bn:"\u09B9\u09C1\u09AC\u09C1\u09B9\u09C1 \u09AE\u09BF\u09B2",bs:"ta\u010Dno podudaranje",ca:"equival\xE8ncia exacta",cs:"p\u0159esn\xE1 shoda",da:"exact match",de:"exakte \xDCbereinstimmung",en:"exact match",eo:"ekzakta ekvivalento",es:"equivalencia exacta",fi:"vastaava k\xE4site",fr:"\xE9quivalence exacte",gl:"correspondencia exacta",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05DE\u05D3\u05D5\u05D9\u05E7\u05EA",hu:"pontos egyez\xE9s",id:"sama persis",it:"corrispondenza esatta",ja:"\u5B8C\u5168\u4E00\u81F4",lv:"tie\u0161a sakrit\u012Bba",mk:"\u0442\u043E\u0447\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan tepat","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u062A\u06A4\u062A",nb:"eksakt samsvar",nl:"exacte match",nn:"eksakt samsvar",pl:"dok\u0142adne dopasowanie",pt:"correspond\xEAncia exata",ro:"echivalentul exact",ru:"\u0442\u043E\u0447\u043D\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sq:"p\xEBrputhje e p\xEBrpikt\xEB",sr:"\u0442\u0430\u0447\u043D\u043E \u043F\u043E\u0434\u0443\u0434\u0430\u0440\u0430\u045A\u0435",sv:"exakt tr\xE4ff",tr:"tam e\u015Fle\u015Fme",uk:"\u0442\u043E\u0447\u043D\u0430 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u043D\u0456\u0441\u0442\u044C",ur:"\u0628\u0627\u0644\u06A9\u0644 \u062F\u0631\u0633\u062A \u062C\u0648\u0691",zh:"\u7CBE\u78BA\u5339\u914D","zh-cn":"\u7CBE\u786E\u5339\u914D","zh-hans":"\u7CBE\u786E\u5339\u914D","zh-hant":"\u7CBE\u78BA\u5339\u914D"},SHORT:"exact",uri:"http://www.w3.org/2004/02/skos/core#exactMatch"},{RELEVANCE:"high",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["in etwa gleiche Bedeutung"],en:["same general idea but not fully identical meaning"]},notation:["\u2248"],prefLabel:{ar:"\u062A\u0637\u0627\u0628\u0642 \u0642\u0631\u064A\u0628","be-tarask":"\u0431\u043B\u0456\u0437\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"equival\xE8ncia inexacta",de:"hohe \xDCbereinstimmung",en:"close match",eo:"proksima kongrua\u0135o",es:"equivalencia inexacta",fi:"l\xE4hes vastaava k\xE4site",fr:"quasi-\xE9quivalence",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E7\u05E8\u05D5\u05D1\u05D4",hu:"kv\xE1zi-egyen\xE9rt\xE9k\u0171s\xE9g",it:"corrispondenza parziale",mk:"\u0431\u043B\u0438\u0441\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan dekat","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u062F\u06A9\u062A",nb:"n\xE6rt samsvar",nl:"nabije match",nn:"n\xE6rt samsvar",pl:"cz\u0119\u015Bciowe dopasowanie",pt:"correspond\xEAncia pr\xF3xima",ru:"\u0431\u043B\u0438\u0437\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0431\u043B\u0438\u0441\u043A\u043E \u043F\u043E\u043A\u043B\u0430\u043F\u0430\u045A\u0435",sv:"n\xE4ra matchning",tr:"yak\u0131n e\u015Fle\u015Fme","zh-hans":"\u9AD8\u5EA6\u5339\u914D"},SHORT:"close",uri:"http://www.w3.org/2004/02/skos/core#closeMatch"},{RELEVANCE:"medium",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["umfassendere Bedeutung"],en:["broader meaning"]},notation:[">"],prefLabel:{"be-tarask":"\u0448\u044B\u0440\u043E\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"relaci\xF3 llunyana",cs:"\u0161ir\u0161\xED koncept",de:"allgemeinere Bedeutung",en:"broad match",eo:"malstrikta kongruo",fi:"vastaava laajempi k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E8\u05D7\u05D1\u05D4",it:"corrispondenza con termine pi\xF9 generico",ja:"\u90E8\u5206\u4E00\u81F4",mk:"\u043F\u043E\u0448\u0438\u0440\u043E\u043A\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",nb:"bredere samsvar",nl:"brede match",nn:"breitt samsvar",pl:"dopasowanie poj\u0119cia o szerszym znaczeniu","pt-br":"correspond\xEAncia gen\xE9rica",ru:"\u0431\u043E\u043B\u0435\u0435 \u0448\u0438\u0440\u043E\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0443 \u0448\u0438\u0440\u0435\u043C \u0441\u043C\u0438\u0441\u043B\u0443",sv:"bred tr\xE4ff","zh-hans":"\u5E7F\u6CDB\u5339\u914D"},related:[{uri:"http://www.w3.org/2004/02/skos/core#narrowMatch"}],SHORT:"broad",uri:"http://www.w3.org/2004/02/skos/core#broadMatch"},{RELEVANCE:"medium",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{en:["more specific meaning"]},notation:["<"],prefLabel:{"be-tarask":"\u0432\u0443\u0437\u043A\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"relaci\xF3 estreta",de:"spezifischere Bedeutung",en:"narrow match",eo:"strikta kongruo",fi:"vastaava suppeampi k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E6\u05E8\u05D4",it:"corrispondenza con termine pi\xF9 specifico",mk:"\u043F\u043E\u0442\u0435\u0441\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",nb:"smalere samsvar",nl:"nauwe match",nn:"snevert samsvar",pl:"dopasowanie poj\u0119cia o w\u0119\u017Cszym znaczeniu","pt-br":"correspond\xEAncia aproximada",ru:"\u0431\u043E\u043B\u0435\u0435 \u0443\u0437\u043A\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",sr:"\u0443 \u0443\u0436\u0435\u043C \u0441\u043C\u0438\u0441\u043B\u0443",sv:"smal tr\xE4ff",ur:"\u0646\u06CC\u0631\u0648 \u0645\u06CC\u0686","zh-hans":"\u6709\u9650\u5339\u914D"},related:[{uri:"http://www.w3.org/2004/02/skos/core#broadMatch"}],SHORT:"narrow",uri:"http://www.w3.org/2004/02/skos/core#narrowMatch"},{RELEVANCE:"low",broader:[{uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}],definition:{de:["assoziative Verkn\xFCpfung unterschiedlicher Bedeutungen"],en:["associative link between meanings"]},notation:["~"],prefLabel:{"be-tarask":"\u0437\u044C\u0432\u044F\u0437\u0430\u043D\u0430\u044F \u0430\u0434\u043F\u0430\u0432\u0435\u0434\u043D\u0430\u0441\u044C\u0446\u044C",ca:"parella relacionada",de:"verwandte Bedeutung",en:"related match",eo:"rilata kongruo",fi:"liittyv\xE4 k\xE4site",he:"\u05D4\u05EA\u05D0\u05DE\u05D4 \u05E7\u05E9\u05D5\u05E8\u05D4",it:"corrispondenza correlata",lv:"saist\u012Bta sakrit\u012Bba",mk:"\u043F\u043E\u0432\u0440\u0437\u0430\u043D\u043E \u0441\u043E\u0432\u043F\u0430\u0453\u0430\u045A\u0435",ms:"padanan berkaitan","ms-arab":"\u06A4\u0627\u062F\u0646\u0646 \u0628\u0631\u06A9\u0627\u0621\u064A\u062A\u0646",nb:"relatert samsvar",nl:"gerelateerde match",pl:"dopasowanie poj\u0119cia o powi\u0105zanym znaczeniu",ru:"\u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0442\u0438\u0432\u043D\u043E\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435",tr:"ili\u015Fkili benze\u015Fme",ur:"\u0645\u062A\u0639\u0644\u0642\u06C1 \u0645\u06CC\u0686",vec:"parente\u0142a re\u0142asionada","zh-hans":"\u5173\u8054\u5339\u914D"},SHORT:"related",uri:"http://www.w3.org/2004/02/skos/core#relatedMatch"},{RELEVANCE:"generic",definition:{de:["unbekannter Bedeutungszusammenhang"],en:["unknown type of link between meanings"]},notation:["\u2192"],prefLabel:{ar:"\u0646\u0648\u0639 \u0639\u0644\u0627\u0642\u0629 \u0627\u0644\u062A\u0637\u0628\u064A\u0642",be:"\u0445\u0430\u0440\u0430\u043A\u0442\u044D\u0440\u043D\u0430\u044F \u0430\u0434\u043D\u043E\u0441\u0456\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u043D\u044F","be-tarask":"\u0445\u0430\u0440\u0430\u043A\u0442\u044D\u0440\u043D\u0430\u044F \u0430\u0434\u043D\u043E\u0441\u0456\u043D\u0430 \u0430\u0434\u043B\u044E\u0441\u0442\u0440\u0430\u0432\u0430\u043D\u044C\u043D\u044F",ca:"relaci\xF3 de mapatge",de:"allgemeine Mapping-Relation",en:"SKOS generic mapping relation",fi:"SKOS mappaussuhde",fr:"lien de correspondance SKOS",he:"\u05D9\u05D7\u05E1 \u05DE\u05D9\u05E4\u05D5\u05D9 \u05DB\u05DC\u05DC\u05D9",id:"relasi pemetaan",ja:"SKOS\u4E00\u822C\u30DE\u30C3\u30D4\u30F3\u30B0\u95A2\u4FC2",mk:"\u043F\u0440\u0435\u0441\u043B\u0438\u043A\u0443\u0432\u0430\u0447\u043A\u0438 \u043E\u0434\u043D\u043E\u0441",nb:"SKOS generisk mappingrelasjon","pt-br":"rela\xE7\xE3o gen\xE9rica de mapeamento",sr:"\u0440\u0435\u043B\u0430\u0446\u0438\u0458\u0430 \u043C\u0430\u043F\u0438\u0440\u0430\u045A\u0430",sv:"mappnings relation",zh:"\u6620\u5C04\u95DC\u4FC2","zh-hant":"\u6620\u5C04\u95DC\u4FC2"},SHORT:"",uri:"http://www.w3.org/2004/02/skos/core#mappingRelation"}]});var zp=_((FM,$p)=>{var TC=Ps(),ei={Concept:{type:["http://www.w3.org/2004/02/skos/core#Concept"]},ConceptScheme:{type:["http://www.w3.org/2004/02/skos/core#ConceptScheme"]},ConceptMapping:{type:TC.map(r=>r.uri)},ConceptOccurrence:{type:["http://purl.org/cld/cdtype/CatalogueOrIndex"]},Registry:{type:["http://www.w3.org/ns/dcat#Catalog"]},Distribution:{type:["http://www.w3.org/ns/dcat#Distribution"]},Concordance:{type:["http://rdfs.org/ns/void#Linkset","http://rdf-vocabulary.ddialliance.org/xkos#Correspondence"]},Resource:{},Item:{},ConceptBundle:{},Annotation:{type:["Annotation","http://www.w3.org/ns/oa#Annotation"]}},Qn=Object.keys(ei).reduce((r,e)=>{for(let t of ei[e].type||[])r[t]=e;return r},{});function IC(r,e=!1){var t;if(typeof r=="string"&&r)r in Qn?t=Qn[r]:(r=r.toLowerCase().replace(/s$/,""),t=Object.keys(ei).find(n=>{let i=n.toLowerCase();if(i===r||i==="concept"+r)return!0}));else if(typeof r=="object"&&r.type){let n=Array.isArray(r.type)?r.type:[r.type];for(let i of n)if(i in Qn){t=Qn[i];break}}return e&&t?t.toLowerCase().replace(/^concept(.+)/,"$1"):t}$p.exports={objectTypes:ei,guessObjectType:IC}});var Rs=_((BM,Hp)=>{var PC=/[\\^$.*+?()[\]{}|]/g,qC=r=>r.replace(PC,"\\$&"),RC=/[%ÄÖÜäöü ]/g,qs=class{constructor(e={}){if(Object.assign(this,e),this.notationPattern||(this.notationPattern=".+"),!this.uriPattern&&this.namespace){this.uriPattern="^"+qC(this.namespace);let t=this.notationPattern.replace(RC,encodeURI);this.uriPattern+="("+t+")$"}this.NOTATION_REGEX=RegExp("^"+this.notationPattern+"$"),this.uriPattern&&(this.URI_REGEX=RegExp(this.uriPattern))}isValidNotation(e){return this.NOTATION_REGEX.exec(e)}notationFromUri(e){if(this.URI_REGEX){let t=this.URI_REGEX.exec(e);if(t)return decodeURI(t[1])}}uriFromNotation(e){if(this.uriPattern)return e=encodeURI(e),this.uriPattern.replace(/^\^|\$$/g,"").replace(/\\/g,"").replace(/\(.*\)/,e)}conceptFromUri(e,t={}){let n=this.notationFromUri(e);if(n===void 0)return;let i={uri:e,notation:[n]};return t.inScheme&&(i.inScheme=[{uri:this.uri}]),t.topConcept&&(i.topConceptOf=[{uri:this.uri}]),i}conceptFromNotation(e,t){if(this.isValidNotation(e))return this.conceptFromUri(this.uriFromNotation(e),t)}};Hp.exports=qs});var Ms=_((kM,Gp)=>{var MC=Is(),ri={store:null,path:"",defaults:["en"],getLanguages:Wp,selectLanguage:LC};function Wp(){return MC.get(ri.store,ri.path)||ri.defaults}function LC(r){if(!r)return null;for(let e of Wp())if(r[e])return e;for(let e of Object.keys(r))if(e!="-")return e;return null}Gp.exports=ri});var rd=_(($M,ed)=>{var ie=Is(),NC=r=>/^[A-Z]*$/.test(r),wt=(r,e)=>e.split(".").reduce((t,n)=>t&&t[n]?t[n]:null,r),jC=r=>((r instanceof Array?r:[r]).forEach(t=>{t["@context"]="https://gbv.github.io/jskos/context.json"}),r),Us=r=>(Object.keys(r).forEach(e=>{NC(e)||e.startsWith("_")?delete r[e]:r[e]!=null&&typeof r[e]=="object"&&(r[e]=Us(r[e]))}),r),UC=Us,ti=(r,e=[],t=!0)=>{e=e.concat(["ancestors","narrower","broader","mappings","memberList","TOPCONCEPTS","MAPPINGS","PROVIDER"]);let n=Array.isArray(r)?[]:{};for(let i in r)if(!(t&&i[0]=="_")){if(e.includes(i))if(r[i]&&Array.isArray(r[i])){r[i].length>0?n[i]=[null]:n[i]=[];continue}else{n[i]=null;continue}if(i=="inScheme"){let s=[];for(let o of r.inScheme){let u={uri:o.uri};o.notation&&(u.notation=o.notation),o.prefLabel&&(u.prefLabel=o.prefLabel),s.push(u)}n.inScheme=s;continue}r[i]!=null&&typeof r[i]=="object"?n[i]=ti(r[i]):n[i]=r[i]}return n},DC=ti,Ls=r=>r?(r.uri?[r.uri]:[]).concat(r.identifier||[]).filter(Boolean):[],Or=(r,e)=>{if(r==null&&e==null)return!0;let t=s=>s.replace("http://").replace("https://"),n=Ls(r).map(t),i=Ls(e).map(t);return ie.intersection(n,i).length>0},FC=Or,BC=Or,kC=Or,$C=r=>ie.get(r,"type",[]).includes("http://www.w3.org/2004/02/skos/core#Concept")||ie.get(r,"inScheme")!=null||ie.get(r,"topConceptOf")!=null,Kp=r=>ie.get(r,"type",[]).includes("http://www.w3.org/2004/02/skos/core#ConceptScheme"),Jp=(r,e)=>{if(!r||!e)return!1;for(let t of e)if(Or(r,t))return!0;return!1},zC=Jp,HC=(r,e=!1)=>r.sort((t,n)=>{let i=ie.get(t,"notation[0]"),s=ie.get(n,"notation[0]");if(i&&s&&(i=i.toLowerCase(),s=s.toLowerCase()),e&&(i=parseFloat(i)||i,s=parseFloat(s)||s),(!i||!s||i==s)&&(i=t.uri,s=n.uri),i&&s){if(i>s)return 1;if(i<s)return-1}return 0}),WC=r=>{let e=["notation[0]",["prefLabel.de","prefLabel.en"],"uri"];return r.sort((t,n)=>{for(let i of e){let s,o;if(Array.isArray(i))for(let u of i)s=s||ie.get(t,u),o=o||ie.get(n,u);else s=ie.get(t,i),o=ie.get(n,i);if(s!=null&&o!=null){if(s=s.toLowerCase(),o=o.toLowerCase(),s>o)return 1;if(s<o)return-1}}return 0})},GC=r=>{let e=ie.pick(ti(r),["from","to","fromScheme","toScheme","creator","contributor","type","created","modified","note","identifier","uri","partOf","mappingRelevance"]);for(let t of[e.from,e.to])ie.forOwn(t,(n,i)=>{let s=[];for(let o of n)s.push(ie.pick(o,["uri","notation"]));t[i]=s});return e.fromScheme&&(e.fromScheme=ie.pick(e.fromScheme,["uri","notation"])),e.toScheme&&(e.toScheme=ie.pick(e.toScheme,["uri","notation"])),e.partOf&&(e.partOf=e.partOf.map(t=>ie.pick(t,["uri"]))),e},Vp=Ps(),un=function(r){for(let e of Vp)if(r==e.uri)return e;return null},Yp=un("http://www.w3.org/2004/02/skos/core#mappingRelation"),KC=function(r,e=Yp){let t;return Array.isArray(r)&&r.length>0?t=r[0]:t=r,un(t)||e},JC=(r,e={})=>{let{language:t}=e,n=wt(r,"from.memberSet.0.notation.0"),i=wt(r,"to.memberSet.0.notation.0");n=n!==null?n:"",i=i!==null?i:"";let s=un(wt(r,"type.0"));s=s?s.SHORT:"";let o=_t(wt(r,"from.memberSet.0"),{language:t,fallbackToUri:!1})||"",u=_t(wt(r,"to.memberSet.0"),{language:t,fallbackToUri:!1})||"",a=_t(wt(r,"creator.0"),{language:t,fallbackToUri:!1})||"";return{fromNotation:n,toNotation:i,fromLabel:o,toLabel:u,type:s,creator:a}},VC=(r={})=>{let e=r.delimiter||",",t=r.quoteChar||'"',n=r.lineTerminator||`
11
+ `,i=t+t,s=o=>t+(o==null?"":o.split(t).join(i))+t;return o=>o.map(s).join(e)+n},Wr=(r,e)=>{let t=[];for(let n of["from","to"])(e==null||n===e)&&(t=t.concat(ie.get(r,`${n}.memberSet`)||ie.get(r,`${n}.memberChoice`)||ie.get(r,`${n}.memberList`)||[]));return t.filter(n=>n!=null)},YC=(r={})=>{let e=VC(r),t=r.language||"en";r.type==null&&(r.type=!0);let n=o=>{o=o||[];let u=[];for(let a of["from","to"]){r.schemes&&u.push(`${a}Scheme`);let f=Math.max(...o.map(d=>Wr(d,a).length),1);for(let d=0;d<f;d+=1)u.push(`${a}Notation${d?d+1:""}`),r.labels&&u.push(`${a}Label${d?d+1:""}`)}return r.type&&u.push("type"),r.creator&&u.push("creator"),e(u)},i=(o,u={})=>{let a=[];for(let f of["from","to"]){r.schemes&&a.push(ie.get(o,`${f}Scheme.notation[0]`,""));let d=Wr(o,f),v=u[`${f}Count`];v==null&&(v=d.length),v=Math.max(v,1);for(let w=0;w<v;w+=1)a.push(ie.get(d[w],"notation[0]","")),r.labels&&a.push(_t(d[w],{language:t,fallbackToUri:!1}))}return r.type&&a.push(ie.get(un(ie.get(o,"type[0]")),"SHORT","")),r.creator&&a.push(_t(ie.get(o,"creator[0]"),{language:t,fallbackToUri:!1})),e(a)};return{header:n,fromMapping:i,fromMappings:(o,u={header:!0})=>{let a="";u.header&&(a+=n(o));let f={fromCount:Math.max(...o.map(d=>Wr(d,"from").length)),toCount:Math.max(...o.map(d=>Wr(d,"to").length))};for(let d of o)a+=i(d,f);return a}}};function XC(r,e){return ie.isEqualWith(r,e,(t,n,i)=>{let s={[i]:t},o={[i]:n};if(i=="from"||i=="to")return ie.isEqualWith(Object.getOwnPropertyNames(ie.get(t,i,{})),Object.getOwnPropertyNames(ie.get(n,i,{})))?ie.isEqualWith(Wr(s,i),Wr(o,i),(u,a,f)=>{if(f!=null)return Or(u,a)}):!1;if(i=="fromScheme"||i=="toScheme")return Or(t,n)})}var{objectTypes:ZC,guessObjectType:Ns}=zp(),QC=(r,e)=>{let t=Ns(r),n=Ns(e);return!(t&&n&&t!=n)},Xp=r=>{Array.isArray(r)&&r.sort((e,t)=>e===null?1:t===null?-1:0)},Zp=(r,e)=>(!r||!e||((Array.isArray(r.identifier)||Array.isArray(e.identifier))&&(r.identifier=ie.union(r.identifier||[],e.identifier||[])),!r.uri&&e.uri&&(r.uri=e.uri),r.uri&&e.uri&&r.uri!=e.uri&&!(r.identifier||[]).includes(e.uri)&&(r.identifier=(r.identifier||[]).concat([e.uri])),Array.isArray(r.identifier)&&r.uri&&(r.identifier=r.identifier.filter(t=>t!==r.uri)),(r.identifier||[]).length==0&&delete r.identifier,Xp(r.identifier)),r),Qp=(r,e,t)=>{if(!r||!e)return r||e;t=t||{};let n=t._path||"",i=t.detectMismatch||[],s=t.skipPaths||[],o={};return ie.forOwn(r,(u,a)=>{if(!s.includes(n+a))if(Array.isArray(u)&&Array.isArray(e[a]))o[a]=ie.unionWith(u,e[a],(f,d)=>ie.isObject(f)&&ie.isObject(d)?Or(f,d):f===d),Xp(o[a]);else if(ie.isObject(u)&&ie.isObject(e[a]))o[a]=Qp(u,e[a],Object.assign({_path:`${n}${a}.`},t));else{if(u&&e[a]&&i.includes(n+a)&&!ie.isEqualWith(u,e[a]))throw new Error("Property mismatch in "+n+a);o[a]=u}}),ie.forOwn(e,(u,a)=>{r[a]||(o[a]=u)}),n==""&&ie.omitMod(o,s),t.mergeUris&&Zp(o,e),o},js=r=>Array.isArray(r)?r.map(e=>js(e)):ie.isObject(r)?(ie.forOwn(r,(e,t)=>{r[t]=js(e)}),r):ie.isString(r)?r.normalize():r,eT=r=>{var e=/^[A-Za-z][A-Za-z0-9+\-.]*:(?:\/\/(?:(?:[A-Za-z0-9\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\.[A-Za-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*)(?::[0-9]*)?(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|\/(?:(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?|(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*|)(?:\?(?:[A-Za-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?(?:#(?:[A-Za-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*)?$/;return r.match(e)!==null},rT={mappingsByConcepts:(r,e,t)=>{let n=["memberSet","memberList","memberChoice"],i,s;for(let o of n)i=i||ie.get(r,t+"."+o+"[0].notation[0]"),s=s||ie.get(e,t+"."+o+"[0].notation[0]");return i==null||i<s?-1:s==null||i>s?1:0}},tT=(r,e)=>!r||!e?!1:[r.uri].concat(Object.values(r.identities||{}).map(t=>t.uri)).filter(t=>t!=null).includes(ie.get(e,"creator[0].uri")),nT=Rs(),iT=Ms();function sT(r,e){let t;if(r&&r.notation&&r.notation.length)t=r.notation[0],(Kp(r)||e=="scheme")&&(t=t.toUpperCase());else if(r&&r.inScheme&&r.inScheme[0]&&r.uri)try{t=new nT(r&&r.inScheme&&r.inScheme[0]).notationFromUri(r.uri)}catch(n){}return t||""}function Ds(r,e,{language:t}={}){let n=r&&e?r[e]:r;return n&&(n[t]||(t=iT.selectLanguage(n),t))?n[t]:null}function _t(r,e={}){e=e||{};let t=e.fallbackToUri==null?!0:e.fallbackToUri;return ie.get(r,`prefLabel.${e.language}`)||Ds(r,"prefLabel",e)||(t&&r&&r.uri?r.uri:"")}function oT(r,e={}){e=e||{};let t=ie.get(r,`definition.${e.language}`)||Ds(r,"definition",e)||[];return ie.isString(t)&&(t=[t]),t}function aT(r){return ie.get(r,"stored",ie.get(r,"constructor.stored",ie.get(r,"provider.constructor.stored",!1)))}function uT(r){return ie.isString(r.creator)?r.creator:r.creator&&r.creator.id}function fT(r){return ie.get(r,"creator.name")||""}function cT(r,e){return!!(r&&ie.isString(r.creator)?e&&e.includes(r.creator):e&&r.creator&&e.includes(r.creator.id))}ed.exports={addContext:jC,clean:Us,cleanJSKOS:UC,copyDeep:ti,deepCopy:DC,getAllUris:Ls,compare:Or,compareObjects:FC,compareSchemes:BC,compareConcepts:kC,isConcept:$C,isScheme:Kp,isContainedIn:Jp,isSchemeInList:zC,sortConcepts:HC,sortSchemes:WC,minifyMapping:GC,mappingTypes:Vp,mappingTypeByUri:un,mappingTypeByType:KC,flattenMapping:JC,mappingCSV:YC,defaultMappingType:Yp,conceptsOfMapping:Wr,compareMappingsDeep:XC,objectTypes:ZC,guessObjectType:Ns,matchObjectTypes:QC,mergeUris:Zp,merge:Qp,normalize:js,isValidUri:eT,compareFunctions:rT,userOwnsMapping:tT,notation:sT,languageMapContent:Ds,prefLabel:_t,definition:oT,mappingRegistryIsStored:aT,annotationCreatorUri:uT,annotationCreatorName:fT,annotationCreatorMatches:cT}});var Ge=_((zM,td)=>{var lT=Fp(),hT=rd(),pT=Rs(),dT=Ms();td.exports=Object.assign({ConceptScheme:pT,languagePreference:dT},lT,hT)});var id=_((nd,Bs)=>{(function(r){if(typeof nd=="object"&&typeof Bs!="undefined")Bs.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=r()}})(function(){var r,e,t;return function n(i,s,o){function u(d,v){if(!s[d]){if(!i[d]){var w=typeof Ct=="function"&&Ct;if(!v&&w)return w(d,!0);if(a)return a(d,!0);var O=new Error("Cannot find module '"+d+"'");throw O.code="MODULE_NOT_FOUND",O}var p=s[d]={exports:{}};i[d][0].call(p.exports,function(C){var G=i[d][1][C];return u(G||C)},p,p.exports,n,i,s,o)}return s[d].exports}for(var a=typeof Ct=="function"&&Ct,f=0;f<o.length;f++)u(o[f]);return u}({1:[function(n,i,s){(function(o){"use strict";var u=o.MutationObserver||o.WebKitMutationObserver,a;if(u){var f=0,d=new u(C),v=o.document.createTextNode("");d.observe(v,{characterData:!0}),a=function(){v.data=f=++f%2}}else if(!o.setImmediate&&typeof o.MessageChannel!="undefined"){var w=new o.MessageChannel;w.port1.onmessage=C,a=function(){w.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?a=function(){var K=o.document.createElement("script");K.onreadystatechange=function(){C(),K.onreadystatechange=null,K.parentNode.removeChild(K),K=null},o.document.documentElement.appendChild(K)}:a=function(){setTimeout(C,0)};var O,p=[];function C(){O=!0;for(var K,te,D=p.length;D;){for(te=p,p=[],K=-1;++K<D;)te[K]();D=p.length}O=!1}i.exports=G;function G(K){p.push(K)===1&&!O&&a()}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(n,i,s){"use strict";var o=n(1);function u(){}var a={},f=["REJECTED"],d=["FULFILLED"],v=["PENDING"];i.exports=w;function w(E){if(typeof E!="function")throw new TypeError("resolver must be a function");this.state=v,this.queue=[],this.outcome=void 0,E!==u&&G(this,E)}w.prototype.catch=function(E){return this.then(null,E)},w.prototype.then=function(E,ee){if(typeof E!="function"&&this.state===d||typeof ee!="function"&&this.state===f)return this;var J=new this.constructor(u);if(this.state!==v){var ge=this.state===d?E:ee;p(J,ge,this.outcome)}else this.queue.push(new O(J,E,ee));return J};function O(E,ee,J){this.promise=E,typeof ee=="function"&&(this.onFulfilled=ee,this.callFulfilled=this.otherCallFulfilled),typeof J=="function"&&(this.onRejected=J,this.callRejected=this.otherCallRejected)}O.prototype.callFulfilled=function(E){a.resolve(this.promise,E)},O.prototype.otherCallFulfilled=function(E){p(this.promise,this.onFulfilled,E)},O.prototype.callRejected=function(E){a.reject(this.promise,E)},O.prototype.otherCallRejected=function(E){p(this.promise,this.onRejected,E)};function p(E,ee,J){o(function(){var ge;try{ge=ee(J)}catch(Te){return a.reject(E,Te)}ge===E?a.reject(E,new TypeError("Cannot resolve promise with itself")):a.resolve(E,ge)})}a.resolve=function(E,ee){var J=K(C,ee);if(J.status==="error")return a.reject(E,J.value);var ge=J.value;if(ge)G(E,ge);else{E.state=d,E.outcome=ee;for(var Te=-1,we=E.queue.length;++Te<we;)E.queue[Te].callFulfilled(ee)}return E},a.reject=function(E,ee){E.state=f,E.outcome=ee;for(var J=-1,ge=E.queue.length;++J<ge;)E.queue[J].callRejected(ee);return E};function C(E){var ee=E&&E.then;if(E&&(typeof E=="object"||typeof E=="function")&&typeof ee=="function")return function(){ee.apply(E,arguments)}}function G(E,ee){var J=!1;function ge(Me){J||(J=!0,a.reject(E,Me))}function Te(Me){J||(J=!0,a.resolve(E,Me))}function we(){ee(Te,ge)}var ke=K(we);ke.status==="error"&&ge(ke.value)}function K(E,ee){var J={};try{J.value=E(ee),J.status="success"}catch(ge){J.status="error",J.value=ge}return J}w.resolve=te;function te(E){return E instanceof this?E:a.resolve(new this(u),E)}w.reject=D;function D(E){var ee=new this(u);return a.reject(ee,E)}w.all=Q;function Q(E){var ee=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=E.length,ge=!1;if(!J)return this.resolve([]);for(var Te=new Array(J),we=0,ke=-1,Me=new this(u);++ke<J;)Ye(E[ke],ke);return Me;function Ye(mr,Dr){ee.resolve(mr).then(Je,function(gr){ge||(ge=!0,a.reject(Me,gr))});function Je(gr){Te[Dr]=gr,++we===J&&!ge&&(ge=!0,a.resolve(Me,Te))}}}w.race=ne;function ne(E){var ee=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=E.length,ge=!1;if(!J)return this.resolve([]);for(var Te=-1,we=new this(u);++Te<J;)ke(E[Te]);return we;function ke(Me){ee.resolve(Me).then(function(Ye){ge||(ge=!0,a.resolve(we,Ye))},function(Ye){ge||(ge=!0,a.reject(we,Ye))})}}},{1:1}],3:[function(n,i,s){(function(o){"use strict";typeof o.Promise!="function"&&(o.Promise=n(2))}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(n,i,s){"use strict";var o=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};function u(c,y){if(!(c instanceof y))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(c){return}}var f=a();function d(){try{if(!f||!f.open)return!1;var c=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),y=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!c||y)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(l){return!1}}function v(c,y){c=c||[],y=y||{};try{return new Blob(c,y)}catch(b){if(b.name!=="TypeError")throw b;for(var l=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,S=new l,x=0;x<c.length;x+=1)S.append(c[x]);return S.getBlob(y.type)}}typeof Promise=="undefined"&&n(3);var w=Promise;function O(c,y){y&&c.then(function(l){y(null,l)},function(l){y(l)})}function p(c,y,l){typeof y=="function"&&c.then(y),typeof l=="function"&&c.catch(l)}function C(c){return typeof c!="string"&&(console.warn(c+" used as a key, but it is not a string."),c=String(c)),c}function G(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var K="local-forage-detect-blob-support",te=void 0,D={},Q=Object.prototype.toString,ne="readonly",E="readwrite";function ee(c){for(var y=c.length,l=new ArrayBuffer(y),S=new Uint8Array(l),x=0;x<y;x++)S[x]=c.charCodeAt(x);return l}function J(c){return new w(function(y){var l=c.transaction(K,E),S=v([""]);l.objectStore(K).put(S,"key"),l.onabort=function(x){x.preventDefault(),x.stopPropagation(),y(!1)},l.oncomplete=function(){var x=navigator.userAgent.match(/Chrome\/(\d+)/),b=navigator.userAgent.match(/Edge\//);y(b||!x||parseInt(x[1],10)>=43)}}).catch(function(){return!1})}function ge(c){return typeof te=="boolean"?w.resolve(te):J(c).then(function(y){return te=y,te})}function Te(c){var y=D[c.name],l={};l.promise=new w(function(S,x){l.resolve=S,l.reject=x}),y.deferredOperations.push(l),y.dbReady?y.dbReady=y.dbReady.then(function(){return l.promise}):y.dbReady=l.promise}function we(c){var y=D[c.name],l=y.deferredOperations.pop();if(l)return l.resolve(),l.promise}function ke(c,y){var l=D[c.name],S=l.deferredOperations.pop();if(S)return S.reject(y),S.promise}function Me(c,y){return new w(function(l,S){if(D[c.name]=D[c.name]||g(),c.db)if(y)Te(c),c.db.close();else return l(c.db);var x=[c.name];y&&x.push(c.version);var b=f.open.apply(f,x);y&&(b.onupgradeneeded=function(P){var j=b.result;try{j.createObjectStore(c.storeName),P.oldVersion<=1&&j.createObjectStore(K)}catch(F){if(F.name==="ConstraintError")console.warn('The database "'+c.name+'" has been upgraded from version '+P.oldVersion+" to version "+P.newVersion+', but the storage "'+c.storeName+'" already exists.');else throw F}}),b.onerror=function(P){P.preventDefault(),S(b.error)},b.onsuccess=function(){var P=b.result;P.onversionchange=function(j){j.target.close()},l(P),we(c)}})}function Ye(c){return Me(c,!1)}function mr(c){return Me(c,!0)}function Dr(c,y){if(!c.db)return!0;var l=!c.db.objectStoreNames.contains(c.storeName),S=c.version<c.db.version,x=c.version>c.db.version;if(S&&(c.version!==y&&console.warn('The database "'+c.name+`" can't be downgraded from version `+c.db.version+" to version "+c.version+"."),c.version=c.db.version),x||l){if(l){var b=c.db.version+1;b>c.version&&(c.version=b)}return!0}return!1}function Je(c){return new w(function(y,l){var S=new FileReader;S.onerror=l,S.onloadend=function(x){var b=btoa(x.target.result||"");y({__local_forage_encoded_blob:!0,data:b,type:c.type})},S.readAsBinaryString(c)})}function gr(c){var y=ee(atob(c.data));return v([y],{type:c.type})}function ar(c){return c&&c.__local_forage_encoded_blob}function fi(c){var y=this,l=y._initReady().then(function(){var S=D[y._dbInfo.name];if(S&&S.dbReady)return S.dbReady});return p(l,c,c),l}function h(c){Te(c);for(var y=D[c.name],l=y.forages,S=0;S<l.length;S++){var x=l[S];x._dbInfo.db&&(x._dbInfo.db.close(),x._dbInfo.db=null)}return c.db=null,Ye(c).then(function(b){return c.db=b,Dr(c)?mr(c):b}).then(function(b){c.db=y.db=b;for(var P=0;P<l.length;P++)l[P]._dbInfo.db=b}).catch(function(b){throw ke(c,b),b})}function m(c,y,l,S){S===void 0&&(S=1);try{var x=c.db.transaction(c.storeName,y);l(null,x)}catch(b){if(S>0&&(!c.db||b.name==="InvalidStateError"||b.name==="NotFoundError"))return w.resolve().then(function(){if(!c.db||b.name==="NotFoundError"&&!c.db.objectStoreNames.contains(c.storeName)&&c.version<=c.db.version)return c.db&&(c.version=c.db.version+1),mr(c)}).then(function(){return h(c).then(function(){m(c,y,l,S-1)})}).catch(l);l(b)}}function g(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function A(c){var y=this,l={db:null};if(c)for(var S in c)l[S]=c[S];var x=D[l.name];x||(x=g(),D[l.name]=x),x.forages.push(y),y._initReady||(y._initReady=y.ready,y.ready=fi);var b=[];function P(){return w.resolve()}for(var j=0;j<x.forages.length;j++){var F=x.forages[j];F!==y&&b.push(F._initReady().catch(P))}var B=x.forages.slice(0);return w.all(b).then(function(){return l.db=x.db,Ye(l)}).then(function(z){return l.db=z,Dr(l,y._defaultConfig.version)?mr(l):z}).then(function(z){l.db=x.db=z,y._dbInfo=l;for(var Z=0;Z<B.length;Z++){var fe=B[Z];fe!==y&&(fe._dbInfo.db=l.db,fe._dbInfo.version=l.version)}})}function T(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.get(c);B.onsuccess=function(){var z=B.result;z===void 0&&(z=null),ar(z)&&(z=gr(z)),x(z)},B.onerror=function(){b(B.error)}}catch(z){b(z)}})}).catch(b)});return O(S,y),S}function q(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.openCursor(),z=1;B.onsuccess=function(){var Z=B.result;if(Z){var fe=Z.value;ar(fe)&&(fe=gr(fe));var me=c(fe,Z.key,z++);me!==void 0?x(me):Z.continue()}else x()},B.onerror=function(){b(B.error)}}catch(Z){b(Z)}})}).catch(b)});return O(S,y),S}function N(c,y,l){var S=this;c=C(c);var x=new w(function(b,P){var j;S.ready().then(function(){return j=S._dbInfo,Q.call(y)==="[object Blob]"?ge(j.db).then(function(F){return F?y:Je(y)}):y}).then(function(F){m(S._dbInfo,E,function(B,z){if(B)return P(B);try{var Z=z.objectStore(S._dbInfo.storeName);F===null&&(F=void 0);var fe=Z.put(F,c);z.oncomplete=function(){F===void 0&&(F=null),b(F)},z.onabort=z.onerror=function(){var me=fe.error?fe.error:fe.transaction.error;P(me)}}catch(me){P(me)}})}).catch(P)});return O(x,l),x}function R(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){m(l._dbInfo,E,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=F.delete(c);j.oncomplete=function(){x()},j.onerror=function(){b(B.error)},j.onabort=function(){var z=B.error?B.error:B.transaction.error;b(z)}}catch(z){b(z)}})}).catch(b)});return O(S,y),S}function U(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,E,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.clear();P.oncomplete=function(){S()},P.onabort=P.onerror=function(){var B=F.error?F.error:F.transaction.error;x(B)}}catch(B){x(B)}})}).catch(x)});return O(l,c),l}function $(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,ne,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.count();F.onsuccess=function(){S(F.result)},F.onerror=function(){x(F.error)}}catch(B){x(B)}})}).catch(x)});return O(l,c),l}function X(c,y){var l=this,S=new w(function(x,b){if(c<0){x(null);return}l.ready().then(function(){m(l._dbInfo,ne,function(P,j){if(P)return b(P);try{var F=j.objectStore(l._dbInfo.storeName),B=!1,z=F.openKeyCursor();z.onsuccess=function(){var Z=z.result;if(!Z){x(null);return}c===0||B?x(Z.key):(B=!0,Z.advance(c))},z.onerror=function(){b(z.error)}}catch(Z){b(Z)}})}).catch(b)});return O(S,y),S}function Y(c){var y=this,l=new w(function(S,x){y.ready().then(function(){m(y._dbInfo,ne,function(b,P){if(b)return x(b);try{var j=P.objectStore(y._dbInfo.storeName),F=j.openKeyCursor(),B=[];F.onsuccess=function(){var z=F.result;if(!z){S(B);return}B.push(z.key),z.continue()},F.onerror=function(){x(F.error)}}catch(z){x(z)}})}).catch(x)});return O(l,c),l}function W(c,y){y=G.apply(this,arguments);var l=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||l.name,c.storeName=c.storeName||l.storeName);var S=this,x;if(!c.name)x=w.reject("Invalid arguments");else{var b=c.name===l.name&&S._dbInfo.db,P=b?w.resolve(S._dbInfo.db):Ye(c).then(function(j){var F=D[c.name],B=F.forages;F.db=j;for(var z=0;z<B.length;z++)B[z]._dbInfo.db=j;return j});c.storeName?x=P.then(function(j){if(j.objectStoreNames.contains(c.storeName)){var F=j.version+1;Te(c);var B=D[c.name],z=B.forages;j.close();for(var Z=0;Z<z.length;Z++){var fe=z[Z];fe._dbInfo.db=null,fe._dbInfo.version=F}var me=new w(function(ye,Ce){var Ee=f.open(c.name,F);Ee.onerror=function(Ve){var Ot=Ee.result;Ot.close(),Ce(Ve)},Ee.onupgradeneeded=function(){var Ve=Ee.result;Ve.deleteObjectStore(c.storeName)},Ee.onsuccess=function(){var Ve=Ee.result;Ve.close(),ye(Ve)}});return me.then(function(ye){B.db=ye;for(var Ce=0;Ce<z.length;Ce++){var Ee=z[Ce];Ee._dbInfo.db=ye,we(Ee._dbInfo)}}).catch(function(ye){throw(ke(c,ye)||w.resolve()).catch(function(){}),ye})}}):x=P.then(function(j){Te(c);var F=D[c.name],B=F.forages;j.close();for(var z=0;z<B.length;z++){var Z=B[z];Z._dbInfo.db=null}var fe=new w(function(me,ye){var Ce=f.deleteDatabase(c.name);Ce.onerror=function(){var Ee=Ce.result;Ee&&Ee.close(),ye(Ce.error)},Ce.onblocked=function(){console.warn('dropInstance blocked for database "'+c.name+'" until all open connections are closed')},Ce.onsuccess=function(){var Ee=Ce.result;Ee&&Ee.close(),me(Ee)}});return fe.then(function(me){F.db=me;for(var ye=0;ye<B.length;ye++){var Ce=B[ye];we(Ce._dbInfo)}}).catch(function(me){throw(ke(c,me)||w.resolve()).catch(function(){}),me})})}return O(x,y),x}var ae={_driver:"asyncStorage",_initStorage:A,_support:d(),iterate:q,getItem:T,setItem:N,removeItem:R,clear:U,length:$,key:X,keys:Y,dropInstance:W};function oe(){return typeof openDatabase=="function"}var he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_e="~~local_forage_type~",ve=/^~~local_forage_type~([^~]+)~/,se="__lfsc__:",ue=se.length,de="arbf",$e="blob",Pe="si08",Le="ui08",Xe="uic8",Xr="si16",Fr="si32",Zr="ur16",Br="ui32",pn="fl32",kr="fl64",Zs=ue+de.length,Qs=Object.prototype.toString;function eo(c){var y=c.length*.75,l=c.length,S,x=0,b,P,j,F;c[c.length-1]==="="&&(y--,c[c.length-2]==="="&&y--);var B=new ArrayBuffer(y),z=new Uint8Array(B);for(S=0;S<l;S+=4)b=he.indexOf(c[S]),P=he.indexOf(c[S+1]),j=he.indexOf(c[S+2]),F=he.indexOf(c[S+3]),z[x++]=b<<2|P>>4,z[x++]=(P&15)<<4|j>>2,z[x++]=(j&3)<<6|F&63;return B}function ci(c){var y=new Uint8Array(c),l="",S;for(S=0;S<y.length;S+=3)l+=he[y[S]>>2],l+=he[(y[S]&3)<<4|y[S+1]>>4],l+=he[(y[S+1]&15)<<2|y[S+2]>>6],l+=he[y[S+2]&63];return y.length%3===2?l=l.substring(0,l.length-1)+"=":y.length%3===1&&(l=l.substring(0,l.length-2)+"=="),l}function dd(c,y){var l="";if(c&&(l=Qs.call(c)),c&&(l==="[object ArrayBuffer]"||c.buffer&&Qs.call(c.buffer)==="[object ArrayBuffer]")){var S,x=se;c instanceof ArrayBuffer?(S=c,x+=de):(S=c.buffer,l==="[object Int8Array]"?x+=Pe:l==="[object Uint8Array]"?x+=Le:l==="[object Uint8ClampedArray]"?x+=Xe:l==="[object Int16Array]"?x+=Xr:l==="[object Uint16Array]"?x+=Zr:l==="[object Int32Array]"?x+=Fr:l==="[object Uint32Array]"?x+=Br:l==="[object Float32Array]"?x+=pn:l==="[object Float64Array]"?x+=kr:y(new Error("Failed to get type for BinaryArray"))),y(x+ci(S))}else if(l==="[object Blob]"){var b=new FileReader;b.onload=function(){var P=_e+c.type+"~"+ci(this.result);y(se+$e+P)},b.readAsArrayBuffer(c)}else try{y(JSON.stringify(c))}catch(P){console.error("Couldn't convert value into a JSON string: ",c),y(null,P)}}function md(c){if(c.substring(0,ue)!==se)return JSON.parse(c);var y=c.substring(Zs),l=c.substring(ue,Zs),S;if(l===$e&&ve.test(y)){var x=y.match(ve);S=x[1],y=y.substring(x[0].length)}var b=eo(y);switch(l){case de:return b;case $e:return v([b],{type:S});case Pe:return new Int8Array(b);case Le:return new Uint8Array(b);case Xe:return new Uint8ClampedArray(b);case Xr:return new Int16Array(b);case Zr:return new Uint16Array(b);case Fr:return new Int32Array(b);case Br:return new Uint32Array(b);case pn:return new Float32Array(b);case kr:return new Float64Array(b);default:throw new Error("Unkown type: "+l)}}var li={serialize:dd,deserialize:md,stringToBuffer:eo,bufferToString:ci};function ro(c,y,l,S){c.executeSql("CREATE TABLE IF NOT EXISTS "+y.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],l,S)}function gd(c){var y=this,l={db:null};if(c)for(var S in c)l[S]=typeof c[S]!="string"?c[S].toString():c[S];var x=new w(function(b,P){try{l.db=openDatabase(l.name,String(l.version),l.description,l.size)}catch(j){return P(j)}l.db.transaction(function(j){ro(j,l,function(){y._dbInfo=l,b()},function(F,B){P(B)})},P)});return l.serializer=li,x}function yr(c,y,l,S,x,b){c.executeSql(l,S,x,function(P,j){j.code===j.SYNTAX_ERR?P.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[y.storeName],function(F,B){B.rows.length?b(F,j):ro(F,y,function(){F.executeSql(l,S,x,b)},b)},b):b(P,j)},b)}function yd(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){yr(j,P,"SELECT * FROM "+P.storeName+" WHERE key = ? LIMIT 1",[c],function(F,B){var z=B.rows.length?B.rows.item(0).value:null;z&&(z=P.serializer.deserialize(z)),x(z)},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function vd(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){yr(j,P,"SELECT * FROM "+P.storeName,[],function(F,B){for(var z=B.rows,Z=z.length,fe=0;fe<Z;fe++){var me=z.item(fe),ye=me.value;if(ye&&(ye=P.serializer.deserialize(ye)),ye=c(ye,me.key,fe+1),ye!==void 0){x(ye);return}}x()},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function to(c,y,l,S){var x=this;c=C(c);var b=new w(function(P,j){x.ready().then(function(){y===void 0&&(y=null);var F=y,B=x._dbInfo;B.serializer.serialize(y,function(z,Z){Z?j(Z):B.db.transaction(function(fe){yr(fe,B,"INSERT OR REPLACE INTO "+B.storeName+" (key, value) VALUES (?, ?)",[c,z],function(){P(F)},function(me,ye){j(ye)})},function(fe){if(fe.code===fe.QUOTA_ERR){if(S>0){P(to.apply(x,[c,F,l,S-1]));return}j(fe)}})})}).catch(j)});return O(b,l),b}function wd(c,y,l){return to.apply(this,[c,y,l,1])}function _d(c,y){var l=this;c=C(c);var S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){yr(j,P,"DELETE FROM "+P.storeName+" WHERE key = ?",[c],function(){x()},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function bd(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){yr(P,b,"DELETE FROM "+b.storeName,[],function(){S()},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function Sd(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){yr(P,b,"SELECT COUNT(key) as c FROM "+b.storeName,[],function(j,F){var B=F.rows.item(0).c;S(B)},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function xd(c,y){var l=this,S=new w(function(x,b){l.ready().then(function(){var P=l._dbInfo;P.db.transaction(function(j){yr(j,P,"SELECT key FROM "+P.storeName+" WHERE id = ? LIMIT 1",[c+1],function(F,B){var z=B.rows.length?B.rows.item(0).key:null;x(z)},function(F,B){b(B)})})}).catch(b)});return O(S,y),S}function Ad(c){var y=this,l=new w(function(S,x){y.ready().then(function(){var b=y._dbInfo;b.db.transaction(function(P){yr(P,b,"SELECT key FROM "+b.storeName,[],function(j,F){for(var B=[],z=0;z<F.rows.length;z++)B.push(F.rows.item(z).key);S(B)},function(j,F){x(F)})})}).catch(x)});return O(l,c),l}function Od(c){return new w(function(y,l){c.transaction(function(S){S.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(x,b){for(var P=[],j=0;j<b.rows.length;j++)P.push(b.rows.item(j).name);y({db:c,storeNames:P})},function(x,b){l(b)})},function(S){l(S)})})}function Ed(c,y){y=G.apply(this,arguments);var l=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||l.name,c.storeName=c.storeName||l.storeName);var S=this,x;return c.name?x=new w(function(b){var P;c.name===l.name?P=S._dbInfo.db:P=openDatabase(c.name,"","",0),c.storeName?b({db:P,storeNames:[c.storeName]}):b(Od(P))}).then(function(b){return new w(function(P,j){b.db.transaction(function(F){function B(me){return new w(function(ye,Ce){F.executeSql("DROP TABLE IF EXISTS "+me,[],function(){ye()},function(Ee,Ve){Ce(Ve)})})}for(var z=[],Z=0,fe=b.storeNames.length;Z<fe;Z++)z.push(B(b.storeNames[Z]));w.all(z).then(function(){P()}).catch(function(me){j(me)})},function(F){j(F)})})}):x=w.reject("Invalid arguments"),O(x,y),x}var Cd={_driver:"webSQLStorage",_initStorage:gd,_support:oe(),iterate:vd,getItem:yd,setItem:wd,removeItem:_d,clear:bd,length:Sd,key:xd,keys:Ad,dropInstance:Ed};function Td(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(c){return!1}}function no(c,y){var l=c.name+"/";return c.storeName!==y.storeName&&(l+=c.storeName+"/"),l}function Id(){var c="_localforage_support_test";try{return localStorage.setItem(c,!0),localStorage.removeItem(c),!1}catch(y){return!0}}function Pd(){return!Id()||localStorage.length>0}function qd(c){var y=this,l={};if(c)for(var S in c)l[S]=c[S];return l.keyPrefix=no(c,y._defaultConfig),Pd()?(y._dbInfo=l,l.serializer=li,w.resolve()):w.reject()}function Rd(c){var y=this,l=y.ready().then(function(){for(var S=y._dbInfo.keyPrefix,x=localStorage.length-1;x>=0;x--){var b=localStorage.key(x);b.indexOf(S)===0&&localStorage.removeItem(b)}});return O(l,c),l}function Md(c,y){var l=this;c=C(c);var S=l.ready().then(function(){var x=l._dbInfo,b=localStorage.getItem(x.keyPrefix+c);return b&&(b=x.serializer.deserialize(b)),b});return O(S,y),S}function Ld(c,y){var l=this,S=l.ready().then(function(){for(var x=l._dbInfo,b=x.keyPrefix,P=b.length,j=localStorage.length,F=1,B=0;B<j;B++){var z=localStorage.key(B);if(z.indexOf(b)===0){var Z=localStorage.getItem(z);if(Z&&(Z=x.serializer.deserialize(Z)),Z=c(Z,z.substring(P),F++),Z!==void 0)return Z}}});return O(S,y),S}function Nd(c,y){var l=this,S=l.ready().then(function(){var x=l._dbInfo,b;try{b=localStorage.key(c)}catch(P){b=null}return b&&(b=b.substring(x.keyPrefix.length)),b});return O(S,y),S}function jd(c){var y=this,l=y.ready().then(function(){for(var S=y._dbInfo,x=localStorage.length,b=[],P=0;P<x;P++){var j=localStorage.key(P);j.indexOf(S.keyPrefix)===0&&b.push(j.substring(S.keyPrefix.length))}return b});return O(l,c),l}function Ud(c){var y=this,l=y.keys().then(function(S){return S.length});return O(l,c),l}function Dd(c,y){var l=this;c=C(c);var S=l.ready().then(function(){var x=l._dbInfo;localStorage.removeItem(x.keyPrefix+c)});return O(S,y),S}function Fd(c,y,l){var S=this;c=C(c);var x=S.ready().then(function(){y===void 0&&(y=null);var b=y;return new w(function(P,j){var F=S._dbInfo;F.serializer.serialize(y,function(B,z){if(z)j(z);else try{localStorage.setItem(F.keyPrefix+c,B),P(b)}catch(Z){(Z.name==="QuotaExceededError"||Z.name==="NS_ERROR_DOM_QUOTA_REACHED")&&j(Z),j(Z)}})})});return O(x,l),x}function Bd(c,y){if(y=G.apply(this,arguments),c=typeof c!="function"&&c||{},!c.name){var l=this.config();c.name=c.name||l.name,c.storeName=c.storeName||l.storeName}var S=this,x;return c.name?x=new w(function(b){c.storeName?b(no(c,S._defaultConfig)):b(c.name+"/")}).then(function(b){for(var P=localStorage.length-1;P>=0;P--){var j=localStorage.key(P);j.indexOf(b)===0&&localStorage.removeItem(j)}}):x=w.reject("Invalid arguments"),O(x,y),x}var kd={_driver:"localStorageWrapper",_initStorage:qd,_support:Td(),iterate:Ld,getItem:Md,setItem:Fd,removeItem:Dd,clear:Rd,length:Ud,key:Nd,keys:jd,dropInstance:Bd},$d=function(y,l){return y===l||typeof y=="number"&&typeof l=="number"&&isNaN(y)&&isNaN(l)},zd=function(y,l){for(var S=y.length,x=0;x<S;){if($d(y[x],l))return!0;x++}return!1},io=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"},At={},so={},Qr={INDEXEDDB:ae,WEBSQL:Cd,LOCALSTORAGE:kd},Hd=[Qr.INDEXEDDB._driver,Qr.WEBSQL._driver,Qr.LOCALSTORAGE._driver],dn=["dropInstance"],hi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(dn),Wd={description:"",driver:Hd.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Gd(c,y){c[y]=function(){var l=arguments;return c.ready().then(function(){return c[y].apply(c,l)})}}function pi(){for(var c=1;c<arguments.length;c++){var y=arguments[c];if(y)for(var l in y)y.hasOwnProperty(l)&&(io(y[l])?arguments[0][l]=y[l].slice():arguments[0][l]=y[l])}return arguments[0]}var Kd=function(){function c(y){u(this,c);for(var l in Qr)if(Qr.hasOwnProperty(l)){var S=Qr[l],x=S._driver;this[l]=x,At[x]||this.defineDriver(S)}this._defaultConfig=pi({},Wd),this._config=pi({},this._defaultConfig,y),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return c.prototype.config=function(l){if((typeof l=="undefined"?"undefined":o(l))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var S in l){if(S==="storeName"&&(l[S]=l[S].replace(/\W/g,"_")),S==="version"&&typeof l[S]!="number")return new Error("Database version must be a number.");this._config[S]=l[S]}return"driver"in l&&l.driver?this.setDriver(this._config.driver):!0}else return typeof l=="string"?this._config[l]:this._config},c.prototype.defineDriver=function(l,S,x){var b=new w(function(P,j){try{var F=l._driver,B=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!l._driver){j(B);return}for(var z=hi.concat("_initStorage"),Z=0,fe=z.length;Z<fe;Z++){var me=z[Z],ye=!zd(dn,me);if((ye||l[me])&&typeof l[me]!="function"){j(B);return}}var Ce=function(){for(var Ot=function(Yd){return function(){var Xd=new Error("Method "+Yd+" is not implemented by the current driver"),oo=w.reject(Xd);return O(oo,arguments[arguments.length-1]),oo}},di=0,Vd=dn.length;di<Vd;di++){var mi=dn[di];l[mi]||(l[mi]=Ot(mi))}};Ce();var Ee=function(Ot){At[F]&&console.info("Redefining LocalForage driver: "+F),At[F]=l,so[F]=Ot,P()};"_support"in l?l._support&&typeof l._support=="function"?l._support().then(Ee,j):Ee(!!l._support):Ee(!0)}catch(Ve){j(Ve)}});return p(b,S,x),b},c.prototype.driver=function(){return this._driver||null},c.prototype.getDriver=function(l,S,x){var b=At[l]?w.resolve(At[l]):w.reject(new Error("Driver not found."));return p(b,S,x),b},c.prototype.getSerializer=function(l){var S=w.resolve(li);return p(S,l),S},c.prototype.ready=function(l){var S=this,x=S._driverSet.then(function(){return S._ready===null&&(S._ready=S._initDriver()),S._ready});return p(x,l,l),x},c.prototype.setDriver=function(l,S,x){var b=this;io(l)||(l=[l]);var P=this._getSupportedDrivers(l);function j(){b._config.driver=b.driver()}function F(Z){return b._extend(Z),j(),b._ready=b._initStorage(b._config),b._ready}function B(Z){return function(){var fe=0;function me(){for(;fe<Z.length;){var ye=Z[fe];return fe++,b._dbInfo=null,b._ready=null,b.getDriver(ye).then(F).catch(me)}j();var Ce=new Error("No available storage method found.");return b._driverSet=w.reject(Ce),b._driverSet}return me()}}var z=this._driverSet!==null?this._driverSet.catch(function(){return w.resolve()}):w.resolve();return this._driverSet=z.then(function(){var Z=P[0];return b._dbInfo=null,b._ready=null,b.getDriver(Z).then(function(fe){b._driver=fe._driver,j(),b._wrapLibraryMethodsWithReady(),b._initDriver=B(P)})}).catch(function(){j();var Z=new Error("No available storage method found.");return b._driverSet=w.reject(Z),b._driverSet}),p(this._driverSet,S,x),this._driverSet},c.prototype.supports=function(l){return!!so[l]},c.prototype._extend=function(l){pi(this,l)},c.prototype._getSupportedDrivers=function(l){for(var S=[],x=0,b=l.length;x<b;x++){var P=l[x];this.supports(P)&&S.push(P)}return S},c.prototype._wrapLibraryMethodsWithReady=function(){for(var l=0,S=hi.length;l<S;l++)Gd(this,hi[l])},c.prototype.createInstance=function(l){return new c(l)},c}(),Jd=new Kd;i.exports=Jd},{3:3}]},{},[4])(4)})});var Ks=_((Gs,ud)=>{"use strict";(function(r,e,t){let n;(n=t.define)&&n.amd?n([],function(){return e}):(n=t.modules)?n[r.toLowerCase()]=e:typeof Gs=="object"?ud.exports=e:t[r]=e})("FlexSearch",function r(e){function t(h,m){let g=m?m.id:h&&h.id;this.id=g||g===0?g:Ye++,this.init(h,m),u(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)}),u(this,"length",function(){return this.index.length})}function n(h,m,g,A){return this.u!==this.g&&(this.o=this.o.concat(g),this.u++,A&&this.o.length>=A&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(m,this.o),this.F&&this.F(this.o))),this}function i(h){let m=J();for(let g in h)if(h.hasOwnProperty(g)){let A=h[g];D(A)?m[g]=A.slice(0):ne(A)?m[g]=i(A):m[g]=A}return m}function s(h,m){let g=h.length,A=Q(m),T=[];for(let q=0,N=0;q<g;q++){let R=h[q];(A&&m(R)||!A&&!m[R])&&(T[N++]=R)}return T}function o(h,m,g,A,T,q,N,R,U,$){g=K(g,N?0:T,R,q,m,U,$);let X;if(R&&(R=g.page,X=g.next,g=g.result),N)m=this.where(N,null,T,g);else{for(m=g,g=this.l,T=m.length,q=Array(T),N=0;N<T;N++)q[N]=g[m[N]];m=q}return g=m,A&&(Q(A)||(Je=A.split(":"),1<Je.length?A=C:(Je=Je[0],A=p)),g.sort(A)),g=G(R,X,g),this.cache&&this.j.set(h,g),g}function u(h,m,g){Object.defineProperty(h,m,{get:g})}function a(h){return new RegExp(h,"g")}function f(h,m){for(let g=0;g<m.length;g+=2)h=h.replace(m[g],m[g+1]);return h}function d(h,m,g,A,T,q,N,R){return m[g]?m[g]:(T=T?(R-(N||R/1.5))*q+(N||R/1.5)*T:q,m[g]=T,T>=N&&(h=h[R-(T+.5>>0)],h=h[g]||(h[g]=[]),h[h.length]=A),T)}function v(h,m){if(h){let g=Object.keys(h);for(let A=0,T=g.length;A<T;A++){let q=g[A],N=h[q];if(N)for(let R=0,U=N.length;R<U;R++)if(N[R]===m){U===1?delete h[q]:N.splice(R,1);break}else ne(N[R])&&v(N[R],m)}}}function w(h){let m="",g="";var A="";for(let T=0;T<h.length;T++){let q=h[T];q!==g&&(T&&q==="h"?(A=A==="a"||A==="e"||A==="i"||A==="o"||A==="u"||A==="y",((g==="a"||g==="e"||g==="i"||g==="o"||g==="u"||g==="y")&&A||g===" ")&&(m+=q)):m+=q),A=T===h.length-1?"":h[T+1],g=q}return m}function O(h,m){return h=h.length-m.length,0>h?1:h?-1:0}function p(h,m){return h=h[Je],m=m[Je],h<m?-1:h>m?1:0}function C(h,m){let g=Je.length;for(let A=0;A<g;A++)h=h[Je[A]],m=m[Je[A]];return h<m?-1:h>m?1:0}function G(h,m,g){return h?{page:h,next:m?""+m:null,result:g}:g}function K(h,m,g,A,T,q,N){let R,U=[];if(g===!0){g="0";var $=""}else $=g&&g.split(":");let X=h.length;if(1<X){let ve=J(),se=[],ue,de;var Y=0,W;let $e;var ae=!0;let Pe,Le=0,Xe,Xr,Fr,Zr;if($&&($.length===2?(Fr=$,$=!1):$=Zr=parseInt($[0],10)),N){for(ue=J();Y<X;Y++)if(T[Y]==="not")for(de=h[Y],$e=de.length,W=0;W<$e;W++)ue["@"+de[W]]=1;else Xr=Y+1;if(E(Xr))return G(g,R,U);Y=0}else Xe=te(T)&&T;let Br;for(;Y<X;Y++){let pn=Y===(Xr||X)-1;if(!Xe||!Y)if((W=Xe||T&&T[Y])&&W!=="and")if(W==="or")Br=!1;else continue;else Br=q=!0;if(de=h[Y],$e=de.length){if(ae)if(Pe){var oe=Pe.length;for(W=0;W<oe;W++){ae=Pe[W];var he="@"+ae;N&&ue[he]||(ve[he]=1,q||(U[Le++]=ae))}Pe=null,ae=!1}else{Pe=de;continue}for(he=!1,W=0;W<$e;W++){oe=de[W];var _e="@"+oe;let kr=q?ve[_e]||0:Y;if(!(!kr&&!A||N&&ue[_e]||!q&&ve[_e]))if(kr===Y){if(pn){if((!Zr||--Zr<Le)&&(U[Le++]=oe,m&&Le===m))return G(g,Le+($||0),U)}else ve[_e]=Y+1;he=!0}else A&&(_e=se[kr]||(se[kr]=[]),_e[_e.length]=oe)}if(Br&&!he&&!A)break}else if(Br&&!A)return G(g,R,de)}if(Pe)if(Y=Pe.length,N)for(W=$?parseInt($,10):0;W<Y;W++)h=Pe[W],ue["@"+h]||(U[Le++]=h);else U=Pe;if(A){for(Le=U.length,Fr?(Y=parseInt(Fr[0],10)+1,W=parseInt(Fr[1],10)+1):(Y=se.length,W=0);Y--;)if(oe=se[Y]){for($e=oe.length;W<$e;W++)if(A=oe[W],(!N||!ue["@"+A])&&(U[Le++]=A,m&&Le===m))return G(g,Y+":"+W,U);W=0}}}else!X||T&&T[0]==="not"||(U=h[0],$&&($=parseInt($[0],10)));return m&&(N=U.length,$&&$>N&&($=0),$=$||0,R=$+m,R<N?U=U.slice($,R):(R=0,$&&(U=U.slice($)))),G(g,R,U)}function te(h){return typeof h=="string"}function D(h){return h.constructor===Array}function Q(h){return typeof h=="function"}function ne(h){return typeof h=="object"}function E(h){return typeof h=="undefined"}function ee(h){let m=Array(h);for(let g=0;g<h;g++)m[g]=J();return m}function J(){return Object.create(null)}function ge(){let h,m;self.onmessage=function(g){if(g=g.data)if(g.search){let A=m.search(g.content,g.threshold?{limit:g.limit,threshold:g.threshold,where:g.where}:g.limit);self.postMessage({id:h,content:g.content,limit:g.limit,result:A})}else g.add?m.add(g.id,g.content):g.update?m.update(g.id,g.content):g.remove?m.remove(g.id):g.clear?m.clear():g.info?(g=m.info(),g.worker=h,console.log(g)):g.register&&(h=g.id,g.options.cache=!1,g.options.async=!1,g.options.worker=!1,m=new Function(g.register.substring(g.register.indexOf("{")+1,g.register.lastIndexOf("}")))(),m=new m(g.options))}}function Te(h,m,g,A){h=e("flexsearch","id"+h,ge,function(q){(q=q.data)&&q.result&&A(q.id,q.content,q.result,q.limit,q.where,q.cursor,q.suggest)},m);let T=r.toString();return g.id=m,h.postMessage({register:T,options:g,id:m}),h}let we={encode:"icase",f:"forward",split:/\W+/,cache:!1,async:!1,g:!1,D:!1,a:!1,b:9,threshold:0,depth:0},ke={memory:{encode:"extra",f:"strict",threshold:0,b:1},speed:{encode:"icase",f:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",f:"full",threshold:1,b:3},score:{encode:"extra",f:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",f:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",f:"strict",threshold:8,b:9,depth:1}},Me=[],Ye=0,mr={},Dr={};t.create=function(h,m){return new t(h,m)},t.registerMatcher=function(h){for(let m in h)h.hasOwnProperty(m)&&Me.push(a(m),h[m]);return this},t.registerEncoder=function(h,m){return ar[h]=m.bind(ar),this},t.registerLanguage=function(h,m){return mr[h]=m.filter,Dr[h]=m.stemmer,this},t.encode=function(h,m){return ar[h](m)},t.prototype.init=function(h,m){if(this.v=[],m){var g=m.preset;h=m}else h||(h=we),g=h.preset;if(m={},te(h)?(m=ke[h],h={}):g&&(m=ke[g]),g=h.worker)if(typeof Worker=="undefined")h.worker=!1,this.m=null;else{var A=parseInt(g,10)||4;this.C=-1,this.u=0,this.o=[],this.F=null,this.m=Array(A);for(var T=0;T<A;T++)this.m[T]=Te(this.id,T,h,n.bind(this))}if(this.f=h.tokenize||m.f||this.f||we.f,this.split=E(g=h.split)?this.split||we.split:te(g)?a(g):g,this.D=h.rtl||this.D||we.D,this.async=typeof Promise=="undefined"||E(g=h.async)?this.async||we.async:g,this.g=E(g=h.worker)?this.g||we.g:g,this.threshold=E(g=h.threshold)?m.threshold||this.threshold||we.threshold:g,this.b=E(g=h.resolution)?g=m.b||this.b||we.b:g,g<=this.threshold&&(this.b=this.threshold+1),this.depth=this.f!=="strict"||E(g=h.depth)?m.depth||this.depth||we.depth:g,this.w=(g=E(g=h.encode)?m.encode||we.encode:g)&&ar[g]&&ar[g].bind(ar)||(Q(g)?g:this.w||!1),(g=h.matcher)&&this.addMatcher(g),g=(m=h.lang)||h.filter){if(te(g)&&(g=mr[g]),D(g)){A=this.w,T=J();for(var q=0;q<g.length;q++){var N=A?A(g[q]):g[q];T[N]=1}g=T}this.filter=g}if(g=m||h.stemmer){var R;m=te(g)?Dr[g]:g,A=this.w,T=[];for(R in m)m.hasOwnProperty(R)&&(q=A?A(R):R,T.push(a(q+"($|\\W)"),A?A(m[R]):m[R]));this.stemmer=R=T}if(this.a=T=(g=h.doc)?i(g):this.a||we.a,this.i=ee(this.b-(this.threshold||0)),this.h=J(),this.c=J(),T){if(this.l=J(),h.doc=null,R=T.index={},m=T.keys=[],A=T.field,q=T.tag,N=T.store,D(T.id)||(T.id=T.id.split(":")),N){var U=J();if(te(N))U[N]=1;else if(D(N))for(let $=0;$<N.length;$++)U[N[$]]=1;else ne(N)&&(U=N);T.store=U}if(q){if(this.G=J(),N=J(),A)if(te(A))N[A]=h;else if(D(A))for(U=0;U<A.length;U++)N[A[U]]=h;else ne(A)&&(N=A);for(D(q)||(T.tag=q=[q]),A=0;A<q.length;A++)this.G[q[A]]=J();this.I=q,A=N}if(A){let $;for(D(A)||(ne(A)?($=A,T.field=A=Object.keys(A)):T.field=A=[A]),T=0;T<A.length;T++)q=A[T],D(q)||($&&(h=$[q]),m[T]=q,A[T]=q.split(":")),R[q]=new t(h)}h.doc=g}return this.B=!0,this.j=(this.cache=g=E(g=h.cache)?this.cache||we.cache:g)?new fi(g):!1,this},t.prototype.encode=function(h){return h&&(Me.length&&(h=f(h,Me)),this.v.length&&(h=f(h,this.v)),this.w&&(h=this.w(h)),this.stemmer&&(h=f(h,this.stemmer))),h},t.prototype.addMatcher=function(h){let m=this.v;for(let g in h)h.hasOwnProperty(g)&&m.push(a(g),h[g]);return this},t.prototype.add=function(h,m,g,A,T){if(this.a&&ne(h))return this.A("add",h,m);if(m&&te(m)&&(h||h===0)){var q="@"+h;if(this.c[q]&&!A)return this.update(h,m);if(this.g)return++this.C>=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:h,content:m}),this.c[q]=""+this.C,g&&g(),this;if(!T){if(this.async&&typeof importScripts!="function"){let se=this;if(q=new Promise(function(ue){setTimeout(function(){se.add(h,m,null,A,!0),se=null,ue()})}),g)q.then(g);else return q;return this}if(g)return this.add(h,m,null,A,!0),g(),this}if(m=this.encode(m),!m.length)return this;g=this.f,T=Q(g)?g(m):m.split(this.split),this.filter&&(T=s(T,this.filter));let Y=J();Y._ctx=J();let W=T.length,ae=this.threshold,oe=this.depth,he=this.b,_e=this.i,ve=this.D;for(let se=0;se<W;se++){var N=T[se];if(N){var R=N.length,U=(ve?se+1:W-se)/W,$="";switch(g){case"reverse":case"both":for(var X=R;--X;)$=N[X]+$,d(_e,Y,$,h,ve?1:(R-X)/R,U,ae,he-1);$="";case"forward":for(X=0;X<R;X++)$+=N[X],d(_e,Y,$,h,ve?(X+1)/R:1,U,ae,he-1);break;case"full":for(X=0;X<R;X++){let ue=(ve?X+1:R-X)/R;for(let de=R;de>X;de--)$=N.substring(X,de),d(_e,Y,$,h,ue,U,ae,he-1)}break;default:if(R=d(_e,Y,N,h,1,U,ae,he-1),oe&&1<W&&R>=ae)for(R=Y._ctx[N]||(Y._ctx[N]=J()),N=this.h[N]||(this.h[N]=ee(he-(ae||0))),U=se-oe,$=se+oe+1,0>U&&(U=0),$>W&&($=W);U<$;U++)U!==se&&d(N,R,T[U],h,0,he-(U<se?se-U:U-se),ae,he-1)}}}this.c[q]=1,this.B=!1}return this},t.prototype.A=function(h,m,g){if(D(m)){var A=m.length;if(A--){for(var T=0;T<A;T++)this.A(h,m[T]);return this.A(h,m[A],g)}}else{var q=this.a.index,N=this.a.keys,R=this.a.tag;T=this.a.store;var U,$=this.a.id;A=m;for(var X=0;X<$.length;X++)A=A[$[X]];if(h==="remove"&&(delete this.l[A],$=N.length,$--)){for(m=0;m<$;m++)q[N[m]].remove(A);return q[N[$]].remove(A,g)}if(R){for(U=0;U<R.length;U++){var Y=R[U],W=m;for($=Y.split(":"),X=0;X<$.length;X++)W=W[$[X]];W="@"+W}U=this.G[Y],U=U[W]||(U[W]=[])}$=this.a.field;for(let ae=0,oe=$.length;ae<oe;ae++){for(Y=$[ae],R=m,W=0;W<Y.length;W++)R=R[Y[W]];Y=q[N[ae]],W=h==="add"?Y.add:Y.update,ae===oe-1?W.call(Y,A,R,g):W.call(Y,A,R)}if(T){for(g=Object.keys(T),h=J(),q=0;q<g.length;q++)if(N=g[q],T[N]){N=N.split(":");let ae,oe;for($=0;$<N.length;$++)R=N[$],ae=(ae||m)[R],oe=(oe||h)[R]=ae}m=h}U&&(U[U.length]=m),this.l[A]=m}return this},t.prototype.update=function(h,m,g){return this.a&&ne(h)?this.A("update",h,m):(this.c["@"+h]&&te(m)&&(this.remove(h),this.add(h,m,g,!0)),this)},t.prototype.remove=function(h,m,g){if(this.a&&ne(h))return this.A("remove",h,m);var A="@"+h;if(this.c[A]){if(this.g)return this.m[this.c[A]].postMessage({remove:!0,id:h}),delete this.c[A],m&&m(),this;if(!g){if(this.async&&typeof importScripts!="function"){let T=this;if(A=new Promise(function(q){setTimeout(function(){T.remove(h,null,!0),T=null,q()})}),m)A.then(m);else return A;return this}if(m)return this.remove(h,null,!0),m(),this}for(m=0;m<this.b-(this.threshold||0);m++)v(this.i[m],h);this.depth&&v(this.h,h),delete this.c[A],this.B=!1}return this};let Je;t.prototype.search=function(h,m,g,A){if(ne(m)){if(D(m))for(var T=0;T<m.length;T++)m[T].query=h;else m.query=h;h=m,m=1e3}else m&&Q(m)?(g=m,m=1e3):m||m===0||(m=1e3);if(this.g){this.F=g,this.u=0,this.o=[];for(var q=0;q<this.g;q++)this.m[q].postMessage({search:!0,limit:m,content:h})}else{var N=[],R=h;if(ne(h)&&!D(h)){g||(g=h.callback)&&(R.callback=null);var U=h.sort,$=h.page;m=h.limit,q=h.threshold;var X=h.suggest;h=h.query}if(this.a){q=this.a.index;let ve=R.where;var Y=R.bool||"or",W=R.field;let se=Y,ue,de;if(W)D(W)||(W=[W]);else if(D(R)){var ae=R;W=[],se=[];for(var oe=0;oe<R.length;oe++)A=R[oe],T=A.bool||Y,W[oe]=A.field,se[oe]=T,T==="not"?ue=!0:T==="and"&&(de=!0)}else W=this.a.keys;for(Y=W.length,oe=0;oe<Y;oe++)ae&&(R=ae[oe]),$&&!te(R)&&(R.page=null,R.limit=0),N[oe]=q[W[oe]].search(R,0);if(g)return g(o.call(this,h,se,N,U,m,X,ve,$,de,ue));if(this.async){let $e=this;return new Promise(function(Pe){Promise.all(N).then(function(Le){Pe(o.call($e,h,se,Le,U,m,X,ve,$,de,ue))})})}return o.call(this,h,se,N,U,m,X,ve,$,de,ue)}if(q||(q=this.threshold||0),!A){if(this.async&&typeof importScripts!="function"){let ve=this;if(q=new Promise(function(se){setTimeout(function(){se(ve.search(R,m,null,!0)),ve=null})}),g)q.then(g);else return q;return this}if(g)return g(this.search(R,m,null,!0)),this}if(!h||!te(h))return N;if(R=h,this.cache)if(this.B){if(g=this.j.get(h))return g}else this.j.clear(),this.B=!0;if(R=this.encode(R),!R.length)return N;g=this.f,g=Q(g)?g(R):R.split(this.split),this.filter&&(g=s(g,this.filter)),ae=g.length,A=!0,T=[];var he=J(),_e=0;if(1<ae&&(this.depth&&this.f==="strict"?Y=!0:g.sort(O)),!Y||(oe=this.h)){let ve=this.b;for(;_e<ae;_e++){let se=g[_e];if(se){if(Y){if(!W){if(oe[se])W=se,he[se]=1;else if(!X)return N}if(X&&_e===ae-1&&!T.length)Y=!1,se=W||se,he[se]=0;else if(!W)continue}if(!he[se]){let ue=[],de=!1,$e=0,Pe=Y?oe[W]:this.i;if(Pe){let Le;for(let Xe=0;Xe<ve-q;Xe++)(Le=Pe[Xe]&&Pe[Xe][se])&&(ue[$e++]=Le,de=!0)}if(de)W=se,T[T.length]=1<$e?ue.concat.apply([],ue):ue[0];else if(!X){A=!1;break}he[se]=1}}}}else A=!1;return A&&(N=K(T,m,$,X)),this.cache&&this.j.set(h,N),N}},t.prototype.find=function(h,m){return this.where(h,m,1)[0]||null},t.prototype.where=function(h,m,g,A){let T=this.l,q=[],N=0,R;var U;let $;if(ne(h)){g||(g=m);var X=Object.keys(h),Y=X.length;if(R=!1,Y===1&&X[0]==="id")return[T[h.id]];if((U=this.I)&&!A)for(var W=0;W<U.length;W++){var ae=U[W],oe=h[ae];if(!E(oe)){if($=this.G[ae]["@"+oe],--Y===0)return $;X.splice(X.indexOf(ae),1),delete h[ae];break}}for(U=Array(Y),W=0;W<Y;W++)U[W]=X[W].split(":")}else{if(Q(h)){for(m=A||Object.keys(T),g=m.length,X=0;X<g;X++)Y=T[m[X]],h(Y)&&(q[N++]=Y);return q}if(E(m))return[T[h]];if(h==="id")return[T[m]];X=[h],Y=1,U=[h.split(":")],R=!0}for(A=$||A||Object.keys(T),W=A.length,ae=0;ae<W;ae++){oe=$?A[ae]:T[A[ae]];let he=!0;for(let _e=0;_e<Y;_e++){R||(m=h[X[_e]]);let ve=U[_e],se=ve.length,ue=oe;if(1<se)for(let de=0;de<se;de++)ue=ue[ve[de]];else ue=ue[ve[0]];if(ue!==m){he=!1;break}}if(he&&(q[N++]=oe,g&&N===g))break}return q},t.prototype.info=function(){if(this.g)for(let h=0;h<this.g;h++)this.m[h].postMessage({info:!0,id:this.id});else return{id:this.id,items:this.length,cache:this.cache&&this.cache.s?this.cache.s.length:!1,matcher:Me.length+(this.v?this.v.length:0),worker:this.g,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&this.f==="strict"}},t.prototype.clear=function(){return this.destroy().init()},t.prototype.destroy=function(){if(this.cache&&(this.j.clear(),this.j=null),this.i=this.h=this.c=null,this.a){let h=this.a.keys;for(let m=0;m<h.length;m++)this.a.index[h[m]].destroy();this.a=this.l=null}return this},t.prototype.export=function(h){let m=!h||E(h.serialize)||h.serialize;if(this.a){let A=!h||E(h.doc)||h.doc;var g=!h||E(h.index)||h.index;h=[];let T=0;if(g)for(g=this.a.keys;T<g.length;T++){let q=this.a.index[g[T]];h[T]=[q.i,q.h,Object.keys(q.c)]}A&&(h[T]=this.l)}else h=[this.i,this.h,Object.keys(this.c)];return m&&(h=JSON.stringify(h)),h},t.prototype.import=function(h,m){(!m||E(m.serialize)||m.serialize)&&(h=JSON.parse(h));let g=J();if(this.a){var A=!m||E(m.doc)||m.doc,T=0;if(!m||E(m.index)||m.index){m=this.a.keys;let N=m.length;for(var q=h[0][2];T<q.length;T++)g[q[T]]=1;for(T=0;T<N;T++){q=this.a.index[m[T]];let R=h[T];R&&(q.i=R[0],q.h=R[1],q.c=g)}}A&&(this.l=ne(A)?A:h[T])}else{for(A=h[2],T=0;T<A.length;T++)g[A[T]]=1;this.i=h[0],this.h=h[1],this.c=g}};let gr=function(){let h=a("\\s+"),m=a("[^a-z0-9 ]"),g=[a("[-/]")," ",m,"",h," "];return function(A){return w(f(A.toLowerCase(),g))}}(),ar={icase:function(h){return h.toLowerCase()},simple:function(){let h=a("\\s+"),m=a("[^a-z0-9 ]"),g=a("[-/]"),A=a("[\xE0\xE1\xE2\xE3\xE4\xE5]"),T=a("[\xE8\xE9\xEA\xEB]"),q=a("[\xEC\xED\xEE\xEF]"),N=a("[\xF2\xF3\xF4\xF5\xF6\u0151]"),R=a("[\xF9\xFA\xFB\xFC\u0171]"),U=a("[\xFD\u0177\xFF]"),$=a("\xF1"),X=a("[\xE7c]"),Y=a("\xDF"),W=a(" & "),ae=[A,"a",T,"e",q,"i",N,"o",R,"u",U,"y",$,"n",X,"k",Y,"s",W," and ",g," ",m,"",h," "];return function(oe){return oe=f(oe.toLowerCase(),ae),oe===" "?"":oe}}(),advanced:function(){let h=a("ae"),m=a("ai"),g=a("ay"),A=a("ey"),T=a("oe"),q=a("ue"),N=a("ie"),R=a("sz"),U=a("zs"),$=a("ck"),X=a("cc"),Y=a("sh"),W=a("th"),ae=a("dt"),oe=a("ph"),he=a("pf"),_e=a("ou"),ve=a("uo"),se=[h,"a",m,"ei",g,"ei",A,"ei",T,"o",q,"u",N,"i",R,"s",U,"s",Y,"s",$,"k",X,"k",W,"t",ae,"t",oe,"f",he,"f",_e,"o",ve,"u"];return function(ue,de){return ue&&(ue=this.simple(ue),2<ue.length&&(ue=f(ue,se)),de||1<ue.length&&(ue=w(ue)),ue)}}(),extra:function(){let h=a("p"),m=a("z"),g=a("[cgq]"),A=a("n"),T=a("d"),q=a("[vw]"),N=a("[aeiouy]"),R=[h,"b",m,"s",g,"k",A,"m",T,"t",q,"f",N,""];return function(U){if(!U)return U;if(U=this.advanced(U,!0),1<U.length){U=U.split(" ");for(let $=0;$<U.length;$++){let X=U[$];1<X.length&&(U[$]=X[0]+f(X.substring(1),R))}U=U.join(" "),U=w(U)}return U}}(),balance:gr},fi=function(){function h(m){this.clear(),this.H=m!==!0&&m}return h.prototype.clear=function(){this.cache=J(),this.count=J(),this.index=J(),this.s=[]},h.prototype.set=function(m,g){if(this.H&&E(this.cache[m])){let A=this.s.length;if(A===this.H){A--;let T=this.s[A];delete this.cache[T],delete this.count[T],delete this.index[T]}this.index[m]=A,this.s[A]=m,this.count[m]=-1,this.cache[m]=g,this.get(m)}else this.cache[m]=g},h.prototype.get=function(m){let g=this.cache[m];if(this.H&&g){var A=++this.count[m];let q=this.index,N=q[m];if(0<N){let R=this.s;for(var T=N;this.count[R[--N]]<=A&&N!==-1;);if(N++,N!==T){for(A=T;A>N;A--)T=R[A-1],R[A]=T,q[T]=A;R[N]=m,q[m]=N}}}return g},h}();return t}(function(){let r={},e=typeof Blob!="undefined"&&typeof URL!="undefined"&&URL.createObjectURL;return function(t,n,i,s,o){return i=e?URL.createObjectURL(new Blob(["("+i.toString()+")()"],{type:"text/javascript"})):t+".min.js",t+="-"+n,r[t]||(r[t]=[]),r[t][o]=new Worker(i),r[t][o].onmessage=s,r[t][o]}}()),Gs)});var ST={};gn(ST,{BaseProvider:()=>le,CocodaSDK:()=>Ur,ConceptApiProvider:()=>sr,LabelSearchSuggestionProvider:()=>qr,LobidApiProvider:()=>Yr,LocApiProvider:()=>Mr,LocalMappingsProvider:()=>Cr,MappingsApiProvider:()=>ir,MyCoReProvider:()=>Nr,OccurrencesApiProvider:()=>Tr,ReconciliationApiProvider:()=>Pr,SkohubProvider:()=>Lr,SkosmosApiProvider:()=>Rr,addAllProviders:()=>bT,cdk:()=>pd,errors:()=>Ue,utils:()=>Er});var Ue={};gn(Ue,{BackendError:()=>It,BackendUnavailableError:()=>Pt,CDKError:()=>qe,InvalidOrMissingParameterError:()=>H,InvalidProviderError:()=>et,InvalidRequestError:()=>tr,MethodNotImplementedError:()=>Tt,MissingApiUrlError:()=>ze,NetworkError:()=>qt});var qe=class extends Error{constructor({message:e="",relatedError:t=null,code:n=null}={}){!e&&t&&t.message&&(e=t.message),super(e),this.name=this.constructor.name,this.relatedError=t,this.code=n}},Tt=class extends qe{constructor(i){var s=i,{method:e,message:t=""}=s,n=V(s,["method","message"]);n.message=`Method not implemented: ${e} (${t})`,super(n)}},H=class extends qe{constructor(i){var s=i,{parameter:e,message:t=""}=s,n=V(s,["parameter","message"]);n.message=`Invalid or missing parameter: ${e} (${t})`,super(n)}},tr=class extends qe{},It=class extends qe{},Pt=class extends qe{},qt=class extends qe{},ze=class extends qe{},et=class extends qe{};function Rt(r,e){return function(){return r.apply(e,arguments)}}var{toString:ho}=Object.prototype,{getPrototypeOf:wi}=Object,_i=(r=>e=>{let t=ho.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ur=r=>(r=r.toLowerCase(),e=>_i(e)===r),vn=r=>e=>typeof e===r,{isArray:rt}=Array,Mt=vn("undefined");function sm(r){return r!==null&&!Mt(r)&&r.constructor!==null&&!Mt(r.constructor)&&vr(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}var po=ur("ArrayBuffer");function om(r){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&po(r.buffer),e}var am=vn("string"),vr=vn("function"),mo=vn("number"),bi=r=>r!==null&&typeof r=="object",um=r=>r===!0||r===!1,yn=r=>{if(_i(r)!=="object")return!1;let e=wi(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},fm=ur("Date"),cm=ur("File"),lm=ur("Blob"),hm=ur("FileList"),pm=r=>bi(r)&&vr(r.pipe),dm=r=>{let e="[object FormData]";return r&&(typeof FormData=="function"&&r instanceof FormData||ho.call(r)===e||vr(r.toString)&&r.toString()===e)},mm=ur("URLSearchParams"),gm=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lt(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r=="undefined")return;let n,i;if(typeof r!="object"&&(r=[r]),rt(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{let s=t?Object.getOwnPropertyNames(r):Object.keys(r),o=s.length,u;for(n=0;n<o;n++)u=s[n],e.call(null,r[u],u,r)}}function go(r,e){e=e.toLowerCase();let t=Object.keys(r),n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}var yo=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),vo=r=>!Mt(r)&&r!==yo;function vi(){let{caseless:r}=vo(this)&&this||{},e={},t=(n,i)=>{let s=r&&go(e,i)||i;yn(e[s])&&yn(n)?e[s]=vi(e[s],n):yn(n)?e[s]=vi({},n):rt(n)?e[s]=n.slice():e[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Lt(arguments[n],t);return e}var ym=(r,e,t,{allOwnKeys:n}={})=>(Lt(e,(i,s)=>{t&&vr(i)?r[s]=Rt(i,t):r[s]=i},{allOwnKeys:n}),r),vm=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),wm=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},_m=(r,e,t,n)=>{let i,s,o,u={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)o=i[s],(!n||n(o,r,e))&&!u[o]&&(e[o]=r[o],u[o]=!0);r=t!==!1&&wi(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},bm=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},Sm=r=>{if(!r)return null;if(rt(r))return r;let e=r.length;if(!mo(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},xm=(r=>e=>r&&e instanceof r)(typeof Uint8Array!="undefined"&&wi(Uint8Array)),Am=(r,e)=>{let n=(r&&r[Symbol.iterator]).call(r),i;for(;(i=n.next())&&!i.done;){let s=i.value;e.call(r,s[0],s[1])}},Om=(r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Em=ur("HTMLFormElement"),Cm=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),co=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Tm=ur("RegExp"),wo=(r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};Lt(t,(i,s)=>{e(i,s,r)!==!1&&(n[s]=i)}),Object.defineProperties(r,n)},Im=r=>{wo(r,(e,t)=>{if(vr(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(vr(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Pm=(r,e)=>{let t={},n=i=>{i.forEach(s=>{t[s]=!0})};return rt(r)?n(r):n(String(r).split(e)),t},qm=()=>{},Rm=(r,e)=>(r=+r,Number.isFinite(r)?r:e),yi="abcdefghijklmnopqrstuvwxyz",lo="0123456789",_o={DIGIT:lo,ALPHA:yi,ALPHA_DIGIT:yi+yi.toUpperCase()+lo},Mm=(r=16,e=_o.ALPHA_DIGIT)=>{let t="",{length:n}=e;for(;r--;)t+=e[Math.random()*n|0];return t};function Lm(r){return!!(r&&vr(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}var Nm=r=>{let e=new Array(10),t=(n,i)=>{if(bi(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;let s=rt(n)?[]:{};return Lt(n,(o,u)=>{let a=t(o,i+1);!Mt(a)&&(s[u]=a)}),e[i]=void 0,s}}return n};return t(r,0)},I={isArray:rt,isArrayBuffer:po,isBuffer:sm,isFormData:dm,isArrayBufferView:om,isString:am,isNumber:mo,isBoolean:um,isObject:bi,isPlainObject:yn,isUndefined:Mt,isDate:fm,isFile:cm,isBlob:lm,isRegExp:Tm,isFunction:vr,isStream:pm,isURLSearchParams:mm,isTypedArray:xm,isFileList:hm,forEach:Lt,merge:vi,extend:ym,trim:gm,stripBOM:vm,inherits:wm,toFlatObject:_m,kindOf:_i,kindOfTest:ur,endsWith:bm,toArray:Sm,forEachEntry:Am,matchAll:Om,isHTMLForm:Em,hasOwnProperty:co,hasOwnProp:co,reduceDescriptors:wo,freezeMethods:Im,toObjectSet:Pm,toCamelCase:Cm,noop:qm,toFiniteNumber:Rm,findKey:go,global:yo,isContextDefined:vo,ALPHABET:_o,generateString:Mm,isSpecCompliantForm:Lm,toJSONObject:Nm};function tt(r,e,t,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),i&&(this.response=i)}I.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var bo=tt.prototype,So={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{So[r]={value:r}});Object.defineProperties(tt,So);Object.defineProperty(bo,"isAxiosError",{value:!0});tt.from=(r,e,t,n,i,s)=>{let o=Object.create(bo);return I.toFlatObject(r,o,function(a){return a!==Error.prototype},u=>u!=="isAxiosError"),tt.call(o,r.message,e,t,n,i),o.cause=r,o.name=r.name,s&&Object.assign(o,s),o};var ce=tt;var wn=null;function Si(r){return I.isPlainObject(r)||I.isArray(r)}function Ao(r){return I.endsWith(r,"[]")?r.slice(0,-2):r}function xo(r,e,t){return r?r.concat(e).map(function(i,s){return i=Ao(i),!t&&s?"["+i+"]":i}).join(t?".":""):e}function jm(r){return I.isArray(r)&&!r.some(Si)}var Um=I.toFlatObject(I,{},null,function(e){return/^is[A-Z]/.test(e)});function Dm(r,e,t){if(!I.isObject(r))throw new TypeError("target must be an object");e=e||new(wn||FormData),t=I.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,G){return!I.isUndefined(G[C])});let n=t.metaTokens,i=t.visitor||d,s=t.dots,o=t.indexes,a=(t.Blob||typeof Blob!="undefined"&&Blob)&&I.isSpecCompliantForm(e);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function f(p){if(p===null)return"";if(I.isDate(p))return p.toISOString();if(!a&&I.isBlob(p))throw new ce("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(p)||I.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,C,G){let K=p;if(p&&!G&&typeof p=="object"){if(I.endsWith(C,"{}"))C=n?C:C.slice(0,-2),p=JSON.stringify(p);else if(I.isArray(p)&&jm(p)||(I.isFileList(p)||I.endsWith(C,"[]"))&&(K=I.toArray(p)))return C=Ao(C),K.forEach(function(D,Q){!(I.isUndefined(D)||D===null)&&e.append(o===!0?xo([C],Q,s):o===null?C:C+"[]",f(D))}),!1}return Si(p)?!0:(e.append(xo(G,C,s),f(p)),!1)}let v=[],w=Object.assign(Um,{defaultVisitor:d,convertValue:f,isVisitable:Si});function O(p,C){if(!I.isUndefined(p)){if(v.indexOf(p)!==-1)throw Error("Circular reference detected in "+C.join("."));v.push(p),I.forEach(p,function(K,te){(!(I.isUndefined(K)||K===null)&&i.call(e,K,I.isString(te)?te.trim():te,C,w))===!0&&O(K,C?C.concat(te):[te])}),v.pop()}}if(!I.isObject(r))throw new TypeError("data must be an object");return O(r),e}var wr=Dm;function Oo(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Eo(r,e){this._pairs=[],r&&wr(r,this,e)}var Co=Eo.prototype;Co.append=function(e,t){this._pairs.push([e,t])};Co.toString=function(e){let t=e?function(n){return e.call(this,n,Oo)}:Oo;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};var _n=Eo;function Fm(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nt(r,e,t){if(!e)return r;let n=t&&t.encode||Fm,i=t&&t.serialize,s;if(i?s=i(e,t):s=I.isURLSearchParams(e)?e.toString():new _n(e,t).toString(n),s){let o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}var xi=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,function(n){n!==null&&e(n)})}},Ai=xi;var bn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var To=typeof URLSearchParams!="undefined"?URLSearchParams:_n;var Io=typeof FormData!="undefined"?FormData:null;var Po=typeof Blob!="undefined"?Blob:null;var Bm=(()=>{let r;return typeof navigator!="undefined"&&((r=navigator.product)==="ReactNative"||r==="NativeScript"||r==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),km=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),De={isBrowser:!0,classes:{URLSearchParams:To,FormData:Io,Blob:Po},isStandardBrowserEnv:Bm,isStandardBrowserWebWorkerEnv:km,protocols:["http","https","file","blob","url","data"]};function Oi(r,e){return wr(r,new De.classes.URLSearchParams,Object.assign({visitor:function(t,n,i,s){return De.isNode&&I.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function $m(r){return I.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function zm(r){let e={},t=Object.keys(r),n,i=t.length,s;for(n=0;n<i;n++)s=t[n],e[s]=r[s];return e}function Hm(r){function e(t,n,i,s){let o=t[s++],u=Number.isFinite(+o),a=s>=t.length;return o=!o&&I.isArray(i)?i.length:o,a?(I.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!I.isObject(i[o]))&&(i[o]=[]),e(t,n,i[o],s)&&I.isArray(i[o])&&(i[o]=zm(i[o])),!u)}if(I.isFormData(r)&&I.isFunction(r.entries)){let t={};return I.forEachEntry(r,(n,i)=>{e($m(n),i,t,0)}),t}return null}var Sn=Hm;var Wm={"Content-Type":void 0};function Gm(r,e,t){if(I.isString(r))try{return(e||JSON.parse)(r),I.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}var xn={transitional:bn,adapter:["xhr","http"],transformRequest:[function(e,t){let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=I.isObject(e);if(s&&I.isHTMLForm(e)&&(e=new FormData(e)),I.isFormData(e))return i&&i?JSON.stringify(Sn(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Oi(e,this.formSerializer).toString();if((u=I.isFileList(e))||n.indexOf("multipart/form-data")>-1){let a=this.env&&this.env.FormData;return wr(u?{"files[]":e}:e,a&&new a,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),Gm(e)):e}],transformResponse:[function(e){let t=this.transitional||xn.transitional,n=t&&t.forcedJSONParsing,i=this.responseType==="json";if(e&&I.isString(e)&&(n&&!this.responseType||i)){let o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(u){if(o)throw u.name==="SyntaxError"?ce.from(u,ce.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],function(e){xn.headers[e]={}});I.forEach(["post","put","patch"],function(e){xn.headers[e]=I.merge(Wm)});var nt=xn;var Km=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qo=r=>{let e={},t,n,i;return r&&r.split(`
12
+ `).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!t||e[t]&&Km[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};var Ro=Symbol("internals");function jt(r){return r&&String(r).trim().toLowerCase()}function An(r){return r===!1||r==null?r:I.isArray(r)?r.map(An):String(r)}function Jm(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}function Vm(r){return/^[-_a-zA-Z]+$/.test(r.trim())}function Ei(r,e,t,n,i){if(I.isFunction(n))return n.call(this,e,t);if(i&&(e=t),!!I.isString(e)){if(I.isString(n))return e.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(e)}}function Ym(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Xm(r,e){let t=I.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}var it=class{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function s(u,a,f){let d=jt(a);if(!d)throw new Error("header name must be a non-empty string");let v=I.findKey(i,d);(!v||i[v]===void 0||f===!0||f===void 0&&i[v]!==!1)&&(i[v||a]=An(u))}let o=(u,a)=>I.forEach(u,(f,d)=>s(f,d,a));return I.isPlainObject(e)||e instanceof this.constructor?o(e,t):I.isString(e)&&(e=e.trim())&&!Vm(e)?o(qo(e),t):e!=null&&s(t,e,n),this}get(e,t){if(e=jt(e),e){let n=I.findKey(this,e);if(n){let i=this[n];if(!t)return i;if(t===!0)return Jm(i);if(I.isFunction(t))return t.call(this,i,n);if(I.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=jt(e),e){let n=I.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ei(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function s(o){if(o=jt(o),o){let u=I.findKey(n,o);u&&(!t||Ei(n,n[u],u,t))&&(delete n[u],i=!0)}}return I.isArray(e)?e.forEach(s):s(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let s=t[n];(!e||Ei(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){let t=this,n={};return I.forEach(this,(i,s)=>{let o=I.findKey(n,s);if(o){t[o]=An(i),delete t[s];return}let u=e?Ym(s):String(s).trim();u!==s&&delete t[s],t[u]=An(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return I.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&I.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
13
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[Ro]=this[Ro]={accessors:{}}).accessors,i=this.prototype;function s(o){let u=jt(o);n[u]||(Xm(i,o),n[u]=!0)}return I.isArray(e)?e.forEach(s):s(e),this}};it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.freezeMethods(it.prototype);I.freezeMethods(it);var He=it;function Ut(r,e){let t=this||nt,n=e||t,i=He.from(n.headers),s=n.data;return I.forEach(r,function(u){s=u.call(t,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Dt(r){return!!(r&&r.__CANCEL__)}function Mo(r,e,t){ce.call(this,r==null?"canceled":r,ce.ERR_CANCELED,e,t),this.name="CanceledError"}I.inherits(Mo,ce,{__CANCEL__:!0});var _r=Mo;function Ci(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new ce("Request failed with status code "+t.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}var Lo=De.isStandardBrowserEnv?function(){return{write:function(t,n,i,s,o,u){let a=[];a.push(t+"="+encodeURIComponent(n)),I.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),I.isString(s)&&a.push("path="+s),I.isString(o)&&a.push("domain="+o),u===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){let n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Ti(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Ii(r,e){return e?r.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):r}function Ft(r,e){return r&&!Ti(e)?Ii(r,e):e}var No=De.isStandardBrowserEnv?function(){let e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),n;function i(s){let o=s;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(o){let u=I.isString(o)?i(o):o;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}();function Pi(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Zm(r,e){r=r||10;let t=new Array(r),n=new Array(r),i=0,s=0,o;return e=e!==void 0?e:1e3,function(a){let f=Date.now(),d=n[s];o||(o=f),t[i]=a,n[i]=f;let v=s,w=0;for(;v!==i;)w+=t[v++],v=v%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),f-o<e)return;let O=d&&f-d;return O?Math.round(w*1e3/O):void 0}}var jo=Zm;function Uo(r,e){let t=0,n=jo(50,250);return i=>{let s=i.loaded,o=i.lengthComputable?i.total:void 0,u=s-t,a=n(u),f=s<=o;t=s;let d={loaded:s,total:o,progress:o?s/o:void 0,bytes:u,rate:a||void 0,estimated:a&&o&&f?(o-s)/a:void 0,event:i};d[e?"download":"upload"]=!0,r(d)}}var Qm=typeof XMLHttpRequest!="undefined",Do=Qm&&function(r){return new Promise(function(t,n){let i=r.data,s=He.from(r.headers).normalize(),o=r.responseType,u;function a(){r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}I.isFormData(i)&&(De.isStandardBrowserEnv||De.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let f=new XMLHttpRequest;if(r.auth){let O=r.auth.username||"",p=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";s.set("Authorization","Basic "+btoa(O+":"+p))}let d=Ft(r.baseURL,r.url);f.open(r.method.toUpperCase(),Nt(d,r.params,r.paramsSerializer),!0),f.timeout=r.timeout;function v(){if(!f)return;let O=He.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),C={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:O,config:r,request:f};Ci(function(K){t(K),a()},function(K){n(K),a()},C),f=null}if("onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(v)},f.onabort=function(){f&&(n(new ce("Request aborted",ce.ECONNABORTED,r,f)),f=null)},f.onerror=function(){n(new ce("Network Error",ce.ERR_NETWORK,r,f)),f=null},f.ontimeout=function(){let p=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",C=r.transitional||bn;r.timeoutErrorMessage&&(p=r.timeoutErrorMessage),n(new ce(p,C.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,r,f)),f=null},De.isStandardBrowserEnv){let O=(r.withCredentials||No(d))&&r.xsrfCookieName&&Lo.read(r.xsrfCookieName);O&&s.set(r.xsrfHeaderName,O)}i===void 0&&s.setContentType(null),"setRequestHeader"in f&&I.forEach(s.toJSON(),function(p,C){f.setRequestHeader(C,p)}),I.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),o&&o!=="json"&&(f.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&f.addEventListener("progress",Uo(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Uo(r.onUploadProgress)),(r.cancelToken||r.signal)&&(u=O=>{f&&(n(!O||O.type?new _r(null,r,f):O),f.abort(),f=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));let w=Pi(d);if(w&&De.protocols.indexOf(w)===-1){n(new ce("Unsupported protocol "+w+":",ce.ERR_BAD_REQUEST,r));return}f.send(i||null)})};var On={http:wn,xhr:Do};I.forEach(On,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch(t){}Object.defineProperty(r,"adapterName",{value:e})}});var Fo={getAdapter:r=>{r=I.isArray(r)?r:[r];let{length:e}=r,t,n;for(let i=0;i<e&&(t=r[i],!(n=I.isString(t)?On[t.toLowerCase()]:t));i++);if(!n)throw n===!1?new ce(`Adapter ${t} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(I.hasOwnProp(On,t)?`Adapter '${t}' is not available in the build`:`Unknown adapter '${t}'`);if(!I.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:On};function qi(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new _r(null,r)}function En(r){return qi(r),r.headers=He.from(r.headers),r.data=Ut.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Fo.getAdapter(r.adapter||nt.adapter)(r).then(function(n){return qi(r),n.data=Ut.call(r,r.transformResponse,n),n.headers=He.from(n.headers),n},function(n){return Dt(n)||(qi(r),n&&n.response&&(n.response.data=Ut.call(r,r.transformResponse,n.response),n.response.headers=He.from(n.response.headers))),Promise.reject(n)})}var Bo=r=>r instanceof He?r.toJSON():r;function fr(r,e){e=e||{};let t={};function n(f,d,v){return I.isPlainObject(f)&&I.isPlainObject(d)?I.merge.call({caseless:v},f,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function i(f,d,v){if(I.isUndefined(d)){if(!I.isUndefined(f))return n(void 0,f,v)}else return n(f,d,v)}function s(f,d){if(!I.isUndefined(d))return n(void 0,d)}function o(f,d){if(I.isUndefined(d)){if(!I.isUndefined(f))return n(void 0,f)}else return n(void 0,d)}function u(f,d,v){if(v in e)return n(f,d);if(v in r)return n(void 0,f)}let a={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(f,d)=>i(Bo(f),Bo(d),!0)};return I.forEach(Object.keys(r).concat(Object.keys(e)),function(d){let v=a[d]||i,w=v(r[d],e[d],d);I.isUndefined(w)&&v!==u||(t[d]=w)}),t}var Cn="1.3.4";var Ri={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{Ri[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});var ko={};Ri.transitional=function(e,t,n){function i(s,o){return"[Axios v"+Cn+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,u)=>{if(e===!1)throw new ce(i(o," has been removed"+(t?" in "+t:"")),ce.ERR_DEPRECATED);return t&&!ko[o]&&(ko[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,o,u):!0}};function eg(r,e,t){if(typeof r!="object")throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE);let n=Object.keys(r),i=n.length;for(;i-- >0;){let s=n[i],o=e[s];if(o){let u=r[s],a=u===void 0||o(u,s,r);if(a!==!0)throw new ce("option "+s+" must be "+a,ce.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ce("Unknown option "+s,ce.ERR_BAD_OPTION)}}var Tn={assertOptions:eg,validators:Ri};var br=Tn.validators,st=class{constructor(e){this.defaults=e,this.interceptors={request:new Ai,response:new Ai}}request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=fr(this.defaults,t);let{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&Tn.assertOptions(n,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean)},!1),i!==void 0&&Tn.assertOptions(i,{encode:br.function,serialize:br.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o;o=s&&I.merge(s.common,s[t.method]),o&&I.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),t.headers=He.concat(o,s);let u=[],a=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(t)===!1||(a=a&&C.synchronous,u.unshift(C.fulfilled,C.rejected))});let f=[];this.interceptors.response.forEach(function(C){f.push(C.fulfilled,C.rejected)});let d,v=0,w;if(!a){let p=[En.bind(this),void 0];for(p.unshift.apply(p,u),p.push.apply(p,f),w=p.length,d=Promise.resolve(t);v<w;)d=d.then(p[v++],p[v++]);return d}w=u.length;let O=t;for(v=0;v<w;){let p=u[v++],C=u[v++];try{O=p(O)}catch(G){C.call(this,G);break}}try{d=En.call(this,O)}catch(p){return Promise.reject(p)}for(v=0,w=f.length;v<w;)d=d.then(f[v++],f[v++]);return d}getUri(e){e=fr(this.defaults,e);let t=Ft(e.baseURL,e.url);return Nt(t,e.params,e.paramsSerializer)}};I.forEach(["delete","get","head","options"],function(e){st.prototype[e]=function(t,n){return this.request(fr(n||{},{method:e,url:t,data:(n||{}).data}))}});I.forEach(["post","put","patch"],function(e){function t(n){return function(s,o,u){return this.request(fr(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}st.prototype[e]=t(),st.prototype[e+"Form"]=t(!0)});var Bt=st;var kt=class{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s,o,u){n.reason||(n.reason=new _r(s,o,u),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new kt(function(i){e=i}),cancel:e}}},$o=kt;function Mi(r){return function(t){return r.apply(null,t)}}function Li(r){return I.isObject(r)&&r.isAxiosError===!0}var Ni={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ni).forEach(([r,e])=>{Ni[e]=r});var zo=Ni;function Ho(r){let e=new Bt(r),t=Rt(Bt.prototype.request,e);return I.extend(t,Bt.prototype,e,{allOwnKeys:!0}),I.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return Ho(fr(r,i))},t}var Ie=Ho(nt);Ie.Axios=Bt;Ie.CanceledError=_r;Ie.CancelToken=$o;Ie.isCancel=Dt;Ie.VERSION=Cn;Ie.toFormData=wr;Ie.AxiosError=ce;Ie.Cancel=Ie.CanceledError;Ie.all=function(e){return Promise.all(e)};Ie.spread=Mi;Ie.isAxiosError=Li;Ie.mergeConfig=fr;Ie.AxiosHeaders=He;Ie.formToJSON=r=>Sn(I.isHTMLForm(r)?new FormData(r):r);Ie.HttpStatusCode=zo;Ie.default=Ie;var Fe=Ie;var{Axios:eP,AxiosError:rP,CanceledError:tP,isCancel:nP,CancelToken:iP,VERSION:sP,all:oP,Cancel:aP,isAxiosError:uP,spread:fP,toFormData:cP,AxiosHeaders:lP,HttpStatusCode:hP,formToJSON:pP,mergeConfig:dP}=Fe;var re=pe(Pu(),1),Ae=pe(Bu(),1),Ar=pe(hf(),1),on=pe(Uf(),1),Ss=pe(Xf(),1),xs=pe(Ec(),1),Re=pe(We(),1),an=pe(er(),1),xe=pe(Tc(),1),As=pe(zc(),1),nr=pe(Nl(),1),AC=pe(bh(),1),Os=pe(ws(),1),cr=pe(Ap(),1),Es=pe(Ep(),1);var jr=pe(Ge(),1);var hn={};gn(hn,{BaseProvider:()=>le,ConceptApiProvider:()=>sr,LabelSearchSuggestionProvider:()=>qr,LobidApiProvider:()=>Yr,LocApiProvider:()=>Mr,LocalMappingsProvider:()=>Cr,MappingsApiProvider:()=>ir,MyCoReProvider:()=>Nr,OccurrencesApiProvider:()=>Tr,ReconciliationApiProvider:()=>Pr,SkohubProvider:()=>Lr,SkosmosApiProvider:()=>Rr});var bt=pe(Ge(),1);var Er={};gn(Er,{concatUrl:()=>lr,listOfCapabilities:()=>Oe,requestMethods:()=>Fs,withCustomProps:()=>Gr});var Fs=[{method:"getRegistries",fallback:[],type:"Registries"},{method:"getSchemes",fallback:[],type:"Schemes"},{method:"vocSearch",fallback:[],type:"Schemes"},{method:"getTypes",fallback:[],type:"Types"},{method:"suggest",fallback:["",[],[],[]]},{method:"vocSuggest",fallback:["",[],[],[]]},{method:"getConcordances",fallback:[],type:"Concordances"},{method:"getOccurrences",fallback:[],type:"Occurrences"},{method:"getTop",fallback:[],type:"Concepts"},{method:"getConcepts",fallback:[],type:"Concepts"},{method:"getNarrower",fallback:[],type:"Concepts"},{method:"getAncestors",fallback:[],type:"Concepts"},{method:"search",fallback:[],type:"Concepts"},{method:"getMapping",fallback:null,type:"Mapping"},{method:"getMappings",fallback:[],type:"Mappings"},{method:"postMapping",fallback:null,type:"Mapping"},{method:"postMappings",fallback:[],type:"Mapping"},{method:"putMapping",fallback:null,type:"Mapping"},{method:"patchMapping",fallback:null,type:"Mapping"},{method:"deleteMapping",fallback:!1},{method:"deleteMappings",fallback:[]},{method:"getAnnotations",fallback:[],type:"Annotations"},{method:"postAnnotation",fallback:null,type:"Annotation"},{method:"putAnnotation",fallback:null,type:"Annotation"},{method:"patchAnnotation",fallback:null,type:"Annotation"},{method:"deleteAnnotation",fallback:!1}];function lr(...r){let[e,...t]=r;for(let n of t)e.endsWith("/")||(e+="/"),n.startsWith("/")&&(n=n.slice(1)),e+=n;return e}function Gr(r,e){return r._totalCount=e._totalCount,r._url=e._url,r}var Oe=["schemes","top","data","concepts","narrower","ancestors","types","suggest","search","auth","mappings","concordances","annotations","occurrences"];var le=class{constructor(e={}){this._jskos=e,this.axios=Fe.create({timeout:2e4}),this._path=typeof window!="undefined"&&window.location.pathname,this.has={},this._defaultLanguages="en,de,fr,es,nl,it,fi,pl,ru,cs,jp".split(","),this.languages=[],this._auth={key:null,bearerToken:null},this._repeating=[],this._api={status:e.status,schemes:Array.isArray(e.schemes)?void 0:e.schemes,top:e.top,data:e.data,concepts:e.concepts,narrower:e.narrower,ancestors:e.ancestors,types:e.types,suggest:e.suggest,search:e.search,"voc-suggest":e["voc-suggest"],"voc-search":e["voc-search"],mappings:e.mappings,concordances:e.concordances,annotations:e.annotations,occurrences:e.occurrences,reconcile:e.reconcile,api:e.api},this._config={},this.setRetryConfig(),this.axios.interceptors.request.use(n=>{if(!n._skipAdditionalParameters){let i=Ar.default([].concat(re.default(n,"params.language","").split(","),this.languages,this._defaultLanguages).filter(s=>s!="")).join(",");Ae.default(n,"params.language",i),this.has.auth&&this._auth.bearerToken&&!re.default(n,"headers.Authorization")&&Ae.default(n,"headers.Authorization",`Bearer ${this._auth.bearerToken}`)}if(n.url.startsWith("http:")&&typeof window!="undefined"&&window.location.protocol=="https:")throw new Fe.Cancel("Can't call http API from https.");return n}),this.axios.interceptors.response.use(({data:n,headers:i={},config:s={}})=>{n=bt.default.normalize(n);let o=s.url;if(o.endsWith("?")||(o+="?"),xs.default(s.params||{},(u,a)=>{o+=`${a}=${encodeURIComponent(u)}&`}),Re.default(n)||an.default(n)){let u=parseInt(i["x-total-count"]);isNaN(u)||(n._totalCount=u),n._url=o}return n},n=>{let i=re.default(n,"config._retryCount",0),s=re.default(n,"config.method"),o=re.default(n,"response.status");return this._retryConfig.methods.includes(s)&&this._retryConfig.statusCodes.includes(o)&&i<this._retryConfig.count?(n.config._retryCount=i+1,n.config.data&&(n.config.data=JSON.parse(n.config.data)),new Promise((u,a)=>{setTimeout(()=>{this.axios(n.config).then(u).catch(a)},(()=>{let f=this._retryConfig.delay;return typeof f=="function"?f(i):f})())})):Promise.reject(n)});let t=[];for(let{method:n,type:i}of Fs){let s=this[n]&&this[n].bind(this);if(!s){this[n]=()=>{throw new Tt({method:n})};continue}this[n]=(o={})=>{if(o._raw)return delete o._raw,s(o);let u=t.find(v=>v.method==n&&nr.default(v.options,o));if(u)return u.promise;let a;o.cancelToken||(a=this.getCancelTokenSource(),o.cancelToken=a.token);let f=this.init().then(()=>s(o)).then(v=>(Re.default(v)&&v._totalCount===void 0?v._totalCount=v.length:an.default(v)&&v._totalCount===void 0&&(v._totalCount=1),v&&i&&this[`adjust${i}`]&&(v=this[`adjust${i}`](v)),v)).catch(v=>{throw v instanceof qe?v:v.response?v.response.status.toString().startsWith(4)?new tr({relatedError:v,code:v.response.status}):new It({relatedError:v,code:v.response.status}):v.request?typeof navigator!="undefined"&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection)?new Pt({relatedError:v}):new qt({relatedError:v}):new qe({relatedError:v})});a&&(f.cancel=(...v)=>a.cancel(...v));let d={method:n,options:cr.default(o,["cancelToken"]),promise:f};return t.push(d),f.catch(()=>{}).then(()=>t.splice(t.indexOf(d),1)),f}}}get uri(){return this._jskos.uri}get notation(){return this._jskos.notation}get prefLabel(){return this._jskos.prefLabel}get definition(){return this._jskos.definition}get schemes(){return this._jskos.schemes}get excludedSchemes(){return this._jskos.excludedSchemes}get stored(){return this._jskos.stored!==void 0?this._jskos.stored:this.constructor.stored}init(){return L(this,null,function*(){return this._init?this._init:(this._init=(()=>L(this,null,function*(){this._prepare();let e;if(xe.default(this._api.status))try{e=yield this.axios({method:"get",url:this._api.status})}catch(t){re.default(t,"response.status")===404&&(this._api.status=null)}else e=this._api.status;if(an.default(e)&&!As.default(e)){this._config=e.config||{};for(let t of Object.keys(this._api))this._api[t]===void 0&&(this._api[t]=e[t]||null)}this._setup()}))(),this._init)})}_prepare(){}_setup(){}getCancelTokenSource(){return Fe.CancelToken.source()}setAuth({key:e=this._auth.key,bearerToken:t=this._auth.bearerToken}){this._auth.key=e,this._auth.bearerToken=t}setRetryConfig(e={}){this._retryConfig=Object.assign({methods:["get","head","options"],statusCodes:[401,403],count:3,delay:t=>300*t},e)}isAuthorizedFor({type:e,action:t,user:n,crossUser:i}){if(t=="read"&&this.has[e]===!0)return!0;if(!this.has[e])return!1;let s=re.default(this._config,`${e}.${t}`);if(!s)return!!this.has[e][t];if(s.auth&&(!n||!this._auth.key)||s.auth&&this._auth.key!=re.default(this._config,"auth.key"))return!1;let o=[n==null?void 0:n.uri].concat(Object.values((n==null?void 0:n.identities)||{}).map(u=>u.uri)).filter(Boolean);if(s.auth&&s.identities&&on.default(o,s.identities).length==0)return!1;if(s.auth&&s.identityProviders){let u=Object.keys((n==null?void 0:n.identities)||{});if(on.default(u,s.identityProviders).length==0)return!1}return i?s.crossUser===!0||on.default(s.crossUser||[],o).length>0:!!this.has[e][t]}supportsScheme(e){if(!e)return!1;let t=Re.default(this.schemes)?this.schemes:null;return t==null&&!bt.default.isContainedIn(e,this.excludedSchemes||[])?!0:bt.default.isContainedIn(e,t)}adjustConcept(e){if(!e||e.__SAVED__)return e;e._getNarrower=t=>this.getNarrower(k(M({},t),{concept:e})),e._getAncestors=t=>this.getAncestors(k(M({},t),{concept:e})),e._getDetails=t=>L(this,null,function*(){return(yield this.getConcepts(k(M({},t),{concepts:[e]})))[0]});for(let t of["broader","narrower","ancestors"])Array.isArray(e[t])&&e[t].length&&!e[t].includes(null)&&(e[t]=this.adjustConcepts(e[t]));return e._registry=this,e}adjustConcepts(e){return Gr(e.map(t=>this.adjustConcept(t)),e)}adjustRegistries(e){return e}adjustScheme(e){if(!e||e.__SAVED__)return e;let t=e._registry;return e._registry=this.cdk&&this.cdk.registryForScheme(e),!e._registry||t===e._registry||e._registry._api.api===this._api.api?e._registry=t||this:["concepts","topConcepts"].forEach(n=>{Array.isArray(e[n])&&(e[n].length===0||e[n][0]===null)&&delete e[n]}),e._registry&&(e._getTop=n=>e._registry.getTop(k(M({},n),{scheme:e})),e._getTypes=n=>e._registry.getTypes(k(M({},n),{scheme:e})),e._suggest=s=>{var o=s,{search:n}=o,i=V(o,["search"]);return e._registry.suggest(k(M({},i),{search:n,scheme:e}))}),e}adjustSchemes(e){return Gr(e.map(t=>this.adjustScheme(t)),e)}adjustConcordances(e){for(let t of e)t._registry=this;return e}adjustMapping(e){for(let t of["from","to"]){let n=`${t}Scheme`;e[n]||(e[n]=re.default(bt.default.conceptsOfMapping(e,t),"[0].inScheme[0]",null))}if(e._registry=this,!e.identifier){let t=re.default(bt.default.addMappingIdentifiers(e),"identifier");t&&(e.identifier=t)}return e}adjustMappings(e){return Gr(e.map(t=>this.adjustMapping(t)),e)}postMappings(){return L(this,arguments,function*(n={}){var i=n,{mappings:e}=i,t=V(i,["mappings"]);if(!e||!e.length)throw new H({parameter:"mappings"});return this._callHelperForArrayWrappers({method:"postMapping",items:e,itemProperty:"mapping",config:t})})}deleteMappings(){return L(this,arguments,function*(n={}){var i=n,{mappings:e}=i,t=V(i,["mappings"]);if(!e||!e.length)throw new H({parameter:"mappings"});return this._callHelperForArrayWrappers({method:"deleteMapping",items:e,itemProperty:"mapping",config:t})})}_callHelperForArrayWrappers(s){return L(this,arguments,function*({method:e,items:t,itemProperty:n,config:i}){let o=[],u=yield Promise.all(t.map(a=>L(this,null,function*(){try{return yield this[e](k(M({[n]:a},i),{_raw:!0}))}catch(f){return o[t.indexOf(a)]=f,null}})));return u._errors=o,u})}};le.providerName="Base";var je=pe(Ge(),1);var hr=pe(id(),1);var ni,mT=new Uint8Array(16);function ks(){if(!ni&&(ni=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ni))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ni(mT)}var Ne=[];for(let r=0;r<256;++r)Ne.push((r+256).toString(16).slice(1));function sd(r,e=0){return(Ne[r[e+0]]+Ne[r[e+1]]+Ne[r[e+2]]+Ne[r[e+3]]+"-"+Ne[r[e+4]]+Ne[r[e+5]]+"-"+Ne[r[e+6]]+Ne[r[e+7]]+"-"+Ne[r[e+8]]+Ne[r[e+9]]+"-"+Ne[r[e+10]]+Ne[r[e+11]]+Ne[r[e+12]]+Ne[r[e+13]]+Ne[r[e+14]]+Ne[r[e+15]]).toLowerCase()}var gT=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$s={randomUUID:gT};function yT(r,e,t){if($s.randomUUID&&!e&&!r)return $s.randomUUID();r=r||{};let n=r.random||(r.rng||ks)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=n[i];return e}return sd(n)}var ii=yT;var si="urn:uuid:",Cr=class extends le{_prepare(){this.has.mappings={read:!0,create:!0,update:!0,delete:!0},Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this.queue=[],this.localStorageKey="cocoda-mappings--"+this._path;let e="mappings",t=()=>hr.default.getItem(this.localStorageKey).then(n=>{n=n||[];let i=0;for(let s of n.filter(o=>!o.uri||!o.uri.startsWith(si)))s.uri&&(s.identifier||(s.identifier=[]),s.identifier.push(s.uri)),s.uri=`${si}${ii()}`,i+=1;return i&&console.warn(`URIs added to ${i} local mappings.`),hr.default.setItem(this.localStorageKey,n)});hr.default.getItem(e).then(n=>{n&&console.warn(`Warning: There is old data in local storage (or IndexedDB, depending on the ) with the key "${e}". This data will not be used anymore. A manual export is necessary to get this data back.`)}),this.queue.push(t().catch(n=>{console.warn("Error when adding URIs to local mappings:",n)}))}isAuthorizedFor({type:e,action:t}){return e=="mappings"&&t!="anonymous"}_getMappingsQueue(){let e=Os.default(this.queue)||Promise.resolve();return new Promise(t=>{function n(){var o,u,a=new Promise((f,d)=>{o=f,u=d});return a.resolve=o,a.reject=u,a}let i=n(),s=()=>{i.resolve()};this.queue.push(i),e.then(()=>hr.default.getItem(this.localStorageKey)).then(o=>{t({mappings:o,done:s})})})}getMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(t._raw=!0,!e||!e.uri)throw new H({parameter:"mapping"});return(yield this.getMappings(k(M({},t),{uri:e.uri})))[0]})}getMappings(){return L(this,arguments,function*({from:e,fromScheme:t,to:n,toScheme:i,creator:s,type:o,partOf:u,offset:a,limit:f,direction:d,mode:v,identifier:w,uri:O}={}){let p={};return e&&(p.from=xe.default(e)?e:e.uri),t&&(p.fromScheme=xe.default(t)?{uri:t}:t),n&&(p.to=xe.default(n)?n:n.uri),i&&(p.toScheme=xe.default(i)?{uri:i}:i),s&&(p.creator=xe.default(s)?s:je.default.prefLabel(s)),o&&(p.type=xe.default(o)?o:o.uri),u&&(p.partOf=xe.default(u)?u:u.uri),a&&(p.offset=a),f&&(p.limit=f),d&&(p.direction=d),v&&(p.mode=v),w&&(p.identifier=w),O&&(p.uri=O),this._getMappingsQueue().catch(C=>{throw new qe({message:"Could not get mappings from local storage",relatedError:C})}).then(({mappings:C,done:G})=>{G();let K=(D,Q)=>D.uri==Q||Q&&D.notation&&D.notation[0].toLowerCase()==Q.toLowerCase();if((p.from||p.to)&&(C=C.filter(D=>{let Q=je.default.conceptsOfMapping(D,"from").find(J=>K(J,p.from))!=null,ne=je.default.conceptsOfMapping(D,"to").find(J=>K(J,p.from))!=null,E=je.default.conceptsOfMapping(D,"from").find(J=>K(J,p.to))!=null,ee=je.default.conceptsOfMapping(D,"to").find(J=>K(J,p.to))!=null;return p.direction=="backward"?p.mode=="or"?p.from&&ne||p.to&&E:(!p.from||ne)&&(!p.to||E):p.direction=="both"?p.mode=="or"?p.from&&(Q||ne)||p.to&&(E||ee):(!p.from||Q)&&(!p.to||ee)||(!p.from||ne)&&(!p.to||E):p.mode=="or"?p.from&&Q||p.to&&ee:(!p.from||Q)&&(!p.to||ee)})),(p.fromScheme||p.toScheme)&&(C=C.filter(D=>{let Q=je.default.compare(D.fromScheme,p.fromScheme),ne=je.default.compare(D.toScheme,p.fromScheme),E=je.default.compare(D.fromScheme,p.toScheme),ee=je.default.compare(D.toScheme,p.toScheme);return p.direction=="backward"?p.mode=="or"?p.fromScheme&&ne||p.toScheme&&E:(!p.fromScheme||ne)&&(!p.toScheme||E):p.direction=="both"?p.mode=="or"?p.fromScheme&&(Q||ne)||p.toScheme&&(E||ee):(!p.fromScheme||Q)&&(!p.toScheme||ee)||(!p.fromScheme||ne)&&(!p.toScheme||E):p.mode=="or"?p.fromScheme&&Q||p.toScheme&&ee:(!p.fromScheme||Q)&&(!p.toScheme||ee)})),p.creator){let D=p.creator.split("|");C=C.filter(Q=>(Q.creator&&Q.creator.find(ne=>D.includes(je.default.prefLabel(ne))||D.includes(ne.uri)))!=null)}p.type&&(C=C.filter(D=>(D.type||[je.default.defaultMappingType.uri]).includes(p.type))),p.partOf&&(C=C.filter(D=>D.partOf!=null&&D.partOf.find(Q=>je.default.compare(Q,{uri:p.partOf}))!=null)),p.identifier&&(C=C.filter(D=>p.identifier.split("|").map(Q=>(D.identifier||[]).includes(Q)||D.uri==Q).reduce((Q,ne)=>Q||ne))),p.uri&&(C=C.filter(D=>D.uri==p.uri));let te=C.length;return C=C.sort((D,Q)=>{let ne=D.modified||D.created,E=Q.modified||Q.created;return E==null?-1:ne==null?1:ne>E?-1:1}),C=C.slice(p.offset||0),C=C.slice(0,p.limit),C._totalCount=te,C})})}postMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue();if((!e.uri||!e.uri.startsWith(si))&&(e.uri&&(e.identifier||(e.identifier=[]),e.identifier.push(e.uri)),e.uri=`${si}${ii()}`),n.find(s=>s.uri==e.uri))throw i(),new H({parameter:"mapping",message:"Duplicate URI"});e.created||(e.created=new Date().toISOString()),e.modified||(e.modified=e.created),n.push(e),n=n.map(s=>je.default.minifyMapping(s));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(s){throw i(),s}})}putMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue(),s=n.findIndex(o=>o.uri==e.uri);if(s==-1)throw i(),new H({parameter:"mapping",message:"Mapping not found"});e.created||(e.created=n[s].created),e.modified=new Date().toISOString(),n[s]=e,n=n.map(o=>je.default.minifyMapping(o));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(o){throw i(),o}})}patchMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue(),s=n.findIndex(o=>o.uri==e.uri);if(s==-1)throw i(),new H({parameter:"mapping",message:"Mapping not found"});e.created||(e.created=n[s].created),e.modified=new Date().toISOString(),n[s]=Object.assign(n[s],e),n=n.map(o=>je.default.minifyMapping(o));try{return yield hr.default.setItem(this.localStorageKey,n),i(),e}catch(o){throw i(),o}})}deleteMapping(t){return L(this,arguments,function*({mapping:e}){if(!e)throw new H({parameter:"mapping"});let{mappings:n,done:i}=yield this._getMappingsQueue();try{return n=n.filter(s=>s.uri!=e.uri),n=n.map(s=>je.default.minifyMapping(s)),yield hr.default.setItem(this.localStorageKey,n),i(),!0}catch(s){throw i(),s}})}};Cr.providerName="LocalMappings";Cr.stored=!0;var St=pe(Ge(),1);var ir=class extends le{_prepare(){this._api.api&&this._api.status===void 0&&(this._api.status=lr(this._api.api,"/status")),this.has.mappings=!0,this.has.concordances=!0,this.has.annotations=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){if(this._api.api){let e={mappings:"/mappings",concordances:"/concordances",annotations:"/annotations"};for(let t of Object.keys(e))this._api[t]===void 0&&(this._api[t]=lr(this._api.api,e[t]))}this.has.mappings=this._api.mappings?{}:!1,this.has.mappings&&(this.has.mappings.read=!!re.default(this._config,"mappings.read",!0),this.has.mappings.create=!!re.default(this._config,"mappings.create"),this.has.mappings.update=!!re.default(this._config,"mappings.update"),this.has.mappings.delete=!!re.default(this._config,"mappings.delete"),this.has.mappings.anonymous=!!re.default(this._config,"mappings.anonymous")),this.has.concordances=this._api.concordances?{}:!1,this.has.concordances&&(this.has.concordances.read=!!re.default(this._config,"concordances.read"),this.has.concordances.create=!!re.default(this._config,"concordances.create"),this.has.concordances.update=!!re.default(this._config,"concordances.update"),this.has.concordances.delete=!!re.default(this._config,"concordances.delete")),this.has.annotations=this._api.annotations?{}:!1,this.has.annotations&&(this.has.annotations.read=!!re.default(this._config,"annotations.read"),this.has.annotations.create=!!re.default(this._config,"annotations.create"),this.has.annotations.update=!!re.default(this._config,"annotations.update"),this.has.annotations.delete=!!re.default(this._config,"annotations.delete")),this.has.auth=re.default(this._config,"auth.key")!=null,this._defaultParams={properties:"annotations"}}getMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});if(!e.uri||!e.uri.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});try{return yield this.axios(k(M({},t),{url:e.uri,params:M(M({},this._defaultParams),t.params||{})}))}catch(s){if(re.default(s,"response.status")==404)return null;throw s}})}getMappings(Q){return L(this,null,function*(){var ne=Q,{from:e,fromScheme:t,to:n,toScheme:i,creator:s,type:o,partOf:u,offset:a,limit:f,direction:d,mode:v,identifier:w,cardinality:O,annotatedBy:p,annotatedFor:C,annotatedWith:G,sort:K,order:te}=ne,D=V(ne,["from","fromScheme","to","toScheme","creator","type","partOf","offset","limit","direction","mode","identifier","cardinality","annotatedBy","annotatedFor","annotatedWith","sort","order"]);let E={},ee=this._api.mappings;return e&&(E.from=xe.default(e)?e:e.uri),t&&(E.fromScheme=xe.default(t)?t:t.uri),n&&(E.to=xe.default(n)?n:n.uri),i&&(E.toScheme=xe.default(i)?i:i.uri),s&&(E.creator=xe.default(s)?s:St.default.prefLabel(s)),o&&(E.type=xe.default(o)?o:o.uri),u&&(E.partOf=xe.default(u)?u:u.uri),a&&(E.offset=a),f&&(E.limit=f),d&&(E.direction=d),O&&(E.cardinality=O),p&&(E.annotatedBy=p),C&&(E.annotatedFor=C),G&&(E.annotatedWith=G),v&&(E.mode=v),w&&(E.identifier=w),K&&(E.sort=K),te&&(E.order=te),this.axios(k(M({},D),{method:"get",url:ee,params:M(M(M({},this._defaultParams),D.params||{}),E)}))})}postMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});return e=St.default.minifyMapping(e),e=St.default.addMappingIdentifiers(e),this.axios(k(M({},t),{method:"post",url:this._api.mappings,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}putMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});e=St.default.minifyMapping(e),e=St.default.addMappingIdentifiers(e);let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}patchMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:cr.default(e,"uri"),params:M(M({},this._defaultParams),t.params||{})}))})}deleteMapping(n){return L(this,null,function*(){var i=n,{mapping:e}=i,t=V(i,["mapping"]);if(!e)throw new H({parameter:"mapping"});let s=e.uri;if(!s||!s.startsWith(this._api.mappings))throw new H({parameter:"mapping",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}getAnnotations(n){return L(this,null,function*(){var i=n,{target:e}=i,t=V(i,["target"]);return e&&Ae.default(t,"params.target",e),this.axios(k(M({},t),{method:"get",url:this._api.annotations}))})}postAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);return this.axios(k(M({},t),{method:"post",url:this._api.annotations,data:e}))})}putAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e}))})}patchAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:e}))})}deleteAnnotation(n){return L(this,null,function*(){var i=n,{annotation:e}=i,t=V(i,["annotation"]);let s=e.id;if(!s||!s.startsWith(this._api.annotations))throw new H({parameter:"annotation",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}getConcordances(e){return L(this,null,function*(){return this.axios(k(M({},e),{method:"get",url:this._api.concordances}))})}postConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});return this.axios(k(M({},t),{method:"post",url:this._api.concordances,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}putConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"put",url:s,data:e,params:M(M({},this._defaultParams),t.params||{})}))})}patchConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return this.axios(k(M({},t),{method:"patch",url:s,data:cr.default(e,"uri"),params:M(M({},this._defaultParams),t.params||{})}))})}deleteConcordance(n){return L(this,null,function*(){var i=n,{concordance:e}=i,t=V(i,["concordance"]);if(!e)throw new H({parameter:"concordance"});let s=e.uri;if(!s||!s.startsWith(this._api.concordances))throw new H({parameter:"concordance",message:"URI doesn't seem to be part of this registry."});return yield this.axios(k(M({},t),{method:"delete",url:s})),!0})}};ir.providerName="MappingsApi";ir.stored=!0;var xt=pe(Ge(),1);var zs={},Tr=class extends le{get _cache(){return zs[this.uri]}_prepare(){zs[this.uri]=[],this._occurrencesSupportedSchemes=[],this.has.occurrences=!0,this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_occurrencesIsSupported(e){return L(this,null,function*(){if(!(this._occurrencesSupportedSchemes&&this._occurrencesSupportedSchemes.length))try{let n=lr(this._api.api,"voc"),i=yield this.axios({method:"get",url:n});this._occurrencesSupportedSchemes=i||[]}catch(n){}let t=!1;for(let n of this._occurrencesSupportedSchemes)xt.default.compare(e,n)&&(t=!0);return t})}getMappings(e){return L(this,null,function*(){let t=yield this.getOccurrences(e),n=e.from,i=re.default(n,"inScheme[0]")||e.fromScheme,s=e.to,o=re.default(s,"inScheme[0]")||e.toScheme,u=[];for(let a of t){if(!a)continue;let f={};f.from=re.default(a,"memberSet[0]"),f.from?f.from={memberSet:[f.from]}:f.from=null,f.fromScheme=re.default(a,"memberSet[0].inScheme[0]"),f.to=re.default(a,"memberSet[1]"),f.to?f.to={memberSet:[f.to]}:f.to={memberSet:[]},f.toScheme=re.default(a,"memberSet[1].inScheme[0]"),(n&&xt.default.compare(n,re.default(f,"to.memberSet[0]"))||s&&xt.default.compare(s,re.default(f,"from.memberSet[0]")))&&([f.from,f.fromScheme,f.to,f.toScheme]=[f.to,f.toScheme,f.from,f.fromScheme]),!f.fromScheme&&i&&(f.fromScheme=i),!f.toScheme&&o&&(f.toScheme=o),f.type=[xt.default.defaultMappingType.uri],f._occurrence=a,f=xt.default.addMappingIdentifiers(f),u.push(f)}return u._url=t._url,u})}getOccurrences(o){return L(this,null,function*(){var u=o,{from:e,to:t,concepts:n,threshold:i=0}=u,s=V(u,["from","to","concepts","threshold"]);let a=[];n=(n||[]).concat([e,t]).filter(p=>!!p);for(let p of n)a.push(this._occurrencesIsSupported(re.default(p,"inScheme[0]")).then(C=>C&&p.uri?p.uri:null));let f=yield Promise.all(a);if(f=f.filter(p=>p!=null),f.length==0)throw new H({parameter:"concepts"});a=[];for(let p of f)a.push(this._getOccurrences(k(M({},s),{params:{member:p,scheme:"*",threshold:i}})));let d=yield Promise.all(a),v=Es.default([],...d),w=[],O=[];for(let p=0;p<v.length;p+=1){let C=v[p];if(!C)continue;let G=C.memberSet.reduce((K,te)=>K.concat(te.uri),[]).sort().join(" ");w.includes(G)?O.push(p):w.push(G)}return O.forEach(p=>{delete v[p]}),v=v.filter(p=>p!=null),v=v.sort((p,C)=>parseInt(C.count||0)-parseInt(p.count||0)),v._url=d.map(p=>p._url),v})}_getOccurrences(e){return L(this,null,function*(){let t=this._cache.find(i=>nr.default(i.config.params,e.params));if(t)return t.data;let n=yield this.axios(k(M({},e),{method:"get",url:this._api.api}));return this._cache.push({config:e,data:n}),this._cache.length>20&&(zs[this.uri]=this._cache.slice(this._cache.length-20)),n})}};Tr.providerName="OccurrencesApi";Tr.stored=!1;var Ir=pe(Ge(),1);var sr=class extends le{_prepare(){this._api.api&&this._api.status===void 0&&(this._api.status=lr(this._api.api,"/status")),this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.types=!0,this.has.suggest=!0,this.has.search=!0,this.has.auth=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){if(this._api.api){let e={schemes:"/voc",top:"/voc/top",concepts:"/voc/concepts",data:"/data",narrower:"/narrower",ancestors:"/ancestors",types:"/types",suggest:"/suggest",search:"/search"};for(let t of Object.keys(e))this._api[t]===void 0&&(this._api[t]=lr(this._api.api,e[t]))}this.has.schemes=!!this._api.schemes,!this.has.schemes&&Array.isArray(this.schemes)&&(this.has.schemes=!0),this.has.top=!!this._api.top,this.has.data=!!this._api.data,this.has.concepts=!!this._api.concepts||this.has.data,this.has.narrower=!!this._api.narrower,this.has.ancestors=!!this._api.ancestors,this.has.types=!!this._api.types,this.has.suggest=!!this._api.suggest,this.has.search=!!this._api.search,this.has.auth=re.default(this._config,"auth.key")!=null,this._defaultParams={properties:"+created,issued,modified,editorialNote,scopeNote"}}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{api:e,schemes:[t]}}_getSchemeUri(e){return L(this,null,function*(){this._approvedSchemes=this._approvedSchemes||[],this._rejectedSchemes=this._rejectedSchemes||[];let t=this._approvedSchemes.find(s=>Ir.default.compare(e,s));if(t)return t.uri;if(this._rejectedSchemes.find(s=>Ir.default.compare(e,s)))return null;let i=(yield this.getSchemes({params:{uri:Ir.default.getAllUris(e).join("|")}})).find(s=>Ir.default.compare(s,e));return i?(this._approvedSchemes.push({uri:i.uri,identifier:Ir.default.getAllUris(e)}),i.uri):(this._rejectedSchemes.push({uri:e.uri,identifier:e.identifier}),null)})}getSchemes(e){return L(this,null,function*(){if(!this._api.schemes){if(Array.isArray(this.schemes))return this.schemes;throw new ze}let t=yield this.axios(k(M({},e),{method:"get",url:this._api.schemes,params:M(k(M({},this._defaultParams),{limit:500}),e.params||{})}));return Array.isArray(this.schemes)?Gr(t.filter(n=>Ir.default.isContainedIn(n,this.schemes)),t):t})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!this._api.top)throw new ze;if(!e)throw new H({parameter:"scheme"});let s=yield this._getSchemeUri(e);if(!s)throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return Array.isArray(this._api.top)?this._api.top:this.axios(k(M({},t),{method:"get",url:this._api.top,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:s})}))})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);if(this.has.data===!1)throw new ze;if(!e)throw new H({parameter:"concepts"});Array.isArray(e)||(e=[e]);let s=e.map(o=>o.uri).filter(o=>o!=null);return this.axios(k(M({},t),{method:"get",url:this._api.data,params:k(M(k(M({},this._defaultParams),{limit:500}),t.params||{}),{uri:s.join("|")})}))})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!this._api.narrower)throw new ze;if(!e||!e.uri)throw new H({parameter:"concept"});return this.axios(k(M({},t),{method:"get",url:this._api.narrower,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:e.uri})}))})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!this._api.ancestors)throw new ze;if(!e||!e.uri)throw new H({parameter:"concept"});return this.axios(k(M({},t),{method:"get",url:this._api.ancestors,params:k(M(k(M({},this._defaultParams),{limit:1e4}),t.params||{}),{uri:e.uri})}))})}suggest(o){return L(this,null,function*(){var u=o,{use:e="notation,label",types:t=[],sort:n="score",params:i={}}=u,s=V(u,["use","types","sort","params"]);return this._search(k(M({},s),{endpoint:"suggest",params:k(M({},i),{type:t.join("|"),use:e,sort:n})}))})}search(i){return L(this,null,function*(){var s=i,{types:e=[],params:t={}}=s,n=V(s,["types","params"]);return this._search(k(M({},n),{endpoint:"search",params:k(M({},t),{type:e.join("|")})}))})}vocSuggest(s){return L(this,null,function*(){var o=s,{use:e="notation,label",sort:t="score",params:n={}}=o,i=V(o,["use","sort","params"]);return this._search(k(M({},i),{endpoint:"voc-suggest",params:k(M({},n),{use:e,sort:t})}))})}vocSearch(e){return L(this,null,function*(){return this._search(k(M({},e),{endpoint:"voc-search"}))})}_search(f){return L(this,null,function*(){var d=f,{endpoint:e,scheme:t,search:n,limit:i,offset:s,params:o,url:u}=d,a=V(d,["endpoint","scheme","search","limit","offset","params","url"]);if(u=u!=null?u:this._api[e],!u)throw new ze;if(!n)throw new H({parameter:"search"});i=i||this._jskos.suggestResultLimit||100,s=s||0;let v=t&&(yield this._getSchemeUri(t));return u=u.replace("{searchTerms}",n),this.axios(k(M({},a),{params:k(M(M({},this._defaultParams),o),{limit:i,count:i,offset:s,search:n,query:n,voc:v}),method:"get",url:u}))})}getTypes(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!this._api.types)throw new ze;if(Array.isArray(this._api.types))return this._api.types;let s=e&&(yield this._getSchemeUri(e));s&&Ae.default(t,"params.uri",s);let o=yield this.axios(k(M({},t),{method:"get",url:this._api.types}));return s&&(o=o.filter(u=>!u.inScheme||Ir.default.isContainedIn(e,u.inScheme))),o})}};sr.providerName="ConceptApi";sr.providerType="http://bartoc.org/api-type/jskos";var fn=pe(Ge(),1);var Hs={},Pr=class extends le{get _cache(){return Hs[this.uri]}_prepare(){Hs[this.uri]=[],this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}getMappings(s){return L(this,null,function*(){var o=s,{from:e,to:t,mode:n}=o,i=V(o,["from","to","mode"]);let u=[];Re.default(this.schemes)&&(u=this.schemes);let a,f,d=re.default(e,"inScheme[0]"),v=re.default(t,"inScheme[0]"),w,O;if(!e||fn.default.isContainedIn(d,u)?(a=!0,f=t,w=v,O=u.find(E=>fn.default.compare(E,d))||u[0]):(a=!1,f=e,w=d,O=u.find(E=>fn.default.compare(E,v))||u[0]),n!="or")return[];if(!this._api.api)throw new ze;if(!f)throw new H({parameter:a?"to":"from"});let p=fn.default.languagePreference.selectLanguage(f.prefLabel);if(!p)throw new H({parameter:a?"to":"from",message:"Missing language"});let C=re.default(f,`altLabel.${p}`,[]);xe.default(C)&&(C=[C]);let G=re.default(f,`prefLabel.${p}`),K=C.concat([G]);K=[G];let{url:te,data:D}=yield this._getReconciliationResults(k(M({},i),{labels:K,language:p}));D=[].concat(...Object.values(D).map(E=>E.result)).filter(E=>E),D=D.sort((E,ee)=>E.score!=ee.score?ee.score-E.score:E.match!=ee.match?E.match?-1:1:E.id.length-ee.id.length);let Q=re.default(O,"namespace",""),ne=D.map(E=>({fromScheme:w,from:{memberSet:[f]},toScheme:O,to:{memberSet:[{uri:Q+E.id}]},type:[E.match?"http://www.w3.org/2004/02/skos/core#exactMatch":E.score>=80?"http://www.w3.org/2004/02/skos/core#closeMatch":"http://www.w3.org/2004/02/skos/core#mappingRelation"]}));return a&&(ne=ne.map(E=>Object.assign(E,{fromScheme:E.toScheme,from:E.to,toScheme:E.fromScheme,to:E.from}))),ne._url=te,ne})}_getReconciliationResults(i){return L(this,null,function*(){var s=i,{labels:e,language:t}=s,n=V(s,["labels","language"]);e=e.sort();let o=this._cache.find(O=>nr.default(O.labels,e)&&O.language==t);if(o)return o;let u={},a=0;for(let O of e)u[`q${a}`]={query:O},a+=1;let f=this._api.api;t&&(f=f.replace("{language}",t));let d=`queries=${encodeURIComponent(JSON.stringify(u))}`;Ae.default(n,["headers","Content-Type"],"application/x-www-form-urlencoded");let v=yield this.axios(k(M({},n),{method:"post",url:f,data:d}));v=v||{};let w={labels:e,language:t,data:v,url:`${f}${f.includes("?")?"&":"?"}${d}`};return this._cache.push(w),this._cache.length>20&&(Hs[this.uri]=this._cache.slice(this._cache.length-20)),w})}};Pr.providerName="ReconciliationApi";Pr.stored=!1;var Kr=pe(Ge(),1);var qr=class extends le{_prepare(){this._cache=[],this.has.mappings=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}supportsScheme(e){return super.supportsScheme(e)&&re.default(e,"_registry.has.search",!1)}getMappings(u){return L(this,null,function*(){var a=u,{from:e,to:t,mode:n,selected:i,limit:s=10}=a,o=V(a,["from","to","mode","selected","limit"]);if(n!="or")return[];if(!i)throw new H({parameter:"selected"});let f=[];e&&this.supportsScheme(i.scheme[!1])?f.push(this._getMappings(k(M({},o),{concept:e,sourceScheme:i.scheme[!0],targetScheme:i.scheme[!1],limit:s}))):f.push(Promise.resolve([])),t&&this.supportsScheme(i.scheme[!0])?f.push(this._getMappings(k(M({},o),{concept:t,sourceScheme:i.scheme[!1],targetScheme:i.scheme[!0],limit:s,swap:!0}))):f.push(Promise.resolve([]));let[d,v]=yield Promise.all(f);for(v=v.filter(w=>!d.find(O=>Kr.default.compareMappingMembers(w,O)));d.length+v.length>s;)v.length>=d.length?v=v.slice(0,-1):d=d.slice(0,-1);return Ss.default(d,v)})}_getMappings(u){return L(this,null,function*(){var a=u,{concept:e,sourceScheme:t,targetScheme:n,limit:i,swap:s=!1}=a,o=V(a,["concept","sourceScheme","targetScheme","limit","swap"]);var p;if(!e||!t||!n)return[];if(Kr.default.compare(t,n))return[];let f=Kr.default.languagePreference.selectLanguage(e.prefLabel)||this._defaultLanguages[0],d=Kr.default.prefLabel(e,{fallbackToUri:!1,language:f});if(!d)return[];let v=/^[\s\wäüöÄÜÖß]*\w/.exec(d);d=v?v[0]:d;let w=yield this._getResults(k(M({},o),{label:d,targetScheme:n,limit:i}));if(!w.length&&((p=e.broader)!=null&&p.length))for(let C of e.broader){let G=Kr.default.prefLabel(C,{fallbackToUri:!1,language:f});if(G&&(w=yield this._getResults(k(M({},o),{label:G,targetScheme:n,limit:i})),w.length))break}let O=w.map(C=>({fromScheme:t,from:{memberSet:[e]},toScheme:n,to:{memberSet:[C]},type:["http://www.w3.org/2004/02/skos/core#mappingRelation"]}));return s&&(O=O.map(C=>Object.assign(C,{fromScheme:C.toScheme,from:C.to,toScheme:C.fromScheme,to:C.from}))),O})}_getResults(s){return L(this,null,function*(){var o=s,{label:e,targetScheme:t,limit:n}=o,i=V(o,["label","targetScheme","limit"]);var v;let u=(this._cache[t.uri]||{})[e];if(u&&u._limit>=n)return u;let a=re.default(t,"_registry");if(!a||a.has.search===!1)return[];let f=(v=(this._jskos.overrides||[]).find(w=>Kr.default.compare(w,t)))==null?void 0:v.search,d=yield a.search(k(M({},i),{url:f,search:e,scheme:t,limit:n}));return this._cache[t.uri]||(this._cache[t.uri]={}),this._cache[t.uri][e]=d,this._cache[t.uri][e]._limit=n,d})}};qr.providerName="LabelSearchSuggestion";qr.stored=!1;var Be=pe(Ge(),1);var Rr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.types=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){if(!e||!t)return null;let n={},i=e.match(/(.+\/)([^/]+)\/$/);return i?(n.api=i[1]+"rest/v1/",t.VOCID=i[2],n.schemes=[t],n):null}get _language(){return this.languages[0]||this._defaultLanguages[0]||"en"}_getApiUrl(e,t,n){let i=e&&e.VOCID||re.default(this.schemes.find(o=>Be.default.compare(o,e)),"VOCID");if(!i)throw new H({parameter:"scheme",message:"Missing scheme or VOCID property on scheme"});t=t||"",n=n||{},n.lang||(n.lang=this._language);let s=Object.keys(n).map(o=>`${o}=${encodeURIComponent(n[o])}`).join("&");return`${this._api.api}${i}${t}${s?"?"+s:""}`}_getDataUrl(e,{addFormatParameter:t=!0}={}){let n=re.default(e,"inScheme[0]");if(!e||!e.uri)throw new H({parameter:"concept",message:"Missing concept URI"});return this._getApiUrl(n,"/data",t?{format:"application/json"}:{})}_getSchemeUri(e){return L(this,null,function*(){this._approvedSchemes=this._approvedSchemes||[],this._rejectedSchemes=this._rejectedSchemes||[];let t=this._approvedSchemes.find(o=>Be.default.compare(e,o));if(t)return t.uri;if(this._rejectedSchemes.find(o=>Be.default.compare(e,o)))return null;let n=this._getApiUrl(e,"/"),s=(yield this.axios({method:"get",url:n})).conceptschemes.find(o=>Be.default.compare(o,e));return s?(this._approvedSchemes.push({uri:s.uri,identifier:Be.default.getAllUris(e)}),s.uri):(this._rejectedSchemes.push({uri:e.uri,identifier:e.identifier}),null)})}_toJskosConcept(e,{concept:t,scheme:n,result:i,language:s}={}){if(!e)return null;t=Be.default.deepCopy(t||{}),s=s||e.lang||"en",t.uri=e.uri,n&&(t.inScheme=[n]);let o=e.matchedPrefLabel||e.prefLabel||e.label;if(xe.default(o))Ae.default(t,`prefLabel.${s}`,o);else{o&&!Re.default(o)&&(o=[o]);for(let f of o||[])Ae.default(t,`prefLabel.${f.lang}`,f.value)}let u=e.altLabel;if(xe.default(u))Ae.default(t,`altLabel.${s}`,[u]);else{u&&!Re.default(u)&&(u=[u]);for(let f of u||[])re.default(t,`altLabel.${f.lang}`)?(t.altLabel[f.lang].push(f.value),t.altLabel[f.lang]=Ar.default(t.altLabel[f.lang])):Ae.default(t,`altLabel.${f.lang}`,[f.value])}let a=e.notation||e["skos:notation"]||Be.default.notation(t);a&&(t.notation=[a.value||a]),e.broader&&(Re.default(e.broader)||(e.broader=[e.broader]),t.broader=e.broader.map(f=>xe.default(f)?{uri:f}:f)),e.hasChildren===!0?t.narrower=[null]:e.hasChildren===!1&&(t.narrower=[]),e.type&&!Re.default(e.type)&&(e.type=[e.type]),t.type=t.type||[];for(let f of e.type||[]){if(!Be.default.isValidUri(f))continue;let d=f.slice(0,f.indexOf(":"));i&&i["@context"]&&i["@context"][d]&&(f=f.replace(d+":",i["@context"][d])),t.type.push(f)}return t.type=Ar.default(t.type),t.type.length||(t.type=["http://www.w3.org/2004/02/skos/core#Concept"]),t}getSchemes(t){return L(this,null,function*(){var e=V(t,[]);let n=[];for(let i of this.schemes||[]){let s=this._getApiUrl(i,"/"),u=(yield this.axios(k(M({},e),{method:"get",url:s}))).conceptschemes.find(f=>Be.default.compare(f,i)),a=u&&(u.prefLabel||u.label||u.title);a&&Ae.default(i,`prefLabel.${this._language}`,a),n.push(i),this._approvedSchemes=this._approvedSchemes||[],this._approvedSchemes.find(f=>Be.default.compare(i,f))||this._approvedSchemes.push({uri:u.uri,identifier:Be.default.getAllUris(i)})}return n})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=this._getApiUrl(e,"/topConcepts"),o=yield this._getSchemeUri(e);if(!o)throw new H({parameter:"scheme",message:"Missing or unsupported scheme or VOCID property on scheme"});Ae.default(t,"params.scheme",o);let u=yield this.axios(k(M({},t),{method:"get",url:s})),a=[];for(let f of u.topconcepts||[]){let d=this._toJskosConcept(f,{scheme:e,language:this._language});d.topConceptOf=[e],a.push(d)}return a})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);Re.default(e)||(e=[e]),e=e.map(o=>({uri:o.uri,inScheme:o.inScheme}));let s=[];for(let o of e){let u=this._getDataUrl(o,{addFormatParameter:!1});if(!u)continue;let a=yield this.axios(k(M({},t),{method:"get",url:u,params:{uri:o.uri,format:"application/json"}})),f=a&&a.graph&&a.graph.find(d=>Be.default.compare(d,o));if(f){let d=this._toJskosConcept(f,{concept:o,result:a});for(let v of["broader","narrower"]){let w=f[v]||d[v];w&&!Re.default(w)&&(w=[w]),w||(w=[]),d[v]=w.map(O=>this._toJskosConcept(a.graph.find(p=>Be.default.compare(p,O)),{scheme:o.inScheme[0],result:a}))}d.ancestors=[],s.push(d)}}return s})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});let s=e.inScheme[0],o=this._getApiUrl(s,"/children");return Ae.default(t,"params.uri",e.uri),((yield this.axios(k(M({},t),{method:"get",url:o}))).narrower||[]).map(f=>this._toJskosConcept(f,{scheme:s}))})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});let s=e.inScheme[0],o=this._getApiUrl(s,"/broaderTransitive");Ae.default(t,"params.uri",e.uri);let u=yield this.axios(k(M({},t),{method:"get",url:o})),a=[],f=e.uri;for(;f;){if(f!=e.uri){let v=re.default(u,`broaderTransitive["${f}"]`);a=a.concat([v])}f=re.default(u,`broaderTransitive["${f}"].broader[0]`)}return a.map(v=>this._toJskosConcept(v,{scheme:s})).filter(v=>v.uri!=e.uri)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=Be.default.notation(i),o=Be.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}search(o){return L(this,null,function*(){var u=o,{search:e,scheme:t,limit:n,types:i=[]}=u,s=V(u,["search","scheme","limit","types"]);let a=this._getApiUrl(t,"/search");return Ae.default(s,"params.query",`${e}*`),Ae.default(s,"params.unique",1),Ae.default(s,"params.maxhits",n||100),Ae.default(s,"params.type",i.join(" ")),((yield this.axios(k(M({},s),{method:"get",url:a}))).results||[]).map(v=>this._toJskosConcept(v,{scheme:t}))})}getTypes(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=this._getApiUrl(e,"/types"),o=[],u=yield this.axios(k(M({},t),{method:"get",url:s}));for(let a of u&&u.types||[])a.uri!="http://www.w3.org/2004/02/skos/core#Concept"&&(a.label&&(a.prefLabel={[u["@context"]["@language"]]:a.label},delete a.label),o.push(a));return o._url=s,o})}};Rr.providerName="SkosmosApi";Rr.providerType="http://bartoc.org/api-type/skosmos";var pr=pe(Ge(),1);var ai="http://id.loc.gov/authorities/",oi=[{uri:`${ai}subjects`,identifier:["http://bartoc.org/en/node/454"],notation:["LCSH"],concepts:[null],topConcepts:[]},{uri:`${ai}names`,identifier:["http://bartoc.org/en/node/18536"],notation:["LCNAF"],concepts:[null],topConcepts:[]}],od=`${ai}classification`;function ad(r){let e={};e.uri=r["@id"],e.notation=(r["http://www.loc.gov/mads/rdf/v1#code"]||[]).map(i=>i["@value"]);let t=r["http://www.loc.gov/mads/rdf/v1#authoritativeLabel"]||r["http://www.w3.org/2000/01/rdf-schema#label"]||[];t.length&&(e.prefLabel={},e.prefLabel[t[0]["@language"]||"en"]=t[0]["@value"]);let n=r["http://www.w3.org/2004/02/skos/core#altLabel"]||[];n.length&&(e.altLabel={en:n.map(i=>i["@value"])});for(let i of r["http://www.w3.org/2000/01/rdf-schema#comment"]||[])e.definition=e.definition||{},e.definition.en=e.definition.en||[],e.definition.en.push(i["@value"]);return e}function vT(r){let e=ad(r);return e.namespace=e.uri+"/",e.type=["http://www.w3.org/2004/02/skos/core#ConceptScheme"],e}var Ws=r=>e=>!e||!r||!r.namespace?!0:e.uri.startsWith(r.namespace);function wT(r,{scheme:e}){let t=ad(r);t.type=["http://www.w3.org/2004/02/skos/core#Concept"],t.inScheme=e?[e]:(r["http://www.loc.gov/mads/rdf/v1#isMemberOfMADSScheme"]||[]).map(s=>oi.find(o=>o.uri===s["@id"])),(!t.inScheme.length||!t.inScheme[0])&&delete t.inScheme;let n=r["http://www.loc.gov/mads/rdf/v1#hasNarrowerAuthority"]||pr.default.compare(t.inScheme[0],{uri:od})&&r["http://www.loc.gov/mads/rdf/v1#hasMADSCollectionMember"]||[];t.narrower=n.map(s=>({uri:s["@id"]})).filter(Ws(t.inScheme&&t.inScheme[0]));let i=r["http://www.loc.gov/mads/rdf/v1#hasBroaderAuthority"]||pr.default.compare(t.inScheme[0],{uri:od})&&r["http://www.loc.gov/mads/rdf/v1#isMemberOfMADSCollection"]||[];return t.broader=i.map(s=>({uri:s["@id"]})).filter(Ws(t.inScheme&&t.inScheme[0])),t}var Mr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!1,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!1,this.has.ancestors=!1,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}static _registryConfigForBartocApiConfig({scheme:e}={}){return!e||!oi.find(t=>pr.default.compare(t,e))?null:{schemes:[e]}}getSchemes(){return L(this,null,function*(){let e=[];for(let t of yield Promise.all(oi.filter(n=>!this.schemes||!this.schemes.length||this.schemes.find(i=>pr.default.compare(n,i))).map(n=>Fe({method:"get",url:`${n.uri.replace("http:","https:")}.json`}).then(({status:i,data:s})=>{if(i===200){let o=s.find(u=>n.uri===u["@id"]);if(o)return o=pr.default.merge(vT(o),n),o.topConcepts=(o.topConcepts||[]).filter(u=>u),o}return null}))))t&&e.push(t);return e})}getConcepts(t){return L(this,arguments,function*({concepts:e}){Array.isArray(e)||(e=[e]);let n=[];for(let i of yield Promise.all(e.map(s=>Fe({method:"get",url:`${s.uri.replace("http:","https:")}.json`}).then(({status:o,data:u})=>{if(o===200){let a=u.find(f=>s.uri===f["@id"]);return a?wT(a,{scheme:s.inScheme&&s.inScheme[0]}):null}}))))i&&n.push(i);return n})}suggest(e){return L(this,null,function*(){let t=yield this.search(e);return[e.search,t.map(n=>pr.default.prefLabel(n,{fallbackToUri:!0})),[],t.map(n=>n.uri)]})}search(s){return L(this,arguments,function*({search:e,scheme:t,limit:n,offset:i}){let o=pr.default.getAllUris(t).find(a=>a.startsWith(ai));if(!o||!oi.find(a=>pr.default.compare(a,{uri:o})))throw new H({parameter:"scheme",message:"provided scheme is not supported (yet)"});if(!e)throw new H({parameter:"search",message:"parameter is empty or missing"});n=n||this._jskos.suggestResultLimit||100,i=i||0;let{data:u}=yield Fe({method:"get",url:`${o}/suggest2`.replace("http:","https:"),params:{q:e,count:n||100,offset:i,searchtype:"keyword"}});return(u.hits||[]).map(a=>({uri:a.uri,notation:[a.token],prefLabel:{en:a.aLabel},inScheme:[t]})).filter(Ws(t))})}};Mr.providerName="LocApi";Mr.providerType="http://bartoc.org/api-type/loc";var Vr=pe(Ge(),1),fd=pe(Ks(),1);function ui(r){return r.replace(/\\u[\dA-F]{4}/gi,function(e){return String.fromCharCode(parseInt(e.replace(/\\u/g,""),16))})}var Jr={},Lr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1}),Jr[this.uri]={index:{},conceptCache:{},schemeCache:{}}}get _index(){return Jr[this.uri]&&Jr[this.uri].index}get _conceptCache(){return Jr[this.uri]&&Jr[this.uri].conceptCache}get _schemeCache(){return Jr[this.uri]&&Jr[this.uri].schemeCache}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{schemes:[{uri:e,identifier:Vr.default.getAllUris(t).filter(i=>i!==e)}]}}_loadScheme(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);let s=Vr.default.getAllUris(e);for(let p of s)if(this._schemeCache[p])return this._schemeCache[p];let o=this.schemes.find(p=>Vr.default.compare(p,e));if(!o||!o.uri)throw new tr({message:`Tried to load unsupported scheme (${e&&e.uri})`});let u=o.uri;s=Ar.default(s.concat(Vr.default.getAllUris(o)));let a=".json";u.endsWith("/")&&(a="index.json");let f=yield this.axios(k(M({},t),{url:`${u}${a}`,_skipAdditionalParameters:!0}));if(f.id!==u)throw new tr({message:"Skohub URL did not return expected concept scheme"});let{title:d,preferredNamespaceUri:v,hasTopConcept:w,description:O}=f;e={uri:u,identifier:s.filter(p=>p!==u)},e.prefLabel=d,Object.keys(e.prefLabel||{}).forEach(p=>{e.prefLabel[p]=ui(e.prefLabel[p])}),e.namespace=v,e.topConcepts=(w||[]).map(p=>this._toJskosConcept(p)),e.concepts=[null],O&&(e.definition=O,Object.keys(e.definition).forEach(p=>{e.definition[p]=[ui(e.definition[p])]}));for(let p of Object.keys(e).filter(C=>!e[C]))delete e[p];for(let p of s)this._schemeCache[p]=e;return e})}_loadConcept(n){return L(this,null,function*(){var i=n,{uri:e}=i,t=V(i,["uri"]);if(this._conceptCache[e])return this._conceptCache[e];try{let s=yield this.axios(k(M({},t),{url:`${e}.json`,_skipAdditionalParameters:!0}));if(s.id!==e)throw new tr({message:"Skohub URL did not return expected concept URI"});let o=this._toJskosConcept(s);return this._conceptCache[e]=o,o}catch(s){return null}})}_toJskosConcept(e){let t={uri:e.id};return t.prefLabel=e.prefLabel,Object.keys(t.prefLabel||{}).forEach(n=>{t.prefLabel[n]=ui(t.prefLabel[n])}),t.narrower=(e.narrower||[]).map(n=>this._toJskosConcept(n)),t.notation=e.notation||[],e.broader&&e.broader.id&&(t.broader=[{uri:e.broader.id}]),e.inScheme&&e.inScheme.id&&(t.inScheme=[{uri:e.inScheme.id}]),e.scopeNote&&(t.scopeNote=e.scopeNote,Object.keys(t.scopeNote).forEach(n=>{t.scopeNote[n]=[ui(t.scopeNote[n])]})),t}getSchemes(t){return L(this,null,function*(){var e=V(t,[]);return Promise.all(this.schemes.map(n=>this._loadScheme(k(M({},e),{scheme:n}))))})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!e||!e.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});return e=yield this._loadScheme(M({scheme:e},t)),e.topConcepts||[]})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);return Re.default(e)||(e=[e]),(yield Promise.all(e.map(({uri:s})=>this._loadConcept(k(M({},t),{uri:s}))))).filter(Boolean)})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});if(e.ancestors&&e.ancestors[0]!==null)return e.ancestors;if(e=yield this._loadConcept(k(M({},t),{uri:e.uri})),!e||!e.broader||!e.broader.length)return[];let s=e.broader[0];return[s].concat(yield this.getAncestors(M({concept:s},t))).map(o=>({uri:o.uri}))})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});return e.narrower&&e.narrower[0]!==null||(e=yield this._loadConcept(k(M({},t),{uri:e.uri}))),e.narrower})}search(i){return L(this,arguments,function*({search:e,scheme:t,limit:n=100}){if(t=yield this._loadScheme({scheme:t}),!t||!t.uri)throw new H({parameter:"scheme"});if(!e)throw new H({parameter:"search"});let s;this._index[t.uri]||(this._index[t.uri]={});for(let a of[""].concat(this.languages)){if(this._index[t.uri][a]){s=this._index[t.uri][a];break}if(this._index[t.uri][a]!==null)try{let f=a?`.${a}.index`:".index";t.uri.endsWith("/")&&(f=`index${f}`);let d=yield this.axios({url:`${t.uri}${f}`,_skipAdditionalParameters:!0});if(d.length<100){this._index[t.uri][a]=null;continue}s=fd.default.create(),s.import(d),this._index[t.uri][a]=s;break}catch(f){this._index[t.uri][a]=null}}if(!s)throw new tr({message:"Could not find search index for any of the available languages "+this.languages.join(",")});let o=s.search(e);return(yield this.getConcepts({concepts:o.map(a=>({uri:a}))})).slice(0,n)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=Vr.default.notation(i),o=Vr.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}};Lr.providerName="Skohub";Lr.providerType="http://bartoc.org/api-type/skohub";var cn=pe(Ge(),1);var cd="https://lobid.org/gnd/",dr={uri:"http://bartoc.org/en/node/430",concepts:[null],topConcepts:[],type:["http://www.w3.org/2004/02/skos/core#ConceptScheme"],DISPLAY:{hideNotation:!0},identifier:["http://www.wikidata.org/entity/Q36578"],license:[{uri:"http://creativecommons.org/publicdomain/zero/1.0/"}],namespace:"https://d-nb.info/gnd/",notation:["GND"],notationPattern:"[0-9X-]+",prefLabel:{de:"Gemeinsame Normdatei",en:"Integrated Authority File"},types:[{uri:"https://d-nb.info/standards/elementset/gnd#DifferentiatedPerson",prefLabel:{de:"Person",en:"Person"}},{uri:"https://d-nb.info/standards/elementset/gnd#PlaceOrGeographicName",prefLabel:{de:"Geografikum",en:"Place"}},{uri:"https://d-nb.info/standards/elementset/gnd#CorporateBody",prefLabel:{de:"Organisation",en:"Organization"}},{uri:"https://d-nb.info/standards/elementset/gnd#SubjectHeading",prefLabel:{de:"Sachbegriff",en:"Subject"}},{uri:"https://d-nb.info/standards/elementset/gnd#Work",prefLabel:{de:"Werk",en:"Work"}},{uri:"https://d-nb.info/standards/elementset/gnd#ConferenceOrEvent",prefLabel:{de:"Konferenz oder Veranstaltung",en:"ConferenceOrEvent"}}]},Ys=new cn.default.ConceptScheme({uri:"https://d-nb.info/standards/elementset/gnd",namespace:"https://d-nb.info/standards/elementset/gnd#"});dr.types.forEach(r=>{r.notation=[Ys.notationFromUri(r.uri)]});var _T=new cn.default.ConceptScheme(dr),ld=["broaderTerm","broaderTermGeneral","broaderTermGeneric","broaderTermInstantial","broaderTermPartitive"];function Js(r){let e={uri:r.id,notation:[r.gndIdentifier],prefLabel:{de:r.preferredName},inScheme:[{uri:dr.uri}]};return r.variantName&&(e.altLabel={de:r.variantName}),e.type=r.type.map(t=>Ys.uriFromNotation(t)).filter(Boolean),e.broader=[],ld.forEach(t=>{e.broader=e.broader.concat(r[t]||[])}),e.broader=e.broader.map(t=>({uri:t.id})),e.uri&&(e.identifier=[e.uri.replace("https://","http://")]),r.sameAs&&r.sameAs.length&&(e.mappings=r.sameAs.map(t=>({from:{memberSet:[{uri:e.uri}]},fromScheme:{uri:dr.uri},to:{memberSet:[{uri:t.id}]},toScheme:{uri:t.collection.id},type:["http://www.w3.org/2004/02/skos/core#exactMatch"]}))),e}function Vs(r){return r&&r.startsWith("http://")?r.replace("http://","https://"):r}var Yr=class extends le{_prepare(){this.has.schemes=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.suggest=!0,this.has.search=!0,this.has.types=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this._api.api||(this._api.api=cd)}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t||!cn.default.compare(t,dr)||e!=="https://lobid.org/gnd/api"?null:{api:cd,schemes:[dr]}}getSchemes(){return L(this,null,function*(){return[dr]})}getTop(){return L(this,null,function*(){return[]})}getConcepts(t){return L(this,arguments,function*({concepts:e}){if(!e)throw new i.InvalidOrMissingParameterError({parameter:"concepts"});Array.isArray(e)||(e=[e]);let n=e.map(o=>{var u,a;return(u=o==null?void 0:o.notation)!=null&&u[0]?(a=o==null?void 0:o.notation)==null?void 0:a[0]:_T.notationFromUri(Vs(o==null?void 0:o.uri))}).filter(Boolean),i=[],s=yield Promise.all(n.map(o=>L(this,null,function*(){try{let u=yield Fe.get(`${this._api.api}${o}.json`);return Js(u.data)}catch(u){i.push(u)}})));if(i.length===e.length)throw i[0];return s.filter(Boolean)})}getNarrower(i){return L(this,arguments,function*({concept:e,limit:t=200,offset:n=0}){if(!e||!e.uri)throw new H({parameter:"concept"});let s=Vs(e.uri),o=ld.map(a=>`${a}.id:"${s}"`).join(" OR ");return(yield Fe.get(`${this._api.api}search`,{params:{q:o,format:"json",size:t,from:n}})).data.member.map(a=>Js(a))})}suggest(e){return L(this,null,function*(){let t=yield this._search(k(M({},e),{format:"json:suggest"}));return[e.search,t.map(n=>n.label),[],t.map(n=>n.id)]})}search(e){return L(this,null,function*(){return(yield this._search(e)).member.map(n=>Js(n))})}_search(o){return L(this,arguments,function*({search:e,types:t,limit:n=100,offset:i=0,format:s="json"}){if(!e)throw new H({parameter:"search"});let u="";return t=(t==null?void 0:t.map(f=>Ys.notationFromUri(Vs(f))).filter(Boolean))||[],t.length&&(u=t.map(f=>`type:${f}`).join(" OR ")),(yield Fe.get(`${this._api.api}search`,{params:{q:e,filter:u,format:s,size:n,from:i}})).data})}getTypes(t){return L(this,arguments,function*({scheme:e}){if(!e||!cn.default.compare(e,dr))throw new H({parameter:"search",message:e!=null&&e.uri?`scheme ${e==null?void 0:e.uri} not supported`:""});return dr.types})}};Yr.providerName="LobidApi";var ln=pe(Ge(),1),hd=pe(Ks(),1);var Ke={},Nr=class extends le{_prepare(){this.has.schemes=!0,this.has.top=!0,this.has.data=!0,this.has.concepts=!0,this.has.narrower=!0,this.has.ancestors=!0,this.has.suggest=!0,this.has.search=!0,Oe.filter(e=>!this.has[e]).forEach(e=>{this.has[e]=!1})}_setup(){this._scheme=null}static _registryConfigForBartocApiConfig({url:e,scheme:t}={}){return!e||!t?null:{api:e}}_schemeInfoToJSKOS(e){let t=e.labels.find(s=>s.lang==="x-uri").text,n={};e.labels.filter(s=>!s.lang.startsWith("x-")).forEach(s=>{n[s.lang]=s.text});let i={uri:t,prefLabel:n};return e.categories&&e.categories.length&&(i.topConcepts=[null]),e.category&&e.category.length&&(i.concepts=[null]),i}_categoryToJSKOS(e,{scheme:t,broader:n=[]}){if(!e||!t)return null;let i=e.ID,s=`${t.uri}/${i}`;if(Ke[t.uri].concepts[s])return Ke[t.uri].concepts[s];let o={};e.labels.filter(a=>!a.lang.startsWith("x-")&&a.text).forEach(a=>{o[a.lang]=a.text.replace(`${i} `,""),Ke[t.uri].searchIndex.add(s,o[a.lang])});let u={};return e.labels.filter(a=>!a.lang.startsWith("x-")&&a.description).forEach(a=>{u[a.lang]||(u[a.lang]=[]),u[a.lang].push(a.description)}),Ke[t.uri].concepts[s]={uri:s,notation:[i],prefLabel:o,scopeNote:u,inScheme:[{uri:t.uri}],narrower:(e.categories||[]).map(a=>({uri:`${t.uri}/${a.ID}`})),broader:n},Ke[t.uri].concepts[s]}_removeNarrower(e){return e&&Object.assign({},e,{narrower:e.narrower&&e.narrower.length?[null]:[]})}_loadSchemeData(e){return L(this,null,function*(){let t=yield this.axios(k(M({},e),{method:"get",url:this._api.api,_skipAdditionalParameters:!0}));this._scheme=this._schemeInfoToJSKOS(t);let n=this._scheme.uri;Ke[n]={schemeInfo:t,searchIndex:hd.default.create({tokenize:"full"}),concepts:{}};let i=(s,{broader:o=[]}={})=>{let u=this._categoryToJSKOS(s,{scheme:this._scheme,broader:o});(s.categories||[]).forEach(a=>i(a,{broader:[{uri:u.uri}]}))};t.categories.forEach(s=>i(s)),Ke[n].topConcepts=t.categories.map(s=>this._categoryToJSKOS(s,{scheme:this._scheme}))})}getSchemes(){return L(this,arguments,function*(e={}){if(!this._api.api)throw new ze;return this._scheme||(this._loadSchemeDataPromise||(this._loadSchemeDataPromise=this._loadSchemeData(e)),yield this._loadSchemeDataPromise),[this._scheme]})}getTop(n){return L(this,null,function*(){var i=n,{scheme:e}=i,t=V(i,["scheme"]);if(!e||!e.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});if(this._scheme||(yield this.getSchemes(t)),!ln.default.compare(e,this._scheme))throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return Ke[this._scheme.uri].topConcepts.map(this._removeNarrower)})}getConcepts(n){return L(this,null,function*(){var i=n,{concepts:e}=i,t=V(i,["concepts"]);return Re.default(e)||(e=[e]),this._scheme||(yield this.getSchemes(t)),e.map(s=>Ke[this._scheme.uri].concepts[s.uri]).map(this._removeNarrower)})}getAncestors(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});if(e.ancestors&&e.ancestors[0]!==null)return e.ancestors;this._scheme||(yield this.getSchemes(t)),e=Ke[this._scheme.uri].concepts[e.uri];let s=e&&e.broader&&e.broader[0];return s?[s].concat(yield this.getAncestors(M({concept:s},t))):[]})}getNarrower(n){return L(this,null,function*(){var i=n,{concept:e}=i,t=V(i,["concept"]);if(!e||!e.uri)throw new H({parameter:"concept"});return e.narrower&&e.narrower[0]!==null?e.narrower:(this._scheme||(yield this.getSchemes(t)),e=Ke[this._scheme.uri].concepts[e.uri],(e&&e.narrower||[]).map(s=>Ke[this._scheme.uri].concepts[s.uri]).map(this._removeNarrower))})}search(i){return L(this,arguments,function*({search:e,scheme:t,limit:n=100}){if(!t||!t.uri)throw new H({parameter:"scheme"});if(!e)throw new H({parameter:"search"});if(!t||!t.uri)throw new H({parameter:"scheme",message:"Missing scheme URI"});if(this._scheme||(yield this.getSchemes()),!ln.default.compare(t,this._scheme))throw new H({parameter:"scheme",message:"Requested vocabulary seems to be unsupported by this API."});return(yield Ke[this._scheme.uri].searchIndex.search(e)).map(o=>Ke[this._scheme.uri].concepts[o]).map(this._removeNarrower).slice(0,n)})}suggest(e){return L(this,null,function*(){e._raw=!0;let t=yield this.search(e),n=[e.search,[],[],[]];for(let i of t){let s=ln.default.notation(i),o=ln.default.prefLabel(i);n[1].push((s?s+" ":"")+o),n[2].push(""),n[3].push(i.uri)}return t._totalCount!=null?n._totalCount=t._totalCount:n._totalCount=t.length,n})}};Nr.providerName="MyCoRe";Nr.providerType="http://bartoc.org/api-type/mycore";var or={[le.providerName]:le,init(r){if(this[r.provider])return new this[r.provider](r);throw new et},addProvider(r){if(r.prototype instanceof le||r===le)this[r.providerName]=r;else throw new et}};or.addProvider(sr);or.addProvider(ir);Object.values(hn).forEach(r=>{or.addProvider(r)});var Xs={},Ur=class{constructor(e){this.config=e,this.axios=Fe.create()}setConfig(e){this.config=e}get config(){return this._config}set config(e){e=e||{},e.registries=e.registries||[],e.registries=e.registries.map(t=>or.init(t)).filter(t=>t),e.registries.forEach(t=>{t.cdk=this}),this._config=e}get providers(){return or}createInstance(e){return new Ur(e)}loadConfig(e){return L(this,null,function*(){let t=yield this.axios.get(e);this.config=t.data})}loadBuildInfo(o){var u=o,{url:e,buildInfo:t=null,interval:n=6e4,callback:i}=u,s=V(u,["url","buildInfo","interval","callback"]);if(!e&&!this.config.cocodaBaseUrl)throw new qe({message:"Could not determine URL to load build config."});return e||(e=`${this.config.cocodaBaseUrl}build-info.json`),this.repeat(k(M({},s),{function:()=>L(this,null,function*(){return(yield this.axios.get(e,{headers:{"Cache-Control":"no-cache"}})).data}),interval:n,callback:(a,f,d)=>{a?i(a):(d||!d&&t&&!nr.default(f,t))&&i(null,f,d||t)}}))}getRegistryForUri(e){return this.config.registries.find(t=>t.uri==e)}initializeRegistry(e){return e=or.init(e),e.cdk=this,e}addProvider(e){or.addProvider(e)}static addProvider(e){or.addProvider(e)}repeat({function:e,interval:t=15e3,callback:n,callImmediately:i=!0}={}){if(!e)throw new H({parameter:"function"});if(typeof e!="function")throw new H({parameter:"function",message:"function needs to be a function"});let s=()=>L(this,null,function*(){return e()});if(t=parseInt(t),isNaN(t))throw new H({parameter:"interval"});if(!n)throw new H({parameter:"callback"});if(typeof n!="function")throw new H({parameter:"callback",message:"callback needs to be a function"});let o={timer:null,result:null,error:null,isPaused:!1,interval:t},u=w=>{let O=o.result;nr.default(O,w)||(o.result=w,o.error=null,n(null,w,O))},a=w=>{o.error=w,n(w)},f=w=>{o.isPaused||(o.timer=setTimeout(()=>{w()},o.interval))},d=()=>s().then(u).catch(a).then(()=>f(d)),v=(w=i)=>{w?d():f(d)};return v(),{start:(...w)=>{o.isPaused=!1,v(...w)},stop:()=>{o.isPaused=!0,o.timer?clearTimeout(o.timer):setTimeout(()=>{o.timer&&clearTimeout(o.timer)},o.interval)},get isPaused(){return o.isPaused},get lastResult(){return o.result},get hasErrored(){return!!o.error},get interval(){return o.interval},set interval(w){o.interval=w}}}getSchemes(){return L(this,arguments,function*(e={}){let t=[],n=[];for(let i of this.config.registries)if(i.has.schemes!==!1){let s=i.getSchemes(e).then(o=>{for(let u of o){u._registry=i,u.__DETAILSLOADED__=1,u.type=u.type||["http://www.w3.org/2004/02/skos/core#ConceptScheme"];let a=t.find(w=>jr.default.compare(w,u)),f,d,v=!1;if(a){f=this.config.registries.indexOf(i),f!=-1&&(f=this.config.registries.length-f),d=this.config.registries.indexOf(re.default(a,"_registry")),d!=-1&&(d=this.config.registries.length-d);let w=u.concepts?u.concepts.length==0?-1:1:0,O=a.concepts?a.concepts.length==0?-1:1:0;w>O?v=!0:w<O?v=!1:v=d<f}if(!a||v){if(v){let w=t.findIndex(O=>jr.default.compare(O,a));w!=-1&&t.splice(w,1),u=jr.default.merge(u,cr.default(a,["concepts","topConcepts"]),{mergeUris:!0,skipPaths:["_registry"]})}u._registry=i,t.push(u)}else{let w=t.findIndex(O=>jr.default.compare(O,u));if(w!=-1){let O=t[w]._registry;t[w]=jr.default.merge(t[w],cr.default(u,["concepts","topConcepts"]),{mergeUris:!0,skipPaths:["_registry"]}),t[w]._registry=O}}}}).catch(o=>{console.warn("Couldn't load schemes for registry",i.uri,o)});n.push(s)}return yield Promise.all(n),t.forEach(i=>{let s=i._registry;delete i._registry;let o=this.registryForScheme(i);!o||o._api.api===s._api.api?i._registry=s:i._registry=o}),jr.default.sortSchemes(t.filter(Boolean))})}registryForScheme(e){let t=e._registry;if(t)return t;for(let n of e.API||[]){let i=n,{type:s}=i,o=V(i,["type"]);let u=o.url;if(Xs[u]){let a=Xs[u];return Array.isArray(a._jskos.schemes)&&!jr.default.isContainedIn(e,a._jskos.schemes)&&a._jskos.schemes.push(e),a}else{o.scheme=e;for(let a of Object.values(or)){if(a.providerType&&a.providerType!==s||!a._registryConfigForBartocApiConfig)continue;let f=a.providerName,d=or[f]._registryConfigForBartocApiConfig(o);if(d){d.provider=f;try{if(t=this.initializeRegistry(d),t)return Xs[u]=t,t}catch(v){continue}}}}}return null}};var pd=new Ur;function bT(r){Object.values(hn).forEach(e=>(r||pd).addProvider(e))}return im(ST);})();
14
14
  /*! Bundled license information:
15
15
 
16
16
  localforage/dist/localforage.js: