@qaecy/cue-ui 0.0.60 → 0.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/2713.js ADDED
@@ -0,0 +1,7 @@
1
+ (self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[2713],{9164(Fe,m,R){"use strict";R.d(m,{cY:()=>ne,FA:()=>tn,g:()=>ft,u:()=>Z,Uj:()=>C,Fy:()=>ce,tD:()=>Ln,bD:()=>Ri,T9:()=>N,yU:()=>k,XA:()=>W,mS:()=>P,Ku:()=>wr,ZQ:()=>Nt,sr:()=>H,zJ:()=>ue,c1:()=>z,zW:()=>Pe,jZ:()=>or,lV:()=>oe,nr:()=>Mn,Ov:()=>ge,gE:()=>Se,Am:()=>dn,P1:()=>Pn,eX:()=>Ve});var y=R(467);const $=function(J){const K=[];let he=0;for(let Ue=0;Ue<J.length;Ue++){let ae=J.charCodeAt(Ue);ae<128?K[he++]=ae:ae<2048?(K[he++]=ae>>6|192,K[he++]=63&ae|128):55296==(64512&ae)&&Ue+1<J.length&&56320==(64512&J.charCodeAt(Ue+1))?(ae=65536+((1023&ae)<<10)+(1023&J.charCodeAt(++Ue)),K[he++]=ae>>18|240,K[he++]=ae>>12&63|128,K[he++]=ae>>6&63|128,K[he++]=63&ae|128):(K[he++]=ae>>12|224,K[he++]=ae>>6&63|128,K[he++]=63&ae|128)}return K},O={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(J,K){if(!Array.isArray(J))throw Error("encodeByteArray takes an array as a parameter");this.init_();const he=K?this.byteToCharMapWebSafe_:this.byteToCharMap_,Ue=[];for(let ae=0;ae<J.length;ae+=3){const _t=J[ae],Ct=ae+1<J.length,sn=Ct?J[ae+1]:0,xn=ae+2<J.length,rn=xn?J[ae+2]:0;let wt=(15&sn)<<2|rn>>6,kt=63&rn;xn||(kt=64,Ct||(wt=64)),Ue.push(he[_t>>2],he[(3&_t)<<4|sn>>4],he[wt],he[kt])}return Ue.join("")},encodeString(J,K){return this.HAS_NATIVE_SUPPORT&&!K?btoa(J):this.encodeByteArray($(J),K)},decodeString(J,K){return this.HAS_NATIVE_SUPPORT&&!K?atob(J):function(J){const K=[];let he=0,Ue=0;for(;he<J.length;){const ae=J[he++];if(ae<128)K[Ue++]=String.fromCharCode(ae);else if(ae>191&&ae<224){const _t=J[he++];K[Ue++]=String.fromCharCode((31&ae)<<6|63&_t)}else if(ae>239&&ae<365){const xn=((7&ae)<<18|(63&J[he++])<<12|(63&J[he++])<<6|63&J[he++])-65536;K[Ue++]=String.fromCharCode(55296+(xn>>10)),K[Ue++]=String.fromCharCode(56320+(1023&xn))}else{const _t=J[he++],Ct=J[he++];K[Ue++]=String.fromCharCode((15&ae)<<12|(63&_t)<<6|63&Ct)}}return K.join("")}(this.decodeStringToByteArray(J,K))},decodeStringToByteArray(J,K){this.init_();const he=K?this.charToByteMapWebSafe_:this.charToByteMap_,Ue=[];for(let ae=0;ae<J.length;){const _t=he[J.charAt(ae++)],sn=ae<J.length?he[J.charAt(ae)]:0;++ae;const rn=ae<J.length?he[J.charAt(ae)]:64;++ae;const qt=ae<J.length?he[J.charAt(ae)]:64;if(++ae,null==_t||null==sn||null==rn||null==qt)throw new D;Ue.push(_t<<2|sn>>4),64!==rn&&(Ue.push(sn<<4&240|rn>>2),64!==qt&&Ue.push(rn<<6&192|qt))}return Ue},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let J=0;J<this.ENCODED_VALS.length;J++)this.byteToCharMap_[J]=this.ENCODED_VALS.charAt(J),this.charToByteMap_[this.byteToCharMap_[J]]=J,this.byteToCharMapWebSafe_[J]=this.ENCODED_VALS_WEBSAFE.charAt(J),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[J]]=J,J>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(J)]=J,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(J)]=J)}}};class D extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const C=function(J){return function(J){const K=$(J);return O.encodeByteArray(K,!0)}(J).replace(/\./g,"")},Z=function(J){try{return O.decodeString(J,!0)}catch(K){console.error("base64Decode failed: ",K)}return null};function P(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}const w=()=>{try{return P().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const J=process.env.__FIREBASE_DEFAULTS__;return J?JSON.parse(J):void 0})()||(()=>{if(typeof document>"u")return;let J;try{J=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const K=J&&Z(J[1]);return K&&JSON.parse(K)})()}catch(J){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${J}`)}},k=J=>{const K=(J=>w()?.emulatorHosts?.[J])(J);if(!K)return;const he=K.lastIndexOf(":");if(he<=0||he+1===K.length)throw new Error(`Invalid host ${K} with no separate hostname and port!`);const Ue=parseInt(K.substring(he+1),10);return"["===K[0]?[K.substring(1,he-1),Ue]:[K.substring(0,he),Ue]},N=()=>w()?.config,W=J=>w()?.[`_${J}`];class ne{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((K,he)=>{this.resolve=K,this.reject=he})}wrapCallback(K){return(he,Ue)=>{he?this.reject(he):this.resolve(Ue),"function"==typeof K&&(this.promise.catch(()=>{}),1===K.length?K(he):K(he,Ue))}}}function ue(J){try{return(J.startsWith("http://")||J.startsWith("https://")?new URL(J).hostname:J).endsWith(".cloudworkstations.dev")}catch{return!1}}function Se(J){return F.apply(this,arguments)}function F(){return(F=(0,y.A)(function*(J){return(yield fetch(J,{credentials:"include"})).ok})).apply(this,arguments)}function ce(J,K){if(J.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Ue=K||"demo-project",ae=J.iat||0,_t=J.sub||J.user_id;if(!_t)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const Ct={iss:`https://securetoken.google.com/${Ue}`,aud:Ue,iat:ae,exp:ae+3600,auth_time:ae,sub:_t,user_id:_t,firebase:{sign_in_provider:"custom",identities:{}},...J};return[C(JSON.stringify({alg:"none",type:"JWT"})),C(JSON.stringify(Ct)),""].join(".")}const Le={};let At=!1;function Pn(J,K){if(typeof window>"u"||typeof document>"u"||!ue(window.location.host)||Le[J]===K||Le[J]||At)return;function he(wt){return`__firebase__banner__${wt}`}Le[J]=K;const Ue="__firebase__banner",_t=function ot(){const J={prod:[],emulator:[]};for(const K of Object.keys(Le))Le[K]?J.emulator.push(K):J.prod.push(K);return J}().prod.length>0;function qt(){const wt=function Pt(J){let K=document.getElementById(J),he=!1;return K||(K=document.createElement("div"),K.setAttribute("id",J),he=!0),{created:he,element:K}}(Ue),kt=he("text"),gi=document.getElementById(kt)||document.createElement("span"),Yt=he("learnmore"),qe=document.getElementById(Yt)||document.createElement("a"),_i=he("preprendIcon"),xi=document.getElementById(_i)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(wt.created){const Vr=wt.element;(function sn(wt){wt.style.display="flex",wt.style.background="#7faaf0",wt.style.position="fixed",wt.style.bottom="5px",wt.style.left="5px",wt.style.padding=".5em",wt.style.borderRadius="5px",wt.style.alignItems="center"})(Vr),function Kn(wt,kt){wt.setAttribute("id",kt),wt.innerText="Learn more",wt.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",wt.setAttribute("target","__blank"),wt.style.paddingLeft="5px",wt.style.textDecoration="underline"}(qe,Yt);const so=function rn(){const wt=document.createElement("span");return wt.style.cursor="pointer",wt.style.marginLeft="16px",wt.style.fontSize="24px",wt.innerHTML=" &times;",wt.onclick=()=>{At=!0,function Ct(){const wt=document.getElementById(Ue);wt&&wt.remove()}()},wt}();(function xn(wt,kt){wt.setAttribute("width","24"),wt.setAttribute("id",kt),wt.setAttribute("height","24"),wt.setAttribute("viewBox","0 0 24 24"),wt.setAttribute("fill","none"),wt.style.marginLeft="-6px"})(xi,_i),Vr.append(xi,gi,qe,so),document.body.appendChild(Vr)}_t?(gi.innerText="Preview backend disconnected.",xi.innerHTML='<g clip-path="url(#clip0_6013_33858)">\n<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>\n</g>\n<defs>\n<clipPath id="clip0_6013_33858">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>'):(xi.innerHTML='<g clip-path="url(#clip0_6083_34804)">\n<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>\n</g>\n<defs>\n<clipPath id="clip0_6083_34804">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>',gi.innerText="Preview backend running in this workspace."),gi.setAttribute("id",kt)}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",qt):qt()}function Nt(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function or(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Nt())}function Ze(){const J=w()?.forceEnvironment;if("node"===J)return!0;if("browser"===J)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function z(){return typeof navigator<"u"&&"Cloudflare-Workers"===navigator.userAgent}function H(){const J="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof J&&void 0!==J.id}function oe(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Mn(){return!Ze()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function ge(){return!Ze()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}function Pe(){try{return"object"==typeof indexedDB}catch{return!1}}function Ve(){return new Promise((J,K)=>{try{let he=!0;const Ue="validate-browser-context-for-indexeddb-analytics-module",ae=self.indexedDB.open(Ue);ae.onsuccess=()=>{ae.result.close(),he||self.indexedDB.deleteDatabase(Ue),J(!0)},ae.onupgradeneeded=()=>{he=!1},ae.onerror=()=>{K(ae.error?.message||"")}}catch(he){K(he)}})}class ft extends Error{constructor(K,he,Ue){super(he),this.code=K,this.customData=Ue,this.name="FirebaseError",Object.setPrototypeOf(this,ft.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,tn.prototype.create)}}class tn{constructor(K,he,Ue){this.service=K,this.serviceName=he,this.errors=Ue}create(K,...he){const Ue=he[0]||{},ae=`${this.service}/${K}`,_t=this.errors[K],Ct=_t?function Yn(J,K){return J.replace(Un,(he,Ue)=>{const ae=K[Ue];return null!=ae?String(ae):`<${Ue}?>`})}(_t,Ue):"Error";return new ft(ae,`${this.serviceName}: ${Ct} (${ae}).`,Ue)}}const Un=/\{\$([^}]+)}/g;function Ri(J,K){if(J===K)return!0;const he=Object.keys(J),Ue=Object.keys(K);for(const ae of he){if(!Ue.includes(ae))return!1;const _t=J[ae],Ct=K[ae];if(lr(_t)&&lr(Ct)){if(!Ri(_t,Ct))return!1}else if(_t!==Ct)return!1}for(const ae of Ue)if(!he.includes(ae))return!1;return!0}function lr(J){return null!==J&&"object"==typeof J}function dn(J){const K=[];for(const[he,Ue]of Object.entries(J))Array.isArray(Ue)?Ue.forEach(ae=>{K.push(encodeURIComponent(he)+"="+encodeURIComponent(ae))}):K.push(encodeURIComponent(he)+"="+encodeURIComponent(Ue));return K.length?"&"+K.join("&"):""}function Ln(J,K){const he=new ze(J,K);return he.subscribe.bind(he)}class ze{constructor(K,he){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=he,this.task.then(()=>{K(this)}).catch(Ue=>{this.error(Ue)})}next(K){this.forEachObserver(he=>{he.next(K)})}error(K){this.forEachObserver(he=>{he.error(K)}),this.close(K)}complete(){this.forEachObserver(K=>{K.complete()}),this.close()}subscribe(K,he,Ue){let ae;if(void 0===K&&void 0===he&&void 0===Ue)throw new Error("Missing Observer.");ae=function jn(J,K){if("object"!=typeof J||null===J)return!1;for(const he of K)if(he in J&&"function"==typeof J[he])return!0;return!1}(K,["next","error","complete"])?K:{next:K,error:he,complete:Ue},void 0===ae.next&&(ae.next=$i),void 0===ae.error&&(ae.error=$i),void 0===ae.complete&&(ae.complete=$i);const _t=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?ae.error(this.finalError):ae.complete()}catch{}}),this.observers.push(ae),_t}unsubscribeOne(K){void 0===this.observers||void 0===this.observers[K]||(delete this.observers[K],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(K){if(!this.finalized)for(let he=0;he<this.observers.length;he++)this.sendOne(he,K)}sendOne(K,he){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[K])try{he(this.observers[K])}catch(Ue){typeof console<"u"&&console.error&&console.error(Ue)}})}close(K){this.finalized||(this.finalized=!0,void 0!==K&&(this.finalError=K),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function $i(){}function wr(J){return J&&J._delegate?J._delegate:J}},5448(Fe,m,R){"use strict";R.d(m,{ButtonLabel:()=>g});var y=R(7705),U=R(2245),M=R(5547);const V=["*"];let g=(()=>{class ${fontSize=(0,y.hFB)("m");italic=(0,y.hFB)(!1);noWrap=(0,y.hFB)(!0);static \u0275fac=function(D){return new(D||$)};static \u0275cmp=M.VBU({type:$,selectors:[["cue-button-label"]],inputs:{fontSize:[1,"fontSize"],italic:[1,"italic"],noWrap:[1,"noWrap"]},ngContentSelectors:V,decls:3,vars:3,consts:[[3,"size","italic","noWrap"]],template:function(D,x){1&D&&(M.NAR(),M.j41(0,"div")(1,"cue-typography",0),M.SdG(2),M.k0s()()),2&D&&(M.R7$(),M.Y8G("size",x.fontSize())("italic",x.italic())("noWrap",x.noWrap()))},dependencies:[U.Typography],styles:["div[_ngcontent-%COMP%]{transform:translateY(.05em)}"]})}return $})()},7719(Fe,m){"use strict";function R(ue,Se){return{validate:ue,compare:Se}}Object.defineProperty(m,"__esModule",{value:!0}),m.formatNames=m.fastFormats=m.fullFormats=void 0,m.fullFormats={date:R(V,g),time:R(j(!0),O),"date-time":R(C(!0),Z),"iso-time":R(j(),D),"iso-date-time":R(C(),X),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function P(ue){return re.test(ue)&&ie.test(ue)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function ne(ue){if(W.test(ue))return!1;try{return new RegExp(ue),!0}catch{return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function S(ue){return A.lastIndex=0,A.test(ue)},int32:{type:"number",validate:function b(ue){return Number.isInteger(ue)&&ue<=2147483647&&ue>=-2147483648}},int64:{type:"number",validate:function k(ue){return Number.isInteger(ue)}},float:{type:"number",validate:N},double:{type:"number",validate:N},password:!0,binary:!0},m.fastFormats={...m.fullFormats,date:R(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,g),time:R(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,O),"date-time":R(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Z),"iso-time":R(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,D),"iso-date-time":R(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,X),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},m.formatNames=Object.keys(m.fullFormats);const U=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,M=[0,31,28,31,30,31,30,31,31,30,31,30,31];function V(ue){const Se=U.exec(ue);if(!Se)return!1;const ce=+Se[2],Le=+Se[3];return ce>=1&&ce<=12&&Le>=1&&Le<=(2===ce&&function y(ue){return ue%4==0&&(ue%100!=0||ue%400==0)}(+Se[1])?29:M[ce])}function g(ue,Se){if(ue&&Se)return ue>Se?1:ue<Se?-1:0}const $=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function j(ue){return function(F){const ce=$.exec(F);if(!ce)return!1;const Le=+ce[1],ot=+ce[2],Pt=+ce[3],Pn="-"===ce[5]?-1:1,Nt=+(ce[6]||0),or=+(ce[7]||0);if(Nt>23||or>59||ue&&!ce[4])return!1;if(Le<=23&&ot<=59&&Pt<60)return!0;const Ze=ot-or*Pn,Ie=Le-Nt*Pn-(Ze<0?1:0);return(23===Ie||-1===Ie)&&(59===Ze||-1===Ze)&&Pt<61}}function O(ue,Se){if(!ue||!Se)return;const F=new Date("2020-01-01T"+ue).valueOf(),ce=new Date("2020-01-01T"+Se).valueOf();return F&&ce?F-ce:void 0}function D(ue,Se){if(!ue||!Se)return;const F=$.exec(ue),ce=$.exec(Se);return F&&ce?(ue=F[1]+F[2]+F[3])>(Se=ce[1]+ce[2]+ce[3])?1:ue<Se?-1:0:void 0}const x=/t|\s/i;function C(ue){const Se=j(ue);return function(ce){const Le=ce.split(x);return 2===Le.length&&V(Le[0])&&Se(Le[1])}}function Z(ue,Se){if(!ue||!Se)return;const F=new Date(ue).valueOf(),ce=new Date(Se).valueOf();return F&&ce?F-ce:void 0}function X(ue,Se){if(!ue||!Se)return;const[F,ce]=ue.split(x),[Le,ot]=Se.split(x),Pt=g(F,Le);return void 0!==Pt?Pt||O(ce,ot):void 0}const re=/\/|:/,ie=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,A=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function N(){return!0}const W=/[^\\]\\Z/},7459(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(7719),U=R(8776),M=R(5432),V=new M.Name("fullFormats"),g=new M.Name("fastFormats"),$=(O,D={keywords:!0})=>{if(Array.isArray(D))return j(O,D,y.fullFormats,V),O;const[x,C]="fast"===D.mode?[y.fastFormats,g]:[y.fullFormats,V];return j(O,D.formats||y.formatNames,x,C),D.keywords&&(0,U.default)(O),O};function j(O,D,x,C){var Z,X;null!==(Z=(X=O.opts.code).formats)&&void 0!==Z||(X.formats=M._`require("ajv-formats/dist/formats").${C}`);for(const re of D)O.addFormat(re,x[re])}$.get=(O,D="full")=>{const C=("fast"===D?y.fastFormats:y.fullFormats)[O];if(!C)throw new Error(`Unknown format "${O}"`);return C},Fe.exports=m=$,Object.defineProperty(m,"__esModule",{value:!0}),m.default=$},8776(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.formatLimitDefinition=void 0;const y=R(6827),U=R(5432),M=U.operators,V={formatMaximum:{okStr:"<=",ok:M.LTE,fail:M.GT},formatMinimum:{okStr:">=",ok:M.GTE,fail:M.LT},formatExclusiveMaximum:{okStr:"<",ok:M.LT,fail:M.GTE},formatExclusiveMinimum:{okStr:">",ok:M.GT,fail:M.LTE}},g={message:({keyword:j,schemaCode:O})=>U.str`should be ${V[j].okStr} ${O}`,params:({keyword:j,schemaCode:O})=>U._`{comparison: ${V[j].okStr}, limit: ${O}}`};m.formatLimitDefinition={keyword:Object.keys(V),type:"string",schemaType:"string",$data:!0,error:g,code(j){const{gen:O,data:D,schemaCode:x,keyword:C,it:Z}=j,{opts:X,self:re}=Z;if(!X.validateFormats)return;const ie=new y.KeywordCxt(Z,re.RULES.all.format.definition,"format");function S(_){return U._`${_}.compare(${D}, ${x}) ${V[C].fail} 0`}ie.$data?function P(){const _=O.scopeValue("formats",{ref:re.formats,code:X.code.formats}),w=O.const("fmt",U._`${_}[${ie.schemaCode}]`);j.fail$data((0,U.or)(U._`typeof ${w} != "object"`,U._`${w} instanceof RegExp`,U._`typeof ${w}.compare != "function"`,S(w)))}():function A(){const _=ie.schema,w=re.formats[_];if(!w||!0===w)return;if("object"!=typeof w||w instanceof RegExp||"function"!=typeof w.compare)throw new Error(`"${C}": format "${_}" does not define "compare" function`);const b=O.scopeValue("formats",{key:_,ref:w,code:X.code.formats?U._`${X.code.formats}${(0,U.getProperty)(_)}`:void 0});j.fail$data(S(b))}()},dependencies:["format"]},m.default=j=>(j.addKeyword(m.formatLimitDefinition),j)},6827(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.MissingRefError=m.ValidationError=m.CodeGen=m.Name=m.nil=m.stringify=m.str=m._=m.KeywordCxt=m.Ajv=void 0;const y=R(2113),U=R(457),M=R(8058),V=R(2079),g=["/properties"],$="http://json-schema.org/draft-07/schema";class j extends y.default{_addVocabularies(){super._addVocabularies(),U.default.forEach(X=>this.addVocabulary(X)),this.opts.discriminator&&this.addKeyword(M.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const X=this.opts.$data?this.$dataMetaSchema(V,g):V;this.addMetaSchema(X,$,!1),this.refs["http://json-schema.org/schema"]=$}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema($)?$:void 0)}}m.Ajv=j,Fe.exports=m=j,Fe.exports.Ajv=j,Object.defineProperty(m,"__esModule",{value:!0}),m.default=j;var O=R(7157);Object.defineProperty(m,"KeywordCxt",{enumerable:!0,get:function(){return O.KeywordCxt}});var D=R(5432);Object.defineProperty(m,"_",{enumerable:!0,get:function(){return D._}}),Object.defineProperty(m,"str",{enumerable:!0,get:function(){return D.str}}),Object.defineProperty(m,"stringify",{enumerable:!0,get:function(){return D.stringify}}),Object.defineProperty(m,"nil",{enumerable:!0,get:function(){return D.nil}}),Object.defineProperty(m,"Name",{enumerable:!0,get:function(){return D.Name}}),Object.defineProperty(m,"CodeGen",{enumerable:!0,get:function(){return D.CodeGen}});var x=R(9857);Object.defineProperty(m,"ValidationError",{enumerable:!0,get:function(){return x.default}});var C=R(6606);Object.defineProperty(m,"MissingRefError",{enumerable:!0,get:function(){return C.default}})},3467(Fe,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.regexpCode=m.getEsmExportName=m.getProperty=m.safeStringify=m.stringify=m.strConcat=m.addCodeArg=m.str=m._=m.nil=m._Code=m.Name=m.IDENTIFIER=m._CodeOrName=void 0;class R{}m._CodeOrName=R,m.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class y extends R{constructor(A){if(super(),!m.IDENTIFIER.test(A))throw new Error("CodeGen: name must be a valid identifier");this.str=A}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}m.Name=y;class U extends R{constructor(A){super(),this._items="string"==typeof A?[A]:A}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const A=this._items[0];return""===A||'""'===A}get str(){var A;return null!==(A=this._str)&&void 0!==A?A:this._str=this._items.reduce((S,_)=>`${S}${_}`,"")}get names(){var A;return null!==(A=this._names)&&void 0!==A?A:this._names=this._items.reduce((S,_)=>(_ instanceof y&&(S[_.str]=(S[_.str]||0)+1),S),{})}}function M(P,...A){const S=[P[0]];let _=0;for(;_<A.length;)$(S,A[_]),S.push(P[++_]);return new U(S)}m._Code=U,m.nil=new U(""),m._=M;const V=new U("+");function g(P,...A){const S=[Z(P[0])];let _=0;for(;_<A.length;)S.push(V),$(S,A[_]),S.push(V,Z(P[++_]));return function j(P){let A=1;for(;A<P.length-1;){if(P[A]===V){const S=O(P[A-1],P[A+1]);if(void 0!==S){P.splice(A-1,3,S);continue}P[A++]="+"}A++}}(S),new U(S)}function $(P,A){A instanceof U?P.push(...A._items):P.push(A instanceof y?A:function x(P){return"number"==typeof P||"boolean"==typeof P||null===P?P:Z(Array.isArray(P)?P.join(","):P)}(A))}function O(P,A){return'""'===A?P:'""'===P?A:"string"==typeof P?A instanceof y||'"'!==P[P.length-1]?void 0:"string"!=typeof A?`${P.slice(0,-1)}${A}"`:'"'===A[0]?P.slice(0,-1)+A.slice(1):void 0:"string"!=typeof A||'"'!==A[0]||P instanceof y?void 0:`"${P}${A.slice(1)}`}function Z(P){return JSON.stringify(P).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}m.str=g,m.addCodeArg=$,m.strConcat=function D(P,A){return A.emptyStr()?P:P.emptyStr()?A:g`${P}${A}`},m.stringify=function C(P){return new U(Z(P))},m.safeStringify=Z,m.getProperty=function X(P){return"string"==typeof P&&m.IDENTIFIER.test(P)?new U(`.${P}`):M`[${P}]`},m.getEsmExportName=function re(P){if("string"==typeof P&&m.IDENTIFIER.test(P))return new U(`${P}`);throw new Error(`CodeGen: invalid export name: ${P}, use explicit $id name mapping`)},m.regexpCode=function ie(P){return new U(P.toString())}},5432(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.or=m.and=m.not=m.CodeGen=m.operators=m.varKinds=m.ValueScopeName=m.ValueScope=m.Scope=m.Name=m.regexpCode=m.stringify=m.getProperty=m.nil=m.strConcat=m.str=m._=void 0;const y=R(3467),U=R(240);var M=R(3467);Object.defineProperty(m,"_",{enumerable:!0,get:function(){return M._}}),Object.defineProperty(m,"str",{enumerable:!0,get:function(){return M.str}}),Object.defineProperty(m,"strConcat",{enumerable:!0,get:function(){return M.strConcat}}),Object.defineProperty(m,"nil",{enumerable:!0,get:function(){return M.nil}}),Object.defineProperty(m,"getProperty",{enumerable:!0,get:function(){return M.getProperty}}),Object.defineProperty(m,"stringify",{enumerable:!0,get:function(){return M.stringify}}),Object.defineProperty(m,"regexpCode",{enumerable:!0,get:function(){return M.regexpCode}}),Object.defineProperty(m,"Name",{enumerable:!0,get:function(){return M.Name}});var V=R(240);Object.defineProperty(m,"Scope",{enumerable:!0,get:function(){return V.Scope}}),Object.defineProperty(m,"ValueScope",{enumerable:!0,get:function(){return V.ValueScope}}),Object.defineProperty(m,"ValueScopeName",{enumerable:!0,get:function(){return V.ValueScopeName}}),Object.defineProperty(m,"varKinds",{enumerable:!0,get:function(){return V.varKinds}}),m.operators={GT:new y._Code(">"),GTE:new y._Code(">="),LT:new y._Code("<"),LTE:new y._Code("<="),EQ:new y._Code("==="),NEQ:new y._Code("!=="),NOT:new y._Code("!"),OR:new y._Code("||"),AND:new y._Code("&&"),ADD:new y._Code("+")};class g{optimizeNodes(){return this}optimizeNames(z,H){return this}}class $ extends g{constructor(z,H,oe){super(),this.varKind=z,this.name=H,this.rhs=oe}render({es5:z,_n:H}){return`${z?U.varKinds.var:this.varKind} ${this.name}${void 0===this.rhs?"":` = ${this.rhs}`};`+H}optimizeNames(z,H){if(z[this.name.str])return this.rhs&&(this.rhs=Le(this.rhs,z,H)),this}get names(){return this.rhs instanceof y._CodeOrName?this.rhs.names:{}}}class j extends g{constructor(z,H,oe){super(),this.lhs=z,this.rhs=H,this.sideEffects=oe}render({_n:z}){return`${this.lhs} = ${this.rhs};`+z}optimizeNames(z,H){if(!(this.lhs instanceof y.Name)||z[this.lhs.str]||this.sideEffects)return this.rhs=Le(this.rhs,z,H),this}get names(){return ce(this.lhs instanceof y.Name?{}:{...this.lhs.names},this.rhs)}}class O extends j{constructor(z,H,oe,Qe){super(z,oe,Qe),this.op=H}render({_n:z}){return`${this.lhs} ${this.op}= ${this.rhs};`+z}}class D extends g{constructor(z){super(),this.label=z,this.names={}}render({_n:z}){return`${this.label}:`+z}}class x extends g{constructor(z){super(),this.label=z,this.names={}}render({_n:z}){return`break${this.label?` ${this.label}`:""};`+z}}class C extends g{constructor(z){super(),this.error=z}render({_n:z}){return`throw ${this.error};`+z}get names(){return this.error.names}}class Z extends g{constructor(z){super(),this.code=z}render({_n:z}){return`${this.code};`+z}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(z,H){return this.code=Le(this.code,z,H),this}get names(){return this.code instanceof y._CodeOrName?this.code.names:{}}}class X extends g{constructor(z=[]){super(),this.nodes=z}render(z){return this.nodes.reduce((H,oe)=>H+oe.render(z),"")}optimizeNodes(){const{nodes:z}=this;let H=z.length;for(;H--;){const oe=z[H].optimizeNodes();Array.isArray(oe)?z.splice(H,1,...oe):oe?z[H]=oe:z.splice(H,1)}return z.length>0?this:void 0}optimizeNames(z,H){const{nodes:oe}=this;let Qe=oe.length;for(;Qe--;){const dt=oe[Qe];dt.optimizeNames(z,H)||(ot(z,dt.names),oe.splice(Qe,1))}return oe.length>0?this:void 0}get names(){return this.nodes.reduce((z,H)=>F(z,H.names),{})}}class re extends X{render(z){return"{"+z._n+super.render(z)+"}"+z._n}}class ie extends X{}let P=(()=>{class me extends re{}return me.kind="else",me})(),A=(()=>{class me extends re{constructor(H,oe){super(oe),this.condition=H}render(H){let oe=`if(${this.condition})`+super.render(H);return this.else&&(oe+="else "+this.else.render(H)),oe}optimizeNodes(){super.optimizeNodes();const H=this.condition;if(!0===H)return this.nodes;let oe=this.else;if(oe){const Qe=oe.optimizeNodes();oe=this.else=Array.isArray(Qe)?new P(Qe):Qe}return oe?!1===H?oe instanceof me?oe:oe.nodes:this.nodes.length?this:new me(Pt(H),oe instanceof me?[oe]:oe.nodes):!1!==H&&this.nodes.length?this:void 0}optimizeNames(H,oe){var Qe;if(this.else=null===(Qe=this.else)||void 0===Qe?void 0:Qe.optimizeNames(H,oe),super.optimizeNames(H,oe)||this.else)return this.condition=Le(this.condition,H,oe),this}get names(){const H=super.names;return ce(H,this.condition),this.else&&F(H,this.else.names),H}}return me.kind="if",me})(),S=(()=>{class me extends re{}return me.kind="for",me})();class _ extends S{constructor(z){super(),this.iteration=z}render(z){return`for(${this.iteration})`+super.render(z)}optimizeNames(z,H){if(super.optimizeNames(z,H))return this.iteration=Le(this.iteration,z,H),this}get names(){return F(super.names,this.iteration.names)}}class w extends S{constructor(z,H,oe,Qe){super(),this.varKind=z,this.name=H,this.from=oe,this.to=Qe}render(z){const H=z.es5?U.varKinds.var:this.varKind,{name:oe,from:Qe,to:dt}=this;return`for(${H} ${oe}=${Qe}; ${oe}<${dt}; ${oe}++)`+super.render(z)}get names(){const z=ce(super.names,this.from);return ce(z,this.to)}}class b extends S{constructor(z,H,oe,Qe){super(),this.loop=z,this.varKind=H,this.name=oe,this.iterable=Qe}render(z){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(z)}optimizeNames(z,H){if(super.optimizeNames(z,H))return this.iterable=Le(this.iterable,z,H),this}get names(){return F(super.names,this.iterable.names)}}let k=(()=>{class me extends re{constructor(H,oe,Qe){super(),this.name=H,this.args=oe,this.async=Qe}render(H){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(H)}}return me.kind="func",me})(),N=(()=>{class me extends X{render(H){return"return "+super.render(H)}}return me.kind="return",me})();class W extends re{render(z){let H="try"+super.render(z);return this.catch&&(H+=this.catch.render(z)),this.finally&&(H+=this.finally.render(z)),H}optimizeNodes(){var z,H;return super.optimizeNodes(),null===(z=this.catch)||void 0===z||z.optimizeNodes(),null===(H=this.finally)||void 0===H||H.optimizeNodes(),this}optimizeNames(z,H){var oe,Qe;return super.optimizeNames(z,H),null===(oe=this.catch)||void 0===oe||oe.optimizeNames(z,H),null===(Qe=this.finally)||void 0===Qe||Qe.optimizeNames(z,H),this}get names(){const z=super.names;return this.catch&&F(z,this.catch.names),this.finally&&F(z,this.finally.names),z}}let ne=(()=>{class me extends re{constructor(H){super(),this.error=H}render(H){return`catch(${this.error})`+super.render(H)}}return me.kind="catch",me})(),ue=(()=>{class me extends re{render(H){return"finally"+super.render(H)}}return me.kind="finally",me})();function F(me,z){for(const H in z)me[H]=(me[H]||0)+(z[H]||0);return me}function ce(me,z){return z instanceof y._CodeOrName?F(me,z.names):me}function Le(me,z,H){return me instanceof y.Name?oe(me):function Qe(dt){return dt instanceof y._Code&&dt._items.some(Et=>Et instanceof y.Name&&1===z[Et.str]&&void 0!==H[Et.str])}(me)?new y._Code(me._items.reduce((dt,Et)=>(Et instanceof y.Name&&(Et=oe(Et)),Et instanceof y._Code?dt.push(...Et._items):dt.push(Et),dt),[])):me;function oe(dt){const Et=H[dt.str];return void 0===Et||1!==z[dt.str]?dt:(delete z[dt.str],Et)}}function ot(me,z){for(const H in z)me[H]=(me[H]||0)-(z[H]||0)}function Pt(me){return"boolean"==typeof me||"number"==typeof me||null===me?!me:y._`!${Ie(me)}`}m.CodeGen=class Se{constructor(z,H={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...H,_n:H.lines?"\n":""},this._extScope=z,this._scope=new U.Scope({parent:z}),this._nodes=[new ie]}toString(){return this._root.render(this.opts)}name(z){return this._scope.name(z)}scopeName(z){return this._extScope.name(z)}scopeValue(z,H){const oe=this._extScope.value(z,H);return(this._values[oe.prefix]||(this._values[oe.prefix]=new Set)).add(oe),oe}getScopeValue(z,H){return this._extScope.getValue(z,H)}scopeRefs(z){return this._extScope.scopeRefs(z,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(z,H,oe,Qe){const dt=this._scope.toName(H);return void 0!==oe&&Qe&&(this._constants[dt.str]=oe),this._leafNode(new $(z,dt,oe)),dt}const(z,H,oe){return this._def(U.varKinds.const,z,H,oe)}let(z,H,oe){return this._def(U.varKinds.let,z,H,oe)}var(z,H,oe){return this._def(U.varKinds.var,z,H,oe)}assign(z,H,oe){return this._leafNode(new j(z,H,oe))}add(z,H){return this._leafNode(new O(z,m.operators.ADD,H))}code(z){return"function"==typeof z?z():z!==y.nil&&this._leafNode(new Z(z)),this}object(...z){const H=["{"];for(const[oe,Qe]of z)H.length>1&&H.push(","),H.push(oe),(oe!==Qe||this.opts.es5)&&(H.push(":"),(0,y.addCodeArg)(H,Qe));return H.push("}"),new y._Code(H)}if(z,H,oe){if(this._blockNode(new A(z)),H&&oe)this.code(H).else().code(oe).endIf();else if(H)this.code(H).endIf();else if(oe)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(z){return this._elseNode(new A(z))}else(){return this._elseNode(new P)}endIf(){return this._endBlockNode(A,P)}_for(z,H){return this._blockNode(z),H&&this.code(H).endFor(),this}for(z,H){return this._for(new _(z),H)}forRange(z,H,oe,Qe,dt=(this.opts.es5?U.varKinds.var:U.varKinds.let)){const Et=this._scope.toName(z);return this._for(new w(dt,Et,H,oe),()=>Qe(Et))}forOf(z,H,oe,Qe=U.varKinds.const){const dt=this._scope.toName(z);if(this.opts.es5){const Et=H instanceof y.Name?H:this.var("_arr",H);return this.forRange("_i",0,y._`${Et}.length`,ln=>{this.var(dt,y._`${Et}[${ln}]`),oe(dt)})}return this._for(new b("of",Qe,dt,H),()=>oe(dt))}forIn(z,H,oe,Qe=(this.opts.es5?U.varKinds.var:U.varKinds.const)){if(this.opts.ownProperties)return this.forOf(z,y._`Object.keys(${H})`,oe);const dt=this._scope.toName(z);return this._for(new b("in",Qe,dt,H),()=>oe(dt))}endFor(){return this._endBlockNode(S)}label(z){return this._leafNode(new D(z))}break(z){return this._leafNode(new x(z))}return(z){const H=new N;if(this._blockNode(H),this.code(z),1!==H.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(N)}try(z,H,oe){if(!H&&!oe)throw new Error('CodeGen: "try" without "catch" and "finally"');const Qe=new W;if(this._blockNode(Qe),this.code(z),H){const dt=this.name("e");this._currNode=Qe.catch=new ne(dt),H(dt)}return oe&&(this._currNode=Qe.finally=new ue,this.code(oe)),this._endBlockNode(ne,ue)}throw(z){return this._leafNode(new C(z))}block(z,H){return this._blockStarts.push(this._nodes.length),z&&this.code(z).endBlock(H),this}endBlock(z){const H=this._blockStarts.pop();if(void 0===H)throw new Error("CodeGen: not in self-balancing block");const oe=this._nodes.length-H;if(oe<0||void 0!==z&&oe!==z)throw new Error(`CodeGen: wrong number of nodes: ${oe} vs ${z} expected`);return this._nodes.length=H,this}func(z,H=y.nil,oe,Qe){return this._blockNode(new k(z,H,oe)),Qe&&this.code(Qe).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(z=1){for(;z-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(z){return this._currNode.nodes.push(z),this}_blockNode(z){this._currNode.nodes.push(z),this._nodes.push(z)}_endBlockNode(z,H){const oe=this._currNode;if(oe instanceof z||H&&oe instanceof H)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${H?`${z.kind}/${H.kind}`:z.kind}"`)}_elseNode(z){const H=this._currNode;if(!(H instanceof A))throw new Error('CodeGen: "else" without "if"');return this._currNode=H.else=z,this}get _root(){return this._nodes[0]}get _currNode(){const z=this._nodes;return z[z.length-1]}set _currNode(z){const H=this._nodes;H[H.length-1]=z}},m.not=Pt;const At=Ze(m.operators.AND);m.and=function Pn(...me){return me.reduce(At)};const Nt=Ze(m.operators.OR);function Ze(me){return(z,H)=>z===y.nil?H:H===y.nil?z:y._`${Ie(z)} ${me} ${Ie(H)}`}function Ie(me){return me instanceof y.Name?me:y._`(${me})`}m.or=function or(...me){return me.reduce(Nt)}},240(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.ValueScope=m.ValueScopeName=m.Scope=m.varKinds=m.UsedValueState=void 0;const y=R(3467);class U extends Error{constructor(D){super(`CodeGen: "code" for ${D} not defined`),this.value=D.value}}var M=function(O){return O[O.Started=0]="Started",O[O.Completed=1]="Completed",O}(M||(m.UsedValueState=M={}));m.varKinds={const:new y.Name("const"),let:new y.Name("let"),var:new y.Name("var")};class V{constructor({prefixes:D,parent:x}={}){this._names={},this._prefixes=D,this._parent=x}toName(D){return D instanceof y.Name?D:this.name(D)}name(D){return new y.Name(this._newName(D))}_newName(D){return`${D}${(this._names[D]||this._nameGroup(D)).index++}`}_nameGroup(D){var x,C;if(null!==(C=null===(x=this._parent)||void 0===x?void 0:x._prefixes)&&void 0!==C&&C.has(D)||this._prefixes&&!this._prefixes.has(D))throw new Error(`CodeGen: prefix "${D}" is not allowed in this scope`);return this._names[D]={prefix:D,index:0}}}m.Scope=V;class g extends y.Name{constructor(D,x){super(x),this.prefix=D}setValue(D,{property:x,itemIndex:C}){this.value=D,this.scopePath=y._`.${new y.Name(x)}[${C}]`}}m.ValueScopeName=g;const $=y._`\n`;m.ValueScope=class j extends V{constructor(D){super(D),this._values={},this._scope=D.scope,this.opts={...D,_n:D.lines?$:y.nil}}get(){return this._scope}name(D){return new g(D,this._newName(D))}value(D,x){var C;if(void 0===x.ref)throw new Error("CodeGen: ref must be passed in value");const Z=this.toName(D),{prefix:X}=Z,re=null!==(C=x.key)&&void 0!==C?C:x.ref;let ie=this._values[X];if(ie){const S=ie.get(re);if(S)return S}else ie=this._values[X]=new Map;ie.set(re,Z);const P=this._scope[X]||(this._scope[X]=[]),A=P.length;return P[A]=x.ref,Z.setValue(x,{property:X,itemIndex:A}),Z}getValue(D,x){const C=this._values[D];if(C)return C.get(x)}scopeRefs(D,x=this._values){return this._reduceValues(x,C=>{if(void 0===C.scopePath)throw new Error(`CodeGen: name "${C}" has no value`);return y._`${D}${C.scopePath}`})}scopeCode(D=this._values,x,C){return this._reduceValues(D,Z=>{if(void 0===Z.value)throw new Error(`CodeGen: name "${Z}" has no value`);return Z.value.code},x,C)}_reduceValues(D,x,C={},Z){let X=y.nil;for(const re in D){const ie=D[re];if(!ie)continue;const P=C[re]=C[re]||new Map;ie.forEach(A=>{if(P.has(A))return;P.set(A,M.Started);let S=x(A);if(S)X=y._`${X}${this.opts.es5?m.varKinds.var:m.varKinds.const} ${A} = ${S};${this.opts._n}`;else{if(!(S=Z?.(A)))throw new U(A);X=y._`${X}${S}${this.opts._n}`}P.set(A,M.Completed)})}return X}}},7511(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.extendErrors=m.resetErrorsCount=m.reportExtraError=m.reportError=m.keyword$DataError=m.keywordError=void 0;const y=R(5432),U=R(7868),M=R(2682);function O(P,A){const S=P.const("err",A);P.if(y._`${M.default.vErrors} === null`,()=>P.assign(M.default.vErrors,y._`[${S}]`),y._`${M.default.vErrors}.push(${S})`),P.code(y._`${M.default.errors}++`)}function D(P,A){const{gen:S,validateName:_,schemaEnv:w}=P;w.$async?S.throw(y._`new ${P.ValidationError}(${A})`):(S.assign(y._`${_}.errors`,A),S.return(!1))}m.keywordError={message:({keyword:P})=>y.str`must pass "${P}" keyword validation`},m.keyword$DataError={message:({keyword:P,schemaType:A})=>A?y.str`"${P}" keyword must be ${A} ($data)`:y.str`"${P}" keyword is invalid ($data)`},m.reportError=function V(P,A=m.keywordError,S,_){const{it:w}=P,{gen:b,compositeRule:k,allErrors:N}=w,W=C(P,A,S);_??(k||N)?O(b,W):D(w,y._`[${W}]`)},m.reportExtraError=function g(P,A=m.keywordError,S){const{it:_}=P,{gen:w,compositeRule:b,allErrors:k}=_;O(w,C(P,A,S)),b||k||D(_,M.default.vErrors)},m.resetErrorsCount=function $(P,A){P.assign(M.default.errors,A),P.if(y._`${M.default.vErrors} !== null`,()=>P.if(A,()=>P.assign(y._`${M.default.vErrors}.length`,A),()=>P.assign(M.default.vErrors,null)))},m.extendErrors=function j({gen:P,keyword:A,schemaValue:S,data:_,errsCount:w,it:b}){if(void 0===w)throw new Error("ajv implementation error");const k=P.name("err");P.forRange("i",w,M.default.errors,N=>{P.const(k,y._`${M.default.vErrors}[${N}]`),P.if(y._`${k}.instancePath === undefined`,()=>P.assign(y._`${k}.instancePath`,(0,y.strConcat)(M.default.instancePath,b.errorPath))),P.assign(y._`${k}.schemaPath`,y.str`${b.errSchemaPath}/${A}`),b.opts.verbose&&(P.assign(y._`${k}.schema`,S),P.assign(y._`${k}.data`,_))})};const x={keyword:new y.Name("keyword"),schemaPath:new y.Name("schemaPath"),params:new y.Name("params"),propertyName:new y.Name("propertyName"),message:new y.Name("message"),schema:new y.Name("schema"),parentSchema:new y.Name("parentSchema")};function C(P,A,S){const{createErrors:_}=P.it;return!1===_?y._`{}`:function Z(P,A,S={}){const{gen:_,it:w}=P,b=[X(w,S),re(P,S)];return function ie(P,{params:A,message:S},_){const{keyword:w,data:b,schemaValue:k,it:N}=P,{opts:W,propertyName:ne,topSchemaRef:ue,schemaPath:Se}=N;_.push([x.keyword,w],[x.params,"function"==typeof A?A(P):A||y._`{}`]),W.messages&&_.push([x.message,"function"==typeof S?S(P):S]),W.verbose&&_.push([x.schema,k],[x.parentSchema,y._`${ue}${Se}`],[M.default.data,b]),ne&&_.push([x.propertyName,ne])}(P,A,b),_.object(...b)}(P,A,S)}function X({errorPath:P},{instancePath:A}){const S=A?y.str`${P}${(0,U.getErrorPath)(A,U.Type.Str)}`:P;return[M.default.instancePath,(0,y.strConcat)(M.default.instancePath,S)]}function re({keyword:P,it:{errSchemaPath:A}},{schemaPath:S,parentSchema:_}){let w=_?A:y.str`${A}/${P}`;return S&&(w=y.str`${w}${(0,U.getErrorPath)(S,U.Type.Str)}`),[x.schemaPath,w]}},7762(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.resolveSchema=m.getCompilingSchema=m.resolveRef=m.compileSchema=m.SchemaEnv=void 0;const y=R(5432),U=R(9857),M=R(2682),V=R(8222),g=R(7868),$=R(7157);class j{constructor(S){var _;let w;this.refs={},this.dynamicAnchors={},"object"==typeof S.schema&&(w=S.schema),this.schema=S.schema,this.schemaId=S.schemaId,this.root=S.root||this,this.baseId=null!==(_=S.baseId)&&void 0!==_?_:(0,V.normalizeId)(w?.[S.schemaId||"$id"]),this.schemaPath=S.schemaPath,this.localRefs=S.localRefs,this.meta=S.meta,this.$async=w?.$async,this.refs={}}}function O(A){const S=C.call(this,A);if(S)return S;const _=(0,V.getFullPath)(this.opts.uriResolver,A.root.baseId),{es5:w,lines:b}=this.opts.code,{ownProperties:k}=this.opts,N=new y.CodeGen(this.scope,{es5:w,lines:b,ownProperties:k});let W;A.$async&&(W=N.scopeValue("Error",{ref:U.default,code:y._`require("ajv/dist/runtime/validation_error").default`}));const ne=N.scopeName("validate");A.validateName=ne;const ue={gen:N,allErrors:this.opts.allErrors,data:M.default.data,parentData:M.default.parentData,parentDataProperty:M.default.parentDataProperty,dataNames:[M.default.data],dataPathArr:[y.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:N.scopeValue("schema",!0===this.opts.code.source?{ref:A.schema,code:(0,y.stringify)(A.schema)}:{ref:A.schema}),validateName:ne,ValidationError:W,schema:A.schema,schemaEnv:A,rootId:_,baseId:A.baseId||_,schemaPath:y.nil,errSchemaPath:A.schemaPath||(this.opts.jtd?"":"#"),errorPath:y._`""`,opts:this.opts,self:this};let Se;try{this._compilations.add(A),(0,$.validateFunctionCode)(ue),N.optimize(this.opts.code.optimize);const F=N.toString();Se=`${N.scopeRefs(M.default.scope)}return ${F}`,this.opts.code.process&&(Se=this.opts.code.process(Se,A));const Le=new Function(`${M.default.self}`,`${M.default.scope}`,Se)(this,this.scope.get());if(this.scope.value(ne,{ref:Le}),Le.errors=null,Le.schema=A.schema,Le.schemaEnv=A,A.$async&&(Le.$async=!0),!0===this.opts.code.source&&(Le.source={validateName:ne,validateCode:F,scopeValues:N._values}),this.opts.unevaluated){const{props:ot,items:Pt}=ue;Le.evaluated={props:ot instanceof y.Name?void 0:ot,items:Pt instanceof y.Name?void 0:Pt,dynamicProps:ot instanceof y.Name,dynamicItems:Pt instanceof y.Name},Le.source&&(Le.source.evaluated=(0,y.stringify)(Le.evaluated))}return A.validate=Le,A}catch(F){throw delete A.validate,delete A.validateName,Se&&this.logger.error("Error compiling schema, function code:",Se),F}finally{this._compilations.delete(A)}}function x(A){return(0,V.inlineRef)(A.schema,this.opts.inlineRefs)?A.schema:A.validate?A:O.call(this,A)}function C(A){for(const S of this._compilations)if(Z(S,A))return S}function Z(A,S){return A.schema===S.schema&&A.root===S.root&&A.baseId===S.baseId}function X(A,S){let _;for(;"string"==typeof(_=this.refs[S]);)S=_;return _||this.schemas[S]||re.call(this,A,S)}function re(A,S){const _=this.opts.uriResolver.parse(S),w=(0,V._getFullPath)(this.opts.uriResolver,_);let b=(0,V.getFullPath)(this.opts.uriResolver,A.baseId,void 0);if(Object.keys(A.schema).length>0&&w===b)return P.call(this,_,A);const k=(0,V.normalizeId)(w),N=this.refs[k]||this.schemas[k];if("string"==typeof N){const W=re.call(this,A,N);return"object"!=typeof W?.schema?void 0:P.call(this,_,W)}if("object"==typeof N?.schema){if(N.validate||O.call(this,N),k===(0,V.normalizeId)(S)){const{schema:W}=N,{schemaId:ne}=this.opts,ue=W[ne];return ue&&(b=(0,V.resolveUrl)(this.opts.uriResolver,b,ue)),new j({schema:W,schemaId:ne,root:A,baseId:b})}return P.call(this,_,N)}}m.SchemaEnv=j,m.compileSchema=O,m.resolveRef=function D(A,S,_){var w;_=(0,V.resolveUrl)(this.opts.uriResolver,S,_);const b=A.refs[_];if(b)return b;let k=X.call(this,A,_);if(void 0===k){const N=null===(w=A.localRefs)||void 0===w?void 0:w[_],{schemaId:W}=this.opts;N&&(k=new j({schema:N,schemaId:W,root:A,baseId:S}))}return void 0!==k?A.refs[_]=x.call(this,k):void 0},m.getCompilingSchema=C,m.resolveSchema=re;const ie=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function P(A,{baseId:S,schema:_,root:w}){var b;if("/"!==(null===(b=A.fragment)||void 0===b?void 0:b[0]))return;for(const W of A.fragment.slice(1).split("/")){if("boolean"==typeof _)return;const ne=_[(0,g.unescapeFragment)(W)];if(void 0===ne)return;const ue="object"==typeof(_=ne)&&_[this.opts.schemaId];!ie.has(W)&&ue&&(S=(0,V.resolveUrl)(this.opts.uriResolver,S,ue))}let k;if("boolean"!=typeof _&&_.$ref&&!(0,g.schemaHasRulesButRef)(_,this.RULES)){const W=(0,V.resolveUrl)(this.opts.uriResolver,S,_.$ref);k=re.call(this,w,W)}const{schemaId:N}=this.opts;return k=k||new j({schema:_,schemaId:N,root:w,baseId:S}),k.schema!==k.root.schema?k:void 0}},2682(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432),U={data:new y.Name("data"),valCxt:new y.Name("valCxt"),instancePath:new y.Name("instancePath"),parentData:new y.Name("parentData"),parentDataProperty:new y.Name("parentDataProperty"),rootData:new y.Name("rootData"),dynamicAnchors:new y.Name("dynamicAnchors"),vErrors:new y.Name("vErrors"),errors:new y.Name("errors"),this:new y.Name("this"),self:new y.Name("self"),scope:new y.Name("scope"),json:new y.Name("json"),jsonPos:new y.Name("jsonPos"),jsonLen:new y.Name("jsonLen"),jsonPart:new y.Name("jsonPart")};m.default=U},6606(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(8222);class U extends Error{constructor(V,g,$,j){super(j||`can't resolve reference ${$} from id ${g}`),this.missingRef=(0,y.resolveUrl)(V,g,$),this.missingSchema=(0,y.normalizeId)((0,y.getFullPath)(V,this.missingRef))}}m.default=U},8222(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.getSchemaRefs=m.resolveUrl=m.normalizeId=m._getFullPath=m.getFullPath=m.inlineRef=void 0;const y=R(7868),U=R(362),M=R(4331),V=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);m.inlineRef=function g(P,A=!0){return"boolean"==typeof P||(!0===A?!j(P):!!A&&O(P)<=A)};const $=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function j(P){for(const A in P){if($.has(A))return!0;const S=P[A];if(Array.isArray(S)&&S.some(j)||"object"==typeof S&&j(S))return!0}return!1}function O(P){let A=0;for(const S in P){if("$ref"===S)return 1/0;if(A++,!V.has(S)&&("object"==typeof P[S]&&(0,y.eachItem)(P[S],_=>A+=O(_)),A===1/0))return 1/0}return A}function D(P,A="",S){!1!==S&&(A=Z(A));const _=P.parse(A);return x(P,_)}function x(P,A){return P.serialize(A).split("#")[0]+"#"}m.getFullPath=D,m._getFullPath=x;const C=/#\/?$/;function Z(P){return P?P.replace(C,""):""}m.normalizeId=Z,m.resolveUrl=function X(P,A,S){return S=Z(S),P.resolve(A,S)};const re=/^[a-z_][-a-z0-9._]*$/i;m.getSchemaRefs=function ie(P,A){if("boolean"==typeof P)return{};const{schemaId:S,uriResolver:_}=this.opts,w=Z(P[S]||A),b={"":w},k=D(_,w,!1),N={},W=new Set;return M(P,{allKeys:!0},(Se,F,ce,Le)=>{if(void 0===Le)return;const ot=k+F;let Pt=b[Le];function At(Nt){if(Nt=Z(Pt?(0,this.opts.uriResolver.resolve)(Pt,Nt):Nt),W.has(Nt))throw ue(Nt);W.add(Nt);let Ze=this.refs[Nt];return"string"==typeof Ze&&(Ze=this.refs[Ze]),"object"==typeof Ze?ne(Se,Ze.schema,Nt):Nt!==Z(ot)&&("#"===Nt[0]?(ne(Se,N[Nt],Nt),N[Nt]=Se):this.refs[Nt]=ot),Nt}function Pn(Nt){if("string"==typeof Nt){if(!re.test(Nt))throw new Error(`invalid anchor "${Nt}"`);At.call(this,`#${Nt}`)}}"string"==typeof Se[S]&&(Pt=At.call(this,Se[S])),Pn.call(this,Se.$anchor),Pn.call(this,Se.$dynamicAnchor),b[F]=Pt}),N;function ne(Se,F,ce){if(void 0!==F&&!U(Se,F))throw ue(ce)}function ue(Se){return new Error(`reference "${Se}" resolves to more than one schema`)}}},6093(Fe,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.getRules=m.isJSONType=void 0;const y=new Set(["string","number","integer","boolean","null","object","array"]);m.isJSONType=function U(V){return"string"==typeof V&&y.has(V)},m.getRules=function M(){const V={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...V,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},V.number,V.string,V.array,V.object],post:{rules:[]},all:{},keywords:{}}}},7868(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.checkStrictMode=m.getErrorPath=m.Type=m.useFunc=m.setEvaluated=m.evaluatedPropsToName=m.mergeEvaluated=m.eachItem=m.unescapeJsonPointer=m.escapeJsonPointer=m.escapeFragment=m.unescapeFragment=m.schemaRefOrVal=m.schemaHasRulesButRef=m.schemaHasRules=m.checkUnknownRules=m.alwaysValidSchema=m.toHash=void 0;const y=R(5432),U=R(3467);function g(k,N=k.schema){const{opts:W,self:ne}=k;if(!W.strictSchema||"boolean"==typeof N)return;const ue=ne.RULES.keywords;for(const Se in N)ue[Se]||b(k,`unknown keyword: "${Se}"`)}function $(k,N){if("boolean"==typeof k)return!k;for(const W in k)if(N[W])return!0;return!1}function C(k){return"number"==typeof k?`${k}`:k.replace(/~/g,"~0").replace(/\//g,"~1")}function Z(k){return k.replace(/~1/g,"/").replace(/~0/g,"~")}function re({mergeNames:k,mergeToName:N,mergeValues:W,resultToName:ne}){return(ue,Se,F,ce)=>{const Le=void 0===F?Se:F instanceof y.Name?(Se instanceof y.Name?k(ue,Se,F):N(ue,Se,F),F):Se instanceof y.Name?(N(ue,F,Se),Se):W(Se,F);return ce!==y.Name||Le instanceof y.Name?Le:ne(ue,Le)}}function ie(k,N){if(!0===N)return k.var("props",!0);const W=k.var("props",y._`{}`);return void 0!==N&&P(k,W,N),W}function P(k,N,W){Object.keys(W).forEach(ne=>k.assign(y._`${N}${(0,y.getProperty)(ne)}`,!0))}m.toHash=function M(k){const N={};for(const W of k)N[W]=!0;return N},m.alwaysValidSchema=function V(k,N){return"boolean"==typeof N?N:0===Object.keys(N).length||(g(k,N),!$(N,k.self.RULES.all))},m.checkUnknownRules=g,m.schemaHasRules=$,m.schemaHasRulesButRef=function j(k,N){if("boolean"==typeof k)return!k;for(const W in k)if("$ref"!==W&&N.all[W])return!0;return!1},m.schemaRefOrVal=function O({topSchemaRef:k,schemaPath:N},W,ne,ue){if(!ue){if("number"==typeof W||"boolean"==typeof W)return W;if("string"==typeof W)return y._`${W}`}return y._`${k}${N}${(0,y.getProperty)(ne)}`},m.unescapeFragment=function D(k){return Z(decodeURIComponent(k))},m.escapeFragment=function x(k){return encodeURIComponent(C(k))},m.escapeJsonPointer=C,m.unescapeJsonPointer=Z,m.eachItem=function X(k,N){if(Array.isArray(k))for(const W of k)N(W);else N(k)},m.mergeEvaluated={props:re({mergeNames:(k,N,W)=>k.if(y._`${W} !== true && ${N} !== undefined`,()=>{k.if(y._`${N} === true`,()=>k.assign(W,!0),()=>k.assign(W,y._`${W} || {}`).code(y._`Object.assign(${W}, ${N})`))}),mergeToName:(k,N,W)=>k.if(y._`${W} !== true`,()=>{!0===N?k.assign(W,!0):(k.assign(W,y._`${W} || {}`),P(k,W,N))}),mergeValues:(k,N)=>!0===k||{...k,...N},resultToName:ie}),items:re({mergeNames:(k,N,W)=>k.if(y._`${W} !== true && ${N} !== undefined`,()=>k.assign(W,y._`${N} === true ? true : ${W} > ${N} ? ${W} : ${N}`)),mergeToName:(k,N,W)=>k.if(y._`${W} !== true`,()=>k.assign(W,!0===N||y._`${W} > ${N} ? ${W} : ${N}`)),mergeValues:(k,N)=>!0===k||Math.max(k,N),resultToName:(k,N)=>k.var("items",N)})},m.evaluatedPropsToName=ie,m.setEvaluated=P;const A={};m.useFunc=function S(k,N){return k.scopeValue("func",{ref:N,code:A[N.code]||(A[N.code]=new U._Code(N.code))})};var _=function(k){return k[k.Num=0]="Num",k[k.Str=1]="Str",k}(_||(m.Type=_={}));function b(k,N,W=k.opts.strictSchema){if(W){if(N=`strict mode: ${N}`,!0===W)throw new Error(N);k.self.logger.warn(N)}}m.getErrorPath=function w(k,N,W){if(k instanceof y.Name){const ne=N===_.Num;return W?ne?y._`"[" + ${k} + "]"`:y._`"['" + ${k} + "']"`:ne?y._`"/" + ${k}`:y._`"/" + ${k}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return W?(0,y.getProperty)(k).toString():"/"+C(k)},m.checkStrictMode=b},1064(Fe,m){"use strict";function y(M,V){return V.rules.some(g=>U(M,g))}function U(M,V){var g;return void 0!==M[V.keyword]||(null===(g=V.definition.implements)||void 0===g?void 0:g.some($=>void 0!==M[$]))}Object.defineProperty(m,"__esModule",{value:!0}),m.shouldUseRule=m.shouldUseGroup=m.schemaHasRulesForType=void 0,m.schemaHasRulesForType=function R({schema:M,self:V},g){const $=V.RULES.types[g];return $&&!0!==$&&y(M,$)},m.shouldUseGroup=y,m.shouldUseRule=U},9318(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.boolOrEmptySchema=m.topBoolOrEmptySchema=void 0;const y=R(7511),U=R(5432),M=R(2682),V={message:"boolean schema is false"};function j(O,D){const{gen:x,data:C}=O;(0,y.reportError)({gen:x,keyword:"false schema",data:C,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:O},V,void 0,D)}m.topBoolOrEmptySchema=function g(O){const{gen:D,schema:x,validateName:C}=O;!1===x?j(O,!1):"object"==typeof x&&!0===x.$async?D.return(M.default.data):(D.assign(U._`${C}.errors`,null),D.return(!0))},m.boolOrEmptySchema=function $(O,D){const{gen:x,schema:C}=O;!1===C?(x.var(D,!1),j(O)):x.var(D,!0)}},3513(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.reportTypeError=m.checkDataTypes=m.checkDataType=m.coerceAndCheckDataType=m.getJSONTypes=m.getSchemaTypes=m.DataType=void 0;const y=R(6093),U=R(1064),M=R(7511),V=R(5432),g=R(7868);var $=function(_){return _[_.Correct=0]="Correct",_[_.Wrong=1]="Wrong",_}($||(m.DataType=$={}));function O(_){const w=Array.isArray(_)?_:_?[_]:[];if(w.every(y.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}m.getSchemaTypes=function j(_){const w=O(_.type);if(w.includes("null")){if(!1===_.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&void 0!==_.nullable)throw new Error('"nullable" cannot be used without "type"');!0===_.nullable&&w.push("null")}return w},m.getJSONTypes=O,m.coerceAndCheckDataType=function D(_,w){const{gen:b,data:k,opts:N}=_,W=function C(_,w){return w?_.filter(b=>x.has(b)||"array"===w&&"array"===b):[]}(w,N.coerceTypes),ne=w.length>0&&!(0===W.length&&1===w.length&&(0,U.schemaHasRulesForType)(_,w[0]));if(ne){const ue=ie(w,k,N.strictNumbers,$.Wrong);b.if(ue,()=>{W.length?function Z(_,w,b){const{gen:k,data:N,opts:W}=_,ne=k.let("dataType",V._`typeof ${N}`),ue=k.let("coerced",V._`undefined`);"array"===W.coerceTypes&&k.if(V._`${ne} == 'object' && Array.isArray(${N}) && ${N}.length == 1`,()=>k.assign(N,V._`${N}[0]`).assign(ne,V._`typeof ${N}`).if(ie(w,N,W.strictNumbers),()=>k.assign(ue,N))),k.if(V._`${ue} !== undefined`);for(const F of b)(x.has(F)||"array"===F&&"array"===W.coerceTypes)&&Se(F);function Se(F){switch(F){case"string":return void k.elseIf(V._`${ne} == "number" || ${ne} == "boolean"`).assign(ue,V._`"" + ${N}`).elseIf(V._`${N} === null`).assign(ue,V._`""`);case"number":return void k.elseIf(V._`${ne} == "boolean" || ${N} === null
2
+ || (${ne} == "string" && ${N} && ${N} == +${N})`).assign(ue,V._`+${N}`);case"integer":return void k.elseIf(V._`${ne} === "boolean" || ${N} === null
3
+ || (${ne} === "string" && ${N} && ${N} == +${N} && !(${N} % 1))`).assign(ue,V._`+${N}`);case"boolean":return void k.elseIf(V._`${N} === "false" || ${N} === 0 || ${N} === null`).assign(ue,!1).elseIf(V._`${N} === "true" || ${N} === 1`).assign(ue,!0);case"null":return k.elseIf(V._`${N} === "" || ${N} === 0 || ${N} === false`),void k.assign(ue,null);case"array":k.elseIf(V._`${ne} === "string" || ${ne} === "number"
4
+ || ${ne} === "boolean" || ${N} === null`).assign(ue,V._`[${N}]`)}}k.else(),A(_),k.endIf(),k.if(V._`${ue} !== undefined`,()=>{k.assign(N,ue),function X({gen:_,parentData:w,parentDataProperty:b},k){_.if(V._`${w} !== undefined`,()=>_.assign(V._`${w}[${b}]`,k))}(_,ue)})}(_,w,W):A(_)})}return ne};const x=new Set(["string","number","integer","boolean","null"]);function re(_,w,b,k=$.Correct){const N=k===$.Correct?V.operators.EQ:V.operators.NEQ;let W;switch(_){case"null":return V._`${w} ${N} null`;case"array":W=V._`Array.isArray(${w})`;break;case"object":W=V._`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":W=ne(V._`!(${w} % 1) && !isNaN(${w})`);break;case"number":W=ne();break;default:return V._`typeof ${w} ${N} ${_}`}return k===$.Correct?W:(0,V.not)(W);function ne(ue=V.nil){return(0,V.and)(V._`typeof ${w} == "number"`,ue,b?V._`isFinite(${w})`:V.nil)}}function ie(_,w,b,k){if(1===_.length)return re(_[0],w,b,k);let N;const W=(0,g.toHash)(_);if(W.array&&W.object){const ne=V._`typeof ${w} != "object"`;N=W.null?ne:V._`!${w} || ${ne}`,delete W.null,delete W.array,delete W.object}else N=V.nil;W.number&&delete W.integer;for(const ne in W)N=(0,V.and)(N,re(ne,w,b,k));return N}m.checkDataType=re,m.checkDataTypes=ie;const P={message:({schema:_})=>`must be ${_}`,params:({schema:_,schemaValue:w})=>"string"==typeof _?V._`{type: ${_}}`:V._`{type: ${w}}`};function A(_){const w=function S(_){const{gen:w,data:b,schema:k}=_,N=(0,g.schemaRefOrVal)(_,k,"type");return{gen:w,keyword:"type",data:b,schema:k.type,schemaCode:N,schemaValue:N,parentSchema:k,params:{},it:_}}(_);(0,M.reportError)(w,P)}m.reportTypeError=A},3599(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.assignDefaults=void 0;const y=R(5432),U=R(7868);function V(g,$,j){const{gen:O,compositeRule:D,data:x,opts:C}=g;if(void 0===j)return;const Z=y._`${x}${(0,y.getProperty)($)}`;if(D)return void(0,U.checkStrictMode)(g,`default is ignored for: ${Z}`);let X=y._`${Z} === undefined`;"empty"===C.useDefaults&&(X=y._`${X} || ${Z} === null || ${Z} === ""`),O.if(X,y._`${Z} = ${(0,y.stringify)(j)}`)}m.assignDefaults=function M(g,$){const{properties:j,items:O}=g.schema;if("object"===$&&j)for(const D in j)V(g,D,j[D].default);else"array"===$&&Array.isArray(O)&&O.forEach((D,x)=>V(g,x,D.default))}},7157(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.getData=m.KeywordCxt=m.validateFunctionCode=void 0;const y=R(9318),U=R(3513),M=R(1064),V=R(3513),g=R(3599),$=R(742),j=R(5924),O=R(5432),D=R(2682),x=R(8222),C=R(7868),Z=R(7511);function re({gen:ge,validateName:Pe,schema:Ve,schemaEnv:Ge,opts:He},ft){He.code.es5?ge.func(Pe,O._`${D.default.data}, ${D.default.valCxt}`,Ge.$async,()=>{ge.code(O._`"use strict"; ${_(Ve,He)}`),function P(ge,Pe){ge.if(D.default.valCxt,()=>{ge.var(D.default.instancePath,O._`${D.default.valCxt}.${D.default.instancePath}`),ge.var(D.default.parentData,O._`${D.default.valCxt}.${D.default.parentData}`),ge.var(D.default.parentDataProperty,O._`${D.default.valCxt}.${D.default.parentDataProperty}`),ge.var(D.default.rootData,O._`${D.default.valCxt}.${D.default.rootData}`),Pe.dynamicRef&&ge.var(D.default.dynamicAnchors,O._`${D.default.valCxt}.${D.default.dynamicAnchors}`)},()=>{ge.var(D.default.instancePath,O._`""`),ge.var(D.default.parentData,O._`undefined`),ge.var(D.default.parentDataProperty,O._`undefined`),ge.var(D.default.rootData,D.default.data),Pe.dynamicRef&&ge.var(D.default.dynamicAnchors,O._`{}`)})}(ge,He),ge.code(ft)}):ge.func(Pe,O._`${D.default.data}, ${function ie(ge){return O._`{${D.default.instancePath}="", ${D.default.parentData}, ${D.default.parentDataProperty}, ${D.default.rootData}=${D.default.data}${ge.dynamicRef?O._`, ${D.default.dynamicAnchors}={}`:O.nil}}={}`}(He)}`,Ge.$async,()=>ge.code(_(Ve,He)).code(ft))}function _(ge,Pe){const Ve="object"==typeof ge&&ge[Pe.schemaId];return Ve&&(Pe.code.source||Pe.code.process)?O._`/*# sourceURL=${Ve} */`:O.nil}function b({schema:ge,self:Pe}){if("boolean"==typeof ge)return!ge;for(const Ve in ge)if(Pe.RULES.all[Ve])return!0;return!1}function k(ge){return"boolean"!=typeof ge.schema}function W(ge){(0,C.checkUnknownRules)(ge),function ue(ge){const{schema:Pe,errSchemaPath:Ve,opts:Ge,self:He}=ge;Pe.$ref&&Ge.ignoreKeywordsWithRef&&(0,C.schemaHasRulesButRef)(Pe,He.RULES)&&He.logger.warn(`$ref: keywords ignored in schema at path "${Ve}"`)}(ge)}function ne(ge,Pe){if(ge.opts.jtd)return At(ge,[],!1,Pe);const Ve=(0,U.getSchemaTypes)(ge.schema);At(ge,Ve,!(0,U.coerceAndCheckDataType)(ge,Ve),Pe)}function Le({gen:ge,schemaEnv:Pe,schema:Ve,errSchemaPath:Ge,opts:He}){const ft=Ve.$comment;if(!0===He.$comment)ge.code(O._`${D.default.self}.logger.log(${ft})`);else if("function"==typeof He.$comment){const tn=O.str`${Ge}/$comment`,Yn=ge.scopeValue("root",{ref:Pe.root});ge.code(O._`${D.default.self}.opts.$comment(${ft}, ${tn}, ${Yn}.schema)`)}}function At(ge,Pe,Ve,Ge){const{gen:He,schema:ft,data:tn,allErrors:Yn,opts:Un,self:Rn}=ge,{RULES:Je}=Rn;function on(Wn){(0,M.shouldUseGroup)(ft,Wn)&&(Wn.type?(He.if((0,V.checkDataType)(Wn.type,tn,Un.strictNumbers)),Pn(ge,Wn),1===Pe.length&&Pe[0]===Wn.type&&Ve&&(He.else(),(0,V.reportTypeError)(ge)),He.endIf()):Pn(ge,Wn),Yn||He.if(O._`${D.default.errors} === ${Ge||0}`))}!ft.$ref||!Un.ignoreKeywordsWithRef&&(0,C.schemaHasRulesButRef)(ft,Je)?(Un.jtd||function Nt(ge,Pe){ge.schemaEnv.meta||!ge.opts.strictTypes||(function or(ge,Pe){if(Pe.length){if(!ge.dataTypes.length)return void(ge.dataTypes=Pe);Pe.forEach(Ve=>{z(ge.dataTypes,Ve)||oe(ge,`type "${Ve}" not allowed by context "${ge.dataTypes.join(",")}"`)}),function H(ge,Pe){const Ve=[];for(const Ge of ge.dataTypes)z(Pe,Ge)?Ve.push(Ge):Pe.includes("integer")&&"number"===Ge&&Ve.push("integer");ge.dataTypes=Ve}(ge,Pe)}}(ge,Pe),ge.opts.allowUnionTypes||function Ze(ge,Pe){Pe.length>1&&(2!==Pe.length||!Pe.includes("null"))&&oe(ge,"use allowUnionTypes to allow union type keyword")}(ge,Pe),function Ie(ge,Pe){const Ve=ge.self.RULES.all;for(const Ge in Ve){const He=Ve[Ge];if("object"==typeof He&&(0,M.shouldUseRule)(ge.schema,He)){const{type:ft}=He.definition;ft.length&&!ft.some(tn=>me(Pe,tn))&&oe(ge,`missing type "${ft.join(",")}" for keyword "${Ge}"`)}}}(ge,ge.dataTypes))}(ge,Pe),He.block(()=>{for(const Wn of Je.rules)on(Wn);on(Je.post)})):He.block(()=>dt(ge,"$ref",Je.all.$ref.definition))}function Pn(ge,Pe){const{gen:Ve,schema:Ge,opts:{useDefaults:He}}=ge;He&&(0,g.assignDefaults)(ge,Pe.type),Ve.block(()=>{for(const ft of Pe.rules)(0,M.shouldUseRule)(Ge,ft)&&dt(ge,ft.keyword,ft.definition,Pe.type)})}function me(ge,Pe){return ge.includes(Pe)||"number"===Pe&&ge.includes("integer")}function z(ge,Pe){return ge.includes(Pe)||"integer"===Pe&&ge.includes("number")}function oe(ge,Pe){(0,C.checkStrictMode)(ge,Pe+=` at "${ge.schemaEnv.baseId+ge.errSchemaPath}" (strictTypes)`,ge.opts.strictTypes)}m.validateFunctionCode=function X(ge){k(ge)&&(W(ge),b(ge))?function A(ge){const{schema:Pe,opts:Ve,gen:Ge}=ge;re(ge,()=>{Ve.$comment&&Pe.$comment&&Le(ge),function Se(ge){const{schema:Pe,opts:Ve}=ge;void 0!==Pe.default&&Ve.useDefaults&&Ve.strictSchema&&(0,C.checkStrictMode)(ge,"default is ignored in the schema root")}(ge),Ge.let(D.default.vErrors,null),Ge.let(D.default.errors,0),Ve.unevaluated&&function S(ge){const{gen:Pe,validateName:Ve}=ge;ge.evaluated=Pe.const("evaluated",O._`${Ve}.evaluated`),Pe.if(O._`${ge.evaluated}.dynamicProps`,()=>Pe.assign(O._`${ge.evaluated}.props`,O._`undefined`)),Pe.if(O._`${ge.evaluated}.dynamicItems`,()=>Pe.assign(O._`${ge.evaluated}.items`,O._`undefined`))}(ge),ne(ge),function ot(ge){const{gen:Pe,schemaEnv:Ve,validateName:Ge,ValidationError:He,opts:ft}=ge;Ve.$async?Pe.if(O._`${D.default.errors} === 0`,()=>Pe.return(D.default.data),()=>Pe.throw(O._`new ${He}(${D.default.vErrors})`)):(Pe.assign(O._`${Ge}.errors`,D.default.vErrors),ft.unevaluated&&function Pt({gen:ge,evaluated:Pe,props:Ve,items:Ge}){Ve instanceof O.Name&&ge.assign(O._`${Pe}.props`,Ve),Ge instanceof O.Name&&ge.assign(O._`${Pe}.items`,Ge)}(ge),Pe.return(O._`${D.default.errors} === 0`))}(ge)})}(ge):re(ge,()=>(0,y.topBoolOrEmptySchema)(ge))};class Qe{constructor(Pe,Ve,Ge){if((0,$.validateKeywordUsage)(Pe,Ve,Ge),this.gen=Pe.gen,this.allErrors=Pe.allErrors,this.keyword=Ge,this.data=Pe.data,this.schema=Pe.schema[Ge],this.$data=Ve.$data&&Pe.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,C.schemaRefOrVal)(Pe,this.schema,Ge,this.$data),this.schemaType=Ve.schemaType,this.parentSchema=Pe.schema,this.params={},this.it=Pe,this.def=Ve,this.$data)this.schemaCode=Pe.gen.const("vSchema",Mn(this.$data,Pe));else if(this.schemaCode=this.schemaValue,!(0,$.validSchemaType)(this.schema,Ve.schemaType,Ve.allowUndefined))throw new Error(`${Ge} value must be ${JSON.stringify(Ve.schemaType)}`);("code"in Ve?Ve.trackErrors:!1!==Ve.errors)&&(this.errsCount=Pe.gen.const("_errs",D.default.errors))}result(Pe,Ve,Ge){this.failResult((0,O.not)(Pe),Ve,Ge)}failResult(Pe,Ve,Ge){this.gen.if(Pe),Ge?Ge():this.error(),Ve?(this.gen.else(),Ve(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(Pe,Ve){this.failResult((0,O.not)(Pe),void 0,Ve)}fail(Pe){if(void 0===Pe)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(Pe),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(Pe){if(!this.$data)return this.fail(Pe);const{schemaCode:Ve}=this;this.fail(O._`${Ve} !== undefined && (${(0,O.or)(this.invalid$data(),Pe)})`)}error(Pe,Ve,Ge){if(Ve)return this.setParams(Ve),this._error(Pe,Ge),void this.setParams({});this._error(Pe,Ge)}_error(Pe,Ve){(Pe?Z.reportExtraError:Z.reportError)(this,this.def.error,Ve)}$dataError(){(0,Z.reportError)(this,this.def.$dataError||Z.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,Z.resetErrorsCount)(this.gen,this.errsCount)}ok(Pe){this.allErrors||this.gen.if(Pe)}setParams(Pe,Ve){Ve?Object.assign(this.params,Pe):this.params=Pe}block$data(Pe,Ve,Ge=O.nil){this.gen.block(()=>{this.check$data(Pe,Ge),Ve()})}check$data(Pe=O.nil,Ve=O.nil){if(!this.$data)return;const{gen:Ge,schemaCode:He,schemaType:ft,def:tn}=this;Ge.if((0,O.or)(O._`${He} === undefined`,Ve)),Pe!==O.nil&&Ge.assign(Pe,!0),(ft.length||tn.validateSchema)&&(Ge.elseIf(this.invalid$data()),this.$dataError(),Pe!==O.nil&&Ge.assign(Pe,!1)),Ge.else()}invalid$data(){const{gen:Pe,schemaCode:Ve,schemaType:Ge,def:He,it:ft}=this;return(0,O.or)(function tn(){if(Ge.length){if(!(Ve instanceof O.Name))throw new Error("ajv implementation error");const Un=Array.isArray(Ge)?Ge:[Ge];return O._`${(0,V.checkDataTypes)(Un,Ve,ft.opts.strictNumbers,V.DataType.Wrong)}`}return O.nil}(),function Yn(){if(He.validateSchema){const Un=Pe.scopeValue("validate$data",{ref:He.validateSchema});return O._`!${Un}(${Ve})`}return O.nil}())}subschema(Pe,Ve){const Ge=(0,j.getSubschema)(this.it,Pe);(0,j.extendSubschemaData)(Ge,this.it,Pe),(0,j.extendSubschemaMode)(Ge,Pe);const He={...this.it,...Ge,items:void 0,props:void 0};return function w(ge,Pe){k(ge)&&(W(ge),b(ge))?function N(ge,Pe){const{schema:Ve,gen:Ge,opts:He}=ge;He.$comment&&Ve.$comment&&Le(ge),function F(ge){const Pe=ge.schema[ge.opts.schemaId];Pe&&(ge.baseId=(0,x.resolveUrl)(ge.opts.uriResolver,ge.baseId,Pe))}(ge),function ce(ge){if(ge.schema.$async&&!ge.schemaEnv.$async)throw new Error("async schema in sync schema")}(ge);const ft=Ge.const("_errs",D.default.errors);ne(ge,ft),Ge.var(Pe,O._`${ft} === ${D.default.errors}`)}(ge,Pe):(0,y.boolOrEmptySchema)(ge,Pe)}(He,Ve),He}mergeEvaluated(Pe,Ve){const{it:Ge,gen:He}=this;Ge.opts.unevaluated&&(!0!==Ge.props&&void 0!==Pe.props&&(Ge.props=C.mergeEvaluated.props(He,Pe.props,Ge.props,Ve)),!0!==Ge.items&&void 0!==Pe.items&&(Ge.items=C.mergeEvaluated.items(He,Pe.items,Ge.items,Ve)))}mergeValidEvaluated(Pe,Ve){const{it:Ge,gen:He}=this;if(Ge.opts.unevaluated&&(!0!==Ge.props||!0!==Ge.items))return He.if(Ve,()=>this.mergeEvaluated(Pe,O.Name)),!0}}function dt(ge,Pe,Ve,Ge){const He=new Qe(ge,Ve,Pe);"code"in Ve?Ve.code(He,Ge):He.$data&&Ve.validate?(0,$.funcKeywordCode)(He,Ve):"macro"in Ve?(0,$.macroKeywordCode)(He,Ve):(Ve.compile||Ve.validate)&&(0,$.funcKeywordCode)(He,Ve)}m.KeywordCxt=Qe;const Et=/^\/(?:[^~]|~0|~1)*$/,ln=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Mn(ge,{dataLevel:Pe,dataNames:Ve,dataPathArr:Ge}){let He,ft;if(""===ge)return D.default.rootData;if("/"===ge[0]){if(!Et.test(ge))throw new Error(`Invalid JSON-pointer: ${ge}`);He=ge,ft=D.default.rootData}else{const Rn=ln.exec(ge);if(!Rn)throw new Error(`Invalid JSON-pointer: ${ge}`);const Je=+Rn[1];if(He=Rn[2],"#"===He){if(Je>=Pe)throw new Error(Un("property/index",Je));return Ge[Pe-Je]}if(Je>Pe)throw new Error(Un("data",Je));if(ft=Ve[Pe-Je],!He)return ft}let tn=ft;const Yn=He.split("/");for(const Rn of Yn)Rn&&(ft=O._`${ft}${(0,O.getProperty)((0,C.unescapeJsonPointer)(Rn))}`,tn=O._`${tn} && ${ft}`);return tn;function Un(Rn,Je){return`Cannot access ${Rn} ${Je} levels up, current level is ${Pe}`}}m.getData=Mn},742(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.validateKeywordUsage=m.validSchemaType=m.funcKeywordCode=m.macroKeywordCode=void 0;const y=R(5432),U=R(2682),M=R(2240),V=R(7511);function j(X){const{gen:re,data:ie,it:P}=X;re.if(P.parentData,()=>re.assign(ie,y._`${P.parentData}[${P.parentDataProperty}]`))}function x(X,re,ie){if(void 0===ie)throw new Error(`keyword "${re}" failed to compile`);return X.scopeValue("keyword","function"==typeof ie?{ref:ie}:{ref:ie,code:(0,y.stringify)(ie)})}m.macroKeywordCode=function g(X,re){const{gen:ie,keyword:P,schema:A,parentSchema:S,it:_}=X,w=re.macro.call(_.self,A,S,_),b=x(ie,P,w);!1!==_.opts.validateSchema&&_.self.validateSchema(w,!0);const k=ie.name("valid");X.subschema({schema:w,schemaPath:y.nil,errSchemaPath:`${_.errSchemaPath}/${P}`,topSchemaRef:b,compositeRule:!0},k),X.pass(k,()=>X.error(!0))},m.funcKeywordCode=function $(X,re){var ie;const{gen:P,keyword:A,schema:S,parentSchema:_,$data:w,it:b}=X;!function D({schemaEnv:X},re){if(re.async&&!X.$async)throw new Error("async keyword in sync schema")}(b,re);const k=!w&&re.compile?re.compile.call(b.self,S,_,b):re.validate,N=x(P,A,k),W=P.let("valid");function F(Le=(re.async?y._`await `:y.nil)){P.assign(W,y._`${Le}${(0,M.callValidateCode)(X,N,b.opts.passContext?U.default.this:U.default.self,!("compile"in re&&!w||!1===re.schema))}`,re.modifying)}function ce(Le){var ot;P.if((0,y.not)(null!==(ot=re.valid)&&void 0!==ot?ot:W),Le)}X.block$data(W,function ne(){if(!1===re.errors)F(),re.modifying&&j(X),ce(()=>X.error());else{const Le=re.async?function ue(){const Le=P.let("ruleErrs",null);return P.try(()=>F(y._`await `),ot=>P.assign(W,!1).if(y._`${ot} instanceof ${b.ValidationError}`,()=>P.assign(Le,y._`${ot}.errors`),()=>P.throw(ot))),Le}():function Se(){const Le=y._`${N}.errors`;return P.assign(Le,null),F(y.nil),Le}();re.modifying&&j(X),ce(()=>function O(X,re){const{gen:ie}=X;ie.if(y._`Array.isArray(${re})`,()=>{ie.assign(U.default.vErrors,y._`${U.default.vErrors} === null ? ${re} : ${U.default.vErrors}.concat(${re})`).assign(U.default.errors,y._`${U.default.vErrors}.length`),(0,V.extendErrors)(X)},()=>X.error())}(X,Le))}}),X.ok(null!==(ie=re.valid)&&void 0!==ie?ie:W)},m.validSchemaType=function C(X,re,ie=!1){return!re.length||re.some(P=>"array"===P?Array.isArray(X):"object"===P?X&&"object"==typeof X&&!Array.isArray(X):typeof X==P||ie&&typeof X>"u")},m.validateKeywordUsage=function Z({schema:X,opts:re,self:ie,errSchemaPath:P},A,S){if(Array.isArray(A.keyword)?!A.keyword.includes(S):A.keyword!==S)throw new Error("ajv implementation error");const _=A.dependencies;if(_?.some(w=>!Object.prototype.hasOwnProperty.call(X,w)))throw new Error(`parent schema must have dependencies of ${S}: ${_.join(",")}`);if(A.validateSchema&&!A.validateSchema(X[S])){const b=`keyword "${S}" value is invalid at path "${P}": `+ie.errorsText(A.validateSchema.errors);if("log"!==re.validateSchema)throw new Error(b);ie.logger.error(b)}}},5924(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.extendSubschemaMode=m.extendSubschemaData=m.getSubschema=void 0;const y=R(5432),U=R(7868);m.getSubschema=function M($,{keyword:j,schemaProp:O,schema:D,schemaPath:x,errSchemaPath:C,topSchemaRef:Z}){if(void 0!==j&&void 0!==D)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==j){const X=$.schema[j];return void 0===O?{schema:X,schemaPath:y._`${$.schemaPath}${(0,y.getProperty)(j)}`,errSchemaPath:`${$.errSchemaPath}/${j}`}:{schema:X[O],schemaPath:y._`${$.schemaPath}${(0,y.getProperty)(j)}${(0,y.getProperty)(O)}`,errSchemaPath:`${$.errSchemaPath}/${j}/${(0,U.escapeFragment)(O)}`}}if(void 0!==D){if(void 0===x||void 0===C||void 0===Z)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:D,schemaPath:x,topSchemaRef:Z,errSchemaPath:C}}throw new Error('either "keyword" or "schema" must be passed')},m.extendSubschemaData=function V($,j,{dataProp:O,dataPropType:D,data:x,dataTypes:C,propertyName:Z}){if(void 0!==x&&void 0!==O)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:X}=j;if(void 0!==O){const{errorPath:ie,dataPathArr:P,opts:A}=j;re(X.let("data",y._`${j.data}${(0,y.getProperty)(O)}`,!0)),$.errorPath=y.str`${ie}${(0,U.getErrorPath)(O,D,A.jsPropertySyntax)}`,$.parentDataProperty=y._`${O}`,$.dataPathArr=[...P,$.parentDataProperty]}function re(ie){$.data=ie,$.dataLevel=j.dataLevel+1,$.dataTypes=[],j.definedProperties=new Set,$.parentData=j.data,$.dataNames=[...j.dataNames,ie]}void 0!==x&&(re(x instanceof y.Name?x:X.let("data",x,!0)),void 0!==Z&&($.propertyName=Z)),C&&($.dataTypes=C)},m.extendSubschemaMode=function g($,{jtdDiscriminator:j,jtdMetadata:O,compositeRule:D,createErrors:x,allErrors:C}){void 0!==D&&($.compositeRule=D),void 0!==x&&($.createErrors=x),void 0!==C&&($.allErrors=C),$.jtdDiscriminator=j,$.jtdMetadata=O}},2113(Fe,m,R){"use strict";var y=R(9293).default;Object.defineProperty(m,"__esModule",{value:!0}),m.CodeGen=m.Name=m.nil=m.stringify=m.str=m._=m.KeywordCxt=void 0;var U=R(7157);Object.defineProperty(m,"KeywordCxt",{enumerable:!0,get:function(){return U.KeywordCxt}});var M=R(5432);Object.defineProperty(m,"_",{enumerable:!0,get:function(){return M._}}),Object.defineProperty(m,"str",{enumerable:!0,get:function(){return M.str}}),Object.defineProperty(m,"stringify",{enumerable:!0,get:function(){return M.stringify}}),Object.defineProperty(m,"nil",{enumerable:!0,get:function(){return M.nil}}),Object.defineProperty(m,"Name",{enumerable:!0,get:function(){return M.Name}}),Object.defineProperty(m,"CodeGen",{enumerable:!0,get:function(){return M.CodeGen}});const V=R(9857),g=R(6606),$=R(6093),j=R(7762),O=R(5432),D=R(8222),x=R(3513),C=R(7868),Z=R(3837),X=R(2857),re=(Ze,Ie)=>new RegExp(Ze,Ie);re.code="new RegExp";const ie=["removeAdditional","useDefaults","coerceTypes"],P=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),A={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},S={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(Ze){var Ie,me,z,H,oe,Qe,dt,Et,ln,Mn,ge,Pe,Ve,Ge,He,ft,tn,Yn,Un,Rn,Je,on,Wn,pi,fi;const oi=Ze.strict,Pi=null===(Ie=Ze.code)||void 0===Ie?void 0:Ie.optimize,mi=!0===Pi||void 0===Pi?1:Pi||0,oo=null!==(z=null===(me=Ze.code)||void 0===me?void 0:me.regExp)&&void 0!==z?z:re,yr=null!==(H=Ze.uriResolver)&&void 0!==H?H:X.default;return{strictSchema:null===(Qe=null!==(oe=Ze.strictSchema)&&void 0!==oe?oe:oi)||void 0===Qe||Qe,strictNumbers:null===(Et=null!==(dt=Ze.strictNumbers)&&void 0!==dt?dt:oi)||void 0===Et||Et,strictTypes:null!==(Mn=null!==(ln=Ze.strictTypes)&&void 0!==ln?ln:oi)&&void 0!==Mn?Mn:"log",strictTuples:null!==(Pe=null!==(ge=Ze.strictTuples)&&void 0!==ge?ge:oi)&&void 0!==Pe?Pe:"log",strictRequired:null!==(Ge=null!==(Ve=Ze.strictRequired)&&void 0!==Ve?Ve:oi)&&void 0!==Ge&&Ge,code:Ze.code?{...Ze.code,optimize:mi,regExp:oo}:{optimize:mi,regExp:oo},loopRequired:null!==(He=Ze.loopRequired)&&void 0!==He?He:200,loopEnum:null!==(ft=Ze.loopEnum)&&void 0!==ft?ft:200,meta:null===(tn=Ze.meta)||void 0===tn||tn,messages:null===(Yn=Ze.messages)||void 0===Yn||Yn,inlineRefs:null===(Un=Ze.inlineRefs)||void 0===Un||Un,schemaId:null!==(Rn=Ze.schemaId)&&void 0!==Rn?Rn:"$id",addUsedSchema:null===(Je=Ze.addUsedSchema)||void 0===Je||Je,validateSchema:null===(on=Ze.validateSchema)||void 0===on||on,validateFormats:null===(Wn=Ze.validateFormats)||void 0===Wn||Wn,unicodeRegExp:null===(pi=Ze.unicodeRegExp)||void 0===pi||pi,int32range:null===(fi=Ze.int32range)||void 0===fi||fi,uriResolver:yr}}class b{constructor(Ie={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,Ie=this.opts={...Ie,...w(Ie)};const{es5:me,lines:z}=this.opts.code;this.scope=new O.ValueScope({scope:{},prefixes:P,es5:me,lines:z}),this.logger=function ce(Ze){if(!1===Ze)return F;if(void 0===Ze)return console;if(Ze.log&&Ze.warn&&Ze.error)return Ze;throw new Error("logger must implement log, warn and error methods")}(Ie.logger);const H=Ie.validateFormats;Ie.validateFormats=!1,this.RULES=(0,$.getRules)(),k.call(this,A,Ie,"NOT SUPPORTED"),k.call(this,S,Ie,"DEPRECATED","warn"),this._metaOpts=Se.call(this),Ie.formats&&ne.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),Ie.keywords&&ue.call(this,Ie.keywords),"object"==typeof Ie.meta&&this.addMetaSchema(Ie.meta),W.call(this),Ie.validateFormats=H}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:Ie,meta:me,schemaId:z}=this.opts;let H=Z;"id"===z&&(H={...Z},H.id=H.$id,delete H.$id),me&&Ie&&this.addMetaSchema(H,H[z],!1)}defaultMeta(){const{meta:Ie,schemaId:me}=this.opts;return this.opts.defaultMeta="object"==typeof Ie?Ie[me]||Ie:void 0}validate(Ie,me){let z;if("string"==typeof Ie){if(z=this.getSchema(Ie),!z)throw new Error(`no schema with key or ref "${Ie}"`)}else z=this.compile(Ie);const H=z(me);return"$async"in z||(this.errors=z.errors),H}compile(Ie,me){const z=this._addSchema(Ie,me);return z.validate||this._compileSchemaEnv(z)}compileAsync(Ie,me){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:z}=this.opts;return H.call(this,Ie,me);function H(He,ft){return oe.apply(this,arguments)}function oe(){return(oe=y(function*(He,ft){yield Qe.call(this,He.$schema);const tn=this._addSchema(He,ft);return tn.validate||Et.call(this,tn)})).apply(this,arguments)}function Qe(He){return dt.apply(this,arguments)}function dt(){return(dt=y(function*(He){He&&!this.getSchema(He)&&(yield H.call(this,{$ref:He},!0))})).apply(this,arguments)}function Et(He){return ln.apply(this,arguments)}function ln(){return(ln=y(function*(He){try{return this._compileSchemaEnv(He)}catch(ft){if(!(ft instanceof g.default))throw ft;return Mn.call(this,ft),yield ge.call(this,ft.missingSchema),Et.call(this,He)}})).apply(this,arguments)}function Mn({missingSchema:He,missingRef:ft}){if(this.refs[He])throw new Error(`AnySchema ${He} is loaded but ${ft} cannot be resolved`)}function ge(He){return Pe.apply(this,arguments)}function Pe(){return(Pe=y(function*(He){const ft=yield Ve.call(this,He);this.refs[He]||(yield Qe.call(this,ft.$schema)),this.refs[He]||this.addSchema(ft,He,me)})).apply(this,arguments)}function Ve(He){return Ge.apply(this,arguments)}function Ge(){return(Ge=y(function*(He){const ft=this._loading[He];if(ft)return ft;try{return yield this._loading[He]=z(He)}finally{delete this._loading[He]}})).apply(this,arguments)}}addSchema(Ie,me,z,H=this.opts.validateSchema){if(Array.isArray(Ie)){for(const Qe of Ie)this.addSchema(Qe,void 0,z,H);return this}let oe;if("object"==typeof Ie){const{schemaId:Qe}=this.opts;if(oe=Ie[Qe],void 0!==oe&&"string"!=typeof oe)throw new Error(`schema ${Qe} must be string`)}return me=(0,D.normalizeId)(me||oe),this._checkUnique(me),this.schemas[me]=this._addSchema(Ie,z,me,H,!0),this}addMetaSchema(Ie,me,z=this.opts.validateSchema){return this.addSchema(Ie,me,!0,z),this}validateSchema(Ie,me){if("boolean"==typeof Ie)return!0;let z;if(z=Ie.$schema,void 0!==z&&"string"!=typeof z)throw new Error("$schema must be a string");if(z=z||this.opts.defaultMeta||this.defaultMeta(),!z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const H=this.validate(z,Ie);if(!H&&me){const oe="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(oe);this.logger.error(oe)}return H}getSchema(Ie){let me;for(;"string"==typeof(me=N.call(this,Ie));)Ie=me;if(void 0===me){const{schemaId:z}=this.opts,H=new j.SchemaEnv({schema:{},schemaId:z});if(me=j.resolveSchema.call(this,H,Ie),!me)return;this.refs[Ie]=me}return me.validate||this._compileSchemaEnv(me)}removeSchema(Ie){if(Ie instanceof RegExp)return this._removeAllSchemas(this.schemas,Ie),this._removeAllSchemas(this.refs,Ie),this;switch(typeof Ie){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const me=N.call(this,Ie);return"object"==typeof me&&this._cache.delete(me.schema),delete this.schemas[Ie],delete this.refs[Ie],this}case"object":{this._cache.delete(Ie);let z=Ie[this.opts.schemaId];return z&&(z=(0,D.normalizeId)(z),delete this.schemas[z],delete this.refs[z]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(Ie){for(const me of Ie)this.addKeyword(me);return this}addKeyword(Ie,me){let z;if("string"==typeof Ie)z=Ie,"object"==typeof me&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),me.keyword=z);else{if("object"!=typeof Ie||void 0!==me)throw new Error("invalid addKeywords parameters");if(z=(me=Ie).keyword,Array.isArray(z)&&!z.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(ot.call(this,z,me),!me)return(0,C.eachItem)(z,oe=>Pt.call(this,oe)),this;Pn.call(this,me);const H={...me,type:(0,x.getJSONTypes)(me.type),schemaType:(0,x.getJSONTypes)(me.schemaType)};return(0,C.eachItem)(z,0===H.type.length?oe=>Pt.call(this,oe,H):oe=>H.type.forEach(Qe=>Pt.call(this,oe,H,Qe))),this}getKeyword(Ie){const me=this.RULES.all[Ie];return"object"==typeof me?me.definition:!!me}removeKeyword(Ie){const{RULES:me}=this;delete me.keywords[Ie],delete me.all[Ie];for(const z of me.rules){const H=z.rules.findIndex(oe=>oe.keyword===Ie);H>=0&&z.rules.splice(H,1)}return this}addFormat(Ie,me){return"string"==typeof me&&(me=new RegExp(me)),this.formats[Ie]=me,this}errorsText(Ie=this.errors,{separator:me=", ",dataVar:z="data"}={}){return Ie&&0!==Ie.length?Ie.map(H=>`${z}${H.instancePath} ${H.message}`).reduce((H,oe)=>H+me+oe):"No errors"}$dataMetaSchema(Ie,me){const z=this.RULES.all;Ie=JSON.parse(JSON.stringify(Ie));for(const H of me){const oe=H.split("/").slice(1);let Qe=Ie;for(const dt of oe)Qe=Qe[dt];for(const dt in z){const Et=z[dt];if("object"!=typeof Et)continue;const{$data:ln}=Et.definition,Mn=Qe[dt];ln&&Mn&&(Qe[dt]=or(Mn))}}return Ie}_removeAllSchemas(Ie,me){for(const z in Ie){const H=Ie[z];(!me||me.test(z))&&("string"==typeof H?delete Ie[z]:H&&!H.meta&&(this._cache.delete(H.schema),delete Ie[z]))}}_addSchema(Ie,me,z,H=this.opts.validateSchema,oe=this.opts.addUsedSchema){let Qe;const{schemaId:dt}=this.opts;if("object"==typeof Ie)Qe=Ie[dt];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof Ie)throw new Error("schema must be object or boolean")}let Et=this._cache.get(Ie);if(void 0!==Et)return Et;z=(0,D.normalizeId)(Qe||z);const ln=D.getSchemaRefs.call(this,Ie,z);return Et=new j.SchemaEnv({schema:Ie,schemaId:dt,meta:me,baseId:z,localRefs:ln}),this._cache.set(Et.schema,Et),oe&&!z.startsWith("#")&&(z&&this._checkUnique(z),this.refs[z]=Et),H&&this.validateSchema(Ie,!0),Et}_checkUnique(Ie){if(this.schemas[Ie]||this.refs[Ie])throw new Error(`schema with key or id "${Ie}" already exists`)}_compileSchemaEnv(Ie){if(Ie.meta?this._compileMetaSchema(Ie):j.compileSchema.call(this,Ie),!Ie.validate)throw new Error("ajv implementation error");return Ie.validate}_compileMetaSchema(Ie){const me=this.opts;this.opts=this._metaOpts;try{j.compileSchema.call(this,Ie)}finally{this.opts=me}}}function k(Ze,Ie,me,z="error"){for(const H in Ze)H in Ie&&this.logger[z](`${me}: option ${H}. ${Ze[H]}`)}function N(Ze){return Ze=(0,D.normalizeId)(Ze),this.schemas[Ze]||this.refs[Ze]}function W(){const Ze=this.opts.schemas;if(Ze)if(Array.isArray(Ze))this.addSchema(Ze);else for(const Ie in Ze)this.addSchema(Ze[Ie],Ie)}function ne(){for(const Ze in this.opts.formats){const Ie=this.opts.formats[Ze];Ie&&this.addFormat(Ze,Ie)}}function ue(Ze){if(Array.isArray(Ze))this.addVocabulary(Ze);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const Ie in Ze){const me=Ze[Ie];me.keyword||(me.keyword=Ie),this.addKeyword(me)}}}function Se(){const Ze={...this.opts};for(const Ie of ie)delete Ze[Ie];return Ze}b.ValidationError=V.default,b.MissingRefError=g.default,m.default=b;const F={log(){},warn(){},error(){}},Le=/^[a-z_$][a-z0-9_$:-]*$/i;function ot(Ze,Ie){const{RULES:me}=this;if((0,C.eachItem)(Ze,z=>{if(me.keywords[z])throw new Error(`Keyword ${z} is already defined`);if(!Le.test(z))throw new Error(`Keyword ${z} has invalid name`)}),Ie&&Ie.$data&&!("code"in Ie)&&!("validate"in Ie))throw new Error('$data keyword must have "code" or "validate" function')}function Pt(Ze,Ie,me){var z;const H=Ie?.post;if(me&&H)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:oe}=this;let Qe=H?oe.post:oe.rules.find(({type:Et})=>Et===me);if(Qe||(Qe={type:me,rules:[]},oe.rules.push(Qe)),oe.keywords[Ze]=!0,!Ie)return;const dt={keyword:Ze,definition:{...Ie,type:(0,x.getJSONTypes)(Ie.type),schemaType:(0,x.getJSONTypes)(Ie.schemaType)}};Ie.before?At.call(this,Qe,dt,Ie.before):Qe.rules.push(dt),oe.all[Ze]=dt,null===(z=Ie.implements)||void 0===z||z.forEach(Et=>this.addKeyword(Et))}function At(Ze,Ie,me){const z=Ze.rules.findIndex(H=>H.keyword===me);z>=0?Ze.rules.splice(z,0,Ie):(Ze.rules.push(Ie),this.logger.warn(`rule ${me} is not defined`))}function Pn(Ze){let{metaSchema:Ie}=Ze;void 0!==Ie&&(Ze.$data&&this.opts.$data&&(Ie=or(Ie)),Ze.validateSchema=this.compile(Ie,!0))}const Nt={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function or(Ze){return{anyOf:[Ze,Nt]}}},4195(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(362);y.code='require("ajv/dist/runtime/equal").default',m.default=y},1506(Fe,m){"use strict";function R(y){const U=y.length;let g,M=0,V=0;for(;V<U;)M++,g=y.charCodeAt(V++),g>=55296&&g<=56319&&V<U&&(g=y.charCodeAt(V),56320==(64512&g)&&V++);return M}Object.defineProperty(m,"__esModule",{value:!0}),m.default=R,R.code='require("ajv/dist/runtime/ucs2length").default'},2857(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(8280);y.code='require("ajv/dist/runtime/uri").default',m.default=y},9857(Fe,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0});class R extends Error{constructor(U){super("validation failed"),this.errors=U,this.ajv=this.validation=!0}}m.default=R},2676(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.validateAdditionalItems=void 0;const y=R(5432),U=R(7868),V={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:$}})=>y.str`must NOT have more than ${$} items`,params:({params:{len:$}})=>y._`{limit: ${$}}`},code($){const{parentSchema:j,it:O}=$,{items:D}=j;Array.isArray(D)?g($,D):(0,U.checkStrictMode)(O,'"additionalItems" is ignored when "items" is not an array of schemas')}};function g($,j){const{gen:O,schema:D,data:x,keyword:C,it:Z}=$;Z.items=!0;const X=O.const("len",y._`${x}.length`);if(!1===D)$.setParams({len:j.length}),$.pass(y._`${X} <= ${j.length}`);else if("object"==typeof D&&!(0,U.alwaysValidSchema)(Z,D)){const ie=O.var("valid",y._`${X} <= ${j.length}`);O.if((0,y.not)(ie),()=>function re(ie){O.forRange("i",j.length,X,P=>{$.subschema({keyword:C,dataProp:P,dataPropType:U.Type.Num},ie),Z.allErrors||O.if((0,y.not)(ie),()=>O.break())})}(ie)),$.ok(ie)}}m.validateAdditionalItems=g,m.default=V},4491(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(2240),U=R(5432),M=R(2682),V=R(7868);m.default={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:j})=>U._`{additionalProperty: ${j.additionalProperty}}`},code(j){const{gen:O,schema:D,parentSchema:x,data:C,errsCount:Z,it:X}=j;if(!Z)throw new Error("ajv implementation error");const{allErrors:re,opts:ie}=X;if(X.props=!0,"all"!==ie.removeAdditional&&(0,V.alwaysValidSchema)(X,D))return;const P=(0,y.allSchemaProperties)(x.properties),A=(0,y.allSchemaProperties)(x.patternProperties);function w(N){O.code(U._`delete ${C}[${N}]`)}function b(N){if("all"===ie.removeAdditional||ie.removeAdditional&&!1===D)w(N);else{if(!1===D)return j.setParams({additionalProperty:N}),j.error(),void(re||O.break());if("object"==typeof D&&!(0,V.alwaysValidSchema)(X,D)){const W=O.name("valid");"failing"===ie.removeAdditional?(k(N,W,!1),O.if((0,U.not)(W),()=>{j.reset(),w(N)})):(k(N,W),re||O.if((0,U.not)(W),()=>O.break()))}}}function k(N,W,ne){const ue={keyword:"additionalProperties",dataProp:N,dataPropType:V.Type.Str};!1===ne&&Object.assign(ue,{compositeRule:!0,createErrors:!1,allErrors:!1}),j.subschema(ue,W)}(function S(){O.forIn("key",C,N=>{P.length||A.length?O.if(function _(N){let W;if(P.length>8){const ne=(0,V.schemaRefOrVal)(X,x.properties,"properties");W=(0,y.isOwnProperty)(O,ne,N)}else W=P.length?(0,U.or)(...P.map(ne=>U._`${N} === ${ne}`)):U.nil;return A.length&&(W=(0,U.or)(W,...A.map(ne=>U._`${(0,y.usePattern)(j,ne)}.test(${N})`))),(0,U.not)(W)}(N),()=>b(N)):b(N)})})(),j.ok(U._`${Z} === ${M.default.errors}`)}}},2937(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(7868);m.default={keyword:"allOf",schemaType:"array",code(M){const{gen:V,schema:g,it:$}=M;if(!Array.isArray(g))throw new Error("ajv implementation error");const j=V.name("valid");g.forEach((O,D)=>{if((0,y.alwaysValidSchema)($,O))return;const x=M.subschema({keyword:"allOf",schemaProp:D},j);M.ok(j),M.mergeEvaluated(x)})}}},3968(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const U={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:R(2240).validateUnion,error:{message:"must match a schema in anyOf"}};m.default=U},6066(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432),U=R(7868);m.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:g,max:$}})=>void 0===$?y.str`must contain at least ${g} valid item(s)`:y.str`must contain at least ${g} and no more than ${$} valid item(s)`,params:({params:{min:g,max:$}})=>void 0===$?y._`{minContains: ${g}}`:y._`{minContains: ${g}, maxContains: ${$}}`},code(g){const{gen:$,schema:j,parentSchema:O,data:D,it:x}=g;let C,Z;const{minContains:X,maxContains:re}=O;x.opts.next?(C=void 0===X?1:X,Z=re):C=1;const ie=$.const("len",y._`${D}.length`);if(g.setParams({min:C,max:Z}),void 0===Z&&0===C)return void(0,U.checkStrictMode)(x,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==Z&&C>Z)return(0,U.checkStrictMode)(x,'"minContains" > "maxContains" is always invalid'),void g.fail();if((0,U.alwaysValidSchema)(x,j)){let w=y._`${ie} >= ${C}`;return void 0!==Z&&(w=y._`${w} && ${ie} <= ${Z}`),void g.pass(w)}x.items=!0;const P=$.name("valid");function A(){const w=$.name("_valid"),b=$.let("count",0);S(w,()=>$.if(w,()=>function _(w){$.code(y._`${w}++`),void 0===Z?$.if(y._`${w} >= ${C}`,()=>$.assign(P,!0).break()):($.if(y._`${w} > ${Z}`,()=>$.assign(P,!1).break()),1===C?$.assign(P,!0):$.if(y._`${w} >= ${C}`,()=>$.assign(P,!0)))}(b)))}function S(w,b){$.forRange("i",0,ie,k=>{g.subschema({keyword:"contains",dataProp:k,dataPropType:U.Type.Num,compositeRule:!0},w),b()})}void 0===Z&&1===C?S(P,()=>$.if(P,()=>$.break())):0===C?($.let(P,!0),void 0!==Z&&$.if(y._`${D}.length > 0`,A)):($.let(P,!1),A()),g.result(P,()=>g.reset())}}},9310(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.validateSchemaDeps=m.validatePropertyDeps=m.error=void 0;const y=R(5432),U=R(7868),M=R(2240);m.error={message:({params:{property:O,depsCount:D,deps:x}})=>y.str`must have ${1===D?"property":"properties"} ${x} when property ${O} is present`,params:({params:{property:O,depsCount:D,deps:x,missingProperty:C}})=>y._`{property: ${O},
5
+ missingProperty: ${C},
6
+ depsCount: ${D},
7
+ deps: ${x}}`};const V={keyword:"dependencies",type:"object",schemaType:"object",error:m.error,code(O){const[D,x]=function g({schema:O}){const D={},x={};for(const C in O)"__proto__"!==C&&((Array.isArray(O[C])?D:x)[C]=O[C]);return[D,x]}(O);$(O,D),j(O,x)}};function $(O,D=O.schema){const{gen:x,data:C,it:Z}=O;if(0===Object.keys(D).length)return;const X=x.let("missing");for(const re in D){const ie=D[re];if(0===ie.length)continue;const P=(0,M.propertyInData)(x,C,re,Z.opts.ownProperties);O.setParams({property:re,depsCount:ie.length,deps:ie.join(", ")}),Z.allErrors?x.if(P,()=>{for(const A of ie)(0,M.checkReportMissingProp)(O,A)}):(x.if(y._`${P} && (${(0,M.checkMissingProp)(O,ie,X)})`),(0,M.reportMissingProp)(O,X),x.else())}}function j(O,D=O.schema){const{gen:x,data:C,keyword:Z,it:X}=O,re=x.name("valid");for(const ie in D)(0,U.alwaysValidSchema)(X,D[ie])||(x.if((0,M.propertyInData)(x,C,ie,X.opts.ownProperties),()=>{const P=O.subschema({keyword:Z,schemaProp:ie},re);O.mergeValidEvaluated(P,re)},()=>x.var(re,!0)),O.ok(re))}m.validatePropertyDeps=$,m.validateSchemaDeps=j,m.default=V},3884(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432),U=R(7868);function g($,j){const O=$.schema[j];return void 0!==O&&!(0,U.alwaysValidSchema)($,O)}m.default={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:$})=>y.str`must match "${$.ifClause}" schema`,params:({params:$})=>y._`{failingKeyword: ${$.ifClause}}`},code($){const{gen:j,parentSchema:O,it:D}=$;void 0===O.then&&void 0===O.else&&(0,U.checkStrictMode)(D,'"if" without "then" and "else" is ignored');const x=g(D,"then"),C=g(D,"else");if(!x&&!C)return;const Z=j.let("valid",!0),X=j.name("_valid");if(function re(){const P=$.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},X);$.mergeEvaluated(P)}(),$.reset(),x&&C){const P=j.let("ifClause");$.setParams({ifClause:P}),j.if(X,ie("then",P),ie("else",P))}else x?j.if(X,ie("then")):j.if((0,y.not)(X),ie("else"));function ie(P,A){return()=>{const S=$.subschema({keyword:P},X);j.assign(Z,X),$.mergeValidEvaluated(S,Z),A?j.assign(A,y._`${P}`):$.setParams({ifClause:P})}}$.pass(Z,()=>$.error(!0))}}},9795(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(2676),U=R(207),M=R(3403),V=R(8555),g=R(6066),$=R(9310),j=R(2944),O=R(4491),D=R(8758),x=R(5852),C=R(6970),Z=R(3968),X=R(2646),re=R(2937),ie=R(3884),P=R(3337);m.default=function A(S=!1){const _=[C.default,Z.default,X.default,re.default,ie.default,P.default,j.default,O.default,$.default,D.default,x.default];return S?_.push(U.default,V.default):_.push(y.default,M.default),_.push(g.default),_}},3403(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.validateTuple=void 0;const y=R(5432),U=R(7868),M=R(2240),V={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code($){const{schema:j,it:O}=$;if(Array.isArray(j))return g($,"additionalItems",j);O.items=!0,!(0,U.alwaysValidSchema)(O,j)&&$.ok((0,M.validateArray)($))}};function g($,j,O=$.schema){const{gen:D,parentSchema:x,data:C,keyword:Z,it:X}=$;(function P(A){const{opts:S,errSchemaPath:_}=X,w=O.length;S.strictTuples&&!(w===A.minItems&&(w===A.maxItems||!1===A[j]))&&(0,U.checkStrictMode)(X,`"${Z}" is ${w}-tuple, but minItems or maxItems/${j} are not specified or different at path "${_}"`,S.strictTuples)})(x),X.opts.unevaluated&&O.length&&!0!==X.items&&(X.items=U.mergeEvaluated.items(D,O.length,X.items));const re=D.name("valid"),ie=D.const("len",y._`${C}.length`);O.forEach((A,S)=>{(0,U.alwaysValidSchema)(X,A)||(D.if(y._`${ie} > ${S}`,()=>$.subschema({keyword:Z,schemaProp:S,dataProp:S},re)),$.ok(re))})}m.validateTuple=g,m.default=V},8555(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432),U=R(7868),M=R(2240),V=R(2676);m.default={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:j}})=>y.str`must NOT have more than ${j} items`,params:({params:{len:j}})=>y._`{limit: ${j}}`},code(j){const{schema:O,parentSchema:D,it:x}=j,{prefixItems:C}=D;x.items=!0,!(0,U.alwaysValidSchema)(x,O)&&(C?(0,V.validateAdditionalItems)(j,C):j.ok((0,M.validateArray)(j)))}}},6970(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(7868);m.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(M){const{gen:V,schema:g,it:$}=M;if((0,y.alwaysValidSchema)($,g))return void M.fail();const j=V.name("valid");M.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},j),M.failResult(j,()=>M.reset(),()=>M.error())},error:{message:"must NOT be valid"}}},2646(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432),U=R(7868);m.default={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:g})=>y._`{passingSchemas: ${g.passing}}`},code(g){const{gen:$,schema:j,parentSchema:O,it:D}=g;if(!Array.isArray(j))throw new Error("ajv implementation error");if(D.opts.discriminator&&O.discriminator)return;const x=j,C=$.let("valid",!1),Z=$.let("passing",null),X=$.name("_valid");g.setParams({passing:Z}),$.block(function re(){x.forEach((ie,P)=>{let A;(0,U.alwaysValidSchema)(D,ie)?$.var(X,!0):A=g.subschema({keyword:"oneOf",schemaProp:P,compositeRule:!0},X),P>0&&$.if(y._`${X} && ${C}`).assign(C,!1).assign(Z,y._`[${Z}, ${P}]`).else(),$.if(X,()=>{$.assign(C,!0),$.assign(Z,P),A&&g.mergeEvaluated(A,y.Name)})})}),g.result(C,()=>g.reset(),()=>g.error(!0))}}},5852(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(2240),U=R(5432),M=R(7868),V=R(7868);m.default={keyword:"patternProperties",type:"object",schemaType:"object",code($){const{gen:j,schema:O,data:D,parentSchema:x,it:C}=$,{opts:Z}=C,X=(0,y.allSchemaProperties)(O),re=X.filter(b=>(0,M.alwaysValidSchema)(C,O[b]));if(0===X.length||re.length===X.length&&(!C.opts.unevaluated||!0===C.props))return;const ie=Z.strictSchema&&!Z.allowMatchingProperties&&x.properties,P=j.name("valid");!0!==C.props&&!(C.props instanceof U.Name)&&(C.props=(0,V.evaluatedPropsToName)(j,C.props));const{props:A}=C;function _(b){for(const k in ie)new RegExp(b).test(k)&&(0,M.checkStrictMode)(C,`property ${k} matches pattern ${b} (use allowMatchingProperties)`)}function w(b){j.forIn("key",D,k=>{j.if(U._`${(0,y.usePattern)($,b)}.test(${k})`,()=>{const N=re.includes(b);N||$.subschema({keyword:"patternProperties",schemaProp:b,dataProp:k,dataPropType:V.Type.Str},P),C.opts.unevaluated&&!0!==A?j.assign(U._`${A}[${k}]`,!0):!N&&!C.allErrors&&j.if((0,U.not)(P),()=>j.break())})})}!function S(){for(const b of X)ie&&_(b),C.allErrors?w(b):(j.var(P,!0),w(b),j.if(P))}()}}},207(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(3403);m.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:M=>(0,y.validateTuple)(M,"items")}},8758(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(7157),U=R(2240),M=R(7868),V=R(4491);m.default={keyword:"properties",type:"object",schemaType:"object",code($){const{gen:j,schema:O,parentSchema:D,data:x,it:C}=$;"all"===C.opts.removeAdditional&&void 0===D.additionalProperties&&V.default.code(new y.KeywordCxt(C,V.default,"additionalProperties"));const Z=(0,U.allSchemaProperties)(O);for(const A of Z)C.definedProperties.add(A);C.opts.unevaluated&&Z.length&&!0!==C.props&&(C.props=M.mergeEvaluated.props(j,(0,M.toHash)(Z),C.props));const X=Z.filter(A=>!(0,M.alwaysValidSchema)(C,O[A]));if(0===X.length)return;const re=j.name("valid");for(const A of X)ie(A)?P(A):(j.if((0,U.propertyInData)(j,x,A,C.opts.ownProperties)),P(A),C.allErrors||j.else().var(re,!0),j.endIf()),$.it.definedProperties.add(A),$.ok(re);function ie(A){return C.opts.useDefaults&&!C.compositeRule&&void 0!==O[A].default}function P(A){$.subschema({keyword:"properties",schemaProp:A,dataProp:A},re)}}}},2944(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432),U=R(7868);m.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:g})=>y._`{propertyName: ${g.propertyName}}`},code(g){const{gen:$,schema:j,data:O,it:D}=g;if((0,U.alwaysValidSchema)(D,j))return;const x=$.name("valid");$.forIn("key",O,C=>{g.setParams({propertyName:C}),g.subschema({keyword:"propertyNames",data:C,dataTypes:["string"],propertyName:C,compositeRule:!0},x),$.if((0,y.not)(x),()=>{g.error(!0),D.allErrors||$.break()})}),g.ok(x)}}},3337(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(7868);m.default={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:M,parentSchema:V,it:g}){void 0===V.if&&(0,y.checkStrictMode)(g,`"${M}" without "if" is ignored`)}}},2240(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.validateUnion=m.validateArray=m.usePattern=m.callValidateCode=m.schemaProperties=m.allSchemaProperties=m.noPropertyInData=m.propertyInData=m.isOwnProperty=m.hasPropFunc=m.reportMissingProp=m.checkMissingProp=m.checkReportMissingProp=void 0;const y=R(5432),U=R(7868),M=R(2682),V=R(7868);function O(_){return _.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:y._`Object.prototype.hasOwnProperty`})}function D(_,w,b){return y._`${O(_)}.call(${w}, ${b})`}function C(_,w,b,k){const N=y._`${w}${(0,y.getProperty)(b)} === undefined`;return k?(0,y.or)(N,(0,y.not)(D(_,w,b))):N}function Z(_){return _?Object.keys(_).filter(w=>"__proto__"!==w):[]}m.checkReportMissingProp=function g(_,w){const{gen:b,data:k,it:N}=_;b.if(C(b,k,w,N.opts.ownProperties),()=>{_.setParams({missingProperty:y._`${w}`},!0),_.error()})},m.checkMissingProp=function $({gen:_,data:w,it:{opts:b}},k,N){return(0,y.or)(...k.map(W=>(0,y.and)(C(_,w,W,b.ownProperties),y._`${N} = ${W}`)))},m.reportMissingProp=function j(_,w){_.setParams({missingProperty:w},!0),_.error()},m.hasPropFunc=O,m.isOwnProperty=D,m.propertyInData=function x(_,w,b,k){const N=y._`${w}${(0,y.getProperty)(b)} !== undefined`;return k?y._`${N} && ${D(_,w,b)}`:N},m.noPropertyInData=C,m.allSchemaProperties=Z,m.schemaProperties=function X(_,w){return Z(w).filter(b=>!(0,U.alwaysValidSchema)(_,w[b]))},m.callValidateCode=function re({schemaCode:_,data:w,it:{gen:b,topSchemaRef:k,schemaPath:N,errorPath:W},it:ne},ue,Se,F){const ce=F?y._`${_}, ${w}, ${k}${N}`:w,Le=[[M.default.instancePath,(0,y.strConcat)(M.default.instancePath,W)],[M.default.parentData,ne.parentData],[M.default.parentDataProperty,ne.parentDataProperty],[M.default.rootData,M.default.rootData]];ne.opts.dynamicRef&&Le.push([M.default.dynamicAnchors,M.default.dynamicAnchors]);const ot=y._`${ce}, ${b.object(...Le)}`;return Se!==y.nil?y._`${ue}.call(${Se}, ${ot})`:y._`${ue}(${ot})`};const ie=y._`new RegExp`;m.usePattern=function P({gen:_,it:{opts:w}},b){const k=w.unicodeRegExp?"u":"",{regExp:N}=w.code,W=N(b,k);return _.scopeValue("pattern",{key:W.toString(),ref:W,code:y._`${"new RegExp"===N.code?ie:(0,V.useFunc)(_,N)}(${b}, ${k})`})},m.validateArray=function A(_){const{gen:w,data:b,keyword:k,it:N}=_,W=w.name("valid");if(N.allErrors){const ue=w.let("valid",!0);return ne(()=>w.assign(ue,!1)),ue}return w.var(W,!0),ne(()=>w.break()),W;function ne(ue){const Se=w.const("len",y._`${b}.length`);w.forRange("i",0,Se,F=>{_.subschema({keyword:k,dataProp:F,dataPropType:U.Type.Num},W),w.if((0,y.not)(W),ue)})}},m.validateUnion=function S(_){const{gen:w,schema:b,keyword:k,it:N}=_;if(!Array.isArray(b))throw new Error("ajv implementation error");if(b.some(Se=>(0,U.alwaysValidSchema)(N,Se))&&!N.opts.unevaluated)return;const ne=w.let("valid",!1),ue=w.name("_valid");w.block(()=>b.forEach((Se,F)=>{const ce=_.subschema({keyword:k,schemaProp:F,compositeRule:!0},ue);w.assign(ne,y._`${ne} || ${ue}`),_.mergeValidEvaluated(ce,ue)||w.if((0,y.not)(ne))})),_.result(ne,()=>_.reset(),()=>_.error(!0))}},3260(Fe,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.default={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}},6281(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(3260),U=R(1680);m.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",y.default,U.default]},1680(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.callRef=m.getValidate=void 0;const y=R(6606),U=R(2240),M=R(5432),V=R(2682),g=R(7762),$=R(7868),j={keyword:"$ref",schemaType:"string",code(x){const{gen:C,schema:Z,it:X}=x,{baseId:re,schemaEnv:ie,validateName:P,opts:A,self:S}=X,{root:_}=ie;if(("#"===Z||"#/"===Z)&&re===_.baseId)return function b(){if(ie===_)return D(x,P,ie,ie.$async);const W=C.scopeValue("root",{ref:_});return D(x,M._`${W}.validate`,_,_.$async)}();const w=g.resolveRef.call(S,_,re,Z);if(void 0===w)throw new y.default(X.opts.uriResolver,re,Z);return w instanceof g.SchemaEnv?function k(W){const ne=O(x,W);D(x,ne,W,W.$async)}(w):function N(W){const ne=C.scopeValue("schema",!0===A.code.source?{ref:W,code:(0,M.stringify)(W)}:{ref:W}),ue=C.name("valid"),Se=x.subschema({schema:W,dataTypes:[],schemaPath:M.nil,topSchemaRef:ne,errSchemaPath:Z},ue);x.mergeEvaluated(Se),x.ok(ue)}(w)}};function O(x,C){const{gen:Z}=x;return C.validate?Z.scopeValue("validate",{ref:C.validate}):M._`${Z.scopeValue("wrapper",{ref:C})}.validate`}function D(x,C,Z,X){const{gen:re,it:ie}=x,{allErrors:P,schemaEnv:A,opts:S}=ie,_=S.passContext?V.default.this:M.nil;function k(W){const ne=M._`${W}.errors`;re.assign(V.default.vErrors,M._`${V.default.vErrors} === null ? ${ne} : ${V.default.vErrors}.concat(${ne})`),re.assign(V.default.errors,M._`${V.default.vErrors}.length`)}function N(W){var ne;if(!ie.opts.unevaluated)return;const ue=null===(ne=Z?.validate)||void 0===ne?void 0:ne.evaluated;if(!0!==ie.props)if(ue&&!ue.dynamicProps)void 0!==ue.props&&(ie.props=$.mergeEvaluated.props(re,ue.props,ie.props));else{const Se=re.var("props",M._`${W}.evaluated.props`);ie.props=$.mergeEvaluated.props(re,Se,ie.props,M.Name)}if(!0!==ie.items)if(ue&&!ue.dynamicItems)void 0!==ue.items&&(ie.items=$.mergeEvaluated.items(re,ue.items,ie.items));else{const Se=re.var("items",M._`${W}.evaluated.items`);ie.items=$.mergeEvaluated.items(re,Se,ie.items,M.Name)}}X?function w(){if(!A.$async)throw new Error("async schema referenced by sync schema");const W=re.let("valid");re.try(()=>{re.code(M._`await ${(0,U.callValidateCode)(x,C,_)}`),N(C),P||re.assign(W,!0)},ne=>{re.if(M._`!(${ne} instanceof ${ie.ValidationError})`,()=>re.throw(ne)),k(ne),P||re.assign(W,!1)}),x.ok(W)}():function b(){x.result((0,U.callValidateCode)(x,C,_),()=>N(C),()=>k(C))}()}m.getValidate=O,m.callRef=D,m.default=j},8058(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432),U=R(7543),M=R(7762),V=R(6606),g=R(7868);m.default={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:O,tagName:D}})=>O===U.DiscrError.Tag?`tag "${D}" must be string`:`value of tag "${D}" must be in oneOf`,params:({params:{discrError:O,tag:D,tagName:x}})=>y._`{error: ${O}, tag: ${x}, tagValue: ${D}}`},code(O){const{gen:D,data:x,schema:C,parentSchema:Z,it:X}=O,{oneOf:re}=Z;if(!X.opts.discriminator)throw new Error("discriminator: requires discriminator option");const ie=C.propertyName;if("string"!=typeof ie)throw new Error("discriminator: requires propertyName");if(C.mapping)throw new Error("discriminator: mapping is not supported");if(!re)throw new Error("discriminator: requires oneOf keyword");const P=D.let("valid",!1),A=D.const("tag",y._`${x}${(0,y.getProperty)(ie)}`);function _(b){const k=D.name("valid"),N=O.subschema({keyword:"oneOf",schemaProp:b},k);return O.mergeEvaluated(N,y.Name),k}D.if(y._`typeof ${A} == "string"`,()=>function S(){const b=function w(){var b;const k={},N=ne(Z);let W=!0;for(let F=0;F<re.length;F++){let ce=re[F];if(ce?.$ref&&!(0,g.schemaHasRulesButRef)(ce,X.self.RULES)){const ot=ce.$ref;if(ce=M.resolveRef.call(X.self,X.schemaEnv.root,X.baseId,ot),ce instanceof M.SchemaEnv&&(ce=ce.schema),void 0===ce)throw new V.default(X.opts.uriResolver,X.baseId,ot)}const Le=null===(b=ce?.properties)||void 0===b?void 0:b[ie];if("object"!=typeof Le)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${ie}"`);W=W&&(N||ne(ce)),ue(Le,F)}if(!W)throw new Error(`discriminator: "${ie}" must be required`);return k;function ne({required:F}){return Array.isArray(F)&&F.includes(ie)}function ue(F,ce){if(F.const)Se(F.const,ce);else{if(!F.enum)throw new Error(`discriminator: "properties/${ie}" must have "const" or "enum"`);for(const Le of F.enum)Se(Le,ce)}}function Se(F,ce){if("string"!=typeof F||F in k)throw new Error(`discriminator: "${ie}" values must be unique strings`);k[F]=ce}}();D.if(!1);for(const k in b)D.elseIf(y._`${A} === ${k}`),D.assign(P,_(b[k]));D.else(),O.error(!1,{discrError:U.DiscrError.Mapping,tag:A,tagName:ie}),D.endIf()}(),()=>O.error(!1,{discrError:U.DiscrError.Tag,tag:A,tagName:ie})),O.ok(P)}}},7543(Fe,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.DiscrError=void 0;var R=function(y){return y.Tag="tag",y.Mapping="mapping",y}(R||(m.DiscrError=R={}))},457(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(6281),U=R(7085),M=R(9795),V=R(5309),g=R(3880),$=[y.default,U.default,(0,M.default)(),V.default,g.metadataVocabulary,g.contentVocabulary];m.default=$},8361(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432);m.default={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:V})=>y.str`must match format "${V}"`,params:({schemaCode:V})=>y._`{format: ${V}}`},code(V,g){const{gen:$,data:j,$data:O,schema:D,schemaCode:x,it:C}=V,{opts:Z,errSchemaPath:X,schemaEnv:re,self:ie}=C;Z.validateFormats&&(O?function P(){const S=$.scopeValue("formats",{ref:ie.formats,code:Z.code.formats}),_=$.const("fDef",y._`${S}[${x}]`),w=$.let("fType"),b=$.let("format");$.if(y._`typeof ${_} == "object" && !(${_} instanceof RegExp)`,()=>$.assign(w,y._`${_}.type || "string"`).assign(b,y._`${_}.validate`),()=>$.assign(w,y._`"string"`).assign(b,_)),V.fail$data((0,y.or)(function k(){return!1===Z.strictSchema?y.nil:y._`${x} && !${b}`}(),function N(){const W=re.$async?y._`(${_}.async ? await ${b}(${j}) : ${b}(${j}))`:y._`${b}(${j})`,ne=y._`(typeof ${b} == "function" ? ${W} : ${b}.test(${j}))`;return y._`${b} && ${b} !== true && ${w} === ${g} && !${ne}`}()))}():function A(){const S=ie.formats[D];if(!S)return void function k(){if(!1!==Z.strictSchema)throw new Error(ne());function ne(){return`unknown format "${D}" ignored in schema at path "${X}"`}ie.logger.warn(ne())}();if(!0===S)return;const[_,w,b]=function N(ne){const ue=ne instanceof RegExp?(0,y.regexpCode)(ne):Z.code.formats?y._`${Z.code.formats}${(0,y.getProperty)(D)}`:void 0,Se=$.scopeValue("formats",{key:D,ref:ne,code:ue});return"object"!=typeof ne||ne instanceof RegExp?["string",ne,Se]:[ne.type||"string",ne.validate,y._`${Se}.validate`]}(S);_===g&&V.pass(function W(){if("object"==typeof S&&!(S instanceof RegExp)&&S.async){if(!re.$async)throw new Error("async format in sync schema");return y._`await ${b}(${j})`}return"function"==typeof w?y._`${b}(${j})`:y._`${b}.test(${j})`}())}())}}},5309(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const U=[R(8361).default];m.default=U},3880(Fe,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.contentVocabulary=m.metadataVocabulary=void 0,m.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],m.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},7438(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432),U=R(7868),M=R(4195);m.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:$})=>y._`{allowedValue: ${$}}`},code($){const{gen:j,data:O,$data:D,schemaCode:x,schema:C}=$;D||C&&"object"==typeof C?$.fail$data(y._`!${(0,U.useFunc)(j,M.default)}(${O}, ${x})`):$.fail(y._`${C} !== ${O}`)}}},7956(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432),U=R(7868),M=R(4195);m.default={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:$})=>y._`{allowedValues: ${$}}`},code($){const{gen:j,data:O,$data:D,schema:x,schemaCode:C,it:Z}=$;if(!D&&0===x.length)throw new Error("enum must have non-empty array");let re;const ie=()=>re??(re=(0,U.useFunc)(j,M.default));let P;if(x.length>=Z.opts.loopEnum||D)P=j.let("valid"),$.block$data(P,function A(){j.assign(P,!1),j.forOf("v",C,_=>j.if(y._`${ie()}(${O}, ${_})`,()=>j.assign(P,!0).break()))});else{if(!Array.isArray(x))throw new Error("ajv implementation error");const _=j.const("vSchema",C);P=(0,y.or)(...x.map((w,b)=>function S(_,w){const b=x[w];return"object"==typeof b&&null!==b?y._`${ie()}(${O}, ${_}[${w}])`:y._`${O} === ${b}`}(_,b)))}$.pass(P)}}},7085(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(9807),U=R(776),M=R(5854),V=R(8675),g=R(1379),$=R(4620),j=R(4812),O=R(3632),D=R(7438),x=R(7956);m.default=[y.default,U.default,M.default,V.default,g.default,$.default,j.default,O.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},D.default,x.default]},4812(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432);m.default={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:V,schemaCode:g})=>y.str`must NOT have ${"maxItems"===V?"more":"fewer"} than ${g} items`,params:({schemaCode:V})=>y._`{limit: ${V}}`},code(V){const{keyword:g,data:$,schemaCode:j}=V;V.fail$data(y._`${$}.length ${"maxItems"===g?y.operators.GT:y.operators.LT} ${j}`)}}},5854(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432),U=R(7868),M=R(1506);m.default={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:$,schemaCode:j})=>y.str`must NOT have ${"maxLength"===$?"more":"fewer"} than ${j} characters`,params:({schemaCode:$})=>y._`{limit: ${$}}`},code($){const{keyword:j,data:O,schemaCode:D,it:x}=$,C="maxLength"===j?y.operators.GT:y.operators.LT,Z=!1===x.opts.unicode?y._`${O}.length`:y._`${(0,U.useFunc)($.gen,M.default)}(${O})`;$.fail$data(y._`${Z} ${C} ${D}`)}}},9807(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432),U=y.operators,M={maximum:{okStr:"<=",ok:U.LTE,fail:U.GT},minimum:{okStr:">=",ok:U.GTE,fail:U.LT},exclusiveMaximum:{okStr:"<",ok:U.LT,fail:U.GTE},exclusiveMinimum:{okStr:">",ok:U.GT,fail:U.LTE}},V={message:({keyword:$,schemaCode:j})=>y.str`must be ${M[$].okStr} ${j}`,params:({keyword:$,schemaCode:j})=>y._`{comparison: ${M[$].okStr}, limit: ${j}}`},g={keyword:Object.keys(M),type:"number",schemaType:"number",$data:!0,error:V,code($){const{keyword:j,data:O,schemaCode:D}=$;$.fail$data(y._`${O} ${M[j].fail} ${D} || isNaN(${O})`)}};m.default=g},1379(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432);m.default={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:V,schemaCode:g})=>y.str`must NOT have ${"maxProperties"===V?"more":"fewer"} than ${g} properties`,params:({schemaCode:V})=>y._`{limit: ${V}}`},code(V){const{keyword:g,data:$,schemaCode:j}=V;V.fail$data(y._`Object.keys(${$}).length ${"maxProperties"===g?y.operators.GT:y.operators.LT} ${j}`)}}},776(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(5432);m.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:V})=>y.str`must be multiple of ${V}`,params:({schemaCode:V})=>y._`{multipleOf: ${V}}`},code(V){const{gen:g,data:$,schemaCode:j,it:O}=V,D=O.opts.multipleOfPrecision,x=g.let("res"),C=D?y._`Math.abs(Math.round(${x}) - ${x}) > 1e-${D}`:y._`${x} !== parseInt(${x})`;V.fail$data(y._`(${j} === 0 || (${x} = ${$}/${j}, ${C}))`)}}},8675(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(2240),U=R(7868),M=R(5432);m.default={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:$})=>M.str`must match pattern "${$}"`,params:({schemaCode:$})=>M._`{pattern: ${$}}`},code($){const{gen:j,data:O,$data:D,schema:x,schemaCode:C,it:Z}=$,X=Z.opts.unicodeRegExp?"u":"";if(D){const{regExp:re}=Z.opts.code,ie="new RegExp"===re.code?M._`new RegExp`:(0,U.useFunc)(j,re),P=j.let("valid");j.try(()=>j.assign(P,M._`${ie}(${C}, ${X}).test(${O})`),()=>j.assign(P,!1)),$.fail$data(M._`!${P}`)}else{const re=(0,y.usePattern)($,x);$.fail$data(M._`!${re}.test(${O})`)}}}},4620(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(2240),U=R(5432),M=R(7868);m.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:$}})=>U.str`must have required property '${$}'`,params:({params:{missingProperty:$}})=>U._`{missingProperty: ${$}}`},code($){const{gen:j,schema:O,schemaCode:D,data:x,$data:C,it:Z}=$,{opts:X}=Z;if(!C&&0===O.length)return;const re=O.length>=X.loopRequired;if(Z.allErrors?function ie(){if(re||C)$.block$data(U.nil,A);else for(const _ of O)(0,y.checkReportMissingProp)($,_)}():function P(){const _=j.let("missing");if(re||C){const w=j.let("valid",!0);$.block$data(w,()=>function S(_,w){$.setParams({missingProperty:_}),j.forOf(_,D,()=>{j.assign(w,(0,y.propertyInData)(j,x,_,X.ownProperties)),j.if((0,U.not)(w),()=>{$.error(),j.break()})},U.nil)}(_,w)),$.ok(w)}else j.if((0,y.checkMissingProp)($,O,_)),(0,y.reportMissingProp)($,_),j.else()}(),X.strictRequired){const _=$.parentSchema.properties,{definedProperties:w}=$.it;for(const b of O)void 0!==_?.[b]||w.has(b)||(0,M.checkStrictMode)(Z,`required property "${b}" is not defined at "${Z.schemaEnv.baseId+Z.errSchemaPath}" (strictRequired)`,Z.opts.strictRequired)}function A(){j.forOf("prop",D,_=>{$.setParams({missingProperty:_}),j.if((0,y.noPropertyInData)(j,x,_,X.ownProperties),()=>$.error())})}}}},3632(Fe,m,R){"use strict";Object.defineProperty(m,"__esModule",{value:!0});const y=R(3513),U=R(5432),M=R(7868),V=R(4195);m.default={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:j,j:O}})=>U.str`must NOT have duplicate items (items ## ${O} and ${j} are identical)`,params:({params:{i:j,j:O}})=>U._`{i: ${j}, j: ${O}}`},code(j){const{gen:O,data:D,$data:x,schema:C,parentSchema:Z,schemaCode:X,it:re}=j;if(!x&&!C)return;const ie=O.let("valid"),P=Z.items?(0,y.getSchemaTypes)(Z.items):[];function _(b,k){const N=O.name("item"),W=(0,y.checkDataTypes)(P,N,re.opts.strictNumbers,y.DataType.Wrong),ne=O.const("indices",U._`{}`);O.for(U._`;${b}--;`,()=>{O.let(N,U._`${D}[${b}]`),O.if(W,U._`continue`),P.length>1&&O.if(U._`typeof ${N} == "string"`,U._`${N} += "_"`),O.if(U._`typeof ${ne}[${N}] == "number"`,()=>{O.assign(k,U._`${ne}[${N}]`),j.error(),O.assign(ie,!1).break()}).code(U._`${ne}[${N}] = ${b}`)})}function w(b,k){const N=(0,M.useFunc)(O,V.default),W=O.name("outer");O.label(W).for(U._`;${b}--;`,()=>O.for(U._`${k} = ${b}; ${k}--;`,()=>O.if(U._`${N}(${D}[${b}], ${D}[${k}])`,()=>{j.error(),O.assign(ie,!1).break(W)})))}j.block$data(ie,function A(){const b=O.let("i",U._`${D}.length`),k=O.let("j");j.setParams({i:b,j:k}),O.assign(ie,!0),O.if(U._`${b} > 1`,()=>(function S(){return P.length>0&&!P.some(b=>"object"===b||"array"===b)}()?_:w)(b,k))},U._`${X} === false`),j.ok(ie)}}},362(Fe){"use strict";Fe.exports=function m(R,y){if(R===y)return!0;if(R&&y&&"object"==typeof R&&"object"==typeof y){if(R.constructor!==y.constructor)return!1;var U,M,V;if(Array.isArray(R)){if((U=R.length)!=y.length)return!1;for(M=U;0!==M--;)if(!m(R[M],y[M]))return!1;return!0}if(R.constructor===RegExp)return R.source===y.source&&R.flags===y.flags;if(R.valueOf!==Object.prototype.valueOf)return R.valueOf()===y.valueOf();if(R.toString!==Object.prototype.toString)return R.toString()===y.toString();if((U=(V=Object.keys(R)).length)!==Object.keys(y).length)return!1;for(M=U;0!==M--;)if(!Object.prototype.hasOwnProperty.call(y,V[M]))return!1;for(M=U;0!==M--;){var g=V[M];if(!m(R[g],y[g]))return!1}return!0}return R!=R&&y!=y}},4331(Fe){"use strict";var m=Fe.exports=function(U,M,V){"function"==typeof M&&(V=M,M={}),R(M,"function"==typeof(V=M.cb||V)?V:V.pre||function(){},V.post||function(){},U,"",U)};function R(U,M,V,g,$,j,O,D,x,C){if(g&&"object"==typeof g&&!Array.isArray(g)){for(var Z in M(g,$,j,O,D,x,C),g){var X=g[Z];if(Array.isArray(X)){if(Z in m.arrayKeywords)for(var re=0;re<X.length;re++)R(U,M,V,X[re],$+"/"+Z+"/"+re,j,$,Z,g,re)}else if(Z in m.propsKeywords){if(X&&"object"==typeof X)for(var ie in X)R(U,M,V,X[ie],$+"/"+Z+"/"+y(ie),j,$,Z,g,ie)}else(Z in m.keywords||U.allKeys&&!(Z in m.skipKeywords))&&R(U,M,V,X,$+"/"+Z,j,$,Z,g)}V(g,$,j,O,D,x,C)}}function y(U){return U.replace(/~/g,"~0").replace(/\//g,"~1")}m.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},m.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},m.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},m.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},639(Fe,m,R){"use strict";R.d(m,{A:()=>V});const y="http://www.w3.org/1999/02/22-rdf-syntax-ns#",U="http://www.w3.org/2001/XMLSchema#",M="http://www.w3.org/2000/10/swap/",V={xsd:{decimal:`${U}decimal`,boolean:`${U}boolean`,double:`${U}double`,integer:`${U}integer`,string:`${U}string`},rdf:{type:`${y}type`,nil:`${y}nil`,first:`${y}first`,rest:`${y}rest`,langString:`${y}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${M}reify#forSome`,forAll:`${M}reify#forAll`},log:{implies:`${M}log#implies`,isImpliedBy:`${M}log#isImpliedBy`}}},6353(Fe,m,R){"use strict";R.d(m,{Ay:()=>O,x1:()=>D});var y=R(639);const{rdf:U,xsd:M}=y.A;let V,g=0;const O={namedNode:w,blankNode:b,variable:N,literal:k,defaultGraph:function W(){return V},quad:ne,triple:ne,fromTerm:ue,fromQuad:Se};class D{constructor(ce){this.id=ce}get value(){return this.id}equals(ce){return ce instanceof D?this.id===ce.id:!!ce&&this.termType===ce.termType&&this.value===ce.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}class x extends D{get termType(){return"NamedNode"}}class C extends D{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const ce=this.id;let Le=ce.lastIndexOf('"')+1;return Le<ce.length&&"@"===ce[Le++]?ce.substr(Le).toLowerCase():""}get datatype(){return new x(this.datatypeString)}get datatypeString(){const ce=this.id,Le=ce.lastIndexOf('"')+1,ot=Le<ce.length?ce[Le]:"";return"^"===ot?ce.substr(Le+2):"@"!==ot?M.string:U.langString}equals(ce){return ce instanceof C?this.id===ce.id:!!ce&&!!ce.datatype&&this.termType===ce.termType&&this.value===ce.value&&this.language===ce.language&&this.datatype.value===ce.datatype.value}toJSON(){return{termType:this.termType,value:this.value,language:this.language,datatype:{termType:"NamedNode",value:this.datatypeString}}}}class Z extends D{constructor(ce){super(`_:${ce}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}}class X extends D{constructor(ce){super(`?${ce}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}}V=new class re extends D{constructor(){return super(""),V||this}get termType(){return"DefaultGraph"}equals(ce){return this===ce||!!ce&&this.termType===ce.termType}};class A extends D{constructor(ce,Le,ot,Pt){super(""),this._subject=ce,this._predicate=Le,this._object=ot,this._graph=Pt||V}get termType(){return"Quad"}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}get graph(){return this._graph}toJSON(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}equals(ce){return!!ce&&this._subject.equals(ce.subject)&&this._predicate.equals(ce.predicate)&&this._object.equals(ce.object)&&this._graph.equals(ce.graph)}}function w(F){return new x(F)}function b(F){return new Z(F||"n3-"+g++)}function k(F,ce){if("string"==typeof ce)return new C(`"${F}"@${ce.toLowerCase()}`);let Le=ce?ce.value:"";return""===Le&&("boolean"==typeof F?Le=M.boolean:"number"==typeof F&&(Number.isFinite(F)?Le=Number.isInteger(F)?M.integer:M.double:(Le=M.double,Number.isNaN(F)||(F=F>0?"INF":"-INF")))),new C(""===Le||Le===M.string?`"${F}"`:`"${F}"^^${Le}`)}function N(F){return new X(F)}function ne(F,ce,Le,ot){return new A(F,ce,Le,ot)}function ue(F){if(F instanceof D)return F;switch(F.termType){case"NamedNode":return w(F.value);case"BlankNode":return b(F.value);case"Variable":return N(F.value);case"DefaultGraph":return V;case"Literal":return k(F.value,F.language||F.datatype);case"Quad":return Se(F);default:throw new Error(`Unexpected termType: ${F.termType}`)}}function Se(F){if(F instanceof A)return F;if("Quad"!==F.termType)throw new Error(`Unexpected termType: ${F.termType}`);return ne(ue(F.subject),ue(F.predicate),ue(F.object),ue(F.graph))}},4844(Fe){Fe.exports=function(){"use strict";var y=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function M(P,A){var S=P[0],_=P[1],w=P[2],b=P[3];_=((_+=((w=((w+=((b=((b+=((S=((S+=(_&w|~_&b)+A[0]-680876936|0)<<7|S>>>25)+_|0)&_|~S&w)+A[1]-389564586|0)<<12|b>>>20)+S|0)&S|~b&_)+A[2]+606105819|0)<<17|w>>>15)+b|0)&b|~w&S)+A[3]-1044525330|0)<<22|_>>>10)+w|0,_=((_+=((w=((w+=((b=((b+=((S=((S+=(_&w|~_&b)+A[4]-176418897|0)<<7|S>>>25)+_|0)&_|~S&w)+A[5]+1200080426|0)<<12|b>>>20)+S|0)&S|~b&_)+A[6]-1473231341|0)<<17|w>>>15)+b|0)&b|~w&S)+A[7]-45705983|0)<<22|_>>>10)+w|0,_=((_+=((w=((w+=((b=((b+=((S=((S+=(_&w|~_&b)+A[8]+1770035416|0)<<7|S>>>25)+_|0)&_|~S&w)+A[9]-1958414417|0)<<12|b>>>20)+S|0)&S|~b&_)+A[10]-42063|0)<<17|w>>>15)+b|0)&b|~w&S)+A[11]-1990404162|0)<<22|_>>>10)+w|0,_=((_+=((w=((w+=((b=((b+=((S=((S+=(_&w|~_&b)+A[12]+1804603682|0)<<7|S>>>25)+_|0)&_|~S&w)+A[13]-40341101|0)<<12|b>>>20)+S|0)&S|~b&_)+A[14]-1502002290|0)<<17|w>>>15)+b|0)&b|~w&S)+A[15]+1236535329|0)<<22|_>>>10)+w|0,_=((_+=((w=((w+=((b=((b+=((S=((S+=(_&b|w&~b)+A[1]-165796510|0)<<5|S>>>27)+_|0)&w|_&~w)+A[6]-1069501632|0)<<9|b>>>23)+S|0)&_|S&~_)+A[11]+643717713|0)<<14|w>>>18)+b|0)&S|b&~S)+A[0]-373897302|0)<<20|_>>>12)+w|0,_=((_+=((w=((w+=((b=((b+=((S=((S+=(_&b|w&~b)+A[5]-701558691|0)<<5|S>>>27)+_|0)&w|_&~w)+A[10]+38016083|0)<<9|b>>>23)+S|0)&_|S&~_)+A[15]-660478335|0)<<14|w>>>18)+b|0)&S|b&~S)+A[4]-405537848|0)<<20|_>>>12)+w|0,_=((_+=((w=((w+=((b=((b+=((S=((S+=(_&b|w&~b)+A[9]+568446438|0)<<5|S>>>27)+_|0)&w|_&~w)+A[14]-1019803690|0)<<9|b>>>23)+S|0)&_|S&~_)+A[3]-187363961|0)<<14|w>>>18)+b|0)&S|b&~S)+A[8]+1163531501|0)<<20|_>>>12)+w|0,_=((_+=((w=((w+=((b=((b+=((S=((S+=(_&b|w&~b)+A[13]-1444681467|0)<<5|S>>>27)+_|0)&w|_&~w)+A[2]-51403784|0)<<9|b>>>23)+S|0)&_|S&~_)+A[7]+1735328473|0)<<14|w>>>18)+b|0)&S|b&~S)+A[12]-1926607734|0)<<20|_>>>12)+w|0,_=((_+=((w=((w+=((b=((b+=((S=((S+=(_^w^b)+A[5]-378558|0)<<4|S>>>28)+_|0)^_^w)+A[8]-2022574463|0)<<11|b>>>21)+S|0)^S^_)+A[11]+1839030562|0)<<16|w>>>16)+b|0)^b^S)+A[14]-35309556|0)<<23|_>>>9)+w|0,_=((_+=((w=((w+=((b=((b+=((S=((S+=(_^w^b)+A[1]-1530992060|0)<<4|S>>>28)+_|0)^_^w)+A[4]+1272893353|0)<<11|b>>>21)+S|0)^S^_)+A[7]-155497632|0)<<16|w>>>16)+b|0)^b^S)+A[10]-1094730640|0)<<23|_>>>9)+w|0,_=((_+=((w=((w+=((b=((b+=((S=((S+=(_^w^b)+A[13]+681279174|0)<<4|S>>>28)+_|0)^_^w)+A[0]-358537222|0)<<11|b>>>21)+S|0)^S^_)+A[3]-722521979|0)<<16|w>>>16)+b|0)^b^S)+A[6]+76029189|0)<<23|_>>>9)+w|0,_=((_+=((w=((w+=((b=((b+=((S=((S+=(_^w^b)+A[9]-640364487|0)<<4|S>>>28)+_|0)^_^w)+A[12]-421815835|0)<<11|b>>>21)+S|0)^S^_)+A[15]+530742520|0)<<16|w>>>16)+b|0)^b^S)+A[2]-995338651|0)<<23|_>>>9)+w|0,_=((_+=((b=((b+=(_^((S=((S+=(w^(_|~b))+A[0]-198630844|0)<<6|S>>>26)+_|0)|~w))+A[7]+1126891415|0)<<10|b>>>22)+S|0)^((w=((w+=(S^(b|~_))+A[14]-1416354905|0)<<15|w>>>17)+b|0)|~S))+A[5]-57434055|0)<<21|_>>>11)+w|0,_=((_+=((b=((b+=(_^((S=((S+=(w^(_|~b))+A[12]+1700485571|0)<<6|S>>>26)+_|0)|~w))+A[3]-1894986606|0)<<10|b>>>22)+S|0)^((w=((w+=(S^(b|~_))+A[10]-1051523|0)<<15|w>>>17)+b|0)|~S))+A[1]-2054922799|0)<<21|_>>>11)+w|0,_=((_+=((b=((b+=(_^((S=((S+=(w^(_|~b))+A[8]+1873313359|0)<<6|S>>>26)+_|0)|~w))+A[15]-30611744|0)<<10|b>>>22)+S|0)^((w=((w+=(S^(b|~_))+A[6]-1560198380|0)<<15|w>>>17)+b|0)|~S))+A[13]+1309151649|0)<<21|_>>>11)+w|0,_=((_+=((b=((b+=(_^((S=((S+=(w^(_|~b))+A[4]-145523070|0)<<6|S>>>26)+_|0)|~w))+A[11]-1120210379|0)<<10|b>>>22)+S|0)^((w=((w+=(S^(b|~_))+A[2]+718787259|0)<<15|w>>>17)+b|0)|~S))+A[9]-343485551|0)<<21|_>>>11)+w|0,P[0]=S+P[0]|0,P[1]=_+P[1]|0,P[2]=w+P[2]|0,P[3]=b+P[3]|0}function V(P){var S,A=[];for(S=0;S<64;S+=4)A[S>>2]=P.charCodeAt(S)+(P.charCodeAt(S+1)<<8)+(P.charCodeAt(S+2)<<16)+(P.charCodeAt(S+3)<<24);return A}function g(P){var S,A=[];for(S=0;S<64;S+=4)A[S>>2]=P[S]+(P[S+1]<<8)+(P[S+2]<<16)+(P[S+3]<<24);return A}function $(P){var _,w,b,k,N,W,A=P.length,S=[1732584193,-271733879,-1732584194,271733878];for(_=64;_<=A;_+=64)M(S,V(P.substring(_-64,_)));for(w=(P=P.substring(_-64)).length,b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_<w;_+=1)b[_>>2]|=P.charCodeAt(_)<<(_%4<<3);if(b[_>>2]|=128<<(_%4<<3),_>55)for(M(S,b),_=0;_<16;_+=1)b[_]=0;return k=(k=8*A).toString(16).match(/(.*?)(.{0,8})$/),N=parseInt(k[2],16),W=parseInt(k[1],16)||0,b[14]=N,b[15]=W,M(S,b),S}function O(P){var S,A="";for(S=0;S<4;S+=1)A+=y[P>>8*S+4&15]+y[P>>8*S&15];return A}function D(P){var A;for(A=0;A<P.length;A+=1)P[A]=O(P[A]);return P.join("")}function x(P){return/[\u0080-\uFFFF]/.test(P)&&(P=unescape(encodeURIComponent(P))),P}function re(P){var _,A=[],S=P.length;for(_=0;_<S-1;_+=2)A.push(parseInt(P.substr(_,2),16));return String.fromCharCode.apply(String,A)}function ie(){this.reset()}return D($("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function P(A,S){return(A=0|A||0)<0?Math.max(A+S,0):Math.min(A,S)}ArrayBuffer.prototype.slice=function(A,S){var k,N,W,ne,_=this.byteLength,w=P(A,_),b=_;return void 0!==S&&(b=P(S,_)),w>b?new ArrayBuffer(0):(k=b-w,N=new ArrayBuffer(k),W=new Uint8Array(N),ne=new Uint8Array(this,w,k),W.set(ne),N)}}(),ie.prototype.append=function(P){return this.appendBinary(x(P)),this},ie.prototype.appendBinary=function(P){this._buff+=P,this._length+=P.length;var S,A=this._buff.length;for(S=64;S<=A;S+=64)M(this._hash,V(this._buff.substring(S-64,S)));return this._buff=this._buff.substring(S-64),this},ie.prototype.end=function(P){var _,b,A=this._buff,S=A.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(_=0;_<S;_+=1)w[_>>2]|=A.charCodeAt(_)<<(_%4<<3);return this._finish(w,S),b=D(this._hash),P&&(b=re(b)),this.reset(),b},ie.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},ie.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},ie.prototype.setState=function(P){return this._buff=P.buff,this._length=P.length,this._hash=P.hash,this},ie.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},ie.prototype._finish=function(P,A){var _,w,b,S=A;if(P[S>>2]|=128<<(S%4<<3),S>55)for(M(this._hash,P),S=0;S<16;S+=1)P[S]=0;_=(_=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),w=parseInt(_[2],16),b=parseInt(_[1],16)||0,P[14]=w,P[15]=b,M(this._hash,P)},ie.hash=function(P,A){return ie.hashBinary(x(P),A)},ie.hashBinary=function(P,A){var _=D($(P));return A?re(_):_},(ie.ArrayBuffer=function(){this.reset()}).prototype.append=function(P){var _,A=function X(P,A,S){var _=new Uint8Array(P.byteLength+A.byteLength);return _.set(new Uint8Array(P)),_.set(new Uint8Array(A),P.byteLength),S?_:_.buffer}(this._buff.buffer,P,!0),S=A.length;for(this._length+=P.byteLength,_=64;_<=S;_+=64)M(this._hash,g(A.subarray(_-64,_)));return this._buff=_-64<S?new Uint8Array(A.buffer.slice(_-64)):new Uint8Array(0),this},ie.ArrayBuffer.prototype.end=function(P){var w,b,A=this._buff,S=A.length,_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(w=0;w<S;w+=1)_[w>>2]|=A[w]<<(w%4<<3);return this._finish(_,S),b=D(this._hash),P&&(b=re(b)),this.reset(),b},ie.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},ie.ArrayBuffer.prototype.getState=function(){var P=ie.prototype.getState.call(this);return P.buff=function Z(P){return String.fromCharCode.apply(null,new Uint8Array(P))}(P.buff),P},ie.ArrayBuffer.prototype.setState=function(P){return P.buff=function C(P,A){var b,S=P.length,_=new ArrayBuffer(S),w=new Uint8Array(_);for(b=0;b<S;b+=1)w[b]=P.charCodeAt(b);return A?w:_}(P.buff,!0),ie.prototype.setState.call(this,P)},ie.ArrayBuffer.prototype.destroy=ie.prototype.destroy,ie.ArrayBuffer.prototype._finish=ie.prototype._finish,ie.ArrayBuffer.hash=function(P,A){var _=D(function j(P){var _,w,b,k,N,W,A=P.length,S=[1732584193,-271733879,-1732584194,271733878];for(_=64;_<=A;_+=64)M(S,g(P.subarray(_-64,_)));for(w=(P=_-64<A?P.subarray(_-64):new Uint8Array(0)).length,b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_<w;_+=1)b[_>>2]|=P[_]<<(_%4<<3);if(b[_>>2]|=128<<(_%4<<3),_>55)for(M(S,b),_=0;_<16;_+=1)b[_]=0;return k=(k=8*A).toString(16).match(/(.*?)(.{0,8})$/),N=parseInt(k[2],16),W=parseInt(k[1],16)||0,b[14]=N,b[15]=W,M(S,b),S}(new Uint8Array(P)));return A?re(_):_},ie}()},6695(Fe,m,R){var y={"./assets/wasm/dir_scanner_wasm.mjs":[366,[366]],"node_modules/@qaecy/cue-sdk/assets/wasm/dir_scanner_wasm.mjs":[366,[366]]};function U(M){if(!R.o(y,M))return Promise.resolve().then(()=>{var $=new Error("Cannot find module '"+M+"'");throw $.code="MODULE_NOT_FOUND",$});var V=y[M],g=V[0];return R.e(V[1][0]).then(()=>R(g))}U.keys=()=>Object.keys(y),U.id=6695,Fe.exports=U},8109(Fe){function m(R){return Promise.resolve().then(()=>{var y=new Error("Cannot find module '"+R+"'");throw y.code="MODULE_NOT_FOUND",y})}m.keys=()=>[],m.resolve=m,m.id=8109,Fe.exports=m},8280(Fe,m,R){"use strict";const{normalizeIPv6:y,removeDotSegments:U,recomposeAuthority:M,normalizePercentEncoding:V,normalizePathEncoding:g,escapePreservingEscapes:$,reescapeHostDelimiters:j,isIPv4:O,nonSimpleDomain:D}=R(1661),{SCHEMES:x,getSchemeHandler:C}=R(4908);function re(ne,ue,Se,F){const ce={};return F||(ne=w(P(ne,Se),Se),ue=w(P(ue,Se),Se)),!(Se=Se||{}).tolerant&&ue.scheme?(ce.scheme=ue.scheme,ce.userinfo=ue.userinfo,ce.host=ue.host,ce.port=ue.port,ce.path=U(ue.path||""),ce.query=ue.query):(void 0!==ue.userinfo||void 0!==ue.host||void 0!==ue.port?(ce.userinfo=ue.userinfo,ce.host=ue.host,ce.port=ue.port,ce.path=U(ue.path||""),ce.query=ue.query):(ue.path?("/"===ue.path[0]?ce.path=U(ue.path):(ce.path=void 0===ne.userinfo&&void 0===ne.host&&void 0===ne.port||ne.path?ne.path?ne.path.slice(0,ne.path.lastIndexOf("/")+1)+ue.path:ue.path:"/"+ue.path,ce.path=U(ce.path)),ce.query=ue.query):(ce.path=ne.path,ce.query=void 0!==ue.query?ue.query:ne.query),ce.userinfo=ne.userinfo,ce.host=ne.host,ce.port=ne.port),ce.scheme=ne.scheme),ce.fragment=ue.fragment,ce}function P(ne,ue){const Se={host:ne.host,scheme:ne.scheme,userinfo:ne.userinfo,port:ne.port,path:ne.path,query:ne.query,nid:ne.nid,nss:ne.nss,uuid:ne.uuid,fragment:ne.fragment,reference:ne.reference,resourceName:ne.resourceName,secure:ne.secure,error:""},F=Object.assign({},ue),ce=[],Le=C(F.scheme||Se.scheme);Le&&Le.serialize&&Le.serialize(Se,F),void 0!==Se.path&&(F.skipEscape?Se.path=V(Se.path):(Se.path=$(Se.path),void 0!==Se.scheme&&(Se.path=Se.path.split("%3A").join(":")))),"suffix"!==F.reference&&Se.scheme&&ce.push(Se.scheme,":");const ot=M(Se);if(void 0!==ot&&("suffix"!==F.reference&&ce.push("//"),ce.push(ot),Se.path&&"/"!==Se.path[0]&&ce.push("/")),void 0!==Se.path){let Pt=Se.path;!F.absolutePath&&(!Le||!Le.absolutePath)&&(Pt=U(Pt)),void 0===ot&&"/"===Pt[0]&&"/"===Pt[1]&&(Pt="/%2F"+Pt.slice(2)),ce.push(Pt)}return void 0!==Se.query&&ce.push("?",Se.query),void 0!==Se.fragment&&ce.push("#",Se.fragment),ce.join("")}const A=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function _(ne,ue){const Se=Object.assign({},ue),F={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let ce=!1,Le=!1;"suffix"===Se.reference&&(ne=Se.scheme?Se.scheme+":"+ne:"//"+ne);const ot=ne.match(A);if(ot){F.scheme=ot[1],F.userinfo=ot[3],F.host=ot[4],F.port=parseInt(ot[5],10),F.path=ot[6]||"",F.query=ot[7],F.fragment=ot[8],isNaN(F.port)&&(F.port=ot[5]);const Pt=function S(ne,ue){return void 0!==ue[2]&&ne.path&&"/"!==ne.path[0]?'URI path must start with "/" when authority is present.':"number"==typeof ne.port&&(ne.port<0||ne.port>65535)?"URI port is malformed.":void 0}(F,ot);if(void 0!==Pt&&(F.error=F.error||Pt,ce=!0),F.host)if(!1===O(F.host)){const Nt=y(F.host);F.host=Nt.host.toLowerCase(),Le=Nt.isIPV6}else Le=!0;F.reference=void 0!==F.scheme||void 0!==F.userinfo||void 0!==F.host||void 0!==F.port||void 0!==F.query||F.path?void 0===F.scheme?"relative":void 0===F.fragment?"absolute":"uri":"same-document",Se.reference&&"suffix"!==Se.reference&&Se.reference!==F.reference&&(F.error=F.error||"URI is not a "+Se.reference+" reference.");const At=C(Se.scheme||F.scheme);if(!Se.unicodeSupport&&(!At||!At.unicodeSupport)&&F.host&&(Se.domainHost||At&&At.domainHost)&&!1===Le&&D(F.host))try{F.host=URL.domainToASCII(F.host.toLowerCase())}catch(Pn){F.error=F.error||"Host's domain name can not be converted to ASCII: "+Pn}if((!At||At&&!At.skipNormalize)&&(-1!==ne.indexOf("%")&&(void 0!==F.scheme&&(F.scheme=unescape(F.scheme)),void 0!==F.host&&(F.host=j(unescape(F.host),Le))),F.path&&(F.path=g(F.path)),F.fragment))try{F.fragment=encodeURI(decodeURIComponent(F.fragment))}catch{F.error=F.error||"URI malformed"}At&&At.parse&&At.parse(F,Se)}else F.error=F.error||"URI can not be parsed.";return{parsed:F,malformedAuthorityOrPort:ce}}function w(ne,ue){return _(ne,ue).parsed}function k(ne,ue){const{parsed:Se,malformedAuthorityOrPort:F}=_(ne,ue);return{normalized:F?ne:P(Se,ue),malformedAuthorityOrPort:F}}function N(ne,ue){if("string"==typeof ne){const{normalized:Se,malformedAuthorityOrPort:F}=k(ne,ue);return F?void 0:Se}if("object"==typeof ne)return P(ne,ue)}const W={SCHEMES:x,normalize:function Z(ne,ue){return"string"==typeof ne?ne=function b(ne,ue){return k(ne,ue).normalized}(ne,ue):"object"==typeof ne&&(ne=w(P(ne,ue),ue)),ne},resolve:function X(ne,ue,Se){const F=Se?Object.assign({scheme:"null"},Se):{scheme:"null"},ce=re(w(ne,F),w(ue,F),F,!0);return F.skipEscape=!0,P(ce,F)},resolveComponent:re,equal:function ie(ne,ue,Se){const F=N(ne,Se),ce=N(ue,Se);return void 0!==F&&void 0!==ce&&F.toLowerCase()===ce.toLowerCase()},serialize:P,parse:w};Fe.exports=W,Fe.exports.default=W,Fe.exports.fastUri=W},4908(Fe,m,R){"use strict";const{isUUID:y}=R(1661),U=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,M=["http","https","ws","wss","urn","urn:uuid"];function g(k){return!0===k.secure||!1!==k.secure&&!!k.scheme&&!(3!==k.scheme.length||"w"!==k.scheme[0]&&"W"!==k.scheme[0]||"s"!==k.scheme[1]&&"S"!==k.scheme[1]||"s"!==k.scheme[2]&&"S"!==k.scheme[2])}function $(k){return k.host||(k.error=k.error||"HTTP URIs must have a host."),k}function j(k){const N="https"===String(k.scheme).toLowerCase();return(k.port===(N?443:80)||""===k.port)&&(k.port=void 0),k.path||(k.path="/"),k}const re={scheme:"http",domainHost:!0,parse:$,serialize:j},P={scheme:"ws",domainHost:!0,parse:function O(k){return k.secure=g(k),k.resourceName=(k.path||"/")+(k.query?"?"+k.query:""),k.path=void 0,k.query=void 0,k},serialize:function D(k){if((k.port===(g(k)?443:80)||""===k.port)&&(k.port=void 0),"boolean"==typeof k.secure&&(k.scheme=k.secure?"wss":"ws",k.secure=void 0),k.resourceName){const[N,W]=k.resourceName.split("?");k.path=N&&"/"!==N?N:void 0,k.query=W,k.resourceName=void 0}return k.fragment=void 0,k}},w={http:re,https:{scheme:"https",domainHost:re.domainHost,parse:$,serialize:j},ws:P,wss:{scheme:"wss",domainHost:P.domainHost,parse:P.parse,serialize:P.serialize},urn:{scheme:"urn",parse:function x(k,N){if(!k.path)return k.error="URN can not be parsed",k;const W=k.path.match(U);if(W){const ne=N.scheme||k.scheme||"urn";k.nid=W[1].toLowerCase(),k.nss=W[2];const Se=b(`${ne}:${N.nid||k.nid}`);k.path=void 0,Se&&(k=Se.parse(k,N))}else k.error=k.error||"URN can not be parsed.";return k},serialize:function C(k,N){if(void 0===k.nid)throw new Error("URN without nid cannot be serialized");const W=N.scheme||k.scheme||"urn",ne=k.nid.toLowerCase(),Se=b(`${W}:${N.nid||ne}`);Se&&(k=Se.serialize(k,N));const F=k;return F.path=`${ne||N.nid}:${k.nss}`,N.skipEscape=!0,F},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function Z(k,N){const W=k;return W.uuid=W.nss,W.nss=void 0,!N.tolerant&&(!W.uuid||!y(W.uuid))&&(W.error=W.error||"UUID is not valid."),W},serialize:function X(k){const N=k;return N.nss=(k.uuid||"").toLowerCase(),N},skipNormalize:!0}};function b(k){return k&&(w[k]||w[k.toLowerCase()])||void 0}Object.setPrototypeOf(w,null),Fe.exports={wsIsSecure:g,SCHEMES:w,isValidSchemeName:function V(k){return-1!==M.indexOf(k)},getSchemeHandler:b}},1661(Fe){"use strict";const m=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),R=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),y=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),U=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),M=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function V(w){let b="",k=0,N=0;for(N=0;N<w.length;N++)if(k=w[N].charCodeAt(0),48!==k){if(!(k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102))return"";b+=w[N];break}for(N+=1;N<w.length;N++){if(k=w[N].charCodeAt(0),!(k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102))return"";b+=w[N]}return b}const g=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function $(w){return w.length=0,!0}function j(w,b,k){if(w.length){const N=V(w);if(""===N)return k.error=!0,!1;b.push(N),w.length=0}return!0}function D(w){if(function x(w,b){let k=0;for(let N=0;N<w.length;N++)w[N]===b&&k++;return k}(w,":")<2)return{host:w,isIPV6:!1};const b=function O(w){let b=0;const k={error:!1,address:"",zone:""},N=[],W=[];let ne=!1,ue=!1,Se=j;for(let F=0;F<w.length;F++){const ce=w[F];if("["!==ce&&"]"!==ce){if(":"===ce){if(!0===ne&&(ue=!0),!Se(W,N,k))break;if(++b>7){k.error=!0;break}F>0&&":"===w[F-1]&&(ne=!0),N.push(":");continue}if("%"!==ce){W.push(ce);continue}if(!Se(W,N,k))break;Se=$}}return W.length&&(Se===$?k.zone=W.join(""):N.push(ue?W.join(""):V(W))),k.address=N.join(""),k}(w);if(b.error)return{host:w,isIPV6:!1};{let k=b.address,N=b.address;return b.zone&&(k+="%"+b.zone,N+="%25"+b.zone),{host:k,isIPV6:!0,escapedHost:N}}}const Z={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},X=/[@/?#:]/g,re=/[@/?#]/g;function ie(w,b){const k=b?re:X;return k.lastIndex=0,w.replace(k,N=>Z[N])}Fe.exports={nonSimpleDomain:g,recomposeAuthority:function _(w){const b=[];if(void 0!==w.userinfo&&(b.push(w.userinfo),b.push("@")),void 0!==w.host){let k=unescape(w.host);if(!R(k)){const N=D(k);k=!0===N.isIPV6?`[${N.escapedHost}]`:ie(k,!1)}b.push(k)}return("number"==typeof w.port||"string"==typeof w.port)&&(b.push(":"),b.push(String(w.port))),b.length?b.join(""):void 0},reescapeHostDelimiters:ie,normalizePercentEncoding:function P(w,b=!1){if(-1===w.indexOf("%"))return w;let k="";for(let N=0;N<w.length;N++){if("%"===w[N]&&N+2<w.length){const W=w.slice(N+1,N+3);if(y(W)){const ne=W.toUpperCase(),ue=String.fromCharCode(parseInt(ne,16));b&&U(ue)?k+=ue:k+="%"+ne,N+=2;continue}}k+=w[N]}return k},normalizePathEncoding:function A(w){let b="";for(let k=0;k<w.length;k++){if("%"===w[k]&&k+2<w.length){const N=w.slice(k+1,k+3);if(y(N)){const W=N.toUpperCase(),ne=String.fromCharCode(parseInt(W,16));"."!==ne&&U(ne)?b+=ne:b+="%"+W,k+=2;continue}}M(w[k])?b+=w[k]:b+=escape(w[k])}return b},escapePreservingEscapes:function S(w){let b="";for(let k=0;k<w.length;k++){if("%"===w[k]&&k+2<w.length){const N=w.slice(k+1,k+3);if(y(N)){b+="%"+N.toUpperCase(),k+=2;continue}}b+=escape(w[k])}return b},removeDotSegments:function C(w){let b=w;const k=[];let N=-1,W=0;for(;W=b.length;){if(1===W){if("."===b)break;if("/"===b){k.push("/");break}k.push(b);break}if(2===W){if("."===b[0]){if("."===b[1])break;if("/"===b[1]){b=b.slice(2);continue}}else if("/"===b[0]&&("."===b[1]||"/"===b[1])){k.push("/");break}}else if(3===W&&"/.."===b){0!==k.length&&k.pop(),k.push("/");break}if("."===b[0]){if("."===b[1]){if("/"===b[2]){b=b.slice(3);continue}}else if("/"===b[1]){b=b.slice(2);continue}}else if("/"===b[0]&&"."===b[1]){if("/"===b[2]){b=b.slice(2);continue}if("."===b[2]&&"/"===b[3]){b=b.slice(3),0!==k.length&&k.pop();continue}}if(-1===(N=b.indexOf("/",1))){k.push(b);break}k.push(b.slice(0,N)),b=b.slice(N)}return k.join("")},isIPv4:R,isUUID:m,normalizeIPv6:D,stringArrayToHexStripped:V}},9293(Fe){function m(y,U,M,V,g,$,j){try{var O=y[$](j),D=O.value}catch(x){return void M(x)}O.done?U(D):Promise.resolve(D).then(V,g)}Fe.exports=function R(y){return function(){var U=this,M=arguments;return new Promise(function(V,g){var $=y.apply(U,M);function j(D){m($,V,g,j,O,"next",D)}function O(D){m($,V,g,j,O,"throw",D)}j(void 0)})}},Fe.exports.__esModule=!0,Fe.exports.default=Fe.exports},4056(Fe,m,R){"use strict";R.d(m,{MF:()=>$n,j6:()=>ze,xZ:()=>st,om:()=>Ln,Sx:()=>Fi,KO:()=>wr});var y=R(467),U=R(4012),M=R(1563),V=R(9164);let $,j;const x=new WeakMap,C=new WeakMap,Z=new WeakMap,X=new WeakMap,re=new WeakMap;let A={get(Te,ye,_e){if(Te instanceof IDBTransaction){if("done"===ye)return C.get(Te);if("objectStoreNames"===ye)return Te.objectStoreNames||Z.get(Te);if("store"===ye)return _e.objectStoreNames[1]?void 0:_e.objectStore(_e.objectStoreNames[0])}return b(Te[ye])},set:(Te,ye,_e)=>(Te[ye]=_e,!0),has:(Te,ye)=>Te instanceof IDBTransaction&&("done"===ye||"store"===ye)||ye in Te};function w(Te){return"function"==typeof Te?function _(Te){return Te!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function D(){return j||(j=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Te)?function(...ye){return Te.apply(k(this),ye),b(x.get(this))}:function(...ye){return b(Te.apply(k(this),ye))}:function(ye,..._e){const nt=Te.call(k(this),ye,..._e);return Z.set(nt,ye.sort?ye.sort():[ye]),b(nt)}}(Te):(Te instanceof IDBTransaction&&function P(Te){if(C.has(Te))return;const ye=new Promise((_e,nt)=>{const ut=()=>{Te.removeEventListener("complete",Dt),Te.removeEventListener("error",Bt),Te.removeEventListener("abort",Bt)},Dt=()=>{_e(),ut()},Bt=()=>{nt(Te.error||new DOMException("AbortError","AbortError")),ut()};Te.addEventListener("complete",Dt),Te.addEventListener("error",Bt),Te.addEventListener("abort",Bt)});C.set(Te,ye)}(Te),((Te,ye)=>ye.some(_e=>Te instanceof _e))(Te,function O(){return $||($=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Te,A):Te)}function b(Te){if(Te instanceof IDBRequest)return function ie(Te){const ye=new Promise((_e,nt)=>{const ut=()=>{Te.removeEventListener("success",Dt),Te.removeEventListener("error",Bt)},Dt=()=>{_e(b(Te.result)),ut()},Bt=()=>{nt(Te.error),ut()};Te.addEventListener("success",Dt),Te.addEventListener("error",Bt)});return ye.then(_e=>{_e instanceof IDBCursor&&x.set(_e,Te)}).catch(()=>{}),re.set(ye,Te),ye}(Te);if(X.has(Te))return X.get(Te);const ye=w(Te);return ye!==Te&&(X.set(Te,ye),re.set(ye,Te)),ye}const k=Te=>re.get(Te),ue=["get","getKey","getAll","getAllKeys","count"],Se=["put","add","delete","clear"],F=new Map;function ce(Te,ye){if(!(Te instanceof IDBDatabase)||ye in Te||"string"!=typeof ye)return;if(F.get(ye))return F.get(ye);const _e=ye.replace(/FromIndex$/,""),nt=ye!==_e,ut=Se.includes(_e);if(!(_e in(nt?IDBIndex:IDBObjectStore).prototype)||!ut&&!ue.includes(_e))return;const Dt=function(){var Bt=(0,y.A)(function*(er,...St){const ht=this.transaction(er,ut?"readwrite":"readonly");let Pr=ht.store;return nt&&(Pr=Pr.index(St.shift())),(yield Promise.all([Pr[_e](...St),ut&&ht.done]))[0]});return function(St){return Bt.apply(this,arguments)}}();return F.set(ye,Dt),Dt}!function S(Te){A=Te(A)}(Te=>({...Te,get:(ye,_e,nt)=>ce(ye,_e)||Te.get(ye,_e,nt),has:(ye,_e)=>!!ce(ye,_e)||Te.has(ye,_e)}));class or{constructor(ye){this.container=ye}getPlatformInfoString(){return this.container.getProviders().map(_e=>{if(function Ze(Te){return"VERSION"===Te.getComponent()?.type}(_e)){const nt=_e.getImmediate();return`${nt.library}/${nt.version}`}return null}).filter(_e=>_e).join(" ")}}const Ie="@firebase/app",z=new M.Vy("@firebase/app"),H="@firebase/app-compat",oe="@firebase/analytics-compat",Qe="@firebase/analytics",dt="@firebase/app-check-compat",Et="@firebase/app-check",ln="@firebase/auth",Mn="@firebase/auth-compat",ge="@firebase/database",Pe="@firebase/data-connect",Ve="@firebase/database-compat",Ge="@firebase/functions",He="@firebase/functions-compat",ft="@firebase/installations",tn="@firebase/installations-compat",Yn="@firebase/messaging",Un="@firebase/messaging-compat",Rn="@firebase/performance",Je="@firebase/performance-compat",on="@firebase/remote-config",Wn="@firebase/remote-config-compat",pi="@firebase/storage",fi="@firebase/storage-compat",oi="@firebase/firestore",Pi="@firebase/ai",mi="@firebase/firestore-compat",oo="firebase",Ri="[DEFAULT]",lr={[Ie]:"fire-core",[H]:"fire-core-compat",[Qe]:"fire-analytics",[oe]:"fire-analytics-compat",[Et]:"fire-app-check",[dt]:"fire-app-check-compat",[ln]:"fire-auth",[Mn]:"fire-auth-compat",[ge]:"fire-rtdb",[Pe]:"fire-data-connect",[Ve]:"fire-rtdb-compat",[Ge]:"fire-fn",[He]:"fire-fn-compat",[ft]:"fire-iid",[tn]:"fire-iid-compat",[Yn]:"fire-fcm",[Un]:"fire-fcm-compat",[Rn]:"fire-perf",[Je]:"fire-perf-compat",[on]:"fire-rc",[Wn]:"fire-rc-compat",[pi]:"fire-gcs",[fi]:"fire-gcs-compat",[oi]:"fire-fst",[mi]:"fire-fst-compat",[Pi]:"fire-vertex","fire-js":"fire-js",[oo]:"fire-js-all"},Mr=new Map,dn=new Map,Ur=new Map;function Lr(Te,ye){try{Te.container.addComponent(ye)}catch(_e){z.debug(`Component ${ye.name} failed to register with FirebaseApp ${Te.name}`,_e)}}function Ln(Te){const ye=Te.name;if(Ur.has(ye))return z.debug(`There were multiple attempts to register component ${ye}.`),!1;Ur.set(ye,Te);for(const _e of Mr.values())Lr(_e,Te);for(const _e of dn.values())Lr(_e,Te);return!0}function ze(Te,ye){const _e=Te.container.getProvider("heartbeat").getImmediate({optional:!0});return _e&&_e.triggerHeartbeat(),Te.container.getProvider(ye)}function st(Te){return null!=Te&&void 0!==Te.settings}const sr=new V.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class Xe{constructor(ye,_e,nt){this._isDeleted=!1,this._options={...ye},this._config={..._e},this._name=_e.name,this._automaticDataCollectionEnabled=_e.automaticDataCollectionEnabled,this._container=nt,this.container.addComponent(new U.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(ye){this.checkDestroyed(),this._automaticDataCollectionEnabled=ye}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(ye){this._isDeleted=ye}checkDestroyed(){if(this.isDeleted)throw sr.create("app-deleted",{appName:this._name})}}const $n="12.5.0";function Fi(Te=Ri){const ye=Mr.get(Te);if(!ye&&Te===Ri&&(0,V.T9)())return function vr(Te,ye={}){let _e=Te;"object"!=typeof ye&&(ye={name:ye});const nt={name:Ri,automaticDataCollectionEnabled:!0,...ye},ut=nt.name;if("string"!=typeof ut||!ut)throw sr.create("bad-app-name",{appName:String(ut)});if(_e||(_e=(0,V.T9)()),!_e)throw sr.create("no-options");const Dt=Mr.get(ut);if(Dt){if((0,V.bD)(_e,Dt.options)&&(0,V.bD)(nt,Dt.config))return Dt;throw sr.create("duplicate-app",{appName:ut})}const Bt=new U.h1(ut);for(const St of Ur.values())Bt.addComponent(St);const er=new Xe(_e,nt,Bt);return Mr.set(ut,er),er}();if(!ye)throw sr.create("no-app",{appName:Te});return ye}function wr(Te,ye,_e){let nt=lr[Te]??Te;_e&&(nt+=`-${_e}`);const ut=nt.match(/\s|\//),Dt=ye.match(/\s|\//);if(ut||Dt){const Bt=[`Unable to register library "${nt}" with version "${ye}":`];return ut&&Bt.push(`library name "${nt}" contains illegal characters (whitespace or "/")`),ut&&Dt&&Bt.push("and"),Dt&&Bt.push(`version name "${ye}" contains illegal characters (whitespace or "/")`),void z.warn(Bt.join(" "))}Ln(new U.uA(`${nt}-version`,()=>({library:nt,version:ye}),"VERSION"))}const ae="firebase-heartbeat-store";let _t=null;function Ct(){return _t||(_t=function W(Te,ye,{blocked:_e,upgrade:nt,blocking:ut,terminated:Dt}={}){const Bt=indexedDB.open(Te,ye),er=b(Bt);return nt&&Bt.addEventListener("upgradeneeded",St=>{nt(b(Bt.result),St.oldVersion,St.newVersion,b(Bt.transaction),St)}),_e&&Bt.addEventListener("blocked",St=>_e(St.oldVersion,St.newVersion,St)),er.then(St=>{Dt&&St.addEventListener("close",()=>Dt()),ut&&St.addEventListener("versionchange",ht=>ut(ht.oldVersion,ht.newVersion,ht))}).catch(()=>{}),er}("firebase-heartbeat-database",1,{upgrade:(Te,ye)=>{if(0===ye)try{Te.createObjectStore(ae)}catch(_e){console.warn(_e)}}}).catch(Te=>{throw sr.create("idb-open",{originalErrorMessage:Te.message})})),_t}function xn(){return(xn=(0,y.A)(function*(Te){try{const _e=(yield Ct()).transaction(ae),nt=yield _e.objectStore(ae).get(qt(Te));return yield _e.done,nt}catch(ye){if(ye instanceof V.g)z.warn(ye.message);else{const _e=sr.create("idb-get",{originalErrorMessage:ye?.message});z.warn(_e.message)}}})).apply(this,arguments)}function rn(Te,ye){return Kn.apply(this,arguments)}function Kn(){return(Kn=(0,y.A)(function*(Te,ye){try{const nt=(yield Ct()).transaction(ae,"readwrite");yield nt.objectStore(ae).put(ye,qt(Te)),yield nt.done}catch(_e){if(_e instanceof V.g)z.warn(_e.message);else{const nt=sr.create("idb-set",{originalErrorMessage:_e?.message});z.warn(nt.message)}}})).apply(this,arguments)}function qt(Te){return`${Te.name}!${Te.options.appId}`}class gi{constructor(ye){this.container=ye,this._heartbeatsCache=null;const _e=this.container.getProvider("app").getImmediate();this._storage=new _i(_e),this._heartbeatsCachePromise=this._storage.read().then(nt=>(this._heartbeatsCache=nt,nt))}triggerHeartbeat(){var ye=this;return(0,y.A)(function*(){try{const nt=ye.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),ut=Yt();if(null==ye._heartbeatsCache?.heartbeats&&(ye._heartbeatsCache=yield ye._heartbeatsCachePromise,null==ye._heartbeatsCache?.heartbeats)||ye._heartbeatsCache.lastSentHeartbeatDate===ut||ye._heartbeatsCache.heartbeats.some(Dt=>Dt.date===ut))return;if(ye._heartbeatsCache.heartbeats.push({date:ut,agent:nt}),ye._heartbeatsCache.heartbeats.length>30){const Dt=function Vr(Te){if(0===Te.length)return-1;let ye=0,_e=Te[0].date;for(let nt=1;nt<Te.length;nt++)Te[nt].date<_e&&(_e=Te[nt].date,ye=nt);return ye}(ye._heartbeatsCache.heartbeats);ye._heartbeatsCache.heartbeats.splice(Dt,1)}return ye._storage.overwrite(ye._heartbeatsCache)}catch(_e){z.warn(_e)}})()}getHeartbeatsHeader(){var ye=this;return(0,y.A)(function*(){try{if(null===ye._heartbeatsCache&&(yield ye._heartbeatsCachePromise),null==ye._heartbeatsCache?.heartbeats||0===ye._heartbeatsCache.heartbeats.length)return"";const _e=Yt(),{heartbeatsToSend:nt,unsentEntries:ut}=function qe(Te,ye=1024){const _e=[];let nt=Te.slice();for(const ut of Te){const Dt=_e.find(Bt=>Bt.agent===ut.agent);if(Dt){if(Dt.dates.push(ut.date),xi(_e)>ye){Dt.dates.pop();break}}else if(_e.push({agent:ut.agent,dates:[ut.date]}),xi(_e)>ye){_e.pop();break}nt=nt.slice(1)}return{heartbeatsToSend:_e,unsentEntries:nt}}(ye._heartbeatsCache.heartbeats),Dt=(0,V.Uj)(JSON.stringify({version:2,heartbeats:nt}));return ye._heartbeatsCache.lastSentHeartbeatDate=_e,ut.length>0?(ye._heartbeatsCache.heartbeats=ut,yield ye._storage.overwrite(ye._heartbeatsCache)):(ye._heartbeatsCache.heartbeats=[],ye._storage.overwrite(ye._heartbeatsCache)),Dt}catch(_e){return z.warn(_e),""}})()}}function Yt(){return(new Date).toISOString().substring(0,10)}class _i{constructor(ye){this.app=ye,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,y.A)(function*(){return!!(0,V.zW)()&&(0,V.eX)().then(()=>!0).catch(()=>!1)})()}read(){var ye=this;return(0,y.A)(function*(){if(yield ye._canUseIndexedDBPromise){const nt=yield function sn(Te){return xn.apply(this,arguments)}(ye.app);return nt?.heartbeats?nt:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(ye){var _e=this;return(0,y.A)(function*(){if(yield _e._canUseIndexedDBPromise){const ut=yield _e.read();return rn(_e.app,{lastSentHeartbeatDate:ye.lastSentHeartbeatDate??ut.lastSentHeartbeatDate,heartbeats:ye.heartbeats})}})()}add(ye){var _e=this;return(0,y.A)(function*(){if(yield _e._canUseIndexedDBPromise){const ut=yield _e.read();return rn(_e.app,{lastSentHeartbeatDate:ye.lastSentHeartbeatDate??ut.lastSentHeartbeatDate,heartbeats:[...ut.heartbeats,...ye.heartbeats]})}})()}}function xi(Te){return(0,V.Uj)(JSON.stringify({version:2,heartbeats:Te})).length}!function so(Te){Ln(new U.uA("platform-logger",ye=>new or(ye),"PRIVATE")),Ln(new U.uA("heartbeat",ye=>new gi(ye),"PRIVATE")),wr(Ie,"0.14.5",Te),wr(Ie,"0.14.5","esm2020"),wr("fire-js","")}("")},4012(Fe,m,R){"use strict";R.d(m,{h1:()=>O,uA:()=>M});var y=R(467),U=R(9164);class M{constructor(x,C,Z){this.name=x,this.instanceFactory=C,this.type=Z,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(x){return this.instantiationMode=x,this}setMultipleInstances(x){return this.multipleInstances=x,this}setServiceProps(x){return this.serviceProps=x,this}setInstanceCreatedCallback(x){return this.onInstanceCreated=x,this}}const V="[DEFAULT]";class g{constructor(x,C){this.name=x,this.container=C,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(x){const C=this.normalizeInstanceIdentifier(x);if(!this.instancesDeferred.has(C)){const Z=new U.cY;if(this.instancesDeferred.set(C,Z),this.isInitialized(C)||this.shouldAutoInitialize())try{const X=this.getOrInitializeService({instanceIdentifier:C});X&&Z.resolve(X)}catch{}}return this.instancesDeferred.get(C).promise}getImmediate(x){const C=this.normalizeInstanceIdentifier(x?.identifier),Z=x?.optional??!1;if(!this.isInitialized(C)&&!this.shouldAutoInitialize()){if(Z)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:C})}catch(X){if(Z)return null;throw X}}getComponent(){return this.component}setComponent(x){if(x.name!==this.name)throw Error(`Mismatching Component ${x.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=x,this.shouldAutoInitialize()){if(function j(D){return"EAGER"===D.instantiationMode}(x))try{this.getOrInitializeService({instanceIdentifier:V})}catch{}for(const[C,Z]of this.instancesDeferred.entries()){const X=this.normalizeInstanceIdentifier(C);try{const re=this.getOrInitializeService({instanceIdentifier:X});Z.resolve(re)}catch{}}}}clearInstance(x=V){this.instancesDeferred.delete(x),this.instancesOptions.delete(x),this.instances.delete(x)}delete(){var x=this;return(0,y.A)(function*(){const C=Array.from(x.instances.values());yield Promise.all([...C.filter(Z=>"INTERNAL"in Z).map(Z=>Z.INTERNAL.delete()),...C.filter(Z=>"_delete"in Z).map(Z=>Z._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(x=V){return this.instances.has(x)}getOptions(x=V){return this.instancesOptions.get(x)||{}}initialize(x={}){const{options:C={}}=x,Z=this.normalizeInstanceIdentifier(x.instanceIdentifier);if(this.isInitialized(Z))throw Error(`${this.name}(${Z}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const X=this.getOrInitializeService({instanceIdentifier:Z,options:C});for(const[re,ie]of this.instancesDeferred.entries())Z===this.normalizeInstanceIdentifier(re)&&ie.resolve(X);return X}onInit(x,C){const Z=this.normalizeInstanceIdentifier(C),X=this.onInitCallbacks.get(Z)??new Set;X.add(x),this.onInitCallbacks.set(Z,X);const re=this.instances.get(Z);return re&&x(re,Z),()=>{X.delete(x)}}invokeOnInitCallbacks(x,C){const Z=this.onInitCallbacks.get(C);if(Z)for(const X of Z)try{X(x,C)}catch{}}getOrInitializeService({instanceIdentifier:x,options:C={}}){let Z=this.instances.get(x);if(!Z&&this.component&&(Z=this.component.instanceFactory(this.container,{instanceIdentifier:(D=x,D===V?void 0:D),options:C}),this.instances.set(x,Z),this.instancesOptions.set(x,C),this.invokeOnInitCallbacks(Z,x),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,x,Z)}catch{}var D;return Z||null}normalizeInstanceIdentifier(x=V){return this.component?this.component.multipleInstances?x:V:x}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class O{constructor(x){this.name=x,this.providers=new Map}addComponent(x){const C=this.getProvider(x.name);if(C.isComponentSet())throw new Error(`Component ${x.name} has already been registered with ${this.name}`);C.setComponent(x)}addOrOverwriteComponent(x){this.getProvider(x.name).isComponentSet()&&this.providers.delete(x.name),this.addComponent(x)}getProvider(x){if(this.providers.has(x))return this.providers.get(x);const C=new g(x,this);return this.providers.set(x,C),C}getProviders(){return Array.from(this.providers.values())}}},1563(Fe,m,R){"use strict";R.d(m,{$b:()=>U,Vy:()=>j});const y=[];var U=function(x){return x[x.DEBUG=0]="DEBUG",x[x.VERBOSE=1]="VERBOSE",x[x.INFO=2]="INFO",x[x.WARN=3]="WARN",x[x.ERROR=4]="ERROR",x[x.SILENT=5]="SILENT",x}(U||{});const M={debug:U.DEBUG,verbose:U.VERBOSE,info:U.INFO,warn:U.WARN,error:U.ERROR,silent:U.SILENT},V=U.INFO,g={[U.DEBUG]:"log",[U.VERBOSE]:"log",[U.INFO]:"info",[U.WARN]:"warn",[U.ERROR]:"error"},$=(x,C,...Z)=>{if(C<x.logLevel)return;const X=(new Date).toISOString(),re=g[C];if(!re)throw new Error(`Attempted to log a message with an invalid logType (value: ${C})`);console[re](`[${X}] ${x.name}:`,...Z)};class j{constructor(C){this.name=C,this._logLevel=V,this._logHandler=$,this._userLogHandler=null,y.push(this)}get logLevel(){return this._logLevel}set logLevel(C){if(!(C in U))throw new TypeError(`Invalid value "${C}" assigned to \`logLevel\``);this._logLevel=C}setLogLevel(C){this._logLevel="string"==typeof C?M[C]:C}get logHandler(){return this._logHandler}set logHandler(C){if("function"!=typeof C)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=C}get userLogHandler(){return this._userLogHandler}set userLogHandler(C){this._userLogHandler=C}debug(...C){this._userLogHandler&&this._userLogHandler(this,U.DEBUG,...C),this._logHandler(this,U.DEBUG,...C)}log(...C){this._userLogHandler&&this._userLogHandler(this,U.VERBOSE,...C),this._logHandler(this,U.VERBOSE,...C)}info(...C){this._userLogHandler&&this._userLogHandler(this,U.INFO,...C),this._logHandler(this,U.INFO,...C)}warn(...C){this._userLogHandler&&this._userLogHandler(this,U.WARN,...C),this._logHandler(this,U.WARN,...C)}error(...C){this._userLogHandler&&this._userLogHandler(this,U.ERROR,...C),this._logHandler(this,U.ERROR,...C)}}},4400(Fe,m,R){"use strict";R.d(m,{NV:()=>cG,f$:()=>$p,g8:()=>yb,Ug:()=>tC});var y={};R.r(y),R.d(y,{base64:()=>Kk,base64url:()=>nv,bigint:()=>oA,boolean:()=>aA,browserEmail:()=>kL,cidrv4:()=>Hk,cidrv6:()=>Wk,cuid:()=>Dk,cuid2:()=>Ok,date:()=>eA,datetime:()=>rA,domain:()=>Jk,duration:()=>jk,e164:()=>Xk,email:()=>zk,emoji:()=>qk,extendedDuration:()=>vL,guid:()=>Vk,hex:()=>hA,hostname:()=>Qk,html5Email:()=>TL,idnEmail:()=>SL,integer:()=>sA,ipv4:()=>Zk,ipv6:()=>Bk,ksuid:()=>Uk,lowercase:()=>lA,mac:()=>Gk,md5_base64:()=>RL,md5_base64url:()=>$L,md5_hex:()=>PL,nanoid:()=>Lk,null:()=>cA,number:()=>rv,rfc5322Email:()=>EL,sha1_base64:()=>CL,sha1_base64url:()=>DL,sha1_hex:()=>xL,sha256_base64:()=>NL,sha256_base64url:()=>ML,sha256_hex:()=>OL,sha384_base64:()=>LL,sha384_base64url:()=>jL,sha384_hex:()=>UL,sha512_base64:()=>zL,sha512_base64url:()=>FL,sha512_hex:()=>VL,string:()=>iA,time:()=>nA,ulid:()=>Nk,undefined:()=>uA,unicodeEmail:()=>Fk,uppercase:()=>dA,uuid:()=>qa,uuid4:()=>wL,uuid6:()=>bL,uuid7:()=>IL,xid:()=>Mk});var U={};R.r(U),R.d(U,{endsWith:()=>pP,gt:()=>Ga,gte:()=>Ui,includes:()=>dP,length:()=>lv,lowercase:()=>uP,lt:()=>Ba,lte:()=>Po,maxLength:()=>uv,maxSize:()=>Zh,mime:()=>fP,minLength:()=>Pu,minSize:()=>Ha,multipleOf:()=>qh,negative:()=>Qz,nonnegative:()=>Xz,nonpositive:()=>Jz,normalize:()=>mP,overwrite:()=>js,positive:()=>Kz,property:()=>Yz,regex:()=>cP,size:()=>cv,slugify:()=>vP,startsWith:()=>hP,toLowerCase:()=>_P,toUpperCase:()=>yP,trim:()=>gP,uppercase:()=>lP});var M={};R.r(M),R.d(M,{ZodISODate:()=>kR,ZodISODateTime:()=>SR,ZodISODuration:()=>$R,ZodISOTime:()=>PR,date:()=>AR,datetime:()=>yv,duration:()=>xR,time:()=>RR});var V={};R.r(V),R.d(V,{ZodAny:()=>LR,ZodArray:()=>qR,ZodBase64:()=>Cv,ZodBase64URL:()=>Dv,ZodBigInt:()=>tp,ZodBigIntFormat:()=>Uv,ZodBoolean:()=>ep,ZodCIDRv4:()=>$v,ZodCIDRv6:()=>xv,ZodCUID:()=>Tv,ZodCUID2:()=>Ev,ZodCatch:()=>u1,ZodCodec:()=>Bv,ZodCustom:()=>up,ZodCustomStringFormat:()=>Cu,ZodDate:()=>jv,ZodDefault:()=>r1,ZodDiscriminatedUnion:()=>BR,ZodE164:()=>Ov,ZodEmail:()=>wv,ZodEmoji:()=>bv,ZodEnum:()=>Du,ZodExactOptional:()=>e1,ZodFile:()=>XR,ZodFunction:()=>y1,ZodGUID:()=>Jh,ZodIPv4:()=>Pv,ZodIPv6:()=>Rv,ZodIntersection:()=>GR,ZodJWT:()=>Nv,ZodKSUID:()=>Av,ZodLazy:()=>m1,ZodLiteral:()=>JR,ZodMAC:()=>OR,ZodMap:()=>KR,ZodNaN:()=>d1,ZodNanoID:()=>Iv,ZodNever:()=>zR,ZodNonOptional:()=>qv,ZodNull:()=>UR,ZodNullable:()=>n1,ZodNumber:()=>Yh,ZodNumberFormat:()=>Wa,ZodObject:()=>rp,ZodOptional:()=>Fv,ZodPipe:()=>Zv,ZodPrefault:()=>o1,ZodPromise:()=>_1,ZodReadonly:()=>h1,ZodRecord:()=>sp,ZodSet:()=>QR,ZodString:()=>Qh,ZodStringFormat:()=>wn,ZodSuccess:()=>c1,ZodSymbol:()=>NR,ZodTemplateLiteral:()=>f1,ZodTransform:()=>YR,ZodTuple:()=>HR,ZodType:()=>Ft,ZodULID:()=>Sv,ZodURL:()=>Xh,ZodUUID:()=>$o,ZodUndefined:()=>MR,ZodUnion:()=>ip,ZodUnknown:()=>VR,ZodVoid:()=>FR,ZodXID:()=>kv,ZodXor:()=>ZR,_ZodString:()=>vv,_default:()=>i1,_function:()=>v1,any:()=>jR,array:()=>it,base64:()=>u3,base64url:()=>l3,bigint:()=>b3,boolean:()=>fn,catch:()=>l1,check:()=>q3,cidrv4:()=>a3,cidrv6:()=>c3,codec:()=>V3,cuid:()=>YF,cuid2:()=>e3,custom:()=>w1,date:()=>A3,describe:()=>Z3,discriminatedUnion:()=>Vv,e164:()=>d3,email:()=>ZF,emoji:()=>JF,enum:()=>Br,exactOptional:()=>t1,file:()=>M3,float32:()=>_3,float64:()=>y3,function:()=>v1,guid:()=>BF,hash:()=>g3,hex:()=>m3,hostname:()=>f3,httpUrl:()=>QF,instanceof:()=>G3,int:()=>Mv,int32:()=>v3,int64:()=>I3,intersection:()=>op,ipv4:()=>i3,ipv6:()=>s3,json:()=>W3,jwt:()=>h3,keyof:()=>P3,ksuid:()=>r3,lazy:()=>g1,literal:()=>Tt,looseObject:()=>mr,looseRecord:()=>C3,mac:()=>o3,map:()=>D3,meta:()=>B3,nan:()=>j3,nanoid:()=>XF,nativeEnum:()=>N3,never:()=>Lv,nonoptional:()=>a1,null:()=>np,nullable:()=>ap,nullish:()=>U3,number:()=>en,object:()=>at,optional:()=>Nn,partialRecord:()=>x3,pipe:()=>cp,prefault:()=>s1,preprocess:()=>Gv,promise:()=>F3,readonly:()=>p1,record:()=>kn,refine:()=>b1,set:()=>O3,strictObject:()=>R3,string:()=>se,stringFormat:()=>p3,stringbool:()=>H3,success:()=>L3,superRefine:()=>I1,symbol:()=>E3,templateLiteral:()=>z3,transform:()=>zv,tuple:()=>WR,uint32:()=>w3,uint64:()=>T3,ulid:()=>t3,undefined:()=>S3,union:()=>mn,unknown:()=>bn,url:()=>DR,uuid:()=>GF,uuidv4:()=>HF,uuidv6:()=>WF,uuidv7:()=>KF,void:()=>k3,xid:()=>n3,xor:()=>$3});var g=R(467),j=(R(600),R(4056));(0,j.KO)("firebase","12.5.0","app"),R(4940);var C=R(639),Z=R(6353);function N(n){return n.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}const W=/^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i,ne=/^(?:(?:[^/?#]{3,}|\.?[^/?#.]\.?)(?:\/[^/?#]{3,}|\.?[^/?#.]\.?)*\/?)?(?:[?#]|$)/;class Le{constructor(e){this.base=e,this._baseLength=0,this._baseMatcher=null,this._pathReplacements=new Array(e.length+1)}static supports(e){return!W.test(e)}_getBaseMatcher(){if(this._baseMatcher)return this._baseMatcher;if(!Le.supports(this.base))return this._baseMatcher=/.^/;const e=/^[^:]*:\/*/.exec(this.base)[0],t=["^",N(e)],r=[],i=[],o=/[^/?#]*([/?#])/y;let s,a=0,c=0,u=o.lastIndex=e.length;for(;!a&&!c&&(s=o.exec(this.base));)"#"===s[1]?c=o.lastIndex-1:(t.push(N(s[0]),"(?:"),r.push(")?"),"?"!==s[1]?i.push(u=o.lastIndex):(a=u=o.lastIndex,c=this.base.indexOf("#",a),this._pathReplacements[a]="?"));for(let d=0;d<i.length;d++)this._pathReplacements[i[d]]="../".repeat(i.length-d-1);return this._pathReplacements[i[i.length-1]]="./",this._baseLength=c>0?c:this.base.length,t.push(N(this.base.substring(u,this._baseLength)),a?"(?:#|$)":"(?:[?#]|$)"),this._baseMatcher=new RegExp([...t,...r].join(""))}toRelative(e){const t=this._getBaseMatcher().exec(e);if(!t)return e;const r=t[0].length;if(r===this._baseLength&&r===e.length)return"";const i=this._pathReplacements[r];if(i){const o=e.substring(r);return"?"===i||ne.test(o)?"./"===i&&/^[^?#]/.test(o)?o:i+o:e}return e.substring(r-1)}}const ot=Z.Ay.defaultGraph(),{rdf:Pt,xsd:At}=C.A,Pn=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,Nt=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,or={"\\":"\\\\",'"':'\\"',"\t":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class Ze extends Z.x1{equals(e){return e===this}}class Ie{constructor(e,t){if(this._prefixRegex=/$0^/,e&&"function"!=typeof e.write&&(t=e,e=null),this._lists=(t=t||{}).lists,e)this._outputStream=e,this._endStream=void 0===t.end||!!t.end;else{let r="";this._outputStream={write(i,o,s){r+=i,s&&s()},end:i=>{i&&i(null,r)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=ot,this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),t.baseIRI&&(this._baseIri=new Le(t.baseIRI)))}get _inDefaultGraph(){return ot.equals(this._graph)}_write(e,t){this._outputStream.write(e,"utf8",t)}_writeQuad(e,t,r,i,o){try{i.equals(this._graph)||(this._write((null===this._subject?"":this._inDefaultGraph?".\n":"\n}\n")+(ot.equals(i)?"":`${this._encodeIriOrBlank(i)} {\n`)),this._graph=i,this._subject=null),e.equals(this._subject)?t.equals(this._predicate)?this._write(`, ${this._encodeObject(r)}`,o):this._write(`;\n ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(r)}`,o):this._write(`${(null===this._subject?"":".\n")+this._encodeSubject(this._subject=e)} ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(r)}`,o)}catch(s){o&&o(s)}}_writeQuadLine(e,t,r,i,o){delete this._prefixMatch,this._write(this.quadToString(e,t,r,i),o)}quadToString(e,t,r,i){return`${this._encodeSubject(e)} ${this._encodeIriOrBlank(t)} ${this._encodeObject(r)}${i&&i.value?` ${this._encodeIriOrBlank(i)} .\n`:" .\n"}`}quadsToString(e){let t="";for(const r of e)t+=this.quadToString(r.subject,r.predicate,r.object,r.graph);return t}_encodeSubject(e){return"Quad"===e.termType?this._encodeQuad(e):this._encodeIriOrBlank(e)}_encodeIriOrBlank(e){if("NamedNode"!==e.termType)return this._lists&&e.value in this._lists&&(e=this.list(this._lists[e.value])),"id"in e?e.id:`_:${e.value}`;let t=e.value;this._baseIri&&(t=this._baseIri.toRelative(t)),Pn.test(t)&&(t=t.replace(Nt,me));const r=this._prefixRegex.exec(t);return r?r[1]?this._prefixIRIs[r[1]]+r[2]:t:`<${t}>`}_encodeLiteral(e){let t=e.value;if(Pn.test(t)&&(t=t.replace(Nt,me)),e.language)return`"${t}"@${e.language}`;if(this._lineMode){if(e.datatype.value===At.string)return`"${t}"`}else switch(e.datatype.value){case At.string:return`"${t}"`;case At.boolean:if("true"===t||"false"===t)return t;break;case At.integer:if(/^[+-]?\d+$/.test(t))return t;break;case At.decimal:if(/^[+-]?\d*\.\d+$/.test(t))return t;break;case At.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(t))return t}return`"${t}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===Pt.type?"a":this._encodeIriOrBlank(e)}_encodeObject(e){switch(e.termType){case"Quad":return this._encodeQuad(e);case"Literal":return this._encodeLiteral(e);default:return this._encodeIriOrBlank(e)}}_encodeQuad({subject:e,predicate:t,object:r,graph:i}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(t)} ${this._encodeObject(r)}${function _(n){return!!n&&"DefaultGraph"===n.termType}(i)?"":` ${this._encodeIriOrBlank(i)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,t,r,i,o){void 0===r?this._writeQuad(e.subject,e.predicate,e.object,e.graph,t):"function"==typeof i?this._writeQuad(e,t,r,ot,i):this._writeQuad(e,t,r,i||ot,o)}addQuads(e){for(let t=0;t<e.length;t++)this.addQuad(e[t])}addPrefix(e,t,r){const i={};i[e]=t,this.addPrefixes(i,r)}addPrefixes(e,t){if(!this._prefixIRIs)return t&&t();let r=!1;for(let i in e){let o=e[i];"string"!=typeof o&&(o=o.value),r=!0,null!==this._subject&&(this._write(this._inDefaultGraph?".\n":"\n}\n"),this._subject=null,this._graph=""),this._prefixIRIs[o]=i+=":",this._write(`@prefix ${i} <${o}>.\n`)}if(r){let i="",o="";for(const s in this._prefixIRIs)i+=i?`|${s}`:s,o+=(o?"|":"")+this._prefixIRIs[s];i=N(i),this._prefixRegex=new RegExp(`^(?:${o})[^/]*$|^(${i})([_a-zA-Z0-9][\\-_a-zA-Z0-9]*)$`)}this._write(r?"\n":"",t)}blank(e,t){let i,o,r=e;switch(void 0===e?r=[]:e.termType?r=[{predicate:e,object:t}]:"length"in e||(r=[e]),o=r.length){case 0:return new Ze("[]");case 1:if(i=r[0],!(i.object instanceof Ze))return new Ze(`[ ${this._encodePredicate(i.predicate)} ${this._encodeObject(i.object)} ]`);default:let s="[";for(let a=0;a<o;a++)i=r[a],i.predicate.equals(e)?s+=`, ${this._encodeObject(i.object)}`:(s+=`${(a?";\n ":"\n ")+this._encodePredicate(i.predicate)} ${this._encodeObject(i.object)}`,e=i.predicate);return new Ze(`${s}\n]`)}}list(e){const t=e&&e.length||0,r=new Array(t);for(let i=0;i<t;i++)r[i]=this._encodeObject(e[i]);return new Ze(`(${r.join(" ")})`)}end(e){null!==this._subject&&(this._write(this._inDefaultGraph?".\n":"\n}\n"),this._subject=null),this._write=this._blockedWrite;let t=e&&((r,i)=>{t=null,e(r,i)});if(this._endStream)try{return this._outputStream.end(t)}catch{}t&&t()}}function me(n){let e=or[n];return void 0===e&&(1===n.length?(e=n.charCodeAt(0).toString(16),e="\\u0000".substr(0,6-e.length)+e):(e=(1024*(n.charCodeAt(0)-55296)+n.charCodeAt(1)+9216).toString(16),e="\\U00000000".substr(0,10-e.length)+e)),e}var Et,z=R(4012),H=R(1563),oe=R(9164),Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dt={};(function(){var n;function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}function i(le,G,ee){ee||(ee=0);const fe=Array(16);if("string"==typeof G)for(var pe=0;pe<16;++pe)fe[pe]=G.charCodeAt(ee++)|G.charCodeAt(ee++)<<8|G.charCodeAt(ee++)<<16|G.charCodeAt(ee++)<<24;else for(pe=0;pe<16;++pe)fe[pe]=G[ee++]|G[ee++]<<8|G[ee++]<<16|G[ee++]<<24;let te,xe=le.g[3];te=(G=le.g[0])+(xe^(ee=le.g[1])&((pe=le.g[2])^xe))+fe[0]+3614090360&4294967295,te=xe+(pe^(G=ee+(te<<7&4294967295|te>>>25))&(ee^pe))+fe[1]+3905402710&4294967295,xe=G+(te<<12&4294967295|te>>>20),te=pe+(ee^xe&(G^ee))+fe[2]+606105819&4294967295,te=ee+(G^(pe=xe+(te<<17&4294967295|te>>>15))&(xe^G))+fe[3]+3250441966&4294967295,te=G+(xe^(ee=pe+(te<<22&4294967295|te>>>10))&(pe^xe))+fe[4]+4118548399&4294967295,te=xe+(pe^(G=ee+(te<<7&4294967295|te>>>25))&(ee^pe))+fe[5]+1200080426&4294967295,xe=G+(te<<12&4294967295|te>>>20),te=pe+(ee^xe&(G^ee))+fe[6]+2821735955&4294967295,te=ee+(G^(pe=xe+(te<<17&4294967295|te>>>15))&(xe^G))+fe[7]+4249261313&4294967295,te=G+(xe^(ee=pe+(te<<22&4294967295|te>>>10))&(pe^xe))+fe[8]+1770035416&4294967295,te=xe+(pe^(G=ee+(te<<7&4294967295|te>>>25))&(ee^pe))+fe[9]+2336552879&4294967295,xe=G+(te<<12&4294967295|te>>>20),te=pe+(ee^xe&(G^ee))+fe[10]+4294925233&4294967295,te=ee+(G^(pe=xe+(te<<17&4294967295|te>>>15))&(xe^G))+fe[11]+2304563134&4294967295,te=G+(xe^(ee=pe+(te<<22&4294967295|te>>>10))&(pe^xe))+fe[12]+1804603682&4294967295,te=xe+(pe^(G=ee+(te<<7&4294967295|te>>>25))&(ee^pe))+fe[13]+4254626195&4294967295,xe=G+(te<<12&4294967295|te>>>20),te=pe+(ee^xe&(G^ee))+fe[14]+2792965006&4294967295,te=ee+(G^(pe=xe+(te<<17&4294967295|te>>>15))&(xe^G))+fe[15]+1236535329&4294967295,te=G+(pe^xe&((ee=pe+(te<<22&4294967295|te>>>10))^pe))+fe[1]+4129170786&4294967295,te=xe+(ee^pe&((G=ee+(te<<5&4294967295|te>>>27))^ee))+fe[6]+3225465664&4294967295,xe=G+(te<<9&4294967295|te>>>23),te=pe+(G^ee&(xe^G))+fe[11]+643717713&4294967295,te=ee+(xe^G&((pe=xe+(te<<14&4294967295|te>>>18))^xe))+fe[0]+3921069994&4294967295,te=G+(pe^xe&((ee=pe+(te<<20&4294967295|te>>>12))^pe))+fe[5]+3593408605&4294967295,te=xe+(ee^pe&((G=ee+(te<<5&4294967295|te>>>27))^ee))+fe[10]+38016083&4294967295,xe=G+(te<<9&4294967295|te>>>23),te=pe+(G^ee&(xe^G))+fe[15]+3634488961&4294967295,te=ee+(xe^G&((pe=xe+(te<<14&4294967295|te>>>18))^xe))+fe[4]+3889429448&4294967295,te=G+(pe^xe&((ee=pe+(te<<20&4294967295|te>>>12))^pe))+fe[9]+568446438&4294967295,te=xe+(ee^pe&((G=ee+(te<<5&4294967295|te>>>27))^ee))+fe[14]+3275163606&4294967295,xe=G+(te<<9&4294967295|te>>>23),te=pe+(G^ee&(xe^G))+fe[3]+4107603335&4294967295,te=ee+(xe^G&((pe=xe+(te<<14&4294967295|te>>>18))^xe))+fe[8]+1163531501&4294967295,te=G+(pe^xe&((ee=pe+(te<<20&4294967295|te>>>12))^pe))+fe[13]+2850285829&4294967295,te=xe+(ee^pe&((G=ee+(te<<5&4294967295|te>>>27))^ee))+fe[2]+4243563512&4294967295,xe=G+(te<<9&4294967295|te>>>23),te=pe+(G^ee&(xe^G))+fe[7]+1735328473&4294967295,te=ee+(xe^G&((pe=xe+(te<<14&4294967295|te>>>18))^xe))+fe[12]+2368359562&4294967295,te=G+((ee=pe+(te<<20&4294967295|te>>>12))^pe^xe)+fe[5]+4294588738&4294967295,te=xe+((G=ee+(te<<4&4294967295|te>>>28))^ee^pe)+fe[8]+2272392833&4294967295,xe=G+(te<<11&4294967295|te>>>21),te=pe+(xe^G^ee)+fe[11]+1839030562&4294967295,te=ee+((pe=xe+(te<<16&4294967295|te>>>16))^xe^G)+fe[14]+4259657740&4294967295,te=G+((ee=pe+(te<<23&4294967295|te>>>9))^pe^xe)+fe[1]+2763975236&4294967295,te=xe+((G=ee+(te<<4&4294967295|te>>>28))^ee^pe)+fe[4]+1272893353&4294967295,xe=G+(te<<11&4294967295|te>>>21),te=pe+(xe^G^ee)+fe[7]+4139469664&4294967295,te=ee+((pe=xe+(te<<16&4294967295|te>>>16))^xe^G)+fe[10]+3200236656&4294967295,te=G+((ee=pe+(te<<23&4294967295|te>>>9))^pe^xe)+fe[13]+681279174&4294967295,te=xe+((G=ee+(te<<4&4294967295|te>>>28))^ee^pe)+fe[0]+3936430074&4294967295,xe=G+(te<<11&4294967295|te>>>21),te=pe+(xe^G^ee)+fe[3]+3572445317&4294967295,te=ee+((pe=xe+(te<<16&4294967295|te>>>16))^xe^G)+fe[6]+76029189&4294967295,te=G+((ee=pe+(te<<23&4294967295|te>>>9))^pe^xe)+fe[9]+3654602809&4294967295,te=xe+((G=ee+(te<<4&4294967295|te>>>28))^ee^pe)+fe[12]+3873151461&4294967295,xe=G+(te<<11&4294967295|te>>>21),te=pe+(xe^G^ee)+fe[15]+530742520&4294967295,te=ee+((pe=xe+(te<<16&4294967295|te>>>16))^xe^G)+fe[2]+3299628645&4294967295,te=G+(pe^((ee=pe+(te<<23&4294967295|te>>>9))|~xe))+fe[0]+4096336452&4294967295,te=xe+(ee^((G=ee+(te<<6&4294967295|te>>>26))|~pe))+fe[7]+1126891415&4294967295,xe=G+(te<<10&4294967295|te>>>22),te=pe+(G^(xe|~ee))+fe[14]+2878612391&4294967295,te=ee+(xe^((pe=xe+(te<<15&4294967295|te>>>17))|~G))+fe[5]+4237533241&4294967295,te=G+(pe^((ee=pe+(te<<21&4294967295|te>>>11))|~xe))+fe[12]+1700485571&4294967295,te=xe+(ee^((G=ee+(te<<6&4294967295|te>>>26))|~pe))+fe[3]+2399980690&4294967295,xe=G+(te<<10&4294967295|te>>>22),te=pe+(G^(xe|~ee))+fe[10]+4293915773&4294967295,te=ee+(xe^((pe=xe+(te<<15&4294967295|te>>>17))|~G))+fe[1]+2240044497&4294967295,te=G+(pe^((ee=pe+(te<<21&4294967295|te>>>11))|~xe))+fe[8]+1873313359&4294967295,te=xe+(ee^((G=ee+(te<<6&4294967295|te>>>26))|~pe))+fe[15]+4264355552&4294967295,xe=G+(te<<10&4294967295|te>>>22),te=pe+(G^(xe|~ee))+fe[6]+2734768916&4294967295,te=ee+(xe^((pe=xe+(te<<15&4294967295|te>>>17))|~G))+fe[13]+1309151649&4294967295,te=G+(pe^((ee=pe+(te<<21&4294967295|te>>>11))|~xe))+fe[4]+4149444226&4294967295,te=xe+(ee^((G=ee+(te<<6&4294967295|te>>>26))|~pe))+fe[11]+3174756917&4294967295,xe=G+(te<<10&4294967295|te>>>22),te=pe+(G^(xe|~ee))+fe[2]+718787259&4294967295,te=ee+(xe^((pe=xe+(te<<15&4294967295|te>>>17))|~G))+fe[9]+3951481745&4294967295,le.g[0]=le.g[0]+G&4294967295,le.g[1]=le.g[1]+(pe+(te<<21&4294967295|te>>>11))&4294967295,le.g[2]=le.g[2]+pe&4294967295,le.g[3]=le.g[3]+xe&4294967295}function s(le,G){this.h=G;const ee=[];let fe=!0;for(let pe=le.length-1;pe>=0;pe--){const xe=0|le[pe];fe&&xe==G||(ee[pe]=xe,fe=!1)}this.g=ee}(function e(le,G){function ee(){}ee.prototype=G.prototype,le.F=G.prototype,le.prototype=new ee,le.prototype.constructor=le,le.D=function(fe,pe,xe){for(var te=Array(arguments.length-2),ii=2;ii<arguments.length;ii++)te[ii-2]=arguments[ii];return G.prototype[pe].apply(fe,te)}})(r,function t(){this.blockSize=-1}),r.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},r.prototype.v=function(le,G){void 0===G&&(G=le.length);const ee=G-this.blockSize,fe=this.C;let pe=this.h,xe=0;for(;xe<G;){if(0==pe)for(;xe<=ee;)i(this,le,xe),xe+=this.blockSize;if("string"==typeof le){for(;xe<G;)if(fe[pe++]=le.charCodeAt(xe++),pe==this.blockSize){i(this,fe),pe=0;break}}else for(;xe<G;)if(fe[pe++]=le[xe++],pe==this.blockSize){i(this,fe),pe=0;break}}this.h=pe,this.o+=G},r.prototype.A=function(){var le=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);le[0]=128;for(var G=1;G<le.length-8;++G)le[G]=0;G=8*this.o;for(var ee=le.length-8;ee<le.length;++ee)le[ee]=255&G,G/=256;for(this.v(le),le=Array(16),G=0,ee=0;ee<4;++ee)for(let fe=0;fe<32;fe+=8)le[G++]=this.g[ee]>>>fe&255;return le};var a={};function c(le){return-128<=le&&le<128?function o(le,G){var ee=a;return Object.prototype.hasOwnProperty.call(ee,le)?ee[le]:ee[le]=G(le)}(le,function(G){return new s([0|G],G<0?-1:0)}):new s([0|le],le<0?-1:0)}function u(le){if(isNaN(le)||!isFinite(le))return h;if(le<0)return de(u(-le));const G=[];let ee=1;for(let fe=0;le>=ee;fe++)G[fe]=le/ee|0,ee*=4294967296;return new s(G,0)}var h=c(0),f=c(1),E=c(16777216);function q(le){if(0!=le.h)return!1;for(let G=0;G<le.g.length;G++)if(0!=le.g[G])return!1;return!0}function Q(le){return-1==le.h}function de(le){const G=le.g.length,ee=[];for(let fe=0;fe<G;fe++)ee[fe]=~le.g[fe];return new s(ee,~le.h).add(f)}function $e(le,G){return le.add(de(G))}function je(le,G){for(;(65535&le[G])!=le[G];)le[G+1]+=le[G]>>>16,le[G]&=65535,G++}function De(le,G){this.g=le,this.h=G}function et(le,G){if(q(G))throw Error("division by zero");if(q(le))return new De(h,h);if(Q(le))return G=et(de(le),G),new De(de(G.g),de(G.h));if(Q(G))return G=et(le,de(G)),new De(de(G.g),G.h);if(le.g.length>30){if(Q(le)||Q(G))throw Error("slowDivide_ only works with positive integers.");for(var ee=f,fe=G;fe.l(le)<=0;)ee=gt(ee),fe=gt(fe);var pe=xt(ee,1),xe=xt(fe,1);for(fe=xt(fe,2),ee=xt(ee,2);!q(fe);){var te=xe.add(fe);te.l(le)<=0&&(pe=pe.add(ee),xe=te),fe=xt(fe,1),ee=xt(ee,1)}return G=$e(le,pe.j(G)),new De(pe,G)}for(pe=h;le.l(G)>=0;){for(ee=Math.max(1,Math.floor(le.m()/G.m())),fe=(fe=Math.ceil(Math.log(ee)/Math.LN2))<=48?1:Math.pow(2,fe-48),te=(xe=u(ee)).j(G);Q(te)||te.l(le)>0;)te=(xe=u(ee-=fe)).j(G);q(xe)&&(xe=f),pe=pe.add(xe),le=$e(le,te)}return new De(pe,le)}function gt(le){const G=le.g.length+1,ee=[];for(let fe=0;fe<G;fe++)ee[fe]=le.i(fe)<<1|le.i(fe-1)>>>31;return new s(ee,le.h)}function xt(le,G){const ee=G>>5;G%=32;const fe=le.g.length-ee,pe=[];for(let xe=0;xe<fe;xe++)pe[xe]=G>0?le.i(xe+ee)>>>G|le.i(xe+ee+1)<<32-G:le.i(xe+ee);return new s(pe,le.h)}(n=s.prototype).m=function(){if(Q(this))return-de(this).m();let le=0,G=1;for(let ee=0;ee<this.g.length;ee++){const fe=this.i(ee);le+=(fe>=0?fe:4294967296+fe)*G,G*=4294967296}return le},n.toString=function(le){if((le=le||10)<2||36<le)throw Error("radix out of range: "+le);if(q(this))return"0";if(Q(this))return"-"+de(this).toString(le);const G=u(Math.pow(le,6));var ee=this;let fe="";for(;;){const pe=et(ee,G).g;let xe=(((ee=$e(ee,pe.j(G))).g.length>0?ee.g[0]:ee.h)>>>0).toString(le);if(q(ee=pe))return xe+fe;for(;xe.length<6;)xe="0"+xe;fe=xe+fe}},n.i=function(le){return le<0?0:le<this.g.length?this.g[le]:this.h},n.l=function(le){return Q(le=$e(this,le))?-1:q(le)?0:1},n.abs=function(){return Q(this)?de(this):this},n.add=function(le){const G=Math.max(this.g.length,le.g.length),ee=[];let fe=0;for(let pe=0;pe<=G;pe++){let xe=fe+(65535&this.i(pe))+(65535&le.i(pe)),te=(xe>>>16)+(this.i(pe)>>>16)+(le.i(pe)>>>16);fe=te>>>16,xe&=65535,te&=65535,ee[pe]=te<<16|xe}return new s(ee,-2147483648&ee[ee.length-1]?-1:0)},n.j=function(le){if(q(this)||q(le))return h;if(Q(this))return Q(le)?de(this).j(de(le)):de(de(this).j(le));if(Q(le))return de(this.j(de(le)));if(this.l(E)<0&&le.l(E)<0)return u(this.m()*le.m());const G=this.g.length+le.g.length,ee=[];for(var fe=0;fe<2*G;fe++)ee[fe]=0;for(fe=0;fe<this.g.length;fe++)for(let pe=0;pe<le.g.length;pe++){const xe=this.i(fe)>>>16,te=65535&this.i(fe),ii=le.i(pe)>>>16,os=65535&le.i(pe);ee[2*fe+2*pe]+=te*os,je(ee,2*fe+2*pe),ee[2*fe+2*pe+1]+=xe*os,je(ee,2*fe+2*pe+1),ee[2*fe+2*pe+1]+=te*ii,je(ee,2*fe+2*pe+1),ee[2*fe+2*pe+2]+=xe*ii,je(ee,2*fe+2*pe+2)}for(le=0;le<G;le++)ee[le]=ee[2*le+1]<<16|ee[2*le];for(le=G;le<2*G;le++)ee[le]=0;return new s(ee,0)},n.B=function(le){return et(this,le).h},n.and=function(le){const G=Math.max(this.g.length,le.g.length),ee=[];for(let fe=0;fe<G;fe++)ee[fe]=this.i(fe)&le.i(fe);return new s(ee,this.h&le.h)},n.or=function(le){const G=Math.max(this.g.length,le.g.length),ee=[];for(let fe=0;fe<G;fe++)ee[fe]=this.i(fe)|le.i(fe);return new s(ee,this.h|le.h)},n.xor=function(le){const G=Math.max(this.g.length,le.g.length),ee=[];for(let fe=0;fe<G;fe++)ee[fe]=this.i(fe)^le.i(fe);return new s(ee,this.h^le.h)},r.prototype.digest=r.prototype.A,r.prototype.reset=r.prototype.u,r.prototype.update=r.prototype.v,dt.Md5=r,s.prototype.add=s.prototype.add,s.prototype.multiply=s.prototype.j,s.prototype.modulo=s.prototype.B,s.prototype.compare=s.prototype.l,s.prototype.toNumber=s.prototype.m,s.prototype.toString=s.prototype.toString,s.prototype.getBits=s.prototype.i,s.fromNumber=u,s.fromString=function d(le,G){if(0==le.length)throw Error("number format error: empty string");if((G=G||10)<2||36<G)throw Error("radix out of range: "+G);if("-"==le.charAt(0))return de(d(le.substring(1),G));if(le.indexOf("-")>=0)throw Error('number format error: interior "-" character');const ee=u(Math.pow(G,8));let fe=h;for(let xe=0;xe<le.length;xe+=8){var pe=Math.min(8,le.length-xe);const te=parseInt(le.substring(xe,xe+pe),G);pe<8?(pe=u(Math.pow(G,pe)),fe=fe.j(pe).add(u(te))):(fe=fe.j(ee),fe=fe.add(u(te)))}return fe},Et=dt.Integer=s}).apply(typeof Qe<"u"?Qe:typeof self<"u"?self:typeof window<"u"?window:{});var Mn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ge={};(function(){var n,e=Object.defineProperty,r=function t(l){l=["object"==typeof globalThis&&globalThis,l,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof Mn&&Mn];for(var p=0;p<l.length;++p){var v=l[p];if(v&&v.Math==Math)return v}throw Error("Cannot find global object")}(this);function i(l,p){if(p)e:{var v=r;l=l.split(".");for(var L=0;L<l.length-1;L++){var ke=l[L];if(!(ke in v))break e;v=v[ke]}(p=p(L=v[l=l[l.length-1]]))!=L&&null!=p&&e(v,l,{configurable:!0,writable:!0,value:p})}}i("Symbol.dispose",function(l){return l||Symbol("Symbol.dispose")}),i("Array.prototype.values",function(l){return l||function(){return this[Symbol.iterator]()}}),i("Object.entries",function(l){return l||function(p){var L,v=[];for(L in p)Object.prototype.hasOwnProperty.call(p,L)&&v.push([L,p[L]]);return v}});var o=o||{},s=this||self;function a(l){var p=typeof l;return"object"==p&&null!=l||"function"==p}function c(l,p,v){return l.call.apply(l.bind,arguments)}function u(l,p,v){return(u=c).apply(null,arguments)}function d(l,p){var v=Array.prototype.slice.call(arguments,1);return function(){var L=v.slice();return L.push.apply(L,arguments),l.apply(this,L)}}function h(l,p){function v(){}v.prototype=p.prototype,l.Z=p.prototype,l.prototype=new v,l.prototype.constructor=l,l.Ob=function(L,ke,Oe){for(var rt=Array(arguments.length-2),Zt=2;Zt<arguments.length;Zt++)rt[Zt-2]=arguments[Zt];return p.prototype[ke].apply(L,rt)}}var f=typeof AsyncContext<"u"&&"function"==typeof AsyncContext.Snapshot?l=>l&&AsyncContext.Snapshot.wrap(l):l=>l;function E(l){const p=l.length;if(p>0){const v=Array(p);for(let L=0;L<p;L++)v[L]=l[L];return v}return[]}function q(l,p){for(let L=1;L<arguments.length;L++){const ke=arguments[L];var v=typeof ke;if("array"==(v="object"!=v?v:ke?Array.isArray(ke)?"array":v:"null")||"object"==v&&"number"==typeof ke.length){const Oe=ke.length||0;l.length=(v=l.length||0)+Oe;for(let rt=0;rt<Oe;rt++)l[v+rt]=ke[rt]}else l.push(ke)}}function de(l){s.setTimeout(()=>{throw l},0)}function $e(){var l=le;let p=null;return l.g&&(p=l.g,l.g=l.g.next,l.g||(l.h=null),p.next=null),p}var De=new class Q{constructor(p,v){this.i=p,this.j=v,this.h=0,this.g=null}get(){let p;return this.h>0?(this.h--,p=this.g,this.g=p.next,p.next=null):p=this.i(),p}}(()=>new et,l=>l.reset());class et{constructor(){this.next=this.g=this.h=null}set(p,v){this.h=p,this.g=v,this.next=null}reset(){this.next=this.g=this.h=null}}let gt,xt=!1,le=new class je{constructor(){this.h=this.g=null}add(p,v){const L=De.get();L.set(p,v),this.h?this.h.next=L:this.g=L,this.h=L}},G=()=>{const l=Promise.resolve(void 0);gt=()=>{l.then(ee)}};function ee(){for(var l;l=$e();){try{l.h.call(l.g)}catch(v){de(v)}var p=De;p.j(l),p.h<100&&(p.h++,l.next=p.g,p.g=l)}xt=!1}function fe(){this.u=this.u,this.C=this.C}function pe(l,p){this.type=l,this.g=this.target=p,this.defaultPrevented=!1}fe.prototype.u=!1,fe.prototype.dispose=function(){this.u||(this.u=!0,this.N())},fe.prototype[Symbol.dispose]=function(){this.dispose()},fe.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},pe.prototype.h=function(){this.defaultPrevented=!0};var xe=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var l=!1,p=Object.defineProperty({},"passive",{get:function(){l=!0}});try{const v=()=>{};s.addEventListener("test",v,p),s.removeEventListener("test",v,p)}catch{}return l}();function te(l){return/^[\s\xa0]*$/.test(l)}function ii(l,p){pe.call(this,l?l.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,l&&this.init(l,p)}h(ii,pe),ii.prototype.init=function(l,p){const v=this.type=l.type,L=l.changedTouches&&l.changedTouches.length?l.changedTouches[0]:null;this.target=l.target||l.srcElement,this.g=p,(p=l.relatedTarget)||("mouseover"==v?p=l.fromElement:"mouseout"==v&&(p=l.toElement)),this.relatedTarget=p,L?(this.clientX=void 0!==L.clientX?L.clientX:L.pageX,this.clientY=void 0!==L.clientY?L.clientY:L.pageY,this.screenX=L.screenX||0,this.screenY=L.screenY||0):(this.clientX=void 0!==l.clientX?l.clientX:l.pageX,this.clientY=void 0!==l.clientY?l.clientY:l.pageY,this.screenX=l.screenX||0,this.screenY=l.screenY||0),this.button=l.button,this.key=l.key||"",this.ctrlKey=l.ctrlKey,this.altKey=l.altKey,this.shiftKey=l.shiftKey,this.metaKey=l.metaKey,this.pointerId=l.pointerId||0,this.pointerType=l.pointerType,this.state=l.state,this.i=l,l.defaultPrevented&&ii.Z.h.call(this)},ii.prototype.h=function(){ii.Z.h.call(this);const l=this.i;l.preventDefault?l.preventDefault():l.returnValue=!1};var os="closure_listenable_"+(1e6*Math.random()|0),lG=0;function dG(l,p,v,L,ke){this.listener=l,this.proxy=null,this.src=p,this.type=v,this.capture=!!L,this.ha=ke,this.key=++lG,this.da=this.fa=!1}function Op(l){l.da=!0,l.listener=null,l.proxy=null,l.src=null,l.ha=null}function Np(l,p,v){for(const L in l)p.call(v,l[L],L,l)}function yC(l){const p={};for(const v in l)p[v]=l[v];return p}const vC="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function wC(l,p){let v,L;for(let ke=1;ke<arguments.length;ke++){for(v in L=arguments[ke],L)l[v]=L[v];for(let Oe=0;Oe<vC.length;Oe++)v=vC[Oe],Object.prototype.hasOwnProperty.call(L,v)&&(l[v]=L[v])}}function Mp(l){this.src=l,this.g={},this.h=0}function $b(l,p){const v=p.type;if(v in l.g){var Oe,L=l.g[v],ke=Array.prototype.indexOf.call(L,p,void 0);(Oe=ke>=0)&&Array.prototype.splice.call(L,ke,1),Oe&&(Op(p),0==l.g[v].length&&(delete l.g[v],l.h--))}}function xb(l,p,v,L){for(let ke=0;ke<l.length;++ke){const Oe=l[ke];if(!Oe.da&&Oe.listener==p&&Oe.capture==!!v&&Oe.ha==L)return ke}return-1}Mp.prototype.add=function(l,p,v,L,ke){const Oe=l.toString();(l=this.g[Oe])||(l=this.g[Oe]=[],this.h++);const rt=xb(l,p,L,ke);return rt>-1?(p=l[rt],v||(p.fa=!1)):((p=new dG(p,this.src,Oe,!!L,ke)).fa=v,l.push(p)),p};var Cb="closure_lm_"+(1e6*Math.random()|0),Db={};function bC(l,p,v,L,ke){if(L&&L.once)return TC(l,p,v,L,ke);if(Array.isArray(p)){for(let Oe=0;Oe<p.length;Oe++)bC(l,p[Oe],v,L,ke);return null}return v=Ub(v),l&&l[os]?l.J(p,v,a(L)?!!L.capture:!!L,ke):IC(l,p,v,!1,L,ke)}function IC(l,p,v,L,ke,Oe){if(!p)throw Error("Invalid event type");const rt=a(ke)?!!ke.capture:!!ke;let Zt=Nb(l);if(Zt||(l[Cb]=Zt=new Mp(l)),(v=Zt.add(p,v,L,rt,Oe)).proxy)return v;if(L=function pG(){const p=fG;return function l(v){return p.call(l.src,l.listener,v)}}(),v.proxy=L,L.src=l,L.listener=v,l.addEventListener)xe||(ke=rt),void 0===ke&&(ke=!1),l.addEventListener(p.toString(),L,ke);else if(l.attachEvent)l.attachEvent(SC(p.toString()),L);else{if(!l.addListener||!l.removeListener)throw Error("addEventListener and attachEvent are unavailable.");l.addListener(L)}return v}function TC(l,p,v,L,ke){if(Array.isArray(p)){for(let Oe=0;Oe<p.length;Oe++)TC(l,p[Oe],v,L,ke);return null}return v=Ub(v),l&&l[os]?l.K(p,v,a(L)?!!L.capture:!!L,ke):IC(l,p,v,!0,L,ke)}function EC(l,p,v,L,ke){if(Array.isArray(p))for(var Oe=0;Oe<p.length;Oe++)EC(l,p[Oe],v,L,ke);else L=a(L)?!!L.capture:!!L,v=Ub(v),l&&l[os]?(l=l.i,(Oe=String(p).toString())in l.g&&(v=xb(p=l.g[Oe],v,L,ke))>-1&&(Op(p[v]),Array.prototype.splice.call(p,v,1),0==p.length&&(delete l.g[Oe],l.h--))):l&&(l=Nb(l))&&(p=l.g[p.toString()],l=-1,p&&(l=xb(p,v,L,ke)),(v=l>-1?p[l]:null)&&Ob(v))}function Ob(l){if("number"!=typeof l&&l&&!l.da){var p=l.src;if(p&&p[os])$b(p.i,l);else{var v=l.type,L=l.proxy;p.removeEventListener?p.removeEventListener(v,L,l.capture):p.detachEvent?p.detachEvent(SC(v),L):p.addListener&&p.removeListener&&p.removeListener(L),(v=Nb(p))?($b(v,l),0==v.h&&(v.src=null,p[Cb]=null)):Op(l)}}}function SC(l){return l in Db?Db[l]:Db[l]="on"+l}function fG(l,p){if(l.da)l=!0;else{p=new ii(p,this);const v=l.listener,L=l.ha||l.src;l.fa&&Ob(l),l=v.call(L,p)}return l}function Nb(l){return(l=l[Cb])instanceof Mp?l:null}var Mb="__closure_events_fn_"+(1e9*Math.random()>>>0);function Ub(l){return"function"==typeof l?l:(l[Mb]||(l[Mb]=function(p){return l.handleEvent(p)}),l[Mb])}function Nr(){fe.call(this),this.i=new Mp(this),this.M=this,this.G=null}function Hr(l,p){var v,L=l.G;if(L)for(v=[];L;L=L.G)v.push(L);if(l=l.M,L=p.type||p,"string"==typeof p)p=new pe(p,l);else if(p instanceof pe)p.target=p.target||l;else{var ke=p;wC(p=new pe(L,l),ke)}let Oe,rt;if(ke=!0,v)for(rt=v.length-1;rt>=0;rt--)Oe=p.g=v[rt],ke=Up(Oe,L,!0,p)&&ke;if(Oe=p.g=l,ke=Up(Oe,L,!0,p)&&ke,ke=Up(Oe,L,!1,p)&&ke,v)for(rt=0;rt<v.length;rt++)Oe=p.g=v[rt],ke=Up(Oe,L,!1,p)&&ke}function Up(l,p,v,L){if(!(p=l.i.g[String(p)]))return!0;p=p.concat();let ke=!0;for(let Oe=0;Oe<p.length;++Oe){const rt=p[Oe];if(rt&&!rt.da&&rt.capture==v){const Zt=rt.listener,ur=rt.ha||rt.src;rt.fa&&$b(l.i,rt),ke=!1!==Zt.call(ur,L)&&ke}}return ke&&!L.defaultPrevented}function kC(l){l.g=function mG(l,p){if("function"!=typeof l){if(!l||"function"!=typeof l.handleEvent)throw Error("Invalid listener argument");l=u(l.handleEvent,l)}return Number(p)>2147483647?-1:s.setTimeout(l,p||0)}(()=>{l.g=null,l.i&&(l.i=!1,kC(l))},l.l);const p=l.h;l.h=null,l.m.apply(null,p)}h(Nr,fe),Nr.prototype[os]=!0,Nr.prototype.removeEventListener=function(l,p,v,L){EC(this,l,p,v,L)},Nr.prototype.N=function(){if(Nr.Z.N.call(this),this.i){var l=this.i;for(const p in l.g){const v=l.g[p];for(let L=0;L<v.length;L++)Op(v[L]);delete l.g[p],l.h--}}this.G=null},Nr.prototype.J=function(l,p,v,L){return this.i.add(String(l),p,!1,v,L)},Nr.prototype.K=function(l,p,v,L){return this.i.add(String(l),p,!0,v,L)};class gG extends fe{constructor(p,v){super(),this.m=p,this.l=v,this.h=null,this.i=!1,this.g=null}j(p){this.h=arguments,this.g?this.i=!0:kC(this)}N(){super.N(),this.g&&(s.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function Hu(l){fe.call(this),this.h=l,this.g={}}h(Hu,fe);var AC=[];function PC(l){Np(l.g,function(p,v){this.g.hasOwnProperty(v)&&Ob(p)},l),l.g={}}Hu.prototype.N=function(){Hu.Z.N.call(this),PC(this)},Hu.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Lb=s.JSON.stringify,_G=s.JSON.parse,yG=class{stringify(l){return s.JSON.stringify(l,void 0)}parse(l){return s.JSON.parse(l,void 0)}};function RC(){}function $C(){}var Wu={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function jb(){pe.call(this,"d")}function Vb(){pe.call(this,"c")}h(jb,pe),h(Vb,pe);var Zs={},xC=null;function Lp(){return xC=xC||new Nr}function CC(l){pe.call(this,Zs.Ia,l)}function Ku(l){const p=Lp();Hr(p,new CC(p))}function DC(l,p){pe.call(this,Zs.STAT_EVENT,l),this.stat=p}function Wr(l){const p=Lp();Hr(p,new DC(p,l))}function OC(l,p){pe.call(this,Zs.Ja,l),this.size=p}function Qu(l,p){if("function"!=typeof l)throw Error("Fn must not be null and must be a function");return s.setTimeout(function(){l()},p)}function Ju(){this.g=!0}function nc(l,p,v,L){l.info(function(){return"XMLHTTP TEXT ("+p+"): "+function IG(l,p){if(!l.g)return p;if(!p)return null;try{const Oe=JSON.parse(p);if(Oe)for(l=0;l<Oe.length;l++)if(Array.isArray(Oe[l])){var v=Oe[l];if(!(v.length<2)){var L=v[1];if(Array.isArray(L)&&!(L.length<1)){var ke=L[0];if("noop"!=ke&&"stop"!=ke&&"close"!=ke)for(let rt=1;rt<L.length;rt++)L[rt]=""}}}return Lb(Oe)}catch{return p}}(l,v)+(L?" "+L:"")})}Zs.Ia="serverreachability",h(CC,pe),Zs.STAT_EVENT="statevent",h(DC,pe),Zs.Ja="timingevent",h(OC,pe),Ju.prototype.ua=function(){this.g=!1},Ju.prototype.info=function(){};var MC,jp={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},NC={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"};function zb(){}function Xu(l){return encodeURIComponent(String(l))}function TG(l){var p=1;l=l.split(":");const v=[];for(;p>0&&l.length;)v.push(l.shift()),p--;return l.length&&v.push(l.join(":")),v}function ss(l,p,v,L){this.j=l,this.i=p,this.l=v,this.S=L||1,this.V=new Hu(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new UC}function UC(){this.i=null,this.g="",this.h=!1}h(zb,RC),zb.prototype.g=function(){return new XMLHttpRequest},MC=new zb;var LC={},Fb={};function qb(l,p,v){l.M=1,l.A=zp(ro(p)),l.u=v,l.R=!0,jC(l,null)}function jC(l,p){l.F=Date.now(),Vp(l),l.B=ro(l.A);var v=l.B,L=l.S;Array.isArray(L)||(L=[String(L)]),XC(v.i,"t",L),l.C=0,v=l.j.L,l.h=new UC,l.g=gD(l.j,v?p:null,!l.u),l.P>0&&(l.O=new gG(u(l.Y,l,l.g),l.P)),p=l.V,v=l.g,L=l.ba;var ke="readystatechange";Array.isArray(ke)||(ke&&(AC[0]=ke.toString()),ke=AC);for(let Oe=0;Oe<ke.length;Oe++){const rt=bC(v,ke[Oe],L||p.handleEvent,!1,p.h||p);if(!rt)break;p.g[rt.key]=rt}p=l.J?yC(l.J):{},l.u?(l.v||(l.v="POST"),p["Content-Type"]="application/x-www-form-urlencoded",l.g.ea(l.B,l.v,l.u,p)):(l.v="GET",l.g.ea(l.B,l.v,null,p)),Ku(),function vG(l,p,v,L,ke,Oe){l.info(function(){if(l.g)if(Oe){var rt="",Zt=Oe.split("&");for(let gn=0;gn<Zt.length;gn++){var ur=Zt[gn].split("=");if(ur.length>1){const _r=ur[0];ur=ur[1];const io=_r.split("_");rt=io.length>=2&&"type"==io[1]?rt+(_r+"=")+ur+"&":rt+(_r+"=redacted&")}}}else rt=null;else rt=Oe;return"XMLHTTP REQ ("+L+") [attempt "+ke+"]: "+p+"\n"+v+"\n"+rt})}(l.i,l.v,l.B,l.l,l.S,l.u)}function VC(l){return!!l.g&&"GET"==l.v&&2!=l.M&&l.j.Aa}function SG(l,p){var v=l.C,L=p.indexOf("\n",v);return-1==L?Fb:(v=Number(p.substring(v,L)),isNaN(v)?LC:(L+=1)+v>p.length?Fb:(p=p.slice(L,L+v),l.C=L+v,p))}function Vp(l){l.T=Date.now()+l.H,zC(l,l.H)}function zC(l,p){if(null!=l.D)throw Error("WatchDog timer not null");l.D=Qu(u(l.aa,l),p)}function Zb(l){l.D&&(s.clearTimeout(l.D),l.D=null)}function Yu(l){0==l.j.I||l.K||hD(l.j,l)}function Bs(l){Zb(l);var p=l.O;p&&"function"==typeof p.dispose&&p.dispose(),l.O=null,PC(l.V),l.g&&(p=l.g,l.g=null,p.abort(),p.dispose())}function Bb(l,p){try{var v=l.j;if(0!=v.I&&(v.g==l||Gb(v.h,l)))if(!l.L&&Gb(v.h,l)&&3==v.I){try{var L=v.Ba.g.parse(p)}catch{L=null}if(Array.isArray(L)&&3==L.length){var ke=L;if(0==ke[0]){e:if(!v.v){if(v.g){if(!(v.g.F+3e3<l.F))break e;Hp(v),Bp(v)}Jb(v),Wr(18)}}else v.xa=ke[1],0<v.xa-v.K&&ke[2]<37500&&v.F&&0==v.A&&!v.C&&(v.C=Qu(u(v.Va,v),6e3));ZC(v.h)<=1&&v.ta&&(v.ta=void 0)}else Hs(v,11)}else if((l.L||v.g==l)&&Hp(v),!te(p))for(ke=v.Ba.g.parse(p),p=0;p<ke.length;p++){let gn=ke[p];const _r=gn[0];if(!(_r<=v.K))if(v.K=_r,gn=gn[1],2==v.I)if("c"==gn[0]){v.M=gn[1],v.ba=gn[2];const io=gn[3];null!=io&&(v.ka=io,v.j.info("VER="+v.ka));const Ws=gn[4];null!=Ws&&(v.za=Ws,v.j.info("SVER="+v.za));const ls=gn[5];null!=ls&&"number"==typeof ls&&ls>0&&(v.O=L=1.5*ls,v.j.info("backChannelRequestTimeoutMs_="+L)),L=v;const ds=l.g;if(ds){const Kp=ds.g?ds.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(Kp){var Oe=L.h;Oe.g||-1==Kp.indexOf("spdy")&&-1==Kp.indexOf("quic")&&-1==Kp.indexOf("h2")||(Oe.j=Oe.l,Oe.g=new Set,Oe.h&&(Hb(Oe,Oe.h),Oe.h=null))}if(L.G){const Yb=ds.g?ds.g.getResponseHeader("X-HTTP-Session-Id"):null;Yb&&(L.wa=Yb,An(L.J,L.G,Yb))}}v.I=3,v.l&&v.l.ra(),v.aa&&(v.T=Date.now()-l.F,v.j.info("Handshake RTT: "+v.T+"ms"));var rt=l;if((L=v).na=mD(L,L.L?L.ba:null,L.W),rt.L){BC(L.h,rt);var Zt=rt,ur=L.O;ur&&(Zt.H=ur),Zt.D&&(Zb(Zt),Vp(Zt)),L.g=rt}else lD(L);v.i.length>0&&Gp(v)}else"stop"!=gn[0]&&"close"!=gn[0]||Hs(v,7);else 3==v.I&&("stop"==gn[0]||"close"==gn[0]?"stop"==gn[0]?Hs(v,7):Qb(v):"noop"!=gn[0]&&v.l&&v.l.qa(gn),v.A=0)}Ku()}catch{}}ss.prototype.ba=function(l){l=l.target;const p=this.O;p&&3==us(l)?p.j():this.Y(l)},ss.prototype.Y=function(l){try{if(l==this.g)e:{const Zt=us(this.g),ur=this.g.ya();if(this.g.ca(),!(Zt<3)&&(3!=Zt||this.g&&(this.h.h||this.g.la()||oD(this.g)))){this.K||4!=Zt||7==ur||Ku(),Zb(this);var p=this.g.ca();this.X=p;var v=function EG(l){if(!VC(l))return l.g.la();const p=oD(l.g);if(""===p)return"";let v="";const L=p.length,ke=4==us(l.g);if(!l.h.i){if(typeof TextDecoder>"u")return Bs(l),Yu(l),"";l.h.i=new s.TextDecoder}for(let Oe=0;Oe<L;Oe++)l.h.h=!0,v+=l.h.i.decode(p[Oe],{stream:!(ke&&Oe==L-1)});return p.length=0,l.h.g+=v,l.C=0,l.h.g}(this);if(this.o=200==p,function wG(l,p,v,L,ke,Oe,rt){l.info(function(){return"XMLHTTP RESP ("+L+") [ attempt "+ke+"]: "+p+"\n"+v+"\n"+Oe+" "+rt})}(this.i,this.v,this.B,this.l,this.S,Zt,p),this.o){if(this.U&&!this.L){t:{if(this.g){var L,ke=this.g;if((L=ke.g?ke.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!te(L)){var Oe=L;break t}}Oe=null}if(!(l=Oe)){this.o=!1,this.m=3,Wr(12),Bs(this),Yu(this);break e}nc(this.i,this.l,l,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,Bb(this,l)}if(this.R){let _r;for(l=!0;!this.K&&this.C<v.length;){if(_r=SG(this,v),_r==Fb){4==Zt&&(this.m=4,Wr(14),l=!1),nc(this.i,this.l,null,"[Incomplete Response]");break}if(_r==LC){this.m=4,Wr(15),nc(this.i,this.l,v,"[Invalid Chunk]"),l=!1;break}nc(this.i,this.l,_r,null),Bb(this,_r)}if(VC(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=Zt||0!=v.length||this.h.h||(this.m=1,Wr(16),l=!1),this.o=this.o&&l,l){if(v.length>0&&!this.W){this.W=!0;var rt=this.j;rt.g==this&&rt.aa&&!rt.P&&(rt.j.info("Great, no buffering proxy detected. Bytes received: "+v.length),Xb(rt),rt.P=!0,Wr(11))}}else nc(this.i,this.l,v,"[Invalid Chunked Response]"),Bs(this),Yu(this)}else nc(this.i,this.l,v,null),Bb(this,v);4==Zt&&Bs(this),this.o&&!this.K&&(4==Zt?hD(this.j,this):(this.o=!1,Vp(this)))}else(function jG(l){const p={};l=(l.g&&us(l)>=2&&l.g.getAllResponseHeaders()||"").split("\r\n");for(let L=0;L<l.length;L++){if(te(l[L]))continue;var v=TG(l[L]);const ke=v[0];if("string"!=typeof(v=v[1]))continue;v=v.trim();const Oe=p[ke]||[];p[ke]=Oe,Oe.push(v)}!function hG(l,p){for(const v in l)p.call(void 0,l[v],v,l)}(p,function(L){return L.join(", ")})})(this.g),400==p&&v.indexOf("Unknown SID")>0?(this.m=3,Wr(12)):(this.m=0,Wr(13)),Bs(this),Yu(this)}}}catch{}},ss.prototype.cancel=function(){this.K=!0,Bs(this)},ss.prototype.aa=function(){this.D=null;const l=Date.now();l-this.T>=0?(function bG(l,p){l.info(function(){return"TIMEOUT: "+p})}(this.i,this.B),2!=this.M&&(Ku(),Wr(17)),Bs(this),this.m=2,Yu(this)):zC(this,this.T-l)};var kG=class{constructor(l,p){this.g=l,this.map=p}};function FC(l){this.l=l||10,l=s.PerformanceNavigationTiming?(l=s.performance.getEntriesByType("navigation")).length>0&&("hq"==l[0].nextHopProtocol||"h2"==l[0].nextHopProtocol):!!(s.chrome&&s.chrome.loadTimes&&s.chrome.loadTimes()&&s.chrome.loadTimes().wasFetchedViaSpdy),this.j=l?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function qC(l){return!!l.h||!!l.g&&l.g.size>=l.j}function ZC(l){return l.h?1:l.g?l.g.size:0}function Gb(l,p){return l.h?l.h==p:!!l.g&&l.g.has(p)}function Hb(l,p){l.g?l.g.add(p):l.h=p}function BC(l,p){l.h&&l.h==p?l.h=null:l.g&&l.g.has(p)&&l.g.delete(p)}function GC(l){if(null!=l.h)return l.i.concat(l.h.G);if(null!=l.g&&0!==l.g.size){let p=l.i;for(const v of l.g.values())p=p.concat(v.G);return p}return E(l.i)}FC.prototype.cancel=function(){if(this.i=GC(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const l of this.g.values())l.cancel();this.g.clear()}};var HC=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function as(l){let p;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,l instanceof as?(this.l=l.l,el(this,l.j),this.o=l.o,this.g=l.g,tl(this,l.u),this.h=l.h,Wb(this,YC(l.i)),this.m=l.m):l&&(p=String(l).match(HC))?(this.l=!1,el(this,p[1]||"",!0),this.o=nl(p[2]||""),this.g=nl(p[3]||"",!0),tl(this,p[4]),this.h=nl(p[5]||"",!0),Wb(this,p[6]||"",!0),this.m=nl(p[7]||"")):(this.l=!1,this.i=new il(null,this.l))}function ro(l){return new as(l)}function el(l,p,v){l.j=v?nl(p,!0):p,l.j&&(l.j=l.j.replace(/:$/,""))}function tl(l,p){if(p){if(p=Number(p),isNaN(p)||p<0)throw Error("Bad port number "+p);l.u=p}else l.u=null}function Wb(l,p,v){p instanceof il?(l.i=p,function DG(l,p){p&&!l.j&&(Gs(l),l.i=null,l.g.forEach(function(v,L){const ke=L.toLowerCase();L!=ke&&(KC(this,L),XC(this,ke,v))},l)),l.j=p}(l.i,l.l)):(v||(p=rl(p,xG)),l.i=new il(p,l.l))}function An(l,p,v){l.i.set(p,v)}function zp(l){return An(l,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),l}function nl(l,p){return l?p?decodeURI(l.replace(/%25/g,"%2525")):decodeURIComponent(l):""}function rl(l,p,v){return"string"==typeof l?(l=encodeURI(l).replace(p,PG),v&&(l=l.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),l):null}function PG(l){return"%"+((l=l.charCodeAt(0))>>4&15).toString(16)+(15&l).toString(16)}as.prototype.toString=function(){const l=[];var p=this.j;p&&l.push(rl(p,WC,!0),":");var v=this.g;return(v||"file"==p)&&(l.push("//"),(p=this.o)&&l.push(rl(p,WC,!0),"@"),l.push(Xu(v).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(v=this.u)&&l.push(":",String(v))),(v=this.h)&&(this.g&&"/"!=v.charAt(0)&&l.push("/"),l.push(rl(v,"/"==v.charAt(0)?$G:RG,!0))),(v=this.i.toString())&&l.push("?",v),(v=this.m)&&l.push("#",rl(v,CG)),l.join("")},as.prototype.resolve=function(l){const p=ro(this);let v=!!l.j;v?el(p,l.j):v=!!l.o,v?p.o=l.o:v=!!l.g,v?p.g=l.g:v=null!=l.u;var L=l.h;if(v)tl(p,l.u);else if(v=!!l.h){if("/"!=L.charAt(0))if(this.g&&!this.h)L="/"+L;else{var ke=p.h.lastIndexOf("/");-1!=ke&&(L=p.h.slice(0,ke+1)+L)}if(".."==(ke=L)||"."==ke)L="";else if(-1!=ke.indexOf("./")||-1!=ke.indexOf("/.")){L=0==ke.lastIndexOf("/",0),ke=ke.split("/");const Oe=[];for(let rt=0;rt<ke.length;){const Zt=ke[rt++];"."==Zt?L&&rt==ke.length&&Oe.push(""):".."==Zt?((Oe.length>1||1==Oe.length&&""!=Oe[0])&&Oe.pop(),L&&rt==ke.length&&Oe.push("")):(Oe.push(Zt),L=!0)}L=Oe.join("/")}else L=ke}return v?p.h=L:v=""!==l.i.toString(),v?Wb(p,YC(l.i)):v=!!l.m,v&&(p.m=l.m),p};var WC=/[#\/\?@]/g,RG=/[#\?:]/g,$G=/[#\?]/g,xG=/[#\?@]/g,CG=/#/g;function il(l,p){this.h=this.g=null,this.i=l||null,this.j=!!p}function Gs(l){l.g||(l.g=new Map,l.h=0,l.i&&function AG(l,p){if(l){l=l.split("&");for(let v=0;v<l.length;v++){const L=l[v].indexOf("=");let ke,Oe=null;L>=0?(ke=l[v].substring(0,L),Oe=l[v].substring(L+1)):ke=l[v],p(ke,Oe?decodeURIComponent(Oe.replace(/\+/g," ")):"")}}}(l.i,function(p,v){l.add(decodeURIComponent(p.replace(/\+/g," ")),v)}))}function KC(l,p){Gs(l),p=rc(l,p),l.g.has(p)&&(l.i=null,l.h-=l.g.get(p).length,l.g.delete(p))}function QC(l,p){return Gs(l),p=rc(l,p),l.g.has(p)}function JC(l,p){Gs(l);let v=[];if("string"==typeof p)QC(l,p)&&(v=v.concat(l.g.get(rc(l,p))));else for(l=Array.from(l.g.values()),p=0;p<l.length;p++)v=v.concat(l[p]);return v}function XC(l,p,v){KC(l,p),v.length>0&&(l.i=null,l.g.set(rc(l,p),E(v)),l.h+=v.length)}function YC(l){const p=new il;return p.i=l.i,l.g&&(p.g=new Map(l.g),p.h=l.h),p}function rc(l,p){return p=String(p),l.j&&(p=p.toLowerCase()),p}function cs(l,p,v,L,ke){try{ke&&(ke.onload=null,ke.onerror=null,ke.onabort=null,ke.ontimeout=null),L(v)}catch{}}function MG(){this.g=new yG}function Fp(l){this.i=l.Sb||null,this.h=l.ab||!1}function qp(l,p){Nr.call(this),this.H=l,this.o=p,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function eD(l){l.j.read().then(l.Ma.bind(l)).catch(l.ga.bind(l))}function ol(l){l.readyState=4,l.l=null,l.j=null,l.B=null,sl(l)}function sl(l){l.onreadystatechange&&l.onreadystatechange.call(l)}function tD(l){let p="";return Np(l,function(v,L){p+=L,p+=":",p+=v,p+="\r\n"}),p}function Kb(l,p,v){e:{for(L in v){var L=!1;break e}L=!0}L||(v=tD(v),"string"==typeof l?null!=v&&Xu(v):An(l,p,v))}function Hn(l){Nr.call(this),this.headers=new Map,this.L=l||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(n=il.prototype).add=function(l,p){Gs(this),this.i=null,l=rc(this,l);let v=this.g.get(l);return v||this.g.set(l,v=[]),v.push(p),this.h+=1,this},n.forEach=function(l,p){Gs(this),this.g.forEach(function(v,L){v.forEach(function(ke){l.call(p,ke,L,this)},this)},this)},n.set=function(l,p){return Gs(this),this.i=null,QC(this,l=rc(this,l))&&(this.h-=this.g.get(l).length),this.g.set(l,[p]),this.h+=1,this},n.get=function(l,p){return l&&(l=JC(this,l)).length>0?String(l[0]):p},n.toString=function(){if(this.i)return this.i;if(!this.g)return"";const l=[],p=Array.from(this.g.keys());for(let L=0;L<p.length;L++){var v=p[L];const ke=Xu(v);v=JC(this,v);for(let Oe=0;Oe<v.length;Oe++){let rt=ke;""!==v[Oe]&&(rt+="="+Xu(v[Oe])),l.push(rt)}}return this.i=l.join("&")},h(Fp,RC),Fp.prototype.g=function(){return new qp(this.i,this.h)},h(qp,Nr),(n=qp.prototype).open=function(l,p){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=l,this.D=p,this.readyState=1,sl(this)},n.send=function(l){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const p={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};l&&(p.body=l),(this.H||s).fetch(new Request(this.D,p)).then(this.Pa.bind(this),this.ga.bind(this))},n.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,ol(this)),this.readyState=0},n.Pa=function(l){if(this.g&&(this.l=l,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=l.headers,this.readyState=2,sl(this)),this.g&&(this.readyState=3,sl(this),this.g)))if("arraybuffer"===this.responseType)l.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(typeof s.ReadableStream<"u"&&"body"in l){if(this.j=l.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;eD(this)}else l.text().then(this.Oa.bind(this),this.ga.bind(this))},n.Ma=function(l){if(this.g){if(this.o&&l.value)this.response.push(l.value);else if(!this.o){var p=l.value?l.value:new Uint8Array(0);(p=this.B.decode(p,{stream:!l.done}))&&(this.response=this.responseText+=p)}l.done?ol(this):sl(this),3==this.readyState&&eD(this)}},n.Oa=function(l){this.g&&(this.response=this.responseText=l,ol(this))},n.Na=function(l){this.g&&(this.response=l,ol(this))},n.ga=function(){this.g&&ol(this)},n.setRequestHeader=function(l,p){this.A.append(l,p)},n.getResponseHeader=function(l){return this.h&&this.h.get(l.toLowerCase())||""},n.getAllResponseHeaders=function(){if(!this.h)return"";const l=[],p=this.h.entries();for(var v=p.next();!v.done;)l.push((v=v.value)[0]+": "+v[1]),v=p.next();return l.join("\r\n")},Object.defineProperty(qp.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(l){this.m=l?"include":"same-origin"}}),h(Hn,Nr);var UG=/^https?$/i,LG=["POST","PUT"];function nD(l,p){l.h=!1,l.g&&(l.j=!0,l.g.abort(),l.j=!1),l.l=p,l.o=5,rD(l),Zp(l)}function rD(l){l.A||(l.A=!0,Hr(l,"complete"),Hr(l,"error"))}function iD(l){if(l.h&&typeof o<"u")if(l.v&&4==us(l))setTimeout(l.Ca.bind(l),0);else if(Hr(l,"readystatechange"),4==us(l)){l.h=!1;try{const Oe=l.ca();e:switch(Oe){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var p=!0;break e;default:p=!1}var v;if(!(v=p)){var L;if(L=0===Oe){let rt=String(l.D).match(HC)[1]||null;!rt&&s.self&&s.self.location&&(rt=s.self.location.protocol.slice(0,-1)),L=!UG.test(rt?rt.toLowerCase():"")}v=L}if(v)Hr(l,"complete"),Hr(l,"success");else{l.o=6;try{var ke=us(l)>2?l.g.statusText:""}catch{ke=""}l.l=ke+" ["+l.ca()+"]",rD(l)}}finally{Zp(l)}}}function Zp(l,p){if(l.g){l.m&&(clearTimeout(l.m),l.m=null);const v=l.g;l.g=null,p||Hr(l,"ready");try{v.onreadystatechange=null}catch{}}}function us(l){return l.g?l.g.readyState:0}function oD(l){try{if(!l.g)return null;if("response"in l.g)return l.g.response;switch(l.F){case"":case"text":return l.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in l.g)return l.g.mozResponseArrayBuffer}return null}catch{return null}}function al(l,p,v){return v&&v.internalChannelParams&&v.internalChannelParams[l]||p}function sD(l){this.za=0,this.i=[],this.j=new Ju,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=al("failFast",!1,l),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=al("baseRetryDelayMs",5e3,l),this.Za=al("retryDelaySeedMs",1e4,l),this.Ta=al("forwardChannelMaxRetries",2,l),this.va=al("forwardChannelRequestTimeoutMs",2e4,l),this.ma=l&&l.xmlHttpFactory||void 0,this.Ua=l&&l.Rb||void 0,this.Aa=l&&l.useFetchStreams||!1,this.O=void 0,this.L=l&&l.supportsCrossDomainXhr||!1,this.M="",this.h=new FC(l&&l.concurrentRequestLimit),this.Ba=new MG,this.S=l&&l.fastHandshake||!1,this.R=l&&l.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=l&&l.Pb||!1,l&&l.ua&&this.j.ua(),l&&l.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&l&&l.detectBufferingProxy||!1,this.ia=void 0,l&&l.longPollingTimeout&&l.longPollingTimeout>0&&(this.ia=l.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function Qb(l){if(aD(l),3==l.I){var p=l.V++,v=ro(l.J);if(An(v,"SID",l.M),An(v,"RID",p),An(v,"TYPE","terminate"),cl(l,v),(p=new ss(l,l.j,p)).M=2,p.A=zp(ro(v)),v=!1,s.navigator&&s.navigator.sendBeacon)try{v=s.navigator.sendBeacon(p.A.toString(),"")}catch{}!v&&s.Image&&((new Image).src=p.A,v=!0),v||(p.g=gD(p.j,null),p.g.ea(p.A)),p.F=Date.now(),Vp(p)}fD(l)}function Bp(l){l.g&&(Xb(l),l.g.cancel(),l.g=null)}function aD(l){Bp(l),l.v&&(s.clearTimeout(l.v),l.v=null),Hp(l),l.h.cancel(),l.m&&("number"==typeof l.m&&s.clearTimeout(l.m),l.m=null)}function Gp(l){if(!qC(l.h)&&!l.m){l.m=!0;var p=l.Ea;gt||G(),xt||(gt(),xt=!0),le.add(p,l),l.D=0}}function cD(l,p){var v;v=p?p.l:l.V++;const L=ro(l.J);An(L,"SID",l.M),An(L,"RID",v),An(L,"AID",l.K),cl(l,L),l.u&&l.o&&Kb(L,l.u,l.o),v=new ss(l,l.j,v,l.D+1),null===l.u&&(v.J=l.o),p&&(l.i=p.G.concat(l.i)),p=uD(l,v,1e3),v.H=Math.round(.5*l.va)+Math.round(.5*l.va*Math.random()),Hb(l.h,v),qb(v,L,p)}function cl(l,p){l.H&&Np(l.H,function(v,L){An(p,L,v)}),l.l&&Np({},function(v,L){An(p,L,v)})}function uD(l,p,v){v=Math.min(l.i.length,v);const L=l.l?u(l.l.Ka,l.l,l):null;e:{var ke=l.i;let Zt=-1;for(;;){const ur=["count="+v];-1==Zt?v>0?(Zt=ke[0].g,ur.push("ofs="+Zt)):Zt=0:ur.push("ofs="+Zt);let gn=!0;for(let _r=0;_r<v;_r++){var Oe=ke[_r].g;const io=ke[_r].map;if((Oe-=Zt)<0)Zt=Math.max(0,ke[_r].g-100),gn=!1;else try{Oe="req"+Oe+"_"||0;try{var rt=io instanceof Map?io:Object.entries(io);for(const[Ws,ls]of rt){let ds=ls;a(ls)&&(ds=Lb(ls)),ur.push(Oe+Ws+"="+encodeURIComponent(ds))}}catch(Ws){throw ur.push(Oe+"type="+encodeURIComponent("_badmap")),Ws}}catch{L&&L(io)}}if(gn){rt=ur.join("&");break e}}rt=void 0}return l=l.i.splice(0,v),p.G=l,rt}function lD(l){if(!l.g&&!l.v){l.Y=1;var p=l.Da;gt||G(),xt||(gt(),xt=!0),le.add(p,l),l.A=0}}function Jb(l){return!(l.g||l.v||l.A>=3||(l.Y++,l.v=Qu(u(l.Da,l),pD(l,l.A)),l.A++,0))}function Xb(l){null!=l.B&&(s.clearTimeout(l.B),l.B=null)}function dD(l){l.g=new ss(l,l.j,"rpc",l.Y),null===l.u&&(l.g.J=l.o),l.g.P=0;var p=ro(l.na);An(p,"RID","rpc"),An(p,"SID",l.M),An(p,"AID",l.K),An(p,"CI",l.F?"0":"1"),!l.F&&l.ia&&An(p,"TO",l.ia),An(p,"TYPE","xmlhttp"),cl(l,p),l.u&&l.o&&Kb(p,l.u,l.o),l.O&&(l.g.H=l.O);var v=l.g;l=l.ba,v.M=1,v.A=zp(ro(p)),v.u=null,v.R=!0,jC(v,l)}function Hp(l){null!=l.C&&(s.clearTimeout(l.C),l.C=null)}function hD(l,p){var v=null;if(l.g==p){Hp(l),Xb(l),l.g=null;var L=2}else{if(!Gb(l.h,p))return;v=p.G,BC(l.h,p),L=1}if(0!=l.I)if(p.o)if(1==L){v=p.u?p.u.length:0,p=Date.now()-p.F;var ke=l.D;Hr(L=Lp(),new OC(L,v)),Gp(l)}else lD(l);else if(3==(ke=p.m)||0==ke&&p.X>0||!(1==L&&function VG(l,p){return!(ZC(l.h)>=l.h.j-(l.m?1:0)||(l.m?(l.i=p.G.concat(l.i),0):1==l.I||2==l.I||l.D>=(l.Sa?0:l.Ta)||(l.m=Qu(u(l.Ea,l,p),pD(l,l.D)),l.D++,0)))}(l,p)||2==L&&Jb(l)))switch(v&&v.length>0&&(p=l.h,p.i=p.i.concat(v)),ke){case 1:Hs(l,5);break;case 4:Hs(l,10);break;case 3:Hs(l,6);break;default:Hs(l,2)}}function pD(l,p){let v=l.Qa+Math.floor(Math.random()*l.Za);return l.isActive()||(v*=2),v*p}function Hs(l,p){if(l.j.info("Error code "+p),2==p){var v=u(l.bb,l),L=l.Ua;const ke=!L;L=new as(L||"//www.google.com/images/cleardot.gif"),s.location&&"http"==s.location.protocol||el(L,"https"),zp(L),ke?function OG(l,p){const v=new Ju;if(s.Image){const L=new Image;L.onload=d(cs,v,"TestLoadImage: loaded",!0,p,L),L.onerror=d(cs,v,"TestLoadImage: error",!1,p,L),L.onabort=d(cs,v,"TestLoadImage: abort",!1,p,L),L.ontimeout=d(cs,v,"TestLoadImage: timeout",!1,p,L),s.setTimeout(function(){L.ontimeout&&L.ontimeout()},1e4),L.src=l}else p(!1)}(L.toString(),v):function NG(l,p){new Ju;const L=new AbortController,ke=setTimeout(()=>{L.abort(),cs(0,0,!1,p)},1e4);fetch(l,{signal:L.signal}).then(Oe=>{clearTimeout(ke),cs(0,0,!!Oe.ok,p)}).catch(()=>{clearTimeout(ke),cs(0,0,!1,p)})}(L.toString(),v)}else Wr(2);l.I=0,l.l&&l.l.pa(p),fD(l),aD(l)}function fD(l){if(l.I=0,l.ja=[],l.l){const p=GC(l.h);(0!=p.length||0!=l.i.length)&&(q(l.ja,p),q(l.ja,l.i),l.h.i.length=0,E(l.i),l.i.length=0),l.l.oa()}}function mD(l,p,v){var L=v instanceof as?ro(v):new as(v);if(""!=L.g)p&&(L.g=p+"."+L.g),tl(L,L.u);else{var ke=s.location;L=ke.protocol,p=p?p+"."+ke.hostname:ke.hostname,ke=+ke.port;const Oe=new as(null);L&&el(Oe,L),p&&(Oe.g=p),ke&&tl(Oe,ke),v&&(Oe.h=v),L=Oe}return p=l.wa,(v=l.G)&&p&&An(L,v,p),An(L,"VER",l.ka),cl(l,L),L}function gD(l,p,v){if(p&&!l.L)throw Error("Can't create secondary domain capable XhrIo object.");return(p=new Hn(l.Aa&&!l.ma?new Fp({ab:v}):l.ma)).Fa(l.L),p}function _D(){}function Wp(){}function hi(l,p){Nr.call(this),this.g=new sD(p),this.l=l,this.h=p&&p.messageUrlParams||null,l=p&&p.messageHeaders||null,p&&p.clientProtocolHeaderRequired&&(l?l["X-Client-Protocol"]="webchannel":l={"X-Client-Protocol":"webchannel"}),this.g.o=l,l=p&&p.initMessageHeaders||null,p&&p.messageContentType&&(l?l["X-WebChannel-Content-Type"]=p.messageContentType:l={"X-WebChannel-Content-Type":p.messageContentType}),p&&p.sa&&(l?l["X-WebChannel-Client-Profile"]=p.sa:l={"X-WebChannel-Client-Profile":p.sa}),this.g.U=l,(l=p&&p.Qb)&&!te(l)&&(this.g.u=l),this.A=p&&p.supportsCrossDomainXhr||!1,this.v=p&&p.sendRawJson||!1,(p=p&&p.httpSessionIdParam)&&!te(p)&&(this.g.G=p,null!==(l=this.h)&&p in l&&p in(l=this.h)&&delete l[p]),this.j=new ic(this)}function yD(l){jb.call(this),l.__headers__&&(this.headers=l.__headers__,this.statusCode=l.__status__,delete l.__headers__,delete l.__status__);var p=l.__sm__;if(p){e:{for(const v in p){l=v;break e}l=void 0}(this.i=l)&&(l=this.i,p=null!==p&&l in p?p[l]:void 0),this.data=p}else this.data=l}function vD(){Vb.call(this),this.status=1}function ic(l){this.g=l}(n=Hn.prototype).Fa=function(l){this.H=l},n.ea=function(l,p,v,L){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+l);p=p?p.toUpperCase():"GET",this.D=l,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():MC.g(),this.g.onreadystatechange=f(u(this.Ca,this));try{this.B=!0,this.g.open(p,String(l),!0),this.B=!1}catch(Oe){return void nD(this,Oe)}if(l=v||"",v=new Map(this.headers),L)if(Object.getPrototypeOf(L)===Object.prototype)for(var ke in L)v.set(ke,L[ke]);else{if("function"!=typeof L.keys||"function"!=typeof L.get)throw Error("Unknown input type for opt_headers: "+String(L));for(const Oe of L.keys())v.set(Oe,L.get(Oe))}L=Array.from(v.keys()).find(Oe=>"content-type"==Oe.toLowerCase()),ke=s.FormData&&l instanceof s.FormData,!(Array.prototype.indexOf.call(LG,p,void 0)>=0)||L||ke||v.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[Oe,rt]of v)this.g.setRequestHeader(Oe,rt);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(l),this.v=!1}catch(Oe){nD(this,Oe)}},n.abort=function(l){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=l||7,Hr(this,"complete"),Hr(this,"abort"),Zp(this))},n.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Zp(this,!0)),Hn.Z.N.call(this)},n.Ca=function(){this.u||(this.B||this.v||this.j?iD(this):this.Xa())},n.Xa=function(){iD(this)},n.isActive=function(){return!!this.g},n.ca=function(){try{return us(this)>2?this.g.status:-1}catch{return-1}},n.la=function(){try{return this.g?this.g.responseText:""}catch{return""}},n.La=function(l){if(this.g){var p=this.g.responseText;return l&&0==p.indexOf(l)&&(p=p.substring(l.length)),_G(p)}},n.ya=function(){return this.o},n.Ha=function(){return"string"==typeof this.l?this.l:String(this.l)},(n=sD.prototype).ka=8,n.I=1,n.connect=function(l,p,v,L){Wr(0),this.W=l,this.H=p||{},v&&void 0!==L&&(this.H.OSID=v,this.H.OAID=L),this.F=this.X,this.J=mD(this,null,this.W),Gp(this)},n.Ea=function(l){if(this.m)if(this.m=null,1==this.I){if(!l){this.V=Math.floor(1e5*Math.random()),l=this.V++;const ke=new ss(this,this.j,l);let Oe=this.o;if(this.U&&(Oe?(Oe=yC(Oe),wC(Oe,this.U)):Oe=this.U),null!==this.u||this.R||(ke.J=Oe,Oe=null),this.S)e:{for(var p=0,v=0;v<this.i.length;v++){var L=this.i[v];if(void 0===(L="__data__"in L.map&&"string"==typeof(L=L.map.__data__)?L.length:void 0))break;if((p+=L)>4096){p=v;break e}if(4096===p||v===this.i.length-1){p=v+1;break e}}p=1e3}else p=1e3;p=uD(this,ke,p),An(v=ro(this.J),"RID",l),An(v,"CVER",22),this.G&&An(v,"X-HTTP-Session-Id",this.G),cl(this,v),Oe&&(this.R?p="headers="+Xu(tD(Oe))+"&"+p:this.u&&Kb(v,this.u,Oe)),Hb(this.h,ke),this.Ra&&An(v,"TYPE","init"),this.S?(An(v,"$req",p),An(v,"SID","null"),ke.U=!0,qb(ke,v,null)):qb(ke,v,p),this.I=2}}else 3==this.I&&(l?cD(this,l):0==this.i.length||qC(this.h)||cD(this))},n.Da=function(){if(this.v=null,dD(this),this.aa&&!(this.P||null==this.g||this.T<=0)){var l=4*this.T;this.j.info("BP detection timer enabled: "+l),this.B=Qu(u(this.Wa,this),l)}},n.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,Wr(10),Bp(this),dD(this))},n.Va=function(){null!=this.C&&(this.C=null,Bp(this),Jb(this),Wr(19))},n.bb=function(l){l?(this.j.info("Successfully pinged google.com"),Wr(2)):(this.j.info("Failed to ping google.com"),Wr(1))},n.isActive=function(){return!!this.l&&this.l.isActive(this)},(n=_D.prototype).ra=function(){},n.qa=function(){},n.pa=function(){},n.oa=function(){},n.isActive=function(){return!0},n.Ka=function(){},Wp.prototype.g=function(l,p){return new hi(l,p)},h(hi,Nr),hi.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},hi.prototype.close=function(){Qb(this.g)},hi.prototype.o=function(l){var p=this.g;if("string"==typeof l){var v={};v.__data__=l,l=v}else this.v&&((v={}).__data__=Lb(l),l=v);p.i.push(new kG(p.Ya++,l)),3==p.I&&Gp(p)},hi.prototype.N=function(){this.g.l=null,delete this.j,Qb(this.g),delete this.g,hi.Z.N.call(this)},h(yD,jb),h(vD,Vb),h(ic,_D),ic.prototype.ra=function(){Hr(this.g,"a")},ic.prototype.qa=function(l){Hr(this.g,new yD(l))},ic.prototype.pa=function(l){Hr(this.g,new vD)},ic.prototype.oa=function(){Hr(this.g,"b")},Wp.prototype.createWebChannel=Wp.prototype.g,hi.prototype.send=hi.prototype.o,hi.prototype.open=hi.prototype.m,hi.prototype.close=hi.prototype.close,ge.createWebChannelTransport=function(){return new Wp},ge.getStatEventTarget=function(){return Lp()},ge.Event=Zs,ge.Stat={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},jp.NO_ERROR=0,jp.TIMEOUT=8,jp.HTTP_ERROR=6,ge.ErrorCode=jp,NC.COMPLETE="complete",ge.EventType=NC,$C.EventType=Wu,Wu.OPEN="a",Wu.CLOSE="b",Wu.ERROR="c",Wu.MESSAGE="d",Nr.prototype.listen=Nr.prototype.J,ge.WebChannel=$C,ge.FetchXmlHttpFactory=Fp,Hn.prototype.listenOnce=Hn.prototype.K,Hn.prototype.getLastError=Hn.prototype.Ha,Hn.prototype.getLastErrorCode=Hn.prototype.ya,Hn.prototype.getStatus=Hn.prototype.ca,Hn.prototype.getResponseJson=Hn.prototype.La,Hn.prototype.getResponseText=Hn.prototype.la,Hn.prototype.send=Hn.prototype.ea,Hn.prototype.setWithCredentials=Hn.prototype.Fa,ge.XhrIo=Hn}).apply(typeof Mn<"u"?Mn:typeof self<"u"?self:typeof window<"u"?window:{});const lr="@firebase/firestore";class dn{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}dn.UNAUTHENTICATED=new dn(null),dn.GOOGLE_CREDENTIALS=new dn("google-credentials-uid"),dn.FIRST_PARTY=new dn("first-party-uid"),dn.MOCK_USER=new dn("mock-user");let Ur="12.3.0";const Lr=new H.Vy("@firebase/firestore");function ze(n,...e){if(Lr.logLevel<=H.$b.DEBUG){const t=e.map($i);Lr.debug(`Firestore (${Ur}): ${n}`,...t)}}function In(n,...e){if(Lr.logLevel<=H.$b.ERROR){const t=e.map($i);Lr.error(`Firestore (${Ur}): ${n}`,...t)}}function $i(n){if("string"==typeof n)return n;try{return JSON.stringify(n)}catch{return n}}function st(n,e,t){let r="Unexpected state";"string"==typeof e?r=e:t=e,zi(n,r,t)}function zi(n,e,t){let r=`FIRESTORE (${Ur}) INTERNAL ASSERTION FAILED: ${e} (ID: ${n.toString(16)})`;if(void 0!==t)try{r+=" CONTEXT: "+JSON.stringify(t)}catch{r+=" CONTEXT: "+t}throw In(r),new Error(r)}function pt(n,e,t,r){let i="Unexpected state";"string"==typeof t?i=t:r=t,n||zi(e,i,r)}const Ae_CANCELLED="cancelled",Ae_INVALID_ARGUMENT="invalid-argument",Ae_FAILED_PRECONDITION="failed-precondition";class Me extends oe.g{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class $n{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}class vr{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class jr{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(dn.UNAUTHENTICATED))}shutdown(){}}class sc{constructor(e){this.t=e,this.currentUser=dn.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){var r=this;pt(void 0===this.o,42304);let i=this.i;const o=u=>this.i!==i?(i=this.i,t(u)):Promise.resolve();let s=new $n;this.o=()=>{this.i++,this.currentUser=this.u(),s.resolve(),s=new $n,e.enqueueRetryable(()=>o(this.currentUser))};const a=()=>{const u=s;e.enqueueRetryable((0,g.A)(function*(){yield u.promise,yield o(r.currentUser)}))},c=u=>{ze("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=u,this.o&&(this.auth.addAuthTokenListener(this.o),a())};this.t.onInit(u=>c(u)),setTimeout(()=>{if(!this.auth){const u=this.t.getImmediate({optional:!0});u?c(u):(ze("FirebaseAuthCredentialsProvider","Auth not yet detected"),s.resolve(),s=new $n)}},0),a()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(r=>this.i!==e?(ze("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(pt("string"==typeof r.accessToken,31837,{l:r}),new vr(r.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const e=this.auth&&this.auth.getUid();return pt(null===e||"string"==typeof e,2055,{h:e}),new dn(e)}}class Ks{constructor(e,t,r){this.P=e,this.T=t,this.I=r,this.type="FirstParty",this.user=dn.FIRST_PARTY,this.A=new Map}R(){return this.I?this.I():null}get headers(){this.A.set("X-Goog-AuthUser",this.P);const e=this.R();return e&&this.A.set("Authorization",e),this.T&&this.A.set("X-Goog-Iam-Authorization-Token",this.T),this.A}}class Kr{constructor(e,t,r){this.P=e,this.T=t,this.I=r}getToken(){return Promise.resolve(new Ks(this.P,this.T,this.I))}start(e,t){e.enqueueRetryable(()=>t(dn.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class wr{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class J{constructor(e,t){this.V=t,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,(0,j.xZ)(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,t){pt(void 0===this.o,3512);const r=o=>{null!=o.error&&ze("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${o.error.message}`);const s=o.token!==this.m;return this.m=o.token,ze("FirebaseAppCheckTokenProvider",`Received ${s?"new":"existing"} token.`),s?t(o.token):Promise.resolve()};this.o=o=>{e.enqueueRetryable(()=>r(o))};const i=o=>{ze("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=o,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit(o=>i(o)),setTimeout(()=>{if(!this.appCheck){const o=this.V.getImmediate({optional:!0});o?i(o):ze("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.p)return Promise.resolve(new wr(this.p));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(t=>t?(pt("string"==typeof t.token,44558,{tokenResult:t}),this.m=t.token,new wr(t.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}function he(n){const e=typeof self<"u"&&(self.crypto||self.msCrypto),t=new Uint8Array(n);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(t);else for(let r=0;r<n;r++)t[r]=Math.floor(256*Math.random());return t}class Ue{static newId(){const t=62*Math.floor(4.129032258064516);let r="";for(;r.length<20;){const i=he(40);for(let o=0;o<i.length;++o)r.length<20&&i[o]<t&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(i[o]%62))}return r}}function ae(n,e){return n<e?-1:n>e?1:0}function xn(n){const e=n.charCodeAt(0);return e>=55296&&e<=57343}const qt="__name__";class wt{constructor(e,t,r){void 0===t?t=0:t>e.length&&st(637,{offset:t,range:e.length}),void 0===r?r=e.length-t:r>e.length-t&&st(1746,{length:r,range:e.length-t}),this.segments=e,this.offset=t,this.len=r}get length(){return this.len}isEqual(e){return 0===wt.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof wt?e.forEach(r=>{t.push(r)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return this.construct(this.segments,this.offset+(e=void 0===e?1:e),this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,r=this.limit();t<r;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const r=Math.min(e.length,t.length);for(let i=0;i<r;i++){const o=wt.compareSegments(e.get(i),t.get(i));if(0!==o)return o}return ae(e.length,t.length)}static compareSegments(e,t){const r=wt.isNumericId(e),i=wt.isNumericId(t);return r&&!i?-1:!r&&i?1:r&&i?wt.extractNumericId(e).compare(wt.extractNumericId(t)):function _t(n,e){const t=Math.min(n.length,e.length);for(let r=0;r<t;r++){const i=n.charAt(r),o=e.charAt(r);if(i!==o)return xn(i)===xn(o)?ae(i,o):xn(i)?1:-1}return ae(n.length,e.length)}(e,t)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return Et.fromString(e.substring(4,e.length-2))}}class kt extends wt{construct(e,t,r){return new kt(e,t,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const t=[];for(const r of e){if(r.indexOf("//")>=0)throw new Me(Ae_INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);t.push(...r.split("/").filter(i=>i.length>0))}return new kt(t)}static emptyPath(){return new kt([])}}const gi=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Yt extends wt{construct(e,t,r){return new Yt(e,t,r)}static isValidIdentifier(e){return gi.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Yt.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&this.get(0)===qt}static keyField(){return new Yt([qt])}static fromServerFormat(e){const t=[];let r="",i=0;const o=()=>{if(0===r.length)throw new Me(Ae_INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(r),r=""};let s=!1;for(;i<e.length;){const a=e[i];if("\\"===a){if(i+1===e.length)throw new Me(Ae_INVALID_ARGUMENT,"Path has trailing escape character: "+e);const c=e[i+1];if("\\"!==c&&"."!==c&&"`"!==c)throw new Me(Ae_INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=c,i+=2}else"`"===a?(s=!s,i++):"."!==a||s?(r+=a,i++):(o(),i++)}if(o(),s)throw new Me(Ae_INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new Yt(t)}static emptyPath(){return new Yt([])}}class qe{constructor(e){this.path=e}static fromPath(e){return new qe(kt.fromString(e))}static fromName(e){return new qe(kt.fromString(e).popFirst(5))}static empty(){return new qe(kt.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===kt.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return kt.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new qe(new kt(e.slice()))}}function ut(n,e){const t={typeString:n};return e&&(t.value=e),t}function Dt(n,e){if(!function Te(n){return"object"==typeof n&&null!==n&&(Object.getPrototypeOf(n)===Object.prototype||null===Object.getPrototypeOf(n))}(n))throw new Me(Ae_INVALID_ARGUMENT,"JSON must be an object");let t;for(const r in e)if(e[r]){const i=e[r].typeString,o="value"in e[r]?{value:e[r].value}:void 0;if(!(r in n)){t=`JSON missing required field: '${r}'`;break}const s=n[r];if(i&&typeof s!==i){t=`JSON field '${r}' must be a ${i}.`;break}if(void 0!==o&&s!==o.value){t=`Expected '${r}' field to equal '${o.value}'`;break}}if(t)throw new Me(Ae_INVALID_ARGUMENT,t);return!0}const Bt=-62135596800;class St{static now(){return St.fromMillis(Date.now())}static fromDate(e){return St.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),r=Math.floor(1e6*(e-1e3*t));return new St(t,r)}constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new Me(Ae_INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new Me(Ae_INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<Bt)throw new Me(Ae_INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Me(Ae_INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?ae(this.nanoseconds,e.nanoseconds):ae(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{type:St._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(e){if(Dt(e,St._jsonSchema))return new St(e.seconds,e.nanoseconds)}valueOf(){return String(this.seconds-Bt).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}St._jsonSchemaVersion="firestore/timestamp/1.0",St._jsonSchema={type:ut("string",St._jsonSchemaVersion),seconds:ut("number"),nanoseconds:ut("number")};const I="owner",Y="mutationQueues",Ne="mutations",_n="documentMutations",Bn="remoteDocumentGlobal",si="targets",wi="targetDocuments",_s="targetGlobal",fc="collectionParents",Xs="clientMetadata",_l="bundles",yl="namedQueries";class yn{constructor(e,t){this.comparator=e,this.root=t||br.EMPTY}insert(e,t){return new yn(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,br.BLACK,null,null))}remove(e){return new yn(this.comparator,this.root.remove(e,this.comparator).copy(null,null,br.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const r=this.comparator(e,t.key);if(0===r)return t.value;r<0?t=t.left:r>0&&(t=t.right)}return null}indexOf(e){let t=0,r=this.root;for(;!r.isEmpty();){const i=this.comparator(e,r.key);if(0===i)return t+r.left.size;i<0?r=r.left:(t+=r.left.size+1,r=r.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,r)=>(e(t,r),!1))}toString(){const e=[];return this.inorderTraversal((t,r)=>(e.push(`${t}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new wl(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new wl(this.root,e,this.comparator,!1)}getReverseIterator(){return new wl(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new wl(this.root,e,this.comparator,!0)}}class wl{constructor(e,t,r,i){this.isReverse=i,this.nodeStack=[];let o=1;for(;!e.isEmpty();)if(o=t?r(e.key,t):1,t&&i&&(o*=-1),o<0)e=this.isReverse?e.left:e.right;else{if(0===o){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class br{constructor(e,t,r,i,o){this.key=e,this.value=t,this.color=r??br.RED,this.left=i??br.EMPTY,this.right=o??br.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,r,i,o){return new br(e??this.key,t??this.value,r??this.color,i??this.left,o??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,r){let i=this;const o=r(e,i.key);return i=o<0?i.copy(null,null,null,i.left.insert(e,t,r),null):0===o?i.copy(null,t,null,null,null):i.copy(null,null,null,null,i.right.insert(e,t,r)),i.fixUp()}removeMin(){if(this.left.isEmpty())return br.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let r,i=this;if(t(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,t),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===t(e,i.key)){if(i.right.isEmpty())return br.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,t))}return i.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,br.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,br.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw st(43730,{key:this.key,value:this.value});if(this.right.isRed())throw st(14113,{key:this.key,value:this.value});const e=this.left.check();if(e!==this.right.check())throw st(27949);return e+(this.isRed()?0:1)}}br.EMPTY=null,br.RED=!0,br.BLACK=!1,br.EMPTY=new class{constructor(){this.size=0}get key(){throw st(57766)}get value(){throw st(16141)}get color(){throw st(16727)}get left(){throw st(29726)}get right(){throw st(36894)}copy(e,t,r,i,o){return this}insert(e,t,r){return new br(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class an{constructor(e){this.comparator=e,this.data=new yn(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,r)=>(e(t),!1))}forEachInRange(e,t){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const i=r.getNext();if(this.comparator(i.key,e[1])>=0)return;t(i.key)}}forEachWhile(e,t){let r;for(r=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new l0(this.data.getIterator())}getIteratorFrom(e){return new l0(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach(r=>{t=t.add(r)}),t}isEqual(e){if(!(e instanceof an)||this.size!==e.size)return!1;const t=this.data.getIterator(),r=e.data.getIterator();for(;t.hasNext();){const i=t.getNext().key,o=r.getNext().key;if(0!==this.comparator(i,o))return!1}return!0}toArray(){const e=[];return this.forEach(t=>{e.push(t)}),e}toString(){const e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){const t=new an(this.comparator);return t.data=e,t}}class l0{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class d0 extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class Gn{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(i){try{return atob(i)}catch(o){throw typeof DOMException<"u"&&o instanceof DOMException?new d0("Invalid base64 string: "+o):o}}(e);return new Gn(t)}static fromUint8Array(e){const t=function(i){let o="";for(let s=0;s<i.length;++s)o+=String.fromCharCode(i[s]);return o}(e);return new Gn(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return btoa(this.binaryString)}toUint8Array(){return function(t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return ae(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Gn.EMPTY_BYTE_STRING=new Gn("");const VD=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Cn(n){return"number"==typeof n?n:"string"==typeof n?Number(n):0}const yc="(default)";class ys{constructor(e,t){this.projectId=e,this.database=t||yc}static empty(){return new ys("","")}get isDefaultDatabase(){return this.database===yc}isEqual(e){return e instanceof ys&&e.projectId===this.projectId&&e.database===this.database}}class fo{constructor(e,t=null,r=[],i=[],o=null,s="F",a=null,c=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=r,this.filters=i,this.limit=o,this.limitType=s,this.startAt=a,this.endAt=c,this.Ie=null,this.Ee=null,this.de=null}}var nr,Jt,Am,MT;new yn(qe.comparator),new yn(qe.comparator),new yn(qe.comparator),new an(qe.comparator),new an(ae),(Jt=nr||(nr={}))[Jt.OK=0]="OK",Jt[Jt.CANCELLED=1]="CANCELLED",Jt[Jt.UNKNOWN=2]="UNKNOWN",Jt[Jt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Jt[Jt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Jt[Jt.NOT_FOUND=5]="NOT_FOUND",Jt[Jt.ALREADY_EXISTS=6]="ALREADY_EXISTS",Jt[Jt.PERMISSION_DENIED=7]="PERMISSION_DENIED",Jt[Jt.UNAUTHENTICATED=16]="UNAUTHENTICATED",Jt[Jt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Jt[Jt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Jt[Jt.ABORTED=10]="ABORTED",Jt[Jt.OUT_OF_RANGE=11]="OUT_OF_RANGE",Jt[Jt.UNIMPLEMENTED=12]="UNIMPLEMENTED",Jt[Jt.INTERNAL=13]="INTERNAL",Jt[Jt.UNAVAILABLE=14]="UNAVAILABLE",Jt[Jt.DATA_LOSS=15]="DATA_LOSS",new Et([4294967295,4294967295],0),Error;class ks{constructor(){}Dt(e,t){this.Ct(e,t),t.vt()}Ct(e,t){if("nullValue"in e)this.Ft(t,5);else if("booleanValue"in e)this.Ft(t,10),t.Mt(e.booleanValue?1:0);else if("integerValue"in e)this.Ft(t,15),t.Mt(Cn(e.integerValue));else if("doubleValue"in e){const r=Cn(e.doubleValue);isNaN(r)?this.Ft(t,13):(this.Ft(t,15),function ms(n){return 0===n&&1/n==-1/0}(r)?t.Mt(0):t.Mt(r))}else if("timestampValue"in e){let r=e.timestampValue;this.Ft(t,20),"string"==typeof r&&(r=function ho(n){if(pt(!!n,39018),"string"==typeof n){let e=0;const t=VD.exec(n);if(pt(!!t,46558,{timestamp:n}),t[1]){let i=t[1];i=(i+"000000000").substr(0,9),e=Number(i)}const r=new Date(n);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:Cn(n.seconds),nanos:Cn(n.nanos)}}(r)),t.xt(`${r.seconds||""}`),t.Mt(r.nanos||0)}else if("stringValue"in e)this.Ot(e.stringValue,t),this.Nt(t);else if("bytesValue"in e)this.Ft(t,30),t.Bt(function po(n){return"string"==typeof n?Gn.fromBase64String(n):Gn.fromUint8Array(n)}(e.bytesValue)),this.Nt(t);else if("referenceValue"in e)this.Lt(e.referenceValue,t);else if("geoPointValue"in e){const r=e.geoPointValue;this.Ft(t,45),t.Mt(r.latitude||0),t.Mt(r.longitude||0)}else"mapValue"in e?function b0(n){return"__max__"===(((n.mapValue||{}).fields||{}).__type__||{}).stringValue}(e)?this.Ft(t,Number.MAX_SAFE_INTEGER):function kl(n){return"__vector__"===(n?.mapValue?.fields||{}).__type__?.stringValue}(e)?this.kt(e.mapValue,t):(this.qt(e.mapValue,t),this.Nt(t)):"arrayValue"in e?(this.Qt(e.arrayValue,t),this.Nt(t)):st(19022,{$t:e})}Ot(e,t){this.Ft(t,25),this.Ut(e,t)}Ut(e,t){t.xt(e)}qt(e,t){const r=e.fields||{};this.Ft(t,55);for(const i of Object.keys(r))this.Ot(i,t),this.Ct(r[i],t)}kt(e,t){const r=e.fields||{};this.Ft(t,53);const i="value",o=r[i].arrayValue?.values?.length||0;this.Ft(t,15),t.Mt(Cn(o)),this.Ot(i,t),this.Ct(r[i],t)}Qt(e,t){const r=e.values||[];this.Ft(t,50);for(const i of r)this.Ct(i,t)}Lt(e,t){this.Ft(t,37),qe.fromName(e).path.forEach(r=>{this.Ft(t,60),this.Ut(r,t)})}Ft(e,t){e.Mt(t)}Nt(e){e.Mt(2)}}ks.Kt=new ks,new Uint8Array(0);class xr{static withCacheSize(e){return new xr(e,xr.DEFAULT_COLLECTION_PERCENTILE,xr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,t,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=r}}function Yl(){return typeof document<"u"?document:null}xr.DEFAULT_COLLECTION_PERCENTILE=10,xr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,xr.DEFAULT=new xr(41943040,xr.DEFAULT_COLLECTION_PERCENTILE,xr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),xr.DISABLED=new xr(-1,0,0);class rm{constructor(e,t,r=1e3,i=1.5,o=6e4){this.Mi=e,this.timerId=t,this.d_=r,this.A_=i,this.R_=o,this.V_=0,this.m_=null,this.f_=Date.now(),this.reset()}reset(){this.V_=0}g_(){this.V_=this.R_}p_(e){this.cancel();const t=Math.floor(this.V_+this.y_()),r=Math.max(0,Date.now()-this.f_),i=Math.max(0,t-r);i>0&&ze("ExponentialBackoff",`Backing off for ${i} ms (base delay: ${this.V_} ms, delay with jitter: ${t} ms, last attempt: ${r} ms ago)`),this.m_=this.Mi.enqueueAfterDelay(this.timerId,i,()=>(this.f_=Date.now(),e())),this.V_*=this.A_,this.V_<this.d_&&(this.V_=this.d_),this.V_>this.R_&&(this.V_=this.R_)}w_(){null!==this.m_&&(this.m_.skipDelay(),this.m_=null)}cancel(){null!==this.m_&&(this.m_.cancel(),this.m_=null)}y_(){return(Math.random()-.5)*this.V_}}class bm{constructor(e,t,r,i,o){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=r,this.op=i,this.removalCallback=o,this.deferred=new $n,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(s=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,t,r,i,o){const s=Date.now()+r,a=new bm(e,t,s,i,o);return a.start(r),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Me(Ae_CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}(MT=Am||(Am={})).Ma="default",MT.Cache="cache";const iE=new Map;class aE{constructor(e){if(void 0===e.host){if(void 0!==e.ssl)throw new Me(Ae_INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=e.ssl??!0;if(this.isUsingEmulator=void 0!==e.emulatorOptions,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new Me(Ae_INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}(function xi(n,e,t,r){if(!0===e&&!0===r)throw new Me(Ae_INVALID_ARGUMENT,`${n} and ${t} cannot be used together.`)})("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==e.experimentalAutoDetectLongPolling&&!e.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=function rE(n){const e={};return void 0!==n.timeoutSeconds&&(e.timeoutSeconds=n.timeoutSeconds),e}(e.experimentalLongPollingOptions??{}),function(r){if(void 0!==r.timeoutSeconds){if(isNaN(r.timeoutSeconds))throw new Me(Ae_INVALID_ARGUMENT,`invalid long polling timeout: ${r.timeoutSeconds} (must not be NaN)`);if(r.timeoutSeconds<5)throw new Me(Ae_INVALID_ARGUMENT,`invalid long polling timeout: ${r.timeoutSeconds} (minimum allowed value is 5)`);if(r.timeoutSeconds>30)throw new Me(Ae_INVALID_ARGUMENT,`invalid long polling timeout: ${r.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===e.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class Zc{constructor(e,t,r,i){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=r,this._app=i,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new aE({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new Me(Ae_FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return"notTerminated"!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new Me(Ae_FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new aE(e),this._emulatorOptions=e.emulatorOptions||{},void 0!==e.credentials&&(this._authCredentials=function(r){if(!r)return new jr;switch(r.type){case"firstParty":return new Kr(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new Me(Ae_INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return"notTerminated"===this._terminateTask&&(this._terminateTask=this._terminate()),this._terminateTask}_restart(){var e=this;return(0,g.A)(function*(){"notTerminated"===e._terminateTask?yield e._terminate():e._terminateTask="notTerminated"})()}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(t){const r=iE.get(t);r&&(ze("ComponentProvider","Removing Datastore"),iE.delete(t),r.terminate())}(this),Promise.resolve()}}class pr{constructor(e,t,r){this.converter=t,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new pr(this.firestore,e,this._query)}}class hn{constructor(e,t,r){this.converter=t,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Ji(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new hn(this.firestore,e,this._key)}toJSON(){return{type:hn._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(e,t,r){if(Dt(t,hn._jsonSchema))return new hn(e,r||null,new qe(kt.fromString(t.referencePath)))}}hn._jsonSchemaVersion="firestore/documentReference/1.0",hn._jsonSchema={type:ut("string",hn._jsonSchemaVersion),referencePath:ut("string")};class Ji extends pr{constructor(e,t,r){super(e,t,function ra(n){return new fo(n)}(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new hn(this.firestore,null,new qe(e))}withConverter(e){return new Ji(this.firestore,e,this._path)}}const uE="AsyncQueue";class lE{constructor(e=Promise.resolve()){this.Xu=[],this.ec=!1,this.tc=[],this.nc=null,this.rc=!1,this.sc=!1,this.oc=[],this.M_=new rm(this,"async_queue_retry"),this._c=()=>{const r=Yl();r&&ze(uE,"Visibility state changed to "+r.visibilityState),this.M_.w_()},this.ac=e;const t=Yl();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this._c)}get isShuttingDown(){return this.ec}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.uc(),this.cc(e)}enterRestrictedMode(e){if(!this.ec){this.ec=!0,this.sc=e||!1;const t=Yl();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this._c)}}enqueue(e){if(this.uc(),this.ec)return new Promise(()=>{});const t=new $n;return this.cc(()=>this.ec&&this.sc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Xu.push(e),this.lc()))}lc(){var e=this;return(0,g.A)(function*(){if(0!==e.Xu.length){try{yield e.Xu[0](),e.Xu.shift(),e.M_.reset()}catch(t){if(!function Bi(n){return"IndexedDbTransactionError"===n.name}(t))throw t;ze(uE,"Operation failed with retryable error: "+t)}e.Xu.length>0&&e.M_.p_(()=>e.lc())}})()}cc(e){const t=this.ac.then(()=>(this.rc=!0,e().catch(r=>{throw this.nc=r,this.rc=!1,In("INTERNAL UNHANDLED ERROR: ",dE(r)),r}).then(r=>(this.rc=!1,r))));return this.ac=t,t}enqueueAfterDelay(e,t,r){this.uc(),this.oc.indexOf(e)>-1&&(t=0);const i=bm.createAndSchedule(this,e,t,r,o=>this.hc(o));return this.tc.push(i),i}uc(){this.nc&&st(47125,{Pc:dE(this.nc)})}verifyOperationInProgress(){}Tc(){var e=this;return(0,g.A)(function*(){let t;do{t=e.ac,yield t}while(t!==e.ac)})()}Ic(e){for(const t of this.tc)if(t.timerId===e)return!0;return!1}Ec(e){return this.Tc().then(()=>{this.tc.sort((t,r)=>t.targetTimeMs-r.targetTimeMs);for(const t of this.tc)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.Tc()})}dc(e){this.oc.push(e)}hc(e){const t=this.tc.indexOf(e);this.tc.splice(t,1)}}function dE(n){let e=n.message||"";return n.stack&&(e=n.stack.includes(n.message)?n.stack:n.message+"\n"+n.stack),e}class pn extends Zc{constructor(e,t,r,i){super(e,t,r,i),this.type="firestore",this._queue=new lE,this._persistenceKey=i?.name||"[DEFAULT]"}_terminate(){var e=this;return(0,g.A)(function*(){if(e._firestoreClient){const t=e._firestoreClient.terminate();e._queue=new lE(t),e._firestoreClient=void 0,yield t}})()}}class ai{constructor(e){this._byteString=e}static fromBase64String(e){try{return new ai(Gn.fromBase64String(e))}catch(t){throw new Me(Ae_INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}}static fromUint8Array(e){return new ai(Gn.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}toJSON(){return{type:ai._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(e){if(Dt(e,ai._jsonSchema))return ai.fromBase64String(e.bytes)}}ai._jsonSchemaVersion="firestore/bytes/1.0",ai._jsonSchema={type:ut("string",ai._jsonSchemaVersion),bytes:ut("string")};class Cs{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new Me(Ae_INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Yt(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class Xi{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new Me(Ae_INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new Me(Ae_INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}_compareTo(e){return ae(this._lat,e._lat)||ae(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:Xi._jsonSchemaVersion}}static fromJSON(e){if(Dt(e,Xi._jsonSchema))return new Xi(e.latitude,e.longitude)}}Xi._jsonSchemaVersion="firestore/geoPoint/1.0",Xi._jsonSchema={type:ut("string",Xi._jsonSchemaVersion),latitude:ut("number"),longitude:ut("number")};class Oi{constructor(e){this._values=(e||[]).map(t=>t)}toArray(){return this._values.map(e=>e)}isEqual(e){return function(r,i){if(r.length!==i.length)return!1;for(let o=0;o<r.length;++o)if(r[o]!==i[o])return!1;return!0}(this._values,e._values)}toJSON(){return{type:Oi._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(e){if(Dt(e,Oi._jsonSchema)){if(Array.isArray(e.vectorValues)&&e.vectorValues.every(t=>"number"==typeof t))return new Oi(e.vectorValues);throw new Me(Ae_INVALID_ARGUMENT,"Expected 'vectorValues' field to be a number array")}}}Oi._jsonSchemaVersion="firestore/vectorValue/1.0",Oi._jsonSchema={type:ut("string",Oi._jsonSchemaVersion),vectorValues:ut("object")};const g2=new RegExp("[~\\*/\\[\\]]");function ud(n,e,t,r,i){const o=r&&!r.isEmpty(),s=void 0!==i;let a=`Function ${e}() called with invalid data`;t&&(a+=" (via `toFirestore()`)"),a+=". ";let c="";return(o||s)&&(c+=" (found",o&&(c+=` in field ${r}`),s&&(c+=` in document ${i}`),c+=")"),new Me(Ae_INVALID_ARGUMENT,a+n+c)}class Wc{constructor(e,t,r,i,o){this._firestore=e,this._userDataWriter=t,this._key=r,this._document=i,this._converter=o}get id(){return this._key.path.lastSegment()}get ref(){return new hn(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new _2(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const t=this._document.data.field(ld("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class _2 extends Wc{data(){return super.data()}}function ld(n,e){return"string"==typeof e?function cd(n,e,t){if(e.search(g2)>=0)throw ud(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,n,!1,void 0,t);try{return new Cs(...e.split("."))._internalPath}catch{throw ud(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,n,!1,void 0,t)}}(n,e):e instanceof Cs?e._internalPath:e._delegate._internalPath}class Ho{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class ci extends Wc{constructor(e,t,r,i,o,s){super(e,t,r,i,s),this._firestore=e,this._firestoreImpl=e,this.metadata=o}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const t=new md(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){const r=this._document.data.field(ld("DocumentSnapshot.get",e));if(null!==r)return this._userDataWriter.convertValue(r,t.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new Me(Ae_FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e=this._document,t={};return t.type=ci._jsonSchemaVersion,t.bundle="",t.bundleSource="DocumentSnapshot",t.bundleName=this._key.toString(),e&&e.isValidDocument()&&e.isFoundDocument()?(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),t.bundle="NOT SUPPORTED",t):t}}ci._jsonSchemaVersion="firestore/documentSnapshot/1.0",ci._jsonSchema={type:ut("string",ci._jsonSchemaVersion),bundleSource:ut("string","DocumentSnapshot"),bundleName:ut("string"),bundle:ut("string")};class md extends ci{data(e={}){return super.data(e)}}class ui{constructor(e,t,r,i){this._firestore=e,this._userDataWriter=t,this._snapshot=i,this.metadata=new Ho(i.hasPendingWrites,i.fromCache),this.query=r}get docs(){const e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(r=>{e.call(t,new md(this._firestore,this._userDataWriter,r.key,r,new Ho(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new Me(Ae_INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(i,o){if(i._snapshot.oldDocs.isEmpty()){let s=0;return i._snapshot.docChanges.map(a=>({type:"added",doc:new md(i._firestore,i._userDataWriter,a.doc.key,a.doc,new Ho(i._snapshot.mutatedKeys.has(a.doc.key),i._snapshot.fromCache),i.query.converter),oldIndex:-1,newIndex:s++}))}{let s=i._snapshot.oldDocs;return i._snapshot.docChanges.filter(a=>o||3!==a.type).map(a=>{const c=new md(i._firestore,i._userDataWriter,a.doc.key,a.doc,new Ho(i._snapshot.mutatedKeys.has(a.doc.key),i._snapshot.fromCache),i.query.converter);let u=-1,d=-1;return 0!==a.type&&(u=s.indexOf(a.doc.key),s=s.delete(a.doc.key)),1!==a.type&&(s=s.add(a.doc),d=s.indexOf(a.doc.key)),{type:v2(a.type),doc:c,oldIndex:u,newIndex:d}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new Me(Ae_FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e={};e.type=ui._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=Ue.newId();const t=[],r=[],i=[];return this.docs.forEach(o=>{null!==o._document&&(t.push(o._document),r.push(this._userDataWriter.convertObjectMap(o._document.data.value.mapValue.fields,"previous")),i.push(o.ref.path))}),e.bundle="NOT SUPPORTED",e}}function v2(n){switch(n){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return st(61501,{type:n})}}ui._jsonSchemaVersion="firestore/querySnapshot/1.0",ui._jsonSchema={type:ut("string",ui._jsonSchemaVersion),bundleSource:ut("string","QuerySnapshot"),bundleName:ut("string"),bundle:ut("string")},function(e,t=!0){Ur=j.MF,(0,j.om)(new z.uA("firestore",(r,{instanceIdentifier:i,options:o})=>{const s=r.getProvider("app").getImmediate(),a=new pn(new sc(r.getProvider("auth-internal")),new J(s,r.getProvider("app-check-internal")),function(u,d){if(!Object.prototype.hasOwnProperty.apply(u.options,["projectId"]))throw new Me(Ae_INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new ys(u.options.projectId,d)}(s,i),s);return o={useFetchStreams:t,...o},a._setSettings(o),a},"PUBLIC").setMultipleInstances(!0)),(0,j.KO)(lr,"4.9.2",e),(0,j.KO)(lr,"4.9.2","esm2020")}();const z2=function ME(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},UE=new oe.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),_d=new H.Vy("@firebase/auth");function yd(n,...e){_d.logLevel<=H.$b.ERROR&&_d.error(`Auth (${j.MF}): ${n}`,...e)}function ei(n,...e){throw Rg(n,...e)}function bi(n,...e){return Rg(n,...e)}function Pg(n,e,t){const r={...z2(),[e]:t};return new oe.FA("auth","Firebase",r).create(e,{appName:n.name})}function fr(n){return Pg(n,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Rg(n,...e){if("string"!=typeof n){const t=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=n.name),n._errorFactory.create(t,...r)}return UE.create(n,...e)}function Ye(n,e,...t){if(!n)throw Rg(e,...t)}function Yi(n){const e="INTERNAL ASSERTION FAILED: "+n;throw yd(e),new Error(e)}function Qo(n,e){n||Yi(e)}function LE(){return typeof self<"u"&&self.location?.protocol||null}class nu{constructor(e,t){this.shortDelay=e,this.longDelay=t,Qo(t>e,"Short delay should be less than long delay!"),this.isMobile=(0,oe.jZ)()||(0,oe.lV)()}get(){return function q2(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function $g(){return"http:"===LE()||"https:"===LE()}()||(0,oe.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}class jE{static initialize(e,t,r){this.fetchImpl=e,t&&(this.headersImpl=t),r&&(this.responseImpl=r)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void Yi("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void Yi("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void Yi("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const B2={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},G2=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],H2=new nu(3e4,6e4);function En(n,e){return n.tenantId&&!e.tenantId?{...e,tenantId:n.tenantId}:e}function Sn(n,e,t,r){return Cg.apply(this,arguments)}function Cg(){return(Cg=(0,g.A)(function*(n,e,t,r,i={}){return VE(n,i,(0,g.A)(function*(){let o={},s={};r&&("GET"===e?s=r:o={body:JSON.stringify(r)});const a=(0,oe.Am)({key:n.config.apiKey,...s}).slice(1),c=yield n._getAdditionalHeaders();c["Content-Type"]="application/json",n.languageCode&&(c["X-Firebase-Locale"]=n.languageCode);const u={method:e,headers:c,...o};return(0,oe.c1)()||(u.referrerPolicy="no-referrer"),n.emulatorConfig&&(0,oe.zJ)(n.emulatorConfig.host)&&(u.credentials="include"),jE.fetch()(yield zE(n,n.config.apiHost,t,a),u)}))})).apply(this,arguments)}function VE(n,e,t){return Dg.apply(this,arguments)}function Dg(){return(Dg=(0,g.A)(function*(n,e,t){n._canInitEmulator=!1;const r={...B2,...e};try{const i=new K2(n),o=yield Promise.race([t(),i.promise]);i.clearNetworkTimeout();const s=yield o.json();if("needConfirmation"in s)throw ru(n,"account-exists-with-different-credential",s);if(o.ok&&!("errorMessage"in s))return s;{const a=o.ok?s.errorMessage:s.error.message,[c,u]=a.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===c)throw ru(n,"credential-already-in-use",s);if("EMAIL_EXISTS"===c)throw ru(n,"email-already-in-use",s);if("USER_DISABLED"===c)throw ru(n,"user-disabled",s);const d=r[c]||c.toLowerCase().replace(/[_\s]+/g,"-");if(u)throw Pg(n,d,u);ei(n,d)}}catch(i){if(i instanceof oe.g)throw i;ei(n,"network-request-failed",{message:String(i)})}})).apply(this,arguments)}function zE(n,e,t,r){return Ng.apply(this,arguments)}function Ng(){return(Ng=(0,g.A)(function*(n,e,t,r){const i=`${e}${t}?${r}`,o=n,s=o.config.emulator?function xg(n,e){Qo(n.emulator,"Emulator should always be set here");const{url:t}=n.emulator;return e?`${t}${e.startsWith("/")?e.slice(1):e}`:t}(n.config,i):`${n.config.apiScheme}://${i}`;return G2.includes(t)&&(yield o._persistenceManagerAvailable,"COOKIE"===o._getPersistenceType())?o._getPersistence()._getFinalTarget(s).toString():s})).apply(this,arguments)}class K2{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((t,r)=>{this.timer=setTimeout(()=>r(bi(this.auth,"network-request-failed")),H2.get())})}}function ru(n,e,t){const r={appName:n.name};t.email&&(r.email=t.email),t.phoneNumber&&(r.phoneNumber=t.phoneNumber);const i=bi(n,e,r);return i.customData._tokenResponse=t,i}function Lg(){return(Lg=(0,g.A)(function*(n,e){return Sn(n,"POST","/v1/accounts:delete",e)})).apply(this,arguments)}function vd(n,e){return Vg.apply(this,arguments)}function Vg(){return(Vg=(0,g.A)(function*(n,e){return Sn(n,"POST","/v1/accounts:lookup",e)})).apply(this,arguments)}function iu(n){if(n)try{const e=new Date(Number(n));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}function zg(){return(zg=(0,g.A)(function*(n,e=!1){const t=(0,oe.Ku)(n),r=yield t.getIdToken(e),i=wd(r);Ye(i&&i.exp&&i.auth_time&&i.iat,t.auth,"internal-error");const o="object"==typeof i.firebase?i.firebase:void 0,s=o?.sign_in_provider;return{claims:i,token:r,authTime:iu(Fg(i.auth_time)),issuedAtTime:iu(Fg(i.iat)),expirationTime:iu(Fg(i.exp)),signInProvider:s||null,signInSecondFactor:o?.sign_in_second_factor||null}})).apply(this,arguments)}function Fg(n){return 1e3*Number(n)}function wd(n){const[e,t,r]=n.split(".");if(void 0===e||void 0===t||void 0===r)return yd("JWT malformed, contained fewer than 3 sections"),null;try{const i=(0,oe.u)(t);return i?JSON.parse(i):(yd("Failed to decode base64 JWT payload"),null)}catch(i){return yd("Caught error parsing JWT payload as JSON",i?.toString()),null}}function GE(n){const e=wd(n);return Ye(e,"internal-error"),Ye(typeof e.exp<"u","internal-error"),Ye(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}function wo(n,e){return qg.apply(this,arguments)}function qg(){return(qg=(0,g.A)(function*(n,e,t=!1){if(t)return e;try{return yield e}catch(r){throw r instanceof oe.g&&function e4({code:n}){return"auth/user-disabled"===n||"auth/user-token-expired"===n}(r)&&n.auth.currentUser===n&&(yield n.auth.signOut()),r}})).apply(this,arguments)}class t4{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){if(e){const t=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),t}{this.errorBackoff=3e4;const r=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,r)}}schedule(e=!1){var t=this;if(!this.isRunning)return;const r=this.getInterval(e);this.timerId=setTimeout((0,g.A)(function*(){yield t.iteration()}),r)}iteration(){var e=this;return(0,g.A)(function*(){try{yield e.user.getIdToken(!0)}catch(t){return void("auth/network-request-failed"===t?.code&&e.schedule(!0))}e.schedule()})()}}class Zg{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=iu(this.lastLoginAt),this.creationTime=iu(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function ou(n){return Bg.apply(this,arguments)}function Bg(){return(Bg=(0,g.A)(function*(n){const e=n.auth,t=yield n.getIdToken(),r=yield wo(n,vd(e,{idToken:t}));Ye(r?.users.length,e,"internal-error");const i=r.users[0];n._notifyReloadListener(i);const o=i.providerUserInfo?.length?HE(i.providerUserInfo):[],s=function r4(n,e){return[...n.filter(r=>!e.some(i=>i.providerId===r.providerId)),...e]}(n.providerData,o),u=!!n.isAnonymous&&!(n.email&&i.passwordHash||s?.length),d={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:s,metadata:new Zg(i.createdAt,i.lastLoginAt),isAnonymous:u};Object.assign(n,d)})).apply(this,arguments)}function Gg(){return(Gg=(0,g.A)(function*(n){const e=(0,oe.Ku)(n);yield ou(e),yield e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)})).apply(this,arguments)}function HE(n){return n.map(({providerId:e,...t})=>({providerId:e,uid:t.rawId||"",displayName:t.displayName||null,email:t.email||null,phoneNumber:t.phoneNumber||null,photoURL:t.photoUrl||null}))}function Hg(){return(Hg=(0,g.A)(function*(n,e){const t=yield VE(n,{},(0,g.A)(function*(){const r=(0,oe.Am)({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:o}=n.config,s=yield zE(n,i,"/v1/token",`key=${o}`),a=yield n._getAdditionalHeaders();a["Content-Type"]="application/x-www-form-urlencoded";const c={method:"POST",headers:a,body:r};return n.emulatorConfig&&(0,oe.zJ)(n.emulatorConfig.host)&&(c.credentials="include"),jE.fetch()(s,c)}));return{accessToken:t.access_token,expiresIn:t.expires_in,refreshToken:t.refresh_token}})).apply(this,arguments)}function Wg(){return(Wg=(0,g.A)(function*(n,e){return Sn(n,"POST","/v2/accounts:revokeToken",En(n,e))})).apply(this,arguments)}class Da{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Ye(e.idToken,"internal-error"),Ye(typeof e.idToken<"u","internal-error"),Ye(typeof e.refreshToken<"u","internal-error");const t="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):GE(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){Ye(0!==e.length,"internal-error");const t=GE(e);this.updateTokensAndExpiration(e,null,t)}getToken(e){var t=this;return(0,g.A)(function*(r,i=!1){return i||!t.accessToken||t.isExpired?(Ye(t.refreshToken,r,"user-token-expired"),t.refreshToken?(yield t.refresh(r,t.refreshToken),t.accessToken):null):t.accessToken}).apply(this,arguments)}clearRefreshToken(){this.refreshToken=null}refresh(e,t){var r=this;return(0,g.A)(function*(){const{accessToken:i,refreshToken:o,expiresIn:s}=yield function i4(n,e){return Hg.apply(this,arguments)}(e,t);r.updateTokensAndExpiration(i,o,Number(s))})()}updateTokensAndExpiration(e,t,r){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*r}static fromJSON(e,t){const{refreshToken:r,accessToken:i,expirationTime:o}=t,s=new Da;return r&&(Ye("string"==typeof r,"internal-error",{appName:e}),s.refreshToken=r),i&&(Ye("string"==typeof i,"internal-error",{appName:e}),s.accessToken=i),o&&(Ye("number"==typeof o,"internal-error",{appName:e}),s.expirationTime=o),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Da,this.toJSON())}_performRefresh(){return Yi("not implemented")}}function Jo(n,e){Ye("string"==typeof n||typeof n>"u","internal-error",{appName:e})}class Ni{constructor({uid:e,auth:t,stsTokenManager:r,...i}){this.providerId="firebase",this.proactiveRefresh=new t4(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=t,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new Zg(i.createdAt||void 0,i.lastLoginAt||void 0)}getIdToken(e){var t=this;return(0,g.A)(function*(){const r=yield wo(t,t.stsTokenManager.getToken(t.auth,e));return Ye(r,t.auth,"internal-error"),t.accessToken!==r&&(t.accessToken=r,yield t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)),r})()}getIdTokenResult(e){return function Y2(n){return zg.apply(this,arguments)}(this,e)}reload(){return function n4(n){return Gg.apply(this,arguments)}(this)}_assign(e){this!==e&&(Ye(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(t=>({...t})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new Ni({...this,auth:e,stsTokenManager:this.stsTokenManager._clone()});return t.metadata._copy(this.metadata),t}_onReload(e){Ye(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(e){var t=this;return(0,g.A)(function*(r,i=!1){let o=!1;r.idToken&&r.idToken!==t.stsTokenManager.accessToken&&(t.stsTokenManager.updateFromServerResponse(r),o=!0),i&&(yield ou(t)),yield t.auth._persistUserIfCurrent(t),o&&t.auth._notifyListenersIfCurrent(t)}).apply(this,arguments)}delete(){var e=this;return(0,g.A)(function*(){if((0,j.xZ)(e.auth.app))return Promise.reject(fr(e.auth));const t=yield e.getIdToken();return yield wo(e,function J2(n,e){return Lg.apply(this,arguments)}(e.auth,{idToken:t})),e.stsTokenManager.clearRefreshToken(),e.auth.signOut()})()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>({...e})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){const r=t.displayName??void 0,i=t.email??void 0,o=t.phoneNumber??void 0,s=t.photoURL??void 0,a=t.tenantId??void 0,c=t._redirectEventId??void 0,u=t.createdAt??void 0,d=t.lastLoginAt??void 0,{uid:h,emailVerified:f,isAnonymous:E,providerData:q,stsTokenManager:Q}=t;Ye(h&&Q,e,"internal-error");const de=Da.fromJSON(this.name,Q);Ye("string"==typeof h,e,"internal-error"),Jo(r,e.name),Jo(i,e.name),Ye("boolean"==typeof f,e,"internal-error"),Ye("boolean"==typeof E,e,"internal-error"),Jo(o,e.name),Jo(s,e.name),Jo(a,e.name),Jo(c,e.name),Jo(u,e.name),Jo(d,e.name);const $e=new Ni({uid:h,auth:e,email:i,emailVerified:f,displayName:r,isAnonymous:E,photoURL:s,phoneNumber:o,tenantId:a,stsTokenManager:de,createdAt:u,lastLoginAt:d});return q&&Array.isArray(q)&&($e.providerData=q.map(je=>({...je}))),c&&($e._redirectEventId=c),$e}static _fromIdTokenResponse(e,t){return(0,g.A)(function*(r,i,o=!1){const s=new Da;s.updateFromServerResponse(i);const a=new Ni({uid:i.localId,auth:r,stsTokenManager:s,isAnonymous:o});return yield ou(a),a}).apply(this,arguments)}static _fromGetAccountInfoResponse(e,t,r){return(0,g.A)(function*(){const i=t.users[0];Ye(void 0!==i.localId,"internal-error");const o=void 0!==i.providerUserInfo?HE(i.providerUserInfo):[],s=!(i.email&&i.passwordHash||o?.length),a=new Da;a.updateFromIdToken(r);const c=new Ni({uid:i.localId,auth:e,stsTokenManager:a,isAnonymous:s}),u={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:o,metadata:new Zg(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash||o?.length)};return Object.assign(c,u),c})()}}const WE=new Map;function bo(n){Qo(n instanceof Function,"Expected a class definition");let e=WE.get(n);return e?(Qo(e instanceof n,"Instance stored in cache mismatched with class"),e):(e=new n,WE.set(n,e),e)}const KE=(()=>{class n{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,g.A)(function*(){return!0})()}_set(t,r){var i=this;return(0,g.A)(function*(){i.storage[t]=r})()}_get(t){var r=this;return(0,g.A)(function*(){const i=r.storage[t];return void 0===i?null:i})()}_remove(t){var r=this;return(0,g.A)(function*(){delete r.storage[t]})()}_addListener(t,r){}_removeListener(t,r){}}return n.type="NONE",n})();function bd(n,e,t){return`firebase:${n}:${e}:${t}`}class Oa{constructor(e,t,r){this.persistence=e,this.auth=t,this.userKey=r;const{config:i,name:o}=this.auth;this.fullUserKey=bd(this.userKey,i.apiKey,o),this.fullPersistenceKey=bd("persistence",i.apiKey,o),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}getCurrentUser(){var e=this;return(0,g.A)(function*(){const t=yield e.persistence._get(e.fullUserKey);if(!t)return null;if("string"==typeof t){const r=yield vd(e.auth,{idToken:t}).catch(()=>{});return r?Ni._fromGetAccountInfoResponse(e.auth,r,t):null}return Ni._fromJSON(e.auth,t)})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(e){var t=this;return(0,g.A)(function*(){if(t.persistence===e)return;const r=yield t.getCurrentUser();return yield t.removeCurrentUser(),t.persistence=e,r?t.setCurrentUser(r):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(e,t){return(0,g.A)(function*(r,i,o="authUser"){if(!i.length)return new Oa(bo(KE),r,o);const s=(yield Promise.all(i.map(function(){var h=(0,g.A)(function*(f){if(yield f._isAvailable())return f});return function(f){return h.apply(this,arguments)}}()))).filter(h=>h);let a=s[0]||bo(KE);const c=bd(o,r.config.apiKey,r.name);let u=null;for(const h of i)try{const f=yield h._get(c);if(f){let E;if("string"==typeof f){const q=yield vd(r,{idToken:f}).catch(()=>{});if(!q)break;E=yield Ni._fromGetAccountInfoResponse(r,q,f)}else E=Ni._fromJSON(r,f);h!==a&&(u=E),a=h;break}}catch{}const d=s.filter(h=>h._shouldAllowMigration);return a._shouldAllowMigration&&d.length?(a=d[0],u&&(yield a._set(c,u.toJSON())),yield Promise.all(i.map(function(){var h=(0,g.A)(function*(f){if(f!==a)try{yield f._remove(c)}catch{}});return function(f){return h.apply(this,arguments)}}())),new Oa(a,r,o)):new Oa(a,r,o)}).apply(this,arguments)}}function QE(n){const e=n.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(function eS(n=(0,oe.ZQ)()){return/iemobile/i.test(n)}(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(function JE(n=(0,oe.ZQ)()){return/firefox\//i.test(n)}(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(function nS(n=(0,oe.ZQ)()){return/blackberry/i.test(n)}(e))return"Blackberry";if(function rS(n=(0,oe.ZQ)()){return/webos/i.test(n)}(e))return"Webos";if(function XE(n=(0,oe.ZQ)()){const e=n.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}(e))return"Safari";if((e.includes("chrome/")||function YE(n=(0,oe.ZQ)()){return/crios\//i.test(n)}(e))&&!e.includes("edge/"))return"Chrome";if(function tS(n=(0,oe.ZQ)()){return/android/i.test(n)}(e))return"Android";{const r=n.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===r?.length)return r[1]}return"Other"}function iS(n,e=[]){let t;switch(n){case"Browser":t=QE((0,oe.ZQ)());break;case"Worker":t=`${QE((0,oe.ZQ)())}-${n}`;break;default:t=n}const r=e.length?e.join(","):"FirebaseCore-web";return`${t}/JsCore/${j.MF}/${r}`}class c4{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const r=o=>new Promise((s,a)=>{try{s(e(o))}catch(c){a(c)}});r.onAbort=t,this.queue.push(r);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}runMiddleware(e){var t=this;return(0,g.A)(function*(){if(t.auth.currentUser===e)return;const r=[];try{for(const i of t.queue)yield i(e),i.onAbort&&r.push(i.onAbort)}catch(i){r.reverse();for(const o of r)try{o()}catch{}throw t.auth._errorFactory.create("login-blocked",{originalMessage:i?.message})}})()}}function Qg(){return(Qg=(0,g.A)(function*(n,e={}){return Sn(n,"GET","/v2/passwordPolicy",En(n,e))})).apply(this,arguments)}class d4{constructor(e){const t=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=t.minPasswordLength??6,t.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=t.maxPasswordLength),void 0!==t.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=t.containsLowercaseCharacter),void 0!==t.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=t.containsUppercaseCharacter),void 0!==t.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=t.containsNumericCharacter),void 0!==t.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=t.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=e.allowedNonAlphanumericCharacters?.join("")??"",this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){const t={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,t),this.validatePasswordCharacterOptions(e,t),t.isValid&&(t.isValid=t.meetsMinPasswordLength??!0),t.isValid&&(t.isValid=t.meetsMaxPasswordLength??!0),t.isValid&&(t.isValid=t.containsLowercaseLetter??!0),t.isValid&&(t.isValid=t.containsUppercaseLetter??!0),t.isValid&&(t.isValid=t.containsNumericCharacter??!0),t.isValid&&(t.isValid=t.containsNonAlphanumericCharacter??!0),t}validatePasswordLengthOptions(e,t){const r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(t.meetsMinPasswordLength=e.length>=r),i&&(t.meetsMaxPasswordLength=e.length<=i)}validatePasswordCharacterOptions(e,t){let r;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let i=0;i<e.length;i++)r=e.charAt(i),this.updatePasswordCharacterOptionsStatuses(t,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,t,r,i,o){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=o))}}class h4{constructor(e,t,r,i){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new oS(this),this.idTokenSubscription=new oS(this),this.beforeStateQueue=new c4(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=UE,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion,this._persistenceManagerAvailable=new Promise(o=>this._resolvePersistenceManagerAvailable=o)}_initializeWithPersistence(e,t){var r=this;return t&&(this._popupRedirectResolver=bo(t)),this._initializationPromise=this.queue((0,g.A)(function*(){if(!r._deleted&&(r.persistenceManager=yield Oa.create(r,e),r._resolvePersistenceManagerAvailable?.(),!r._deleted)){if(r._popupRedirectResolver?._shouldInitProactively)try{yield r._popupRedirectResolver._initialize(r)}catch{}yield r.initializeCurrentUser(t),r.lastNotifiedUid=r.currentUser?.uid||null,!r._deleted&&(r._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var e=this;return(0,g.A)(function*(){if(e._deleted)return;const t=yield e.assertedPersistence.getCurrentUser();if(e.currentUser||t){if(e.currentUser&&t&&e.currentUser.uid===t.uid)return e._currentUser._assign(t),void(yield e.currentUser.getIdToken());yield e._updateCurrentUser(t,!0)}})()}initializeCurrentUserFromIdToken(e){var t=this;return(0,g.A)(function*(){try{const r=yield vd(t,{idToken:e}),i=yield Ni._fromGetAccountInfoResponse(t,r,e);yield t.directlySetCurrentUser(i)}catch(r){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",r),yield t.directlySetCurrentUser(null)}})()}initializeCurrentUser(e){var t=this;return(0,g.A)(function*(){if((0,j.xZ)(t.app)){const s=t.app.settings.authIdToken;return s?new Promise(a=>{setTimeout(()=>t.initializeCurrentUserFromIdToken(s).then(a,a))}):t.directlySetCurrentUser(null)}const r=yield t.assertedPersistence.getCurrentUser();let i=r,o=!1;if(e&&t.config.authDomain){yield t.getOrInitRedirectPersistenceManager();const s=t.redirectUser?._redirectEventId,a=i?._redirectEventId,c=yield t.tryRedirectSignIn(e);(!s||s===a)&&c?.user&&(i=c.user,o=!0)}if(!i)return t.directlySetCurrentUser(null);if(!i._redirectEventId){if(o)try{yield t.beforeStateQueue.runMiddleware(i)}catch(s){i=r,t._popupRedirectResolver._overrideRedirectResult(t,()=>Promise.reject(s))}return i?t.reloadAndSetCurrentUserOrClear(i):t.directlySetCurrentUser(null)}return Ye(t._popupRedirectResolver,t,"argument-error"),yield t.getOrInitRedirectPersistenceManager(),t.redirectUser&&t.redirectUser._redirectEventId===i._redirectEventId?t.directlySetCurrentUser(i):t.reloadAndSetCurrentUserOrClear(i)})()}tryRedirectSignIn(e){var t=this;return(0,g.A)(function*(){let r=null;try{r=yield t._popupRedirectResolver._completeRedirectFn(t,e,!0)}catch{yield t._setRedirectUser(null)}return r})()}reloadAndSetCurrentUserOrClear(e){var t=this;return(0,g.A)(function*(){try{yield ou(e)}catch(r){if("auth/network-request-failed"!==r?.code)return t.directlySetCurrentUser(null)}return t.directlySetCurrentUser(e)})()}useDeviceLanguage(){this.languageCode=function Z2(){if(typeof navigator>"u")return null;const n=navigator;return n.languages&&n.languages[0]||n.language||null}()}_delete(){var e=this;return(0,g.A)(function*(){e._deleted=!0})()}updateCurrentUser(e){var t=this;return(0,g.A)(function*(){if((0,j.xZ)(t.app))return Promise.reject(fr(t));const r=e?(0,oe.Ku)(e):null;return r&&Ye(r.auth.config.apiKey===t.config.apiKey,t,"invalid-user-token"),t._updateCurrentUser(r&&r._clone(t))})()}_updateCurrentUser(e){var t=this;return(0,g.A)(function*(r,i=!1){if(!t._deleted)return r&&Ye(t.tenantId===r.tenantId,t,"tenant-id-mismatch"),i||(yield t.beforeStateQueue.runMiddleware(r)),t.queue((0,g.A)(function*(){yield t.directlySetCurrentUser(r),t.notifyAuthListeners()}))}).apply(this,arguments)}signOut(){var e=this;return(0,g.A)(function*(){return(0,j.xZ)(e.app)?Promise.reject(fr(e)):(yield e.beforeStateQueue.runMiddleware(null),(e.redirectPersistenceManager||e._popupRedirectResolver)&&(yield e._setRedirectUser(null)),e._updateCurrentUser(null,!0))})()}setPersistence(e){var t=this;return(0,j.xZ)(this.app)?Promise.reject(fr(this)):this.queue((0,g.A)(function*(){yield t.assertedPersistence.setPersistence(bo(e))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(e){var t=this;return(0,g.A)(function*(){t._getPasswordPolicyInternal()||(yield t._updatePasswordPolicy());const r=t._getPasswordPolicyInternal();return r.schemaVersion!==t.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(t._errorFactory.create("unsupported-password-policy-schema-version",{})):r.validatePassword(e)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var e=this;return(0,g.A)(function*(){const t=yield function u4(n){return Qg.apply(this,arguments)}(e),r=new d4(t);null===e.tenantId?e._projectPasswordPolicy=r:e._tenantPasswordPolicies[e.tenantId]=r})()}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new oe.FA("auth","Firebase",e())}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},t)}})}revokeAccessToken(e){var t=this;return(0,g.A)(function*(){if(t.currentUser){const r=yield t.currentUser.getIdToken(),i={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:r};null!=t.tenantId&&(i.tenantId=t.tenantId),yield function o4(n,e){return Wg.apply(this,arguments)}(t,i)}})()}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}_setRedirectUser(e,t){var r=this;return(0,g.A)(function*(){const i=yield r.getOrInitRedirectPersistenceManager(t);return null===e?i.removeCurrentUser():i.setCurrentUser(e)})()}getOrInitRedirectPersistenceManager(e){var t=this;return(0,g.A)(function*(){if(!t.redirectPersistenceManager){const r=e&&bo(e)||t._popupRedirectResolver;Ye(r,t,"argument-error"),t.redirectPersistenceManager=yield Oa.create(t,[bo(r._redirectPersistence)],"redirectUser"),t.redirectUser=yield t.redirectPersistenceManager.getCurrentUser()}return t.redirectPersistenceManager})()}_redirectUserForId(e){var t=this;return(0,g.A)(function*(){return t._isInitialized&&(yield t.queue((0,g.A)(function*(){}))),t._currentUser?._redirectEventId===e?t._currentUser:t.redirectUser?._redirectEventId===e?t.redirectUser:null})()}_persistUserIfCurrent(e){var t=this;return(0,g.A)(function*(){if(e===t.currentUser)return t.queue((0,g.A)(function*(){return t.directlySetCurrentUser(e)}))})()}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const e=this.currentUser?.uid??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,r,i){if(this._deleted)return()=>{};const o="function"==typeof t?t:t.next.bind(t);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ye(a,this,"internal-error"),a.then(()=>{s||o(this.currentUser)}),"function"==typeof t){const c=e.addObserver(t,r,i);return()=>{s=!0,c()}}{const c=e.addObserver(t);return()=>{s=!0,c()}}}directlySetCurrentUser(e){var t=this;return(0,g.A)(function*(){t.currentUser&&t.currentUser!==e&&t._currentUser._stopProactiveRefresh(),e&&t.isProactiveRefreshEnabled&&e._startProactiveRefresh(),t.currentUser=e,e?yield t.assertedPersistence.setCurrentUser(e):yield t.assertedPersistence.removeCurrentUser()})()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Ye(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=iS(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var e=this;return(0,g.A)(function*(){const t={"X-Client-Version":e.clientVersion};e.app.options.appId&&(t["X-Firebase-gmpid"]=e.app.options.appId);const r=yield e.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader();r&&(t["X-Firebase-Client"]=r);const i=yield e._getAppCheckToken();return i&&(t["X-Firebase-AppCheck"]=i),t})()}_getAppCheckToken(){var e=this;return(0,g.A)(function*(){if((0,j.xZ)(e.app)&&e.app.settings.appCheckToken)return e.app.settings.appCheckToken;const t=yield e.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return t?.error&&function F2(n,...e){_d.logLevel<=H.$b.WARN&&_d.warn(`Auth (${j.MF}): ${n}`,...e)}(`Error while retrieving App Check token: ${t.error}`),t?.token})()}}class oS{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,oe.tD)(t=>this.observer=t)}get next(){return Ye(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let su={loadJS:()=>(0,g.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};(function sS(n){return`__${n}${Math.floor(1e6*Math.random())}`})("rcb"),new nu(3e4,6e4),new nu(2e3,1e4),new nu(3e4,6e4),new nu(5e3,15e3),encodeURIComponent("fac");var Xt,n,zS="@firebase/auth";class pU{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}getToken(e){var t=this;return(0,g.A)(function*(){return t.assertAuthConfigured(),yield t.auth._initializationPromise,t.auth.currentUser?{accessToken:yield t.auth.currentUser.getIdToken(e)}:null})()}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged(r=>{e(r?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){Ye(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}(0,oe.XA)("authIdTokenMaxAge"),function p4(n){su=n}({loadJS:n=>new Promise((e,t)=>{const r=document.createElement("script");r.setAttribute("src",n),r.onload=e,r.onerror=i=>{const o=bi("internal-error");o.customData=i,t(o)},r.type="text/javascript",r.charset="UTF-8",function yU(){return document.getElementsByTagName("head")?.[0]??document}().appendChild(r)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function mU(n){(0,j.om)(new z.uA("auth",(e,{options:t})=>{const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;Ye(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});const c={apiKey:s,authDomain:a,clientPlatform:n,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:iS(n)},u=new h4(r,i,o,c);return function k4(n,e){const t=e?.persistence||[],r=(Array.isArray(t)?t:[t]).map(bo);e?.errorMap&&n._updateErrorMap(e.errorMap),n._initializeWithPersistence(r,e?.popupRedirectResolver)}(u,t),u},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,r)=>{e.getProvider("auth-internal").initialize()})),(0,j.om)(new z.uA("auth-internal",e=>{const t=function Xn(n){return(0,oe.Ku)(n)}(e.getProvider("auth").getImmediate());return new pU(t)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,j.KO)(zS,"1.11.1",function fU(n){switch(n){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(n)),(0,j.KO)(zS,"1.11.1","esm2020")}("Browser"),R(6218),(n=Xt||(Xt={})).assertEqual=i=>{},n.assertIs=function e(i){},n.assertNever=function t(i){throw new Error},n.arrayToEnum=i=>{const o={};for(const s of i)o[s]=s;return o},n.getValidEnumValues=i=>{const o=n.objectKeys(i).filter(a=>"number"!=typeof i[i[a]]),s={};for(const a of o)s[a]=i[a];return n.objectValues(s)},n.objectValues=i=>n.objectKeys(i).map(function(o){return i[o]}),n.objectKeys="function"==typeof Object.keys?i=>Object.keys(i):i=>{const o=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&o.push(s);return o},n.find=(i,o)=>{for(const s of i)if(o(s))return s},n.isInteger="function"==typeof Number.isInteger?i=>Number.isInteger(i):i=>"number"==typeof i&&Number.isFinite(i)&&Math.floor(i)===i,n.joinValues=function r(i,o=" | "){return i.map(s=>"string"==typeof s?`'${s}'`:s).join(o)},n.jsonStringifyReplacer=(i,o)=>"bigint"==typeof o?o.toString():o,Xt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Xt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Object.freeze({status:"aborted"});new RegExp("^((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))$");const JU=Object.freeze({status:"aborted"});function we(n,e,t){function r(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(n))return;a._zod.traits.add(n),e(a,c);const u=s.prototype,d=Object.keys(u);for(let h=0;h<d.length;h++){const f=d[h];f in a||(a[f]=u[f].bind(a))}}const i=t?.Parent??Object;class o extends i{}function s(a){var c;const u=t?.Parent?new o:this;r(u,a),(c=u._zod).deferred??(c.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(o,"name",{value:n}),Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>!!(t?.Parent&&a instanceof t.Parent)||a?._zod?.traits?.has(n)}),Object.defineProperty(s,"name",{value:n}),s}class ja extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ky extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const Qy={};function Ti(n){return n&&Object.assign(Qy,n),Qy}function pk(n){const e=Object.values(n).filter(r=>"number"==typeof r);return Object.entries(n).filter(([r,i])=>-1===e.indexOf(+r)).map(([r,i])=>i)}function fk(n,e="|"){return n.map(t=>vk(t)).join(e)}function Jy(n,e){return"bigint"==typeof e?e.toString():e}function Ld(n){return{get value(){{const t=n();return Object.defineProperty(this,"value",{value:t}),t}}}}function Va(n){return null==n}function Xy(n){const e=n.startsWith("^")?1:0,t=n.endsWith("$")?n.length-1:n.length;return n.slice(e,t)}const mk=Symbol("evaluating");function Gt(n,e,t){let r;Object.defineProperty(n,e,{get(){if(r!==mk)return void 0===r&&(r=mk,r=t()),r},set(i){Object.defineProperty(n,e,{value:i})},configurable:!0})}function Ls(n,e,t){Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}function So(...n){const e={};for(const t of n){const r=Object.getOwnPropertyDescriptors(t);Object.assign(e,r)}return Object.defineProperties({},e)}function gk(n){return JSON.stringify(n)}const _k="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function Tu(n){return"object"==typeof n&&null!==n&&!Array.isArray(n)}const eL=Ld(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function za(n){if(!1===Tu(n))return!1;const e=n.constructor;if(void 0===e||"function"!=typeof e)return!0;const t=e.prototype;return!(!1===Tu(t)||!1===Object.prototype.hasOwnProperty.call(t,"isPrototypeOf"))}function yk(n){return za(n)?{...n}:Array.isArray(n)?[...n]:n}const Yy=new Set(["string","number","symbol"]),tL=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ns(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ko(n,e,t){const r=new n._zod.constr(e??n._zod.def);return(!e||t?.parent)&&(r._zod.parent=n),r}function Be(n){const e=n;if(!e)return{};if("string"==typeof e)return{error:()=>e};if(void 0!==e?.message){if(void 0!==e?.error)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,"string"==typeof e.error?{...e,error:()=>e.error}:e}function vk(n){return"bigint"==typeof n?n.toString()+"n":"string"==typeof n?`"${n}"`:`${n}`}const rL={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},iL={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Fa(n,e=0){if(!0===n.aborted)return!0;for(let t=e;t<n.issues.length;t++)if(!0!==n.issues[t]?.continue)return!0;return!1}function to(n,e){return e.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(n),t})}function jd(n){return"string"==typeof n?n:n?.message}function Mi(n,e,t){const r={...n,path:n.path??[]};if(!n.message){const i=jd(n.inst?._zod.def?.error?.(n))??jd(e?.error?.(n))??jd(t.customError?.(n))??jd(t.localeError?.(n))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,e?.reportInput||delete r.input,r}function ev(n){return n instanceof Set?"set":n instanceof Map?"map":n instanceof File?"file":"unknown"}function tv(n){return Array.isArray(n)?"array":"string"==typeof n?"string":"unknown"}function Eu(...n){const[e,t,r]=n;return"string"==typeof e?{message:e,code:"custom",input:t,inst:r}:{...e}}const wk=(n,e)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:e,enumerable:!1}),n.message=JSON.stringify(e,Jy,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},bk=we("$ZodError",wk),Ei=we("$ZodError",wk,{Parent:Error}),Vd=n=>(e,t,r,i)=>{const o=r?Object.assign(r,{async:!1}):{async:!1},s=e._zod.run({value:t,issues:[]},o);if(s instanceof Promise)throw new ja;if(s.issues.length){const a=new(i?.Err??n)(s.issues.map(c=>Mi(c,o,Ti())));throw _k(a,i?.callee),a}return s.value},Ik=Vd(Ei),zd=n=>function(){var e=(0,g.A)(function*(t,r,i,o){const s=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=yield a),a.issues.length){const c=new(o?.Err??n)(a.issues.map(u=>Mi(u,s,Ti())));throw _k(c,o?.callee),c}return a.value});return function(t,r,i,o){return e.apply(this,arguments)}}(),Tk=zd(Ei),Fd=n=>(e,t,r)=>{const i=r?{...r,async:!1}:{async:!1},o=e._zod.run({value:t,issues:[]},i);if(o instanceof Promise)throw new ja;return o.issues.length?{success:!1,error:new(n??bk)(o.issues.map(s=>Mi(s,i,Ti())))}:{success:!0,data:o.value}},Ek=Fd(Ei),qd=n=>function(){var e=(0,g.A)(function*(t,r,i){const o=i?Object.assign(i,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},o);return s instanceof Promise&&(s=yield s),s.issues.length?{success:!1,error:new n(s.issues.map(a=>Mi(a,o,Ti())))}:{success:!0,data:s.value}});return function(t,r,i){return e.apply(this,arguments)}}(),yL=qd(Ei),Sk=n=>(e,t,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Vd(n)(e,t,i)},kk=n=>(e,t,r)=>Vd(n)(e,t,r),Ak=n=>function(){var e=(0,g.A)(function*(t,r,i){const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return zd(n)(t,r,o)});return function(t,r,i){return e.apply(this,arguments)}}(),Pk=n=>function(){var e=(0,g.A)(function*(t,r,i){return zd(n)(t,r,i)});return function(t,r,i){return e.apply(this,arguments)}}(),Rk=n=>(e,t,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Fd(n)(e,t,i)},$k=n=>(e,t,r)=>Fd(n)(e,t,r),xk=n=>function(){var e=(0,g.A)(function*(t,r,i){const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return qd(n)(t,r,o)});return function(t,r,i){return e.apply(this,arguments)}}(),Ck=n=>function(){var e=(0,g.A)(function*(t,r,i){return qd(n)(t,r,i)});return function(t,r,i){return e.apply(this,arguments)}}(),Dk=/^[cC][^\s-]{8,}$/,Ok=/^[0-9a-z]+$/,Nk=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Mk=/^[0-9a-vA-V]{20}$/,Uk=/^[A-Za-z0-9]{27}$/,Lk=/^[a-zA-Z0-9_-]{21}$/,jk=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vL=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Vk=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qa=n=>n?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${n}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,wL=qa(4),bL=qa(6),IL=qa(7),zk=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,TL=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,EL=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Fk=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,SL=Fk,kL=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function qk(){return new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}const Zk=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Bk=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Gk=n=>{const e=ns(n??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},Hk=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Wk=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Kk=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,nv=/^[A-Za-z0-9_-]*$/,Qk=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Jk=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Xk=/^\+[1-9]\d{6,14}$/,Yk="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",eA=new RegExp(`^${Yk}$`);function tA(n){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof n.precision?-1===n.precision?`${e}`:0===n.precision?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${n.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function nA(n){return new RegExp(`^${tA(n)}$`)}function rA(n){const e=tA({precision:n.precision}),t=["Z"];n.local&&t.push(""),n.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${e}(?:${t.join("|")})`;return new RegExp(`^${Yk}T(?:${r})$`)}const iA=n=>new RegExp(`^${n?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*"}$`),oA=/^-?\d+n?$/,sA=/^-?\d+$/,rv=/^-?\d+(?:\.\d+)?$/,aA=/^(?:true|false)$/i,cA=/^null$/i,uA=/^undefined$/i,lA=/^[^A-Z]*$/,dA=/^[^a-z]*$/,hA=/^[0-9a-fA-F]*$/;function Su(n,e){return new RegExp(`^[A-Za-z0-9+/]{${n}}${e}$`)}function ku(n){return new RegExp(`^[A-Za-z0-9_-]{${n}}$`)}const PL=/^[0-9a-fA-F]{32}$/,RL=Su(22,"=="),$L=ku(22),xL=/^[0-9a-fA-F]{40}$/,CL=Su(27,"="),DL=ku(27),OL=/^[0-9a-fA-F]{64}$/,NL=Su(43,"="),ML=ku(43),UL=/^[0-9a-fA-F]{96}$/,LL=Su(64,""),jL=ku(64),VL=/^[0-9a-fA-F]{128}$/,zL=Su(86,"=="),FL=ku(86),Fn=we("$ZodCheck",(n,e)=>{var t;n._zod??(n._zod={}),n._zod.def=e,(t=n._zod).onattach??(t.onattach=[])}),pA={number:"number",bigint:"bigint",object:"date"},fA=we("$ZodCheckLessThan",(n,e)=>{Fn.init(n,e);const t=pA[typeof e.value];n._zod.onattach.push(r=>{const i=r._zod.bag;e.value<((e.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY)&&(e.inclusive?i.maximum=e.value:i.exclusiveMaximum=e.value)}),n._zod.check=r=>{(e.inclusive?r.value<=e.value:r.value<e.value)||r.issues.push({origin:t,code:"too_big",maximum:"object"==typeof e.value?e.value.getTime():e.value,input:r.value,inclusive:e.inclusive,inst:n,continue:!e.abort})}}),mA=we("$ZodCheckGreaterThan",(n,e)=>{Fn.init(n,e);const t=pA[typeof e.value];n._zod.onattach.push(r=>{const i=r._zod.bag;e.value>((e.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY)&&(e.inclusive?i.minimum=e.value:i.exclusiveMinimum=e.value)}),n._zod.check=r=>{(e.inclusive?r.value>=e.value:r.value>e.value)||r.issues.push({origin:t,code:"too_small",minimum:"object"==typeof e.value?e.value.getTime():e.value,input:r.value,inclusive:e.inclusive,inst:n,continue:!e.abort})}}),qL=we("$ZodCheckMultipleOf",(n,e)=>{Fn.init(n,e),n._zod.onattach.push(t=>{var r;(r=t._zod.bag).multipleOf??(r.multipleOf=e.value)}),n._zod.check=t=>{if(typeof t.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof t.value?t.value%e.value===BigInt(0):0===function XU(n,e){const t=(n.toString().split(".")[1]||"").length,r=e.toString();let i=(r.split(".")[1]||"").length;if(0===i&&/\d?e-\d?/.test(r)){const c=r.match(/\d?e-(\d?)/);c?.[1]&&(i=Number.parseInt(c[1]))}const o=t>i?t:i;return Number.parseInt(n.toFixed(o).replace(".",""))%Number.parseInt(e.toFixed(o).replace(".",""))/10**o}(t.value,e.value))||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:e.value,input:t.value,inst:n,continue:!e.abort})}}),ZL=we("$ZodCheckNumberFormat",(n,e)=>{Fn.init(n,e),e.format=e.format||"float64";const t=e.format?.includes("int"),r=t?"int":"number",[i,o]=rL[e.format];n._zod.onattach.push(s=>{const a=s._zod.bag;a.format=e.format,a.minimum=i,a.maximum=o,t&&(a.pattern=sA)}),n._zod.check=s=>{const a=s.value;if(t){if(!Number.isInteger(a))return void s.issues.push({expected:r,format:e.format,code:"invalid_type",continue:!1,input:a,inst:n});if(!Number.isSafeInteger(a))return void s.issues.push(a>0?{input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:r,inclusive:!0,continue:!e.abort}:{input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:r,inclusive:!0,continue:!e.abort})}a<i&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:i,inclusive:!0,inst:n,continue:!e.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inclusive:!0,inst:n,continue:!e.abort})}}),BL=we("$ZodCheckBigIntFormat",(n,e)=>{Fn.init(n,e);const[t,r]=iL[e.format];n._zod.onattach.push(i=>{const o=i._zod.bag;o.format=e.format,o.minimum=t,o.maximum=r}),n._zod.check=i=>{const o=i.value;o<t&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:t,inclusive:!0,inst:n,continue:!e.abort}),o>r&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:r,inclusive:!0,inst:n,continue:!e.abort})}}),GL=we("$ZodCheckMaxSize",(n,e)=>{var t;Fn.init(n,e),(t=n._zod.def).when??(t.when=r=>{const i=r.value;return!Va(i)&&void 0!==i.size}),n._zod.onattach.push(r=>{e.maximum<(r._zod.bag.maximum??Number.POSITIVE_INFINITY)&&(r._zod.bag.maximum=e.maximum)}),n._zod.check=r=>{const i=r.value;i.size<=e.maximum||r.issues.push({origin:ev(i),code:"too_big",maximum:e.maximum,inclusive:!0,input:i,inst:n,continue:!e.abort})}}),HL=we("$ZodCheckMinSize",(n,e)=>{var t;Fn.init(n,e),(t=n._zod.def).when??(t.when=r=>{const i=r.value;return!Va(i)&&void 0!==i.size}),n._zod.onattach.push(r=>{e.minimum>(r._zod.bag.minimum??Number.NEGATIVE_INFINITY)&&(r._zod.bag.minimum=e.minimum)}),n._zod.check=r=>{const i=r.value;i.size>=e.minimum||r.issues.push({origin:ev(i),code:"too_small",minimum:e.minimum,inclusive:!0,input:i,inst:n,continue:!e.abort})}}),WL=we("$ZodCheckSizeEquals",(n,e)=>{var t;Fn.init(n,e),(t=n._zod.def).when??(t.when=r=>{const i=r.value;return!Va(i)&&void 0!==i.size}),n._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=e.size,i.maximum=e.size,i.size=e.size}),n._zod.check=r=>{const i=r.value,o=i.size;if(o===e.size)return;const s=o>e.size;r.issues.push({origin:ev(i),...s?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:r.value,inst:n,continue:!e.abort})}}),KL=we("$ZodCheckMaxLength",(n,e)=>{var t;Fn.init(n,e),(t=n._zod.def).when??(t.when=r=>{const i=r.value;return!Va(i)&&void 0!==i.length}),n._zod.onattach.push(r=>{e.maximum<(r._zod.bag.maximum??Number.POSITIVE_INFINITY)&&(r._zod.bag.maximum=e.maximum)}),n._zod.check=r=>{const i=r.value;if(i.length<=e.maximum)return;const s=tv(i);r.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:i,inst:n,continue:!e.abort})}}),QL=we("$ZodCheckMinLength",(n,e)=>{var t;Fn.init(n,e),(t=n._zod.def).when??(t.when=r=>{const i=r.value;return!Va(i)&&void 0!==i.length}),n._zod.onattach.push(r=>{e.minimum>(r._zod.bag.minimum??Number.NEGATIVE_INFINITY)&&(r._zod.bag.minimum=e.minimum)}),n._zod.check=r=>{const i=r.value;if(i.length>=e.minimum)return;const s=tv(i);r.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:i,inst:n,continue:!e.abort})}}),JL=we("$ZodCheckLengthEquals",(n,e)=>{var t;Fn.init(n,e),(t=n._zod.def).when??(t.when=r=>{const i=r.value;return!Va(i)&&void 0!==i.length}),n._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=e.length,i.maximum=e.length,i.length=e.length}),n._zod.check=r=>{const i=r.value,o=i.length;if(o===e.length)return;const s=tv(i);r.issues.push({origin:s,...o>e.length?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:r.value,inst:n,continue:!e.abort})}}),Zd=we("$ZodCheckStringFormat",(n,e)=>{var t,r;Fn.init(n,e),n._zod.onattach.push(i=>{const o=i._zod.bag;o.format=e.format,e.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(e.pattern))}),e.pattern?(t=n._zod).check??(t.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:e.format,input:i.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:n,continue:!e.abort})}):(r=n._zod).check??(r.check=()=>{})}),XL=we("$ZodCheckRegex",(n,e)=>{Zd.init(n,e),n._zod.check=t=>{e.pattern.lastIndex=0,!e.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:e.pattern.toString(),inst:n,continue:!e.abort})}}),YL=we("$ZodCheckLowerCase",(n,e)=>{e.pattern??(e.pattern=lA),Zd.init(n,e)}),ej=we("$ZodCheckUpperCase",(n,e)=>{e.pattern??(e.pattern=dA),Zd.init(n,e)}),tj=we("$ZodCheckIncludes",(n,e)=>{Fn.init(n,e);const t=ns(e.includes),r=new RegExp("number"==typeof e.position?`^.{${e.position}}${t}`:t);e.pattern=r,n._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),n._zod.check=i=>{i.value.includes(e.includes,e.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:i.value,inst:n,continue:!e.abort})}}),nj=we("$ZodCheckStartsWith",(n,e)=>{Fn.init(n,e);const t=new RegExp(`^${ns(e.prefix)}.*`);e.pattern??(e.pattern=t),n._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),n._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:n,continue:!e.abort})}}),rj=we("$ZodCheckEndsWith",(n,e)=>{Fn.init(n,e);const t=new RegExp(`.*${ns(e.suffix)}$`);e.pattern??(e.pattern=t),n._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),n._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:n,continue:!e.abort})}});function gA(n,e,t){n.issues.length&&e.issues.push(...to(t,n.issues))}const ij=we("$ZodCheckProperty",(n,e)=>{Fn.init(n,e),n._zod.check=t=>{const r=e.schema._zod.run({value:t.value[e.property],issues:[]},{});if(r instanceof Promise)return r.then(i=>gA(i,t,e.property));gA(r,t,e.property)}}),oj=we("$ZodCheckMimeType",(n,e)=>{Fn.init(n,e);const t=new Set(e.mime);n._zod.onattach.push(r=>{r._zod.bag.mime=e.mime}),n._zod.check=r=>{t.has(r.value.type)||r.issues.push({code:"invalid_value",values:e.mime,input:r.value.type,inst:n,continue:!e.abort})}}),sj=we("$ZodCheckOverwrite",(n,e)=>{Fn.init(n,e),n._zod.check=t=>{t.value=e.tx(t.value)}});class aj{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const r=e.split("\n").filter(s=>s),i=Math.min(...r.map(s=>s.length-s.trimStart().length)),o=r.map(s=>s.slice(i)).map(s=>" ".repeat(2*this.indent)+s);for(const s of o)this.content.push(s)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map(o=>` ${o}`)].join("\n"))}}const cj={major:4,minor:3,patch:6},jt=we("$ZodType",(n,e)=>{var t;n??(n={}),n._zod.def=e,n._zod.bag=n._zod.bag||{},n._zod.version=cj;const r=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&r.unshift(n);for(const i of r)for(const o of i._zod.onattach)o(n);if(0===r.length)(t=n._zod).deferred??(t.deferred=[]),n._zod.deferred?.push(()=>{n._zod.run=n._zod.parse});else{const i=(s,a,c)=>{let d,u=Fa(s);for(const h of a){if(h._zod.def.when){if(!h._zod.def.when(s))continue}else if(u)continue;const f=s.issues.length,E=h._zod.check(s);if(E instanceof Promise&&!1===c?.async)throw new ja;if(d||E instanceof Promise)d=(d??Promise.resolve()).then((0,g.A)(function*(){yield E,s.issues.length!==f&&(u||(u=Fa(s,f)))}));else{if(s.issues.length===f)continue;u||(u=Fa(s,f))}}return d?d.then(()=>s):s},o=(s,a,c)=>{if(Fa(s))return s.aborted=!0,s;const u=i(a,r,c);if(u instanceof Promise){if(!1===c.async)throw new ja;return u.then(d=>n._zod.parse(d,c))}return n._zod.parse(u,c)};n._zod.run=(s,a)=>{if(a.skipChecks)return n._zod.parse(s,a);if("backward"===a.direction){const u=n._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(d=>o(d,s,a)):o(u,s,a)}const c=n._zod.parse(s,a);if(c instanceof Promise){if(!1===a.async)throw new ja;return c.then(u=>i(u,r,a))}return i(c,r,a)}}Gt(n,"~standard",()=>({validate:i=>{try{const o=Ek(n,i);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return yL(n,i).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Bd=we("$ZodString",(n,e)=>{jt.init(n,e),n._zod.pattern=[...n?._zod.bag?.patterns??[]].pop()??iA(n._zod.bag),n._zod.parse=(t,r)=>{if(e.coerce)try{t.value=String(t.value)}catch{}return"string"==typeof t.value||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:n}),t}}),vn=we("$ZodStringFormat",(n,e)=>{Zd.init(n,e),Bd.init(n,e)}),uj=we("$ZodGUID",(n,e)=>{e.pattern??(e.pattern=Vk),vn.init(n,e)}),lj=we("$ZodUUID",(n,e)=>{if(e.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(void 0===r)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=qa(r))}else e.pattern??(e.pattern=qa());vn.init(n,e)}),dj=we("$ZodEmail",(n,e)=>{e.pattern??(e.pattern=zk),vn.init(n,e)}),hj=we("$ZodURL",(n,e)=>{vn.init(n,e),n._zod.check=t=>{try{const r=t.value.trim(),i=new URL(r);return e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(i.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:t.value,inst:n,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:t.value,inst:n,continue:!e.abort})),void(t.value=e.normalize?i.href:r)}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:n,continue:!e.abort})}}}),pj=we("$ZodEmoji",(n,e)=>{e.pattern??(e.pattern=qk()),vn.init(n,e)}),fj=we("$ZodNanoID",(n,e)=>{e.pattern??(e.pattern=Lk),vn.init(n,e)}),mj=we("$ZodCUID",(n,e)=>{e.pattern??(e.pattern=Dk),vn.init(n,e)}),gj=we("$ZodCUID2",(n,e)=>{e.pattern??(e.pattern=Ok),vn.init(n,e)}),_j=we("$ZodULID",(n,e)=>{e.pattern??(e.pattern=Nk),vn.init(n,e)}),yj=we("$ZodXID",(n,e)=>{e.pattern??(e.pattern=Mk),vn.init(n,e)}),vj=we("$ZodKSUID",(n,e)=>{e.pattern??(e.pattern=Uk),vn.init(n,e)}),wj=we("$ZodISODateTime",(n,e)=>{e.pattern??(e.pattern=rA(e)),vn.init(n,e)}),bj=we("$ZodISODate",(n,e)=>{e.pattern??(e.pattern=eA),vn.init(n,e)}),Ij=we("$ZodISOTime",(n,e)=>{e.pattern??(e.pattern=nA(e)),vn.init(n,e)}),Tj=we("$ZodISODuration",(n,e)=>{e.pattern??(e.pattern=jk),vn.init(n,e)}),Ej=we("$ZodIPv4",(n,e)=>{e.pattern??(e.pattern=Zk),vn.init(n,e),n._zod.bag.format="ipv4"}),Sj=we("$ZodIPv6",(n,e)=>{e.pattern??(e.pattern=Bk),vn.init(n,e),n._zod.bag.format="ipv6",n._zod.check=t=>{try{new URL(`http://[${t.value}]`)}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:n,continue:!e.abort})}}}),kj=we("$ZodMAC",(n,e)=>{e.pattern??(e.pattern=Gk(e.delimiter)),vn.init(n,e),n._zod.bag.format="mac"}),Aj=we("$ZodCIDRv4",(n,e)=>{e.pattern??(e.pattern=Hk),vn.init(n,e)}),Pj=we("$ZodCIDRv6",(n,e)=>{e.pattern??(e.pattern=Wk),vn.init(n,e),n._zod.check=t=>{const r=t.value.split("/");try{if(2!==r.length)throw new Error;const[i,o]=r;if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${i}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:n,continue:!e.abort})}}});function _A(n){if(""===n)return!0;if(n.length%4!=0)return!1;try{return atob(n),!0}catch{return!1}}const Rj=we("$ZodBase64",(n,e)=>{e.pattern??(e.pattern=Kk),vn.init(n,e),n._zod.bag.contentEncoding="base64",n._zod.check=t=>{_A(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:n,continue:!e.abort})}}),xj=we("$ZodBase64URL",(n,e)=>{e.pattern??(e.pattern=nv),vn.init(n,e),n._zod.bag.contentEncoding="base64url",n._zod.check=t=>{(function $j(n){if(!nv.test(n))return!1;const e=n.replace(/[-_]/g,r=>"-"===r?"+":"/");return _A(e.padEnd(4*Math.ceil(e.length/4),"="))})(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:n,continue:!e.abort})}}),Cj=we("$ZodE164",(n,e)=>{e.pattern??(e.pattern=Xk),vn.init(n,e)}),Oj=we("$ZodJWT",(n,e)=>{vn.init(n,e),n._zod.check=t=>{(function Dj(n,e=null){try{const t=n.split(".");if(3!==t.length)return!1;const[r]=t;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&"JWT"!==i?.typ||!i.alg||e&&(!("alg"in i)||i.alg!==e))}catch{return!1}})(t.value,e.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:n,continue:!e.abort})}}),Nj=we("$ZodCustomStringFormat",(n,e)=>{vn.init(n,e),n._zod.check=t=>{e.fn(t.value)||t.issues.push({code:"invalid_format",format:e.format,input:t.value,inst:n,continue:!e.abort})}}),yA=we("$ZodNumber",(n,e)=>{jt.init(n,e),n._zod.pattern=n._zod.bag.pattern??rv,n._zod.parse=(t,r)=>{if(e.coerce)try{t.value=Number(t.value)}catch{}const i=t.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return t;const o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:i,inst:n,...o?{received:o}:{}}),t}}),Mj=we("$ZodNumberFormat",(n,e)=>{ZL.init(n,e),yA.init(n,e)}),vA=we("$ZodBoolean",(n,e)=>{jt.init(n,e),n._zod.pattern=aA,n._zod.parse=(t,r)=>{if(e.coerce)try{t.value=!!t.value}catch{}const i=t.value;return"boolean"==typeof i||t.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:n}),t}}),wA=we("$ZodBigInt",(n,e)=>{jt.init(n,e),n._zod.pattern=oA,n._zod.parse=(t,r)=>{if(e.coerce)try{t.value=BigInt(t.value)}catch{}return"bigint"==typeof t.value||t.issues.push({expected:"bigint",code:"invalid_type",input:t.value,inst:n}),t}}),Uj=we("$ZodBigIntFormat",(n,e)=>{BL.init(n,e),wA.init(n,e)}),Lj=we("$ZodSymbol",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>{const i=t.value;return"symbol"==typeof i||t.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:n}),t}}),jj=we("$ZodUndefined",(n,e)=>{jt.init(n,e),n._zod.pattern=uA,n._zod.values=new Set([void 0]),n._zod.optin="optional",n._zod.optout="optional",n._zod.parse=(t,r)=>{const i=t.value;return typeof i>"u"||t.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:n}),t}}),Vj=we("$ZodNull",(n,e)=>{jt.init(n,e),n._zod.pattern=cA,n._zod.values=new Set([null]),n._zod.parse=(t,r)=>{const i=t.value;return null===i||t.issues.push({expected:"null",code:"invalid_type",input:i,inst:n}),t}}),zj=we("$ZodAny",(n,e)=>{jt.init(n,e),n._zod.parse=t=>t}),Fj=we("$ZodUnknown",(n,e)=>{jt.init(n,e),n._zod.parse=t=>t}),qj=we("$ZodNever",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:n}),t)}),Zj=we("$ZodVoid",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>{const i=t.value;return typeof i>"u"||t.issues.push({expected:"void",code:"invalid_type",input:i,inst:n}),t}}),Bj=we("$ZodDate",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>{if(e.coerce)try{t.value=new Date(t.value)}catch{}const i=t.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||t.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:n}),t}});function bA(n,e,t){n.issues.length&&e.issues.push(...to(t,n.issues)),e.value[t]=n.value}const Gj=we("$ZodArray",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>{const i=t.value;if(!Array.isArray(i))return t.issues.push({expected:"array",code:"invalid_type",input:i,inst:n}),t;t.value=Array(i.length);const o=[];for(let s=0;s<i.length;s++){const c=e.element._zod.run({value:i[s],issues:[]},r);c instanceof Promise?o.push(c.then(u=>bA(u,t,s))):bA(c,t,s)}return o.length?Promise.all(o).then(()=>t):t}});function Gd(n,e,t,r,i){if(n.issues.length){if(i&&!(t in r))return;e.issues.push(...to(t,n.issues))}void 0===n.value?t in r&&(e.value[t]=void 0):e.value[t]=n.value}function IA(n){const e=Object.keys(n.shape);for(const r of e)if(!n.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const t=function nL(n){return Object.keys(n).filter(e=>"optional"===n[e]._zod.optin&&"optional"===n[e]._zod.optout)}(n.shape);return{...n,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(t)}}function TA(n,e,t,r,i,o){const s=[],a=i.keySet,c=i.catchall._zod,u=c.def.type,d="optional"===c.optout;for(const h in e){if(a.has(h))continue;if("never"===u){s.push(h);continue}const f=c.run({value:e[h],issues:[]},r);f instanceof Promise?n.push(f.then(E=>Gd(E,t,h,e,d))):Gd(f,t,h,e,d)}return s.length&&t.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:o}),n.length?Promise.all(n).then(()=>t):t}const Hj=we("$ZodObject",(n,e)=>{if(jt.init(n,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){const a=e.shape;Object.defineProperty(e,"shape",{get:()=>{const c={...a};return Object.defineProperty(e,"shape",{value:c}),c}})}const r=Ld(()=>IA(e));Gt(n._zod,"propValues",()=>{const a=e.shape,c={};for(const u in a){const d=a[u]._zod;if(d.values){c[u]??(c[u]=new Set);for(const h of d.values)c[u].add(h)}}return c});const i=Tu,o=e.catchall;let s;n._zod.parse=(a,c)=>{s??(s=r.value);const u=a.value;if(!i(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:n}),a;a.value={};const d=[],h=s.shape;for(const f of s.keys){const E=h[f],q="optional"===E._zod.optout,Q=E._zod.run({value:u[f],issues:[]},c);Q instanceof Promise?d.push(Q.then(de=>Gd(de,a,f,u,q))):Gd(Q,a,f,u,q)}return o?TA(d,u,a,c,r.value,n):d.length?Promise.all(d).then(()=>a):a}}),Wj=we("$ZodObjectJIT",(n,e)=>{Hj.init(n,e);const t=n._zod.parse,r=Ld(()=>IA(e));let o;const s=Tu,a=!Qy.jitless,u=a&&eL.value,d=e.catchall;let h;n._zod.parse=(f,E)=>{h??(h=r.value);const q=f.value;return s(q)?a&&u&&!1===E?.async&&!0!==E.jitless?(o||(o=(f=>{const E=new aj(["shape","payload","ctx"]),q=r.value,Q=De=>{const et=gk(De);return`shape[${et}]._zod.run({ value: input[${et}], issues: [] }, ctx)`};E.write("const input = payload.value;");const de=Object.create(null);let $e=0;for(const De of q.keys)de[De]="key_"+$e++;E.write("const newResult = {};");for(const De of q.keys){const et=de[De],gt=gk(De),le="optional"===f[De]?._zod?.optout;E.write(`const ${et} = ${Q(De)};`),E.write(le?`\n if (${et}.issues.length) {\n if (${gt} in input) {\n payload.issues = payload.issues.concat(${et}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${gt}, ...iss.path] : [${gt}]\n })));\n }\n }\n \n if (${et}.value === undefined) {\n if (${gt} in input) {\n newResult[${gt}] = undefined;\n }\n } else {\n newResult[${gt}] = ${et}.value;\n }\n \n `:`\n if (${et}.issues.length) {\n payload.issues = payload.issues.concat(${et}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${gt}, ...iss.path] : [${gt}]\n })));\n }\n \n if (${et}.value === undefined) {\n if (${gt} in input) {\n newResult[${gt}] = undefined;\n }\n } else {\n newResult[${gt}] = ${et}.value;\n }\n \n `)}E.write("payload.value = newResult;"),E.write("return payload;");const je=E.compile();return(De,et)=>je(f,De,et)})(e.shape)),f=o(f,E),d?TA([],q,f,E,h,n):f):t(f,E):(f.issues.push({expected:"object",code:"invalid_type",input:q,inst:n}),f)}});function EA(n,e,t,r){for(const o of n)if(0===o.issues.length)return e.value=o.value,e;const i=n.filter(o=>!Fa(o));return 1===i.length?(e.value=i[0].value,i[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:t,errors:n.map(o=>o.issues.map(s=>Mi(s,r,Ti())))}),e)}const iv=we("$ZodUnion",(n,e)=>{jt.init(n,e),Gt(n._zod,"optin",()=>e.options.some(i=>"optional"===i._zod.optin)?"optional":void 0),Gt(n._zod,"optout",()=>e.options.some(i=>"optional"===i._zod.optout)?"optional":void 0),Gt(n._zod,"values",()=>{if(e.options.every(i=>i._zod.values))return new Set(e.options.flatMap(i=>Array.from(i._zod.values)))}),Gt(n._zod,"pattern",()=>{if(e.options.every(i=>i._zod.pattern)){const i=e.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Xy(o.source)).join("|")})$`)}});const t=1===e.options.length,r=e.options[0]._zod.run;n._zod.parse=(i,o)=>{if(t)return r(i,o);let s=!1;const a=[];for(const c of e.options){const u=c._zod.run({value:i.value,issues:[]},o);if(u instanceof Promise)a.push(u),s=!0;else{if(0===u.issues.length)return u;a.push(u)}}return s?Promise.all(a).then(c=>EA(c,i,n,o)):EA(a,i,n,o)}});function SA(n,e,t,r){const i=n.filter(o=>0===o.issues.length);return 1===i.length?(e.value=i[0].value,e):(e.issues.push(0===i.length?{code:"invalid_union",input:e.value,inst:t,errors:n.map(o=>o.issues.map(s=>Mi(s,r,Ti())))}:{code:"invalid_union",input:e.value,inst:t,errors:[],inclusive:!1}),e)}const Kj=we("$ZodXor",(n,e)=>{iv.init(n,e),e.inclusive=!1;const t=1===e.options.length,r=e.options[0]._zod.run;n._zod.parse=(i,o)=>{if(t)return r(i,o);let s=!1;const a=[];for(const c of e.options){const u=c._zod.run({value:i.value,issues:[]},o);u instanceof Promise?(a.push(u),s=!0):a.push(u)}return s?Promise.all(a).then(c=>SA(c,i,n,o)):SA(a,i,n,o)}}),Qj=we("$ZodDiscriminatedUnion",(n,e)=>{e.inclusive=!1,iv.init(n,e);const t=n._zod.parse;Gt(n._zod,"propValues",()=>{const i={};for(const o of e.options){const s=o._zod.propValues;if(!s||0===Object.keys(s).length)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(const[a,c]of Object.entries(s)){i[a]||(i[a]=new Set);for(const u of c)i[a].add(u)}}return i});const r=Ld(()=>{const i=e.options,o=new Map;for(const s of i){const a=s._zod.propValues?.[e.discriminator];if(!a||0===a.size)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(const c of a){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,s)}}return o});n._zod.parse=(i,o)=>{const s=i.value;if(!Tu(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:n}),i;const a=r.value.get(s?.[e.discriminator]);return a?a._zod.run(i,o):e.unionFallback?t(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:n}),i)}}),Jj=we("$ZodIntersection",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>{const i=t.value,o=e.left._zod.run({value:i,issues:[]},r),s=e.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([c,u])=>kA(t,c,u)):kA(t,o,s)}});function ov(n,e){if(n===e)return{valid:!0,data:n};if(n instanceof Date&&e instanceof Date&&+n==+e)return{valid:!0,data:n};if(za(n)&&za(e)){const t=Object.keys(e),r=Object.keys(n).filter(o=>-1!==t.indexOf(o)),i={...n,...e};for(const o of r){const s=ov(n[o],e[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let r=0;r<n.length;r++){const s=ov(n[r],e[r]);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};t.push(s.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function kA(n,e,t){const r=new Map;let i;for(const a of e.issues)if("unrecognized_keys"===a.code){i??(i=a);for(const c of a.keys)r.has(c)||r.set(c,{}),r.get(c).l=!0}else n.issues.push(a);for(const a of t.issues)if("unrecognized_keys"===a.code)for(const c of a.keys)r.has(c)||r.set(c,{}),r.get(c).r=!0;else n.issues.push(a);const o=[...r].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(o.length&&i&&n.issues.push({...i,keys:o}),Fa(n))return n;const s=ov(e.value,t.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return n.value=s.data,n}const AA=we("$ZodTuple",(n,e)=>{jt.init(n,e);const t=e.items;n._zod.parse=(r,i)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({input:o,inst:n,expected:"tuple",code:"invalid_type"}),r;r.value=[];const s=[],a=[...t].reverse().findIndex(d=>"optional"!==d._zod.optin),c=-1===a?0:t.length-a;if(!e.rest){const d=o.length>t.length;if(d||o.length<c-1)return r.issues.push({...d?{code:"too_big",maximum:t.length,inclusive:!0}:{code:"too_small",minimum:t.length},input:o,inst:n,origin:"array"}),r}let u=-1;for(const d of t){if(u++,u>=o.length&&u>=c)continue;const h=d._zod.run({value:o[u],issues:[]},i);h instanceof Promise?s.push(h.then(f=>Hd(f,r,u))):Hd(h,r,u)}if(e.rest){const d=o.slice(t.length);for(const h of d){u++;const f=e.rest._zod.run({value:h,issues:[]},i);f instanceof Promise?s.push(f.then(E=>Hd(E,r,u))):Hd(f,r,u)}}return s.length?Promise.all(s).then(()=>r):r}});function Hd(n,e,t){n.issues.length&&e.issues.push(...to(t,n.issues)),e.value[t]=n.value}const Xj=we("$ZodRecord",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>{const i=t.value;if(!za(i))return t.issues.push({expected:"record",code:"invalid_type",input:i,inst:n}),t;const o=[],s=e.keyType._zod.values;if(s){t.value={};const a=new Set;for(const u of s)if("string"==typeof u||"number"==typeof u||"symbol"==typeof u){a.add("number"==typeof u?u.toString():u);const d=e.valueType._zod.run({value:i[u],issues:[]},r);d instanceof Promise?o.push(d.then(h=>{h.issues.length&&t.issues.push(...to(u,h.issues)),t.value[u]=h.value})):(d.issues.length&&t.issues.push(...to(u,d.issues)),t.value[u]=d.value)}let c;for(const u in i)a.has(u)||(c=c??[],c.push(u));c&&c.length>0&&t.issues.push({code:"unrecognized_keys",input:i,inst:n,keys:c})}else{t.value={};for(const a of Reflect.ownKeys(i)){if("__proto__"===a)continue;let c=e.keyType._zod.run({value:a,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if("string"==typeof a&&rv.test(a)&&c.issues.length){const h=e.keyType._zod.run({value:Number(a),issues:[]},r);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");0===h.issues.length&&(c=h)}if(c.issues.length){"loose"===e.mode?t.value[a]=i[a]:t.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>Mi(h,r,Ti())),input:a,path:[a],inst:n});continue}const d=e.valueType._zod.run({value:i[a],issues:[]},r);d instanceof Promise?o.push(d.then(h=>{h.issues.length&&t.issues.push(...to(a,h.issues)),t.value[c.value]=h.value})):(d.issues.length&&t.issues.push(...to(a,d.issues)),t.value[c.value]=d.value)}}return o.length?Promise.all(o).then(()=>t):t}}),Yj=we("$ZodMap",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>{const i=t.value;if(!(i instanceof Map))return t.issues.push({expected:"map",code:"invalid_type",input:i,inst:n}),t;const o=[];t.value=new Map;for(const[s,a]of i){const c=e.keyType._zod.run({value:s,issues:[]},r),u=e.valueType._zod.run({value:a,issues:[]},r);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([d,h])=>{PA(d,h,t,s,i,n,r)})):PA(c,u,t,s,i,n,r)}return o.length?Promise.all(o).then(()=>t):t}});function PA(n,e,t,r,i,o,s){n.issues.length&&(Yy.has(typeof r)?t.issues.push(...to(r,n.issues)):t.issues.push({code:"invalid_key",origin:"map",input:i,inst:o,issues:n.issues.map(a=>Mi(a,s,Ti()))})),e.issues.length&&(Yy.has(typeof r)?t.issues.push(...to(r,e.issues)):t.issues.push({origin:"map",code:"invalid_element",input:i,inst:o,key:r,issues:e.issues.map(a=>Mi(a,s,Ti()))})),t.value.set(n.value,e.value)}const eV=we("$ZodSet",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>{const i=t.value;if(!(i instanceof Set))return t.issues.push({input:i,inst:n,expected:"set",code:"invalid_type"}),t;const o=[];t.value=new Set;for(const s of i){const a=e.valueType._zod.run({value:s,issues:[]},r);a instanceof Promise?o.push(a.then(c=>RA(c,t))):RA(a,t)}return o.length?Promise.all(o).then(()=>t):t}});function RA(n,e){n.issues.length&&e.issues.push(...n.issues),e.value.add(n.value)}const tV=we("$ZodEnum",(n,e)=>{jt.init(n,e);const t=pk(e.entries),r=new Set(t);n._zod.values=r,n._zod.pattern=new RegExp(`^(${t.filter(i=>Yy.has(typeof i)).map(i=>"string"==typeof i?ns(i):i.toString()).join("|")})$`),n._zod.parse=(i,o)=>{const s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:t,input:s,inst:n}),i}}),nV=we("$ZodLiteral",(n,e)=>{if(jt.init(n,e),0===e.values.length)throw new Error("Cannot create literal schema with no valid values");const t=new Set(e.values);n._zod.values=t,n._zod.pattern=new RegExp(`^(${e.values.map(r=>"string"==typeof r?ns(r):r?ns(r.toString()):String(r)).join("|")})$`),n._zod.parse=(r,i)=>{const o=r.value;return t.has(o)||r.issues.push({code:"invalid_value",values:e.values,input:o,inst:n}),r}}),rV=we("$ZodFile",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>{const i=t.value;return i instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:i,inst:n}),t}}),iV=we("$ZodTransform",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>{if("backward"===r.direction)throw new Ky(n.constructor.name);const i=e.transform(t.value,t);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(s=>(t.value=s,t));if(i instanceof Promise)throw new ja;return t.value=i,t}});function $A(n,e){return n.issues.length&&void 0===e?{issues:[],value:void 0}:n}const xA=we("$ZodOptional",(n,e)=>{jt.init(n,e),n._zod.optin="optional",n._zod.optout="optional",Gt(n._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Gt(n._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${Xy(t.source)})?$`):void 0}),n._zod.parse=(t,r)=>{if("optional"===e.innerType._zod.optin){const i=e.innerType._zod.run(t,r);return i instanceof Promise?i.then(o=>$A(o,t.value)):$A(i,t.value)}return void 0===t.value?t:e.innerType._zod.run(t,r)}}),oV=we("$ZodExactOptional",(n,e)=>{xA.init(n,e),Gt(n._zod,"values",()=>e.innerType._zod.values),Gt(n._zod,"pattern",()=>e.innerType._zod.pattern),n._zod.parse=(t,r)=>e.innerType._zod.run(t,r)}),sV=we("$ZodNullable",(n,e)=>{jt.init(n,e),Gt(n._zod,"optin",()=>e.innerType._zod.optin),Gt(n._zod,"optout",()=>e.innerType._zod.optout),Gt(n._zod,"pattern",()=>{const t=e.innerType._zod.pattern;return t?new RegExp(`^(${Xy(t.source)}|null)$`):void 0}),Gt(n._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),n._zod.parse=(t,r)=>null===t.value?t:e.innerType._zod.run(t,r)}),aV=we("$ZodDefault",(n,e)=>{jt.init(n,e),n._zod.optin="optional",Gt(n._zod,"values",()=>e.innerType._zod.values),n._zod.parse=(t,r)=>{if("backward"===r.direction)return e.innerType._zod.run(t,r);if(void 0===t.value)return t.value=e.defaultValue,t;const i=e.innerType._zod.run(t,r);return i instanceof Promise?i.then(o=>CA(o,e)):CA(i,e)}});function CA(n,e){return void 0===n.value&&(n.value=e.defaultValue),n}const cV=we("$ZodPrefault",(n,e)=>{jt.init(n,e),n._zod.optin="optional",Gt(n._zod,"values",()=>e.innerType._zod.values),n._zod.parse=(t,r)=>("backward"===r.direction||void 0===t.value&&(t.value=e.defaultValue),e.innerType._zod.run(t,r))}),uV=we("$ZodNonOptional",(n,e)=>{jt.init(n,e),Gt(n._zod,"values",()=>{const t=e.innerType._zod.values;return t?new Set([...t].filter(r=>void 0!==r)):void 0}),n._zod.parse=(t,r)=>{const i=e.innerType._zod.run(t,r);return i instanceof Promise?i.then(o=>DA(o,n)):DA(i,n)}});function DA(n,e){return!n.issues.length&&void 0===n.value&&n.issues.push({code:"invalid_type",expected:"nonoptional",input:n.value,inst:e}),n}const lV=we("$ZodSuccess",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>{if("backward"===r.direction)throw new Ky("ZodSuccess");const i=e.innerType._zod.run(t,r);return i instanceof Promise?i.then(o=>(t.value=0===o.issues.length,t)):(t.value=0===i.issues.length,t)}}),dV=we("$ZodCatch",(n,e)=>{jt.init(n,e),Gt(n._zod,"optin",()=>e.innerType._zod.optin),Gt(n._zod,"optout",()=>e.innerType._zod.optout),Gt(n._zod,"values",()=>e.innerType._zod.values),n._zod.parse=(t,r)=>{if("backward"===r.direction)return e.innerType._zod.run(t,r);const i=e.innerType._zod.run(t,r);return i instanceof Promise?i.then(o=>(t.value=o.value,o.issues.length&&(t.value=e.catchValue({...t,error:{issues:o.issues.map(s=>Mi(s,r,Ti()))},input:t.value}),t.issues=[]),t)):(t.value=i.value,i.issues.length&&(t.value=e.catchValue({...t,error:{issues:i.issues.map(o=>Mi(o,r,Ti()))},input:t.value}),t.issues=[]),t)}}),hV=we("$ZodNaN",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>(("number"!=typeof t.value||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:n,expected:"nan",code:"invalid_type"}),t)}),pV=we("$ZodPipe",(n,e)=>{jt.init(n,e),Gt(n._zod,"values",()=>e.in._zod.values),Gt(n._zod,"optin",()=>e.in._zod.optin),Gt(n._zod,"optout",()=>e.out._zod.optout),Gt(n._zod,"propValues",()=>e.in._zod.propValues),n._zod.parse=(t,r)=>{if("backward"===r.direction){const o=e.out._zod.run(t,r);return o instanceof Promise?o.then(s=>Wd(s,e.in,r)):Wd(o,e.in,r)}const i=e.in._zod.run(t,r);return i instanceof Promise?i.then(o=>Wd(o,e.out,r)):Wd(i,e.out,r)}});function Wd(n,e,t){return n.issues.length?(n.aborted=!0,n):e._zod.run({value:n.value,issues:n.issues},t)}const OA=we("$ZodCodec",(n,e)=>{jt.init(n,e),Gt(n._zod,"values",()=>e.in._zod.values),Gt(n._zod,"optin",()=>e.in._zod.optin),Gt(n._zod,"optout",()=>e.out._zod.optout),Gt(n._zod,"propValues",()=>e.in._zod.propValues),n._zod.parse=(t,r)=>{if("forward"===(r.direction||"forward")){const o=e.in._zod.run(t,r);return o instanceof Promise?o.then(s=>Kd(s,e,r)):Kd(o,e,r)}{const o=e.out._zod.run(t,r);return o instanceof Promise?o.then(s=>Kd(s,e,r)):Kd(o,e,r)}}});function Kd(n,e,t){if(n.issues.length)return n.aborted=!0,n;if("forward"===(t.direction||"forward")){const i=e.transform(n.value,n);return i instanceof Promise?i.then(o=>Qd(n,o,e.out,t)):Qd(n,i,e.out,t)}{const i=e.reverseTransform(n.value,n);return i instanceof Promise?i.then(o=>Qd(n,o,e.in,t)):Qd(n,i,e.in,t)}}function Qd(n,e,t,r){return n.issues.length?(n.aborted=!0,n):t._zod.run({value:e,issues:n.issues},r)}const fV=we("$ZodReadonly",(n,e)=>{jt.init(n,e),Gt(n._zod,"propValues",()=>e.innerType._zod.propValues),Gt(n._zod,"values",()=>e.innerType._zod.values),Gt(n._zod,"optin",()=>e.innerType?._zod?.optin),Gt(n._zod,"optout",()=>e.innerType?._zod?.optout),n._zod.parse=(t,r)=>{if("backward"===r.direction)return e.innerType._zod.run(t,r);const i=e.innerType._zod.run(t,r);return i instanceof Promise?i.then(NA):NA(i)}});function NA(n){return n.value=Object.freeze(n.value),n}const mV=we("$ZodTemplateLiteral",(n,e)=>{jt.init(n,e);const t=[];for(const r of e.parts)if("object"==typeof r&&null!==r){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);const i=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${r._zod.traits}`);const o=i.startsWith("^")?1:0,s=i.endsWith("$")?i.length-1:i.length;t.push(i.slice(o,s))}else{if(null!==r&&!tL.has(typeof r))throw new Error(`Invalid template literal part: ${r}`);t.push(ns(`${r}`))}n._zod.pattern=new RegExp(`^${t.join("")}$`),n._zod.parse=(r,i)=>"string"!=typeof r.value?(r.issues.push({input:r.value,inst:n,expected:"string",code:"invalid_type"}),r):(n._zod.pattern.lastIndex=0,n._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:n,code:"invalid_format",format:e.format??"template_literal",pattern:n._zod.pattern.source}),r)}),gV=we("$ZodFunction",(n,e)=>(jt.init(n,e),n._def=e,n._zod.def=e,n.implement=t=>{if("function"!=typeof t)throw new Error("implement() must be called with a function");return function(...r){const i=n._def.input?Ik(n._def.input,r):r,o=Reflect.apply(t,this,i);return n._def.output?Ik(n._def.output,o):o}},n.implementAsync=t=>{if("function"!=typeof t)throw new Error("implementAsync() must be called with a function");return(0,g.A)(function*(...r){const i=n._def.input?yield Tk(n._def.input,r):r,o=yield Reflect.apply(t,this,i);return n._def.output?yield Tk(n._def.output,o):o})},n._zod.parse=(t,r)=>"function"!=typeof t.value?(t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:n}),t):(t.value=n._def.output&&"promise"===n._def.output._zod.def.type?n.implementAsync(t.value):n.implement(t.value),t),n.input=(...t)=>{const r=n.constructor;return Array.isArray(t[0])?new r({type:"function",input:new AA({type:"tuple",items:t[0],rest:t[1]}),output:n._def.output}):new r({type:"function",input:t[0],output:n._def.output})},n.output=t=>new(0,n.constructor)({type:"function",input:n._def.input,output:t}),n)),_V=we("$ZodPromise",(n,e)=>{jt.init(n,e),n._zod.parse=(t,r)=>Promise.resolve(t.value).then(i=>e.innerType._zod.run({value:i,issues:[]},r))}),yV=we("$ZodLazy",(n,e)=>{jt.init(n,e),Gt(n._zod,"innerType",()=>e.getter()),Gt(n._zod,"pattern",()=>n._zod.innerType?._zod?.pattern),Gt(n._zod,"propValues",()=>n._zod.innerType?._zod?.propValues),Gt(n._zod,"optin",()=>n._zod.innerType?._zod?.optin??void 0),Gt(n._zod,"optout",()=>n._zod.innerType?._zod?.optout??void 0),n._zod.parse=(t,r)=>n._zod.innerType._zod.run(t,r)}),vV=we("$ZodCustom",(n,e)=>{Fn.init(n,e),jt.init(n,e),n._zod.parse=(t,r)=>t,n._zod.check=t=>{const r=t.value,i=e.fn(r);if(i instanceof Promise)return i.then(o=>MA(o,t,r,n));MA(i,t,r,n)}});function MA(n,e,t,r){if(!n){const i={code:"custom",input:t,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),e.issues.push(Eu(i))}}const PV=()=>{const n={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(i){return n[i]??null}const t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{const o=r[i.expected]??i.expected,s=function hL(n){const e=typeof n;switch(e){case"number":return Number.isNaN(n)?"nan":"number";case"object":{if(null===n)return"null";if(Array.isArray(n))return"array";const t=n;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&"constructor"in t&&t.constructor)return t.constructor.name}}return e}(i.input);return`Invalid input: expected ${o}, received ${r[s]??s}`}case"invalid_value":return 1===i.values.length?`Invalid input: expected ${vk(i.values[0])}`:`Invalid option: expected one of ${fk(i.values,"|")}`;case"too_big":{const o=i.inclusive?"<=":"<",s=e(i.origin);return s?`Too big: expected ${i.origin??"value"} to have ${o}${i.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${o}${i.maximum.toString()}`}case"too_small":{const o=i.inclusive?">=":">",s=e(i.origin);return s?`Too small: expected ${i.origin} to have ${o}${i.minimum.toString()} ${s.unit}`:`Too small: expected ${i.origin} to be ${o}${i.minimum.toString()}`}case"invalid_format":return"starts_with"===i.format?`Invalid string: must start with "${i.prefix}"`:"ends_with"===i.format?`Invalid string: must end with "${i.suffix}"`:"includes"===i.format?`Invalid string: must include "${i.includes}"`:"regex"===i.format?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${t[i.format]??i.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${fk(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`}}};var zA;class gz{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const r=t[0];return this._map.set(e,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const r={...this.get(t)??{}};delete r.id;const i={...r,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}(zA=globalThis).__zod_globalRegistry??(zA.__zod_globalRegistry=function _z(){return new gz}());const Ao=globalThis.__zod_globalRegistry;function vz(n,e){return new n({type:"string",...Be(e)})}function FA(n,e){return new n({type:"string",format:"email",check:"string_format",abort:!1,...Be(e)})}function sv(n,e){return new n({type:"string",format:"guid",check:"string_format",abort:!1,...Be(e)})}function qA(n,e){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,...Be(e)})}function ZA(n,e){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Be(e)})}function BA(n,e){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Be(e)})}function GA(n,e){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Be(e)})}function av(n,e){return new n({type:"string",format:"url",check:"string_format",abort:!1,...Be(e)})}function HA(n,e){return new n({type:"string",format:"emoji",check:"string_format",abort:!1,...Be(e)})}function WA(n,e){return new n({type:"string",format:"nanoid",check:"string_format",abort:!1,...Be(e)})}function KA(n,e){return new n({type:"string",format:"cuid",check:"string_format",abort:!1,...Be(e)})}function QA(n,e){return new n({type:"string",format:"cuid2",check:"string_format",abort:!1,...Be(e)})}function JA(n,e){return new n({type:"string",format:"ulid",check:"string_format",abort:!1,...Be(e)})}function XA(n,e){return new n({type:"string",format:"xid",check:"string_format",abort:!1,...Be(e)})}function YA(n,e){return new n({type:"string",format:"ksuid",check:"string_format",abort:!1,...Be(e)})}function eP(n,e){return new n({type:"string",format:"ipv4",check:"string_format",abort:!1,...Be(e)})}function tP(n,e){return new n({type:"string",format:"ipv6",check:"string_format",abort:!1,...Be(e)})}function bz(n,e){return new n({type:"string",format:"mac",check:"string_format",abort:!1,...Be(e)})}function nP(n,e){return new n({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Be(e)})}function rP(n,e){return new n({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Be(e)})}function iP(n,e){return new n({type:"string",format:"base64",check:"string_format",abort:!1,...Be(e)})}function oP(n,e){return new n({type:"string",format:"base64url",check:"string_format",abort:!1,...Be(e)})}function sP(n,e){return new n({type:"string",format:"e164",check:"string_format",abort:!1,...Be(e)})}function aP(n,e){return new n({type:"string",format:"jwt",check:"string_format",abort:!1,...Be(e)})}function Iz(n,e){return new n({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Be(e)})}function Tz(n,e){return new n({type:"string",format:"date",check:"string_format",...Be(e)})}function Ez(n,e){return new n({type:"string",format:"time",check:"string_format",precision:null,...Be(e)})}function Sz(n,e){return new n({type:"string",format:"duration",check:"string_format",...Be(e)})}function kz(n,e){return new n({type:"number",checks:[],...Be(e)})}function Az(n,e){return new n({type:"number",coerce:!0,checks:[],...Be(e)})}function Pz(n,e){return new n({type:"number",check:"number_format",abort:!1,format:"safeint",...Be(e)})}function Rz(n,e){return new n({type:"number",check:"number_format",abort:!1,format:"float32",...Be(e)})}function $z(n,e){return new n({type:"number",check:"number_format",abort:!1,format:"float64",...Be(e)})}function xz(n,e){return new n({type:"number",check:"number_format",abort:!1,format:"int32",...Be(e)})}function Cz(n,e){return new n({type:"number",check:"number_format",abort:!1,format:"uint32",...Be(e)})}function Dz(n,e){return new n({type:"boolean",...Be(e)})}function Nz(n,e){return new n({type:"bigint",...Be(e)})}function Uz(n,e){return new n({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Be(e)})}function Lz(n,e){return new n({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Be(e)})}function jz(n,e){return new n({type:"symbol",...Be(e)})}function Vz(n,e){return new n({type:"undefined",...Be(e)})}function zz(n,e){return new n({type:"null",...Be(e)})}function Fz(n){return new n({type:"any"})}function qz(n){return new n({type:"unknown"})}function Zz(n,e){return new n({type:"never",...Be(e)})}function Bz(n,e){return new n({type:"void",...Be(e)})}function Gz(n,e){return new n({type:"date",...Be(e)})}function Wz(n,e){return new n({type:"nan",...Be(e)})}function Ba(n,e){return new fA({check:"less_than",...Be(e),value:n,inclusive:!1})}function Po(n,e){return new fA({check:"less_than",...Be(e),value:n,inclusive:!0})}function Ga(n,e){return new mA({check:"greater_than",...Be(e),value:n,inclusive:!1})}function Ui(n,e){return new mA({check:"greater_than",...Be(e),value:n,inclusive:!0})}function Kz(n){return Ga(0,n)}function Qz(n){return Ba(0,n)}function Jz(n){return Po(0,n)}function Xz(n){return Ui(0,n)}function qh(n,e){return new qL({check:"multiple_of",...Be(e),value:n})}function Zh(n,e){return new GL({check:"max_size",...Be(e),maximum:n})}function Ha(n,e){return new HL({check:"min_size",...Be(e),minimum:n})}function cv(n,e){return new WL({check:"size_equals",...Be(e),size:n})}function uv(n,e){return new KL({check:"max_length",...Be(e),maximum:n})}function Pu(n,e){return new QL({check:"min_length",...Be(e),minimum:n})}function lv(n,e){return new JL({check:"length_equals",...Be(e),length:n})}function cP(n,e){return new XL({check:"string_format",format:"regex",...Be(e),pattern:n})}function uP(n){return new YL({check:"string_format",format:"lowercase",...Be(n)})}function lP(n){return new ej({check:"string_format",format:"uppercase",...Be(n)})}function dP(n,e){return new tj({check:"string_format",format:"includes",...Be(e),includes:n})}function hP(n,e){return new nj({check:"string_format",format:"starts_with",...Be(e),prefix:n})}function pP(n,e){return new rj({check:"string_format",format:"ends_with",...Be(e),suffix:n})}function Yz(n,e,t){return new ij({check:"property",property:n,schema:e,...Be(t)})}function fP(n,e){return new oj({check:"mime_type",mime:n,...Be(e)})}function js(n){return new sj({check:"overwrite",tx:n})}function mP(n){return js(e=>e.normalize(n))}function gP(){return js(n=>n.trim())}function _P(){return js(n=>n.toLowerCase())}function yP(){return js(n=>n.toUpperCase())}function vP(){return js(n=>function YU(n){return n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}(n))}function e6(n,e,t){return new n({type:"array",element:e,...Be(t)})}function t6(n,e){return new n({type:"file",...Be(e)})}function n6(n,e,t){const r=Be(t);return r.abort??(r.abort=!0),new n({type:"custom",check:"custom",fn:e,...r})}function r6(n,e,t){return new n({type:"custom",check:"custom",fn:e,...Be(t)})}function i6(n){const e=o6(t=>(t.addIssue=r=>{if("string"==typeof r)t.issues.push(Eu(r,t.value,e._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=t.value),i.inst??(i.inst=e),i.continue??(i.continue=!e._zod.def.abort),t.issues.push(Eu(i))}},n(t.value,t)));return e}function o6(n,e){const t=new Fn({check:"custom",...Be(e)});return t._zod.check=n,t}function s6(n,e){const t=Be(e);let r=t.truthy??["true","1","yes","on","y","enabled"],i=t.falsy??["false","0","no","off","n","disabled"];"sensitive"!==t.case&&(r=r.map(E=>"string"==typeof E?E.toLowerCase():E),i=i.map(E=>"string"==typeof E?E.toLowerCase():E));const o=new Set(r),s=new Set(i),c=n.Boolean??vA,f=new(n.Codec??OA)({type:"pipe",in:new(n.String??Bd)({type:"string",error:t.error}),out:new c({type:"boolean",error:t.error}),transform:(E,q)=>{let Q=E;return"sensitive"!==t.case&&(Q=Q.toLowerCase()),!!o.has(Q)||!s.has(Q)&&(q.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:q.value,inst:f,continue:!1}),{})},reverseTransform:(E,q)=>!0===E?r[0]||"true":i[0]||"false",error:t.error});return f}function Bh(n,e,t,r={}){const i=Be(r),o={...Be(r),check:"string_format",type:"string",format:e,fn:"function"==typeof t?t:a=>t.test(a),...i};return t instanceof RegExp&&(o.pattern=t),new n(o)}function IP(n){let e=n?.target??"draft-2020-12";return"draft-4"===e&&(e="draft-04"),"draft-7"===e&&(e="draft-07"),{processors:n.processors??{},metadataRegistry:n?.metadata??Ao,target:e,unrepresentable:n?.unrepresentable??"throw",override:n?.override??(()=>{}),io:n?.io??"output",counter:0,seen:new Map,cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0}}function On(n,e,t={path:[],schemaPath:[]}){var r;const i=n._zod.def,o=e.seen.get(n);if(o)return o.count++,t.schemaPath.includes(n)&&(o.cycle=t.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:t.path};e.seen.set(n,s);const a=n._zod.toJSONSchema?.();if(a)s.schema=a;else{const d={...t,schemaPath:[...t.schemaPath,n],path:t.path};if(n._zod.processJSONSchema)n._zod.processJSONSchema(e,s.schema,d);else{const f=s.schema,E=e.processors[i.type];if(!E)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);E(n,e,f,d)}const h=n._zod.parent;h&&(s.ref||(s.ref=h),On(h,e,d),e.seen.get(h).isParent=!0)}const c=e.metadataRegistry.get(n);return c&&Object.assign(s.schema,c),"input"===e.io&&Zr(n)&&(delete s.schema.examples,delete s.schema.default),"input"===e.io&&s.schema._prefault&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(n).schema}function TP(n,e){const t=n.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const s of n.seen.entries()){const a=n.metadataRegistry.get(s[0])?.id;if(a){const c=r.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(a,s[0])}}const o=s=>{if(s[1].schema.$ref)return;const a=s[1],{ref:c,defId:u}=(s=>{const a="draft-2020-12"===n.target?"$defs":"definitions";if(n.external){const h=n.external.registry.get(s[0])?.id,f=n.external.uri??(q=>q);if(h)return{ref:f(h)};const E=s[1].defId??s[1].schema.id??"schema"+n.counter++;return s[1].defId=E,{defId:E,ref:`${f("__shared")}#/${a}/${E}`}}if(s[1]===t)return{ref:"#"};const u=`#/${a}/`,d=s[1].schema.id??"__schema"+n.counter++;return{defId:d,ref:u+d}})(s);a.def={...a.schema},u&&(a.defId=u);const d=a.schema;for(const h in d)delete d[h];d.$ref=c};if("throw"===n.cycles)for(const s of n.seen.entries()){const a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>\n\nSet the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of n.seen.entries()){const a=s[1];if(e!==s[0]){if(n.external){const u=n.external.registry.get(s[0])?.id;if(e!==s[0]&&u){o(s);continue}}(n.metadataRegistry.get(s[0])?.id||a.cycle||a.count>1&&"ref"===n.reused)&&o(s)}else o(s)}}function EP(n,e){const t=n.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=s=>{const a=n.seen.get(s);if(null===a.ref)return;const c=a.def??a.schema,u={...c},d=a.ref;if(a.ref=null,d){r(d);const f=n.seen.get(d),E=f.schema;if(!E.$ref||"draft-07"!==n.target&&"draft-04"!==n.target&&"openapi-3.0"!==n.target?Object.assign(c,E):(c.allOf=c.allOf??[],c.allOf.push(E)),Object.assign(c,u),s._zod.parent===d)for(const Q in c)"$ref"===Q||"allOf"===Q||Q in u||delete c[Q];if(E.$ref&&f.def)for(const Q in c)"$ref"===Q||"allOf"===Q||Q in f.def&&JSON.stringify(c[Q])===JSON.stringify(f.def[Q])&&delete c[Q]}const h=s._zod.parent;if(h&&h!==d){r(h);const f=n.seen.get(h);if(f?.schema.$ref&&(c.$ref=f.schema.$ref,f.def))for(const E in c)"$ref"===E||"allOf"===E||E in f.def&&JSON.stringify(c[E])===JSON.stringify(f.def[E])&&delete c[E]}n.override({zodSchema:s,jsonSchema:c,path:a.path??[]})};for(const s of[...n.seen.entries()].reverse())r(s[0]);const i={};if("draft-2020-12"===n.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===n.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===n.target&&(i.$schema="http://json-schema.org/draft-04/schema#"),n.external?.uri){const s=n.external.registry.get(e)?.id;if(!s)throw new Error("Schema is missing an `id` property");i.$id=n.external.uri(s)}Object.assign(i,t.def??t.schema);const o=n.external?.defs??{};for(const s of n.seen.entries()){const a=s[1];a.def&&a.defId&&(o[a.defId]=a.def)}n.external||Object.keys(o).length>0&&("draft-2020-12"===n.target?i.$defs=o:i.definitions=o);try{const s=JSON.parse(JSON.stringify(i));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:Gh(e,"input",n.processors),output:Gh(e,"output",n.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Zr(n,e){const t=e??{seen:new Set};if(t.seen.has(n))return!1;t.seen.add(n);const r=n._zod.def;if("transform"===r.type)return!0;if("array"===r.type)return Zr(r.element,t);if("set"===r.type)return Zr(r.valueType,t);if("lazy"===r.type)return Zr(r.getter(),t);if("promise"===r.type||"optional"===r.type||"nonoptional"===r.type||"nullable"===r.type||"readonly"===r.type||"default"===r.type||"prefault"===r.type)return Zr(r.innerType,t);if("intersection"===r.type)return Zr(r.left,t)||Zr(r.right,t);if("record"===r.type||"map"===r.type)return Zr(r.keyType,t)||Zr(r.valueType,t);if("pipe"===r.type)return Zr(r.in,t)||Zr(r.out,t);if("object"===r.type){for(const i in r.shape)if(Zr(r.shape[i],t))return!0;return!1}if("union"===r.type){for(const i of r.options)if(Zr(i,t))return!0;return!1}if("tuple"===r.type){for(const i of r.items)if(Zr(i,t))return!0;return!(!r.rest||!Zr(r.rest,t))}return!1}const Gh=(n,e,t={})=>r=>{const{libraryOptions:i,target:o}=r??{},s=IP({...i??{},target:o,io:e,processors:t});return On(n,s),TP(s,n),EP(s,n)},c6={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},dv=(n,e,t,r)=>{const i=n._zod.def,o=!1===i.inclusive,s=i.options.map((a,c)=>On(a,e,{...r,path:[...r.path,o?"oneOf":"anyOf",c]}));o?t.oneOf=s:t.anyOf=s},hv=(n,e,t,r)=>{const i=n._zod.def;On(i.innerType,e,r),e.seen.get(n).ref=i.innerType},SR=we("ZodISODateTime",(n,e)=>{wj.init(n,e),wn.init(n,e)});function yv(n){return Iz(SR,n)}const kR=we("ZodISODate",(n,e)=>{bj.init(n,e),wn.init(n,e)});function AR(n){return Tz(kR,n)}const PR=we("ZodISOTime",(n,e)=>{Ij.init(n,e),wn.init(n,e)});function RR(n){return Ez(PR,n)}const $R=we("ZodISODuration",(n,e)=>{Tj.init(n,e),wn.init(n,e)});function xR(n){return Sz($R,n)}const CR=(n,e)=>{bk.init(n,e),n.name="ZodError",Object.defineProperties(n,{format:{value:t=>function gL(n,e=t=>t.message){const t={_errors:[]},r=i=>{for(const o of i.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(s=>r({issues:s}));else if("invalid_key"===o.code)r({issues:o.issues});else if("invalid_element"===o.code)r({issues:o.issues});else if(0===o.path.length)t._errors.push(e(o));else{let s=t,a=0;for(;a<o.path.length;){const c=o.path[a];a===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(e(o))):s[c]=s[c]||{_errors:[]},s=s[c],a++}}};return r(n),t}(n,t)},flatten:{value:t=>function mL(n,e=t=>t.message){const t={},r=[];for(const i of n.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):r.push(e(i));return{formErrors:r,fieldErrors:t}}(n,t)},addIssue:{value:t=>{n.issues.push(t),n.message=JSON.stringify(n.issues,Jy,2)}},addIssues:{value:t=>{n.issues.push(...t),n.message=JSON.stringify(n.issues,Jy,2)}},isEmpty:{get:()=>0===n.issues.length}})},Si=(we("ZodError",CR),we("ZodError",CR,{Parent:Error})),CF=Vd(Si),DF=zd(Si),OF=Fd(Si),NF=qd(Si),MF=Sk(Si),UF=kk(Si),LF=Ak(Si),jF=Pk(Si),VF=Rk(Si),zF=$k(Si),FF=xk(Si),qF=Ck(Si),Ft=we("ZodType",(n,e)=>(jt.init(n,e),Object.assign(n["~standard"],{jsonSchema:{input:Gh(n,"input"),output:Gh(n,"output")}}),n.toJSONSchema=((n,e={})=>t=>{const r=IP({...t,processors:e});return On(n,r),TP(r,n),EP(r,n)})(n,{}),n.def=e,n.type=e.type,Object.defineProperty(n,"_def",{value:e}),n.check=(...t)=>n.clone(So(e,{checks:[...e.checks??[],...t.map(r=>"function"==typeof r?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),n.with=n.check,n.clone=(t,r)=>ko(n,t,r),n.brand=()=>n,n.register=(t,r)=>(t.add(n,r),n),n.parse=(t,r)=>CF(n,t,r,{callee:n.parse}),n.safeParse=(t,r)=>OF(n,t,r),n.parseAsync=function(){var t=(0,g.A)(function*(r,i){return DF(n,r,i,{callee:n.parseAsync})});return function(r,i){return t.apply(this,arguments)}}(),n.safeParseAsync=function(){var t=(0,g.A)(function*(r,i){return NF(n,r,i)});return function(r,i){return t.apply(this,arguments)}}(),n.spa=n.safeParseAsync,n.encode=(t,r)=>MF(n,t,r),n.decode=(t,r)=>UF(n,t,r),n.encodeAsync=function(){var t=(0,g.A)(function*(r,i){return LF(n,r,i)});return function(r,i){return t.apply(this,arguments)}}(),n.decodeAsync=function(){var t=(0,g.A)(function*(r,i){return jF(n,r,i)});return function(r,i){return t.apply(this,arguments)}}(),n.safeEncode=(t,r)=>VF(n,t,r),n.safeDecode=(t,r)=>zF(n,t,r),n.safeEncodeAsync=function(){var t=(0,g.A)(function*(r,i){return FF(n,r,i)});return function(r,i){return t.apply(this,arguments)}}(),n.safeDecodeAsync=function(){var t=(0,g.A)(function*(r,i){return qF(n,r,i)});return function(r,i){return t.apply(this,arguments)}}(),n.refine=(t,r)=>n.check(b1(t,r)),n.superRefine=t=>n.check(I1(t)),n.overwrite=t=>n.check(js(t)),n.optional=()=>Nn(n),n.exactOptional=()=>t1(n),n.nullable=()=>ap(n),n.nullish=()=>Nn(ap(n)),n.nonoptional=t=>a1(n,t),n.array=()=>it(n),n.or=t=>mn([n,t]),n.and=t=>op(n,t),n.transform=t=>cp(n,zv(t)),n.default=t=>i1(n,t),n.prefault=t=>s1(n,t),n.catch=t=>l1(n,t),n.pipe=t=>cp(n,t),n.readonly=()=>p1(n),n.describe=t=>{const r=n.clone();return Ao.add(r,{description:t}),r},Object.defineProperty(n,"description",{get:()=>Ao.get(n)?.description,configurable:!0}),n.meta=(...t)=>{if(0===t.length)return Ao.get(n);const r=n.clone();return Ao.add(r,t[0]),r},n.isOptional=()=>n.safeParse(void 0).success,n.isNullable=()=>n.safeParse(null).success,n.apply=t=>t(n),n)),vv=we("_ZodString",(n,e)=>{Bd.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(r,i,o)=>((n,e,t)=>{const i=t;i.type="string";const{minimum:o,maximum:s,format:a,patterns:c,contentEncoding:u}=n._zod.bag;if("number"==typeof o&&(i.minLength=o),"number"==typeof s&&(i.maxLength=s),a&&(i.format=c6[a]??a,""===i.format&&delete i.format,"time"===a&&delete i.format),u&&(i.contentEncoding=u),c&&c.size>0){const d=[...c];1===d.length?i.pattern=d[0].source:d.length>1&&(i.allOf=[...d.map(h=>({..."draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target?{type:"string"}:{},pattern:h.source}))])}})(n,r,i);const t=n._zod.bag;n.format=t.format??null,n.minLength=t.minimum??null,n.maxLength=t.maximum??null,n.regex=(...r)=>n.check(cP(...r)),n.includes=(...r)=>n.check(dP(...r)),n.startsWith=(...r)=>n.check(hP(...r)),n.endsWith=(...r)=>n.check(pP(...r)),n.min=(...r)=>n.check(Pu(...r)),n.max=(...r)=>n.check(uv(...r)),n.length=(...r)=>n.check(lv(...r)),n.nonempty=(...r)=>n.check(Pu(1,...r)),n.lowercase=r=>n.check(uP(r)),n.uppercase=r=>n.check(lP(r)),n.trim=()=>n.check(gP()),n.normalize=(...r)=>n.check(mP(...r)),n.toLowerCase=()=>n.check(_P()),n.toUpperCase=()=>n.check(yP()),n.slugify=()=>n.check(vP())}),Qh=we("ZodString",(n,e)=>{Bd.init(n,e),vv.init(n,e),n.email=t=>n.check(FA(wv,t)),n.url=t=>n.check(av(Xh,t)),n.jwt=t=>n.check(aP(Nv,t)),n.emoji=t=>n.check(HA(bv,t)),n.guid=t=>n.check(sv(Jh,t)),n.uuid=t=>n.check(qA($o,t)),n.uuidv4=t=>n.check(ZA($o,t)),n.uuidv6=t=>n.check(BA($o,t)),n.uuidv7=t=>n.check(GA($o,t)),n.nanoid=t=>n.check(WA(Iv,t)),n.guid=t=>n.check(sv(Jh,t)),n.cuid=t=>n.check(KA(Tv,t)),n.cuid2=t=>n.check(QA(Ev,t)),n.ulid=t=>n.check(JA(Sv,t)),n.base64=t=>n.check(iP(Cv,t)),n.base64url=t=>n.check(oP(Dv,t)),n.xid=t=>n.check(XA(kv,t)),n.ksuid=t=>n.check(YA(Av,t)),n.ipv4=t=>n.check(eP(Pv,t)),n.ipv6=t=>n.check(tP(Rv,t)),n.cidrv4=t=>n.check(nP($v,t)),n.cidrv6=t=>n.check(rP(xv,t)),n.e164=t=>n.check(sP(Ov,t)),n.datetime=t=>n.check(yv(t)),n.date=t=>n.check(AR(t)),n.time=t=>n.check(RR(t)),n.duration=t=>n.check(xR(t))});function se(n){return vz(Qh,n)}const wn=we("ZodStringFormat",(n,e)=>{vn.init(n,e),vv.init(n,e)}),wv=we("ZodEmail",(n,e)=>{dj.init(n,e),wn.init(n,e)});function ZF(n){return FA(wv,n)}const Jh=we("ZodGUID",(n,e)=>{uj.init(n,e),wn.init(n,e)});function BF(n){return sv(Jh,n)}const $o=we("ZodUUID",(n,e)=>{lj.init(n,e),wn.init(n,e)});function GF(n){return qA($o,n)}function HF(n){return ZA($o,n)}function WF(n){return BA($o,n)}function KF(n){return GA($o,n)}const Xh=we("ZodURL",(n,e)=>{hj.init(n,e),wn.init(n,e)});function DR(n){return av(Xh,n)}function QF(n){return av(Xh,{protocol:/^https?$/,hostname:Jk,...Be(n)})}const bv=we("ZodEmoji",(n,e)=>{pj.init(n,e),wn.init(n,e)});function JF(n){return HA(bv,n)}const Iv=we("ZodNanoID",(n,e)=>{fj.init(n,e),wn.init(n,e)});function XF(n){return WA(Iv,n)}const Tv=we("ZodCUID",(n,e)=>{mj.init(n,e),wn.init(n,e)});function YF(n){return KA(Tv,n)}const Ev=we("ZodCUID2",(n,e)=>{gj.init(n,e),wn.init(n,e)});function e3(n){return QA(Ev,n)}const Sv=we("ZodULID",(n,e)=>{_j.init(n,e),wn.init(n,e)});function t3(n){return JA(Sv,n)}const kv=we("ZodXID",(n,e)=>{yj.init(n,e),wn.init(n,e)});function n3(n){return XA(kv,n)}const Av=we("ZodKSUID",(n,e)=>{vj.init(n,e),wn.init(n,e)});function r3(n){return YA(Av,n)}const Pv=we("ZodIPv4",(n,e)=>{Ej.init(n,e),wn.init(n,e)});function i3(n){return eP(Pv,n)}const OR=we("ZodMAC",(n,e)=>{kj.init(n,e),wn.init(n,e)});function o3(n){return bz(OR,n)}const Rv=we("ZodIPv6",(n,e)=>{Sj.init(n,e),wn.init(n,e)});function s3(n){return tP(Rv,n)}const $v=we("ZodCIDRv4",(n,e)=>{Aj.init(n,e),wn.init(n,e)});function a3(n){return nP($v,n)}const xv=we("ZodCIDRv6",(n,e)=>{Pj.init(n,e),wn.init(n,e)});function c3(n){return rP(xv,n)}const Cv=we("ZodBase64",(n,e)=>{Rj.init(n,e),wn.init(n,e)});function u3(n){return iP(Cv,n)}const Dv=we("ZodBase64URL",(n,e)=>{xj.init(n,e),wn.init(n,e)});function l3(n){return oP(Dv,n)}const Ov=we("ZodE164",(n,e)=>{Cj.init(n,e),wn.init(n,e)});function d3(n){return sP(Ov,n)}const Nv=we("ZodJWT",(n,e)=>{Oj.init(n,e),wn.init(n,e)});function h3(n){return aP(Nv,n)}const Cu=we("ZodCustomStringFormat",(n,e)=>{Nj.init(n,e),wn.init(n,e)});function p3(n,e,t={}){return Bh(Cu,n,e,t)}function f3(n){return Bh(Cu,"hostname",Qk,n)}function m3(n){return Bh(Cu,"hex",hA,n)}function g3(n,e){const r=`${n}_${e?.enc??"hex"}`,i=y[r];if(!i)throw new Error(`Unrecognized hash format: ${r}`);return Bh(Cu,r,i,e)}const Yh=we("ZodNumber",(n,e)=>{yA.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(r,i,o)=>((n,e,t)=>{const i=t,{minimum:o,maximum:s,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:d}=n._zod.bag;i.type="string"==typeof a&&a.includes("int")?"integer":"number","number"==typeof d&&("draft-04"===e.target||"openapi-3.0"===e.target?(i.minimum=d,i.exclusiveMinimum=!0):i.exclusiveMinimum=d),"number"==typeof o&&(i.minimum=o,"number"==typeof d&&"draft-04"!==e.target&&(d>=o?delete i.minimum:delete i.exclusiveMinimum)),"number"==typeof u&&("draft-04"===e.target||"openapi-3.0"===e.target?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u),"number"==typeof s&&(i.maximum=s,"number"==typeof u&&"draft-04"!==e.target&&(u<=s?delete i.maximum:delete i.exclusiveMaximum)),"number"==typeof c&&(i.multipleOf=c)})(n,r,i),n.gt=(r,i)=>n.check(Ga(r,i)),n.gte=(r,i)=>n.check(Ui(r,i)),n.min=(r,i)=>n.check(Ui(r,i)),n.lt=(r,i)=>n.check(Ba(r,i)),n.lte=(r,i)=>n.check(Po(r,i)),n.max=(r,i)=>n.check(Po(r,i)),n.int=r=>n.check(Mv(r)),n.safe=r=>n.check(Mv(r)),n.positive=r=>n.check(Ga(0,r)),n.nonnegative=r=>n.check(Ui(0,r)),n.negative=r=>n.check(Ba(0,r)),n.nonpositive=r=>n.check(Po(0,r)),n.multipleOf=(r,i)=>n.check(qh(r,i)),n.step=(r,i)=>n.check(qh(r,i)),n.finite=()=>n;const t=n._zod.bag;n.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,n.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,n.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),n.isFinite=!0,n.format=t.format??null});function en(n){return kz(Yh,n)}const Wa=we("ZodNumberFormat",(n,e)=>{Mj.init(n,e),Yh.init(n,e)});function Mv(n){return Pz(Wa,n)}function _3(n){return Rz(Wa,n)}function y3(n){return $z(Wa,n)}function v3(n){return xz(Wa,n)}function w3(n){return Cz(Wa,n)}const ep=we("ZodBoolean",(n,e)=>{vA.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t)=>{t.type="boolean"})(0,0,r)});function fn(n){return Dz(ep,n)}const tp=we("ZodBigInt",(n,e)=>{wA.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(r,i,o)=>((n,e)=>{if("throw"===e.unrepresentable)throw new Error("BigInt cannot be represented in JSON Schema")})(0,r),n.gte=(r,i)=>n.check(Ui(r,i)),n.min=(r,i)=>n.check(Ui(r,i)),n.gt=(r,i)=>n.check(Ga(r,i)),n.gte=(r,i)=>n.check(Ui(r,i)),n.min=(r,i)=>n.check(Ui(r,i)),n.lt=(r,i)=>n.check(Ba(r,i)),n.lte=(r,i)=>n.check(Po(r,i)),n.max=(r,i)=>n.check(Po(r,i)),n.positive=r=>n.check(Ga(BigInt(0),r)),n.negative=r=>n.check(Ba(BigInt(0),r)),n.nonpositive=r=>n.check(Po(BigInt(0),r)),n.nonnegative=r=>n.check(Ui(BigInt(0),r)),n.multipleOf=(r,i)=>n.check(qh(r,i));const t=n._zod.bag;n.minValue=t.minimum??null,n.maxValue=t.maximum??null,n.format=t.format??null});function b3(n){return Nz(tp,n)}const Uv=we("ZodBigIntFormat",(n,e)=>{Uj.init(n,e),tp.init(n,e)});function I3(n){return Uz(Uv,n)}function T3(n){return Lz(Uv,n)}const NR=we("ZodSymbol",(n,e)=>{Lj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e)=>{if("throw"===e.unrepresentable)throw new Error("Symbols cannot be represented in JSON Schema")})(0,t)});function E3(n){return jz(NR,n)}const MR=we("ZodUndefined",(n,e)=>{jj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e)=>{if("throw"===e.unrepresentable)throw new Error("Undefined cannot be represented in JSON Schema")})(0,t)});function S3(n){return Vz(MR,n)}const UR=we("ZodNull",(n,e)=>{Vj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t)=>{"openapi-3.0"===e.target?(t.type="string",t.nullable=!0,t.enum=[null]):t.type="null"})(0,t,r)});function np(n){return zz(UR,n)}const LR=we("ZodAny",(n,e)=>{zj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>{}});function jR(){return Fz(LR)}const VR=we("ZodUnknown",(n,e)=>{Fj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>{}});function bn(){return qz(VR)}const zR=we("ZodNever",(n,e)=>{qj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t)=>{t.not={}})(0,0,r)});function Lv(n){return Zz(zR,n)}const FR=we("ZodVoid",(n,e)=>{Zj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e)=>{if("throw"===e.unrepresentable)throw new Error("Void cannot be represented in JSON Schema")})(0,t)});function k3(n){return Bz(FR,n)}const jv=we("ZodDate",(n,e)=>{Bj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(r,i,o)=>((n,e)=>{if("throw"===e.unrepresentable)throw new Error("Date cannot be represented in JSON Schema")})(0,r),n.min=(r,i)=>n.check(Ui(r,i)),n.max=(r,i)=>n.check(Po(r,i));const t=n._zod.bag;n.minDate=t.minimum?new Date(t.minimum):null,n.maxDate=t.maximum?new Date(t.maximum):null});function A3(n){return Gz(jv,n)}const qR=we("ZodArray",(n,e)=>{Gj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=t,o=n._zod.def,{minimum:s,maximum:a}=n._zod.bag;"number"==typeof s&&(i.minItems=s),"number"==typeof a&&(i.maxItems=a),i.type="array",i.items=On(o.element,e,{...r,path:[...r.path,"items"]})})(n,t,r,i),n.element=e.element,n.min=(t,r)=>n.check(Pu(t,r)),n.nonempty=t=>n.check(Pu(1,t)),n.max=(t,r)=>n.check(uv(t,r)),n.length=(t,r)=>n.check(lv(t,r)),n.unwrap=()=>n.element});function it(n,e){return e6(qR,n,e)}function P3(n){return Br(Object.keys(n._zod.def.shape))}const rp=we("ZodObject",(n,e)=>{Wj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=t,o=n._zod.def;i.type="object",i.properties={};const s=o.shape;for(const u in s)i.properties[u]=On(s[u],e,{...r,path:[...r.path,"properties",u]});const a=new Set(Object.keys(s)),c=new Set([...a].filter(u=>{const d=o.shape[u]._zod;return"input"===e.io?void 0===d.optin:void 0===d.optout}));c.size>0&&(i.required=Array.from(c)),"never"===o.catchall?._zod.def.type?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=On(o.catchall,e,{...r,path:[...r.path,"additionalProperties"]})):"output"===e.io&&(i.additionalProperties=!1)})(n,t,r,i),Gt(n,"shape",()=>e.shape),n.keyof=()=>Br(Object.keys(n._zod.def.shape)),n.catchall=t=>n.clone({...n._zod.def,catchall:t}),n.passthrough=()=>n.clone({...n._zod.def,catchall:bn()}),n.loose=()=>n.clone({...n._zod.def,catchall:bn()}),n.strict=()=>n.clone({...n._zod.def,catchall:Lv()}),n.strip=()=>n.clone({...n._zod.def,catchall:void 0}),n.extend=t=>function aL(n,e){if(!za(e))throw new Error("Invalid input to extend: expected a plain object");const t=n._zod.def.checks;if(t&&t.length>0){const o=n._zod.def.shape;for(const s in e)if(void 0!==Object.getOwnPropertyDescriptor(o,s))throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=So(n._zod.def,{get shape(){const o={...n._zod.def.shape,...e};return Ls(this,"shape",o),o}});return ko(n,i)}(n,t),n.safeExtend=t=>function cL(n,e){if(!za(e))throw new Error("Invalid input to safeExtend: expected a plain object");const t=So(n._zod.def,{get shape(){const r={...n._zod.def.shape,...e};return Ls(this,"shape",r),r}});return ko(n,t)}(n,t),n.merge=t=>function uL(n,e){const t=So(n._zod.def,{get shape(){const r={...n._zod.def.shape,...e._zod.def.shape};return Ls(this,"shape",r),r},get catchall(){return e._zod.def.catchall},checks:[]});return ko(n,t)}(n,t),n.pick=t=>function oL(n,e){const t=n._zod.def,r=t.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return ko(n,So(n._zod.def,{get shape(){const s={};for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&(s[a]=t.shape[a])}return Ls(this,"shape",s),s},checks:[]}))}(n,t),n.omit=t=>function sL(n,e){const t=n._zod.def,r=t.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=So(n._zod.def,{get shape(){const s={...n._zod.def.shape};for(const a in e){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&delete s[a]}return Ls(this,"shape",s),s},checks:[]});return ko(n,o)}(n,t),n.partial=(...t)=>function lL(n,e,t){const i=e._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const s=So(e._zod.def,{get shape(){const a=e._zod.def.shape,c={...a};if(t)for(const u in t){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(c[u]=n?new n({type:"optional",innerType:a[u]}):a[u])}else for(const u in a)c[u]=n?new n({type:"optional",innerType:a[u]}):a[u];return Ls(this,"shape",c),c},checks:[]});return ko(e,s)}(Fv,n,t[0]),n.required=(...t)=>function dL(n,e,t){const r=So(e._zod.def,{get shape(){const i=e._zod.def.shape,o={...i};if(t)for(const s in t){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(o[s]=new n({type:"nonoptional",innerType:i[s]}))}else for(const s in i)o[s]=new n({type:"nonoptional",innerType:i[s]});return Ls(this,"shape",o),o}});return ko(e,r)}(qv,n,t[0])});function at(n,e){const t={type:"object",shape:n??{},...Be(e)};return new rp(t)}function R3(n,e){return new rp({type:"object",shape:n,catchall:Lv(),...Be(e)})}function mr(n,e){return new rp({type:"object",shape:n,catchall:bn(),...Be(e)})}const ip=we("ZodUnion",(n,e)=>{iv.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>dv(n,t,r,i),n.options=e.options});function mn(n,e){return new ip({type:"union",options:n,...Be(e)})}const ZR=we("ZodXor",(n,e)=>{ip.init(n,e),Kj.init(n,e),n._zod.processJSONSchema=(t,r,i)=>dv(n,t,r,i),n.options=e.options});function $3(n,e){return new ZR({type:"union",options:n,inclusive:!1,...Be(e)})}const BR=we("ZodDiscriminatedUnion",(n,e)=>{ip.init(n,e),Qj.init(n,e)});function Vv(n,e,t){return new BR({type:"union",options:e,discriminator:n,...Be(t)})}const GR=we("ZodIntersection",(n,e)=>{Jj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=n._zod.def,o=On(i.left,e,{...r,path:[...r.path,"allOf",0]}),s=On(i.right,e,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&1===Object.keys(u).length,c=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];t.allOf=c})(n,t,r,i)});function op(n,e){return new GR({type:"intersection",left:n,right:e})}const HR=we("ZodTuple",(n,e)=>{AA.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=t,o=n._zod.def;i.type="array";const s="draft-2020-12"===e.target?"prefixItems":"items",a="draft-2020-12"===e.target||"openapi-3.0"===e.target?"items":"additionalItems",c=o.items.map((f,E)=>On(f,e,{...r,path:[...r.path,s,E]})),u=o.rest?On(o.rest,e,{...r,path:[...r.path,a,..."openapi-3.0"===e.target?[o.items.length]:[]]}):null;"draft-2020-12"===e.target?(i.prefixItems=c,u&&(i.items=u)):"openapi-3.0"===e.target?(i.items={anyOf:c},u&&i.items.anyOf.push(u),i.minItems=c.length,u||(i.maxItems=c.length)):(i.items=c,u&&(i.additionalItems=u));const{minimum:d,maximum:h}=n._zod.bag;"number"==typeof d&&(i.minItems=d),"number"==typeof h&&(i.maxItems=h)})(n,t,r,i),n.rest=t=>n.clone({...n._zod.def,rest:t})});function WR(n,e,t){const r=e instanceof jt;return new HR({type:"tuple",items:n,rest:r?e:null,...Be(r?t:e)})}const sp=we("ZodRecord",(n,e)=>{Xj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=t,o=n._zod.def;i.type="object";const s=o.keyType,c=s._zod.bag?.patterns;if("loose"===o.mode&&c&&c.size>0){const d=On(o.valueType,e,{...r,path:[...r.path,"patternProperties","*"]});i.patternProperties={};for(const h of c)i.patternProperties[h.source]=d}else("draft-07"===e.target||"draft-2020-12"===e.target)&&(i.propertyNames=On(o.keyType,e,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=On(o.valueType,e,{...r,path:[...r.path,"additionalProperties"]});const u=s._zod.values;if(u){const d=[...u].filter(h=>"string"==typeof h||"number"==typeof h);d.length>0&&(i.required=d)}})(n,t,r,i),n.keyType=e.keyType,n.valueType=e.valueType});function kn(n,e,t){return new sp({type:"record",keyType:n,valueType:e,...Be(t)})}function x3(n,e,t){const r=ko(n);return r._zod.values=void 0,new sp({type:"record",keyType:r,valueType:e,...Be(t)})}function C3(n,e,t){return new sp({type:"record",keyType:n,valueType:e,mode:"loose",...Be(t)})}const KR=we("ZodMap",(n,e)=>{Yj.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e)=>{if("throw"===e.unrepresentable)throw new Error("Map cannot be represented in JSON Schema")})(0,t),n.keyType=e.keyType,n.valueType=e.valueType,n.min=(...t)=>n.check(Ha(...t)),n.nonempty=t=>n.check(Ha(1,t)),n.max=(...t)=>n.check(Zh(...t)),n.size=(...t)=>n.check(cv(...t))});function D3(n,e,t){return new KR({type:"map",keyType:n,valueType:e,...Be(t)})}const QR=we("ZodSet",(n,e)=>{eV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e)=>{if("throw"===e.unrepresentable)throw new Error("Set cannot be represented in JSON Schema")})(0,t),n.min=(...t)=>n.check(Ha(...t)),n.nonempty=t=>n.check(Ha(1,t)),n.max=(...t)=>n.check(Zh(...t)),n.size=(...t)=>n.check(cv(...t))});function O3(n,e){return new QR({type:"set",valueType:n,...Be(e)})}const Du=we("ZodEnum",(n,e)=>{tV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(r,i,o)=>((n,e,t)=>{const o=pk(n._zod.def.entries);o.every(s=>"number"==typeof s)&&(t.type="number"),o.every(s=>"string"==typeof s)&&(t.type="string"),t.enum=o})(n,0,i),n.enum=e.entries,n.options=Object.values(e.entries);const t=new Set(Object.keys(e.entries));n.extract=(r,i)=>{const o={};for(const s of r){if(!t.has(s))throw new Error(`Key ${s} not found in enum`);o[s]=e.entries[s]}return new Du({...e,checks:[],...Be(i),entries:o})},n.exclude=(r,i)=>{const o={...e.entries};for(const s of r){if(!t.has(s))throw new Error(`Key ${s} not found in enum`);delete o[s]}return new Du({...e,checks:[],...Be(i),entries:o})}});function Br(n,e){const t=Array.isArray(n)?Object.fromEntries(n.map(r=>[r,r])):n;return new Du({type:"enum",entries:t,...Be(e)})}function N3(n,e){return new Du({type:"enum",entries:n,...Be(e)})}const JR=we("ZodLiteral",(n,e)=>{nV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t)=>{const i=n._zod.def,o=[];for(const s of i.values)if(void 0===s){if("throw"===e.unrepresentable)throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof s){if("throw"===e.unrepresentable)throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(0!==o.length)if(1===o.length){const s=o[0];t.type=null===s?"null":typeof s,"draft-04"===e.target||"openapi-3.0"===e.target?t.enum=[s]:t.const=s}else o.every(s=>"number"==typeof s)&&(t.type="number"),o.every(s=>"string"==typeof s)&&(t.type="string"),o.every(s=>"boolean"==typeof s)&&(t.type="boolean"),o.every(s=>null===s)&&(t.type="null"),t.enum=o})(n,t,r),n.values=new Set(e.values),Object.defineProperty(n,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function Tt(n,e){return new JR({type:"literal",values:Array.isArray(n)?n:[n],...Be(e)})}const XR=we("ZodFile",(n,e)=>{rV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t)=>{const i=t,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:c}=n._zod.bag;void 0!==s&&(o.minLength=s),void 0!==a&&(o.maxLength=a),c?1===c.length?(o.contentMediaType=c[0],Object.assign(i,o)):(Object.assign(i,o),i.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(i,o)})(n,0,r),n.min=(t,r)=>n.check(Ha(t,r)),n.max=(t,r)=>n.check(Zh(t,r)),n.mime=(t,r)=>n.check(fP(Array.isArray(t)?t:[t],r))});function M3(n){return t6(XR,n)}const YR=we("ZodTransform",(n,e)=>{iV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e)=>{if("throw"===e.unrepresentable)throw new Error("Transforms cannot be represented in JSON Schema")})(0,t),n._zod.parse=(t,r)=>{if("backward"===r.direction)throw new Ky(n.constructor.name);t.addIssue=o=>{if("string"==typeof o)t.issues.push(Eu(o,t.value,e));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=t.value),s.inst??(s.inst=n),t.issues.push(Eu(s))}};const i=e.transform(t.value,t);return i instanceof Promise?i.then(o=>(t.value=o,t)):(t.value=i,t)}});function zv(n){return new YR({type:"transform",transform:n})}const Fv=we("ZodOptional",(n,e)=>{xA.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>hv(n,t,0,i),n.unwrap=()=>n._zod.def.innerType});function Nn(n){return new Fv({type:"optional",innerType:n})}const e1=we("ZodExactOptional",(n,e)=>{oV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>hv(n,t,0,i),n.unwrap=()=>n._zod.def.innerType});function t1(n){return new e1({type:"optional",innerType:n})}const n1=we("ZodNullable",(n,e)=>{sV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=n._zod.def,o=On(i.innerType,e,r),s=e.seen.get(n);"openapi-3.0"===e.target?(s.ref=i.innerType,t.nullable=!0):t.anyOf=[o,{type:"null"}]})(n,t,r,i),n.unwrap=()=>n._zod.def.innerType});function ap(n){return new n1({type:"nullable",innerType:n})}function U3(n){return Nn(ap(n))}const r1=we("ZodDefault",(n,e)=>{aV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=n._zod.def;On(i.innerType,e,r),e.seen.get(n).ref=i.innerType,t.default=JSON.parse(JSON.stringify(i.defaultValue))})(n,t,r,i),n.unwrap=()=>n._zod.def.innerType,n.removeDefault=n.unwrap});function i1(n,e){return new r1({type:"default",innerType:n,get defaultValue(){return"function"==typeof e?e():yk(e)}})}const o1=we("ZodPrefault",(n,e)=>{cV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=n._zod.def;On(i.innerType,e,r),e.seen.get(n).ref=i.innerType,"input"===e.io&&(t._prefault=JSON.parse(JSON.stringify(i.defaultValue)))})(n,t,r,i),n.unwrap=()=>n._zod.def.innerType});function s1(n,e){return new o1({type:"prefault",innerType:n,get defaultValue(){return"function"==typeof e?e():yk(e)}})}const qv=we("ZodNonOptional",(n,e)=>{uV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=n._zod.def;On(i.innerType,e,r),e.seen.get(n).ref=i.innerType})(n,t,0,i),n.unwrap=()=>n._zod.def.innerType});function a1(n,e){return new qv({type:"nonoptional",innerType:n,...Be(e)})}const c1=we("ZodSuccess",(n,e)=>{lV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t)=>{t.type="boolean"})(0,0,r),n.unwrap=()=>n._zod.def.innerType});function L3(n){return new c1({type:"success",innerType:n})}const u1=we("ZodCatch",(n,e)=>{dV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=n._zod.def;let s;On(i.innerType,e,r),e.seen.get(n).ref=i.innerType;try{s=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=s})(n,t,r,i),n.unwrap=()=>n._zod.def.innerType,n.removeCatch=n.unwrap});function l1(n,e){return new u1({type:"catch",innerType:n,catchValue:"function"==typeof e?e:()=>e})}const d1=we("ZodNaN",(n,e)=>{hV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e)=>{if("throw"===e.unrepresentable)throw new Error("NaN cannot be represented in JSON Schema")})(0,t)});function j3(n){return Wz(d1,n)}const Zv=we("ZodPipe",(n,e)=>{pV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=n._zod.def,o="input"===e.io?"transform"===i.in._zod.def.type?i.out:i.in:i.out;On(o,e,r),e.seen.get(n).ref=o})(n,t,0,i),n.in=e.in,n.out=e.out});function cp(n,e){return new Zv({type:"pipe",in:n,out:e})}const Bv=we("ZodCodec",(n,e)=>{Zv.init(n,e),OA.init(n,e)});function V3(n,e,t){return new Bv({type:"pipe",in:n,out:e,transform:t.decode,reverseTransform:t.encode})}const h1=we("ZodReadonly",(n,e)=>{fV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=n._zod.def;On(i.innerType,e,r),e.seen.get(n).ref=i.innerType,t.readOnly=!0})(n,t,r,i),n.unwrap=()=>n._zod.def.innerType});function p1(n){return new h1({type:"readonly",innerType:n})}const f1=we("ZodTemplateLiteral",(n,e)=>{mV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t)=>{const i=t,o=n._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");i.type="string",i.pattern=o.source})(n,0,r)});function z3(n,e){return new f1({type:"template_literal",parts:n,...Be(e)})}const m1=we("ZodLazy",(n,e)=>{yV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=n._zod.innerType;On(i,e,r),e.seen.get(n).ref=i})(n,t,0,i),n.unwrap=()=>n._zod.def.getter()});function g1(n){return new m1({type:"lazy",getter:n})}const _1=we("ZodPromise",(n,e)=>{_V.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e,t,r)=>{const i=n._zod.def;On(i.innerType,e,r),e.seen.get(n).ref=i.innerType})(n,t,0,i),n.unwrap=()=>n._zod.def.innerType});function F3(n){return new _1({type:"promise",innerType:n})}const y1=we("ZodFunction",(n,e)=>{gV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e)=>{if("throw"===e.unrepresentable)throw new Error("Function types cannot be represented in JSON Schema")})(0,t)});function v1(n){return new y1({type:"function",input:Array.isArray(n?.input)?WR(n?.input):n?.input??it(bn()),output:n?.output??bn()})}const up=we("ZodCustom",(n,e)=>{vV.init(n,e),Ft.init(n,e),n._zod.processJSONSchema=(t,r,i)=>((n,e)=>{if("throw"===e.unrepresentable)throw new Error("Custom types cannot be represented in JSON Schema")})(0,t)});function q3(n){const e=new Fn({check:"custom"});return e._zod.check=n,e}function w1(n,e){return n6(up,n??(()=>!0),e)}function b1(n,e={}){return r6(up,n,e)}function I1(n){return i6(n)}const Z3=function wP(n){const e=new Fn({check:"describe"});return e._zod.onattach=[t=>{const r=Ao.get(t)??{};Ao.add(t,{...r,description:n})}],e._zod.check=()=>{},e},B3=function bP(n){const e=new Fn({check:"meta"});return e._zod.onattach=[t=>{const r=Ao.get(t)??{};Ao.add(t,{...r,...n})}],e._zod.check=()=>{},e};function G3(n,e={}){const t=new up({type:"custom",check:"custom",fn:r=>r instanceof n,abort:!0,...Be(e)});return t._zod.bag.Class=n,t._zod.check=r=>{r.value instanceof n||r.issues.push({code:"invalid_type",expected:n.name,input:r.value,inst:t,path:[...t._zod.def.path??[]]})},t}const H3=(...n)=>s6({Codec:Bv,Boolean:ep,String:Qh},...n);function W3(n){const e=g1(()=>mn([se(n),en(),fn(),np(),it(e),kn(se(),e)]));return e}function Gv(n,e){return cp(zv(n),e)}var E1;E1||(E1={}),Ti(function RV(){return{localeError:PV()}}());const Vs="io.modelcontextprotocol/related-task",lp="2.0",Tr=w1(n=>null!==n&&("object"==typeof n||"function"==typeof n)),A1=mn([se(),en().int()]),P1=se(),n9=(mr({ttl:mn([en(),np()]).optional(),pollInterval:en().optional()}),at({ttl:en().optional()})),r9=at({taskId:se()}),Hv=mr({progressToken:A1.optional(),[Vs]:r9.optional()}),di=at({_meta:Hv.optional()}),Ou=di.extend({task:n9.optional()}),Er=at({method:se(),params:di.loose().optional()}),ki=at({_meta:Hv.optional()}),Ai=at({method:se(),params:ki.loose().optional()}),Sr=mr({_meta:Hv.optional()}),dp=mn([se(),en().int()]),R1=at({jsonrpc:Tt(lp),id:dp,...Er.shape}).strict(),x1=at({jsonrpc:Tt(lp),...Ai.shape}).strict(),Wv=at({jsonrpc:Tt(lp),id:dp,result:Sr}).strict(),Kv=at({jsonrpc:Tt(lp),id:dp.optional(),error:at({code:en().int(),message:se(),data:bn().optional()})}).strict(),Ka=(mn([R1,x1,Wv,Kv]),mn([Wv,Kv]),Sr.strict()),a9=ki.extend({requestId:dp.optional(),reason:se().optional()}),Qv=Ai.extend({method:Tt("notifications/cancelled"),params:a9}),c9=at({src:se(),mimeType:se().optional(),sizes:it(se()).optional(),theme:Br(["light","dark"]).optional()}),Nu=at({icons:it(c9).optional()}),Qa=at({name:se(),title:se().optional()}),C1=Qa.extend({...Qa.shape,...Nu.shape,version:se(),websiteUrl:se().optional(),description:se().optional()}),u9=op(at({applyDefaults:fn().optional()}),kn(se(),bn())),l9=Gv(n=>n&&"object"==typeof n&&!Array.isArray(n)&&0===Object.keys(n).length?{form:{}}:n,op(at({form:u9.optional(),url:Tr.optional()}),kn(se(),bn()).optional())),d9=mr({list:Tr.optional(),cancel:Tr.optional(),requests:mr({sampling:mr({createMessage:Tr.optional()}).optional(),elicitation:mr({create:Tr.optional()}).optional()}).optional()}),h9=mr({list:Tr.optional(),cancel:Tr.optional(),requests:mr({tools:mr({call:Tr.optional()}).optional()}).optional()}),p9=at({experimental:kn(se(),Tr).optional(),sampling:at({context:Tr.optional(),tools:Tr.optional()}).optional(),elicitation:l9.optional(),roots:at({listChanged:fn().optional()}).optional(),tasks:d9.optional()}),f9=di.extend({protocolVersion:se(),capabilities:p9,clientInfo:C1}),D1=Er.extend({method:Tt("initialize"),params:f9}),m9=at({experimental:kn(se(),Tr).optional(),logging:Tr.optional(),completions:Tr.optional(),prompts:at({listChanged:fn().optional()}).optional(),resources:at({subscribe:fn().optional(),listChanged:fn().optional()}).optional(),tools:at({listChanged:fn().optional()}).optional(),tasks:h9.optional()}),O1=Sr.extend({protocolVersion:se(),capabilities:m9,serverInfo:C1,instructions:se().optional()}),N1=Ai.extend({method:Tt("notifications/initialized"),params:ki.optional()}),Jv=Er.extend({method:Tt("ping"),params:di.optional()}),g9=at({progress:en(),total:Nn(en()),message:Nn(se())}),_9=at({...ki.shape,...g9.shape,progressToken:A1}),Xv=Ai.extend({method:Tt("notifications/progress"),params:_9}),y9=di.extend({cursor:P1.optional()}),Mu=Er.extend({params:y9.optional()}),Uu=Sr.extend({nextCursor:P1.optional()}),v9=Br(["working","input_required","completed","failed","cancelled"]),Lu=at({taskId:se(),status:v9,ttl:mn([en(),np()]),createdAt:se(),lastUpdatedAt:se(),pollInterval:Nn(en()),statusMessage:Nn(se())}),ju=Sr.extend({task:Lu}),w9=ki.merge(Lu),pp=Ai.extend({method:Tt("notifications/tasks/status"),params:w9}),Yv=Er.extend({method:Tt("tasks/get"),params:di.extend({taskId:se()})}),ew=Sr.merge(Lu),tw=Er.extend({method:Tt("tasks/result"),params:di.extend({taskId:se()})}),nw=(Sr.loose(),Mu.extend({method:Tt("tasks/list")})),rw=Uu.extend({tasks:it(Lu)}),iw=Er.extend({method:Tt("tasks/cancel"),params:di.extend({taskId:se()})}),M1=(Sr.merge(Lu),at({uri:se(),mimeType:Nn(se()),_meta:kn(se(),bn()).optional()})),U1=M1.extend({text:se()}),ow=se().refine(n=>{try{return atob(n),!0}catch{return!1}},{message:"Invalid Base64 string"}),L1=M1.extend({blob:ow}),Vu=Br(["user","assistant"]),Ja=at({audience:it(Vu).optional(),priority:en().min(0).max(1).optional(),lastModified:yv({offset:!0}).optional()}),j1=at({...Qa.shape,...Nu.shape,uri:se(),description:Nn(se()),mimeType:Nn(se()),annotations:Ja.optional(),_meta:Nn(mr({}))}),I9=at({...Qa.shape,...Nu.shape,uriTemplate:se(),description:Nn(se()),mimeType:Nn(se()),annotations:Ja.optional(),_meta:Nn(mr({}))}),T9=Mu.extend({method:Tt("resources/list")}),V1=Uu.extend({resources:it(j1)}),E9=Mu.extend({method:Tt("resources/templates/list")}),z1=Uu.extend({resourceTemplates:it(I9)}),sw=di.extend({uri:se()}),S9=sw,k9=Er.extend({method:Tt("resources/read"),params:S9}),F1=Sr.extend({contents:it(mn([U1,L1]))}),q1=Ai.extend({method:Tt("notifications/resources/list_changed"),params:ki.optional()}),A9=sw,P9=Er.extend({method:Tt("resources/subscribe"),params:A9}),R9=sw,$9=Er.extend({method:Tt("resources/unsubscribe"),params:R9}),x9=ki.extend({uri:se()}),C9=Ai.extend({method:Tt("notifications/resources/updated"),params:x9}),D9=at({name:se(),description:Nn(se()),required:Nn(fn())}),O9=at({...Qa.shape,...Nu.shape,description:Nn(se()),arguments:Nn(it(D9)),_meta:Nn(mr({}))}),N9=Mu.extend({method:Tt("prompts/list")}),Z1=Uu.extend({prompts:it(O9)}),M9=di.extend({name:se(),arguments:kn(se(),se()).optional()}),U9=Er.extend({method:Tt("prompts/get"),params:M9}),aw=at({type:Tt("text"),text:se(),annotations:Ja.optional(),_meta:kn(se(),bn()).optional()}),cw=at({type:Tt("image"),data:ow,mimeType:se(),annotations:Ja.optional(),_meta:kn(se(),bn()).optional()}),uw=at({type:Tt("audio"),data:ow,mimeType:se(),annotations:Ja.optional(),_meta:kn(se(),bn()).optional()}),L9=at({type:Tt("tool_use"),name:se(),id:se(),input:kn(se(),bn()),_meta:kn(se(),bn()).optional()}),j9=at({type:Tt("resource"),resource:mn([U1,L1]),annotations:Ja.optional(),_meta:kn(se(),bn()).optional()}),lw=mn([aw,cw,uw,j1.extend({type:Tt("resource_link")}),j9]),z9=at({role:Vu,content:lw}),B1=Sr.extend({description:se().optional(),messages:it(z9)}),G1=Ai.extend({method:Tt("notifications/prompts/list_changed"),params:ki.optional()}),F9=at({title:se().optional(),readOnlyHint:fn().optional(),destructiveHint:fn().optional(),idempotentHint:fn().optional(),openWorldHint:fn().optional()}),q9=at({taskSupport:Br(["required","optional","forbidden"]).optional()}),H1=at({...Qa.shape,...Nu.shape,description:se().optional(),inputSchema:at({type:Tt("object"),properties:kn(se(),Tr).optional(),required:it(se()).optional()}).catchall(bn()),outputSchema:at({type:Tt("object"),properties:kn(se(),Tr).optional(),required:it(se()).optional()}).catchall(bn()).optional(),annotations:F9.optional(),execution:q9.optional(),_meta:kn(se(),bn()).optional()}),Z9=Mu.extend({method:Tt("tools/list")}),W1=Uu.extend({tools:it(H1)}),fp=Sr.extend({content:it(lw).default([]),structuredContent:kn(se(),bn()).optional(),isError:fn().optional()}),B9=(fp.or(Sr.extend({toolResult:bn()})),Ou.extend({name:se(),arguments:kn(se(),bn()).optional()})),G9=Er.extend({method:Tt("tools/call"),params:B9}),K1=Ai.extend({method:Tt("notifications/tools/list_changed"),params:ki.optional()}),Q1=(at({autoRefresh:fn().default(!0),debounceMs:en().int().nonnegative().default(300)}),Br(["debug","info","notice","warning","error","critical","alert","emergency"])),W9=di.extend({level:Q1}),K9=Er.extend({method:Tt("logging/setLevel"),params:W9}),Q9=ki.extend({level:Q1,logger:se().optional(),data:bn()}),J9=Ai.extend({method:Tt("notifications/message"),params:Q9}),X9=at({name:se().optional()}),Y9=at({hints:it(X9).optional(),costPriority:en().min(0).max(1).optional(),speedPriority:en().min(0).max(1).optional(),intelligencePriority:en().min(0).max(1).optional()}),eq=at({mode:Br(["auto","required","none"]).optional()}),tq=at({type:Tt("tool_result"),toolUseId:se().describe("The unique identifier for the corresponding tool call."),content:it(lw).default([]),structuredContent:at({}).loose().optional(),isError:fn().optional(),_meta:kn(se(),bn()).optional()}),nq=Vv("type",[aw,cw,uw]),mp=Vv("type",[aw,cw,uw,L9,tq]),rq=at({role:Vu,content:mn([mp,it(mp)]),_meta:kn(se(),bn()).optional()}),iq=Ou.extend({messages:it(rq),modelPreferences:Y9.optional(),systemPrompt:se().optional(),includeContext:Br(["none","thisServer","allServers"]).optional(),temperature:en().optional(),maxTokens:en().int(),stopSequences:it(se()).optional(),metadata:Tr.optional(),tools:it(H1).optional(),toolChoice:eq.optional()}),J1=Er.extend({method:Tt("sampling/createMessage"),params:iq}),X1=Sr.extend({model:se(),stopReason:Nn(Br(["endTurn","stopSequence","maxTokens"]).or(se())),role:Vu,content:nq}),Y1=Sr.extend({model:se(),stopReason:Nn(Br(["endTurn","stopSequence","maxTokens","toolUse"]).or(se())),role:Vu,content:mn([mp,it(mp)])}),oq=at({type:Tt("boolean"),title:se().optional(),description:se().optional(),default:fn().optional()}),sq=at({type:Tt("string"),title:se().optional(),description:se().optional(),minLength:en().optional(),maxLength:en().optional(),format:Br(["email","uri","date","date-time"]).optional(),default:se().optional()}),aq=at({type:Br(["number","integer"]),title:se().optional(),description:se().optional(),minimum:en().optional(),maximum:en().optional(),default:en().optional()}),cq=at({type:Tt("string"),title:se().optional(),description:se().optional(),enum:it(se()),default:se().optional()}),uq=at({type:Tt("string"),title:se().optional(),description:se().optional(),oneOf:it(at({const:se(),title:se()})),default:se().optional()}),lq=at({type:Tt("string"),title:se().optional(),description:se().optional(),enum:it(se()),enumNames:it(se()).optional(),default:se().optional()}),dq=mn([cq,uq]),fq=mn([at({type:Tt("array"),title:se().optional(),description:se().optional(),minItems:en().optional(),maxItems:en().optional(),items:at({type:Tt("string"),enum:it(se())}),default:it(se()).optional()}),at({type:Tt("array"),title:se().optional(),description:se().optional(),minItems:en().optional(),maxItems:en().optional(),items:at({anyOf:it(at({const:se(),title:se()}))}),default:it(se()).optional()})]),mq=mn([lq,dq,fq]),gq=mn([mq,oq,sq,aq]),vq=mn([Ou.extend({mode:Tt("form").optional(),message:se(),requestedSchema:at({type:Tt("object"),properties:kn(se(),gq),required:it(se()).optional()})}),Ou.extend({mode:Tt("url"),message:se(),elicitationId:se(),url:se().url()})]),e$=Er.extend({method:Tt("elicitation/create"),params:vq}),wq=ki.extend({elicitationId:se()}),bq=Ai.extend({method:Tt("notifications/elicitation/complete"),params:wq}),t$=Sr.extend({action:Br(["accept","decline","cancel"]),content:Gv(n=>null===n?void 0:n,kn(se(),mn([se(),en(),fn(),it(se())])).optional())}),Iq=at({type:Tt("ref/resource"),uri:se()}),Tq=at({type:Tt("ref/prompt"),name:se()}),Eq=di.extend({ref:mn([Tq,Iq]),argument:at({name:se(),value:se()}),context:at({arguments:kn(se(),se()).optional()}).optional()}),Sq=Er.extend({method:Tt("completion/complete"),params:Eq}),n$=Sr.extend({completion:mr({values:it(se()).max(100),total:Nn(en().int()),hasMore:Nn(fn())})}),kq=at({uri:se().startsWith("file://"),name:se().optional(),_meta:kn(se(),bn()).optional()}),Aq=Er.extend({method:Tt("roots/list"),params:di.optional()}),Pq=Sr.extend({roots:it(kq)}),Rq=Ai.extend({method:Tt("notifications/roots/list_changed"),params:ki.optional()});let fw;mn([Jv,D1,Sq,K9,U9,N9,T9,E9,k9,P9,$9,G9,Z9,Yv,tw,nw,iw]),mn([Qv,Xv,N1,Rq,pp]),mn([Ka,X1,Y1,t$,Pq,ew,rw,ju]),mn([Jv,J1,e$,Aq,Yv,tw,nw,iw]),mn([Qv,Xv,J9,C9,q1,K1,G1,pp,bq]),mn([Ka,O1,n$,B1,Z1,V1,z1,F1,fp,W1,ew,rw,ju]),Error,new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789"),R(6827),R(7459),R(1876),fw=globalThis.crypto;const kr=DR().superRefine((n,e)=>{if(!URL.canParse(n))return e.addIssue({code:"custom",message:"URL must be parseable",fatal:!0}),JU}).refine(n=>{const e=new URL(n);return"javascript:"!==e.protocol&&"data:"!==e.protocol&&"vbscript:"!==e.protocol},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),eZ=(mr({resource:se().url(),authorization_servers:it(kr).optional(),jwks_uri:se().url().optional(),scopes_supported:it(se()).optional(),bearer_methods_supported:it(se()).optional(),resource_signing_alg_values_supported:it(se()).optional(),resource_name:se().optional(),resource_documentation:se().optional(),resource_policy_uri:se().url().optional(),resource_tos_uri:se().url().optional(),tls_client_certificate_bound_access_tokens:fn().optional(),authorization_details_types_supported:it(se()).optional(),dpop_signing_alg_values_supported:it(se()).optional(),dpop_bound_access_tokens_required:fn().optional()}),mr({issuer:se(),authorization_endpoint:kr,token_endpoint:kr,registration_endpoint:kr.optional(),scopes_supported:it(se()).optional(),response_types_supported:it(se()),response_modes_supported:it(se()).optional(),grant_types_supported:it(se()).optional(),token_endpoint_auth_methods_supported:it(se()).optional(),token_endpoint_auth_signing_alg_values_supported:it(se()).optional(),service_documentation:kr.optional(),revocation_endpoint:kr.optional(),revocation_endpoint_auth_methods_supported:it(se()).optional(),revocation_endpoint_auth_signing_alg_values_supported:it(se()).optional(),introspection_endpoint:se().optional(),introspection_endpoint_auth_methods_supported:it(se()).optional(),introspection_endpoint_auth_signing_alg_values_supported:it(se()).optional(),code_challenge_methods_supported:it(se()).optional(),client_id_metadata_document_supported:fn().optional()})),E$=(at({...mr({issuer:se(),authorization_endpoint:kr,token_endpoint:kr,userinfo_endpoint:kr.optional(),jwks_uri:kr,registration_endpoint:kr.optional(),scopes_supported:it(se()).optional(),response_types_supported:it(se()),response_modes_supported:it(se()).optional(),grant_types_supported:it(se()).optional(),acr_values_supported:it(se()).optional(),subject_types_supported:it(se()),id_token_signing_alg_values_supported:it(se()),id_token_encryption_alg_values_supported:it(se()).optional(),id_token_encryption_enc_values_supported:it(se()).optional(),userinfo_signing_alg_values_supported:it(se()).optional(),userinfo_encryption_alg_values_supported:it(se()).optional(),userinfo_encryption_enc_values_supported:it(se()).optional(),request_object_signing_alg_values_supported:it(se()).optional(),request_object_encryption_alg_values_supported:it(se()).optional(),request_object_encryption_enc_values_supported:it(se()).optional(),token_endpoint_auth_methods_supported:it(se()).optional(),token_endpoint_auth_signing_alg_values_supported:it(se()).optional(),display_values_supported:it(se()).optional(),claim_types_supported:it(se()).optional(),claims_supported:it(se()).optional(),service_documentation:se().optional(),claims_locales_supported:it(se()).optional(),ui_locales_supported:it(se()).optional(),claims_parameter_supported:fn().optional(),request_parameter_supported:fn().optional(),request_uri_parameter_supported:fn().optional(),require_request_uri_registration:fn().optional(),op_policy_uri:kr.optional(),op_tos_uri:kr.optional(),client_id_metadata_document_supported:fn().optional()}).shape,...eZ.pick({code_challenge_methods_supported:!0}).shape}),at({access_token:se(),id_token:se().optional(),token_type:se(),expires_in:function e9(n){return Az(Yh,n)}().optional(),scope:se().optional(),refresh_token:se().optional()}).strip(),at({error:se(),error_description:se().optional(),error_uri:se().optional()}),kr.optional().or(Tt("").transform(()=>{}))),nZ=at({redirect_uris:it(kr),token_endpoint_auth_method:se().optional(),grant_types:it(se()).optional(),response_types:it(se()).optional(),client_name:se().optional(),client_uri:kr.optional(),logo_uri:E$,scope:se().optional(),contacts:it(se()).optional(),tos_uri:E$,policy_uri:se().optional(),jwks_uri:kr.optional(),jwks:jR().optional(),software_id:se().optional(),software_version:se().optional(),software_statement:se().optional()}).strip(),rZ=at({client_id:se(),client_secret:se().optional(),client_id_issued_at:en().optional(),client_secret_expires_at:en().optional()}).strip();nZ.merge(rZ),at({error:se(),error_description:se().optional()}).strip(),at({token:se(),token_type_hint:se().optional()}).strip(),Error,Error,Error;class QZ{constructor(e,t,r,i){this.app=e,this.auth=null,this.messaging=null,this.appCheck=null,this.serverAppAppCheckToken=null,(0,j.xZ)(e)&&e.settings.appCheckToken&&(this.serverAppAppCheckToken=e.settings.appCheckToken),this.auth=t.getImmediate({optional:!0}),this.messaging=r.getImmediate({optional:!0}),this.auth||t.get().then(o=>this.auth=o,()=>{}),this.messaging||r.get().then(o=>this.messaging=o,()=>{}),this.appCheck||i?.get().then(o=>this.appCheck=o,()=>{})}getAuthToken(){var e=this;return(0,g.A)(function*(){if(e.auth)try{return(yield e.auth.getToken())?.accessToken}catch{return}})()}getMessagingToken(){var e=this;return(0,g.A)(function*(){if(e.messaging&&"Notification"in self&&"granted"===Notification.permission)try{return yield e.messaging.getToken()}catch{return}})()}getAppCheckToken(e){var t=this;return(0,g.A)(function*(){if(t.serverAppAppCheckToken)return t.serverAppAppCheckToken;if(t.appCheck){const r=e?yield t.appCheck.getLimitedUseToken():yield t.appCheck.getToken();return r.error?null:r.token}return null})()}getContext(e){var t=this;return(0,g.A)(function*(){return{authToken:yield t.getAuthToken(),messagingToken:yield t.getMessagingToken(),appCheckToken:yield t.getAppCheckToken(e)}})()}}const Hw="us-central1";class YZ{constructor(e,t,r,i,o=Hw,s=(...a)=>fetch(...a)){this.app=e,this.fetchImpl=s,this.emulatorOrigin=null,this.contextProvider=new QZ(e,t,r,i),this.cancelAllRequests=new Promise(a=>{this.deleteService=()=>Promise.resolve(a())});try{const a=new URL(o);this.customDomain=a.origin+("/"===a.pathname?"":a.pathname),this.region=Hw}catch{this.customDomain=null,this.region=o}}_delete(){return this.deleteService()}_url(e){const t=this.app.options.projectId;return null!==this.emulatorOrigin?`${this.emulatorOrigin}/${t}/${this.region}/${e}`:null!==this.customDomain?`${this.customDomain}/${e}`:`https://${this.region}-${t}.cloudfunctions.net/${e}`}}const tx="@firebase/functions";!function lB(n){(0,j.om)(new z.uA("functions",(t,{instanceIdentifier:r})=>{const i=t.getProvider("app").getImmediate(),o=t.getProvider("auth-internal"),s=t.getProvider("messaging-internal"),a=t.getProvider("app-check-internal");return new YZ(i,o,s,a,r)},"PUBLIC").setMultipleInstances(!0)),(0,j.KO)(tx,"0.13.1",n),(0,j.KO)(tx,"0.13.1","esm2020")}(),R(4844);var ZB=Object.defineProperty,Ce=(n,e,t)=>((n,e,t)=>e in n?ZB(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t)(n,"symbol"!=typeof e?e+"":e,t);Ce(class wD{constructor(e){Ce(this,"queryEndpoint"),Ce(this,"updateEndpoint"),Ce(this,"baseHeaders"),this.queryEndpoint=e.queryEndpoint,this.updateEndpoint=e.updateEndpoint,this.baseHeaders=Object.fromEntries(Object.entries(e.originalHeaders||{}).filter(([t])=>wD.RELEVANT_HEADER_KEYS.includes(t))),void 0!==e.authHeader&&(this.baseHeaders.Authorization=e.authHeader)}ping(){var e=this;return(0,g.A)(function*(){return(yield e.query("ASK { }")).boolean})()}query(e){var t=this;return(0,g.A)(function*(r,i="application/sparql-results+json"){let o;try{o=yield fetch(t.queryEndpoint,{headers:{...t.baseHeaders,"Content-Type":"application/x-www-form-urlencoded",Accept:i},method:"POST",body:new URLSearchParams({query:r})})}catch(s){throw new Error(`Fuseki is not accessible at ${t.queryEndpoint}: ${s instanceof Error?s.message:String(s)}`)}if(!o.ok){const s=yield o.text();throw new Error(`Fuseki query failed (HTTP ${o.status}): ${s}`)}return yield o.json()}).apply(this,arguments)}subset(e){var t=this;return(0,g.A)(function*(r,i="text/turtle"){const o=yield fetch(t.queryEndpoint,{headers:{...t.baseHeaders,"Content-Type":"application/x-www-form-urlencoded",Authorization:t.baseHeaders.Authorization||"",Accept:i},method:"POST",body:new URLSearchParams({query:r})});return"application/ld+json"===i?yield o.json():yield o.text()}).apply(this,arguments)}update(e){var t=this;return(0,g.A)(function*(){const r=yield fetch(t.updateEndpoint,{headers:{...t.baseHeaders,"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:new URLSearchParams({update:e})});if(!r.ok){const i=yield r.text();throw new Error(`SPARQL update failed (HTTP ${r.status}): ${i}`)}return(r.headers.get("content-type")??"").includes("application/json")?yield r.json():{ok:r.ok,status:r.status,message:yield r.text()}})()}},"RELEVANT_HEADER_KEYS",["authorization","Authorization","x-project-id"]);class ib extends Error{constructor(e){super(`QLever is locked (rebuild in progress): ${e}`),this.name="QLeverLockedError"}}const ob=class oc{constructor(e){Ce(this,"queryEndpoint"),Ce(this,"updateEndpoint"),Ce(this,"dataEndpoint"),Ce(this,"baseHeaders"),this.queryEndpoint=e.queryEndpoint,this.updateEndpoint=e.updateEndpoint,this.dataEndpoint=this.updateEndpoint.replace(/\/update$/,"/data"),this.baseHeaders=Object.fromEntries(Object.entries(e.originalHeaders||{}).filter(([t])=>oc.RELEVANT_HEADER_KEYS.includes(t))),this.baseHeaders["x-user-roles"]="admin"}static _retryOnLocked(e){return(0,g.A)(function*(){const t=oc.LOCKED_MAX_RETRIES,r=oc.LOCKED_BASE_DELAY_MS;let i;for(let o=0;o<=t;o++)try{return yield e()}catch(s){if(i=s,s instanceof ib&&o<t){const a=.5+Math.random(),c=r*Math.pow(2,o)*a;yield new Promise(u=>setTimeout(u,c));continue}throw s}throw i})()}ping(){var e=this;return(0,g.A)(function*(){return(yield e.query("ASK { }")).boolean})()}query(e){var t=this;return(0,g.A)(function*(r,i="application/sparql-results+json"){let o;try{o=yield fetch(t.queryEndpoint,{headers:{...t.baseHeaders,"Content-Type":"application/x-www-form-urlencoded",Accept:i},method:"POST",body:new URLSearchParams({query:r})})}catch(s){throw new Error(`QLever is not accessible at ${t.queryEndpoint}: ${s instanceof Error?s.message:String(s)}`)}if(!o.ok){const s=yield o.text();throw new Error(`QLever query failed (HTTP ${o.status}): ${s}`)}return yield o.json()}).apply(this,arguments)}subset(e){var t=this;return(0,g.A)(function*(r,i="text/turtle"){return yield(yield fetch(t.queryEndpoint,{headers:{...t.baseHeaders,"Content-Type":"application/x-www-form-urlencoded",Accept:i},method:"POST",body:new URLSearchParams({query:r})})).text()}).apply(this,arguments)}update(e){var t=this;return(0,g.A)(function*(){return oc._retryOnLocked((0,g.A)(function*(){const r=yield fetch(t.updateEndpoint,{headers:{...t.baseHeaders,"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:new URLSearchParams({update:e})});if(!r.ok){const i=yield r.text();throw 423===r.status?new ib(i):new Error(`SPARQL update failed (HTTP ${r.status}): ${i}`)}return yield r.json()}))})()}insertData(e){var t=this;return(0,g.A)(function*(){yield t._postToDataEndpoint(e,t.dataEndpoint)})()}deleteData(e){var t=this;return(0,g.A)(function*(){yield t._postToDataEndpoint(e,`${t.dataEndpoint}/delete`)})()}_postToDataEndpoint(e,t){var r=this;return(0,g.A)(function*(){const i=yield r._quadsToNQuads(e),o=yield function WB(n){return sb.apply(this,arguments)}(Buffer.from(i,"utf-8"));yield oc._retryOnLocked((0,g.A)(function*(){const s=yield fetch(t,{method:"POST",headers:{...r.baseHeaders,"Content-Type":"application/n-quads","Content-Encoding":"gzip"},body:o});if(!s.ok){const a=yield s.text();throw 423===s.status?new ib(a):new Error(`QLever data POST failed (HTTP ${s.status}): ${a}`)}}))})()}_quadsToNQuads(e){return new Promise((t,r)=>{const i=new Ie({format:"application/n-quads"});i.addQuads(e),i.end((o,s)=>o?r(o):t(s))})}};function sb(){return sb=(0,g.A)(function*(n){const e=new CompressionStream("gzip"),t=e.writable.getWriter();t.write(new Uint8Array(n)),t.close();const r=[],i=e.readable.getReader();for(;;){const{done:c,value:u}=yield i.read();if(c)break;r.push(u)}const o=r.reduce((c,u)=>c+u.byteLength,0),s=new Uint8Array(o);let a=0;for(const c of r)s.set(c,a),a+=c.byteLength;return s.buffer}),sb.apply(this,arguments)}Ce(ob,"RELEVANT_HEADER_KEYS",["authorization","Authorization","x-project-id","x-user-roles"]),Ce(ob,"LOCKED_MAX_RETRIES",parseInt((typeof process<"u"?process.env.QLEVER_LOCKED_MAX_RETRIES:void 0)??"10",10)),Ce(ob,"LOCKED_BASE_DELAY_MS",parseInt((typeof process<"u"?process.env.QLEVER_LOCKED_BASE_DELAY_MS:void 0)??"2000",10));class ir{constructor(e){Ce(this,"_value"),Ce(this,"_listeners",new Set),this._value=e}get(){return this._value}set(e){this._value=e;for(const t of this._listeners)t()}subscribe(e){return this._listeners.add(e),()=>this._listeners.delete(e)}asReadonly(){return this}}const ub="https://cue.qaecy.com/r/";Error;const X7={address:{category:"address",label:"Address",description:"Official addresses, streets, and addressable access points.",preferredColor:"#1d4ed8"},poi:{category:"poi",label:"Points of interest",description:"Places and amenities relevant to everyday operations and access.",preferredColor:"#059669"},railway:{category:"railway",label:"Railway",description:"Rail infrastructure, stations, and rail-adjacent transport context.",preferredColor:"#dc2626"},natural:{category:"natural",label:"Natural features",description:"Natural and hydrological features such as watercourses, forests, and land cover.",preferredColor:"#0ea5e9"},manmade:{category:"manmade",label:"Built features",description:"Structures and man-made elements not covered by more specific categories.",preferredColor:"#ca8a04"},cadastre:{category:"cadastre",label:"Cadastre",description:"Land parcels, legal boundaries, official surveying, and public-law land restrictions.",preferredColor:"#7c3aed"},building:{category:"building",label:"Buildings",description:"Building footprints and structures from official registry or cadastral data.",preferredColor:"#f97316"},greenspace:{category:"greenspace",label:"Green spaces",description:"Parks, gardens, playgrounds, sports facilities, and other vegetated open areas.",preferredColor:"#16a34a"},paved:{category:"paved",label:"Paved surfaces",description:"Courtyards, sidewalks, parking areas, and other sealed ground surfaces.",preferredColor:"#78716c"},zone:{category:"zone",label:"Planning zones",description:"Land-use zones, local plans, and public-law planning constraints (Nutzungsplanung / Lokalplan).",preferredColor:"#db2777"}};function xo(n){return X7[n]}const Nx={110:"residential",120:"residential",121:"residential",122:"residential",130:"residential",131:"residential",132:"residential",140:"residential",150:"residential",160:"residential",190:"residential",210:"recreational",212:"recreational",220:"recreational",221:"recreational",230:"recreational",290:"residential",310:"agricultural",311:"agricultural",312:"agricultural",320:"agricultural",321:"agricultural",322:"agricultural",330:"agricultural",390:"agricultural",410:"commercial",411:"commercial",420:"commercial",421:"commercial",422:"commercial",430:"commercial",431:"commercial",432:"commercial",440:"commercial",490:"commercial",510:"industrial",511:"industrial",519:"industrial",520:"infrastructure",521:"infrastructure",522:"infrastructure",529:"infrastructure",530:"infrastructure",531:"infrastructure",532:"infrastructure",533:"infrastructure",534:"infrastructure",535:"infrastructure",540:"infrastructure",585:"infrastructure",590:"industrial",610:"public",620:"public",621:"public",622:"public",630:"public",640:"public",650:"recreational",660:"public",670:"public",680:"public",690:"public",910:"other",920:"other",930:"other",940:"other",950:"infrastructure",960:"agricultural",970:"agricultural",990:"other"},Mx={1010:"residential",1020:"mixed",1030:"residential",1040:"other",1060:"recreational",1080:"residential",1110:"commercial",1120:"commercial",1130:"commercial",1140:"industrial",1150:"infrastructure",1160:"infrastructure",1210:"public",1220:"public",1230:"public",1240:"recreational",1241:"public",1242:"recreational",1251:"public",1261:"agricultural",1262:"agricultural",1263:"agricultural",1275:"other",1276:"other",1277:"infrastructure",1278:"infrastructure",1281:"infrastructure",1282:"infrastructure",9999:"other"},o8={1110:"residential",1121:"recreational",1122:"residential",1130:"mixed",1140:"mixed",1211:"commercial",1212:"commercial",1213:"mixed",1220:"commercial",1230:"commercial",1231:"commercial",1241:"infrastructure",1242:"recreational",1264:"recreational",1251:"industrial",1252:"industrial",1261:"public",1262:"public",1263:"public",1265:"public",1272:"public",1273:"public",1271:"agricultural",1274:"other",1281:"infrastructure",1282:"infrastructure"},s8=[[/^geb[\xe4a]ude$/i,"other"],[/wohn|resident|housing|bolig|enfamil|etagebolig|r\xe6kkehus|lejlighed/i,"residential"],[/b\xfcro|office|handel|commercial|butik|forretning|kontor|supermarked|lager|hotel|restaurant/i,"commercial"],[/industri|fabrik|industrial|gewerbe|produktion|fabrik|fremstill/i,"industrial"],[/landwirtschaft|agrar|agricultural|landbrug|skov|dyrk|stald|lade|drivhus/i,"agricultural"],[/schule|school|hospital|gesundheit|sundhed|kirche|church|offentlig|uddannelse|kultur|social|plejehjem/i,"public"],[/freizeit|recreation|sport|sommerhus|ferienhaus|fritid|kolonihave/i,"recreational"],[/infrastruktur|verkehr|transport|energy|energie|forsyning|teknik|teknisk/i,"infrastructure"],[/gemischt|mixed|blandet/i,"mixed"]];function qu(n){for(const[e,t]of s8)if(e.test(n))return t}function a8(n,e){if(null==n)return;const t=String(n).trim();return"swiss-gwr"===e?o8[t]??qu(t):"danish-matrikel"===e?Nx[t]??qu(t):"zurich-wfs"===e||"swiss-av-wfs"===e?Mx[t]??qu(t):Mx[t]??Nx[t]??qu(t)}function c8(n,e){if(null!=n)return qu(String(n).trim())}function Ux(n){return n.trim().toLowerCase().replace(/[\s_\-]/g,"")}const u8={inkraft:"in-force",laufendeanderung:"amendment-pending",laufende\u00e4nderung:"amendment-pending",aenderungohnevorvirkung:"amendment-pending",aenderungohnevorwirkung:"amendment-pending",\u00e4nderungohnevorwirkung:"amendment-pending",aenderungmitvorwirkung:"amendment-in-effect",\u00e4nderungmitvorwirkung:"amendment-in-effect",\u00f6ffentlicheauflage:"proposed",offentlicheauflage:"proposed",aufgehoben:"repealed",vedtaget:"in-force",forslag:"proposed",aflyst:"repealed"};const jx={grundnutzungszonenplan:"land-use-plan",nutzungszonenplan:"land-use-plan",zonenplan:"land-use-plan",gestaltungsplan:"design-plan",bebauungsplan:"development-plan",sondernutzungsplan:"special-use-plan",quartiererhaltungszonenplan:"neighbourhood-conservation-plan",l\u00e4rmempfindlichkeitsstufenplan:"noise-sensitivity-plan",laermempfindlichkeitsstufenplan:"noise-sensitivity-plan",gew\u00e4sserschutzzonenplan:"water-protection-plan",gewasserschutzzonenplan:"water-protection-plan",grundwasserschutzzonenplan:"water-protection-plan",gew\u00e4sserschutzplan:"water-protection-plan",naturundlandschaftsschutzzonenplan:"nature-landscape-plan","natur-undlandschaftsschutzzonenplan":"nature-landscape-plan",landschaftsschutzzonenplan:"nature-landscape-plan",freihaltezone:"open-space-zone",kernzone:"land-use-plan",wald:"land-use-plan",gew\u00e4sser:"land-use-plan",gewasser:"land-use-plan",reservezone:"land-use-plan",bahnareal:"land-use-plan",erholungszone:"land-use-plan","strassen(weitere)":"land-use-plan",strassen:"land-use-plan",nichtzoniertfl\u00e4che:"unzoned",nichtzoniertefl\u00e4che:"unzoned",nichtzoniertflache:"unzoned",nichtzonierteflache:"unzoned",nichtzoniertgem\u00e4ssbzo2016:"unzoned",nichtzoniertgemassbzo2016:"unzoned",hochh\u00e4user:"overlay-regulation",hochhauser:"overlay-regulation",areal\u00fcberbauungenzul\u00e4ssig:"overlay-regulation",arealuberbauungenzulassig:"overlay-regulation",erh\u00f6hteausnutzung:"overlay-regulation",erhohteausnutzung:"overlay-regulation",erdgeschossnutzung:"overlay-regulation",freifl\u00e4chenzifferverlegungsgebiet:"overlay-regulation",freiflachenzifferverlegungsgebiet:"overlay-regulation",baumschutz:"overlay-regulation",sonderbauvorschriften:"overlay-regulation",lokalplan:"local-plan",kommuneplanramme:"municipal-plan-framework"},l8=[[/quartiererhalt/i,"neighbourhood-conservation-plan"],[/l\xe4rmempfindlich|laermempfindlich/i,"noise-sensitivity-plan"],[/gew\xe4sserschutz|grundwasserschutz/i,"water-protection-plan"],[/natur.*landschaft|landschaft.*schutz/i,"nature-landscape-plan"],[/gestaltungsplan/i,"design-plan"],[/bebauungsplan/i,"development-plan"],[/sondernutzung/i,"special-use-plan"],[/freihalt/i,"open-space-zone"],[/\xf6ffentliche.*bauten|zone.*\xf6ffentlich/i,"land-use-plan"],[/hochhaus/i,"overlay-regulation"],[/areal\xfcberbauung|arealuberbauung/i,"overlay-regulation"],[/erh\xf6hte.*ausnutzung|ausnutzung/i,"overlay-regulation"],[/erdgeschossnutzung/i,"overlay-regulation"],[/freifl\xe4chenzifferverlegung|freiflachenzifferverlegung/i,"overlay-regulation"],[/erhaltenswert/i,"overlay-regulation"],[/m[\u00e4a]ssig.*st[\u00f6o]rend|st[\u00f6o]rendes.*gewerbe/i,"overlay-regulation"],[/wohnzone/i,"land-use-plan"],[/kernzone|zentrumszone/i,"land-use-plan"],[/erholungszone|erholungs/i,"land-use-plan"],[/stra[s\xdf]en/i,"land-use-plan"],[/landwirtschaft/i,"land-use-plan"],[/\bwald\b/i,"land-use-plan"],[/\bgew[\u00e4a]sser\b/i,"land-use-plan"],[/nicht\s*zoniert/i,"unzoned"],[/baumschutz/i,"overlay-regulation"],[/sonderbauvorschrift/i,"overlay-regulation"],[/kommuneplan/i,"municipal-plan-framework"],[/lokalplan/i,"local-plan"],[/zonenplan|nutzungsplan|nutzungszone/i,"land-use-plan"],[/zone$|areal$/i,"land-use-plan"]];function pb(n){return"string"==typeof n?n:n.typeName}function fb(n){return"string"==typeof n?void 0:n.cqlFilter}function _8(n,e,t){return t?`${n}:${e}[${t}]`:`${n}:${e}`}const y8=new Set(["building","cadastre","greenspace","paved","zone"]);function mb(n,e,t,r){const i=t.replace(/^ms:/,""),o=xo(e),s=y8.has(e)?"priority":"raw";return{id:_8(n,t,r),sourceId:n,sourceLayerId:t,category:e,preferredColor:o.preferredColor,tier:s,label:i,description:`Z\xfcrich WFS layer ${i}`,labelKey:`gis.layer.${n}.${i}.label`,descriptionKey:`gis.layer.${n}.${i}.description`}}class gb{constructor(e){Ce(this,"categoryMap"),Ce(this,"baseUrl"),Ce(this,"sourceId"),Ce(this,"outputFormat"),this.categoryMap=e.categoryMap,this.baseUrl=e.baseUrl??"https://maps.zh.ch/wfs/OGDZHWFS",this.sourceId=e.sourceId??"zurich-wfs",this.outputFormat=e.outputFormat??"application/json; subtype=geojson"}listFeatureCategoryDescriptors(e){var t=this;return(0,g.A)(function*(){const r=yield t.listAvailableLayers(e);return[...new Map(r.map(i=>[i.category,xo(i.category)])).values()]})()}listAvailableLayers(e){var t=this;return(0,g.A)(function*(){const r=Object.entries(t.categoryMap);return(yield Promise.allSettled(r.flatMap(([i,o])=>o.map(function(){var s=(0,g.A)(function*(a){const c=pb(a),u=fb(a),d=yield t._fetchFeatures(e,c,1,u);return{category:i,typeName:c,cqlFilter:u,hasResults:d.features.length>0}});return function(a){return s.apply(this,arguments)}}())))).filter(i=>"fulfilled"===i.status&&i.value.hasResults).map(i=>mb(t.sourceId,i.value.category,i.value.typeName,i.value.cqlFilter))})()}getFeaturesForLayer(e,t){var r=this;return(0,g.A)(function*(){const i=r._findLayerById(t);return i?r._fetchAndConvert(e,i.descriptor,i.cqlFilter):[]})()}_fetchAndConvert(e,t,r){var i=this;return(0,g.A)(function*(){const o=yield i._fetchFeatures(e,t.sourceLayerId,void 0,r),s=r?function E8(n){const e=n.match(/^(\w+)\s*=\s*'([^']+)'$/);if(e){const[,r,i]=e;return o=>String(o?.[r]??"")===i}const t=n.match(/^(\w+)\s+IN\s*\(([^)]+)\)$/i);if(t){const[,r,i]=t,o=new Set(i.split(",").map(s=>s.trim().replace(/^'|'$/g,"")));return s=>o.has(String(s?.[r]??""))}return()=>!0}(r):void 0;return(s?o.features.filter(a=>s(a.properties)):o.features).map((a,c)=>i.toGisFeature(a,t,c))})()}listFeatureCategories(e){var t=this;return(0,g.A)(function*(){const r=yield t.listAvailableLayers(e);return[...new Set(r.map(i=>i.category))]})()}getFeaturesOfCategory(e,t){var r=this;return(0,g.A)(function*(){const i=r.categoryMap[t]??[];return(yield Promise.all(i.map(o=>{const s=pb(o),a=fb(o),c=mb(r.sourceId,t,s);return r._fetchAndConvert(e,c,a)}))).flat()})()}_findLayerById(e){const t=Object.entries(this.categoryMap);for(const[r,i]of t)for(const o of i){const s=pb(o),a=fb(o),c=mb(this.sourceId,r,s,a);if(c.id===e)return{descriptor:c,cqlFilter:a}}}_fetchFeatures(e,t,r,i){var o=this;return(0,g.A)(function*(){const[s,a,c,u]=e,h=new URLSearchParams({service:"WFS",version:"2.0.0",request:"GetFeature",typename:t,bbox:`${a},${s},${u},${c},urn:ogc:def:crs:EPSG::4326`,srsName:"EPSG:4326",outputFormat:o.outputFormat});void 0!==r&&h.set("count",String(r)),void 0!==i&&h.set("CQL_FILTER",i),h.set("outputFormat",o.outputFormat);const f=`${o.baseUrl}?${h.toString()}`,E=yield fetch(f);if(!E.ok)throw new Error(`WFS request failed for ${t} (${o.sourceId}): ${E.status} ${E.statusText}`);return E.json()})()}toGisFeature(e,t,r){const[i,o]=function m8(n){if(!n)return[0,0];const e=n.coordinates;switch(n.type){case"Point":return e;case"MultiPoint":case"LineString":return e[0];case"MultiLineString":case"Polygon":return e[0][0];case"MultiPolygon":return e[0][0][0];default:return[0,0]}}(e.geometry),s=function g8(n,e){if(!n)return e;for(const t of["plannavn","bezeichnung","name","strassenname","objektname","title","label"])if("string"==typeof n[t]&&n[t])return n[t];return e}(e.properties,`${t.sourceLayerId}[${r}]`),a=e.bbox?[e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]]:void 0,c=t.tier,u="priority"===c?this._extractNormalisedProperties(e,t):void 0;return{id:e.id??`${t.sourceLayerId}/${r}`,preferredColor:t.preferredColor,sourceId:this.sourceId,sourceFeatureId:e.id??`${t.sourceLayerId}/${r}`,layerId:t.id,name:s,category:t.category,type:t.sourceLayerId.replace(/^ms:/,""),lat:o,lon:i,displayName:s,bbox:a,geometry:e.geometry??void 0,tier:c,properties:u,originalData:e.properties??{}}}_extractNormalisedProperties(e,t){return"building"===t.category?function v8(n,e){if(!n)return{featureType:"building"};const t=n.grundflaeche??n.gbf??n.gebaeudegrundrissflaeche??n.flaeche??void 0,r=n.vollgeschosse??n.geschossanzahl??n.anzahl_geschosse??void 0,i=n.gebaeudefunktion??n.gfkode??n.art??n.objektart??void 0,o=n.baujahr??n.bauperiode??void 0,s=String(n.egid??n.gwr_egid??n.egris_egid??"").trim()||void 0;return{featureType:"building",areaM2:"number"==typeof t?t:void 0,buildingUse:i?String(i):void 0,buildingUseGeneric:a8(i,e),floors:"number"==typeof r?r:void 0,yearBuilt:"number"==typeof o?o:void 0,registryId:s}}(e.properties,this.sourceId):"greenspace"===t.category?function b8(n){if(!n)return{featureType:"greenspace"};const e=n.flaeche??void 0,t=n.art??void 0;return{featureType:"greenspace",areaM2:"number"==typeof e?e:void 0,surfaceType:t?String(t):void 0}}(e.properties):"paved"===t.category?function I8(n){if(!n)return{featureType:"paved"};const e=n.flaeche??void 0,t=n.art??void 0;return{featureType:"paved",areaM2:"number"==typeof e?e:void 0,surfaceType:t?String(t):void 0}}(e.properties):"zone"===t.category?function T8(n){if(!n)return{featureType:"zone"};const e=n.plannavn??n.bezeichnung??n.typ_bezeichnung??n.art??void 0,t=n.planid??n.plannummer??void 0,r=n.artcode??n.typ_code??n.abkuerzung??t??void 0,o=function Lx(n){if(n)return u8[Ux(n)]}(n.rechtsstatus??n.status??void 0),a=function Vx(n){if(!n)return;const e=Ux(n);if(e in jx)return jx[e];for(const[t,r]of l8)if(t.test(n))return r;console.warn(`[cue-gis] Unknown zone plan type \u2014 add "${n}" to classifyZonePlanType: no ZonePlanType mapping found.`)}(n.typ_gde_bezeichnung??void 0),c=n.dagsordenpunkt_url??n.dokument_url??n.link??void 0,u=n.auflagedatum??void 0,d=n.festsetzungsdatum??void 0,h=n.genehmigungsdatum??void 0,f=n.inkraftsetzungsdatum??void 0,E=n.flaeche??n.flaeche_m2??void 0;return{featureType:"zone",zoneType:e?String(e):void 0,zoneCode:r?String(r):void 0,legalStatus:o,planType:a,planId:t?String(t):void 0,planDocumentLink:c?String(c):void 0,publicationDate:u??void 0,fixingDate:d??void 0,approvalDate:h??void 0,effectiveFrom:f??void 0,areaM2:"number"==typeof E?E:void 0}}(e.properties):function w8(n){if(!n)return{featureType:"plot"};const t=n.egris_egrid??n.egrid??void 0,r=n.nummer??void 0,i=n.nbident??void 0,o=r&&i?`${r}, ${i}`:r??void 0,s=n.flaechenmass??n.flaeche??void 0,a=n.art??n.nutzungsart??void 0;return{featureType:"plot",areaM2:"number"==typeof s?s:void 0,plotUse:a?String(a):void 0,plotUseGeneric:c8(a),plotId:o,registryId:t}}(e.properties)}}new gb({categoryMap:{address:["ms:ogd-0406_arv_basis_avzh_hausnummer_pos_p","ms:ogd-0571_afv_gv_strat_strassennetz_l"],poi:["ms:ogd-0053_giszhpub_ogd_veloparkieranlagen_p","ms:ogd-0406_arv_basis_avzh_gebaeudeeingang_p"],railway:["ms:ogd-0529_afv_gv_seilbahn_skilift_l","ms:ogd-0529_afv_gv_seilbahn_skilift_p"],natural:["ms:ogd-0045_giszhpub_wb_fliessgewaesser_l","ms:ogd-0045_giszhpub_wb_stehgewaesser_f","ms:ogd-0111_giszhpub_wald_waldareal_f"],manmade:["ms:ogd-0248_giszhpub_en_gebaeude_volumen_ha_f",{typeName:"ms:ogd-0401_arv_basis_avzh_bodenbedeckung_f",cqlFilter:"art IN ('Bahngebiet', 'Strasse_Weg', 'Flugplatz', 'Bruecke')"}],building:[{typeName:"ms:ogd-0401_arv_basis_avzh_bodenbedeckung_f",cqlFilter:"art = 'Geb\xe4ude'"}],greenspace:[{typeName:"ms:ogd-0401_arv_basis_avzh_bodenbedeckung_f",cqlFilter:"art IN ('Gartenanlage', 'Parkanlage', 'Spielplatz', 'Sportanlage', 'Friedhof', 'Gehoelz', 'Feuchtgebiet')"}],paved:[{typeName:"ms:ogd-0401_arv_basis_avzh_bodenbedeckung_f",cqlFilter:"art IN ('befBoden', 'befestigte Fl\xe4che', 'Hof', 'Trottoir', 'Parkplatz')"}],cadastre:["ms:ogd-0404_arv_basis_avzh_liegenschaften_f","ms:ogd-0404_arv_basis_avzh_selbstrecht_f"],zone:["ms:ogd-0156_arv_basis_np_gn_zonenflaeche_f","ms:ogd-0155_arv_basis_np_ul_flaeche_f"]}}),new gb({sourceId:"swiss-av-wfs",baseUrl:"https://wfs.geodienste.ch/av_0/deu",categoryMap:{cadastre:["ms:RESF","ms:DPRSF"]}}),new gb({sourceId:"danish-plandata",baseUrl:"https://wfs.plandata.dk/geoserver/pdk/wfs",outputFormat:"application/json",categoryMap:{zone:["pdk:lokalplan_vedtaget","pdk:kommuneplanramme_vedtaget"]}});const nn={qcy:"https://dev.qaecy.com/ont#","qcy-e":"https://dev.qaecy.com/enum#","qcy-l":"https://dev.qaecy.com/logs#","qcy-f":"https://dev.qaecy.com/functions#",obc:"https://w3id.org/obc#",dicc:"https://w3id.org/digitalconstruction/0.5/Contexts#",dicv:"https://w3id.org/digitalconstruction/0.5/Variables#",dice:"https://w3id.org/digitalconstruction/0.5/Entities#",dicp:"https://w3id.org/digitalconstruction/0.5/Processes#",dica:"https://w3id.org/digitalconstruction/0.5/Agents#",dici:"https://w3id.org/digitalconstruction/0.5/Information#",dicbm:"https://w3id.org/digitalconstruction/0.5/Materials#",dicob:"https://w3id.org/digitalconstruction/0.5/Occupancy#",dicl:"https://w3id.org/digitalconstruction/0.5/Lifecycle#",dices:"https://w3id.org/digitalconstruction/0.5/Energy#",dicu:"https://w3id.org/digitalconstruction/0.5/Units#",diclvl:"https://w3id.org/digitalconstruction/0.5/Levels#",dicstg:"https://w3id.org/digitalconstruction/0.5/Stages#"},is={madsrdf:"http://www.loc.gov/mads/rdf/v1#",bflc:"http://id.loc.gov/ontologies/bflc/",foaf:"http://xmlns.com/foaf/0.1/",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",dbo:"http://dbpedia.org/ontology/",rdfs:"http://www.w3.org/2000/01/rdf-schema#",yago:"http://yago-knowledge.org/resource/",dc:"http://purl.org/dc/elements/1.1/",dbp:"http://dbpedia.org/property/",owl:"http://www.w3.org/2002/07/owl#",ex:"http://example.org/",gr:"http://purl.org/goodrelations/v1#",skos:"http://www.w3.org/2004/02/skos/core#",spacerel:"http://data.ordnancesurvey.co.uk/ontology/spatialrelations/",geo:"http://www.opengis.net/ont/geosparql#",xsd:"http://www.w3.org/2001/XMLSchema#",dcat:"http://www.w3.org/ns/dcat#",org:"http://www.w3.org/ns/org#",dct:"http://purl.org/dc/terms/",qb:"http://purl.org/linked-data/cube#",dcterms:"http://purl.org/dc/terms/",prov:"http://www.w3.org/ns/prov#",sioc:"http://rdfs.org/sioc/ns#",xtypes:"http://purl.org/xtypes/",dbpedia:"http://dbpedia.org/resource/",schema:"http://schema.org/",ont:"http://purl.org/net/ns/ontology-annot#",void:"http://rdfs.org/ns/void#",onto:"http://www.ontotext.com/",sio:"http://semanticscience.org/resource/",bf:"http://id.loc.gov/ontologies/bibframe/",search:"http://sindice.com/vocab/search#",obo:"http://purl.obolibrary.org/obo/",sd:"http://www.w3.org/ns/sparql-service-description#",dcterm:"http://purl.org/dc/terms/",frbr:"http://purl.org/vocab/frbr/core#",stat:"http://www.w3.org/ns/posix/stat#",vcard:"http://www.w3.org/2006/vcard/ns#",commerce:"http://search.yahoo.com/searchmonkey/commerce/",bibo:"http://purl.org/ontology/bibo/",rss:"http://purl.org/rss/1.0/",dbr:"http://dbpedia.org/resource/",gldp:"http://www.w3.org/ns/people#",pto:"http://www.productontology.org/id/",geonames:"http://www.geonames.org/ontology#",fb:"http://rdf.freebase.com/ns/",event:"http://purl.org/NET/c4dm/event.owl#",oo:"http://purl.org/openorg/",wd:"http://www.wikidata.org/entity/",dcmit:"http://purl.org/dc/dcmitype/",content:"http://purl.org/rss/1.0/modules/content/",cc:"http://creativecommons.org/ns#",gen:"http://purl.org/gen/0.1#",doap:"http://usefulinc.com/ns/doap#",http:"http://www.w3.org/2011/http#",dbpprop:"http://dbpedia.org/property/",vann:"http://purl.org/vocab/vann/",rr:"http://www.w3.org/ns/r2rml#",swrc:"http://swrc.ontoware.org/ontology#",drugbank:"http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/",md:"http://www.w3.org/ns/md#",sc:"http://purl.org/science/owl/sciencecommons/",nie:"http://www.semanticdesktop.org/ontologies/2007/01/19/nie#",prog:"http://purl.org/prog/",wot:"http://xmlns.com/wot/0.1/",ma:"http://www.w3.org/ns/ma-ont#",akt:"http://www.aktors.org/ontology/portal#",fn:"http://www.w3.org/2005/xpath-functions#",cv:"http://rdfs.org/resume-rdf/",aiiso:"http://purl.org/vocab/aiiso/schema#",tl:"http://purl.org/NET/c4dm/timeline.owl#",swc:"http://data.semanticweb.org/ns/swc/ontology#",ov:"http://open.vocab.org/terms/",as:"https://www.w3.org/ns/activitystreams#",crm:"http://www.cidoc-crm.org/cidoc-crm/",ical:"http://www.w3.org/2002/12/cal/ical#",daia:"http://purl.org/ontology/daia/",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",xhtml:"http://www.w3.org/1999/xhtml#",earl:"http://www.w3.org/ns/earl#",rel:"http://purl.org/vocab/relationship/",bio:"http://purl.org/vocab/bio/0.1/",rdfg:"http://www.w3.org/2004/03/trix/rdfg-1/",marcrel:"http://id.loc.gov/vocabulary/relators/",mo:"http://purl.org/ontology/mo/",leaks:"https://cuzin.com/",dv:"http://rdf.data-vocabulary.org/#",cs:"http://purl.org/vocab/changeset/schema#",ad:"http://schemas.talis.com/2005/address/schema#",xhv:"http://www.w3.org/1999/xhtml/vocab#",co:"http://purl.org/ontology/co/core#",dc11:"http://purl.org/dc/elements/1.1/",prop:"http://dbpedia.org/property/",bill:"http://www.rdfabout.com/rdf/schema/usbill/",og:"http://opengraphprotocol.org/schema/",afn:"http://jena.apache.org/ARQ/function#",factbook:"http://wifo5-04.informatik.uni-mannheim.de/factbook/ns#",dbowl:"http://ontology.cybershare.utep.edu/dbowl/relational-to-ontology-mapping-primitive.owl#",air:"http://dig.csail.mit.edu/TAMI/2007/amord/air#",test2:"http://this.invalid/test2#",musim:"http://purl.org/ontology/similarity/",unit:"http://qudt.org/vocab/unit/",log:"http://www.w3.org/2000/10/swap/log#",book:"http://purl.org/NET/book/vocab#",xs:"http://www.w3.org/2001/XMLSchema#",mu:"http://mu.semte.ch/vocabularies/core/",ir:"http://www.ontologydesignpatterns.org/cp/owl/informationrealization.owl#",media:"http://search.yahoo.com/searchmonkey/media/",d2rq:"http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#",dcq:"http://purl.org/dc/qualifiers/1.0/",xfn:"http://gmpg.org/xfn/11#",biblio:"http://purl.org/net/biblio#",reco:"http://purl.org/reco#",xf:"http://www.w3.org/2002/xforms/",tag:"http://www.holygoat.co.uk/owl/redwood/0.1/tags/",cld:"http://purl.org/cld/terms/",cal:"http://www.w3.org/2002/12/cal/ical#",ome:"http://purl.org/ontomedia/core/expression#",ctag:"http://commontag.org/ns#",botany:"http://purl.org/NET/biol/botany#",dir:"http://schemas.talis.com/2005/dir/schema#",sism:"http://purl.oclc.org/NET/sism/0.1/",admin:"http://webns.net/mvcb/",days:"http://ontologi.es/days#",xmp:"http://ns.adobe.com/xap/1.0/",rif:"http://www.w3.org/2007/rif#",dcam:"http://purl.org/dc/dcam/",tzont:"http://www.w3.org/2006/timezone#",af:"http://purl.org/ontology/af/",osag:"http://www.ordnancesurvey.co.uk/ontology/AdministrativeGeography/v2.0/AdministrativeGeography.rdf#",rev:"http://purl.org/stuff/rev#",qudt:"http://qudt.org/schema/qudt/",sr:"http://www.openrdf.org/config/repository/sail#",time:"http://www.w3.org/2006/time#",pc:"http://purl.org/procurement/public-contracts#",myspace:"http://purl.org/ontology/myspace#",math:"http://www.w3.org/2000/10/swap/math#",cmp:"http://www.ontologydesignpatterns.org/cp/owl/componency.owl#",memo:"http://ontologies.smile.deri.ie/2009/02/27/memo#",ok:"http://okkam.org/terms#",lomvoc:"http://ltsc.ieee.org/rdf/lomv1p0/vocabulary#",giving:"http://ontologi.es/giving#",jdbc:"http://d2rq.org/terms/jdbc/",swanq:"http://purl.org/swan/1.2/qualifiers/",dcn:"http://www.w3.org/2007/uwa/context/deliverycontext.owl#",sdmx:"http://purl.org/linked-data/sdmx#",cfp:"http://sw.deri.org/2005/08/conf/cfp.owl#",swande:"http://purl.org/swan/1.2/discourse-elements/",omn:"http://open-multinet.info/ontology/omn#",owlim:"http://www.ontotext.com/trree/owlim#",cyc:"http://sw.opencyc.org/concept/",gn:"http://www.geonames.org/ontology#",con:"http://www.w3.org/2000/10/swap/pim/contact#",lyou:"http://purl.org/linkingyou/",skosxl:"http://www.w3.org/2008/05/skos-xl#",oa:"http://www.w3.org/ns/oa#",openlinks:"http://www.openlinksw.com/schemas/virtrdf#",cdm:"http://publications.europa.eu/ontology/cdm#",sdmxdim:"http://purl.org/linked-data/sdmx/2009/dimension#",adms:"http://www.w3.org/ns/adms#",type:"https://webiomed.ai/blog/obzor-rossiiskikh-sistem-podderzhki-priniatiia-vrachebnykh-reshenii/",om:"http://opendata.caceres.es/def/ontomunicipio#",nif:"http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#",ontology:"http://dbpedia.org/ontology/",db:"http://dbpedia.org/",photoshop:"http://ns.adobe.com/photoshop/1.0/",wfs:"http://schemas.opengis.net/wfs/",lemon:"http://lemon-model.net/lemon#",exif:"http://www.w3.org/2003/12/exif/ns#",gvp:"http://vocab.getty.edu/ontology#",ac:"http://umbel.org/umbel/ac/",isbd:"http://iflastandards.info/ns/isbd/elements/",sdmxa:"http://purl.org/linked-data/sdmx/2009/attribute#",xsi:"http://www.w3.org/2001/XMLSchema-instance#",aat:"http://vocab.getty.edu/aat/",fabio:"http://purl.org/spar/fabio/",sh:"http://www.w3.org/ns/shacl#",cert:"http://www.w3.org/ns/auth/cert#",wdt:"http://www.wikidata.org/prop/direct/",dul:"http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#",prism:"http://prismstandard.org/namespaces/basic/2.0/",swrl:"http://www.w3.org/2003/11/swrl#",test:"https://test4.example.com/",cnt:"http://www.w3.org/2011/content#",eat:"http://www.eat.rl.ac.uk/#",tgn:"http://vocab.getty.edu/tgn/",ulan:"http://vocab.getty.edu/ulan/",edm:"http://www.europeana.eu/schemas/edm/",sf:"http://www.opengis.net/ont/sf#",ore:"http://www.openarchives.org/ore/terms/",swrcfe:"http://www.morelab.deusto.es/ontologies/swrcfe#",gtfs:"http://vocab.gtfs.org/terms#",voaf:"http://purl.org/vocommons/voaf#",uniprot:"http://purl.uniprot.org/uniprot/",core:"http://vivoweb.org/ontology/core#",swrlb:"http://www.w3.org/2003/11/swrlb#",eg:"http://www.example.org/",nfo:"http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#",room:"http://vocab.deri.ie/rooms#",ssn:"http://www.w3.org/ns/ssn/",dbc:"http://dbpedia.org/resource/Category:",go:"http://purl.obolibrary.org/obo/GO_",scovo:"http://purl.org/NET/scovo#",lv:"http://purl.org/lobid/lv#",ceo:"https://linkeddata.cultureelerfgoed.nl/def/ceo#",music:"http://musicontology.com/",dbprop:"http://dbpedia.org/property/",movie:"http://data.linkedmdb.org/resource/movie/",fise:"http://fise.iks-project.eu/ontology/",xml:"http://www.w3.org/XML/1998/namespace/",bif:"http://www.openlinksw.com/schemas/bif#",ldp:"http://www.w3.org/ns/ldp#",sioct:"http://rdfs.org/sioc/types#",wikidata:"http://www.wikidata.org/entity/",siocserv:"http://rdfs.org/sioc/services#",itsrdf:"http://www.w3.org/2005/11/its/rdf#",lexinfo:"http://www.lexinfo.net/ontology/3.0/lexinfo#",ro:"http://purl.org/wf4ever/ro#",geoes:"http://geo.linkeddata.es/ontology/",ping:"https://namso-gen.com/",am:"http://vocab.deri.ie/am#",gndo:"http://d-nb.info/standards/elementset/gnd#",coref:"http://www.rkbexplorer.com/ontologies/coref#",pat:"http://purl.org/hpi/patchr#",ptr:"http://www.w3.org/2009/pointers#",cco:"http://www.ontologyrepository.com/CommonCoreOntologies/",nmo:"http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#",mods:"http://www.loc.gov/mods/v3#",loc:"http://purl.org/ontomedia/core/space#",dblp:"http://dblp.uni-trier.de/rdf/schema-2015-01-26#",nao:"http://www.semanticdesktop.org/ontologies/2007/08/15/nao#",acc:"http://purl.org/NET/acc#",nsogi:"http://prefix.cc/nsogi:",gnd:"http://d-nb.info/gnd/",pmlj:"http://inference-web.org/2.0/pml-justification.owl#",dce:"http://purl.org/dc/elements/1.1/",chebi:"http://purl.obolibrary.org/obo/CHEBI_",wp:"http://vocabularies.wikipathways.org/",product:"http://purl.org/commerce/product#",whois:"http://www.kanzaki.com/ns/whois#",bd:"http://www.bigdata.com/rdf#",imm:"http://schemas.microsoft.com/imm/",sparql:"http://www.w3.org/ns/sparql#",gold:"http://purl.org/linguistics/gold/",doc:"http://www.w3.org/2000/10/swap/pim/doc#",leak:"http://maco.com/",up:"http://purl.uniprot.org/core/",cerif:"http://spi-fm.uca.es/neologism/cerif#",rec:"http://purl.org/ontology/rec/core#",gd:"http://rdf.data-vocabulary.org/#",sdo:"https://schema.org/",list:"http://www.w3.org/2000/10/swap/list#",georss:"http://www.georss.org/georss/",sec:"https://w3id.org/security#",java:"http://www.w3.org/2007/uwa/context/java.owl#",meta:"https://krr.triply.cc/krr/sameas-meta/def/",rsa:"http://www.w3.org/ns/auth/rsa#",space:"http://purl.org/net/schemas/space/",ti:"http://www.ontologydesignpatterns.org/cp/owl/timeinterval.owl#",example:"http://www.example.org/rdf#",opm:"https://w3id.org/opm#",xlink:"https://es.scribd.com/doc/79794476/05-Ejercicios-Resueltos-Caja-Negra-y-Recapitulacion/",lgd:"http://linkedgeodata.org/triplify/",cube:"https://cube.link/",akts:"http://www.aktors.org/ontology/support#",geosparql:"http://www.opengis.net/ont/geosparql#",ms:"http://purl.org/obo/owl/MS#",wiki:"http://en.wikipedia.org/wiki/",penn:"http://purl.org/olia/penn.owl#",iot:"http://iotschema.org/",bp:"http://www.biopax.org/release/biopax-level3.owl#",mf:"http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#",acl:"http://www.w3.org/ns/auth/acl#",geof:"http://www.opengis.net/def/function/geosparql/",hg:"http://rdf.histograph.io/",pext:"http://www.ontotext.com/proton/protonext#",video:"http://purl.org/ontology/video#",rdfsharp:"https://rdfsharp.codeplex.com/",cro:"http://rhizomik.net/ontologies/copyrightonto.owl#",cito:"http://purl.org/spar/cito/",sim:"http://www.w3id.org/simulation/ontology/",vivo:"http://vivoweb.org/ontology/core#",st:"http://ns.inria.fr/sparql-template/",httph:"http://www.w3.org/2007/ont/httph#",kb:"http://deductions.sf.net/ontology/knowledge_base.owl#",api:"http://purl.org/linked-data/api/vocab#",dbpediaowl:"http://dbpedia.org/owl/",sp:"http://spinrdf.org/sp#",nt:"http://ns.inria.fr/nicetag/2010/09/09/voc#",wn:"http://xmlns.com/wordnet/1.6/",nco:"http://www.semanticdesktop.org/ontologies/2007/03/22/nco#",acm:"http://www.rkbexplorer.com/ontologies/acm#",xl:"http://langegger.at/xlwrap/vocab#",pim:"http://www.w3.org/ns/pim/space#",exterms:"http://www.example.org/terms/",web:"http://www.w3.org/2007/uwa/context/web.owl#",wgs:"http://www.w3.org/2003/01/geo/wgs84_pos#",dcatapit:"http://dati.gov.it/onto/dcatapit#",atom:"http://www.w3.org/2005/Atom/",olia:"http://purl.org/olia/olia.owl#",bag:"https://bag2.basisregistraties.overheid.nl/bag/def/",cgov:"http://reference.data.gov.uk/def/central-government/",overheid:"http://standaarden.overheid.nl/owms/",sider:"http://www4.wiwiss.fu-berlin.de/sider/resource/sider/",po:"http://purl.org/ontology/po/",lode:"http://linkedevents.org/ontology/",postcode:"http://data.ordnancesurvey.co.uk/id/postcodeunit/",ocd:"http://dati.camera.it/ocd/",sirext:"http://t.me/sirextt/247:",urn:"http://fliqz.com/",pgterms:"http://www.gutenberg.org/2009/pgterms/",dbnary:"http://kaiko.getalp.org/dbnary#",abc:"http://www.metadata.net/harmony/ABCSchemaV5Commented.rdf#",dbkwik:"http://dbkwik.webdatacommons.org/",cidoc:"http://www.cidoc-crm.org/cidoc-crm/",dco:"http://info.deepcarbon.net/schema#",seas:"https://w3id.org/seas/",pav:"http://purl.org/pav/",wdrs:"http://www.w3.org/2007/05/powder-s#",formats:"http://www.w3.org/ns/formats/",service:"http://purl.org/ontology/service#",ean:"http://openean.kaufkauf.net/id/",eu:"http://eulersharp.sourceforge.net/2003/03swap/log-rules#",zoology:"http://purl.org/NET/biol/zoology#",cpa:"http://www.ontologydesignpatterns.org/schemas/cpannotationschema.owl#",ass:"http://uptheasset.org/ontology#",purl:"http://www.purl.org/",lime:"http://www.w3.org/ns/lemon/lime#",admingeo:"http://data.ordnancesurvey.co.uk/ontology/admingeo/",wn20schema:"http://www.w3.org/2006/03/wn/wn20/schema/",smf:"http://topbraid.org/sparqlmotionfunctions#",ecs:"http://rdf.ecs.soton.ac.uk/ontology/ecs#",prv:"http://purl.org/net/provenance/ns#",gsp:"http://www.opengis.net/ont/geosparql#",daml:"http://www.daml.org/2001/03/daml+oil#",dcm:"http://purl.org/dc/dcmitype/",rdfdf:"http://www.openlinksw.com/virtrdf-data-formats#",pr:"http://purl.org/ontology/prv/core#",ontolex:"http://www.w3.org/ns/lemon/ontolex#",role:"https://w3id.org/role/",resource:"http://dbpedia.org/resource/",swid:"http://semanticweb.org/id/",edam:"http://edamontology.org/",ya:"http://blogs.yandex.ru/schema/foaf/",irw:"http://www.ontologydesignpatterns.org/ont/web/irw.owl#",name:"http://example.org/name#",greg:"http://kasei.us/about/foaf.xrdf#",hydra:"http://www.w3.org/ns/hydra/core#",spin:"http://spinrdf.org/spin#",ignf:"http://data.ign.fr/def/ignf#",scot:"http://rdfs.org/scot/ns#",ndl:"http://schemas.ogf.org/nml/2013/05/base#",wo:"http://purl.org/ontology/wo/",xkos:"http://rdf-vocabulary.ddialliance.org/xkos#",omt:"http://purl.org/ontomedia/ext/common/trait#",pmt:"http://tipsy.googlecode.com/svn/trunk/vocab/pmt#",user:"http://schemas.talis.com/2005/user/schema#",umbelrc:"http://umbel.org/umbel/rc/",wikipedia:"https://en.wikipedia.org/wiki/",myspo:"http://purl.org/ontology/myspace#",agg:"http://purl.org/twc/health/vocab/aggregate/",organism:"http://eulersharp.sourceforge.net/2003/03swap/organism#",site:"http://ns.ontowiki.net/SysOnt/Site/",res:"http://dbpedia.org/resource/",sdl:"http://purl.org/vocab/riro/sdl#",euvoc:"http://publications.europa.eu/ontology/euvoc#",bmo:"http://collection.britishmuseum.org/id/ontology/",faldo:"http://biohackathon.org/resource/faldo#",blt:"http://www.bl.uk/schemas/bibliographic/blterms#",sesame:"http://www.openrdf.org/schema/sesame#",resist:"http://www.rkbexplorer.com/ontologies/resist#",iao:"http://purl.obolibrary.org/obo/IAO_",inno:"http://purl.org/innovation/ns#",premis:"http://www.loc.gov/premis/rdf/v3/",bing:"http://bing.com/schema/media/",label:"http://purl.org/net/vocab/2004/03/label#",prj:"http://purl.org/stuff/project/",npg:"http://ns.nature.com/terms/",fresnel:"http://www.w3.org/2004/09/fresnel#",omb:"http://purl.org/ontomedia/ext/common/being#",rov:"http://www.w3.org/ns/regorg#",saref:"https://saref.etsi.org/core/",biol:"http://purl.org/NET/biol/ns#",iso:"http://purl.org/iso25964/skos-thes#",bibframe:"http://id.loc.gov/ontologies/bibframe/",won:"https://w3id.org/won/core#",link:"http://www.w3.org/2007/ont/link#",audio:"http://purl.org/media/audio#",tmo:"http://www.semanticdesktop.org/ontologies/2008/05/20/tmo#",sit:"http://www.ontologydesignpatterns.org/cp/owl/situation.owl#",fed:"http://www.openrdf.org/config/sail/federation#",swp:"http://www.w3.org/2004/03/trix/swp-2/",biocore:"http://bio2rdf.org/core#",mm:"http://linkedmultimedia.org/sparql-mm/ns/2.0.0/function#",umbel:"http://umbel.org/umbel#",phil:"http://philosurfical.open.ac.uk/ontology/philosurfical.owl#",uco:"http://purl.org/uco/ns#",wgs84:"http://www.w3.org/2003/01/geo/wgs84_pos#",food:"http://purl.org/foodontology#",cordis:"http://cordis.europa.eu/projects/",rdau:"http://rdaregistry.info/Elements/u/",gist:"http://ontologies.semanticarts.com/gist#",ero:"http://purl.obolibrary.org/obo/",wv:"http://vocab.org/waiver/terms/",ref:"http://purl.org/vocab/relationship/",sml:"https://w3id.org/sml/def#",oad:"http://lod.xdams.org/reload/oad/",spl:"http://spinrdf.org/spl#",lx:"http://purl.org/NET/lx#",es:"http://eulersharp.sourceforge.net/2003/03swap/log-rules#",conv:"http://purl.org/twc/vocab/conversion/",ps:"https://w3id.org/payswarm#",acco:"http://purl.org/acco/ns#",code:"http://telegraphis.net/ontology/measurement/code#",sco:"http://purl.org/ontology/sco#",rnews:"http://iptc.org/std/rNews/2011-10-07#",ub:"http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#",protege:"http://protege.stanford.edu/system#",lgdo:"http://linkedgeodata.org/ontology/",oc:"http://opencoinage.org/rdf/",doac:"http://ramonantonio.net/doac/0.1/#",taxo:"http://purl.org/rss/1.0/modules/taxonomy/",rail:"http://ontologi.es/rail/vocab#",ludo:"http://ns.inria.fr/ludo/v1#",cpm:"http://catalogus-professorum.org/cpm/2/",opensearch:"http://a9.com/-/spec/opensearch/1.1/",so:"http://schema.org/",efo:"http://www.ebi.ac.uk/efo/",linkedmdb:"http://data.linkedmdb.org/",airport:"http://www.daml.org/2001/10/html/airport-ont#",bio2rdf:"http://bio2rdf.org/",spc:"http://purl.org/ontomedia/core/space#",meteo:"http://purl.org/ns/meteo#",bne:"http://datos.bne.es/resource/",awol:"http://bblfish.net/work/atom-owl/2006-06-06/#",dctype:"http://purl.org/dc/dcmitype/",omp:"http://purl.org/ontomedia/ext/common/profession#",granatum:"http://chem.deri.ie/granatum/",dwc:"http://rs.tdwg.org/dwc/terms/",lom:"http://ltsc.ieee.org/rdf/lomv1p0/lom#",disco:"http://rdf-vocabulary.ddialliance.org/discovery#",act:"http://www.w3.org/2007/rif-builtin-action#",taxon:"http://purl.org/biodiversity/taxon/",net:"http://www.w3.org/2007/uwa/context/network.owl#",gpt:"http://purl.org/vocab/riro/gpt#",mit:"http://purl.org/ontology/mo/mit#",isothes:"http://purl.org/iso25964/skos-thes#",lu:"http://www.ontologydesignpatterns.org/ont/framenet/abox/lu/",ao:"http://purl.org/ontology/ao/core#",sport:"http://purl.org/ontology/sport/",hp:"http://purl.org/voc/hp/",gso:"http://www.w3.org/2006/gen/ont#",xhe:"http://buzzword.org.uk/rdf/xhtml-elements#",frir:"http://purl.org/twc/ontology/frir.owl#",powder:"http://www.w3.org/2007/05/powder#",omm:"http://purl.org/ontomedia/core/media#",bibtex:"http://purl.org/net/nknouf/ns/bibtex#",wordnet:"http://wordnet-rdf.princeton.edu/ontology#",fec:"http://www.rdfabout.com/rdf/schema/usfec/",asn:"http://purl.org/ASN/schema/core/",tdb:"http://jena.hpl.hp.com/2008/tdb#",atomix:"http://buzzword.org.uk/rdf/atomix#",pbo:"http://purl.org/ontology/pbo/core#",orges:"http://datos.gob.es/def/sector-publico/organizacion#",rep:"http://www.openrdf.org/config/repository#",obj:"http://www.openrdf.org/rdf/2009/object#",library:"http://purl.org/library/",compass:"http://purl.org/net/compass#",lfm:"http://purl.org/ontology/last-fm/",crypto:"http://www.w3.org/2000/10/swap/crypto#",rdrel:"http://rdvocab.info/RDARelationshipsWEMI/",doclist:"http://www.junkwork.net/xml/DocumentList#",rei:"http://www.w3.org/2004/06/rei#",os:"http://www.w3.org/2000/10/swap/os#",vra:"http://purl.org/vra/",cheminf:"http://www.semanticweb.org/ontologies/cheminf.owl#",fbgeo:"http://rdf.freebase.com/ns/location/geocode/",mime:"https://www.iana.org/assignments/media-types/",muto:"http://purl.org/muto/core#",lang:"http://ontologi.es/lang/core#",pom:"http://maven.apache.org/POM/4.0.0#",txn:"http://lod.taxonconcept.org/ontology/txn.owl#",oauth:"http://demiblog.org/vocab/oauth#",affy:"http://www.affymetrix.com/community/publications/affymetrix/tmsplice#",ire:"http://www.ontologydesignpatterns.org/cpont/ire.owl#",ngeo:"http://geovocab.org/geometry#",ddc:"http://purl.org/NET/decimalised#",money:"http://purl.org/net/rdf-money/",conversion:"http://purl.org/twc/vocab/conversion/",game:"http://data.totl.net/game/",eco:"http://www.ebusiness-unibw.org/ontologies/eclass/5.1.4/#",custom:"http://www.openrdf.org/config/sail/custom#",vocab:"http://rdf.ontology2.com/vocab#",swh:"http://plugin.org.uk/swh-plugins/",soft:"http://www.w3.org/2007/uwa/context/software.owl#",contact:"http://www.w3.org/2000/10/swap/pim/contact#",xen:"http://buzzword.org.uk/rdf/xen#",hard:"http://www.w3.org/2007/uwa/context/hardware.owl#",lfn:"http://www.dotnetrdf.org/leviathan#",nrl:"http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#",politico:"http://www.rdfabout.com/rdf/schema/politico/",dailymed:"http://www4.wiwiss.fu-berlin.de/dailymed/resource/dailymed/",vsr:"http://purl.org/twc/vocab/vsr#",string:"http://www.w3.org/2000/10/swap/string#",bib:"http://zeitkunst.org/bibtex/0.1/bibtex.owl#",bfo:"http://purl.obolibrary.org/obo/",sede:"http://eventography.org/sede/0.1/",omc:"http://purl.org/ontomedia/ext/common/bestiary#",climb:"http://climb.dataincubator.org/vocabs/climb/",usgov:"http://www.rdfabout.com/rdf/schema/usgovt/",ct:"http://data.linkedct.org/resource/linkedct/",interval:"http://reference.data.gov.uk/def/intervals/",bbc:"http://www.bbc.co.uk/ontologies/news/",soc:"http://purl.org/net/hdlipcores/ontology/soc#",locn:"http://www.w3.org/ns/locn#",stanford:"http://purl.org/olia/stanford.owl#",cycann:"http://sw.cyc.com/CycAnnotations_v1#",aos:"http://rdf.muninn-project.org/ontologies/appearances#",apivc:"http://purl.org/linked-data/api/vocab#",aifb:"http://www.aifb.kit.edu/id/",person:"http://www.w3.org/ns/person#",ui:"http://www.w3.org/ns/ui#",scv:"http://purl.org/NET/scovo#",rdac:"http://rdaregistry.info/Elements/c/",deo:"http://purl.org/spar/deo/",isq:"http://purl.org/ontology/is/quality/",coo:"http://purl.org/coo/ns#",bsb:"http://opacplus.bsb-muenchen.de/title/",coin:"http://purl.org/court/def/2009/coin#",eli:"http://data.europa.eu/eli/ontology#",sv:"http://schemas.talis.com/2005/service/schema#",biopax:"http://www.biopax.org/release/biopax-level3.owl#",xro:"http://purl.org/xro/ns#",dnr:"http://www.dotnetrdf.org/configuration#",pro:"http://purl.org/hpi/patchr#",sosa:"http://www.w3.org/ns/sosa/",vso:"http://purl.org/vso/ns#",mysql:"http://web-semantics.org/ns/mysql/",courseware:"http://courseware.rkbexplorer.com/ontologies/courseware#",lvont:"http://lexvo.org/ontology#",is:"http://purl.org/ontology/is/core#",xds:"http://www.w3.org/2001/XMLSchema#",zem:"http://s.zemanta.com/ns#",rs:"http://rightsstatements.org/vocab/",arch:"http://purl.org/archival/vocab/arch#",cex:"http://purl.org/weso/ontology/computex#",com:"http://purl.org/commerce#",arg:"http://rdfs.org/sioc/argument#",push:"http://www.w3.org/2007/uwa/context/push.owl#",ic:"http://imi.go.jp/ns/core/rdf#",chord:"http://purl.org/ontology/chord/",pdo:"http://ontologies.smile.deri.ie/pdo#",yoda:"http://purl.org/NET/yoda#",dt:"http://w3id.org/dt#",isi:"http://purl.org/ontology/is/inst/",gob:"http://purl.org/ontology/last-fm/",gml:"http://www.opengis.net/ont/gml#",worldbank:"http://worldbank.270a.info/dataset/",states:"http://www.w3.org/2005/07/aaa#",prot:"http://www.proteinontology.info/po.owl#",moat:"http://moat-project.org/ns#",uri:"http://purl.org/NET/uri#",dbpp:"http://dbpedia.org/property/",dso:"http://purl.org/ontology/dso#",muo:"http://purl.oclc.org/NET/muo/muo#",ttl:"http://www.w3.org/2008/turtle#",cpv:"http://purl.org/weso/cpv/",city:"http://datos.localidata.com/def/City#",pmlr:"http://inference-web.org/2.0/pml-relation.owl#",dady:"http://purl.org/NET/dady#",ist:"http://purl.org/ontology/is/types/",conserv:"http://conserv.deri.ie/ontology#",pos:"http://www.w3.org/2003/01/geo/wgs84_pos#",wdr:"http://www.w3.org/2007/05/powder#",freebase:"http://rdf.freebase.com/ns/",cogs:"http://vocab.deri.ie/cogs#",swanco:"http://purl.org/swan/1.2/swan-commons/",resex:"http://resex.rkbexplorer.com/ontologies/resex#",fea:"http://vocab.data.gov/def/fea#",odrl:"http://www.w3.org/ns/odrl/2/",lex:"http://purl.org/lex#",article:"http://ogp.me/ns/article#",dcmitype:"http://purl.org/dc/dcmitype/",profiling:"http://ontologi.es/profiling#",payment:"http://reference.data.gov.uk/def/payment#",xforms:"http://www.w3.org/2002/xforms/",nexif:"http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#",viaf:"http://viaf.org/viaf/",tio:"http://purl.org/tio/ns#",nsa:"http://multimedialab.elis.ugent.be/organon/ontologies/ninsuna#",hlisting:"http://sindice.com/hlisting/0.1/",voag:"http://voag.linkedmodel.org/schema/voag#",posh:"http://poshrdf.org/ns/posh/",address:"http://schemas.talis.com/2005/address/schema#",lotico:"http://www.lotico.com/resource/",swivt:"http://semantic-mediawiki.org/swivt/1.0#",opo:"http://online-presence.net/opo/ns#",toby:"http://tobyinkster.co.uk/#",evset:"http://dsnotify.org/vocab/eventset/0.1/",psys:"http://proton.semanticweb.org/protonsys#",rlog:"http://persistence.uni-leipzig.org/nlp2rdf/ontologies/rlog#",cos:"http://www.inria.fr/acacia/corese#",vote:"http://www.rdfabout.com/rdf/schema/vote/",meetup:"http://www.lotico.com/meetup/",rooms:"http://vocab.deri.ie/rooms#",pay:"http://reference.data.gov.uk/def/payment#",puc:"http://purl.org/NET/puc#",anca:"http://users.utcluj.ro/~raluca/rdf_ontologies_ralu/ralu_modified_ontology_pizzas2_0#",lifecycle:"http://purl.org/vocab/lifecycle/schema#",bsbm:"http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/",wlp:"http://weblab-project.org/core/model/property/processing/",datafaqs:"http://purl.org/twc/vocab/datafaqs#",sail:"http://www.openrdf.org/config/sail#",teach:"http://linkedscience.org/teach/ns#",common:"http://www.w3.org/2007/uwa/context/common.owl#",sysont:"http://ns.ontowiki.net/SysOnt/",ldap:"http://purl.org/net/ldap/",rda:"http://www.rdaregistry.info/",wi:"http://purl.org/ontology/wi/core#",lingvoj:"http://www.lingvoj.org/ontology#",p3p:"http://www.w3.org/2002/01/p3prdfv1#",tags:"http://www.holygoat.co.uk/owl/redwood/0.1/tags/",lp:"http://launchpad.net/rdf/launchpad#",rdfa:"http://www.w3.org/ns/rdfa#",dcr:"http://www.isocat.org/ns/dcr.rdf#",swanqs:"http://purl.org/swan/1.2/qualifiers/",fab:"http://purl.org/fab/ns#",eclap:"http://www.eclap.eu/schema/eclap/",ddl:"http://purl.org/vocab/riro/ddl#",nuts:"http://dd.eionet.europa.eu/vocabulary/common/nuts/",like:"http://ontologi.es/like#",sem:"http://semanticweb.cs.vu.nl/2009/11/sem/",psych:"http://purl.org/vocab/psychometric-profile/",oboinowl:"http://www.geneontology.org/formats/oboInOwl#",enc:"http://www.w3.org/2001/04/xmlenc#",ann:"http://www.w3.org/2000/10/annotation-ns#",wnschema:"http://www.cogsci.princeton.edu/~wn/schema/",bte:"http://purl.org/twc/vocab/between-the-edges/",wai:"http://purl.org/wai#",pobo:"http://purl.obolibrary.org/obo/",cdt:"https://w3id.org/cdt/",cmo:"http://purl.org/twc/ontologies/cmo.owl#",oslc:"http://open-services.net/ns/core#",kwijibo:"http://kwijibo.talis.com/",play:"http://uriplay.org/spec/ontology/#",br:"http://vocab.deri.ie/br#",algo:"http://securitytoolbox.appspot.com/securityAlgorithms#",eztag:"http://ontologies.ezweb.morfeo-project.org/eztag/ns#",drug:"http://www.agfa.com/w3c/2009/drugTherapy#",care:"http://eulersharp.sourceforge.net/2003/03swap/care#",vitro:"http://vitro.mannlib.cornell.edu/ns/vitro/public#",oboe:"http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#",bridge:"http://purl.org/vocommons/bridge#",irrl:"http://www.ontologydesignpatterns.org/cp/owl/informationobjectsandrepresentationlanguages.owl#",prissma:"http://ns.inria.fr/prissma/v1#",lastfm:"http://purl.org/ontology/last-fm/",sl:"http://www.semanlink.net/2001/00/semanlink-schema#",pol:"http://escience.rpi.edu/ontology/semanteco/2/0/pollution.owl#",mei:"http://www.music-encoding.org/ns/mei/",ogp:"http://ogp.me/ns#",mygrid:"http://www.mygrid.org.uk/ontology#",fo:"http://www.w3.org/1999/XSL/Format#",esd:"http://def.esd.org.uk/",r2rml:"http://www.w3.org/ns/r2rml#",grddl:"http://www.w3.org/2003/g/data-view#",phss:"http://ns.poundhill.com/phss/1.0/",oat:"http://openlinksw.com/schemas/oat/",fls:"http://lukasblaho.sk/football_league_schema#",olo:"http://purl.org/ontology/olo/core#",h5:"http://buzzword.org.uk/rdf/h5#",uni:"http://purl.org/weso/uni/uni.html#",wordmap:"http://purl.org/net/ns/wordmap#",tarot:"http://data.totl.net/tarot/card/",iswc:"http://annotation.semanticweb.org/2004/iswc#",sm:"http://topbraid.org/sparqlmotion#",b2bo:"http://purl.org/b2bo#",hospital:"http://www.agfa.com/w3c/2009/hospital#",swandr:"http://purl.org/swan/1.2/discourse-relationships/",remus:"http://www.semanticweb.org/ontologies/2010/6/Ontology1279614123500.owl#",osn:"http://spatial.ucd.ie/lod/osn/",ezcontext:"http://ontologies.ezweb.morfeo-project.org/ezcontext/ns#",lt:"http://diplomski.nelakolundzija.org/LTontology.rdf#",ne:"http://umbel.org/umbel/ne/",smiley:"http://www.smileyontology.com/ns#",calli:"http://callimachusproject.org/rdf/2009/framework#",places:"http://purl.org/ontology/places#",ibis:"http://purl.org/ibis#",sioca:"http://rdfs.org/sioc/actions#",geom:"http://data.ign.fr/def/geometrie#",hcterms:"http://purl.org/uF/hCard/terms/",human:"http://eulersharp.sourceforge.net/2003/03swap/human#",rulz:"http://purl.org/NET/rulz#",rdagr1:"http://rdvocab.info/Elements/",pimo:"http://www.semanticdesktop.org/ontologies/2007/11/01/pimo#",countries:"http://eulersharp.sourceforge.net/2003/03swap/countries#",recipe:"http://linkedrecipes.org/schema/",oac:"https://w3id.org/oac#",ppo:"http://vocab.deri.ie/ppo#",cdc:"https://w3id.org/cdc#",status:"http://www.w3.org/2003/06/sw-vocab-status/ns#",httpvoc:"http://www.w3.org/2006/http#",data:"http://data.odw.tw/",aapi:"http://rdf.alchemyapi.com/rdf/v1/s/aapi-schema#",session:"http://redfoot.net/2005/session#",np:"http://www.nanopub.org/nschema#",omv:"http://omv.ontoware.org/2005/05/ontology#",card:"http://www.ashutosh.com/test/",reve:"http://data.eurecom.fr/ontology/reve#",sql:"http://ns.inria.fr/ast/sql#",icaltzd:"http://www.w3.org/2002/12/cal/icaltzd#",dnb:"http://d-nb.info/gnd/",san:"http://www.irit.fr/recherches/MELODI/ontologies/SAN#",wbc:"http://worldbank.270a.info/classification/",pml:"http://provenanceweb.org/ns/pml#",rdaa:"http://rdaregistry.info/Elements/a/",wfm:"http://purl.org/net/wf-motifs#",osoc:"http://web-semantics.org/ns/opensocial#",webtlab:"http://webtlab.it.uc3m.es/",tr:"http://www.thomsonreuters.com/",ebucore:"http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#",cao:"http://purl.org/makolab/caont/",esdir:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/direccion-postal#",xmls:"http://www.w3.org/2001/XMLSchema#",wgspos:"http://www.w3.org/2003/01/geo/wgs84_pos#",okkam:"http://models.okkam.org/ENS-core-vocabulary#",arpfo:"http://vocab.ouls.ox.ac.uk/projectfunding#",dbt:"http://dbpedia.org/resource/Template:",csvw:"http://www.w3.org/ns/csvw#",scsv:"http://purl.org/NET/schema-org-csv#",prf:"http://www.openmobilealliance.org/tech/profiles/UAPROF/ccppschema-20021212#",wisski:"http://wiss-ki.eu/",units:"http://eulersharp.sourceforge.net/2003/03swap/units#",wl:"http://www.wsmo.org/ns/wsmo-lite#",geospecies:"http://rdf.geospecies.org/ont/geospecies#",wsc:"http://www.openk.org/wscaim.owl#",opwn:"http://www.ontologyportal.org/WordNet.owl#",elog:"http://eulersharp.sourceforge.net/2003/03swap/log-rules#",ple:"http://pleiades.stoa.org/places/",zbwext:"http://zbw.eu/namespaces/zbw-extensions/",infosys:"http://www.infosys.com/",span:"http://www.ifomis.org/bfo/1.1/span#",derecho:"http://purl.org/derecho#",geofla:"http://data.ign.fr/ontologies/geofla#",mp:"http://jicamaro.info/mp#",agent:"http://eulersharp.sourceforge.net/2003/03swap/agent#",agents:"http://eulersharp.sourceforge.net/2003/03swap/agent#",imreg:"http://www.w3.org/2004/02/image-regions#",pmlt:"http://inference-web.org/2.0/pml-trust.owl#",pccz:"http://purl.org/procurement/public-contracts-czech#",wbp:"http://worldbank.270a.info/property/",agro:"http://purl.obolibrary.org/obo/agro.owl#",cb:"http://cbasewrap.ontologycentral.com/vocab#",gridworks:"http://purl.org/net/opmv/types/gridworks#",geographis:"http://telegraphis.net/ontology/geography/geography#",marl:"http://www.gsi.dit.upm.es/ontologies/marl/ns#",rdo:"http://purl.org/rdo/ns#",dita:"http://purl.org/dita/ns#",pmlp:"http://inference-web.org/2.0/pml-provenance.owl#",ncal:"http://www.semanticdesktop.org/ontologies/2007/04/02/ncal#",qdoslf:"http://foaf.qdos.com/lastfm/schema/",plink:"http://buzzword.org.uk/rdf/personal-link-types#",opus:"http://lsdis.cs.uga.edu/projects/semdis/opus#",osgb:"http://data.ordnancesurvey.co.uk/id/",html:"http://www.w3.org/1999/xhtml/",kontakt:"http://richard.cyganiak.de/",qa:"http://www.mit.jyu.fi/ai/TRUST_Ontologies/QA.owl#",sindice:"http://vocab.sindice.net/",prefix:"http://prefix.cc/",provenir:"http://knoesis.wright.edu/provenir/provenir.owl#",shv:"http://ns.aksw.org/spatialHierarchy/",dis:"http://stanbol.apache.org/ontology/disambiguation/disambiguation#",open:"http://open.vocab.org/terms/",r2r:"http://www4.wiwiss.fu-berlin.de/bizer/r2r/",c4n:"http://vocab.deri.ie/c4n#",dsp:"http://purl.org/metainfo/terms/dsp#",pns:"http://data.press.net/ontology/stuff/",visit:"http://purl.org/net/vocab/2004/07/visit#",timeline:"http://purl.org/NET/c4dm/timeline.owl#",ncbitaxon:"http://purl.obolibrary.org/obo/NCBITaxon_",nid3:"http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#",hxl:"http://hxl.humanitarianresponse.info/ns/#",organiz:"http://eulersharp.sourceforge.net/2003/03swap/organization#",wairole:"http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#",dgtwc:"http://data-gov.tw.rpi.edu/2009/data-gov-twc.rdf#",muni:"http://vocab.linkeddata.es/urbanismo-infraestructuras/territorio#",life:"http://life.deri.ie/schema/",swanpav:"http://purl.org/swan/1.2/pav/",dummy:"http://hello.com/",osr:"http://dati.senato.it/osr/",lr:"http://linkedrecipes.org/schema/",ens:"http://models.okkam.org/ENS-core-vocabulary.owl#",gv:"http://rdf.data-vocabulary.org/#",req:"http://purl.org/req/",agetec:"http://www.agetec.org/",frbre:"http://purl.org/vocab/frbr/extended#",prvtypes:"http://purl.org/net/provenance/types#",odp:"http://ontologydesignpatterns.org/",aair:"http://xmlns.notu.be/aair#",hemogram:"http://www.agfa.com/w3c/2009/hemogram#",out:"http://ontologies.hypios.com/out#",pubmed:"http://bio2rdf.org/pubmed_vocabulary:",meb:"http://rdf.myexperiment.org/ontologies/base/",vaem:"http://www.linkedmodel.org/schema/vaem#",xsl:"http://www.w3.org/1999/XSL/Transform#",nex:"http://www.nexml.org/2009/",set:"http://www.w3.org/2000/10/swap/set#",aims:"http://aims.fao.org/aos/common/",ecb:"http://ecb.270a.info/class/1.0/",xhtmlvocab:"http://www.w3.org/1999/xhtml/vocab/",copyright:"http://rhizomik.net/ontologies/copyrightonto.owl#",xt:"http://purl.org/twc/vocab/cross-topix#",un:"http://www.w3.org/2007/ont/unit#",parl:"https://id.parliament.uk/schema/",visko:"http://trust.utep.edu/visko/ontology/visko-operator-v3.owl#",fowl:"http://www.w3.org/TR/2003/PR-owl-guide-20031209/food#",rdapo:"http://rdaregistry.info/Elements/p/object/",eprints:"http://eprints.org/ontology/",trackback:"http://madskills.com/public/xml/rss/module/trackback/",wao:"http://webtlab.it.uc3m.es/2010/10/WebAppsOntology#",pna:"http://data.press.net/ontology/asset/",tripfs:"http://purl.org/tripfs/2010/02#",lark1:"http://users.utcluj.ro/~raluca/ontology/Ontology1279614123500.owl#",carfo:"http://purl.org/carfo#",geodata:"http://sws.geonames.org/",grel:"http://users.ugent.be/~bjdmeest/function/grel.ttl#",spatial:"http://geovocab.org/spatial#",skip:"http://skipforward.net/skipforward/resource/",wapp:"http://ns.rww.io/wapp#",swanci:"http://purl.org/swan/1.2/citations/",ops:"https://w3id.org/ops#",eye:"http://jena.hpl.hp.com/Eyeball#",sdm:"https://w3id.org/okn/o/sdm#",emotion:"http://ns.inria.fr/emoca#",emp:"http://purl.org/ctic/empleo/oferta#",admssw:"http://purl.org/adms/sw/",archdesc:"http://archdesc.info/archEvent#",aneo:"http://akonadi-project.org/ontologies/aneo#",rv:"https://data.elsevier.com/research/schema/rv/",oper:"http://sweet.jpl.nasa.gov/2.0/mathOperation.owl#",fl:"http://eulersharp.sourceforge.net/2003/03swap/fl-rules#",rdam:"http://rdaregistry.info/Elements/m/",kdo:"http://kdo.render-project.eu/kdo#",ospost:"http://data.ordnancesurvey.co.uk/ontology/postcode/",fd:"http://foodable.co/ns/",fno:"https://w3id.org/function/ontology#",pne:"http://data.press.net/ontology/event/",soap:"http://www.w3.org/2003/05/soap-envelope/",gelo:"http://krauthammerlab.med.yale.edu/ontologies/gelo#",doco:"http://purl.org/spar/doco/",evopat:"http://ns.aksw.org/Evolution/",xesam:"http://freedesktop.org/standards/xesam/1.0/core#",dayta:"http://dayta.me/resource#",commons:"http://commons.psi.enakting.org/def/",nsl:"http://purl.org/ontology/storyline/",prolog:"http://eulersharp.sourceforge.net/2003/03swap/prolog#",dtype:"http://www.linkedmodel.org/schema/dtype#",languages:"http://eulersharp.sourceforge.net/2003/03swap/languages#",sdgp:"http://stats.data-gov.ie/property/",metalex:"http://www.metalex.eu/schema/1.0#",hgnc:"http://bio2rdf.org/hgnc:",ipad:"http://www.padinthecity.com/",xfnv:"http://vocab.sindice.com/xfn#",dive:"http://scubadive.networld.to/dive.rdf#",pam:"http://prismstandard.org/namespaces/pam/2.0/",re:"http://www.w3.org/2000/10/swap/reason#",atomowl:"http://bblfish.net/work/atom-owl/2006-06-06/#",ccom:"http://purl.org/ontology/cco/mappings#",sawsdl:"http://www.w3.org/ns/sawsdl#",comm:"http://vocab.resc.info/communication#",bioskos:"http://eulersharp.sourceforge.net/2003/03swap/bioSKOSSchemes#",semtweet:"http://semantictweet.com/",tei:"http://www.tei-c.org/ns/1.0/",rad:"http://www.w3.org/ns/rad#",aigp:"http://swat.cse.lehigh.edu/resources/onto/aigp.owl#",ecpo:"http://purl.org/ontology/ecpo#",tcga:"http://purl.org/tcga/core#",psh:"http://ns.inria.fr/probabilistic-shacl/",gc:"http://www.oegov.org/core/owl/gc#",dgfoaf:"http://west.uni-koblenz.de/ontologies/2010/07/dgfoaf.owl#",sig:"http://purl.org/signature#",tvc:"http://www.essepuntato.it/2012/04/tvc/",oj:"http://ontojob.at/",decl:"http://www.linkedmodel.org/1.0/schema/decl#",func:"http://www.w3.org/2007/rif-builtin-function#",fc:"http://www.freeclass.eu/freeclass_v1#",dssn:"http://purl.org/net/dssn/",orca:"http://geni-orca.renci.org/owl/topology.owl#",oboro:"http://obofoundry.org/ro/ro.owl#",agrelon:"http://d-nb.info/standards/elementset/agrelon#",linkedct:"http://data.linkedct.org/vocab/",frame:"http://www.ontologydesignpatterns.org/ont/framenet/abox/frame/",nndsr:"http://semanticdiet.com/schema/usda/nndsr/",quak:"http://dev.w3.org/cvsweb/2000/quacken/vocab#",opmv:"http://purl.org/net/opmv/ns#",geop:"http://aims.fao.org/aos/geopolitical.owl#",xch:"http://oanda2rdf.appspot.com/xch/",fcm:"http://eulersharp.sourceforge.net/2006/02swap/fcm#",igeo:"http://rdf.insee.fr/def/geo#",swpo:"http://sw-portal.deri.org/ontologies/swportal#",theatre:"http://purl.org/theatre#",sad:"http://vocab.deri.ie/sad#",aersv:"http://aers.data2semantics.org/vocab/",nxp:"http://purl.org/nxp/schema/v1/",transit:"http://vocab.org/transit/terms/",spif:"http://spinrdf.org/spif#",bookmark:"http://www.w3.org/2002/01/bookmark#",tripfs2:"http://purl.org/tripfs/2010/06#",coeus:"http://bioinformatics.ua.pt/coeus/",enhancer:"http://stanbol.apache.org/ontology/enhancer/enhancer#",oboso:"http://purl.org/obo/owl/SO#",gxa:"http://www.ebi.ac.uk/gxa/",xbrli:"http://www.xbrl.org/2003/instance#",rso:"http://www.researchspace.org/ontology/",nyt:"http://data.nytimes.com/",eseduc:"http://www.purl.org/ontologia/eseduc#",td:"https://www.w3.org/2019/wot/td#",ling:"http://purl.org/voc/ling/",tp:"https://triplydb.com/Triply/tp/def/",mte:"http://nl.ijs.si/ME/owl/",iron:"http://purl.org/ontology/iron#",dbpo:"http://dbpedia.org/ontology/",rlno:"http://rdflivenews.aksw.org/ontology/",qu:"http://purl.oclc.org/NET/ssnx/qu/qu#",protons:"http://proton.semanticweb.org/2005/04/protons#",w3p:"http://prov4j.org/w3p/",events:"http://eulersharp.sourceforge.net/2003/03swap/event#",cidoccrm:"http://purl.org/NET/cidoc-crm/core#",dl:"http://ontology.ip.rm.cnr.it/ontologies/DOLCE-Lite#",httpm:"http://www.w3.org/2011/http-methods#",prvr:"http://purl.org/ontology/prv/rules#",json:"https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf#",rich:"http://rdf.data-vocabulary.org/",myprefix:"http://myprefix.org/",telix:"http://purl.org/telix#",c4o:"http://purl.org/spar/c4o/",gazetteer:"http://data.ordnancesurvey.co.uk/ontology/50kGazetteer/",htir:"http://www.w3.org/2011/http#",estrn:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/transporte#",sgv:"http://www.w3.org/TR/SVG/",owls:"http://www.daml.org/services/owl-s/1.2/Service.owl#",no:"http://km.aifb.kit.edu/projects/numbers/number#",frapo:"http://purl.org/cerif/frapo/",rpubl:"http://rinfo.lagrummet.se/ns/2008/11/rinfo/publ#",moby:"http://www.mygrid.org.uk/mygrid-moby-service#",ecc:"https://ns.eccenca.com/",oax:"http://www.w3.org/ns/openannotation/extensions/",kw:"http://kwantu.net/kw/",fct:"http://openlinksw.com/services/facets/1.0/",scowt:"http://purl.org/weso/ontologies/scowt#",coun:"http://www.daml.org/2001/09/countries/iso-3166-ont#",mesh:"http://id.nlm.nih.gov/mesh/",tmpl:"http://purl.org/restdesc/http-template#",frad:"http://iflastandards.info/ns/fr/frad/",artstor:"http://simile.mit.edu/2003/10/ontologies/artstor#",wf:"http://www.w3.org/2005/01/wf/flow#",humanbody:"http://eulersharp.sourceforge.net/2003/03swap/humanBody#",wm:"http://ns.inria.fr/webmarks#",arecipe:"http://purl.org/amicroformat/arecipe/",rdaw:"http://rdaregistry.info/Elements/w/",fingal:"http://vocab.deri.ie/fingal#",govtrackus:"http://www.rdfabout.com/rdf/usgov/geo/us/",gbv:"http://purl.org/ontology/gbv/",ext:"http://mu.semte.ch/vocabularies/ext/",jita:"http://aims.fao.org/aos/jita/",lgv:"http://linkedgeodata.org/ontology/",oecd:"http://oecd.270a.info/dataset/",ccard:"http://purl.org/commerce/creditcard#",swanag:"http://purl.org/swan/1.2/agents/",ru:"http://purl.org/imbi/ru-meta.owl#",pf:"http://jena.hpl.hp.com/ARQ/property#",owltime:"http://www.w3.org/TR/owl-time#",clineva:"http://www.agfa.com/w3c/2009/clinicalEvaluation#",ec:"http://eulergui.sourceforge.net/contacts.owl.n3#",goef:"http://purl.org/twc/vocab/goef#",bm:"http://bio2rdf.org/",intervals:"http://reference.data.gov.uk/def/intervals/",flow:"http://www.w3.org/2005/01/wf/flow#",grs:"http://www.georss.org/georss/",vcardx:"http://buzzword.org.uk/rdf/vcardx#",dbpedia2:"http://dbpedia.org/property/",ends:"http://labs.mondeca.com/vocab/endpointStatus#",quantity:"http://qudt.org/schema/quantity#",fe:"http://www.ontologydesignpatterns.org/ont/framenet/abox/fe/",rating:"http://www.tvblob.com/ratings/#",health:"http://purl.org/twc/health/vocab/",genab:"http://eulersharp.sourceforge.net/2003/03swap/genomeAbnormality#",italy:"http://data.kasabi.com/dataset/italy/schema/",dossier:"https://data.omgeving.vlaanderen.be/ns/dossier#",abs:"http://abs.270a.info/dataset/",luc:"http://www.ontotext.com/owlim/lucene#",identity:"http://purl.org/twc/ontologies/identity.owl#",vf:"https://w3id.org/valueflows/ont/vf#",sor:"http://purl.org/net/soron/",lod2:"http://lod2.eu/schema/",osp:"http://data.lirmm.fr/ontologies/osp#",penis:"http://penis.to/#",d2r:"http://sites.wiwiss.fu-berlin.de/suhl/bizer/d2r-server/config.rdf#",wfdesc:"http://purl.org/wf4ever/wfdesc#",kupkb:"http://www.e-lico.eu/data/kupkb/",nytimes:"http://data.nytimes.com/elements/",govwild:"http://govwild.org/0.6/GWOntology.rdf/",osmsemnet:"http://spatial.ucd.ie/2012/08/osmsemnet/",hcard:"http://purl.org/uF/hCard/terms/",frbrcore:"http://purl.org/vocab/frbr/core#",ql:"http://www.w3.org/2004/ql#",ecos:"http://purl.org/ecos#",crtv:"http://open-services.net/ns/crtv#",environ:"http://eulersharp.sourceforge.net/2003/03swap/environment#",p20:"http://zbw.eu/beta/p20/vocab/",cmd:"https://w3id.org/cmd#",s4ac:"http://ns.inria.fr/s4ac/v2#",sro:"http://salt.semanticauthoring.org/ontologies/sro#",npgd:"http://ns.nature.com/datasets/",loticoowl:"http://www.lotico.com/ontology/",shex:"http://www.w3.org/ns/shex#",cold:"http://purl.org/configurationontology#",transmed:"http://www.w3.org/2001/sw/hcls/ns/transmed/",wikibase:"http://wikiba.se/ontology#",daiaserv:"http://purl.org/ontology/daia/Service/",gfo:"http://www.onto-med.de/ontologies/gfo.owl#",cl:"http://advene.org/ns/cinelab/",itsmo:"http://ontology.it/itsmo/v1#",bl:"https://w3id.org/biolink/vocab/",ogorg:"http://opengraph.org/schema/",idemo:"http://rdf.insee.fr/def/demo#",ufmedia:"http://purl.org/microformat/hmedia/",crmdig:"http://www.ics.forth.gr/isl/CRMdig/",genea:"http://www.owl-ontologies.com/generations.owl#",poder:"http://poderopedia.com/vocab/",dpd:"http://www.kanzaki.com/ns/dpd#",nocal:"http://vocab.deri.ie/nocal#",skiresort:"http://www.openlinksw.com/ski_resorts/schema#",provone:"http://purl.org/provone#",lindt:"http://purl.org/NET/lindt#",rkd:"http://data.rkd.nl/def#",npgg:"http://ns.nature.com/graphs/",str:"http://nlp2rdf.lod2.eu/schema/string/",sw:"http://linkedwidgets.org/statisticalwidget/ontology/",hartigprov:"http://purl.org/net/provenance/ns#",va:"http://code-research.eu/ontology/visual-analytics#",bcncon:"http://datos.bcn.cl/ontologies/bcn-congress#",cf:"http://mmisw.org/ont/cf/parameter/",steel:"https://w3id.org/steel/ProcessOntology/",gesis:"http://lod.gesis.org/lodpilot/ALLBUS/vocab.rdf#",wscaim:"http://www.openk.org/wscaim.owl#",sci:"http://data.scientology.org/ns/",protegedc:"http://protege.stanford.edu/plugins/owl/dc/protege-dc.owl#",cdtype:"http://purl.org/cld/cdtype/",diseasome:"http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/",ls:"http://linkedspending.aksw.org/instance/",s2s:"http://escience.rpi.edu/ontology/sesf/s2s/4/0/",cis:"http://purl.org/NET/cloudisus#",healthcare:"http://www.agfa.com/w3c/2009/healthCare#",rankrage:"https://rankrage.de/",stac:"http://securitytoolbox.appspot.com/stac#",kbp:"http://tackbp.org/2013/ontology#",dctypes:"http://purl.org/dc/dcmitype/",atomrdf:"http://atomowl.org/ontologies/atomrdf#",mohammad:"http://manesht.ir/",atlas:"http://rdf.ebi.ac.uk/resource/atlas/",ngeoi:"http://vocab.lenka.no/geo-deling#",openskos:"http://openskos.org/xmlns#",centrifuge:"http://purl.org/twc/vocab/centrifuge#",paia:"http://purl.org/ontology/paia#",ipo:"http://purl.org/ipo/core#",occult:"http://data.totl.net/occult/",ianarel:"https://www.w3.org/ns/iana/link-relations/relation#",saxon:"http://saxon.sf.net/",solid:"http://www.w3.org/ns/solid/terms#",foo:"http://filmontology.org/ontology/1.0/",curr:"https://w3id.org/cc#",osukdt:"http://www.ordnancesurvey.co.uk/ontology/Datatypes.owl#",gs1:"https://gs1.org/voc/",marshall:"http://sites.google.com/site/xgmaitc/",l4a:"http://labels4all.info/ns/",skos08:"http://www.w3.org/2008/05/skos#",vsto:"http://escience.rpi.edu/ontology/vsto/2/0/vsto.owl#",rec54:"http://www.w3.org/2001/02pd/rec54.rdf#",l4lod:"http://ns.inria.fr/l4lod/v2/",lctr:"http://data.linkedct.org/vocab/resource/",mtecore:"http://purl.org/olia/mte/multext-east.owl#",harrisons:"http://harrisons.cc/",opmw:"http://www.opmw.org/ontology/",category:"http://dbpedia.org/resource/Category:",rml:"http://w3id.org/rml/",biordf:"http://purl.org/net/biordfmicroarray/ns#",wfprov:"http://purl.org/wf4ever/wfprov#",gov:"http://gov.genealogy.net/ontology.owl#",clinproc:"http://www.agfa.com/w3c/2009/clinicalProcedure#",pizza:"http://www.co-ode.org/ontologies/pizza/pizza.owl#",prism21:"http://prismstandard.org/namespaces/basic/2.1/",daq:"http://purl.org/eis/vocab/daq#",campsite:"http://www.openlinksw.com/campsites/schema#",aerols:"http://xmlns.com/aerols/0.1/",hasco:"http://hadatac.org/ont/hasco/",laposte:"http://data.lirmm.fr/ontologies/laposte#",mpeg7:"http://rhizomik.net/ontologies/2005/03/Mpeg7-2001.owl#",pronom:"http://reference.data.gov.uk/technical-registry/",dbyago:"http://dbpedia.org/class/yago/",b2rpubchem:"http://bio2rdf.org/ns/ns/ns/pubchem#",lh:"http://vocab.inf.ed.ac.uk/library/holdings#",refe:"http://orion.tw.rpi.edu/~xgmatwc/refe/",malignneo:"http://www.agfa.com/w3c/2009/malignantNeoplasm#",opl:"http://openlinksw.com/schema/attribution#",pkmn:"http://pokedex.dataincubator.org/pkm/",okg:"http://openknowledgegraph.org/ontology/",wno:"http://wordnet-rdf.princeton.edu/ontology#",ldr:"http://purl.oclc.org/NET/ldr/ns#",ifc:"http://ifcowl.openbimstandards.org/IFC2X3_Final#",odcs:"http://opendata.cz/infrastructure/odcleanstore/",camelot:"http://vocab.ox.ac.uk/camelot#",wkd:"http://schema.wolterskluwer.de/",dpl:"http://dbpedialite.org/things/",oslo:"http://purl.org/oslo/ns/localgov#",sam:"http://def.seegrid.csiro.au/isotc211/iso19156/2011/sampling#",verb:"https://w3id.org/verb/",te:"http://www.w3.org/2006/time-entry#",c4dm:"http://purl.org/NET/c4dm/event.owl#",bv:"http://purl.org/vocommons/bv#",pod:"https://project-open-data.cio.gov/v1.1/schema/#",dqv:"http://www.w3.org/ns/dqv#",geovocab:"http://geovocab.org/",crv:"http://purl.org/twc/vocab/datacarver#",germplasm:"http://purl.org/germplasm/terms#",doas:"http://deductions.github.io/doas.owl.ttl#",dannet:"http://www.wordnet.dk/owl/instance/2009/03/instances/",lio:"http://purl.org/net/lio#",ds:"http://purl.org/ctic/dcat#",scms:"http://ns.aksw.org/scms/annotations/",mads:"http://www.loc.gov/mads/rdf/v1#",lc:"http://semweb.mmlab.be/ns/linkedconnections#",cart:"http://purl.org/net/cartCoord#",date:"http://contextus.net/ontology/ontomedia/misc/date#",vgo:"http://purl.org/net/VideoGameOntology#",odo:"http://ocean-data.org/schema/",lso:"http://linkedspending.aksw.org/ontology/",ekaw:"http://data.semanticweb.org/conference/ekaw/2012/complete/",puelia:"http://kwijibo.talis.com/vocabs/puelia#",bcnnorms:"http://datos.bcn.cl/ontologies/bcn-norms#",of:"http://owlrep.eu01.aws.af.cm/fridge#",alchemy:"http://rdf.alchemyapi.com/rdf/v1/s/aapi-schema#",ebu:"http://semantic.eurobau.com/eurobau-utility.owl#",shoah:"http://dati.cdec.it/lod/shoah/",sso:"http://nlp2rdf.lod2.eu/schema/sso/",prvt:"http://purl.org/net/provenance/types#",omnlife:"http://open-multinet.info/ontology/omn-lifecycle#",plo:"http://purl.org/net/po#",mmo:"http://purl.org/momayo/mmo/",tac:"http://ns.bergnet.org/tac/0.1/triple-access-control#",hifm:"http://purl.org/net/hifm/data#",yo:"http://yovisto.com/",pattern:"http://www.essepuntato.it/2008/12/pattern#",dawgt:"http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#",tisc:"http://observedchange.com/tisc/ns#",bdd:"https://api.bloomberg.com/eap/catalogs/bbg/fields/",namespaces:"https://vg.no/",ottr:"http://ns.ottr.xyz/templates#",shw:"http://paul.staroch.name/thesis/SmartHomeWeather.owl#",dvia:"http://data.eurecom.fr/ontology/dvia#",insdc:"http://ddbj.nig.ac.jp/ontologies/sequence#",strdf:"http://strdf.di.uoa.gr/ontology#",esco:"http://data.europa.eu/esco/model#",dcndl:"http://ndl.go.jp/dcndl/terms/",hints2005:"http://purl.org/twc/cabig/model/HINTS2005-1.owl#",rdacarrier:"http://rdvocab.info/termList/RDACarrierType/",opllic:"http://www.openlinksw.com/ontology/licenses#",daisy:"http://www.daisy.org/z3998/2012/vocab/",smg:"http://ns.cerise-project.nl/energy/def/cim-smartgrid#",adr:"http://kg.artsdata.ca/resource/",vin:"http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#",dn:"http://purl.org/datanode/ns/",antenne:"https://data.zendantennes.omgeving.vlaanderen.be/ns/zendantenne#",csm:"http://purl.org/csm/1.0#",sbench:"http://swat.cse.lehigh.edu/onto/univ-bench.owl#",cts2:"http://schema.omg.org/spec/CTS2/1.0/",part:"http://purl.org/vocab/participation/schema#",bn:"http://babelnet.org/rdf/",rssynd:"http://web.resource.org/rss/1.0/modules/syndication/",cpsv:"http://purl.org/vocab/cpsv#",wsl:"http://www.wsmo.org/ns/wsmo-lite#",quantities:"http://eulersharp.sourceforge.net/2003/03swap/quantitiesExtension#",iol:"http://www.ontologydesignpatterns.org/ont/dul/IOLite.owl#",latitude:"https://www.w3.org/2006/vcard/ns#",gastro:"http://www.ebsemantics.net/gastro#",dpc:"http://hospee.org/ontologies/dpc/",chembl:"http://rdf.ebi.ac.uk/terms/chembl#",ssso:"http://purl.org/ontology/ssso#",art:"http://w3id.org/art/terms/1.0/",clinic:"http://example.com/clinic#",wro:"http://purl.org/net/wf4ever/ro#",ptop:"http://www.ontotext.com/proton/protontop#",fos:"http://futurios.org/fos/spec/",rdamt:"http://rdaregistry.info/termList/RDAMediaType/",pso:"http://purl.org/spar/pso/",sioctypes:"http://rdfs.org/sioc/types#",scor:"http://purl.org/eis/vocab/scor#",turismo:"http://idi.fundacionctic.org/cruzar/turismo#",rdae:"http://rdaregistry.info/Elements/e/",semio:"http://www.lingvoj.org/semio#",goog:"http://schema.googleapis.com/",rmo:"http://eatld.et.tu-dresden.de/rmo#",qrl:"http://www.aifb.kit.edu/project/ld-retriever/qrl#",trait:"http://contextus.net/ontology/ontomedia/ext/common/trait#",bihap:"http://bihap.kb.gov.tr/ontology/",stream:"http://dbpedia.org/ontology/Stream/",ccrel:"http://creativecommons.org/ns#",cpant:"http://purl.org/NET/cpan-uri/terms#",decision:"https://decision-ontology.googlecode.com/svn/trunk/decision.owl#",mico:"http://www.mico-project.eu/ns/platform/1.0/schema#",bk:"http://www.provbook.org/ns/#",oan:"http://data.lirmm.fr/ontologies/oan/",property:"http://fr.dbpedia.org/property/",guo:"http://purl.org/hpi/guo#",ep:"http://eprints.org/ontology/",who:"http://www.who.int/vocab/ontology#",webbox:"http://webbox.ecs.soton.ac.uk/ns#",ost:"http://w3id.org/ost/ns#",emtr:"http://purl.org/NET/ssnext/electricmeters#",cosmo:"http://purl.org/ontology/cosmo#",xlime:"http://xlime-project.org/vocab/",obsm:"http://rdf.geospecies.org/methods/observationMethod#",omapi:"http://purl.org/omapi/0.2/#",thors:"http://resource.geosciml.org/ontology/timescale/thors#",opencyc:"http://sw.opencyc.org/concept/",shacl:"http://www.w3.org/ns/shacl#",lldr:"http://purl.oclc.org/NET/lldr/ns#",onc:"http://www.ics.forth.gr/isl/oncm/core#",gf:"http://def.seegrid.csiro.au/isotc211/iso19109/2005/feature#",conf:"http://richard.cyganiak.de/2007/pubby/config.rdf#",fma:"http://sig.uw.edu/fma#",op:"http://environment.data.gov.au/def/op#",vsso:"http://automotive.eurecom.fr/vsso#",zoomaterms:"http://rdf.ebi.ac.uk/vocabulary/zooma/",rdarel2:"http://metadataregistry.org/uri/schema/RDARelationshipsGR2/",kai:"http://kai.uni-kiel.de/",msr:"http://www.telegraphis.net/ontology/measurement/measurement#",sao:"http://salt.semanticauthoring.org/ontologies/sao#",wikterms:"http://wiktionary.dbpedia.org/terms/",bgcat:"http://bg.dbpedia.org/resource/\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f:",rdafnm:"http://rdaregistry.info/termList/FormNoteMus/",ses:"http://lod.taxonconcept.org/ses/",faq:"http://www.openlinksw.com/ontology/faq#",mmd:"http://musicbrainz.org/ns/mmd-1.0#",ljkl:"http://teste.com/",oarj:"http://opendepot.org/reference/linked/1.0/",my:"http://www.mobile.com/model/",cvbase:"http://purl.org/captsolo/resume-rdf/0.2/base#",rdamedia:"http://rdvocab.info/termList/RDAMediaType/",place:"http://purl.org/ontology/places/",tblcard:"http://www.w3.org/People/Berners-Lee/card#",spt:"http://spitfire-project.eu/ontology/ns/",security:"http://securitytoolbox.appspot.com/securityMain#",ecrm:"http://erlangen-crm.org/current/",mged:"http://mged.sourceforge.net/ontologies/MGEDOntology.owl#",moac:"http://observedchange.com/moac/ns#",telmap:"http://purl.org/telmap/",dr:"http://purl.org/swan/2.0/discourse-relationships/",poste:"http://data.lirmm.fr/ontologies/poste#",rdafr:"http://rdaregistry.info/termList/frequency/",eumida:"http://data.kasabi.com/dataset/eumida/terms/",bgn:"http://bibliograph.net/schemas/",w3con:"http://www.w3.org/2000/10/swap/pim/contact#",bcnbio:"http://datos.bcn.cl/ontologies/bcn-biographies#",aers:"http://aers.data2semantics.org/resource/",qud:"http://qudt.org/1.1/schema/qudt#",jpo:"http://rdf.jpostdb.org/ontology/jpost.owl#",icane:"http://www.icane.es/opendata/vocab#",wlo:"http://purl.org/ontology/wo/",mil:"http://rdf.muninn-project.org/ontologies/military#",lodac:"http://lod.ac/ns/lodac#",sdmxd:"http://purl.org/linked-data/sdmx/2009/dimension#",rdasoi:"http://rdaregistry.info/termList/statIdentification/",seq:"http://www.ontologydesignpatterns.org/cp/owl/sequence.owl#",scoro:"http://purl.org/spar/scoro/",dqm:"http://purl.org/dqm-vocabulary/v1/dqm#",nerd:"http://nerd.eurecom.fr/ontology#",gl:"http://schema.geolink.org/",rdarel:"http://rdvocab.info/RDARelationshipsWEMI/",disease:"http://www.agfa.com/w3c/2009/humanDisorder#",qvoc:"http://mlode.nlp2rdf.org/quranvocab#",odrs:"http://schema.theodi.org/odrs#",finlaw:"http://purl.org/finlex/schema/laki/",exo:"https://w3id.org/example#",mv:"http://schema.mobivoc.org/",oss:"http://opendata.caceres.es/def/ontosemanasanta#",kbv:"https://id.kb.se/vocab/",dcs:"http://ontologi.es/doap-changeset#",delta:"http://www.w3.org/2004/delta#",xapi:"https://w3id.org/xapi/ontology#",tw:"http://tw.rpi.edu/schema/",holding:"http://purl.org/ontology/holding#",biro:"http://purl.org/spar/biro/",ctorg:"http://purl.org/ctic/infraestructuras/organizacion#",li:"http://def.seegrid.csiro.au/isotc211/iso19115/2003/lineage#",twaapi:"http://purl.org/twc/vocab/aapi-schema#",accom:"http://purl.org/acco/ns#",oplcert:"http://www.openlinksw.com/schemas/cert#",onyx:"http://www.gsi.dit.upm.es/ontologies/onyx/ns#",eui:"http://institutions.publicdata.eu/#",xcql:"http://docs.oasis-open.org/ns/search-ws/xcql#",lsc:"http://linkedscience.org/lsc/ns#",auto:"http://auto.schema.org/",infor:"http://www.ontologydesignpatterns.org/cp/owl/informationrealization.owl#",dbcat:"http://dbpedia.org/resource/Category:",osspr:"http://data.ordnancesurvey.co.uk/ontology/spatialrelations/",ll:"http://lodlaundromat.org/resource/",rdacontent:"http://rdvocab.info/termList/RDAContentType/",fam:"http://vocab.fusepool.info/fam#",swperson:"http://data.semanticweb.org/person/",esequip:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/equipamiento#",od:"http://purl.org/twc/vocab/opendap#",affymetrix:"http://bio2rdf.org/affymetrix_vocabulary:",vsws:"http://verticalsearchworks.com/ontology/synset#",coll:"http://purl.org/co/",cbo:"http://comicmeta.org/cbo/",mrel:"http://id.loc.gov/vocabulary/relators/",mb:"http://dbtune.org/musicbrainz/resource/instrument/",raul:"http://vocab.deri.ie/raul#",onssprel:"http://www.ordnancesurvey.co.uk/ontology/SpatialRelations/v0.2/SpatialRelations.owl#",tsioc:"http://rdfs.org/sioc/types#",wb:"http://data.worldbank.org/",gawd:"http://gawd.atlantides.org/terms/",stats:"http://purl.org/rdfstats/stats#",pnc:"http://data.press.net/ontology/classification/",npgx:"http://ns.nature.com/extensions/",dash:"http://datashapes.org/dash#",osgeom:"http://data.ordnancesurvey.co.uk/ontology/geometry/",emoca:"http://ns.inria.fr/emoca#",ogc:"http://www.opengis.net/def/",fao:"http://fao.270a.info/dataset/",tao:"http://pubannotation.org/ontology/tao.owl#",dogont:"http://elite.polito.it/ontologies/dogont.owl#",drm:"http://vocab.data.gov/def/drm#",app:"http://jmvanel.free.fr/ontology/software_applications.n3#",call:"http://webofcode.org/wfn/call:",lsmap:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-data.owl#",pnt:"http://data.press.net/ontology/tag/",mvco:"http://purl.oclc.org/NET/mvco.owl#",geocontext:"http://www.geocontext.org/publ/2013/vocab#",dbpr:"http://dbpedia.org/resource/",esaloj:"http://vocab.linkeddata.es/datosabiertos/def/turismo/alojamiento#",elec:"http://purl.org/ctic/sector-publico/elecciones#",lcy:"http://purl.org/vocab/lifecycle/schema#",water:"http://escience.rpi.edu/ontology/semanteco/2/0/water.owl#",nidm:"http://nidm.nidash.org/",vapour:"http://vapour.sourceforge.net/vocab.rdf#",xrd:"http://docs.oasis-open.org/ns/xri/xrd-1.0#",rdacct:"http://rdaregistry.info/termList/CollTitle/",wn31:"http://wordnet-rdf.princeton.edu/wn31/",llo:"http://lodlaundromat.org/ontology/",bgt:"https://bgt.basisregistraties.overheid.nl/bgt/def/",oml:"http://def.seegrid.csiro.au/ontology/om/om-lite#",stories:"http://purl.org/ontology/stories/",pni:"http://data.press.net/ontology/identifier/",gadm:"http://gadm.geovocab.org/ontology#",pois:"http://purl.oclc.org/POIS/vcblr#",bwb:"http://doc.metalex.eu/bwb/ontology/",dbtont:"http://dbtropes.org/ont/",sg:"http://name.scigraph.com/ontologies/core/",graffle:"http://purl.org/twc/vocab/vsr/graffle#",ox:"http://vocab.ox.ac.uk/projectfunding#",isocat:"http://www.isocat.org/datcat/",seokoeln:"http://rankrage.de/",particip:"http://purl.org/vocab/participation/schema#",allot:"https://w3id.org/akn/ontology/allot#",rdami:"http://rdaregistry.info/termList/modeIssue/",viskov:"http://trust.utep.edu/visko/ontology/visko-view-v3.owl#",dcite:"http://purl.org/spar/datacite/",pvcs:"http://purl.org/twc/vocab/pvcs#",evident:"http://purl.org/net/evident#",doi:"https://doi.org/",saif:"http://wwwiti.cs.uni-magdeburg.de/~srahman/",brick:"https://brickschema.org/schema/Brick#",odapp:"http://vocab.deri.ie/odapp#",snarm:"http://rdf.myexperiment.org/ontologies/snarm/",viso:"http://purl.org/viso/",pingback:"http://purl.org/net/pingback/",s3db:"http://www.s3db.org/core#",deps:"http://ontologi.es/doap-deps#",frb:"http://frb.270a.info/dataset/",mt:"http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#",cbase:"http://ontologycentral.com/2010/05/cb/vocab#",kees:"http://linkeddata.center/kees/v1#",pic:"http://www.ipaw.info/ns/picaso#",ramon:"http://rdfdata.eionet.europa.eu/ramon/ontology/",scip:"http://lod.taxonconcept.org/ontology/sci_people.owl#",ev:"http://www.w3.org/2001/xml-events/",swo:"http://www.ebi.ac.uk/swo/",fincaselaw:"http://purl.org/finlex/schema/oikeus/",biotop:"http://purl.org/biotop/biotop.owl#",oh:"http://semweb.mmlab.be/ns/oh#",ostop:"http://www.ordnancesurvey.co.uk/ontology/Topography/v0.1/Topography.owl#",ncit:"https://ncit.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&ns=ncit&code=",spfood:"http://kmi.open.ac.uk/projects/smartproducts/ontologies/food.owl#",voidp:"http://www.enakting.org/provenance/voidp/",quty:"http://www.telegraphis.net/ontology/measurement/quantity#",c9d:"http://purl.org/twc/vocab/conversion/",viskoo:"http://trust.utep.edu/visko/ontology/visko-operator-v3.owl#",eunis:"http://eunis.eea.europa.eu/rdf/species-schema.rdf#",fcp:"http://www.newmedialab.at/fcp/",dcoid:"http://dx.deepcarbon.net/",d2d:"http://rdfns.org/d2d/",vag:"http://www.essepuntato.it/2013/10/vagueness/",w3po:"http://purl.org/provenance/w3p/w3po#",rdatc:"http://rdaregistry.info/termList/trackConfig/",vvo:"http://purl.org/vvo/ns#",prviv:"http://purl.org/net/provenance/integrity#",rdl:"http://data.posccaesar.org/rdl/",bco:"http://purl.obolibrary.org/obo/bco.owl#",mmf:"http://linkedmultimedia.org/sparql-mm/ns/1.0.0/function#",rvdata:"http://data.rvdata.us/",bner:"http://datos.bne.es/resource/",lexcz:"http://purl.org/lex/cz#",rdagw:"http://rdaregistry.info/termList/grooveWidth/",olad:"http://openlad.org/vocab#",origins:"http://origins.link/",rdagd:"http://rdaregistry.info/termList/gender/",bgdbp:"http://bg.dbpedia.org/property/",geosp:"http://rdf.geospecies.org/ont/geospecies#",driver:"http://deductions.github.io/drivers.owl.ttl#",fcs:"http://clarin.eu/fcs/resource#",im:"http://imgpedia.dcc.uchile.cl/resource/",saws:"http://purl.org/saws/ontology#",tg:"https://triplydb.com/Triply/tg/def/",company:"http://intellimind.io/ns/company#",lden:"http://www.linklion.org/lden/",swpatho:"http://swpatho.ag-nbi.de/context/meta.owl#",cmdm:"http://infra.clarin.eu/cmd/",vdpp:"http://data.lirmm.fr/ontologies/vdpp#",vsw:"http://verticalsearchworks.com/ontology/",lingvo:"http://www.lingvoj.org/ontology#",waarde:"https://lod.milieuinfo.be/ns/waarde#",tis:"http://www.ontologydesignpatterns.org/cp/owl/timeindexedsituation.owl#",gnvc:"http://purl.org/gc/",odpart:"http://www.ontologydesignpatterns.org/cp/owl/participation.owl#",agr:"http://promsns.org/def/agr#",pkm:"http://www.ontotext.com/proton/protonkm#",radion:"http://www.w3.org/ns/radion#",ntag:"http://ns.inria.fr/nicetag/2010/09/09/voc#",gpml:"http://vocabularies.wikipathways.org/gpml#",agrd:"http://agrinepaldata.com/",vartrans:"http://www.w3.org/ns/lemon/vartrans#",rdarole:"http://rdvocab.info/roles/",vext:"http://ldf.fi/void-ext#",lexvo:"http://lexvo.org/ontology#",aws:"http://purl.oclc.org/NET/ssnx/meteo/aws#",agls:"http://www.agls.gov.au/agls/terms/",rdai:"http://rdaregistry.info/Elements/i/",dao:"http://purl.org/dao#",lsweb:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-data.owl#",employee:"http://www.employee.com/data#",lw:"http://linkedwidgets.org/ontologies/",npdv:"http://sws.ifi.uio.no/vocab/npd#",dbptmpl:"http://dbpedia.org/resource/Template:",oae:"http://www.ics.forth.gr/isl/oae/core#",gcis:"http://data.globalchange.gov/gcis.owl#",friends:"http://www.openarchives.org/OAI/2.0/friends/",mtlo:"http://www.ics.forth.gr/isl/MarineTLO/v4/marinetlo.owl#",rdabm:"http://rdaregistry.info/termList/RDABaseMaterial/",cwrc:"http://sparql.cwrc.ca/ontology/cwrc#",ontopic:"http://www.ontologydesignpatterns.org/ont/dul/ontopic.owl#",fire:"http://tldp.org/HOWTO/XML-RPC-HOWTO/xmlrpc-howto-java.html#",situ:"http://www.ontologydesignpatterns.org/cp/owl/situation.owl#",frsad:"http://iflastandards.info/ns/fr/frsad/",activity:"https://www.w3.org/TR/activitystreams-vocabulary/",ordf:"http://purl.org/NET/ordf/",beth:"http://www.google.com/",roevo:"http://purl.org/wf4ever/roevo#",lmm1:"http://www.ontologydesignpatterns.org/ont/lmm/LMM_L1.owl#",vrank:"http://purl.org/voc/vrank#",orth:"http://purl.org/net/orth#",bot:"https://w3id.org/bot#",lmdb:"http://data.linkedmdb.org/",galaksiya:"http://ontoloji.galaksiya.com/vocab/",bioc:"http://deductions.github.io/biological-collections.owl.ttl#",csp:"http://vocab.deri.ie/csp#",gm:"http://def.seegrid.csiro.au/isotc211/iso19107/2003/geometry#",vmm:"http://spi-fm.uca.es/spdef/models/genericTools/vmm/1.0#",wikim:"http://spi-fm.uca.es/spdef/models/genericTools/wikim/1.0#",lpeu:"http://purl.org/linkedpolitics/vocabulary/eu/plenary/",bcngeo:"http://datos.bcn.cl/ontologies/bcn-geographics#",oplprod:"http://www.openlinksw.com/ontology/products#",salad:"https://w3id.org/cwl/salad#",scufl2:"http://ns.taverna.org.uk/2010/scufl2#",opengov:"http://www.w3.org/opengov#",ldvm:"http://linked.opendata.cz/ontology/ldvm/",uis:"http://uis.270a.info/dataset/",wf4ever:"http://purl.org/wf4ever/wf4ever#",ftcontent:"http://www.ft.com/ontology/content/",mammal:"http://lod.taxonconcept.org/ontology/p01/Mammalia/index.owl#",wfn:"http://webofcode.org/wfn/",opmo:"http://openprovenance.org/model/opmo#",being:"http://purl.org/ontomedia/ext/common/being#",bbcprov:"http://www.bbc.co.uk/ontologies/provenance/",ids:"https://w3id.org/idsa/core/",d0:"http://ontologydesignpatterns.org/ont/wikipedia/d0.owl#",mod:"http://www.isibang.ac.in/ns/mod#",pcdt:"http://purl.org/procurement/public-contracts-datatypes#",language:"http://id.loc.gov/vocabulary/iso639-1/",pproc:"http://contsem.unizar.es/def/sector-publico/pproc#",passim:"http://data.lirmm.fr/ontologies/passim#",rlnr:"http://rdflivenews.aksw.org/resource/",tddo:"http://databugger.aksw.org/ns/core#",bnf:"http://www.w3.org/2000/10/swap/grammar/bnf#",frbrer:"http://iflastandards.info/ns/fr/frbr/frbrer/",wn20:"http://www.w3.org/2006/03/wn/wn20/",lsd:"http://linkedwidgets.org/statisticaldata/ontology/",s4envi:"https://w3id.org/def/saref4envi#",crml:"http://semweb.mmlab.be/ns/rml/condition#",lmo:"http://linkedmultimedia.org/sparql-mm/ns/2.0.0/ontology#",ws:"http://www.w3.org/ns/pim/space#",samfl:"http://def.seegrid.csiro.au/ontology/om/sam-lite#",eurostat:"http://wifo5-04.informatik.uni-mannheim.de/eurostat/resource/eurostat/",foam:"https://www.koerperfettwaage-test.de/",ogbd:"http://www.ogbd.fr/2012/ontologie#",cjr:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/callejero#",lsqv:"http://lsq.aksw.org/vocab#",graves:"http://rdf.muninn-project.org/ontologies/graves#",static:"http://vocab-ld.org/vocab/static-ld#",fog:"https://w3id.org/fog#",geos:"http://www.telegraphis.net/ontology/geography/geography#",limoo:"http://purl.org/LiMo/0.1/",contsem:"http://contsem.unizar.es/def/sector-publico/contratacion#",pwo:"http://purl.org/spar/pwo/",swpm:"http://spi-fm.uca.es/spdef/models/deployment/swpm/1.0#",edgar:"http://edgarwrap.ontologycentral.com/vocab/edgar#",pco:"http://purl.org/procurement/public-contracts#",sct:"http://snomed.info/id/",roterms:"http://purl.org/wf4ever/roterms#",imf:"http://imf.270a.info/dataset/",dq:"http://def.seegrid.csiro.au/isotc211/iso19115/2003/dataquality#",citof:"http://www.essepuntato.it/2013/03/cito-functions#",phdd:"http://rdf-vocabulary.ddialliance.org/phdd#",bgdbr:"http://bg.dbpedia.org/resource/",asgv:"http://aims.fao.org/aos/agrovoc/",lmm2:"http://www.ontologydesignpatterns.org/ont/lmm/LMM_L2.owl#",step:"http://purl.org/net/step#",locwd:"http://purl.org/locwd/schema#",babelnet:"http://babelnet.org/2.0/",qb4o:"http://purl.org/olap#",lda:"http://purl.org/linked-data/api/vocab#",hico:"http://purl.org/emmedi/hico/",rdact:"http://rdaregistry.info/termList/RDACarrierType/",r4ta:"http://ns.inria.fr/ratio4ta/v1#",trig:"http://www.w3.org/2004/03/trix/rdfg-1/",text:"http://jena.apache.org/text#",form:"http://deductions-software.com/ontologies/forms.owl.ttl#",rdafrbr:"http://rdvocab.info/uri/schema/FRBRentitiesRDA/",omdoc:"http://omdoc.org/ontology/",hto:"http://project-haystack.org/hto#",acrt:"http://privatealpha.com/ontology/certification/1#",olca:"http://www.lingvoj.org/olca#",rut:"http://rdfunit.aksw.org/ns/core#",amalgame:"http://purl.org/vocabularies/amalgame#",rdagrp:"http://rdaregistry.info/termList/groovePitch/",jolux:"http://data.legilux.public.lu/resource/ontology/jolux#",csv:"http://vocab.sindice.net/csv/",merge:"http://jazz.net/ns/lqe/merge/",condition:"http://www.kinjal.com/condition:",mds:"http://doc.metalex.eu/id/",pmd:"https://w3id.org/pmd/co/",lexicon:"http://www.example.org/lexicon#",hlygt:"http://www.holygoat.co.uk/owl/redwood/0.1/tags/",jjd:"http://www.joshuajeeson.com/",osadm:"http://data.ordnancesurvey.co.uk/ontology/admingeo/",rdf123:"http://rdf123.umbc.edu/ns/",gci:"http://ontology.eil.utoronto.ca/GCI/Foundation/GCI-Foundation.owl#",infection:"http://www.agfa.com/w3c/2009/infectiousDisorder#",laabs:"http://dbpedia.org/resource/",location:"http://sw.deri.org/2006/07/location/loc#",gaf:"http://groundedannotationframework.org/",pkgsrc:"http://pkgsrc.co/schema#",dbrc:"http://dbpedia.org/resource/Category:",bis:"http://bis.270a.info/dataset/",locah:"http://data.archiveshub.ac.uk/def/",prof:"http://www.w3.org/ns/dx/prof/",odv:"http://reference.data.gov.uk/def/organogram/",msm:"http://iserve.kmi.open.ac.uk/ns/msm#",lcdr:"http://ns.lucid-project.org/revision/",topo:"http://data.ign.fr/def/topo#",year:"http://www.w3.org/year/",mocanal:"http://www.semanticweb.org/asow/ontologies/2013/9/untitled-ontology-36#",oecc:"http://www.oegov.org/core/owl/cc#",dot:"https://w3id.org/dot#",limo:"http://www.purl.org/limo-ontology/limo#",owlse:"http://www.daml.org/services/owl-s/1.2/generic/Expression.owl#",tm:"http://def.seegrid.csiro.au/isotc211/iso19108/2002/temporal#",escom:"http://vocab.linkeddata.es/datosabiertos/def/comercio/tejidoComercial#",incident:"http://vocab.resc.info/incident#",gt:"https://vocab.eccenca.com/geniustex/",pair:"http://virtual-assembly.org/ontologies/pair#",sto:"https://w3id.org/i40/sto#",llm:"http://lodlaundromat.org/metrics/ontology/",gnm:"http://www.geonames.org/ontology/mappings/",obeu:"http://data.openbudgets.eu/ontology/",reegle:"http://reegle.info/schema#",regorg:"http://www.w3.org/ns/regorg#",aktivesa:"http://sa.aktivespace.org/ontologies/aktivesa#",pmc:"http://identifiers.org/pmc/",airs:"https://raw.githubusercontent.com/airs-linked-data/lov/latest/src/airs_vocabulary.ttl#",odbc:"http://www.openlinksw.com/ontology/odbc#",ceterms:"http://purl.org/ctdl/terms/",crowd:"http://purl.org/crowd/",nxs:"http://www.neclimateus.org/",dio:"https://w3id.org/dio#",rdarm:"http://registry.info/termList/recMedium/",rdafs:"http://rdaregistry.info/termList/fontSize/",sx:"http://shex.io/ns/shex#",zr:"http://explain.z3950.org/dtd/2.0/",rdarr:"http://rdaregistry.info/termList/RDAReductionRatio/",proms:"http://promsns.org/def/proms#",ecgl:"http://schema.geolink.org/",jp1:"http://rdf.muninn-project.org/ontologies/jp1/",uc:"http://ucuenca.edu.ec/ontology#",webservice:"http://www.openlinksw.com/ontology/webservices#",puml:"http://plantuml.com/ontology#",crsw:"http://courseware.rkbexplorer.com/ontologies/courseware#",genre:"http://sparql.cwrc.ca/ontologies/genre#",rdatr:"http://rdaregistry.info/termList/typeRec/",uta:"http://uptheasset.org/ontology#",sru:"http://www.loc.gov/zing/srw/",pv:"http://ns.inria.fr/provoc#",teamwork:"http://topbraid.org/teamwork#",geod:"http://vocab.lenka.no/geo-deling#",demlab:"http://www.demcare.eu/ontologies/demlab.owl#",bevon:"http://rdfs.co/bevon/",muldicat:"http://iflastandards.info/ns/muldicat#",ou:"http://opendata.unex.es/def/ontouniversidad#",olac:"http://www.language-archives.org/OLAC/1.0/",oplcb:"http://www.openlinksw.com/schemas/crunchbase#",ns1:"http://www.w3.org/1999/xhtml/vocab#",ontosec:"http://www.semanticweb.org/ontologies/2008/11/OntologySecurity.owl#",essglobal:"http://purl.org/essglobal/vocab/v1.0/",cpack:"http://cliopatria.swi-prolog.org/schema/cpack#",rdaco:"http://rdaregistry.info/termList/RDAContentType/",cd:"http://citydata.wu.ac.at/ns#",oprovo:"http://openprovenance.org/ontology#",defns:"http://www.openarchives.org/OAI/2.0/",voc:"http://voc.odw.tw/",rdaftn:"http://rdaregistry.info/termList/TacNotation/",mdi:"http://w3id.org/multidimensional-interface/ontology#",glview:"http://schema.geolink.org/dev/view/",omnfed:"http://open-multinet.info/ontology/omn-federation#",basic:"http://def.seegrid.csiro.au/isotc211/iso19103/2005/basic#",clirio:"http://clirio.kaerle.com/clirio.owl#",mml:"http://www.w3.org/1998/Math/MathML/",cmdi:"http://www.clarin.eu/cmd/",oplecrm:"http://www.openlinksw.com/ontology/ecrm#",ha:"http://sensormeasurement.appspot.com/ont/home/homeActivity#",keys:"http://purl.org/NET/c4dm/keys.owl#",lido:"http://www.lido-schema.org/",rdag2:"http://rdvocab.info/ElementsGr2/",eurlex:"http://eur-lex.publicdata.eu/ontology/",crime:"http://purl.org/vocab/reloc/",moo:"http://www.movieontology.org/2009/11/09/movieontology.owl#",soch:"http://kulturarvsdata.se/ksamsok#",maso:"http://securitytoolbox.appspot.com/MASO#",rdafmn:"http://rdaregistry.info/termList/MusNotation/",oplmkt:"http://www.openlinksw.com/ontology/market#",output:"http://volt-name.space/vocab/output#",erce:"http://xxefe.de/",ecglview:"http://schema.geolink.org/view/",roar:"https://w3id.org/roar#",lofv:"http://purl.org/legal_form/vocab#",plg:"http://parliament.uk/ontologies/legislation/",spdx:"http://spdx.org/rdf/terms#",mmt:"http://linkedmultimedia.org/sparql-mm/functions/temporal#",espresup:"http://vocab.linkeddata.es/datosabiertos/def/hacienda/presupuestos#",bsym:"http://bsym.bloomberg.com/sym/",sylld:"http://www.semanticweb.org/syllabus/data/",rdacc:"http://rdaregistry.info/termList/RDAColourContent/",caplibacl:"http://schemas.capita-libraries.co.uk/2015/acl/schema#",ppn:"http://parliament.uk/ontologies/person-name/",kegg:"http://bio2rdf.org/ns/kegg#",vstoi:"http://hadatac.org/ont/vstoi#",vcard2006:"http://www.w3.org/2006/vcard/ns#",gq:"http://genomequest.com/",owsom:"https://onlinesocialmeasures.wordpress.com/",ali:"http://www.niso.org/schemas/ali/1.0/",rdag1:"http://rdvocab.info/Elements/",rdaterm:"http://rdaregistry.info/termList/RDATerms/",gts:"http://resource.geosciml.org/ontology/timescale/gts#",rdasco:"http://rdaregistry.info/termList/soundCont/",fnabox:"http://www.ontologydesignpatterns.org/ont/framenet/abox/",ttp:"http://eample.com/test#",esadm:"http://vocab.linkeddata.es/datosabiertos/def/sector-publico/territorio#",dsn:"http://purl.org/dsnotify/vocab/eventset/",rofch:"http://rdaregistry.info/termList/rofch/",td5:"http://td5.org/#",organ:"http://www.univalle.edu.co/ontologies/Organ#",nlon:"http://lod.nl.go.kr/ontology/",tsn:"http://purl.org/net/tsn#",eem:"http://purl.org/eem#",rofem:"http://rdaregistry.info/termList/rofem/",eccauth:"https://vocab.eccenca.com/auth/",task:"http://deductions.github.io/task-management.owl.ttl#",iana:"http://www.iana.org/assignments/relation/",kml:"http://www.opengis.net/kml/2.2#",door:"http://kannel.open.ac.uk/ontology#",ruto:"http://rdfunit.aksw.org/ns/core#",hr:"http://iserve.kmi.open.ac.uk/ns/hrests#",jpost:"http://rdf.jpostdb.org/ontology/jpost.owl#",logies:"https://data.vlaanderen.be/ns/logies#",ubiq:"http://server.ubiqore.com/ubiq/core#",eccrev:"https://vocab.eccenca.com/revision/",oplweb:"http://www.openlinksw.com/schemas/oplweb#",dcx:"http://dublincore.org/dcx/",rofer:"http://rdaregistry.info/termList/rofer/",navm:"https://w3id.org/navigation_menu#",sakthi:"http://infotech.nitk.ac.in/research-scholars/sakthi-murugan-r/",ssno:"http://www.w3.org/ns/ssn/",rvz:"http://rdfvizler.dyreriket.xyz/vocabulary/core#",lslife:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-lifemapper.owl#",diag:"http://www.loc.gov/zing/srw/diagnostic/",oxi:"http://omerxi.com/ontologies/core.owl.ttl#",datex:"http://vocab.datex.org/terms#",pato:"http://purl.obolibrary.org/obo/",lawd:"http://lawd.info/ontology/",newsevents:"http://www.aifb.uni-karlsruhe.de/WBS/uhe/ontologies#",agrovoc:"http://aims.fao.org/aos/agrovoc/",cdao:"http://purl.obolibrary.org/obo/",bb:"http://www.snik.eu/ontology/bb/",sdt:"http://statisticaldata.linkedwidgets.org/terms/",led:"http://led.kmi.open.ac.uk/term/",lmx:"http://www.w3.org/XML/1998/namespace/",mmoon:"http://mmoon.org/mmoon/",munc:"http://ns.inria.fr/munc#",fuseki:"http://jena.apache.org/fuseki#",studiop:"http://purl.org/resource/pilatesstudio/",fntbox:"http://www.ontologydesignpatterns.org/ont/framenet/tbox/",tix:"http://toptix.com/2010/esro/",geojson:"https://purl.org/geojson/vocab#",hva:"http://www.ebusiness-unibw.org/ontologies/hva/ontology#",lheo:"http://www.conjecto.com/ontology/2015/lheo#",fr:"https://w3id.org/fr/def/core#",mexv:"http://mex.aksw.org/mex-algo#",ldl:"https://w3id.org/ldpdl/ns#",ruian:"https://data.cssz.cz/ontology/ruian/",esapar:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/aparcamiento#",rdapmt:"http://rdaregistry.info/termList/prodTactile/",csdbp:"http://cs.dbpedia.org/",onisep:"http://rdf.onisep.fr/resource/",efrbroo:"http://erlangen-crm.org/efrbroo/",literal:"http://www.essepuntato.it/2010/06/literalreification/",figigii:"http://www.omg.org/spec/FIGI/GlobalInstrumentIdentifiers/",tb:"https://w3id.org/timebank#",spcm:"http://spi-fm.uca.es/spdef/models/deployment/spcm/1.0#",vidont:"http://vidont.org/",oplres:"http://www.openlinksw.com/ontology/restrictions#",sirene:"https://sireneld.io/vocab/sirene#",rdaemm:"http://rdaregistry.info/termList/emulsionMicro/",fdbp:"http://fr.dbpedia.org/property/",cwl:"https://w3id.org/cwl/cwl#",voidext:"http://rdfs.org/ns/void-ext#",whisky:"http://vocab.org/whisky/terms/",rdag3:"http://rdvocab.info/ElementsGr3/",sgg:"http://www.springernature.com/scigraph/graphs/",planet:"http://dbpedia.org/",lswpm:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-lifemapper-parameters.owl#",webac:"http://fedora.info/definitions/v4/webac#",bbccore:"http://www.bbc.co.uk/ontologies/coreconcepts/",orcid:"http://orcid.org/",oils:"http://lemon-model.net/oils#",hello:"https://www.youtube.com/user/SuperTellAFriend/featured/",ago:"http://awesemantic-geo.link/ontology/",pid:"http://permid.org/ontology/organization/",owl2xml:"http://www.w3.org/2006/12/owl2-xml#",traffic:"http://www.sensormeasurement.appspot.com/ont/transport/traffic#",lswmo:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-modelling.owl#",dbug:"http://ontologi.es/doap-bugs#",roadmap:"http://mappings.roadmap.org/",umls:"http://bioportal.bioontology.org/ontologies/umls/",gdc:"https://portal.gdc.cancer.gov/cases/",ldt:"https://www.w3.org/ns/ldt#",faostat:"http://reference.eionet.europa.eu/faostat/schema/",open311:"http://ontology.eil.utoronto.ca/open311#",rdfdata:"http://rdf.data-vocabulary.org/rdf.xml#",dicom:"http://purl.org/healthcarevocab/v1#",videogame:"http://purl.org/net/vgo#",vogd:"http://ogd.ifs.tuwien.ac.at/vienna/geo/",bibrm:"http://vocab.ub.uni-leipzig.de/bibrm/",oliasystem:"http://purl.org/olia/system.owl#",physo:"http://merlin.phys.uni.lodz.pl/onto/physo/physo.owl#",radar:"http://www.radar-projekt.org/display/",tui:"http://data.ifs.tuwien.ac.at/study/resource/",apf:"http://jena.apache.org/ARQ/property#",customer:"http://www.valuelabs.com/",yd:"https://yodata.io/",conll:"http://ufal.mff.cuni.cz/conll2009-st/task-description.html#",si:"http://sisteminformasi.com/",mbgd:"http://mbgd.genome.ad.jp/owl/mbgd.owl#",meeting:"http://www.w3.org/2002/07/meeting#",aprov:"http://purl.org/a-proc#",rofrr:"http://rdaregistry.info/termList/rofrr/",pp:"http://peoplesplaces.de/ontology#",escjr:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/callejero#",ndnp:"http://chroniclingamerica.loc.gov/terms#",ja:"http://jena.hpl.hp.com/2005/11/Assembler#",jerm:"http://jermontology.org/ontology/JERMOntology#",vocnet:"http://schema.vocnet.org/",iati:"http://purl.org/collections/iati/",bbccms:"http://www.bbc.co.uk/ontologies/cms/",url:"http://schema.org/",mls:"http://www.w3.org/ns/mls#",rdaz:"http://rdaregistry.info/Elements/z/",eccdi:"https://vocab.eccenca.com/di/",cpov:"http://data.europa.eu/m8g/",uom:"http://www.opengis.net/def/uom/OGC/1.0/",rdabf:"http://rdaregistry.info/termList/bookFormat/",bpo:"https://w3id.org/bpo#",memento:"http://mementoweb.org/ns#",doacc:"http://purl.org/net/bel-epa/doacc#",religion:"http://rdf.muninn-project.org/ontologies/religion#",itm:"http://spi-fm.uca.es/spdef/models/genericTools/itm/1.0#",hdo:"http://www.samos.gr/ontologies/helpdeskOnto.owl#",omg:"https://w3id.org/omg#",gg:"http://www.gemeentegeschiedenis.nl/gg-schema#",lemonuby:"http://lemon-model.net/lexica/uby/",afr:"http://purl.allotrope.org/ontologies/result#",glycan:"http://purl.jp/bio/12/glyco/glycan#",fred:"http://www.ontologydesignpatterns.org/ont/fred/domain.owl#",scco:"http://rdf.ebi.ac.uk/terms/surechembl#",nobel:"http://data.nobelprize.org/terms/",ensembl:"http://rdf.ebi.ac.uk/resource/ensembl/",cim:"http://iec.ch/TC57/2013/CIM-schema-cim16#",ln:"https://w3id.org/ln#",sfd:"http://semantic-forms.cc:9112/ldp/",numbers:"http://km.aifb.kit.edu/projects/numbers/",dicera:"http://semweb.mmlab.be/ns/dicera#",wimpo:"http://rdfex.org/withImports?uri=",reg:"http://purl.org/linked-data/registry#",lfov:"https://w3id.org/legal_form#",gns:"http://sws.geonames.org/",esair:"http://vocab.linkeddata.es/datosabiertos/def/medio-ambiente/calidad-aire#",cocoon:"https://w3id.org/cocoon/v1.0#",r3d:"http://www.re3data.org/schema/3-0#",pdf:"http://ns.adobe.com/pdf/1.3/",rpath:"https://w3id.org/lodsight/rdf-path#",ethc:"http://ethoinformatics.org/ethocore/",cbim:"http://www.coinsweb.nl/cbim-2.0.rdf#",amt:"http://academic-meta-tool.xyz/vocab#",dpn:"http://purl.org/dpn#",ofrd:"http://purl.org/opdm/refrigerator#",lgdm:"http://linkedgeodata.org/meta/",its:"http://www.w3.org/2005/11/its/rdf#",gont:"https://gont.ch/",frgeo:"http://rdf.insee.fr/geo/",volt:"http://volt-name.space/ontology/",ioto:"http://www.irit.fr/recherches/MELODI/ontologies/IoT-O#",rdalay:"http://rdaregistry.info/termList/layout/",yaco:"https://www.irit.fr/recherches/MELODI/ontologies/cinema#",lmf:"http://www.lexinfo.net/lmf#",rdaar:"http://rdaregistry.info/termList/AspectRatio/",pep:"https://w3id.org/pep/",dataid:"http://dataid.dbpedia.org/ns/core#",rdacarx:"http://rdaregistry.info/termList/RDACarrierEU/",fp3:"http://vocab.fusepool.info/fp3#",esservicio:"http://vocab.linkeddata.es/datosabiertos/def/sector-publico/servicio#",tx:"http://swtmp.gitlab.io/vocabulary/templates.owl#",datacite:"http://purl.org/spar/datacite/",markus:"http://www.markus.com/",cue:"http://www.clarin.eu/cmdi/cues/display/1.0#",odapps:"http://semweb.mmlab.be/ns/odapps#",llont:"http://www.linklion.org/ontology#",audit:"http://fedora.info/definitions/v4/audit#",biml:"http://schemas.varigence.com/biml.xsd#",seeds:"http://deductions.github.io/seeds.owl.ttl#",pmo:"http://premon.fbk.eu/ontology/core#",amsl:"http://vocab.ub.uni-leipzig.de/amsl/",provinsi:"http://provinsi.com/",ttla:"https://w3id.org/ttla/",mexcore:"http://mex.aksw.org/mex-core#",opa:"https://w3id.org/laas-iot/adream#",imo:"http://imgpedia.dcc.uchile.cl/ontology#",eame:"http://www.semanticweb.org/ontologia_EA#",opllog:"http://www.openlinksw.com/ontology/logging#",ver:"https://w3id.org/version/ontology#",add:"http://www.datatourisme.fr/ontology/core/1.0#",alethio:"http://aleth.io/",rofsm:"http://rdaregistry.info/termList/rofsm/",h2o:"http://def.seegrid.csiro.au/isotc211/iso19150/-2/2012/basic#",tree:"https://w3id.org/tree#",huto:"http://ns.inria.fr/huto/",svcs:"http://rdfs.org/sioc/services#",piero:"http://reactionontology.org/piero/",bdo:"http://purl.bdrc.io/ontology/core/",vir:"http://w3id.org/vir#",um:"http://intelleo.eu/ontologies/user-model/ns/",da:"https://www.wowman.org/index.php?id=1&type=get#",uby:"http://purl.org/olia/ubyCat.owl#",lyon:"http://dbpedia.org/resource/Lyon/",naval:"http://rdf.muninn-project.org/ontologies/naval#",system:"http://www.univalle.edu.co/ontologies/System#",vplan:"http://www.ifs.tuwien.ac.at/~miksa/ontologies/VPlan.owl#",az:"https://w3id.org/people/az/",dk:"http://www.data-knowledge.org/dk/schema/rdf/latest/",cwork:"http://www.bbc.co.uk/ontologies/creativework/",wde:"http://www.wikidata.org/entity/",lovc:"https://w3id.org/lovcube/ns/lovcube#",geovoid:"http://purl.org/geovocamp/ontology/geovoid/",composer:"http://dbpedia.org/ontology/composer/",tadirah:"http://tadirah.dariah.eu/vocab/",travel:"http://www.co-ode.org/roberts/travel.owl#",imind:"http://schema.intellimind.ns/symbology#",afm:"http://purl.allotrope.org/ontologies/material/",eepsa:"https://w3id.org/eepsa#",owms:"http://standaarden.overheid.nl/owms/terms/",bdc:"http://dbpedia.org/resource/Category:",minim:"http://purl.org/minim/minim#",frappe:"http://streamreasoning.org/ontologies/frappe#",rofid:"http://rdaregistry.info/termList/rofid/",rls:"https://w3id.org/lovcube/ns/relovstats#",b3kat:"http://lod.b3kat.de/title/",rdafnv:"http://rdaregistry.info/termList/noteForm/",uneskos:"http://purl.org/voc/uneskos#",sdshare:"http://www.sdshare.org/2012/extension/",vacseen1:"http://www.semanticweb.org/parthasb/ontologies/2014/6/vacseen1/",qms:"http://data.europa.eu/esco/qms#",koly:"http://www.ensias.ma/",l2sp:"http://www.linked2safety-project.eu/properties/",tgm:"http://id.loc.gov/vocabulary/graphicMaterials/",cwlprov:"https://w3id.org/cwl/prov#",rofin:"http://rdaregistry.info/termList/rofin/",rofit:"http://rdaregistry.info/termList/rofit/",eol:"http://purl.org/biodiversity/eol/",ecore:"http://www.eclipse.org/emf/2002/Ecore#",dpv:"http://www.w3.org/ns/dpv#",alice:"http://example.org/",rdapm:"http://rdaregistry.info/termList/RDAproductionMethod/",county:"http://myexample.org/county#",gbol:"http://gbol.life/0.1#",sdmxcode:"http://purl.org/linked-data/sdmx/2009/code#",ims:"http://www.imsglobal.org/xsd/imsmd_v1p2/",ecoll:"http://purl.org/ceu/eco/1.0#",pcit:"http://public-contracts.nexacenter.org/id/propertiesRole/",tarql:"http://tarql.github.io/tarql#",mydb:"http://mydb.org/",id:"http://identifiers.org/",scho:"http://www.scholarlydata.org/ontology/conference-ontology.owl#",duv:"http://www.w3.org/ns/duv#",oplacl:"http://www.openlinksw.com/ontology/acl#",mexalgo:"http://mex.aksw.org/mex-algo#",assoc:"https://w3id.org/associations/vocab#",fun:"http://w3id.org/sparql-generate/fn/",rofrt:"http://rdaregistry.info/termList/rofrt/",meshv:"http://id.nlm.nih.gov/mesh/vocab#",lgt:"http://linkedgadget.com/wiki/Property:",fhir:"http://hl7.org/fhir/",qkdv:"http://qudt.org/vocab/dimensionvector/",rgml:"http://purl.org/puninj/2001/05/rgml-schema#",hasneto:"http://hadatac.org/ont/hasneto#",vehma:"http://deductions.github.io/vehicule-management.owl.ttl#",rdaspc:"http://rdaregistry.info/termList/specPlayback/",conference:"https://w3id.org/scholarlydata/ontology/conference-ontology.owl#",swa:"http://topbraid.org/swa#",uri4uri:"http://uri4uri.net/vocab#",juso:"http://rdfs.co/juso/",bblfish:"http://bblfish.net/people/henry/card#",pmhb:"http://pmhb.org/",cpi:"http://www.ebusiness-unibw.org/ontologies/cpi/ns#",semiot:"http://w3id.org/semiot/ontologies/semiot#",dcosample:"http://info.deepcarbon.net/sample/schema#",mmm:"http://www.mico-project.eu/ns/mmm/2.0/schema#",irsteaont:"http://ontology.irstea.fr/weather/ontology#",yso:"http://www.yso.fi/onto/yso/",brk:"http://brk.basisregistraties.overheid.nl/def/brk#",rdaft:"http://rdaregistry.info/termList/fileType/",smxm:"http://smxm.ga/",mobivoc:"http://schema.mobivoc.org/",rdabs:"http://rdaregistry.info/termList/broadcastStand/",rvl:"http://purl.org/rvl/",ipsv:"http://id.esd.org.uk/list/",dsw:"http://purl.org/dsw/",iiif:"http://iiif.io/api/image/2#",odf:"http://docs.oasis-open.org/ns/office/1.2/meta/odf#",drk:"http://drakon.su/",itcat:"http://th-brandenburg.de/ns/itcat#",pmonb:"http://premon.fbk.eu/ontology/nb#",pmofn:"http://premon.fbk.eu/ontology/fn#",ilap:"http://data.posccaesar.org/ilap/",gvoith:"http://assemblee-virtuelle.github.io/grands-voisins-v2/thesaurus.ttl#",dead:"http://utpl.edu.ec/sbc/data/",adf:"http://purl.allotrope.org/ontologies/datapackage#",emergelm:"http://purl.org/emergel/modules#",mandaat:"http://data.vlaanderen.be/ns/mandaat#",sorg:"http://schema.org/",irstea:"http://ontology.irstea.fr/",dto:"http://www.datatourisme.fr/ontology/core/1.0#",maeco:"http://edg.topbraid.solutions/maeco/",rofrm:"http://rdaregistry.info/termList/rofrm/",dwciri:"http://rs.tdwg.org/dwc/iri/",alg:"http://drakon.su/ADF#",tosh:"http://topbraid.org/tosh#",shui:"https://vocab.eccenca.com/shui/",sdmxm:"http://purl.org/linked-data/sdmx/2009/measure#",neotec:"http://neotec.rc.unesp.br/resource/Neotectonics/",vam:"http://www.metmuseum.org/",lgdt:"http://linkedgeodata.org/triplify/",chear:"http://hadatac.org/ont/chear#",oplli:"http://www.openlinksw.com/schemas/linkedin#",besluit:"http://data.vlaanderen.be/ns/besluit#",srx:"http://www.w3.org/2005/sparql-results#",ondc:"http://www.semanticweb.org/ontologies/2012/1/Ontology1329913965202.owl#",tavprov:"http://ns.taverna.org.uk/2012/tavernaprov/",nkos:"http://w3id.org/nkos#",bds:"http://www.bigdata.com/rdf/search#",gobierno:"http://www.gobierno.es/gobierno/",persee:"http://data.persee.fr/ontology/persee_ontology/",dm2e:"http://onto.dm2e.eu/schemas/dm2e/",ctrl:"https://w3id.org/ibp/CTRLont#",sfn:"http://semweb.datasciencelab.be/ns/sfn#",or:"http://openresearch.org/vocab/",fluidops:"http://www.fluidops.com/",clapit:"http://dati.gov.it/onto/clapit/",nih:"http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#",one:"https://bioportal.bioontology.org/ontologies/ONE/",pfeepsa:"https://w3id.org/pfeepsa#",nature:"http://deductions.github.io/nature_observation.owl.ttl#",pm:"http://premon.fbk.eu/resource/",rofhf:"http://rdaregistry.info/termList/rofhf/",timex:"http://data.wu.ac.at/ns/timex#",summa:"http://purl.org/voc/summa/",wdtn:"http://www.wikidata.org/prop/direct-normalized/",ppr:"http://purl.org/datanode/ppr/ns/",vsearch:"http://vocab.sti2.at/vsearch#",undata:"http://citydata.wu.ac.at/Linked-UNData/data/",oplwebsrv:"http://www.openlinksw.com/ontology/webservices#",dbfo:"http://dbpedia.org/facts/ontology#",ncicp:"http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#",voidex:"http://www.swi-prolog.org/rdf/library/",esproc:"http://vocab.linkeddata.es/datosabiertos/def/sector-publico/procedimientos#",isbdu:"http://iflastandards.info/ns/isbd/unc/elements/",metadata:"http://purl.oreilly.com/ns/meta/",scholl:"http://menemeneml.com/school#",veo:"http://linkeddata.finki.ukim.mk/lod/ontology/veo#",olac11:"http://www.language-archives.org/OLAC/1.1/",mem:"http://mementoweb.org/ns#",pcdm:"http://pcdm.org/models#",rdfp:"https://w3id.org/rdfp/",edac:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-edac.owl#",legal:"http://www.w3.org/ns/legal#",sgfn:"http://w3id.org/sparql-generate/fn/",rdax:"http://rdaregistry.info/Elements/x/",cubeont:"http://ontology.cube.global/",input:"http://volt-name.space/vocab/input#",ctxdesc:"http://www.demcare.eu/ontologies/contextdescriptor.owl#",brt:"http://brt.basisregistraties.overheid.nl/def/top10nl#",osd:"http://a9.com/-/spec/opensearch/1.1/",ldn:"https://www.w3.org/TR/ldn/#",iter:"http://w3id.org/sparql-generate/iter/",semsur:"http://purl.org/SemSur/",lsq:"http://lsq.aksw.org/vocab#",oplbenefit:"http://www.openlinksw.com/ontology/benefits#",pmovn:"http://premon.fbk.eu/ontology/vn#",lmu:"https://w3id.org/laas-iot/lmu#",ispra:"http://dati.isprambiente.it/ontology/core#",rdapf:"http://rdaregistry.info/termList/presFormat/",cog:"http://purl.org/ontology/cco/core#",remetca:"http://www.purl.org/net/remetca#",mwapi:"https://www.mediawiki.org/ontology#API/",vocals:"http://w3id.org/rsp/vocals#",ucum:"http://purl.oclc.org/NET/muo/ucum/",pand:"http://bag.basisregistraties.overheid.nl/bag/id/pand/",geoloc:"http://deductions.github.io/geoloc.owl.ttl#",beer:"http://beer.com/",edg:"http://edg.topbraid.solutions/model/",refexo:"http://purl.jp/bio/01/refexo#",it:"http://www.influencetracker.com/ontology#",physics:"http://www.astro.umd.edu/~eshaya/astro-onto/owl/physics.owl#",wdv:"http://www.wikidata.org/value/",km4c:"http://www.disit.org/km4city/schema#",neotecbib:"http://neotec.rc.unesp.br/resource/NeotectonicsBibliography/",spv:"http://completeness.inf.unibz.it/sp-vocab#",edgarcik:"http://edgarwrap.ontologycentral.com/cik/",wail:"http://www.eyrie.org/~zednenem/2002/wail/",aozora:"http://purl.org/net/aozora/",sdmxc:"http://purl.org/linked-data/sdmx/2009/concept#",dcodt:"http://info.deepcarbon.net/datatype/schema#",swrc2:"https://www.cs.vu.nl/~mcaklein/onto/swrc_ext/2005/05#",fnom:"https://w3id.org/function/vocabulary/mapping#",bkb:"https://budayakb.cs.ui.ac.id/ns#",cff:"http://purl.oclc.org/NET/ssnx/cf/cf-feature#",roc:"https://w3id.org/ro/curate#",gdpr:"https://vocab.eccenca.com/gdpr/",rami:"http://iais.fraunhofer.de/vocabs/rami#",elod:"http://linkedeconomy.org/ontology#",nosql:"http://purl.org/db/nosql#",oplstocks:"http://www.openlinksw.com/ontology/stocks#",sgiter:"http://w3id.org/sparql-generate/iter/",bioentity:"http://bioentity.io/vocab/",dsv:"https://w3id.org/dsv#",asawoo:"http://liris.cnrs.fr/asawoo/",mus:"http://data.doremus.org/ontology#",cska:"http://pfclitex.com/",s4syst:"https://saref.etsi.org/saref4syst/",ido:"http://purl.obolibrary.org/obo/ido.owl#",provoc:"http://ns.inria.fr/provoc/",dsfv:"http://sws.ifi.uio.no/vocab/dsf/henriwi/dsf#",docker:"http://www.w3.org/ns/bde/docker/",ldqm:"http://linkeddata.es/resource/ldqm/",lg:"https://purl.org/lg/",isidore:"http://www.rechercheisidore.fr/class/",seo:"http://sda.tech/SEOontology/SEO/",changeset:"http://purl.org/vocab/changeset/schema#",dcap:"http://purl.org/ws-mmi-dc/terms/",eccpubsub:"https://vocab.eccenca.com/pubsub/",aml:"https://w3id.org/i40/aml#",swcomp:"https://github.com/ali1k/ld-reactor/blob/master/vocabulary/index.ttl#",connard:"https://mail.google.com/mail/u/1/#",dcodata:"http://info.deepcarbon.net/data/schema#",wikimedia:"http://upload.wikimedia.org/wikipedia/commons/f/f6/",rdacpc:"http://rdaregistry.info/termList/configPlayback/",rdaill:"http://rdaregistry.info/termList/IllusContent/",globalcube:"http://kalmar32.fzi.de/triples/global-cube.ttl#",devuan:"https://devuan.net.br/",ns2:"http://ogp.me/ns#video:",sdterms:"http://statisticaldata.linkedwidgets.org/terms/",dbms:"http://www.openlinksw.com/ontology/dbms-app-ontology#",edr:"https://w3id.org/laas-iot/edr#",loted:"http://loted.eu/ontology#",nno:"https://w3id.org/nno/ontology#",rm:"http://jazz.net/ns/rm#",ca:"http://complyadvantage.com/",wab:"http://wab.uib.no/cost-a32_philospace/wittgenstein.owl#",xslopm:"http://purl.org/net/opmv/types/xslt#",master1:"http://idl.u-grenoble3.fr/",number:"http://km.aifb.kit.edu/projects/numbers/number#",bld:"http://biglinkeddata.com/",d3s:"http://vocbench.solidaridad.cloud/taxonomies#",psv:"http://www.wikidata.org/prop/statement/value/",wsdl:"http://www.w3.org/ns/wsdl-rdf#",vort:"http://rockets.topbraid.solutions/vort/",iso37120:"http://ontology.eil.utoronto.ca/ISO37120.owl#",bdr:"http://purl.bdrc.io/resource/",bob:"http://good.dad/meaning/bob#",ldq:"http://www.linkeddata.es/ontology/ldq#",ifcowl:"http://www.buildingsmart-tech.org/ifcOWL/IFC4_ADD2#",rdare:"http://rdaregistry.info/termList/RDARegionalEncoding/",aseonto:"http://requirement.ase.ru/requirements_ontology#",meat:"http://example.com/",qbe:"http://citydata.wu.ac.at/qb-equations#",maet:"http://edg.topbraid.solutions/taxonomy/macroeconomics/",dby:"http://dbpedia.org/class/yago/",s4ee:"https://w3id.org/saref4ee#",unspsc:"http://ontoview.org/schema/unspsc/1#",efd:"http://data.foodanddrinkeurope.eu/ontology#",trao:"http://linkeddata.finki.ukim.mk/lod/ontology/tao#",rdagen:"http://rdaregistry.info/termList/RDAGeneration/",pbody:"http://reference.data.gov.uk/def/public-body/",aksw:"http://aksw.org/",otl:"https://w3id.org/opentrafficlights#",ontop:"https://w3id.org/ontop/",wn30:"http://purl.org/vocabularies/princeton/wn30/",spvqa:"https://bmake.th-brandenburg.de/spv#",rofim:"http://rdaregistry.info/termList/rofim/",w3cgeo:"http://www.w3.org/2003/01/geo/wgs84_pos#",eustd:"http://eurostat.linked-statistics.org/data#",rdavf:"http://rdaregistry.info/termList/videoFormat/",noise:"http://vocab.linkeddata.es/datosabiertos/def/medio-ambiente/contaminacion-acustica#",datacron:"http://www.datacron-project.eu/datAcron#",pop:"http://wiki.dbpedia.org/",rofsf:"http://rdaregistry.info/termList/rofsf/",geo7:"https://www.geo7.ch/",marcrole:"http://id.loc.gov/vocabulary/relators/",ksam:"http://kulturarvsdata.se/ksamsok#",geor:"http://www.opengis.net/def/rule/geosparql/",rfd:"http://com.intrinsec//ontology#",rdacdt:"http://rdaregistry.info/termList/RDACartoDT/",foaffff:"http://gogl.com/",imas:"https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#",tissue:"http://www.univalle.edu.co/ontologies/Tissue#",sohukd:"http://sweetontology.net/humanKnowledgeDomain/",halyard:"http://merck.github.io/Halyard/ns#",ul:"http://underlay.mit.edu/ns/",idot:"http://identifiers.org/idot/",sciprov:"http://sweetontology.net/reprSciProvenance/",ncbigene:"http://identifiers.org/ncbigene/",emergel:"http://purl.org/emergel/core#",apb:"http://www.analysispartners.org/businessmodel/",bsh:"https://brickschema.org/schema/1.1.0/BrickShape#",powla:"http://purl.org/powla/powla.owl#",ods:"http://lod.xdams.org/ontologies/ods/",atlasterms:"http://rdf.ebi.ac.uk/terms/atlas/",dnbt:"http://d-nb.info/standards/elementset/dnb#",estatwrap:"http://ontologycentral.com/2009/01/eurostat/ns#",llr:"http://lodlaundromat.org/resource/",phy:"https://w3id.org/skgo/phy#",obws:"http://delicias.dia.fi.upm.es/ontologies/ObjectWithStates.owl#",llalg:"http://www.linklion.org/algorithm/",esagen:"http://vocab.ciudadesabiertas.es/def/sector-publico/agenda-municipal#",rsctx:"http://softeng.polito.it/rsctx#",rico:"https://www.ica.org/standards/RiC/ontology#",goaf:"http://goaf.fr/goaf#",soma:"http://sweetontology.net/matr/",dpla:"http://dp.la/info/developers/map/",pmopb:"http://premon.fbk.eu/ontology/pb#",kmgeo:"http://km.aifb.kit.edu/services/geo/ontology#",crmeh:"http://purl.org/crmeh#",dm:"http://datamusee.givingsense.eu/onto/",fnml:"http://semweb.mmlab.be/ns/fnml#",ermrk:"http://www.essepuntato.it/2008/12/earmark#",eproc:"http://10.0.3.120/download/eproc_FORN_v02.owl#",bci:"https://w3id.org/BCI-ontology#",dgfr:"http://colin.maudry.com/ontologies/dgfr#",valueflows:"https://w3id.org/valueflows/",oop:"http://w3id.org/oop#",manto:"http://com.vortic3.MANTO/",r4r:"http://guava.iis.sinica.edu.tw/r4r/",modsci:"https://w3id.org/skgo/modsci#",rdaad:"http://rdaregistry.info/Elements/a/datatype/",decprov:"http://promsns.org/def/decprov#",scra:"http://purl.org/net/schemarama#",dqc:"http://semwebquality.org/ontologies/dq-constraints#",gvoi:"http://assemblee-virtuelle.github.io/grands-voisins-v2/gv.owl.ttl#",dcatnl:"http://standaarden.overheid.nl/dcatnl/terms/",oplangel:"http://www.openlinksw.com/schemas/angel#",loci:"http://linked.data.gov.au/def/loci#",daap:"http://daap.dsi.universite-paris-saclay.fr/wiki/",literature:"http://purl.org/net/cnyt-literature#",estatgph:"http://estatwrap.ontologycentral.com/id/nama_aux_gph#",ocds:"http://purl.org/onto-ocds/ocds#",fssp:"http://linkeddata.fssprus.ru/resource/",s3n:"http://w3id.org/s3n/",orgesv2:"http://datos.gob.es/sites/default/files/OntologiaDIR3/orges.owl#",oup:"http://purl.org/ontology-use-patterns#",cbb:"https://data.cbb.omgeving.vlaanderen.be/ns/cbb#",theme:"http://voc.odw.tw/theme/",estrf:"http://vocab.linkeddata.es/datosabiertos/def/transporte/trafico#",vss:"http://automotive.eurecom.fr/vsso#",rofet:"http://rdaregistry.info/termList/rofet/",imjv:"https://data.imjv.omgeving.vlaanderen.be/ns/imjv#",voidwh:"http://www.ics.forth.gr/isl/VoIDWarehouse/VoID_Extension_Schema.owl#",occ:"http://w3id.org/occ#",gmo:"http://purl.jp/bio/10/gmo/",ideotalex:"http://www.ideotalex.eu/datos/recurso/",nas:"https://data.nasa.gov/ontologies/atmonto/NAS#",xbrll:"https://w3id.org/vocab/xbrll#",ii:"http://sparql.cwrc.ca/ontologies/ii#",iotlite:"http://purl.oclc.org/NET/UNIS/fiware/iot-lite#",dmp:"http://www.sysresearch.org/rda-common-dmp#",rimmf:"http://rimmf.com/vocab/",ogdl4m:"https://github.com/martynui/OGDL4M/",odw:"http://odw.tw/",tikag:"https://www.tikag.com/",qk:"http://qudt.org/vocab/quantitykind/",somaoc:"http://sweetontology.net/matrOrganicCompound/",tsnchange:"http://purl.org/net/tsnchange#",crminf:"http://www.cidoc-crm.org/cidoc-crm/CRMinf/",prohow:"https://w3id.org/prohow#",hosp:"http://health.data.gov/def/hospital/",gdprov:"https://w3id.org/GDPRov#",lcsh:"http://id.loc.gov/authorities/subjects/",ecowlim:"http://ecowlim.tfri.gov.tw/lode/resource/",pham:"https://w3id.org/skgo/pham#",nrv:"http://ns.inria.fr/nrv#",gdprtext:"https://w3id.org/GDPRtEXT#",geofabric:"http://linked.data.gov.au/def/geofabric#",gnaf:"http://linked.data.gov.au/def/gnaf#",soproptg:"http://sweetontology.net/propTemperatureGradient/",snac:"http://socialarchive.iath.virginia.edu/",linkrel:"https://www.w3.org/ns/iana/link-relations/relation#",smartapi:"http://smart-api.io/ontology/1.0/smartapi#",ccp:"http://cookingbigdata.com/linkeddata/ccpricing#",oplp:"http://www.openlinksw.com/ontology/purchases#",terms:"http://purl.org/dc/terms/",yandex:"http://yandex.ru/",soreaa:"http://sweetontology.net/realmAtmo/",mexperf:"http://mex.aksw.org/mex-perf#",omnlc:"http://open-multinet.info/ontology/omn-lifecycle#",sfl:"http://data.finlex.fi/schema/sfl/",eproc2:"http://10.0.3.120/download/eproc_FORN_v04.owl#",fel:"http://w3id.org/vcb/fel#",isaterms:"http://purl.org/isaterms/",cwlgit:"https://w3id.org/cwl/view/git/",esdbpr:"http://es.dbpedia.org/resource/",loupe:"http://ont-loupe.linkeddata.es/def/core/",bitl:"http://lib.bit.edu.cn/ontology/1.0/",iab:"https://www.iab.com/guidelines/taxonomy/",s4bldg:"https://w3id.org/def/saref4bldg#",shema:"http://schema.org/",isoadr:"http://reference.data.gov.au/def/ont/iso19160-1-address#",m3:"http://sensormeasurement.appspot.com/m3#",earth:"http://linked.earth/ontology#",ordo:"http://www.orpha.net/ORDO/",ontoneo:"http://purl.obolibrary.org/obo/ontoneo/",cwmo:"http://purl.org/cwmo/#",eqp:"https://data.nasa.gov/ontologies/atmonto/equipment#",lesa:"http://hadatac.org/ont/lesa#",gcon:"https://w3id.org/GConsent#",mdont:"http://ont.matchdeck.com/",wild:"http://purl.org/wild/vocab#",ddb:"http://www.deutsche-digitale-bibliothek.de/edm/",stx:"http://purl.org/cyber/stix#",pplan:"http://purl.org/net/p-plan#",jup:"http://w3id.org/charta77/jup/",sopropp:"http://sweetontology.net/propPressure/",pq:"http://www.wikidata.org/prop/qualifier/",m3lite:"http://purl.org/iot/vocab/m3-lite#",osys:"http://purl.org/olia/system.owl#",hctl:"https://www.w3.org/2019/wot/hypermedia#",stencila:"http://schema.stenci.la/",sopropsl:"http://sweetontology.net/propSpaceLocation/",biolink:"https://w3id.org/biolink/vocab/",lblodlg:"http://data.lblod.info/vocabularies/leidinggevenden/",capes:"http://vocab.capes.gov.br/def/vcav#",esgs:"https://w3id.org/edwin/ontology/",sostc:"http://sweetontology.net/stateChemical/",iaph:"http://www.juntadeandalucia.es/datosabiertos/portal/iaph/dataset/dataset/6c199ca2-8d2e-4c12-833c-f28",extech:"https://w3id.org/executionTechnique/ontology/",sostv:"http://sweetontology.net/stateVisibility/",soproptf:"http://sweetontology.net/propTimeFrequency/",frbroo:"http://iflastandards.info/ns/fr/frbr/frbroo/",sophatmowm:"https://sweetontology.net/phenAtmoWindMesoscale/",losp:"http://sparql.sstu.ru:3030/speciality/",medred:"http://w3id.org/medred/medred#",soprocsc:"http://sweetontology.net/procStateChange/",sopropsp:"http://sweetontology.net/propSpeed/",chemsci:"https://w3id.org/skgo/chemsci#",jsonschema:"https://www.w3.org/2019/wot/json-schema#",vehman:"http://deductions.github.io/vehicule-management.owl.ttl#",skoslex:"https://bp4mc2.org/def/skos-lex#",sorepsc:"http://sweetontology.net/reprSciComponent/",sopropsdis:"http://sweetontology.net/propSpaceDistance/",wotsec:"https://www.w3.org/2019/wot/security#",constant:"http://qudt.org/vocab/constant/",epplan:"https://w3id.org/ep-plan#",sorepsf:"http://sweetontology.net/reprSciFunction/",soreacz:"http://sweetontology.net/realmClimateZone/",sophsy:"http://sweetontology.net/phenSystem/",sorepmo:"http://sweetontology.net/reprMathOperation/",sweet:"http://sweetontology.net/",sosttf:"http://sweetontology.net/stateTimeFrequency/",sopropti:"http://sweetontology.net/propTime/",esagm:"http://vocab.ciudadesabiertas.es/def/sector-publico/agenda-municipal#",soprocp:"http://sweetontology.net/procPhysical/",eppl:"https://w3id.org/ep-plan#",sorelm:"http://sweetontology.net/relaMath/",sopropo:"http://sweetontology.net/propOrdinal/",eccf:"http://data.europa.eu/54i/",iospress:"http://ld.iospress.nl/rdf/ontology/",sorept:"http://sweetontology.net/reprTime/",dave:"http://theme-e.adaptcentre.ie/dave#",dentsci:"https://w3id.org/skgo/dentsci#",soproc:"http://sweetontology.net/proc/",soprops:"http://sweetontology.net/propSpace/",sorepsrs:"http://sweetontology.net/reprSpaceReferenceSystem/",sorepsl:"http://sweetontology.net/reprSciLaw/",soreaas:"http://sweetontology.net/realmAstroStar/",somamin:"http://sweetontology.net/matrMineral/",sophatmow:"http://sweetontology.net/phenAtmoWind/",sopropsdir:"http://sweetontology.net/propSpaceDirection/",sorelh:"http://sweetontology.net/relaHuman/",soreaofl:"http://sweetontology.net/realmOceanFloor/",sostth:"http://sweetontology.net/stateThermodynamic/",sorealc:"http://sweetontology.net/realmLandCoastal/",sorepscd:"http://sweetontology.net/reprSpaceCoordinate/",sopropi:"http://sweetontology.net/propIndex/",sohutr:"http://sweetontology.net/humanTechReadiness/",sostrr:"http://sweetontology.net/stateRoleRepresentative/",sohut:"http://sweetontology.net/humanTransportation/",sohur:"http://sweetontology.net/humanResearch/",pineapple:"http://hexananas.com/pineapple#",sophso:"http://sweetontology.net/phenSolid/",sorepmso:"http://sweetontology.net/reprMathSolution/",sophoc:"http://sweetontology.net/phenOceanCoastal/",sorepmg:"http://sweetontology.net/reprMathGraph/",sophfd:"http://sweetontology.net/phenFluidDynamics/",sopropr:"http://sweetontology.net/propRotation/",sorepmfo:"http://sweetontology.net/reprMathFunctionOrthogonal/",soprope:"http://sweetontology.net/propEnergy/",ldc:"https://tac.nist.gov/tracks/SM-KBP/2018/ontologies/SeedlingOntology#",sopropsh:"http://sweetontology.net/propSpaceHeight/",sorepsu:"http://sweetontology.net/reprSciUnits/",dprov:"http://promsns.org/def/do#",sorepdp:"http://sweetontology.net/reprDataProduct/",sorel:"http://sweetontology.net/rela/",sopropfr:"http://sweetontology.net/propFraction/",soreas:"http://sweetontology.net/realmSoil/",pcdmuse:"http://pcdm.org/use#",skosthes:"http://purl.org/iso25964/skos-thes#",asgs:"http://linked.data.gov.au/def/asgs#",foio:"https://w3id.org/seas/FeatureOfInterestOntology/",misp:"http://purl.org/cyber/misp#",somaae:"http://sweetontology.net/matrAerosol/",trek:"https://w3id.org/trek/",sostri:"http://sweetontology.net/stateRoleImpact/",sorear:"http://sweetontology.net/realmRegion/",sorelcl:"http://sweetontology.net/relaClimate/",inchikey:"https://identifiers.org/inchikey:",sophatmopc:"http://sweetontology.net/phenAtmoPrecipitation/",sohues:"http://sweetontology.net/humanEnvirStandards/",somanr:"http://sweetontology.net/matrNaturalResource/",sopropmf:"http://sweetontology.net/propMassFlux/",sorepm:"http://sweetontology.net/reprMath/",sopropcap:"http://sweetontology.net/propCapacity/",sorep:"http://sweetontology.net/repr/",sorelpr:"http://sweetontology.net/relaProvenance/",mccv:"http://purl.jp/bio/10/mccv#",probont:"http://www.probonto.org/ontology#",sopropfu:"http://sweetontology.net/propFunction/",sopropm:"http://sweetontology.net/propMass/",sopropb:"http://sweetontology.net/propBinary/",sostrt:"http://sweetontology.net/stateRoleTrust/",somarock:"http://sweetontology.net/matrRock/",sorepdsr:"http://sweetontology.net/reprDataServiceReduction/",sophel:"http://sweetontology.net/phenElecMag/",phto:"http://rhizomik.net/ontologies/PlantHealthThreats.owl.ttl#",sorelsp:"http://sweetontology.net/relaSpace/",sorelsc:"http://sweetontology.net/relaSci/",somais:"http://sweetontology.net/matrIsotope/",twitter:"http://stocktwits.com/",somaem:"http://sweetontology.net/matrElementalMolecule/",sostso:"http://sweetontology.net/stateSolid/",sopropef:"http://sweetontology.net/propEnergyFlux/",soreps:"http://sweetontology.net/reprSpace/",sost:"http://sweetontology.net/state/",sopropcat:"http://sweetontology.net/propCategorical/",d2s:"https://w3id.org/d2s/",proton:"http://www.ontotext.com/proton/",sosttg:"http://sweetontology.net/stateTimeGeologic/",sorealp:"http://sweetontology.net/realmLandProtected/",sorepsp:"http://sweetontology.net/reprSciProvenance/",somapl:"http://sweetontology.net/matrPlant/",sophatmos:"http://sweetontology.net/phenAtmoSky/",matvoc:"http://stream-ontology.com/matvoc/",sopropdifu:"http://sweetontology.net/propDiffusivity/",edupro:"http://ns.inria.fr/semed/eduprogression#",sorealo:"http://sweetontology.net/realmLandOrographic/",sophcr:"http://sweetontology.net/phenCryo/",sophec:"http://sweetontology.net/phenEcology/",sorepdf:"http://sweetontology.net/reprDataFormat/",sostsy:"http://sweetontology.net/stateSystem/",soph:"http://sweetontology.net/phen/",sorepsme:"http://sweetontology.net/reprSciMethodology/",sorepdsv:"http://sweetontology.net/reprDataServiceValidation/",sopropsm:"http://sweetontology.net/propSpaceMultidimensional/",soreahb:"http://sweetontology.net/realmHydroBody/",biogrid:"http://thebiogrid.org/",soprop:"http://sweetontology.net/prop/",sostb:"http://sweetontology.net/stateBiological/",sosto:"http://sweetontology.net/stateOrdinal/",sorelch:"http://sweetontology.net/relaChemical/",sopropcou:"http://sweetontology.net/propCount/",soreao:"http://sweetontology.net/realmOcean/",sorepmf:"http://sweetontology.net/reprMathFunction/",sorelph:"http://sweetontology.net/relaPhysical/",soreac:"http://sweetontology.net/realmCryo/",sophei:"http://sweetontology.net/phenEnvirImpact/",sophst:"http://sweetontology.net/phenStar/",sorelt:"http://sweetontology.net/relaTime/",sophcy:"http://sweetontology.net/phenCycle/",sorepdsg:"http://sweetontology.net/reprDataServiceGeospatial/",sorepmst:"http://sweetontology.net/reprMathStatistics/",soreabb:"http://sweetontology.net/realmBiolBiome/",somaind:"http://sweetontology.net/matrIndustrial/",sopropdife:"http://sweetontology.net/propDifference/",soreaaw:"http://sweetontology.net/realmAtmoWeather/",somac:"http://sweetontology.net/matrCompound/",somaw:"http://sweetontology.net/matrWater/",ciao:"http://ciao.it/",sohuj:"http://sweetontology.net/humanJurisdiction/",somains:"http://sweetontology.net/matrInstrument/",sophatmofo:"http://sweetontology.net/phenAtmoFog/",sopropq:"http://sweetontology.net/propQuantity/",sorepsd:"http://sweetontology.net/reprSpaceDirection/",atts:"https://data.nasa.gov/ontologies/atmonto/general#",sopropche:"http://sweetontology.net/propChemical/",sorepds:"http://sweetontology.net/reprDataService/",sorepts:"http://sweetontology.net/reprTimeSeason/",ingredient:"http://www.owl-ontologies.com/test.owl/ingredient/",sophft:"http://sweetontology.net/phenFluidTransport/",sophpc:"http://sweetontology.net/phenPlanetClimate/",sophatmoc:"http://sweetontology.net/phenAtmoCloud/",sophcm:"http://sweetontology.net/phenCycleMaterial/",sorepdsa:"http://sweetontology.net/reprDataServiceAnalysis/",sopropcon:"http://sweetontology.net/propConductivity/",osmm:"https://www.openstreetmap.org/meta/",sopropdr:"http://sweetontology.net/propDimensionlessRatio/",somael:"http://sweetontology.net/matrElement/",somarocki:"http://sweetontology.net/matrRockIgneous/",lprov:"http://id.learning-provider.data.ac.uk/terms#",donto:"http://reference.data.gov.au/def/ont/dataset#",sopropcha:"http://sweetontology.net/propCharge/",sophwn:"http://sweetontology.net/phenWaveNoise/",somaf:"http://sweetontology.net/matrFacility/",hdgi:"https://w3id.org/hdgi#",snomedct:"http://purl.bioontology.org/ontology/SNOMEDCT/",beo:"https://w3id.org/beo#",somab:"http://sweetontology.net/matrBiomass/",sophb:"http://sweetontology.net/phenBiol/",country:"http://eulersharp.sourceforge.net/2003/03swap/countries#",bldont:"http://ont.biglinkeddata.com/",sorepdm:"http://sweetontology.net/reprDataModel/",sostrg:"http://sweetontology.net/stateRoleGeographic/",somaeq:"http://sweetontology.net/matrEquipment/",sophod:"http://sweetontology.net/phenOceanDynamics/",somaen:"http://sweetontology.net/matrEnergy/",sohuecons:"http://sweetontology.net/humanEnvirConservation/",soreaabl:"http://sweetontology.net/realmAtmoBoundaryLayer/",sopropst:"http://sweetontology.net/propSpaceThickness/",soreal:"http://sweetontology.net/realmLandform/",gleio:"http://lei.info/gleio/",eupont:"http://elite.polito.it/ontologies/eupont.owl#",sophatmot:"http://sweetontology.net/phenAtmoTransport/",idsc:"https://w3id.org/idsa/code/",soman:"http://sweetontology.net/matrAnimal/",taxref:"http://taxref.mnhn.fr/lod/taxon/",somas:"http://sweetontology.net/matrSediment/",esbici:"http://vocab.ciudadesabiertas.es/def/transporte/bicicleta-publica#",sophatmol:"http://sweetontology.net/phenAtmoLightning/",istex:"https://data.istex.fr/ontology/istex#",sostf:"http://sweetontology.net/stateFluid/",mmms:"http://ldf.fi/schema/mmm/",sophatmofr:"http://sweetontology.net/phenAtmoFront/",sophsyc:"http://sweetontology.net/phenSystemComplexity/",soprocc:"http://sweetontology.net/procChemical/",sostre:"http://sweetontology.net/stateRealm/",sophw:"http://sweetontology.net/phenWave/",schoi:"https://w3id.org/scholarlydata/ontology/indicators-ontology.owl#",sosttc:"http://sweetontology.net/stateTimeCycle/",sostti:"http://sweetontology.net/stateTime/",soprocw:"http://sweetontology.net/procWave/",sophatmops:"http://sweetontology.net/phenAtmoPressure/",sostsb:"http://sweetontology.net/stateSpectralBand/",ocsw:"http://data.diekb.org/def/ocsw#",cci:"http://cookingbigdata.com/linkeddata/ccinstances#",sophr:"http://sweetontology.net/phenReaction/",atd:"https://data.nasa.gov/ontologies/atmonto/data#",dbm:"http://purl.org/net/dbm/ontology#",sostrc:"http://sweetontology.net/stateRoleChemical/",sophm:"http://sweetontology.net/phenMixing/",somaio:"http://sweetontology.net/matrIon/",osmt:"https://wiki.openstreetmap.org/wiki/Key:",sorepsg3:"http://sweetontology.net/reprSpaceGeometry3D/",sostsp:"http://sweetontology.net/stateSpace/",soreaah:"http://sweetontology.net/realmAstroHelio/",soreptd:"http://sweetontology.net/reprTimeDay/",cbs:"http://betalinkeddata.cbs.nl/def/cbs#",lv2:"http://lv2plug.in/ns/lv2core/",ggbn:"http://data.ggbn.org/schemas/ggbn/terms/",sohu:"http://sweetontology.net/human/",sophatmo:"http://sweetontology.net/phenAtmo/",sostrb:"http://sweetontology.net/stateRoleBiological/",sostdp:"http://sweetontology.net/stateDataProcessing/",sopropt:"http://sweetontology.net/propTemperature/",cfrl:"http://linkeddata.finki.ukim.mk/lod/ontology/cfrl#",sophfi:"http://sweetontology.net/phenFluidInstability/",mbkeys:"https://pastebin.com/ThBfphb8#",pnv:"https://w3id.org/pnv#",sophhe:"http://sweetontology.net/phenHelio/",ccomid:"http://www.ontologyrepository.com/CommonCoreOntologies/Mid/",sostp:"http://sweetontology.net/statePhysical/",omop:"http://api.ohdsi.org/WebAPI/vocabulary/concept/",rank:"http://www.ontotext.com/owlim/RDFRank#",sostef:"http://sweetontology.net/stateEnergyFlux/",sophen:"http://sweetontology.net/phenEnergy/",wds:"http://www.wikidata.org/entity/statement/",asio:"http://purl.org/hercules/asio/core#",sostss:"http://sweetontology.net/stateSpaceScale/",omim:"http://purl.bioontology.org/ontology/OMIM/",soreaer:"http://sweetontology.net/realmEarthReference/",soreaofe:"http://sweetontology.net/realmOceanFeature/",somapa:"http://sweetontology.net/matrParticle/",malaka:"http://george.gr/",sohueccont:"http://sweetontology.net/humanEnvirControl/",compub:"https://sireneld.io/vocab/compub#",sostst:"http://sweetontology.net/stateStorm/",she:"http://shacleditor.org/",sostro:"http://sweetontology.net/stateRole/",sophhy:"http://sweetontology.net/phenHydro/",sorepsmo:"http://sweetontology.net/reprSciModel/",sorealv:"http://sweetontology.net/realmLandVolcanic/",sophgt:"http://sweetontology.net/phenGeolTectonic/",ccsla:"http://cookingbigdata.com/linkeddata/ccsla#",oplsoft:"http://www.openlinksw.com/ontology/software#",mobiliteit:"https://data.vlaanderen.be/ns/mobiliteit#",s4city:"https://saref.etsi.org/saref4city/",io:"https://iaco.me/",sorealf:"http://sweetontology.net/realmLandFluvial/",sohuc:"http://sweetontology.net/humanCommerce/",sopho:"http://sweetontology.net/phenOcean/",somamic:"http://sweetontology.net/matrMicrobiota/",sohuea:"http://sweetontology.net/humanEnvirAssessment/",sorealg:"http://sweetontology.net/realmLandGlacial/",soreaab:"http://sweetontology.net/realmAstroBody/",sostsc:"http://sweetontology.net/stateSpaceConfiguration/",sophgs:"http://sweetontology.net/phenGeolSeismicity/",gx:"https://graphite.synaptica.net/extension/",gas:"http://www.bigdata.com/rdf/gas#",soall:"http://sweetontology.net/sweetAll/",sophgg:"http://sweetontology.net/phenGeolGeomorphology/",brot:"https://w3id.org/brot#",sorealt:"http://sweetontology.net/realmLandTectonic/",oco:"https://w3id.org/oc/ontology/",say:"http://example.org/say/",sohua:"http://sweetontology.net/humanAgriculture/",iaco:"https://iaco.me/",dfcb:"http://datafoodconsortium.org/ontologies/DFC_BusinessOntology.owl#",birthdate:"http://schema.org/birthDate/",atm:"https://data.nasa.gov/ontologies/atmonto/ATM#",docam:"https://www.docam.ca/glossaurus/",arp:"http://www.arpenteur.org/ontology/Arpenteur.owl#",dfc:"http://datafoodconsortium.org/ontologies/DFC_FullModel.owl#",sophg:"http://sweetontology.net/phenGeol/",taxrefprop:"http://taxref.mnhn.fr/lod/property/",ei2a:"http://opendata.aragon.es/def/ei2a#",sostsl:"http://sweetontology.net/stateSpectralLine/",sohud:"http://sweetontology.net/humanDecision/",wasa:"http://vocab.sti2.at/wasa/",sophgv:"http://sweetontology.net/phenGeolVolcano/",osmrel:"https://www.openstreetmap.org/relation/",soreala:"http://sweetontology.net/realmLandAeolian/",dd:"http://example.org/dummydata/",waa:"http://purl.oclc.org/NET/WebApiAuthentication#",ci:"https://privatealpha.com/ontology/content-inventory/1#",s4agri:"https://saref.etsi.org/saref4agri/",bs:"https://w3id.org/bs#",fibo:"https://spec.edmcouncil.org/fibo/ontology/master/latest/",fernanda:"http://fernanda.nl/",uimo:"http://vocab.sti2.at/uimo/",persoon:"http://data.vlaanderen.be/ns/persoon#",bperson:"http://data.vlaanderen.be/ns/persoon#",ld:"http://linkeddata.ru/",saref4envi:"https://saref.etsi.org/saref4envi/",trak:"https://trakmetamodel.sourceforge.io/vocab/rdf-schema.rdf#",s4ener:"https://saref.etsi.org/saref4ener/",wotc:"http://purl.org/wot-catalogue#",osmway:"https://www.openstreetmap.org/way/",sorea:"http://sweetontology.net/realm/",sophgf:"http://sweetontology.net/phenGeolFault/",osmnode:"https://www.openstreetmap.org/node/",oplfeat:"http://www.openlinksw.com/ontology/features#",mgv:"http://mangaview.fr/mgv#",ccr:"http://cookingbigdata.com/linkeddata/ccregions#",ogura:"https://sparql.crssnky.xyz/Ogura_Hyakunin_Isshu_LinkedRDF/URIs/Ogura_Hyakunin_Isshu_schema.ttl#",knows:"http://semantic.komc/usu/2020/knows#",ldes:"https://w3id.org/ldes#",movieo:"http://movie.com/ontology/",lexicog:"http://www.w3.org/ns/lemon/lexicog#",toaru:"https://metadata.moe/toaru-sparql/elements/",eppo:"https://gd.eppo.int/taxon/",gco:"http://purl.jp/bio/12/glyco/conjugate#",ebg:"http://data.businessgraph.io/ontology#",mpg123:"https://devuan.net.br/wiki/mpg123/",univ:"http://univ.io/",jur:"http://sweet.jpl.nasa.gov/2.3/humanJurisdiction.owl#",motogp:"http://www.motogp.com/",mr:"http://marineregions.org/ns/ontology#",dbonto:"http://dbepedia.org/ontology/",bao:"http://www.bioassayontology.org/bao#",quran:"http://khalidaloufi.sa/quran#",estraf:"http://vocab.ciudadesabiertas.es/def/transporte/trafico#",srv:"http://www.daml.org/services/owl-s/1.2/Service.owl#",cto:"https://w3id.org/cto#",maroc:"http://fr.dbpedia.org/page/Maroc/",mltd:"https://mltd.pikopikopla.net/mltd-schema#",cts:"http://rdf.cdisc.org/ct/schema#",esconv:"http://vocab.ciudadesabiertas.es/def/sector-publico/convenio#",prismdb:"https://prismdb.takanakahiko.me/prism-schema.ttl#",rl:"http://rl.com/resources/",hola:"https://moodle.insa-lyon.fr/course/view.php?id=",kko:"http://kbpedia.org/kko/rc/",pgxo:"http://pgxo.loria.fr/",melding:"http://lblod.data.gift/vocabularies/automatische-melding/",ble:"http://vocab.rapidthings.eu/ns/ble.ttl#",geodcat:"http://data.europa.eu/930/",ams:"http://data.amadeus.com/",cso:"http://cso.kmi.open.ac.uk/schema/cso/",marcgt:"https://id.loc.gov/vocabulary/marcgt/",accid:"http://pid.accurids.com/",ibeacon:"http://vocab.rapidthings.eu/ns/apple/ibeacon.ttl#",nsg:"https://neuroshapes.org/",rdasource:"http://rdaregistry.info/termList/RDARecordingSources/",i18n:"https://www.w3.org/ns/i18n#",contry:"http://dbpedia.org/resource/Lyon#",gom:"https://w3id.org/gom#",rdapol:"http://rdaregistry.info/termList/RDAPolarity/",la:"https://linked.art/ns/terms/",vlueprint:"https://vlueprint.org/schema/",fx:"http://sparql.xyz/facade-x/ns/",xyz:"http://sparql.xyz/facade-x/data/",mag:"https://makg.org/property/",mdcs:"https://mdcs.monumentenkennis.nl/damageatlas/ontology#",sty:"http://purl.bioontology.org/ontology/STY/",karstlink:"https://ontology.uis-speleo.org/ontology/#",rdaut:"http://rdaregistry.info/termList/RDAUnitOfTime/",tso:"https://w3id.org/tso#",contax:"https://w3id.org/con-tax#",rdat:"http://rdaregistry.info/Elements/t/",dom:"https://html.spec.whatwg.org/#",esautob:"http://vocab.ciudadesabiertas.es/def/transporte/autobus#",oeso:"http://www.opensilex.org/vocabularies/oeso#",w3id:"https://w3id.org/",ssnx:"http://purl.oclc.org/NET/ssnx/ssn#",bop:"https://w3id.org/bop#",vph:"http://purl.org/ozo/vph.owl#",rdaio:"http://rdaregistry.info/Elements/i/object/",hops:"https://rdf.ag/o/hops#",w3geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",rdaep:"http://rdaregistry.info/termList/RDAExtensionPlan/",datagc:"https://data.grottocenter.org/ldp/",esempleo:"http://vocab.ciudadesabiertas.es/def/sector-publico/empleo#",rpg:"http://rpg.data.is4.site/",rofchrda:"http://rdaregistry.info/termList/rofchrda/",srr:"https://w3id.org/srr#",samian:"http://lod.archaeology.link/data/samian/",check:"http://pornhub.com/",rdaao:"http://rdaregistry.info/Elements/a/object/",matrycs:"http://matrycs.com/",kpd:"http://purl.org/kpd/",freq:"http://purl.org/cld/freq/",smithy:"https://awslabs.github.io/smithy/rdf-1.0#",itops:"https://vocab.eccenca.com/itops/",slm:"http://urn.fi/URN:NBN:fi:au:slm:",rdaxd:"http://rdaregistry.info/Elements/x/datatype/",mnx:"https://rdf.metanetx.org/schema/",rdatd:"http://rdaregistry.info/Elements/t/datatype/",mesh2021:"http://id.nlm.nih.gov/mesh/2021/",textgrid:"https://textgridrep.org/",rdamo:"http://rdaregistry.info/Elements/m/object/",rdato:"http://rdaregistry.info/Elements/t/object/",bdg:"http://data.bigdatagrapes.eu/resource/ontology/",rdaed:"http://rdaregistry.info/Elements/e/datatype/",rdaid:"http://rdaregistry.info/Elements/i/datatype/",seasd:"https://w3id.org/seas/",rdatb:"http://rdaregistry.info/termList/RDATypeOfBinding/",bleadapter:"http://vocab.rapidthings.eu/ns/ble/adapter.ttl#",vr:"https://www.w3.org/2018/credentials/v1/",epcis:"https://ns.gs1.org/epcis/",sou:"http://qudt.org/vocab/sou/",memorix:"http://memorix.io/ontology#",lado:"http://archaeology.link/ontology#",rdan:"http://rdaregistry.info/Elements/n/",oghamonto:"http://ontology.ogham.link/",signify:"http://purl.org/signify/ns#",comp:"http://semweb.mmlab.be/ns/rml-compression#",rdand:"http://rdaregistry.info/Elements/n/datatype/",rdamd:"http://rdaregistry.info/Elements/m/datatype/",m8g:"http://data.europa.eu/m8g/",rdaxo:"http://rdaregistry.info/Elements/x/object/",cerealstoo:"http://rdf.ag/o/cerealstoo#",faas:"http://semantic-faas.com/ontology#",rdano:"http://rdaregistry.info/Elements/n/object/",cinema:"http://www.semanticweb.org/julien/morgann/cinema#",idpo:"https://w3id.org/idpo#",kdsf:"https://kerndatensatz-forschung.de/version1/technisches_datenmodell/owl/kdsf.owl#",rdawd:"http://rdaregistry.info/Elements/w/datatype/",rdatask:"http://rdaregistry.info/termList/RDATasks/",bcom:"https://w3id.org/bcom#",spec:"http://www.w3.org/ns/spec#",arena:"https://solid.ti.rw.fau.de/public/ns/arena#",ch:"https://schema.ld.admin.ch/",hpont:"https://w3id.org/hpont#",rdap:"http://rdaregistry.info/Elements/p/",cbv:"https://ns.gs1.org/cbv/",rdamat:"http://rdaregistry.info/termList/RDAMaterial/",ogham:"http://lod.ogham.link/data/",oidc:"http://www.w3.org/ns/solid/oidc#",rdapath:"http://rdaregistry.info/termList/RDARecordingMethods/",rdasca:"http://rdaregistry.info/termList/scale/",eurio:"http://data.europa.eu/s66#",citedcat:"https://w3id.org/citedcat-ap/",mrk:"http://www.mydomain.org/Mrk-ns#",nprl:"http://data.nobelprize.org/resource/laureate/",folio:"http://IBCNServices.github.io/Folio-Ontology/Folio.owl#",rdawo:"http://rdaregistry.info/Elements/w/object/",rdapd:"http://rdaregistry.info/Elements/p/datatype/",biocrm:"http://ldf.fi/schema/bioc/",ofn:"http://www.ontotext.com/sparql/functions/",rofsfrda:"http://rdaregistry.info/termList/rofsfrda/",paf:"https://paf.link/",rofitrda:"http://rdaregistry.info/termList/rofitrda/",bcfowl:"http://lbd.arch.rwth-aachen.de/bcfOWL#",rdaim:"http://rdaregistry.info/termList/RDAInteractivityMode/",luigiusai:"https://www.luigiusai.it/wp#",nanopub:"http://www.nanopub.org/nschema#",roffgrda:"http://rdaregistry.info/termList/roffgrda/",encargado:"http://semRAT.edu/",poke:"https://pokemonkg.org/ontology#",aspect:"http://purl.org/aspect/",react:"https://w3id.org/react#",eep:"https://w3id.org/eep#",uberon:"http://purl.obolibrary.org/obo/UBERON_",cpc:"https://data.epo.org/linked-data/def/cpc/",cpg:"http://modellingdh.github.io/ont/odp/pgc/",bag2:"http://bag.basisregistraties.overheid.nl/def/bag#",rmlt:"http://semweb.mmlab.be/ns/rml-target#",ea:"http://eaontology.protect.linkeddata.es/def/",opltw:"http://www.openlinksw.com/schemas/twitter#",tci:"https://w3id.org/lbs/tci#",cgo:"https://www.tno.nl/agrifood/ontology/common-greenhouse-ontology#",s223:"http://data.ashrae.org/standard223#",aff:"https://w3id.org/affectedBy#",xmlns:"http://xmlns.com/foaf/0.1/",gax:"http://w3id.org/gaia-x/core#",setl:"http://purl.org/twc/vocab/setl/",lsqr:"http://lsq.aksw.org/",mrt:"http://marineregions.org/ns/placetypes#",djo:"http://purl.org/datajourneys/",srtun:"https://www.inf.bi.rub.de/srtun#",ghga:"http://w3id.org/ghga/",bau:"https://terminology.fraunhofer.de/voc/bau#",srmo:"https://w3id.org/srmo#",nsd:"https://w3id.org/nsd#",hqdmontol:"http://www.semanticweb.org/magma-core/ontologies/hqdm#",srt:"http://w3id.org/srt#",ewg:"http://ethoinformatics.org/",generiek:"https://data.vlaanderen.be/ns/generiek#",ontobras:"http://www.semanticweb.org/fefar/ontologies/ontobras#",m4i:"http://w3id.org/nfdi4ing/metadata4ing#",olias:"http://purl.org/olia/system.owl#",wfont:"https://w3id.org/wfont#",rc:"https://w3id.org/rc#",ldpsc:"https://solid.ti.rw.fau.de/public/ns/stream-containers#",interop:"http://www.w3.org/ns/solid/interop#",ppeer:"http://parliament.uk/ontologies/peerage/",esc:"https://solid.ti.rw.fau.de/public/ns/event-sourcing-containers#",walmart:"https://www.amazon.de/",quid:"https://w3id.org/quid/",wdno:"http://www.wikidata.org/prop/novalue/",rdaeo:"http://rdaregistry.info/Elements/e/object/",edu:"https://schema.edu.ee/",stix:"http://purl.org/cyber/stix#",paam:"https://lod.mediathek-tanz-theater.de/schema/paam/",eb:"https://w3id.org/eb#",hqdm:"http://www.semanticweb.org/hqdm#",gufo:"http://purl.org/nemo/gufo#",raum:"https://terminology.fraunhofer.de/voc/raum#",caso:"http://www.w3id.org/def/caso#",lds:"https://solid.ti.rw.fau.de/public/ns/linked-data-structures#",jsonld:"http://www.w3.org/ns/json-ld#",magmardl:"http://www.semanticweb.org/magma-core/rdl#",dsd:"https://w3id.org/dsd#",godaddy:"https://sso.godaddy.com/",asf:"https://www.stm-assoc.org/asf/",lrcommon:"http://landregistry.data.gov.uk/def/common/",kgi:"http://ns.inria.fr/kg/index#",marc:"http://www.loc.gov/MARC21/slim/",ofo:"https://w3id.org/ofo#",hni:"https://collectiedata.hetnieuweinstituut.nl/",feed:"https://www.feedipedia.org/",magmauser:"http://www.semanticweb.org/magma-core/user#",archivo:"https://archivo.dbpedia.org/onto#",rto:"https://w3id.org/rail/topo#",osdu:"https://w3id.org/OSDU#",diso:"https://purls.helmholtz-metadaten.de/diso#",lbdserver:"https://w3id.org/lbdserver#",bdsubj:"https://purl.org/fidbaudigital/subjects#",nomo:"https://nomenclature.info/nom/ontology/",rro:"http://semanticweb.org/patricia/ontologies/rro#",conllu:"https://universaldependencies.org/format.html#",value:"http://gfgfd.vs/",chameo:"https://w3id.org/emmo/domain/characterisation-methodology/chameo#",tern:"http://w3id.org/tern/ontologies/tern/",sds:"https://w3id.org/sds#",respond:"https://w3id.org/respond#",covido:"https://w3id.org/CovidO#",rsx:"http://rdf4j.org/shacl-extensions#",linkml:"https://w3id.org/linkml/",rdb:"http://www.dbs.cs.uni-duesseldorf.de/RDF/relational#",stirdata:"https://w3id.org/stirdata/vocabulary/",robotarm:"https://solid.ti.rw.fau.de/public/ns/robotArm#",nom:"https://nomenclature.info/nom/",nbo:"http://data.bioontology.org/ontologies/NBO/",fpr:"http://www.filmstandards.org/schemas/filmportal_relations#",weki:"https://en.wikipedia.org/wiki/",experts:"http://emmo.info/emmo/application/maeo/experts#",tro:"https://w3id.org/TRO/",oeo:"http://openenergy-platform.org/ontology/oeo/",lbds:"https://w3id.org/lbdserver#",itcrdf:"http://www.w3.org/2005/11/its/rdf#",perscido:"https://perscido.univ-grenoble-alpes.fr/",express:"https://w3id.org/express#",pgo:"http://ii.uwb.edu.pl/pgo#",rsp:"http://www.researchspace.org/resource/",dsi:"https://data.dsi.omgeving.vlaanderen.be/ns/dsi#",chemrof:"https://w3id.org/chemrof/",dmo:"https://w3id.org/dmo#",tempo:"http://purl.org/tempo/",cido:"http://purl.obolibrary.org/obo/cido.owl/",icon:"https://w3id.org/icon/ontology/",rnce:"https://data.cultureelerfgoed.nl/id/rnce#",linkedart:"https://linked.art/ns/terms/",osmo:"https://purl.org/vimmp/osmo#",rism:"http://rism.online/",veelana:"http://onlyfans.com/veelana/",ultragaz:"https://ultragaz24horas.com/",dbd:"http://dbpedia.org/datatype/",roh:"http://w3id.org/roh#",vntourism:"http://www.semanticweb.org/minhn/ontologies/2021/0/vntourism#",rtedurp:"http://purl.org/eduo/rtedurp/",chess:"http://purl.org/NET/rdfchess/ontology/",raad:"https://raadzaam.nl/schema/",dqvno:"https://data.norge.no/vocabulary/dqvno#",ttrpg:"https://w3id.org/TTRpg#",era:"http://data.europa.eu/949/",iddo:"https://w3id.org/iddo#",bp3:"http://www.biopax.org/release/biopax-level3.owl#",vl:"https://version.link/",fso:"https://w3id.org/fso#",consolid:"https://w3id.org/consolid#",gql:"http://www.openlinksw.com/schemas/graphql#",kokot:"http://www.koko.t/",besluitvor:"https://data.vlaanderen.be/ns/besluitvorming#",ammo:"http://ldf.fi/schema/ammo/",rcgs:"https://collection.rcgs.jp/terms/",pubchem:"https://pubchem.ncbi.nlm.nih.gov/",ufo:"http://ufo.com/#",mondo:"http://purl.obolibrary.org/obo/",cvb:"http://rdfs.org/resume-rdf/base.rdfs#",film:"http://semantics.id/ns/example/film/",iottta:"https://w3id.org/iot-tta#",grscicoll:"https://www.gbif.org/grscicoll/collection/",nen2660:"https://w3id.org/nen2660/def#",thub:"http://vocabularis.crai.ub.edu/thub/",dcb:"http://dbpedia.org/resource/Category:",apods:"http://activitypods.org/ns/core#",skosm:"http://www.w3.org/2004/02/skos/mapping#",nalt:"https://lod.nal.usda.gov/nalt/",version:"https://version.link/",koko:"https://seznam.cz/",bmp:"http://w3id.org/bmp#",coy:"https://schema.coypu.org/global#",dcatno:"https://data.norge.no/vocabulary/dcatno#",yanice:"http://yanice-boady.webflow.io/",fdp:"https://w3id.org/fdp/fdp-o#",vcs:"https://data.vlaanderen.be/ns/chemische_stof#",dick:"http://pornhub.com/",vhbieo:"https://w3id.org/vhbieo#",ntp:"https://schema.finto.fi/ntp#",ceox:"https://linkeddata.cultureelerfgoed.nl/def/ceox#",lis:"http://rds.posccaesar.org/ontology/lis14/rdl/",lib:"http://purl.org/library/",goavoc:"http://bio2rdf.org/goa_vocabulary:",crmsci:"http://cidoc-crm.org/crmsci/",hyr:"https://w3id.org/simulation/data/",hmas:"https://purl.org/hmas/",nutscode:"http://data.europa.eu/nuts/code/",dbpg:"http://dbpedia.org/page/",lcnaf:"http://id.loc.gov/authorities/names/",ncbi:"https://www.ncbi.nlm.nih.gov/",to:"http://purl.obolibrary.org/obo/TO_",coda:"http://art.uniroma2.it/coda/contracts/",epo:"http://data.europa.eu/a4g/ontology#",relation:"http://www.iana.org/assignments/relation/",plant:"http://example.org/plant/",peco:"https://w3id.org/peco#",ecfo:"https://w3id.org/ecfo#",acp:"http://www.w3.org/ns/solid/acp#",lol:"https://sbalot.github.io/lol/",tsso:"https://scch.org/technical_standards#",fs:"https://www.compliancequest.com/training-management-software-system-solutions/",ags:"https://id.agschemas.org/",dcatap:"http://data.europa.eu/r5r/",spatialf:"http://jena.apache.org/function/spatial#",coreo:"http://purl.org/coreo#",asb:"https://w3id.org/asbingowl/core#",atcc:"https://www.atcc.org/products/",rb:"https://w3id.org/riverbench/schema/metadata#",cur:"http://qudt.org/2.1/vocab/currency/",aec3po:"https://w3id.org/lbd/aec3po/",doce:"http://purl.org/nemo/doce#",sure:"http://ns.inria.fr/sure#",fdof:"https://w3id.org/fdof/ontology#",threat:"https://cve.mitre.org/",mindat:"https://www.mindat.org/",oav:"http://lod.openaire.eu/vocab/",quest:"https://rb.gy/ntg7l/",risk:"https://www.w3id.org/risk#",docbook:"http://docbook.org/ns/docbook/",databus:"https://dataid.dbpedia.org/databus#",egdo:"http://example.org/",ontouml:"https://w3id.org/ontouml#",coos:"http://id.unece.org/def/coos#",fisa:"https://ifitkau.github.io/fisa/",bacnet:"http://data.ashrae.org/bacnet/2020#",bsdd:"http://bsdd.buildingsmart.org/def#",iop:"https://w3id.org/iadopt/ont/",p2po:"https://purl.org/p2p-o#",ontologia:"http://ub.edu/dades/ontologia/Cinema#Cinemes#",hu:"https://mail.google.com/",oplben:"http://www.openlinksw.com/ontology/benefits#",baf:"https://w3id.org/baf#",pit:"http://data.elsevier.com/vocabulary/ElsevierPubItemTypes/",batmanont:"http://emmo.info/emmo/application/bmo#",ksamsok:"http://kulturarvsdata.se/ksamsok#",uio:"https://www.mitre.org/mparmelee/ontologies/2023/6/UserIntentOntology/",mi:"http://www.marineinfo.org/ns/ontology#",matmine:"http://materialsmine.org/ns/",notify:"http://www.w3.org/ns/solid/notifications#",ocmv:"https://w3id.org/ontouml-models/vocabulary#",wrroc:"https://w3id.org/ro/terms/workflow-run#",sense:"https://w3id.org/sense#",mibc:"http://marineinfo.org/ns/library/bibcodes#",cpsvno:"http://data.norge.no/vocabulary/cpsvno#",imbor:"https://data.crow.nl/imbor/def/",stax:"https://w3id.org/stax/ontology#",emmo:"https://w3id.org/emmo#",rbdoc:"https://w3id.org/riverbench/schema/documentation#",quit:"http://quit.aksw.org/vocab/",dde:"https://www.ddeworld.org/",doam:"http://emmo.info/doam#",keyon:"http://keyelements.ltd/ontologies/keyon/#",sssom:"https://w3id.org/sssom/",ogcf:"http://www.opengis.net/def/function/geosparql/",cercabib:"https://cercabib.ub.edu/",przecieki:"http://onlyfans.com/emiliaszymanska/",skosno:"http://data.norge.no/skosno#",bioschemas:"https://bioschemas.org/",bto:"http://w3id.org/emmo-bto/bto#",mibt:"https://marineinfo.org/ns/library/bibtypes#",maeo:"http://w3id.org/emmo-maeo/maeo#",ind:"https://w3id.org/inesdata#",olis:"http://olis.dev/",semapv:"https://w3id.org/semapv/vocab/",pbac:"https://w3id.org/pbac#",ies4:"http://ies.data.gov.uk/ontology/ies4#",mifesto:"https://w3id.org/mifesto#",exekg:"https://raw.githubusercontent.com/nsai-uio/ExeKGOntology/main/ds_exeKGOntology.ttl#",w3:"http://www.w3.org/",mir:"http://marineinfo.org/ns/person/roles#",cergy:"https://dbpedia.org/page/Cergy/",eurovoc:"http://eurovoc.europa.eu/",plasma:"https://w3id.org/plasma#",guez:"http://guez.fr/",iig:"https://w3id.org/iicongraph/data/",sri:"https://w3id.org/sri#",into:"https://app.korfin.de/ontology/into/",doid:"http://purl.obolibrary.org/obo/DOID_",ies:"http://ies.data.gov.uk/ontology/ies4#",hpo:"http://w3id.org/emmo-hpo/hpo#",miprog:"https://marineinfo.org/ns/progress#",hy:"https://api.hyprdia.com/",pcp:"https://pcp-on-web.de/ontology/0.2/index-en.html#",oio:"http://www.geneontology.org/formats/oboInOwl#",top:"http://w3id.org/topologicpy#",soa:"https://semopenalex.org/ontology/",uiot:"http://www.w3id.org/urban-iot/core#",deonta:"https://deonta.linkedmodel.org/deonta/",ceosp:"https://linkeddata.cultureelerfgoed.nl/def/ceosp/",lpwc:"https://linkedpaperswithcode.com/property/",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties/",ioc:"http://w3id.org/ioc#",htv:"http://www.w3.org/2011/http#",occupation:"http://nikunj.org/ontology/occupatioin#",loinc:"https://loinc.org/",tdm:"http://www.w3.org/ns/tdmrep#",tsdcreq:"https://w3id.org/oseg/ont/tsdc/req#",okh:"https://w3id.org/oseg/ont/okh#",tsdc:"https://w3id.org/oseg/ont/tsdc/core#",pwkso:"http://ns.inria.fr/pwkso/",spa:"https://paul.ti.rw.fau.de/~jo00defe/voc/spa#",chpaf:"https://ch.paf.link/",spo:"https://w3id.org/steel/ProcessOntology/",osh:"https://w3id.org/oseg/ont/osh#",ontohgis:"https://onto.kul.pl/ontohgis/",otrl:"https://w3id.org/oseg/ont/otrl#",aao:"http://purl.obolibrary.org/obo/AAO_",firebim:"http://w3id.org/firebim#",oplmarket:"http://www.openlinksw.com/ontology/market#",cwo:"http://kcoyle.net/cwo/",clyh:"http://purl.obolibrary.org/obo/ZP_",imdb:"http://m.imdb.com/",obi:"http://purl.obolibrary.org/obo/OBI_",envo:"http://purl.obolibrary.org/obo/ZP_",dinto:"http://purl.obolibrary.org/obo/ZP_",lrm:"https://iflastandards.info/ns/lrm/lrmoo/",kbmarc:"https://id.kb.se/marc/",clo:"http://purl.obolibrary.org/obo/ZP_",ado:"http://purl.obolibrary.org/obo/ADO_",rxno:"http://purl.obolibrary.org/obo/ZP_",obom:"https://w3id.org/open-bom/ont/open-bom#",dcid:"https://datacommons.org/browser/",crcr:"https://credit.niso.org/contributor-roles/",sep:"http://purl.obolibrary.org/obo/ZP_",gecko:"http://purl.obolibrary.org/obo/ZP_",reloc:"https://w3id.org/reloc#",sibo:"http://purl.obolibrary.org/obo/ZP_",coswot:"https://w3id.org/coswot/",cacax:"http://cacax.fun/",bcgo:"http://purl.obolibrary.org/obo/ZP_",moont:"https://w3id.org/moont/",ohd:"http://purl.obolibrary.org/obo/ZP_",dpo:"http://purl.obolibrary.org/obo/FBcv_",lpto:"http://w3id.org/lpto#",oplgit:"http://www.openlinksw.com/schemas/github#",htn:"http://purl.obolibrary.org/obo/ZP_",ypc:"http://www.semanticweb.org/sunsr/ontologies/2024/ypc#",txpo:"http://purl.obolibrary.org/obo/ZP_",adw:"https://animaldiversity.org/accounts/",omit:"http://purl.obolibrary.org/obo/OMIT_",mpio:"http://purl.obolibrary.org/obo/ZP_",ckg:"http://example.org/ckg#",sbo:"http://purl.obolibrary.org/obo/SBO_",mfo:"http://purl.obolibrary.org/obo/ZP_",bspo:"http://purl.obolibrary.org/obo/BSPO_",vo:"http://purl.obolibrary.org/obo/VO_",mbl:"https://w3id.org/mbl#",aimaix:"https://w3id.org/aimaix#",oip:"http://www.exemple.org/ontologia/",aix:"https://w3id.org/aix#",trans:"http://purl.obolibrary.org/obo/TRANS_",mop:"http://purl.obolibrary.org/obo/MOP_",oix:"http://www.exemple.org/ontologia/",ogi:"http://purl.obolibrary.org/obo/OGI_",uo:"http://purl.obolibrary.org/obo/UO_",zp:"http://purl.obolibrary.org/obo/ZP_",zo:"https://linkeddata.cultureelerfgoed.nl/def/zo/",libeas:"https://w3id.org/libeas#",fro:"https://foundry.ai.mil/ontology/nas/fro/",ontoavida:"http://purl.obolibrary.org/obo/ONTOAVIDA_",sopharm:"http://purl.obolibrary.org/obo/SOPHARM_",duo:"http://purl.obolibrary.org/obo/DUO_",xlmod:"http://purl.obolibrary.org/obo/XLMOD_",pw:"http://purl.obolibrary.org/obo/PW_",omo:"http://purl.obolibrary.org/obo/OMO_",fovt:"http://purl.obolibrary.org/obo/FOVT_",phipo:"http://purl.obolibrary.org/obo/PHIPO_",gramene:"http://www.gramene.org/db/ontology/search?id=GRO:",spd:"http://purl.obolibrary.org/obo/SPD_",sepio:"http://purl.obolibrary.org/obo/SEPIO_",xco:"http://purl.obolibrary.org/obo/XCO_",meas:"https://graph.interoptx.org/meas/",nmr:"https://www.ebi.ac.uk/ols4/ontologies/nmrcv/terms?short_form=NMR:",imr:"http://www.inoh.org/ontology-viewer/cgi-bin/InohOVAttr.php?type=IMR&id=",fypo:"http://purl.obolibrary.org/obo/FYPO_",msl:"https://w3id.org/msl#",foodon:"http://purl.obolibrary.org/obo/FOODON_",isoprops:"https://w3id.org/isoprops#",zfs:"http://purl.obolibrary.org/obo/ZFS_",psm:"https://paul.ti.rw.fau.de/~jo00defe/ont/psm#",occo:"http://purl.obolibrary.org/obo/OCCO_",pao:"http://purl.obolibrary.org/obo/PAO_",fbcv:"http://purl.obolibrary.org/obo/FBcv_",symp:"http://purl.obolibrary.org/obo/SYMP_",cteno:"http://purl.obolibrary.org/obo/CTENO_",cams:"https://graph.interoptx.org/cams/schema/",ehdaa2:"http://purl.obolibrary.org/obo/EHDAA2_",fiaf:"https://ontology.fiafcore.org/",gallont:"http://purl.obolibrary.org/obo/GALLONT_",mco:"http://purl.obolibrary.org/obo/MCO_",ogsf:"http://purl.obolibrary.org/obo/OGSF_",credit:"https://credit.niso.org/",ypo:"http://purl.obolibrary.org/obo/YPO_",pgdso:"http://purl.obolibrary.org/obo/PGDSO_",loin:"http://w3id.org/loin#",ehda:"http://purl.obolibrary.org/obo/EHDA_",oba:"http://purl.obolibrary.org/obo/OBA_",t4fs:"http://purl.obolibrary.org/obo/T4FS_",eo:"http://purl.obolibrary.org/obo/EO_",zeco:"http://purl.obolibrary.org/obo/ZECO_",opmi:"http://purl.obolibrary.org/obo/OPMI_",ddanat:"http://purl.obolibrary.org/obo/DDANAT_",scdo:"http://purl.obolibrary.org/obo/SCDO_",xpo:"http://purl.obolibrary.org/obo/XPO_",dron:"http://purl.obolibrary.org/obo/DRON_",bila:"http://4dx.embl.de/4DXpress/reg/all/cview/gene.do?geneID=",gaz:"http://purl.obolibrary.org/obo/GAZ_",hancestro:"http://purl.obolibrary.org/obo/HANCESTRO_",geogeo:"http://purl.obolibrary.org/obo/GEO_",poro:"http://purl.obolibrary.org/obo/PORO_",fobi:"http://purl.obolibrary.org/obo/FOBI_",emapa:"http://purl.obolibrary.org/obo/EMAPA_",stato:"http://purl.obolibrary.org/obo/STATO_",ohmi:"http://purl.obolibrary.org/obo/OHMI_",cvdo:"http://purl.obolibrary.org/obo/CVDO_",caro:"http://purl.obolibrary.org/obo/CARO_",psdo:"http://purl.obolibrary.org/obo/PSDO_",obcs:"http://purl.obolibrary.org/obo/OBCS_",zfa:"http://purl.obolibrary.org/obo/ZFA_",fix:"http://purl.obolibrary.org/obo/FIX_",aism:"http://purl.obolibrary.org/obo/AISM_",nomen:"http://purl.obolibrary.org/obo/NOMEN_",edo:"http://semanticweb.org/edo#",cdno:"http://purl.obolibrary.org/obo/CDNO_",ceph:"http://purl.obolibrary.org/obo/CEPH_",micro:"http://purl.obolibrary.org/obo/MICRO_",wbbt:"http://purl.obolibrary.org/obo/WBbt_",colao:"http://purl.obolibrary.org/obo/COLAO_",ecto:"http://purl.obolibrary.org/obo/ECTO_",genepio:"http://purl.obolibrary.org/obo/GENEPIO_",gno:"http://purl.obolibrary.org/obo/GNO_",tahh:"http://purl.obolibrary.org/obo/TAHH_",loggerhead:"http://purl.obolibrary.org/obo/LOGGERHEAD_",iptc4xmpc:"http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/",mirnao:"http://purl.obolibrary.org/obo/MIRNAO_",pdro:"http://purl.obolibrary.org/obo/PDRO_",ncro:"http://purl.obolibrary.org/obo/NCRO_",bootstrep:"http://purl.obolibrary.org/obo/BOOTSTREP_",mao:"http://purl.obolibrary.org/obo/MAO_",mfmo:"http://purl.obolibrary.org/obo/MFMO_",multionto:"http://purl.org/net/multionto/",whyis:"http://vocab.rpi.edu/whyis/",ecocore:"http://purl.obolibrary.org/obo/ECOCORE_",aeo:"http://purl.obolibrary.org/obo/AEO_",ecao:"http://purl.obolibrary.org/obo/ECAO_",fbbi:"http://purl.obolibrary.org/obo/FBbi_",ato:"http://purl.obolibrary.org/obo/ATO_",lipro:"http://purl.obolibrary.org/obo/LIPRO_",tads:"http://purl.obolibrary.org/obo/TADS_",disdriv:"http://purl.obolibrary.org/obo/DISDRIV_",vto:"http://purl.obolibrary.org/obo/VTO_",miapa:"http://purl.obolibrary.org/obo/MIAPA_",cio:"http://purl.obolibrary.org/obo/CIO_",lepao:"http://purl.obolibrary.org/obo/LEPAO_",resid:"https://proteininformationresource.org/cgi-bin/resid?id=",interpro:"http://purl.obolibrary.org/obo/IPR_",ogg:"http://purl.obolibrary.org/obo/OGG_",miro:"http://purl.obolibrary.org/obo/MIRO_",zea:"http://purl.obolibrary.org/obo/ZEA_",mpbv:"http://meta-pfarrerbuch.evangelische-archive.de/vocabulary#",chiro:"http://purl.obolibrary.org/obo/CHIRO_",dgaterms:"https://w3id.org/dgaterms#",emobon:"http://www.embrc.eu/emobon/EmoBonOntology#",duodrl:"https://w3id.org/duodrl#",norse:"https://w3id.org/aksw/norse#",mcro:"https://www.ebi.ac.uk/ols4/ontologies/mcro/classes?obo_id=MCRO:",vario:"http://purl.obolibrary.org/obo/VariO_",aro:"http://purl.obolibrary.org/obo/ARO_",ngbo:"http://purl.obolibrary.org/obo/NGBO_",flopo:"http://purl.obolibrary.org/obo/FLOPO_",hso:"http://purl.obolibrary.org/obo/HSO_",upa:"http://www.grenoble.prabi.fr/obiwarehouse/unipathway/upa?upid=",amphx:"http://purl.obolibrary.org/obo/AMPHX_",fbsp:"http://purl.obolibrary.org/obo/FBSP_",rex:"http://purl.obolibrary.org/obo/REX_"},Yx=class bD{constructor(){Ce(this,"_nsMap")}static getInstance(){return this._instance||(this._instance=new bD),this._instance}compactIRI(e){let t=this._nsMap;void 0===t&&(t=this._buildNSMap());let r=e;if(e.includes("#"))r=`${e.split("#")[0]}#`;else{const o=e.split("/");o.pop(),r=o.join("/")+"/"}if(void 0===r)return e;const i=t[r];return void 0===i?e:e.replace(r,`${i}:`)}expandIRI(e){const t=e.split(":")[0];return e.replace(`${t}:`,is[t]??nn[t])}_buildNSMap(){const e={};return Object.keys(is).forEach(t=>e[is[t]]=t),Object.keys(nn).forEach(t=>e[nn[t]]=t),this._nsMap=e,e}};Ce(Yx,"_instance");let eC=Yx;const q8=`${nn.qcy}ContentCategory`,Z8=`${nn.qcy}EntityCategory`,B8=`${nn.qcy}relatedEntity`;class tC{constructor(e,t,r,i,o){Ce(this,"_snapshot"),Ce(this,"_inflight"),Ce(this,"_currentLang"),Ce(this,"_verbose"),Ce(this,"_contentCategories"),Ce(this,"_entityCategories"),Ce(this,"_relationships"),Ce(this,"availableContentCategories"),Ce(this,"availableEntityCategories"),Ce(this,"availableEntityRelationships"),Ce(this,"ready"),this._api=e,this._projectId=t,this._graphType=i,this._verbose=o??!1,this._currentLang=r,this._api.setLanguage(r),this._contentCategories=new ir([]),this._entityCategories=new ir([]),this._relationships=new ir([]),this.availableContentCategories=this._contentCategories.asReadonly(),this.availableEntityCategories=this._entityCategories.asReadonly(),this.availableEntityRelationships=this._relationships.asReadonly(),this.ready=this._load().catch(s=>console.error("[CueProjectSchema] Initial load failed:",s))}get language(){return this._api.language}setLanguage(e){if(this._currentLang!==e){if(this._currentLang=e,this._api.setLanguage(e),this._snapshot)return void this._apply(this._snapshot);this._load().catch(t=>console.error("[CueProjectSchema] Language switch failed:",t))}}refresh(){var e=this;return(0,g.A)(function*(){e._snapshot=void 0,yield e._load()})()}_load(){var e=this;return(0,g.A)(function*(){if(e._snapshot)return void e._apply(e._snapshot);if(e._inflight)return e._inflight;e._verbose&&console.log(`[CueProjectSchema] Fetching schema \u2014 project: ${e._projectId}, graphType: ${e._graphType??"default"}`);const t=e._fetchSnapshot().then(r=>{e._verbose&&console.log(`[CueProjectSchema] Applying fresh snapshot \u2014 contentCategories: ${r.contentCategories.length}, entityCategories: ${r.entityCategories.length}, relationships: ${r.relationships.length}`),e._snapshot=r,e._apply(r)}).finally(()=>{e._inflight=void 0});return e._inflight=t,t})()}_fetchSnapshot(){var e=this;return(0,g.A)(function*(){if("fuseki"!==e._graphType){const t=yield e._runSchemaQuery("PREFIX view: <https://qlever.cs.uni-freiburg.de/materializedView/>\nSELECT ?iri ?type ?parent ?deprecated ?label ?definition\nWHERE {\n SERVICE view:schemas {\n _:cfg view:column-iri ?iri ;\n view:column-type ?type ;\n view:column-parent ?parent ;\n view:column-deprecated ?deprecated ;\n view:column-label ?label ;\n view:column-definition ?definition .\n }\n}");if(t.contentCategories.length+t.entityCategories.length+t.relationships.length>0)return t;console.warn(`[CueProjectSchema] Materialized view "schemas" returned no rows for project ${e._projectId} \u2014 falling back to the live schema query.`)}return e._runSchemaQuery(e._buildSchemaQuery())})()}_apply(e){const t=this._currentLang;this._contentCategories.set(e.contentCategories.map(r=>this._toDef(r,t))),this._entityCategories.set(e.entityCategories.map(r=>this._toDef(r,t))),this._relationships.set(e.relationships.map(r=>this._toDef(r,t)))}_toDef(e,t){const r=iC(e.labels,t)??e.iri.split("#").at(-1)??e.iri,i=iC(e.definitions,t),o=Object.keys(e.definitions).length>0;return{iri:e.iri,label:r,labels:e.labels,...void 0!==i?{definition:i}:{},...o?{definitions:e.definitions}:{},...void 0!==e.parent?{parent:e.parent}:{},...void 0!==e.deprecated?{deprecated:e.deprecated}:{}}}_buildSchemaQuery(){return`PREFIX qcy: <${nn.qcy}>\nPREFIX skos: <${is.skos}>\nPREFIX rdfs: <${is.rdfs}>\nPREFIX owl: <${is.owl}>\nSELECT ?iri ?type ?parent ?deprecated ?label ?definition\nWHERE {\n {\n VALUES ?type { qcy:ContentCategory qcy:EntityCategory }\n ?iri a ?type ;\n skos:prefLabel ?label .\n OPTIONAL { ?iri skos:definition ?definition }\n OPTIONAL { ?iri skos:broader ?parent }\n OPTIONAL { ?iri owl:deprecated ?deprecated }\n }\n UNION\n {\n ?iri rdfs:subPropertyOf+ qcy:relatedEntity .\n ?iri rdfs:label ?label .\n OPTIONAL { ?iri rdfs:comment ?definition }\n OPTIONAL { ?iri rdfs:subPropertyOf ?parent }\n OPTIONAL { ?iri owl:deprecated ?deprecated }\n BIND(qcy:relatedEntity AS ?type)\n }\n}`}_runSchemaQuery(e){var t=this;return(0,g.A)(function*(){var r,i,o,s;const a=yield t._api.sparql(e,t._projectId,t._graphType),c=new Map;for(const d of a.results.bindings){const h=null==(r=d.iri)?void 0:r.value,f=null==(i=d.type)?void 0:i.value;if(!h||!f)continue;let E=c.get(h);E||(E={iri:h,type:f,labels:{},definitions:{}},c.set(h,E)),void 0===E.parent&&null!=(o=d.parent)&&o.value&&(E.parent=d.parent.value);const q=null==(s=d.deprecated)?void 0:s.value;void 0!==q&&(E.deprecated="true"===q||"1"===q),nC(E.labels,d.label),nC(E.definitions,d.definition)}const u={contentCategories:[],entityCategories:[],relationships:[]};for(const d of c.values())rC(d.labels),rC(d.definitions),d.type===q8?u.contentCategories.push(d):d.type===Z8?u.entityCategories.push(d):d.type===B8&&u.relationships.push(d);return u})()}}function nC(n,e){if(!e||void 0===e.value)return;const t=e["xml:lang"],r=t&&t.length>0?t:"default";void 0===n[r]&&(n[r]=e.value)}function rC(n){if(void 0!==n.en)return void(n.default=n.en);if(void 0!==n.default)return;const e=Object.values(n)[0];void 0!==e&&(n.default=e)}function iC(n,e){return n[e]??n.default}class yb{constructor(e,t,r=ub,i,o=!1){Ce(this,"baseURL"),Ce(this,"_entityDetails",new ir({})),Ce(this,"_entityDocuments",new ir({})),Ce(this,"_entityRelationships",new ir({})),Ce(this,"_entityOSMMap",new ir({})),Ce(this,"_osmWKTMap",new ir({})),Ce(this,"_fetchingOSMIds",new Set),Ce(this,"_seenIds",new Set),Ce(this,"_entityGraph",new ir(void 0)),Ce(this,"_summaryGraphCache",new Map),Ce(this,"_categoryCountsCache"),Ce(this,"_entityInfoMapComputed",function ab(n,e){const t=new Set;let r=e(),i=!1;const o=[],s=()=>{i=!0;for(const a of t)a()};for(const a of n)o.push(a.subscribe(s));return{get:()=>(i&&(r=e(),i=!1),r),subscribe:a=>(t.add(a),()=>t.delete(a)),destroy(){for(const a of o)a();t.clear()}}}([this._entityDetails,this._entityDocuments,this._entityRelationships,this._entityOSMMap,this._osmWKTMap],()=>this._computeEntityInfoMap())),Ce(this,"entityInfoMap"),Ce(this,"entityGraph"),this._api=e,this._projectId=t,this._graphType=i,this._verbose=o,this.baseURL=`${r}${t}/`,this.entityInfoMap=this._entityInfoMapComputed,this.entityGraph=this._entityGraph.asReadonly(),this._entityOSMMap.subscribe(()=>this._checkPendingOSMFetches()),this._fetchEntityGraph().catch(s=>console.error("[CueProjectEntities] Entity graph fetch failed:",s))}entityIri(e){return`${this.baseURL}${e}`}_resourceIri(e){return`${this.baseURL}${e}`}_log(e){this._verbose&&console.debug(`[CueProjectEntities pid=${this._projectId}] ${e}`)}reset(){this._entityDetails.set({}),this._entityDocuments.set({}),this._entityRelationships.set({}),this._entityOSMMap.set({}),this._osmWKTMap.set({}),this._entityGraph.set(void 0),this._fetchingOSMIds.clear(),this._seenIds.clear(),this._summaryGraphCache.clear(),this._categoryCountsCache=void 0,this._fetchEntityGraph().catch(e=>console.error("[CueProjectEntities] Entity graph fetch failed after reset:",e))}requestEntityData(e,t=!1){for(const s of e)this._seenIds.add(s);const r=e.filter(s=>void 0===this._entityDetails.get()[s]);if(0===r.length)return;this._log(`requestEntityData: ${r.length} new / ${e.length} requested | cumulative: ${this._seenIds.size} seen`);const i=r.map(s=>`r:${s}`).join(" ");this._api.sparql(`PREFIX qcy: <${nn.qcy}>\nPREFIX r: <${this.baseURL}>\nSELECT ?id (SAMPLE(?val) AS ?value) (GROUP_CONCAT(DISTINCT STR(?cat); SEPARATOR=";") AS ?categories) ?mentionCount\nWHERE {\n VALUES ?iri { ${i} }\n ?iri qcy:hasEntityCategory ?cat ;\n qcy:value ?val\n BIND(REPLACE(STR(?iri), "^.*/([^/]*)$", "$1") AS ?id)\n ${t?"{SELECT ?iri (COUNT(?mention) AS ?mentionCount)\n WHERE { ?mention qcy:resolvesTo ?iri } GROUP BY ?iri}":""}\n}\nGROUP BY ?id ?mentionCount`,this._projectId,this._graphType).then(s=>{const a=s,c={...this._entityDetails.get()};a.results.bindings.forEach(u=>{var d,h,f;u.id&&(c[u.id.value]={value:(null==(d=u.value)?void 0:d.value)??"",categories:(null==(f=null==(h=u.categories)?void 0:h.value)?void 0:f.split(";").filter(Boolean))??[],mentionCount:u.mentionCount?parseInt(u.mentionCount.value,10):void 0})}),this._entityDetails.set(c),this._log(`entityDetails: ${Object.keys(c).length} with metadata / ${this._seenIds.size} seen (cumulative)`)}).catch(s=>console.error("[CueProjectEntities] requestEntityData failed:",s))}requestEntityLocations(e){var t=this;return(0,g.A)(function*(){const r=e.filter(u=>void 0===t._entityOSMMap.get()[u]);if(0===r.length)return;for(const u of e)t._seenIds.add(u);t._log(`requestEntityLocations: ${r.length} new / ${e.length} requested | cumulative: ${t._seenIds.size} seen`);const i={...t._entityOSMMap.get()};for(const u of r)i[u]={direct:[],indirect:[]};t._entityOSMMap.set(i);const o=r.map(u=>`r:${u}`).join(" "),s=`PREFIX qcy: <${nn.qcy}>\nPREFIX r: <${t.baseURL}>\nSELECT ?id ?osm ?direct ?rels ?entityUUID\nWHERE {\n VALUES ?iri { ${o} }\n {\n SELECT ?iri ?osm ?direct\n WHERE {\n ?iri qcy:similarTo ?osm .\n FILTER STRSTARTS(STR(?osm), "https://www.openstreetmap.org/")\n BIND(true AS ?direct)\n }\n }\n UNION\n {\n SELECT ?iri ?osm ?direct ?entityUUID (GROUP_CONCAT(STR(?rel); SEPARATOR=";") AS ?rels)\n WHERE {\n ?iri qcy:relatedEntity ?loc .\n ?iri ?rel ?loc .\n ?loc qcy:similarTo ?osm .\n FILTER STRSTARTS(STR(?osm), "https://www.openstreetmap.org/")\n FILTER(?rel != qcy:relatedEntity)\n BIND(false AS ?direct)\n BIND(REPLACE(STR(?loc), "^.*/([^/]*)$", "$1") AS ?entityUUID)\n } GROUP BY ?iri ?osm ?direct ?entityUUID\n }\n BIND(REPLACE(STR(?iri), "^.*/([^/]*)$", "$1") AS ?id)\n}`,a=yield t._api.sparql(s,t._projectId,t._graphType),c={...t._entityOSMMap.get()};a.results.bindings.forEach(u=>{var d,h,f,E;if(!u.id||!u.osm)return;const q=u.id.value,Q=u.osm.value,de="true"===(null==(d=u.direct)?void 0:d.value),$e=(null==(f=null==(h=u.rels)?void 0:h.value)?void 0:f.split(";").filter(Boolean))??[],je=null==(E=u.entityUUID)?void 0:E.value,De=c[q]??{direct:[],indirect:[]};de?De.direct.push(Q):je&&De.indirect.push({osm:Q,viaRels:$e,entityUUID:je}),c[q]=De}),t._entityOSMMap.set(c),t._log(`entityOSMMap: ${Object.keys(c).length} with OSM / ${t._seenIds.size} seen (cumulative)`)})()}fetchEntityRelationships(e){var t=this;return(0,g.A)(function*(){const r=e.replace(/^.*\/([^/]*)$/,"$1");t._entityRelationships.set({...t._entityRelationships.get(),[r]:{incoming:[],outgoing:[]}});const[i,o]=yield Promise.all([t._fetchOutgoingRelationships(e),t._fetchIncomingRelationships(e)]),s={outgoing:i,incoming:o};return t._entityRelationships.set({...t._entityRelationships.get(),[r]:s}),s})()}fetchEntityDocuments(e){var t=this;return(0,g.A)(function*(){const r=e.replace(/^.*\/([^/]*)$/,"$1");t._entityDocuments.set({...t._entityDocuments.get(),[r]:[]}),void 0===t._entityDetails.get()[r]&&t.requestEntityData([r]);const i=`PREFIX qcy: <${nn.qcy}>\nSELECT DISTINCT ?id\nWHERE {\n BIND(<${e}> AS ?iri)\n ?doc a qcy:FileContent ;\n qcy:about ?iri .\n BIND(REPLACE(STR(?doc), "^.*/([^/]*)$", "$1") AS ?id)\n}`,o=(yield t._api.sparql(i,t._projectId,t._graphType)).results.bindings.filter(s=>void 0!==s.id).map(s=>s.id.value);return t._entityDocuments.set({...t._entityDocuments.get(),[r]:o}),o})()}contentCategoriesInProject(){var e=this;return(0,g.A)(function*(t=!0){const i=`PREFIX qcy: <${nn.qcy}>\nPREFIX skos: <${is.skos}>\nSELECT ?iri (SAMPLE(?l) AS ?label) ?count\nWHERE {\n ?iri a qcy:EntityCategory .\n OPTIONAL { ?iri skos:prefLabel ?lang_label FILTER(LANG(?lang_label) = "${e._api.language}") }\n OPTIONAL { ?iri skos:prefLabel ?no_lang_label }\n BIND(COALESCE(?lang_label, ?no_lang_label) AS ?l)\n ${t?"{ SELECT (COUNT(?x) AS ?count) ?iri where { ?x a qcy:CanonicalEntity ; qcy:hasEntityCategory ?iri } GROUP BY ?iri }":""}\n}\nGROUP BY ?iri ?count\nORDER BY ${t?"DESC(?count)":"ASC(?label)"}`;return(yield e._api.sparql(i,e._projectId,e._graphType)).results.bindings.filter(o=>void 0!==o.iri).map(o=>{var s;const a=o.count?parseInt(o.count.value,10):0,c=(null==(s=o.label)?void 0:s.value)??o.iri.value.split("#").at(-1);return{iri:o.iri.value,label:a>0?`${c} (${a})`:c??""}})}).apply(this,arguments)}entitiesByCategory(e){var t=this;return(0,g.A)(function*(r,i=!1){if(0===r.length)return[];const o=eC.getInstance(),a=r.map(u=>`<${(u=>u.startsWith("http://")||u.startsWith("https://")?u:o.expandIRI(u))(u)}>`).join(" "),c=i?`PREFIX qcy: <${nn.qcy}>\nSELECT ?id (SAMPLE(?val) AS ?value) (GROUP_CONCAT(DISTINCT STR(?allCat); SEPARATOR=";") AS ?categories)\nWHERE {\n VALUES ?filterCat { ${a} }\n ?iri a qcy:CanonicalEntity ;\n qcy:hasEntityCategory ?filterCat ;\n qcy:value ?val ;\n qcy:hasEntityCategory ?allCat .\n BIND(REPLACE(STR(?iri), "^.*/", "") AS ?id)\n}\nGROUP BY ?id`:`PREFIX qcy: <${nn.qcy}>\nSELECT DISTINCT ?id\nWHERE {\n VALUES ?filterCat { ${a} }\n ?iri a qcy:CanonicalEntity ;\n qcy:hasEntityCategory ?filterCat .\n BIND(REPLACE(STR(?iri), "^.*/", "") AS ?id)\n}`;return(yield t._api.sparql(c,t._projectId,t._graphType)).results.bindings.filter(u=>u.id).map(u=>{var d,h,f;const E=u.id.value,q={iri:t._resourceIri(E),uuid:E};return i?{...q,value:(null==(d=u.value)?void 0:d.value)??"",categories:(null==(f=null==(h=u.categories)?void 0:h.value)?void 0:f.split(";").filter(Boolean))??[]}:q})}).apply(this,arguments)}buildSummaryGraph(e,t){var r=this;return(0,g.A)(function*(){const i=eC.getInstance(),o=t?t.includes("://")?t:i.expandIRI(t):void 0,s=o?` FILTER(?sourceCat = <${o}> || ?targetCat = <${o}>)`:"",a=`PREFIX qcy: <${nn.qcy}>\nSELECT\n ?sourceCat\n ?predicate\n ?targetCat\n (COUNT(*) AS ?weight)\nWHERE {\n ?s a qcy:CanonicalEntity ;\n qcy:hasEntityCategory ?sourceCat .\n ?o a qcy:CanonicalEntity ;\n qcy:hasEntityCategory ?targetCat .\n ?s ?predicate ?o .\n FILTER(isIRI(?s) && isIRI(?o))\n FILTER(?predicate != qcy:relatedEntity)\n${s}\n}\nGROUP BY ?sourceCat ?predicate ?targetCat\nORDER BY DESC(?weight)`,c=o??"";let u=r._summaryGraphCache.get(c);u||(u=r._fetchSummaryData(a,s),r._summaryGraphCache.set(c,u),u.catch(()=>r._summaryGraphCache.delete(c)));const d=yield u,h=d.results.bindings.filter(f=>f.sourceCat&&f.predicate&&f.targetCat);if("graph"===e){const f=new Set,E=[];for(const Q of h){const de=Q.sourceCat.value,$e=Q.predicate.value,je=Q.targetCat.value,De=parseInt(Q.weight.value,10);f.add(de),f.add(je),E.push({sourceID:de,predicate:$e,targetID:je,weight:De})}let q;try{q=yield r._fetchCategoryCounts()}catch(Q){console.warn("[CueProjectEntities] Failed to fetch entity category counts:",Q)}return{entities:Array.from(f).map(Q=>{const de=q?.get(Q);return void 0!==de?{iri:Q,weight:de}:{iri:Q}}),relations:E}}if("md"===e){const f=h.map(de=>({src:i.compactIRI(de.sourceCat.value),pred:i.compactIRI(de.predicate.value),tgt:i.compactIRI(de.targetCat.value),weight:parseInt(de.weight.value,10)}));if(0===f.length)return"(no results)";const E=Math.max(...f.map(de=>de.src.length)),q=Math.max(...f.map(de=>de.pred.length)),Q=Math.max(...f.map(de=>de.tgt.length));return f.map(de=>`${de.src.padEnd(E)} -> ${de.pred.padEnd(q)} -> ${de.tgt.padEnd(Q)} (${de.weight})`).join("\n")}return d})()}_fetchSummaryData(e,t){var r=this;return(0,g.A)(function*(){return r._fetchViewBacked(e,`PREFIX view: <https://qlever.cs.uni-freiburg.de/materializedView/>\nSELECT ?sourceCat ?predicate ?targetCat ?weight\nWHERE {\n SERVICE view:entity-summary {\n _:cfg view:column-sourceCat ?sourceCat ;\n view:column-predicate ?predicate ;\n view:column-targetCat ?targetCat ;\n view:column-weight ?weight .\n }\n${t}\n}\nORDER BY DESC(?weight)`,"entity-summary")})()}_fetchCategoryCounts(){var e=this;return(0,g.A)(function*(){return e._categoryCountsCache||(e._categoryCountsCache=e._fetchViewBacked(`PREFIX qcy: <${nn.qcy}>\nSELECT ?cat (COUNT(*) AS ?weight) WHERE {\n ?e a qcy:CanonicalEntity ;\n qcy:hasEntityCategory ?cat .\n}\nGROUP BY ?cat\nORDER BY DESC(?weight)`,"PREFIX view: <https://qlever.cs.uni-freiburg.de/materializedView/>\nSELECT ?cat ?weight\nWHERE {\n SERVICE view:entity-category-counts {\n _:cfg view:column-cat ?cat ;\n view:column-weight ?weight .\n }\n}\nORDER BY DESC(?weight)","entity-category-counts").then(i=>{var o,s;const a=new Map;for(const c of i.results.bindings){const u=null==(o=c.cat)?void 0:o.value,d=null==(s=c.weight)?void 0:s.value;u&&void 0!==d&&a.set(u,parseInt(d,10))}return a}),e._categoryCountsCache.catch(()=>{e._categoryCountsCache=void 0})),e._categoryCountsCache})()}_fetchViewBacked(e,t,r){var i=this;return(0,g.A)(function*(){var o,s;if("fuseki"!==i._graphType){const a=yield i._api.sparql(t,i._projectId,i._graphType);if(null!=(s=null==(o=a?.results)?void 0:o.bindings)&&s.length)return a;console.warn(`[CueProjectEntities] Materialized view "${r}" returned no rows \u2014 falling back to the live query.`)}return yield i._api.sparql(e,i._projectId,i._graphType)})()}_computeEntityInfoMap(){const e=this._entityDetails.get(),t=this._entityDocuments.get(),r=this._entityRelationships.get(),i=this._entityOSMMap.get(),o=this._osmWKTMap.get(),s=new Set([...Object.keys(e),...Object.keys(i).filter(c=>{const u=i[c];return u.direct.length>0||u.indirect.length>0})]),a={};for(const c of s){const u=e[c],d=i[c];let h,f;if(d){const E=new Set;h=d.direct.filter(Q=>void 0!==o[Q]&&!E.has(Q)&&!!E.add(Q)).map(Q=>({osmIRI:Q,wkt:o[Q]}));const q=new Map;for(const{osm:Q,viaRels:de,entityUUID:$e}of d.indirect){const je=o[Q];if(je)for(const De of de){const et=`${De}:${$e}`,gt=q.get(et)??{geometries:[],entityUUID:$e};gt.geometries.some(xt=>xt.osmIRI===Q)||(gt.geometries.push({osmIRI:Q,wkt:je}),q.set(et,gt))}}q.size>0&&(f=Array.from(q.entries()).map(([Q,{geometries:de,entityUUID:$e}])=>({rel:Q.split(":")[0],geometries:de,entityUUID:$e})))}a[c]={value:u?.value??"",categories:u?.categories??[],mentionCount:u?.mentionCount,documentRefs:t[c],relationshipData:r[c],directMapGeometries:h,indirectMapGeometries:f}}return a}_fetchOutgoingRelationships(e){var t=this;return(0,g.A)(function*(){const r=`PREFIX qcy: <${nn.qcy}>\nSELECT ?rel ?related (SAMPLE(?val) AS ?nodeValue) (GROUP_CONCAT(STR(?cat); SEPARATOR=";") AS ?categories)\nWHERE {\n BIND(<${e}> AS ?s)\n ?s qcy:relatedEntity ?related ;\n ?rel ?related .\n ?related qcy:hasEntityCategory ?cat ;\n qcy:value ?val\n FILTER(?rel != qcy:relatedEntity)\n}\nGROUP BY ?rel ?related`,i=yield t._api.sparql(r,t._projectId,t._graphType),o=[],s={...t._entityDetails.get()};return i.results.bindings.forEach(a=>{var c,u,d,h;if(!a.rel||!a.related)return;const f=(null==(u=null==(c=a.categories)?void 0:c.value)?void 0:u.split(";").filter(Boolean))??[];o.push({relIRI:a.rel.value,nodeIRI:a.related.value,nodeValue:(null==(d=a.nodeValue)?void 0:d.value)??"",nodeCategories:f});const E=a.related.value.replace(/^.*\/([^/]*)$/,"$1");s[E]={value:(null==(h=a.nodeValue)?void 0:h.value)??"",categories:f}}),t._entityDetails.set(s),o})()}_fetchIncomingRelationships(e){var t=this;return(0,g.A)(function*(){const r=`PREFIX qcy: <${nn.qcy}>\nSELECT ?rel ?relating (SAMPLE(?val) AS ?nodeValue) (GROUP_CONCAT(STR(?cat); SEPARATOR=";") AS ?categories)\nWHERE {\n BIND(<${e}> AS ?s)\n ?relating qcy:relatedEntity ?s ;\n ?rel ?s .\n ?relating qcy:hasEntityCategory ?cat ;\n qcy:value ?val\n FILTER(?rel != qcy:relatedEntity)\n}\nGROUP BY ?rel ?relating`,i=yield t._api.sparql(r,t._projectId,t._graphType),o=[],s={...t._entityDetails.get()};return i.results.bindings.forEach(a=>{var c,u,d,h;if(!a.rel||!a.relating)return;const f=(null==(u=null==(c=a.categories)?void 0:c.value)?void 0:u.split(";").filter(Boolean))??[];o.push({relIRI:a.rel.value,nodeIRI:a.relating.value,nodeValue:(null==(d=a.nodeValue)?void 0:d.value)??"",nodeCategories:f});const E=a.relating.value.replace(/^.*\/([^/]*)$/,"$1");s[E]={value:(null==(h=a.nodeValue)?void 0:h.value)??"",categories:f}}),t._entityDetails.set(s),o})()}_fetchEntityGraph(){var e=this;return(0,g.A)(function*(){const t=`PREFIX qcy: <${nn.qcy}>\nSELECT ?e1Cat ?e2Cat (COUNT(?e1) AS ?e1Count) (COUNT(?e2) AS ?e2Count)\nWHERE {\n ?e1 a qcy:CanonicalEntity ;\n qcy:hasEntityCategory ?e1Cat ;\n qcy:relatedEntity ?e2 .\n ?e2 qcy:hasEntityCategory ?e2Cat\n}\nGROUP BY ?e1Cat ?e2Cat`,r=yield e._api.sparql(t,e._projectId,e._graphType),i=[],o=[];r.results.bindings.forEach(s=>{if(!s.e1Cat||!s.e2Cat)return;const a=s.e1Cat.value,c=s.e2Cat.value,u=s.e1Count&&parseInt(s.e1Count.value,10)||20,d=s.e2Count&&parseInt(s.e2Count.value,10)||20;i.some(h=>h.iri===a)||i.push({iri:a,size:u}),i.some(h=>h.iri===c)||i.push({iri:c,size:d}),o.push({sourceID:a,targetID:c})}),e._entityGraph.set({entities:i,relations:o})})()}_checkPendingOSMFetches(){const e=this._entityOSMMap.get(),t=this._osmWKTMap.get(),r=[];for(const i of Object.values(e)){for(const o of i.direct)!t[o]&&!this._fetchingOSMIds.has(o)&&r.push(o);for(const{osm:o}of i.indirect)!t[o]&&!this._fetchingOSMIds.has(o)&&r.push(o)}if(0!==r.length){for(const i of r)this._fetchingOSMIds.add(i);this._fetchOSMLocations(r).catch(i=>console.error("[CueProjectEntities] OSM WKT fetch failed:",i))}}_fetchOSMLocations(e){var t=this;return(0,g.A)(function*(){const r=e.filter(c=>!c.includes("/relation/"));if(0===r.length)return;const i=r.map(c=>`<${c}>`).join(" "),o=`PREFIX geo: <${is.geo}>\nSELECT * WHERE {\n VALUES ?s { ${i} }\n SERVICE <https://qlever.dev/api/osm-planet> {\n ?s geo:hasGeometry/geo:asWKT ?wkt\n }\n}`,s=yield t._api.sparql(o,t._projectId,t._graphType),a={...t._osmWKTMap.get()};s.results.bindings.forEach(c=>{!c.s||!c.wkt||(a[c.s.value]=c.wkt.value,t._fetchingOSMIds.delete(c.s.value))}),t._osmWKTMap.set(a)})()}}var Ee=(n=>(n.AUTOMATION="automation",n.ARCHIVE="archive",n.AUDIO="audio",n.BACKUP="backup",n.BINARY="binary",n.BIM="bim",n.CAD="cad",n.DATA="data",n.EMAIL="email",n.FONT="font",n.GEOSPATIAL="geospatial",n.IMAGE="image",n.INSTALLER="installer",n.MARKUP="markup",n.MULTIMEDIA="multimedia",n.PLANNING="planning",n.PRESENTATION="presentation",n.SCRIPT="script",n.SPREADSHEET="spreadsheet",n.TEXT="text",n.THREE_D="3d",n.UNKNOWN="unknown",n.VIDEO="video",n))(Ee||{});const vb={".aac":{type:Ee.AUDIO,open:!0,suffix:".aac",mime:"audio/aac"},".abw":{type:Ee.TEXT,open:!0,suffix:".abw",mime:"application/x-abiword"},".arc":{type:Ee.ARCHIVE,open:!1,suffix:".arc",mime:"application/x-freearc"},".avif":{type:Ee.IMAGE,open:!0,suffix:".avif",mime:"image/avif"},".avi":{type:Ee.VIDEO,open:!0,suffix:".avi",mime:"video/x-msvideo"},".apng":{type:Ee.IMAGE,open:!0,suffix:".apng",mime:"image/apng"},".bak":{type:Ee.BACKUP,open:!1,suffix:".bak",mime:"application/octet-stream"},".bin":{type:Ee.BINARY,open:!1,suffix:".bin",mime:"application/octet-stream"},".bmc":{type:Ee.BIM,open:!1,suffix:".bmc",mime:"application/octet-stream"},".bmp":{type:Ee.IMAGE,open:!0,suffix:".bmp",mime:"image/bmp"},".bz":{type:Ee.ARCHIVE,open:!0,suffix:".bz",mime:"application/x-bzip"},".bz2":{type:Ee.ARCHIVE,open:!0,suffix:".bz2",mime:"application/x-bzip2"},".c3d":{type:Ee.THREE_D,open:!0,suffix:".c3d",mime:"application/octet-stream"},".cpg":{type:Ee.GEOSPATIAL,open:!0,suffix:".cpg",mime:"text/plain"},".css":{type:Ee.MARKUP,open:!0,suffix:".css",mime:"text/css"},".csv":{type:Ee.DATA,open:!0,suffix:".csv",mime:"text/csv"},".dat":{type:Ee.DATA,open:!1,suffix:".dat",mime:"application/octet-stream"},".dbf":{type:Ee.DATA,open:!0,suffix:".dbf",mime:"application/x-dbf"},".doc":{type:Ee.TEXT,open:!1,suffix:".doc",mime:"application/msword"},".docx":{type:Ee.TEXT,open:!0,suffix:".docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},".e57":{type:Ee.THREE_D,open:!0,suffix:".e57",mime:"application/octet-stream"},".epub":{type:Ee.TEXT,open:!0,suffix:".epub",mime:"application/epub+zip"},".exe":{type:Ee.INSTALLER,open:!1,suffix:".exe",mime:"application/x-msdownload"},".ffs":{type:Ee.AUTOMATION,open:!1,suffix:".ffs",mime:"application/octet-stream"},".fme":{type:Ee.AUTOMATION,open:!1,suffix:".fme",mime:"application/octet-stream"},".fmw":{type:Ee.AUTOMATION,open:!1,suffix:".fmw",mime:"application/octet-stream"},".gh":{type:Ee.THREE_D,open:!1,suffix:".gh",mime:"application/octet-stream"},".gz":{type:Ee.ARCHIVE,open:!0,suffix:".gz",mime:"application/gzip"},".gif":{type:Ee.IMAGE,open:!0,suffix:".gif",mime:"image/gif"},".html":{type:Ee.MARKUP,open:!0,suffix:".html",mime:"text/html"},".htm":{type:Ee.MARKUP,open:!0,suffix:".htm",mime:"text/html"},".ico":{type:Ee.IMAGE,open:!1,suffix:".ico",mime:"image/x-icon"},".ics":{type:Ee.DATA,open:!0,suffix:".ics",mime:"text/calendar"},".jar":{type:Ee.ARCHIVE,open:!0,suffix:".jar",mime:"application/java-archive"},".jpg":{type:Ee.IMAGE,open:!0,suffix:".jpg",mime:"image/jpeg"},".jpeg":{type:Ee.IMAGE,open:!0,suffix:".jpeg",mime:"image/jpeg"},".json":{type:Ee.DATA,open:!0,suffix:".json",mime:"application/json"},".jsonld":{type:Ee.DATA,open:!0,suffix:".jsonld",mime:"application/ld+json"},".js":{type:Ee.SCRIPT,open:!0,suffix:".js",mime:"application/javascript"},".msi":{type:Ee.INSTALLER,open:!1,suffix:".msi",mime:"application/x-msdownload"},".mov":{type:Ee.VIDEO,open:!0,suffix:".mov",mime:"video/quicktime"},".mp3":{type:Ee.AUDIO,open:!0,suffix:".mp3",mime:"audio/mpeg"},".mp4":{type:Ee.VIDEO,open:!0,suffix:".mp4",mime:"video/mp4"},".mpeg":{type:Ee.VIDEO,open:!0,suffix:".mpeg",mime:"video/mpeg"},".mtl":{type:Ee.THREE_D,open:!0,suffix:".mtl",mime:"text/plain"},".odp":{type:Ee.PRESENTATION,open:!0,suffix:".odp",mime:"application/vnd.oasis.opendocument.presentation"},".ods":{type:Ee.SPREADSHEET,open:!0,suffix:".ods",mime:"application/vnd.oasis.opendocument.spreadsheet"},".odt":{type:Ee.TEXT,open:!0,suffix:".odt",mime:"application/vnd.oasis.opendocument.text"},".oga":{type:Ee.AUDIO,open:!0,suffix:".oga",mime:"audio/ogg"},".ogg":{type:Ee.AUDIO,open:!0,suffix:".ogg",mime:"audio/ogg"},".ogv":{type:Ee.VIDEO,open:!0,suffix:".ogv",mime:"video/ogg"},".ogx":{type:Ee.VIDEO,open:!0,suffix:".ogx",mime:"application/octet-stream"},".otf":{type:Ee.FONT,open:!0,suffix:".otf",mime:"font/otf"},".png":{type:Ee.IMAGE,open:!0,suffix:".png",mime:"image/png"},".pdf":{type:Ee.TEXT,open:!0,suffix:".pdf",mime:"application/pdf"},".php":{type:Ee.SCRIPT,open:!0,suffix:".php",mime:"application/x-httpd-php"},".pkg":{type:Ee.INSTALLER,open:!1,suffix:".pkg",mime:"application/octet-stream"},".ppt":{type:Ee.PRESENTATION,open:!1,suffix:".ppt",mime:"application/vnd.ms-powerpoint"},".pptx":{type:Ee.PRESENTATION,open:!0,suffix:".pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"},".ps":{type:Ee.IMAGE,open:!1,suffix:".ps",mime:"application/postscript"},".rar":{type:Ee.ARCHIVE,open:!1,suffix:".rar",mime:"application/vnd.rar"},".rcp":{type:Ee.THREE_D,open:!1,suffix:".rcp",mime:"application/octet-stream"},".rtf":{type:Ee.TEXT,open:!0,suffix:".rtf",mime:"application/rtf"},".sbn":{type:Ee.GEOSPATIAL,open:!1,suffix:".sbn",mime:"application/octet-stream"},".sbx":{type:Ee.GEOSPATIAL,open:!1,suffix:".sbx",mime:"application/octet-stream"},".shx":{type:Ee.GEOSPATIAL,open:!0,suffix:".shx",mime:"application/octet-stream"},".sh":{type:Ee.SCRIPT,open:!0,suffix:".sh",mime:"application/x-sh"},".slk":{type:Ee.DATA,open:!0,suffix:".slk",mime:"application/vnd.ms-excel"},".svg":{type:Ee.IMAGE,open:!0,suffix:".svg",mime:"image/svg+xml"},".tar":{type:Ee.ARCHIVE,open:!0,suffix:".tar",mime:"application/x-tar"},".tiff":{type:Ee.IMAGE,open:!0,suffix:".tiff",mime:"image/tiff"},".tif":{type:Ee.IMAGE,open:!0,suffix:".tif",mime:"image/tiff"},".ttf":{type:Ee.FONT,open:!0,suffix:".ttf",mime:"font/ttf"},".txt":{type:Ee.TEXT,open:!0,suffix:".txt",mime:"text/plain"},".vgl":{type:Ee.THREE_D,open:!1,suffix:".vgl",mime:"application/octet-stream"},".vwx":{type:Ee.CAD,open:!1,suffix:".vwx",mime:"application/octet-stream"},".wav":{type:Ee.AUDIO,open:!0,suffix:".wav",mime:"audio/wav"},".webm":{type:Ee.VIDEO,open:!0,suffix:".webm",mime:"video/webm"},".webp":{type:Ee.IMAGE,open:!0,suffix:".webp",mime:"image/webp"},".wmv":{type:Ee.VIDEO,open:!0,suffix:".wmv",mime:"video/x-ms-wmv"},".woff":{type:Ee.FONT,open:!0,suffix:".woff",mime:"font/woff"},".woff2":{type:Ee.FONT,open:!0,suffix:".woff2",mime:"font/woff2"},".xls":{type:Ee.SPREADSHEET,open:!1,suffix:".xls",mime:"application/vnd.ms-excel"},".xlsx":{type:Ee.SPREADSHEET,open:!0,suffix:".xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},".xhtml":{type:Ee.MARKUP,open:!0,suffix:".xhtml",mime:"application/xhtml+xml"},".xml":{type:Ee.DATA,open:!0,suffix:".xml",mime:"application/xml"},".xyz":{type:Ee.THREE_D,open:!0,suffix:".xyz",mime:"chemical/x-xyz"},".zip":{type:Ee.ARCHIVE,open:!0,suffix:".zip",mime:"application/zip"},".7z":{type:Ee.ARCHIVE,open:!0,suffix:".7z",mime:"application/x-7z-compressed"},".eml":{type:Ee.EMAIL,open:!0,suffix:".eml",mime:"message/rfc822"},".emlx":{type:Ee.EMAIL,open:!0,suffix:".emlx",mime:"application/octet-stream"},".mbx":{type:Ee.EMAIL,open:!0,suffix:".mbx",mime:"application/mbox"},".md":{type:Ee.TEXT,open:!0,suffix:".md",mime:"text/markdown"},".msg":{type:Ee.EMAIL,open:!1,suffix:".msg",mime:"application/vnd.ms-outlook"},".rst":{type:Ee.TEXT,open:!0,suffix:".rst",mime:"text/x-rst"},".heic":{type:Ee.IMAGE,open:!1,suffix:".heic",mime:"image/heic"},".mpp":{type:Ee.PLANNING,open:!1,suffix:".mpp",mime:"application/vnd.ms-project"},".tsv":{type:Ee.DATA,open:!0,suffix:".tsv",mime:"text/tab-separated-values"},".b3dm":{type:Ee.THREE_D,open:!0,suffix:".b3dm",mime:"application/octet-stream"},".i3dm":{type:Ee.THREE_D,open:!0,suffix:".i3dm",mime:"application/octet-stream"},".pnts":{type:Ee.THREE_D,open:!1,suffix:".pnts",mime:"application/octet-stream"},".cmpt":{type:Ee.THREE_D,open:!1,suffix:".cmpt",mime:"application/octet-stream"},".gltf":{type:Ee.THREE_D,open:!0,suffix:".gltf",mime:"model/gltf+json"},".glb":{type:Ee.THREE_D,open:!0,suffix:".glb",mime:"model/gltf-binary"},".ifc":{type:Ee.BIM,open:!0,suffix:".ifc",mime:"application/x-step"},".ifczip":{type:Ee.BIM,open:!0,suffix:".ifczip",mime:"application/zip"},".ifcxml":{type:Ee.BIM,open:!0,suffix:".ifcxml",mime:"application/xml"},".3dm":{type:Ee.CAD,open:!1,suffix:".3dm",mime:"application/vnd.x-rhino3dm"},".3ds":{type:Ee.THREE_D,open:!1,suffix:".3ds",mime:"image/x-3ds"},".ghp":{type:Ee.CAD,open:!1,suffix:".ghp",mime:"application/octet-stream"},".rvt":{type:Ee.BIM,open:!1,suffix:".rvt",mime:"application/octet-stream"},".rfa":{type:Ee.BIM,open:!1,suffix:".rfa",mime:"application/octet-stream"},".rft":{type:Ee.BIM,open:!1,suffix:".rft",mime:"application/octet-stream"},".rte":{type:Ee.BIM,open:!1,suffix:".rte",mime:"application/octet-stream"},".pla":{type:Ee.BIM,open:!1,suffix:".pla",mime:"application/octet-stream"},".pln":{type:Ee.BIM,open:!1,suffix:".pln",mime:"application/octet-stream"},".gsm":{type:Ee.BIM,open:!1,suffix:".gsm",mime:"application/octet-stream"},".smc":{type:Ee.BIM,open:!1,suffix:".smc",mime:"application/octet-stream"},".bcf":{type:Ee.BIM,open:!0,suffix:".bcf",mime:"application/octet-stream"},".dwg":{type:Ee.CAD,open:!1,suffix:".dwg",mime:"application/acad"},".dwl":{type:Ee.CAD,open:!1,suffix:".dwl",mime:"application/octet-stream"},".dxf":{type:Ee.CAD,open:!0,suffix:".dxf",mime:"image/vnd.dxf"},".dgn":{type:Ee.CAD,open:!1,suffix:".dgn",mime:"application/octet-stream"},".nwd":{type:Ee.BIM,open:!1,suffix:".nwd",mime:"application/octet-stream"},".obj":{type:Ee.THREE_D,open:!0,suffix:".obj",mime:"text/plain"},".c4d":{type:Ee.THREE_D,open:!1,suffix:".c4d",mime:"application/octet-stream"},".teklastructures":{type:Ee.BIM,open:!1,suffix:".teklastructures",mime:"application/octet-stream"},".pts":{type:Ee.THREE_D,open:!1,suffix:".pts",mime:"application/octet-stream"},".las":{type:Ee.THREE_D,open:!0,suffix:".las",mime:"application/octet-stream"},".laz":{type:Ee.THREE_D,open:!0,suffix:".laz",mime:"application/octet-stream"},".usdz":{type:Ee.THREE_D,open:!0,suffix:".usdz",mime:"model/vnd.usdz+zip"},".usda":{type:Ee.THREE_D,open:!0,suffix:".usda",mime:"application/octet-stream"},".usdc":{type:Ee.THREE_D,open:!0,suffix:".usdc",mime:"application/octet-stream"},".usd":{type:Ee.THREE_D,open:!0,suffix:".usd",mime:"application/octet-stream"},".psd":{type:Ee.IMAGE,open:!1,suffix:".psd",mime:"image/vnd.adobe.photoshop"},".psp":{type:Ee.IMAGE,open:!1,suffix:".psp",mime:"image/x-paintshoppro"},".ai":{type:Ee.IMAGE,open:!1,suffix:".ai",mime:"application/postscript"},".skp":{type:Ee.THREE_D,open:!1,suffix:".skp",mime:"application/vnd.sketchup.skp"},".stl":{type:Ee.THREE_D,open:!0,suffix:".stl",mime:"model/stl"},".fbx":{type:Ee.THREE_D,open:!0,suffix:".fbx",mime:"application/octet-stream"},".kml":{type:Ee.GEOSPATIAL,open:!0,suffix:".kml",mime:"application/vnd.google-earth.kml+xml"},".shp":{type:Ee.GEOSPATIAL,open:!0,suffix:".shp",mime:"application/octet-stream"},".fragments":{type:Ee.BIM,open:!0,suffix:".fragments",mime:"application/octet-stream"}};class $p{constructor(e,t,r,i=ub,o,s=!1){Ce(this,"baseURL"),Ce(this,"_currentLang"),Ce(this,"_documentInfoMap",new ir({})),Ce(this,"_seenIds",new Set),Ce(this,"_projectDocumentsData",new ir({duplicateCount:0,documentsBySuffix:{},documentsByContentCategory:{}})),Ce(this,"documentInfoMap"),Ce(this,"projectDocumentsData"),this._api=e,this._projectId=t,this._graphType=o,this._verbose=s,this.baseURL=`${i}${t}/`,this._currentLang=r??this._api.language,this.documentInfoMap=this._documentInfoMap.asReadonly(),this.projectDocumentsData=this._projectDocumentsData.asReadonly()}reset(){this._documentInfoMap.set({}),this._seenIds.clear(),this._projectDocumentsData.set({duplicateCount:0,documentsBySuffix:{},documentsByContentCategory:{}})}setLanguage(e){this._currentLang!==e&&(this._currentLang=e,this._api.setLanguage(e),this._documentInfoMap.set({}))}fetchOverview(){var e=this;return(0,g.A)(function*(){e._projectDocumentsData.set({duplicateCount:0,documentsBySuffix:{},documentsByContentCategory:{}});const[t,r,i]=yield Promise.all([e._fetchDocumentsBySuffix(),e._fetchDocumentsByContentCategory(),e._fetchDuplicateCount()]);e._projectDocumentsData.set({duplicateCount:i,documentsBySuffix:t,documentsByContentCategory:r})})()}requestDocumentData(e){for(const r of e)this._seenIds.add(r);const t=e.filter(r=>void 0===this._documentInfoMap.get()[r]);0!==t.length&&(this._log(`requestDocumentData: ${t.length} new / ${e.length} requested | cumulative: ${this._seenIds.size} seen`),this._fetchDocumentInfoBatch(t).catch(r=>console.error("[CueProjectDocuments] requestDocumentData failed:",r)))}fetchDocumentData(e){var t=this;return(0,g.A)(function*(){const r=t._documentInfoMap.get(),i=e.filter(s=>void 0===r[s]);for(const s of e)t._seenIds.add(s);i.length>0&&(yield t._fetchDocumentInfoBatch(i));const o=t._documentInfoMap.get();return Object.fromEntries(e.filter(s=>void 0!==o[s]).map(s=>[s,o[s]]))})()}fetchDocumentDataSimple(e){var t=this;return(0,g.A)(function*(){const r=t._documentInfoMap.get(),i=e.filter(s=>void 0===r[s]);for(const s of e)t._seenIds.add(s);i.length>0&&(yield t._fetchSimpleDocumentInfoBatch(i));const o=t._documentInfoMap.get();return Object.fromEntries(e.filter(s=>void 0!==o[s]).map(s=>[s,o[s]]))})()}fetchAlternativeRepresentations(e){var t=this;return(0,g.A)(function*(){const r=`PREFIX qcy: <${nn.qcy}>\nPREFIX r: <${t.baseURL}>\nSELECT ?altId ?contentIRI ?suffix ?rrp\nWHERE {\n r:${e} qcy:alternativeRepresentation ?contentIRI .\n BIND(REPLACE(STR(?contentIRI), "^.*/([^/]*)$", "$1") AS ?altId)\n ?contentIRI qcy:hasFileLocation ?loc .\n ?loc qcy:suffix ?suffix .\n OPTIONAL { ?loc qcy:remoteRelativePath ?rrp }\n}`,i=yield t._api.sparql(r,t._projectId,t._graphType),o={...t._documentInfoMap.get()},s=[];return i.results.bindings.forEach(a=>{var c,u;if(!a.altId||!a.contentIRI)return;const d=a.altId.value,h={id:d,contentIRI:a.contentIRI.value,path:"",suffix:(null==(c=a.suffix)?void 0:c.value)??"",size:0,tags:[],categories:[],remoteRelativePath:null==(u=a.rrp)?void 0:u.value};o[d]=h,s.push(h)}),t._documentInfoMap.set(o),s})()}randomFilePath(){var e=this;return(0,g.A)(function*(){var t,r;const i=`PREFIX qcy: <${nn.qcy}>\nSELECT ?path\nWHERE {\n ?fl a qcy:FileLocation ;\n qcy:filePath ?path .\n}\nLIMIT 1`;return(null==(r=null==(t=(yield e._api.sparql(i,e._projectId,e._graphType)).results.bindings[0])?void 0:t.path)?void 0:r.value)??null})()}documentsBySuffix(e){var t=this;return(0,g.A)(function*(r,i=!1){if(0===r.length)return[];const o=r.map(a=>(a.startsWith(".")?a:`.${a}`).toLowerCase()).map(a=>`"${a}"`).join(" "),s=i?`PREFIX qcy: <${nn.qcy}>\nSELECT ?id (SAMPLE(?fp) AS ?path) ?suffix (MAX(?sz) AS ?size)\nWHERE {\n VALUES ?suffix { ${o} }\n ?iri a qcy:FileContent ;\n qcy:sizeBytes ?sz ;\n qcy:hasFileLocation ?loc .\n ?loc qcy:suffix ?suffix ;\n qcy:filePath ?fp .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?iri }\n BIND(REPLACE(STR(?iri), "^.*/", "") AS ?id)\n}\nGROUP BY ?id ?suffix`:`PREFIX qcy: <${nn.qcy}>\nSELECT DISTINCT ?id\nWHERE {\n VALUES ?suffix { ${o} }\n ?iri a qcy:FileContent ;\n qcy:hasFileLocation/qcy:suffix ?suffix .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?iri }\n BIND(REPLACE(STR(?iri), "^.*/", "") AS ?id)\n}`;return(yield t._api.sparql(s,t._projectId,t._graphType)).results.bindings.filter(a=>a.id).map(a=>{var c,u;const d=a.id.value,h={iri:t._resourceIri(d),uuid:d};return i?{...h,path:(null==(c=a.path)?void 0:c.value)??"",suffix:(null==(u=a.suffix)?void 0:u.value)??"",size:a.size?parseInt(a.size.value,10):0}:h})}).apply(this,arguments)}documentsByFileType(e,t=!1){const r=new Set(e),i=Object.values(vb).filter(o=>r.has(o.type)).map(o=>o.suffix);return this.documentsBySuffix(i,t)}documentsByContentCategory(e){var t=this;return(0,g.A)(function*(r,i=!1){if(0===r.length)return[];const o=r.map(a=>`<${a}>`).join(" "),s=i?`PREFIX qcy: <${nn.qcy}>\nSELECT ?id (SAMPLE(?fp) AS ?path) ?suffix (MAX(?sz) AS ?size)\nWHERE {\n VALUES ?cat { ${o} }\n ?iri a qcy:FileContent ;\n qcy:hasContentCategory ?cat ;\n qcy:sizeBytes ?sz ;\n qcy:hasFileLocation ?loc .\n ?loc qcy:suffix ?suffix ;\n qcy:filePath ?fp .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?iri }\n BIND(REPLACE(STR(?iri), "^.*/", "") AS ?id)\n}\nGROUP BY ?id ?suffix`:`PREFIX qcy: <${nn.qcy}>\nSELECT DISTINCT ?id\nWHERE {\n VALUES ?cat { ${o} }\n ?iri a qcy:FileContent ;\n qcy:hasContentCategory ?cat .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?iri }\n BIND(REPLACE(STR(?iri), "^.*/", "") AS ?id)\n}`;return(yield t._api.sparql(s,t._projectId,t._graphType)).results.bindings.filter(a=>a.id).map(a=>{var c,u;const d=a.id.value,h={iri:t._resourceIri(d),uuid:d};return i?{...h,path:(null==(c=a.path)?void 0:c.value)??"",suffix:(null==(u=a.suffix)?void 0:u.value)??"",size:a.size?parseInt(a.size.value,10):0}:h})}).apply(this,arguments)}documentsByMime(e,t=!1){const r=new Set(e),i=Object.values(vb).filter(o=>r.has(o.mime)).map(o=>o.suffix);return this.documentsBySuffix(i,t)}_resourceIri(e){return`${this.baseURL}${e}`}_log(e){this._verbose&&console.debug(`[CueProjectDocuments pid=${this._projectId}] ${e}`)}_fetchDocumentInfoBatch(e){var t=this;return(0,g.A)(function*(){const r=e.map(u=>`r:${u}`).join(" "),i=t._api.language,o=`PREFIX qcy: <${nn.qcy}>\nPREFIX r: <${t.baseURL}>\nSELECT ?id ?suffix ?size ?subject ?summary\n (SAMPLE(?fp) AS ?path)\n (GROUP_CONCAT(DISTINCT ?tag; SEPARATOR=";") AS ?tags)\n (GROUP_CONCAT(DISTINCT STR(?cat); SEPARATOR=";") AS ?categories)\nWHERE {\n VALUES ?contentIRI { ${r} }\n ?contentIRI qcy:sizeBytes ?size ;\n qcy:hasFileLocation ?loc .\n ?loc qcy:filePath ?fp ;\n qcy:suffix ?suffix .\n OPTIONAL { ?contentIRI qcy:hasContentCategory ?cat }\n OPTIONAL { ?contentIRI qcy:tag ?tag }\n OPTIONAL { ?loc qcy:remoteProviderId ?pid }\n\n OPTIONAL { ?contentIRI qcy:subject ?lang_subj FILTER(LANG(?lang_subj) = "${i}") }\n OPTIONAL { ?contentIRI qcy:subject ?no_lang_subj }\n BIND(COALESCE(?lang_subj, ?no_lang_subj) AS ?subject)\n\n OPTIONAL { ?contentIRI qcy:textSummary ?lang_summary FILTER(LANG(?lang_summary) = "${i}") }\n OPTIONAL { ?contentIRI qcy:textSummary ?no_lang_summary }\n BIND(COALESCE(?lang_summary, ?no_lang_summary) AS ?summary)\n\n BIND(REPLACE(STR(?contentIRI), "^.*/", "") AS ?id)\n}\nGROUP BY ?id ?suffix ?size ?subject ?summary`,s=yield t._api.sparql(o,t._projectId),a={...t._documentInfoMap.get()},c={};return s.results.bindings.forEach(u=>{var d,h,f,E,q,Q,de,$e,je;if(!u.id)return;const De=u.id.value,et={id:De,contentIRI:t._resourceIri(De),path:(null==(d=u.path)?void 0:d.value)??"",suffix:(null==(h=u.suffix)?void 0:h.value)??"",size:u.size?parseInt(u.size.value,10):0,tags:(null==(E=null==(f=u.tags)?void 0:f.value)?void 0:E.split(";").filter(Boolean))??[],categories:(null==(Q=null==(q=u.categories)?void 0:q.value)?void 0:Q.split(";").filter(Boolean))??[],subject:null==(de=u.subject)?void 0:de.value,summary:null==($e=u.summary)?void 0:$e.value,providerId:null==(je=u.pid)?void 0:je.value};a[De]=et,c[De]=et}),t._documentInfoMap.set(a),t._log(`fetchDocumentInfoBatch: ${Object.keys(c).length} fetched | cumulative: ${Object.keys(a).length} with metadata / ${t._seenIds.size} seen`),c})()}_fetchSimpleDocumentInfoBatch(e){var t=this;return(0,g.A)(function*(){const r=e.map(c=>`r:${c}`).join(" "),i=`PREFIX qcy: <${nn.qcy}>\nPREFIX r: <${t.baseURL}>\nSELECT ?id ?suffix ?size (SAMPLE(?fp) AS ?path)\nWHERE {\n VALUES ?contentIRI { ${r} }\n ?contentIRI qcy:sizeBytes ?size ;\n qcy:hasFileLocation ?loc .\n ?loc qcy:filePath ?fp ;\n qcy:suffix ?suffix .\n BIND(REPLACE(STR(?contentIRI), "^.*/", "") AS ?id)\n}\nGROUP BY ?id ?suffix ?size`,o=yield t._api.sparql(i,t._projectId,t._graphType),s={...t._documentInfoMap.get()},a={};return o.results.bindings.forEach(c=>{var u,d;if(!c.id)return;const h=c.id.value,f=s[h],E={id:h,contentIRI:t._resourceIri(h),path:(null==(u=c.path)?void 0:u.value)??f?.path??h,suffix:(null==(d=c.suffix)?void 0:d.value)??f?.suffix??"",size:c.size?parseInt(c.size.value,10):f?.size??0,tags:f?.tags??[],categories:f?.categories??[],subject:f?.subject,summary:f?.summary,providerId:f?.providerId};s[h]=E,a[h]=E}),t._documentInfoMap.set(s),t._log(`fetchSimpleDocumentInfoBatch: ${Object.keys(a).length} fetched | cumulative: ${Object.keys(s).length} with metadata / ${t._seenIds.size} seen`),a})()}_fetchDocumentsBySuffix(){var e=this;return(0,g.A)(function*(){if("fuseki"!==e._graphType){const t=yield e._runDocumentsBySuffixQuery("PREFIX view: <https://qlever.cs.uni-freiburg.de/materializedView/>\nSELECT ?ext ?totalSize ?docCount\nWHERE {\n SERVICE view:docs-by-suffix {\n _:cfg view:column-ext ?ext ;\n view:column-totalSize ?totalSize ;\n view:column-docCount ?docCount .\n }\n}");if(Object.keys(t).length>0)return t;console.warn(`[CueProjectDocuments] Materialized view "docs-by-suffix" returned no rows for project ${e._projectId} \u2014 falling back to live query.`)}return e._runDocumentsBySuffixQuery(e._buildDocumentsBySuffixQuery())})()}_buildDocumentsBySuffixQuery(){return`PREFIX qcy: <${nn.qcy}>\nSELECT ?ext (SUM(?size) AS ?totalSize) (COUNT(*) AS ?docCount)\nWHERE {\n {\n SELECT DISTINCT ?fc ?ext ?size\n WHERE {\n ?fc a qcy:FileContent ;\n qcy:sizeBytes ?size ;\n qcy:hasFileLocation/qcy:suffix ?ext .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?fc }\n }\n }\n}\nGROUP BY ?ext\nORDER BY DESC(?docCount)`}_runDocumentsBySuffixQuery(e){var t=this;return(0,g.A)(function*(){const r=yield t._api.sparql(e,t._projectId,t._graphType),i={};return r.results.bindings.forEach(o=>{o.ext&&(i[o.ext.value]={size:o.totalSize?parseInt(o.totalSize.value,10):0,count:o.docCount?parseInt(o.docCount.value,10):0})}),i})()}_fetchDocumentsByContentCategory(){var e=this;return(0,g.A)(function*(){if("fuseki"!==e._graphType){const t=yield e._runDocumentsByContentCategoryQuery("PREFIX view: <https://qlever.cs.uni-freiburg.de/materializedView/>\nSELECT ?cat ?totalSize ?docCount\nWHERE {\n SERVICE view:docs-by-category {\n _:cfg view:column-cat ?cat ;\n view:column-totalSize ?totalSize ;\n view:column-docCount ?docCount .\n }\n}");if(Object.keys(t).length>0)return t;console.warn(`[CueProjectDocuments] Materialized view "docs-by-category" returned no rows for project ${e._projectId} \u2014 falling back to live query.`)}return e._runDocumentsByContentCategoryQuery(e._buildDocumentsByContentCategoryQuery())})()}_buildDocumentsByContentCategoryQuery(){return`PREFIX qcy: <${nn.qcy}>\nSELECT ?cat (SUM(?size) AS ?totalSize) (COUNT(*) AS ?docCount)\nWHERE {\n {\n SELECT DISTINCT ?fc ?cat ?size\n WHERE {\n ?fc a qcy:FileContent ;\n qcy:hasContentCategory ?cat ;\n qcy:sizeBytes ?size .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?fc }\n }\n }\n}\nGROUP BY ?cat\nORDER BY DESC(?docCount)`}_runDocumentsByContentCategoryQuery(e){var t=this;return(0,g.A)(function*(){const r=yield t._api.sparql(e,t._projectId,t._graphType),i={};return r.results.bindings.forEach(o=>{o.cat&&(i[o.cat.value]={size:o.totalSize?parseInt(o.totalSize.value,10):0,count:o.docCount?parseInt(o.docCount.value,10):0})}),i})()}_fetchDuplicateCount(){var e=this;return(0,g.A)(function*(){if("fuseki"!==e._graphType){const t=yield e._api.sparql("PREFIX view: <https://qlever.cs.uni-freiburg.de/materializedView/>\nSELECT ?count\nWHERE {\n SERVICE view:doc-duplicates {\n _:cfg view:column-count ?count .\n }\n}",e._projectId,e._graphType);if(t.results.bindings.length>0){const r=t.results.bindings[0];return null!=r&&r.count?parseInt(r.count.value,10):0}console.warn(`[CueProjectDocuments] Materialized view "doc-duplicates" returned no rows for project ${e._projectId} \u2014 falling back to live query.`)}return e._runDuplicateCountQuery(e._buildDuplicateCountQuery())})()}_buildDuplicateCountQuery(){return`PREFIX qcy: <${nn.qcy}>\nSELECT (COUNT(*) AS ?count)\nWHERE {\n SELECT ?fc\n WHERE {\n ?fc a qcy:FileContent ;\n qcy:hasFileLocation ?fl .\n FILTER NOT EXISTS { ?x qcy:alternativeRepresentation ?fc }\n }\n GROUP BY ?fc\n HAVING (COUNT(?fl) > 1)\n}`}_runDuplicateCountQuery(e){var t=this;return(0,g.A)(function*(){const r=(yield t._api.sparql(e,t._projectId,t._graphType)).results.bindings[0];return null!=r&&r.count?parseInt(r.count.value,10):0})()}}const{namedNode:eG}=Z.Ay;eG("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");const{namedNode:tG}=Z.Ay;tG("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");const{namedNode:rG}=Z.Ay;rG("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");const{namedNode:iG}=Z.Ay;iG("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");const Rb="https://qlever.cs.uni-freiburg.de/materializedView/",Gu=nn.qcy;class cG{constructor(e,t,r){this._api=e,this._projectId=t,this._graphType=r}availableFilters(e){var t=this;return(0,g.A)(function*(){const r=e??{};if("fuseki"!==t._graphType)try{const[a,c,u]=yield Promise.all([t._api.sparql(t._buildViewDimQuery("mime",r),t._projectId,t._graphType),t._api.sparql(t._buildViewDimQuery("content",r),t._projectId,t._graphType),t._api.sparql(t._buildViewDimQuery("entity",r),t._projectId,t._graphType)]),d=_C(a,c,u);if(d.mimes.length+d.contents.length+d.entityCategories.length>0)return d;console.warn(`[CueDocumentFilter] Materialized view "document-categories" returned no rows for project ${t._projectId} \u2014 falling back to the live query.`)}catch{}const[i,o,s]=yield Promise.all([t._api.sparql(t._buildLiveDimQuery("mime",r),t._projectId,t._graphType),t._api.sparql(t._buildLiveDimQuery("content",r),t._projectId,t._graphType),t._api.sparql(t._buildLiveDimQuery("entity",r),t._projectId,t._graphType)]);return _C(i,o,s)})()}availableEntities(e,t){var r=this;return(0,g.A)(function*(){var i,o;const s=mC(t??{}).join("\n "),a=`PREFIX qcy: <${Gu}>\nSELECT DISTINCT ?entity ?val\nWHERE {\n {\n SELECT DISTINCT ?doc WHERE {\n ?doc a qcy:FileContent .\n FILTER NOT EXISTS { ?_alt qcy:alternativeRepresentation ?doc }\n ${s}\n }\n }\n ?doc qcy:about ?entity .\n ?entity qcy:hasEntityCategory <${e}> ;\n qcy:value ?val .\n}\nORDER BY ?val`,c=yield r._api.sparql(a,r._projectId,r._graphType),u=new Set,d=[];for(const h of c.results.bindings){const f=null==(i=h.entity)?void 0:i.value;!f||u.has(f)||(u.add(f),d.push({iri:f,label:(null==(o=h.val)?void 0:o.value)??gC(f)}))}return d})()}doLookup(e){var t=this;return(0,g.A)(function*(){if(0===e.length)return[];if("fuseki"!==t._graphType)try{const i=t._buildViewFilterQuery(e),o=(yield t._api.sparql(i,t._projectId,t._graphType)).results.bindings.map(s=>{var a;return null==(a=s.id)?void 0:a.value}).filter(Boolean);if(o.length>0)return o}catch{}const r=t._buildFilterQuery(e);return(yield t._api.sparql(r,t._projectId,t._graphType)).results.bindings.map(i=>{var o;return null==(o=i.id)?void 0:o.value}).filter(Boolean)})()}_buildViewDimQuery(e,t){const r="mime"===e?"doc-mime-cats":"content"===e?"doc-content-cats":"doc-entity-cats",i="mime"===e?"?mimeCat":"content"===e?"?contentCat":"?entityCat",o=function uG(n){var e,t,r;const i=[];for(const o of n.entities??[])i.push(`?doc qcy:about <${o}> .`);if(null!=(e=n.mimes)&&e.length){const o=n.mimes.map(a=>`<${a}>`).join(", "),s=1===n.mimes.length?`?aMimeCat = ${o}`:`?aMimeCat IN (${o})`;i.push("SERVICE view:doc-mime-cats { _:cfgM view:column-doc ?doc ; view:column-cat ?aMimeCat . }"),i.push(`FILTER(${s})`)}if(null!=(t=n.contents)&&t.length){const o=n.contents.map(a=>`<${a}>`).join(", "),s=1===n.contents.length?`?aContentCat = ${o}`:`?aContentCat IN (${o})`;i.push("SERVICE view:doc-content-cats { _:cfgC view:column-doc ?doc ; view:column-cat ?aContentCat . }"),i.push(`FILTER(${s})`)}if(null!=(r=n.entityCategories)&&r.length){const o=n.entityCategories.map(a=>`<${a}>`).join(", "),s=1===n.entityCategories.length?`?aEntityCat = ${o}`:`?aEntityCat IN (${o})`;i.push("SERVICE view:doc-entity-cats { _:cfgE view:column-doc ?doc ; view:column-cat ?aEntityCat . }"),i.push(`FILTER(${s})`)}return i}(t);return 0===o.length?`PREFIX view: <${Rb}>\nSELECT DISTINCT ${i}\nWHERE {\n SERVICE view:${r} {\n _:cfg view:column-doc ?doc ;\n view:column-cat ${i} .\n }\n}`:`PREFIX view: <${Rb}>\nPREFIX qcy: <${Gu}>\nSELECT DISTINCT ${i}\nWHERE {\n {\n SELECT DISTINCT ?doc WHERE {\n ${o.join("\n ")}\n }\n }\n SERVICE view:${r} {\n _:cfgOut view:column-doc ?doc ;\n view:column-cat ${i} .\n }\n}`}_buildLiveDimQuery(e,t){const r=mC(t).join("\n ");return`PREFIX qcy: <${Gu}>\nSELECT DISTINCT ${"mime"===e?"?mimeCat":"content"===e?"?contentCat":"?entityCat"}\nWHERE {\n {\n SELECT DISTINCT ?doc WHERE {\n ?doc a qcy:FileContent .\n FILTER NOT EXISTS { ?_alt qcy:alternativeRepresentation ?doc }\n ${r}\n }\n }\n ${"mime"===e?"?doc qcy:hasMimeCategory ?mimeCat .":"content"===e?"?doc qcy:hasContentCategory ?contentCat .":"?doc qcy:about ?e . ?e qcy:hasEntityCategory ?entityCat ."}\n}`}_buildViewFilterQuery(e){const t=[];for(const r of e){if("entityInstance"===r.type){if(1===r.included.length)t.push(`?doc qcy:about <${r.included[0]}> .`);else if(r.included.length>1){const s=r.included.map(a=>`<${a}>`).join(", ");t.push(`?doc qcy:about ?eiInc . FILTER(?eiInc IN (${s}))`)}for(const s of r.excluded)t.push(`FILTER NOT EXISTS { ?doc qcy:about <${s}> }`);continue}const i="entity"===r.type?"doc-entity-cats":"mime"===r.type?"doc-mime-cats":"doc-content-cats",o=`?${r.type}IncCat`;if(r.included.length>0){const s=r.included.map(c=>`<${c}>`).join(", "),a=1===r.included.length?`${o} = ${s}`:`${o} IN (${s})`;t.push(`SERVICE view:${i} { _:cfgI${r.type} view:column-doc ?doc ; view:column-cat ${o} . }`),t.push(`FILTER(${a})`)}for(const s of r.excluded)t.push("entity"===r.type?`FILTER NOT EXISTS { ?doc qcy:about ?excE . ?excE qcy:hasEntityCategory <${s}> }`:"mime"===r.type?`FILTER NOT EXISTS { ?doc qcy:hasMimeCategory <${s}> }`:`FILTER NOT EXISTS { ?doc qcy:hasContentCategory <${s}> }`)}if(0===t.length)throw new Error("no view filter clauses");return`PREFIX view: <${Rb}>\nPREFIX qcy: <${Gu}>\nSELECT DISTINCT ?id\nWHERE {\n ${t.join("\n ")}\n BIND(REPLACE(STR(?doc), "^.*/([^/]*)$", "$1") AS ?id)\n}`}_buildFilterQuery(e){const t=[];for(const r of e){if("entity"===r.type){if(1===r.included.length)t.push(`?doc qcy:about ?e_inc . ?e_inc qcy:hasEntityCategory <${r.included[0]}> .`);else if(r.included.length>1){const i=r.included.map(o=>`<${o}>`).join(", ");t.push(`?doc qcy:about ?e_inc . ?e_inc qcy:hasEntityCategory ?ec_inc . FILTER(?ec_inc IN (${i}))`)}for(const i of r.excluded)t.push(`FILTER NOT EXISTS { ?doc qcy:about ?e_exc . ?e_exc qcy:hasEntityCategory <${i}> }`)}if("entityInstance"===r.type){if(1===r.included.length)t.push(`?doc qcy:about <${r.included[0]}> .`);else if(r.included.length>1){const i=r.included.map(o=>`<${o}>`).join(", ");t.push(`?doc qcy:about ?ei_inc . FILTER(?ei_inc IN (${i}))`)}for(const i of r.excluded)t.push(`FILTER NOT EXISTS { ?doc qcy:about <${i}> }`)}if("mime"===r.type){if(1===r.included.length)t.push(`?doc qcy:hasMimeCategory <${r.included[0]}> .`);else if(r.included.length>1){const i=r.included.map(o=>`<${o}>`).join(", ");t.push(`?doc qcy:hasMimeCategory ?mc_inc . FILTER(?mc_inc IN (${i}))`)}for(const i of r.excluded)t.push(`FILTER NOT EXISTS { ?doc qcy:hasMimeCategory <${i}> }`)}if("content"===r.type){if(1===r.included.length)t.push(`?doc qcy:hasContentCategory <${r.included[0]}> .`);else if(r.included.length>1){const i=r.included.map(o=>`<${o}>`).join(", ");t.push(`?doc qcy:hasContentCategory ?cc_inc . FILTER(?cc_inc IN (${i}))`)}for(const i of r.excluded)t.push(`FILTER NOT EXISTS { ?doc qcy:hasContentCategory <${i}> }`)}}return`PREFIX qcy: <${Gu}>\nSELECT DISTINCT ?id\nWHERE {\n ?doc a qcy:FileContent .\n FILTER NOT EXISTS { ?_alt qcy:alternativeRepresentation ?doc }\n ${t.join("\n ")}\n BIND(REPLACE(STR(?doc), "^.*/([^/]*)$", "$1") AS ?id)\n}`}}function mC(n){var e,t,r;const i=[];for(const o of n.entities??[])i.push(`?doc qcy:about <${o}> .`);if(null!=(e=n.entityCategories)&&e.length)if(1===n.entityCategories.length)i.push(`?doc qcy:about ?e_a . ?e_a qcy:hasEntityCategory <${n.entityCategories[0]}> .`);else{const o=n.entityCategories.map(s=>`<${s}>`).join(", ");i.push(`?doc qcy:about ?e_a . ?e_a qcy:hasEntityCategory ?ec_a . FILTER(?ec_a IN (${o}))`)}if(null!=(t=n.mimes)&&t.length)if(1===n.mimes.length)i.push(`?doc qcy:hasMimeCategory <${n.mimes[0]}> .`);else{const o=n.mimes.map(s=>`<${s}>`).join(", ");i.push(`?doc qcy:hasMimeCategory ?mc_a . FILTER(?mc_a IN (${o}))`)}if(null!=(r=n.contents)&&r.length)if(1===n.contents.length)i.push(`?doc qcy:hasContentCategory <${n.contents[0]}> .`);else{const o=n.contents.map(s=>`<${s}>`).join(", ");i.push(`?doc qcy:hasContentCategory ?cc_a . FILTER(?cc_a IN (${o}))`)}return i}function gC(n){var e;return(null==(e=n.split("#").pop())?void 0:e.split("/").pop())??n}function _C(n,e,t){const r=(i,o)=>{var s;const a=new Set,c=[];for(const u of i){const d=null==(s=u[o])?void 0:s.value;d&&!a.has(d)&&(a.add(d),c.push({iri:d,label:gC(d)}))}return c};return{mimes:r(n.results.bindings,"mimeCat"),contents:r(e.results.bindings,"contentCat"),entityCategories:r(t.results.bindings,"entityCat")}}},4940(Fe,m,R){"use strict";R.r(m),R.d(m,{StorageError:()=>x,StorageErrorCode:()=>C,StringFormat:()=>on,_FbsBlob:()=>lr,_Location:()=>At,_TaskEvent:()=>Yt,_TaskState:()=>qe,_UploadTask:()=>er,_dataFromString:()=>pi,_getChild:()=>ms,_invalidArgument:()=>F,_invalidRootOperation:()=>Le,connectStorageEmulator:()=>gs,deleteObject:()=>Gi,getBlob:()=>dr,getBytes:()=>Bi,getDownloadURL:()=>Fr,getMetadata:()=>dc,getStorage:()=>fl,getStream:()=>ef,list:()=>Xp,listAll:()=>Yp,ref:()=>fs,updateMetadata:()=>ps,uploadBytes:()=>Jp,uploadBytesResumable:()=>pl,uploadString:()=>uo});var y=R(467),U=R(4056),M=R(9164),V=R(4012);const g="firebasestorage.googleapis.com",$="storageBucket";class x extends M.g{constructor(I,B,Y=0){super(Z(I),`Firebase Storage: ${B} (${Z(I)})`),this.status_=Y,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,x.prototype)}get status(){return this.status_}set status(I){this.status_=I}_codeEquals(I){return Z(I)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(I){this.customData.serverResponse=I,this.message=this.customData.serverResponse?`${this._baseMessage}\n${this.customData.serverResponse}`:this._baseMessage}}var C=function(T){return T.UNKNOWN="unknown",T.OBJECT_NOT_FOUND="object-not-found",T.BUCKET_NOT_FOUND="bucket-not-found",T.PROJECT_NOT_FOUND="project-not-found",T.QUOTA_EXCEEDED="quota-exceeded",T.UNAUTHENTICATED="unauthenticated",T.UNAUTHORIZED="unauthorized",T.UNAUTHORIZED_APP="unauthorized-app",T.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",T.INVALID_CHECKSUM="invalid-checksum",T.CANCELED="canceled",T.INVALID_EVENT_NAME="invalid-event-name",T.INVALID_URL="invalid-url",T.INVALID_DEFAULT_BUCKET="invalid-default-bucket",T.NO_DEFAULT_BUCKET="no-default-bucket",T.CANNOT_SLICE_BLOB="cannot-slice-blob",T.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",T.NO_DOWNLOAD_URL="no-download-url",T.INVALID_ARGUMENT="invalid-argument",T.INVALID_ARGUMENT_COUNT="invalid-argument-count",T.APP_DELETED="app-deleted",T.INVALID_ROOT_OPERATION="invalid-root-operation",T.INVALID_FORMAT="invalid-format",T.INTERNAL_ERROR="internal-error",T.UNSUPPORTED_ENVIRONMENT="unsupported-environment",T}(C||{});function Z(T){return"storage/"+T}function X(){return new x(C.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function _(){return new x(C.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function w(){return new x(C.CANCELED,"User canceled the upload/download.")}function W(){return new x(C.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function F(T){return new x(C.INVALID_ARGUMENT,T)}function ce(){return new x(C.APP_DELETED,"The Firebase app was deleted.")}function Le(T){return new x(C.INVALID_ROOT_OPERATION,"The operation '"+T+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function ot(T,I){return new x(C.INVALID_FORMAT,"String does not match format '"+T+"': "+I)}function Pt(T){throw new x(C.INTERNAL_ERROR,"Internal error: "+T)}class At{constructor(I,B){this.bucket=I,this.path_=B}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const I=encodeURIComponent;return"/b/"+I(this.bucket)+"/o/"+I(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(I,B){let Y;try{Y=At.makeFromUrl(I,B)}catch{return new At(I,"")}if(""===Y.path)return Y;throw function k(T){return new x(C.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+T+"'.")}(I)}static makeFromUrl(I,B){let Y=null;const ve="([A-Za-z0-9.\\-_]+)",yt=new RegExp("^gs://"+ve+"(/(.*))?$","i");function Vt(Qn){Qn.path_=decodeURIComponent(Qn.path)}const qn=B.replace(/[.]/g,"\\."),Bn=[{regex:yt,indices:{bucket:1,path:3},postModify:function Ne(Qn){"/"===Qn.path.charAt(Qn.path.length-1)&&(Qn.path_=Qn.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${qn}/v[A-Za-z0-9_]+/b/${ve}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:Vt},{regex:new RegExp(`^https?://${B===g?"(?:storage.googleapis.com|storage.cloud.google.com)":B}/${ve}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:Vt}];for(let Qn=0;Qn<Bn.length;Qn++){const si=Bn[Qn],lo=si.regex.exec(I);if(lo){let wi=lo[si.indices.path];wi||(wi=""),Y=new At(lo[si.indices.bucket],wi),si.postModify(Y);break}}if(null==Y)throw function b(T){return new x(C.INVALID_URL,"Invalid URL '"+T+"'.")}(I);return Y}}class Pn{constructor(I){this.promise_=Promise.reject(I)}getPromise(){return this.promise_}cancel(I=!1){}}function z(T){return"string"==typeof T||T instanceof String}function H(T){return oe()&&T instanceof Blob}function oe(){return typeof Blob<"u"}function Qe(T,I,B,Y){if(Y<I)throw F(`Invalid value for '${T}'. Expected ${I} or greater.`);if(Y>B)throw F(`Invalid value for '${T}'. Expected ${B} or less.`)}function dt(T,I,B){let Y=I;return null==B&&(Y=`https://${I}`),`${B}://${Y}/v0${T}`}function Et(T){const I=encodeURIComponent;let B="?";for(const Y in T)T.hasOwnProperty(Y)&&(B=B+(I(Y)+"=")+I(T[Y])+"&");return B=B.slice(0,-1),B}var ln=function(T){return T[T.NO_ERROR=0]="NO_ERROR",T[T.NETWORK_ERROR=1]="NETWORK_ERROR",T[T.ABORT=2]="ABORT",T}(ln||{});function Mn(T,I){const B=T>=500&&T<600,ve=-1!==[408,429].indexOf(T),Ne=-1!==I.indexOf(T);return B||ve||Ne}class ge{constructor(I,B,Y,ve,Ne,Ke,yt,vt,Vt,zt,qn,_n=!0,Vn=!1){this.url_=I,this.method_=B,this.headers_=Y,this.body_=ve,this.successCodes_=Ne,this.additionalRetryCodes_=Ke,this.callback_=yt,this.errorCallback_=vt,this.timeout_=Vt,this.progressCallback_=zt,this.connectionFactory_=qn,this.retry=_n,this.isUsingEmulator=Vn,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((tr,ar)=>{this.resolve_=tr,this.reject_=ar,this.start_()})}start_(){const B=(Y,ve)=>{const Ne=this.resolve_,Ke=this.reject_,yt=ve.connection;if(ve.wasSuccessCode)try{const vt=this.callback_(yt,yt.getResponse());!function Ze(T){return void 0!==T}(vt)?Ne():Ne(vt)}catch(vt){Ke(vt)}else if(null!==yt){const vt=X();vt.serverResponse=yt.getErrorText(),Ke(this.errorCallback_?this.errorCallback_(yt,vt):vt)}else Ke(ve.canceled?this.appDelete_?ce():w():_())};this.canceled_?B(0,new Pe(!1,null,!0)):this.backoffId_=function Nt(T,I,B){let Y=1,ve=null,Ne=null,Ke=!1,yt=0;function vt(){return 2===yt}let Vt=!1;function zt(...Zn){Vt||(Vt=!0,I.apply(null,Zn))}function qn(Zn){ve=setTimeout(()=>{ve=null,T(Vn,vt())},Zn)}function _n(){Ne&&clearTimeout(Ne)}function Vn(Zn,...vi){if(Vt)return void _n();if(Zn)return _n(),void zt.call(null,Zn,...vi);if(vt()||Ke)return _n(),void zt.call(null,Zn,...vi);let Bn;Y<64&&(Y*=2),1===yt?(yt=2,Bn=0):Bn=1e3*(Y+Math.random()),qn(Bn)}let tr=!1;function ar(Zn){tr||(tr=!0,_n(),!Vt&&(null!==ve?(Zn||(yt=2),clearTimeout(ve),qn(0)):Zn||(yt=1)))}return qn(0),Ne=setTimeout(()=>{Ke=!0,ar(!0)},B),ar}((Y,ve)=>{if(ve)return void Y(!1,new Pe(!1,null,!0));const Ne=this.connectionFactory_();this.pendingConnection_=Ne;const Ke=yt=>{null!==this.progressCallback_&&this.progressCallback_(yt.loaded,yt.lengthComputable?yt.total:-1)};null!==this.progressCallback_&&Ne.addUploadProgressListener(Ke),Ne.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&Ne.removeUploadProgressListener(Ke),this.pendingConnection_=null;const yt=Ne.getErrorCode()===ln.NO_ERROR,vt=Ne.getStatus();if(!yt||Mn(vt,this.additionalRetryCodes_)&&this.retry){const zt=Ne.getErrorCode()===ln.ABORT;return void Y(!1,new Pe(!1,null,zt))}const Vt=-1!==this.successCodes_.indexOf(vt);Y(!0,new Pe(Vt,Ne))})},B,this.timeout_)}getPromise(){return this.promise_}cancel(I){this.canceled_=!0,this.appDelete_=I||!1,null!==this.backoffId_&&function or(T){T(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class Pe{constructor(I,B,Y){this.wasSuccessCode=I,this.connection=B,this.canceled=!!Y}}function Un(...T){const I=function Yn(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}();if(void 0!==I){const B=new I;for(let Y=0;Y<T.length;Y++)B.append(T[Y]);return B.getBlob()}if(oe())return new Blob(T);throw new x(C.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}const on={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class Wn{constructor(I,B){this.data=I,this.contentType=B||null}}function pi(T,I){switch(T){case on.RAW:return new Wn(fi(I));case on.BASE64:case on.BASE64URL:return new Wn(Pi(T,I));case on.DATA_URL:return new Wn(function oo(T){const I=new mi(T);return I.base64?Pi(on.BASE64,I.rest):function oi(T){let I;try{I=decodeURIComponent(T)}catch{throw ot(on.DATA_URL,"Malformed data URL.")}return fi(I)}(I.rest)}(I),function yr(T){return new mi(T).contentType}(I))}throw X()}function fi(T){const I=[];for(let B=0;B<T.length;B++){let Y=T.charCodeAt(B);Y<=127?I.push(Y):Y<=2047?I.push(192|Y>>6,128|63&Y):55296==(64512&Y)?B<T.length-1&&56320==(64512&T.charCodeAt(B+1))?(Y=65536|(1023&Y)<<10|1023&T.charCodeAt(++B),I.push(240|Y>>18,128|Y>>12&63,128|Y>>6&63,128|63&Y)):I.push(239,191,189):56320==(64512&Y)?I.push(239,191,189):I.push(224|Y>>12,128|Y>>6&63,128|63&Y)}return new Uint8Array(I)}function Pi(T,I){switch(T){case on.BASE64:{const ve=-1!==I.indexOf("-"),Ne=-1!==I.indexOf("_");if(ve||Ne)throw ot(T,"Invalid character '"+(ve?"-":"_")+"' found: is it base64url encoded?");break}case on.BASE64URL:{const ve=-1!==I.indexOf("+"),Ne=-1!==I.indexOf("/");if(ve||Ne)throw ot(T,"Invalid character '"+(ve?"+":"/")+"' found: is it base64 encoded?");I=I.replace(/-/g,"+").replace(/_/g,"/");break}}let B;try{B=function Je(T){if(typeof atob>"u")throw function Se(T){return new x(C.UNSUPPORTED_ENVIRONMENT,`${T} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}("base-64");return atob(T)}(I)}catch(ve){throw ve.message.includes("polyfill")?ve:ot(T,"Invalid character found")}const Y=new Uint8Array(B.length);for(let ve=0;ve<B.length;ve++)Y[ve]=B.charCodeAt(ve);return Y}class mi{constructor(I){this.base64=!1,this.contentType=null;const B=I.match(/^data:([^,]+)?,/);if(null===B)throw ot(on.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const Y=B[1]||null;null!=Y&&(this.base64=function Ri(T,I){return T.length>=I.length&&T.substring(T.length-I.length)===I}(Y,";base64"),this.contentType=this.base64?Y.substring(0,Y.length-7):Y),this.rest=I.substring(I.indexOf(",")+1)}}class lr{constructor(I,B){let Y=0,ve="";H(I)?(this.data_=I,Y=I.size,ve=I.type):I instanceof ArrayBuffer?(B?this.data_=new Uint8Array(I):(this.data_=new Uint8Array(I.byteLength),this.data_.set(new Uint8Array(I))),Y=this.data_.length):I instanceof Uint8Array&&(B?this.data_=I:(this.data_=new Uint8Array(I.length),this.data_.set(I)),Y=I.length),this.size_=Y,this.type_=ve}size(){return this.size_}type(){return this.type_}slice(I,B){if(H(this.data_)){const ve=function Rn(T,I,B){return T.webkitSlice?T.webkitSlice(I,B):T.mozSlice?T.mozSlice(I,B):T.slice?T.slice(I,B):null}(this.data_,I,B);return null===ve?null:new lr(ve)}{const Y=new Uint8Array(this.data_.buffer,I,B-I);return new lr(Y,!0)}}static getBlob(...I){if(oe()){const B=I.map(Y=>Y instanceof lr?Y.data_:Y);return new lr(Un.apply(null,B))}{const B=I.map(Ke=>z(Ke)?pi(on.RAW,Ke).data:Ke.data_);let Y=0;B.forEach(Ke=>{Y+=Ke.byteLength});const ve=new Uint8Array(Y);let Ne=0;return B.forEach(Ke=>{for(let yt=0;yt<Ke.length;yt++)ve[Ne++]=Ke[yt]}),new lr(ve,!0)}}uploadData(){return this.data_}}function Mr(T){let I;try{I=JSON.parse(T)}catch{return null}return function me(T){return"object"==typeof T&&!Array.isArray(T)}(I)?I:null}function Lr(T){const I=T.lastIndexOf("/",T.length-2);return-1===I?T:T.slice(I+1)}function Vi(T,I){return I}class Ln{constructor(I,B,Y,ve){this.server=I,this.local=B||I,this.writable=!!Y,this.xform=ve||Vi}}let ze=null;function jn(){if(ze)return ze;const T=[];T.push(new Ln("bucket")),T.push(new Ln("generation")),T.push(new Ln("metageneration")),T.push(new Ln("name","fullPath",!0));const B=new Ln("name");B.xform=function I(Ne,Ke){return function In(T){return!z(T)||T.length<2?T:Lr(T)}(Ke)},T.push(B);const ve=new Ln("size");return ve.xform=function Y(Ne,Ke){return void 0!==Ke?Number(Ke):Ke},T.push(ve),T.push(new Ln("timeCreated")),T.push(new Ln("updated")),T.push(new Ln("md5Hash",null,!0)),T.push(new Ln("cacheControl",null,!0)),T.push(new Ln("contentDisposition",null,!0)),T.push(new Ln("contentEncoding",null,!0)),T.push(new Ln("contentLanguage",null,!0)),T.push(new Ln("contentType",null,!0)),T.push(new Ln("metadata","customMetadata",!0)),ze=T,ze}function zi(T,I,B){const Y=Mr(I);return null===Y?null:function st(T,I,B){const Y={type:"file"},ve=B.length;for(let Ne=0;Ne<ve;Ne++){const Ke=B[Ne];Y[Ke.local]=Ke.xform(Y,I[Ke.server])}return function $i(T,I){Object.defineProperty(T,"ref",{get:function B(){const Ne=new At(T.bucket,T.fullPath);return I._makeStorageReference(Ne)}})}(Y,T),Y}(T,Y,B)}function sr(T,I){const B={},Y=I.length;for(let ve=0;ve<Y;ve++){const Ne=I[ve];Ne.writable&&(B[Ne.server]=T[Ne.local])}return JSON.stringify(B)}const Xe="prefixes";class vr{constructor(I,B,Y,ve){this.url=I,this.method=B,this.handler=Y,this.timeout=ve,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function jr(T){if(!T)throw X()}function Fi(T,I){return function B(Y,ve){const Ne=zi(T,ve,I);return jr(null!==Ne),Ne}}function Kr(T){return function I(B,Y){let ve;return ve=401===B.getStatus()?B.getErrorText().includes("Firebase App Check token is invalid")?function A(){return new x(C.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}():function P(){return new x(C.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again.")}():402===B.getStatus()?function ie(T){return new x(C.QUOTA_EXCEEDED,"Quota for bucket '"+T+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}(T.bucket):403===B.getStatus()?function S(T){return new x(C.UNAUTHORIZED,"User does not have permission to access '"+T+"'.")}(T.path):Y,ve.status=B.getStatus(),ve.serverResponse=Y.serverResponse,ve}}function wr(T){const I=Kr(T);return function B(Y,ve){let Ne=I(Y,ve);return 404===Y.getStatus()&&(Ne=function re(T){return new x(C.OBJECT_NOT_FOUND,"Object '"+T+"' does not exist.")}(T.path)),Ne.serverResponse=ve.serverResponse,Ne}}function J(T,I,B){const ve=dt(I.fullServerUrl(),T.host,T._protocol),Ke=T.maxOperationRetryTime,yt=new vr(ve,"GET",Fi(T,B),Ke);return yt.errorHandler=wr(I),yt}function K(T,I,B,Y,ve){const Ne={};Ne.prefix=I.isRoot?"":I.path+"/",B&&B.length>0&&(Ne.delimiter=B),Y&&(Ne.pageToken=Y),ve&&(Ne.maxResults=ve);const yt=dt(I.bucketOnlyServerUrl(),T.host,T._protocol),Vt=T.maxOperationRetryTime,zt=new vr(yt,"GET",function sc(T,I){return function B(Y,ve){const Ne=function $n(T,I,B){const Y=Mr(B);return null===Y?null:function Me(T,I,B){const Y={prefixes:[],items:[],nextPageToken:B.nextPageToken};if(B[Xe])for(const ve of B[Xe]){const Ne=ve.replace(/\/$/,""),Ke=T._makeStorageReference(new At(I,Ne));Y.prefixes.push(Ke)}if(B.items)for(const ve of B.items){const Ne=T._makeStorageReference(new At(I,ve.name));Y.items.push(Ne)}return Y}(T,I,Y)}(T,I,ve);return jr(null!==Ne),Ne}}(T,I.bucket),Vt);return zt.urlParams=Ne,zt.errorHandler=Kr(I),zt}function he(T,I,B){const ve=dt(I.fullServerUrl(),T.host,T._protocol)+"?alt=media",yt=new vr(ve,"GET",(vt,Vt)=>Vt,T.maxOperationRetryTime);return yt.errorHandler=wr(I),void 0!==B&&(yt.headers.Range=`bytes=0-${B}`,yt.successCodes=[200,206]),yt}function sn(T,I,B){const Y=Object.assign({},B);return Y.fullPath=T.path,Y.size=I.size(),Y.contentType||(Y.contentType=function Ct(T,I){return T&&T.contentType||I&&I.type()||"application/octet-stream"}(null,I)),Y}function xn(T,I,B,Y,ve){const Ne=I.bucketOnlyServerUrl(),Ke={"X-Goog-Upload-Protocol":"multipart"},vt=function yt(){let Bn="";for(let Qn=0;Qn<2;Qn++)Bn+=Math.random().toString().slice(2);return Bn}();Ke["Content-Type"]="multipart/related; boundary="+vt;const Vt=sn(I,Y,ve),zt=sr(Vt,B),Vn=lr.getBlob("--"+vt+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+zt+"\r\n--"+vt+"\r\nContent-Type: "+Vt.contentType+"\r\n\r\n",Y,"\r\n--"+vt+"--");if(null===Vn)throw W();const tr={name:Vt.fullPath},ar=dt(Ne,T.host,T._protocol),vi=T.maxUploadRetryTime,Di=new vr(ar,"POST",Fi(T,B),vi);return Di.urlParams=tr,Di.headers=Ke,Di.body=Vn.uploadData(),Di.errorHandler=Kr(I),Di}class rn{constructor(I,B,Y,ve){this.current=I,this.total=B,this.finalized=!!Y,this.metadata=ve||null}}function Kn(T,I){let B=null;try{B=T.getResponseHeader("X-Goog-Upload-Status")}catch{jr(!1)}return jr(!!B&&-1!==(I||["active"]).indexOf(B)),B}const Yt={STATE_CHANGED:"state_changed"},qe={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function _i(T){switch(T){case"running":case"pausing":case"canceling":return qe.RUNNING;case"paused":return qe.PAUSED;case"success":return qe.SUCCESS;case"canceled":return qe.CANCELED;default:return qe.ERROR}}class xi{constructor(I,B,Y){if(function Ie(T){return"function"==typeof T}(I)||null!=B||null!=Y)this.next=I,this.error=B??void 0,this.complete=Y??void 0;else{const Ne=I;this.next=Ne.next,this.error=Ne.error,this.complete=Ne.complete}}}function Vr(T){return(...I)=>{Promise.resolve().then(()=>T(...I))}}class Te{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=ln.NO_ERROR,this.sendPromise_=new Promise(I=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=ln.ABORT,I()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=ln.NETWORK_ERROR,I()}),this.xhr_.addEventListener("load",()=>{I()})})}send(I,B,Y,ve,Ne){if(this.sent_)throw Pt("cannot .send() more than once");if((0,M.zJ)(I)&&Y&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(B,I,!0),void 0!==Ne)for(const Ke in Ne)Ne.hasOwnProperty(Ke)&&this.xhr_.setRequestHeader(Ke,Ne[Ke].toString());return void 0!==ve?this.xhr_.send(ve):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw Pt("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw Pt("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw Pt("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw Pt("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(I){return this.xhr_.getResponseHeader(I)}addUploadProgressListener(I){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",I)}removeUploadProgressListener(I){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",I)}}class ye extends Te{initXhr(){this.xhr_.responseType="text"}}function _e(){return new ye}class nt extends Te{initXhr(){this.xhr_.responseType="arraybuffer"}}function ut(){return new nt}class Dt extends Te{initXhr(){this.xhr_.responseType="blob"}}function Bt(){return new Dt}class er{isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}constructor(I,B,Y=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=I,this._blob=B,this._metadata=Y,this._mappings=jn(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=ve=>{if(this._request=void 0,this._chunkMultiplier=1,ve._codeEquals(C.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{const Ne=this.isExponentialBackoffExpired();if(Mn(ve.status,[])){if(!Ne)return this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,void this.completeTransitions_();ve=_()}this._error=ve,this._transition("error")}},this._metadataErrorHandler=ve=>{this._request=void 0,ve._codeEquals(C.CANCELED)?this.completeTransitions_():(this._error=ve,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((ve,Ne)=>{this._resolve=ve,this._reject=Ne,this._start()}),this._promise.then(null,()=>{})}_makeProgressCallback(){const I=this._transferred;return B=>this._updateProgress(I+B)}_shouldDoResumable(I){return I.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(I){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([B,Y])=>{switch(this._state){case"running":I(B,Y);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((I,B)=>{const Y=function qt(T,I,B,Y,ve){const Ne=I.bucketOnlyServerUrl(),Ke=sn(I,Y,ve),yt={name:Ke.fullPath},vt=dt(Ne,T.host,T._protocol),zt={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${Y.size()}`,"X-Goog-Upload-Header-Content-Type":Ke.contentType,"Content-Type":"application/json; charset=utf-8"},qn=sr(Ke,B),tr=new vr(vt,"POST",function Vn(ar){let Zn;Kn(ar);try{Zn=ar.getResponseHeader("X-Goog-Upload-URL")}catch{jr(!1)}return jr(z(Zn)),Zn},T.maxUploadRetryTime);return tr.urlParams=yt,tr.headers=zt,tr.body=qn,tr.errorHandler=Kr(I),tr}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),ve=this._ref.storage._makeRequest(Y,_e,I,B);this._request=ve,ve.getPromise().then(Ne=>{this._request=void 0,this._uploadUrl=Ne,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){const I=this._uploadUrl;this._resolveToken((B,Y)=>{const ve=function wt(T,I,B,Y){const vt=new vr(B,"POST",function Ne(Vt){const zt=Kn(Vt,["active","final"]);let qn=null;try{qn=Vt.getResponseHeader("X-Goog-Upload-Size-Received")}catch{jr(!1)}qn||jr(!1);const _n=Number(qn);return jr(!isNaN(_n)),new rn(_n,Y.size(),"final"===zt)},T.maxUploadRetryTime);return vt.headers={"X-Goog-Upload-Command":"query"},vt.errorHandler=Kr(I),vt}(this._ref.storage,this._ref._location,I,this._blob),Ne=this._ref.storage._makeRequest(ve,_e,B,Y);this._request=Ne,Ne.getPromise().then(Ke=>{this._request=void 0,this._updateProgress(Ke.current),this._needToFetchStatus=!1,Ke.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){const I=262144*this._chunkMultiplier,B=new rn(this._transferred,this._blob.size()),Y=this._uploadUrl;this._resolveToken((ve,Ne)=>{let Ke;try{Ke=function gi(T,I,B,Y,ve,Ne,Ke,yt){const vt=new rn(0,0);if(Ke?(vt.current=Ke.current,vt.total=Ke.total):(vt.current=0,vt.total=Y.size()),Y.size()!==vt.total)throw function ne(){return new x(C.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}();const Vt=vt.total-vt.current;let zt=Vt;ve>0&&(zt=Math.min(zt,ve));const qn=vt.current;let Vn="";Vn=0===zt?"finalize":Vt===zt?"upload, finalize":"upload";const tr={"X-Goog-Upload-Command":Vn,"X-Goog-Upload-Offset":`${vt.current}`},ar=Y.slice(qn,qn+zt);if(null===ar)throw W();const Bn=new vr(B,"POST",function Zn(Qn,si){const lo=Kn(Qn,["active","final"]),hc=vt.current+zt,wi=Y.size();let pc;return pc="final"===lo?Fi(I,Ne)(Qn,si):null,new rn(hc,wi,"final"===lo,pc)},I.maxUploadRetryTime);return Bn.headers=tr,Bn.body=ar.uploadData(),Bn.progressCallback=yt||null,Bn.errorHandler=Kr(T),Bn}(this._ref._location,this._ref.storage,Y,this._blob,I,this._mappings,B,this._makeProgressCallback())}catch(vt){return this._error=vt,void this._transition("error")}const yt=this._ref.storage._makeRequest(Ke,_e,ve,Ne,!1);this._request=yt,yt.getPromise().then(vt=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(vt.current),vt.finalized?(this._metadata=vt.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){262144*this._chunkMultiplier*2<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((I,B)=>{const Y=J(this._ref.storage,this._ref._location,this._mappings),ve=this._ref.storage._makeRequest(Y,_e,I,B);this._request=ve,ve.getPromise().then(Ne=>{this._request=void 0,this._metadata=Ne,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((I,B)=>{const Y=xn(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),ve=this._ref.storage._makeRequest(Y,_e,I,B);this._request=ve,ve.getPromise().then(Ne=>{this._request=void 0,this._metadata=Ne,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(I){const B=this._transferred;this._transferred=I,this._transferred!==B&&this._notifyObservers()}_transition(I){if(this._state!==I)switch(I){case"canceling":case"pausing":this._state=I,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":const B="paused"===this._state;this._state=I,B&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=I,this._notifyObservers();break;case"canceled":this._error=w(),this._state=I,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){const I=_i(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:I,metadata:this._metadata,task:this,ref:this._ref}}on(I,B,Y,ve){const Ne=new xi(B||void 0,Y||void 0,ve||void 0);return this._addObserver(Ne),()=>{this._removeObserver(Ne)}}then(I,B){return this._promise.then(I,B)}catch(I){return this.then(null,I)}_addObserver(I){this._observers.push(I),this._notifyObserver(I)}_removeObserver(I){const B=this._observers.indexOf(I);-1!==B&&this._observers.splice(B,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEach(B=>{this._notifyObserver(B)})}_finishPromise(){if(void 0!==this._resolve){let I=!0;switch(_i(this._state)){case qe.SUCCESS:Vr(this._resolve.bind(null,this.snapshot))();break;case qe.CANCELED:case qe.ERROR:Vr(this._reject.bind(null,this._error))();break;default:I=!1}I&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(I){switch(_i(this._state)){case qe.RUNNING:case qe.PAUSED:I.next&&Vr(I.next.bind(I,this.snapshot))();break;case qe.SUCCESS:I.complete&&Vr(I.complete.bind(I))();break;default:I.error&&Vr(I.error.bind(I,this._error))()}}resume(){const I="paused"===this._state||"pausing"===this._state;return I&&this._transition("running"),I}pause(){const I="running"===this._state;return I&&this._transition("pausing"),I}cancel(){const I="running"===this._state||"pausing"===this._state;return I&&this._transition("canceling"),I}}class St{constructor(I,B){this._service=I,this._location=B instanceof At?B:At.makeFromUrl(B,I.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(I,B){return new St(I,B)}get root(){const I=new At(this._location.bucket,"");return this._newRef(this._service,I)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return Lr(this._location.path)}get storage(){return this._service}get parent(){const I=function dn(T){if(0===T.length)return null;const I=T.lastIndexOf("/");return-1===I?"":T.slice(0,I)}(this._location.path);if(null===I)return null;const B=new At(this._location.bucket,I);return new St(this._service,B)}_throwIfRoot(I){if(""===this._location.path)throw Le(I)}}function Ci(T,I,B){T._throwIfRoot("uploadBytes");const Y=xn(T.storage,T._location,jn(),new lr(I,!0),B);return T.storage.makeRequestWithTokens(Y,_e).then(ve=>({metadata:ve,ref:T}))}function qi(T,I,B){return ac.apply(this,arguments)}function ac(){return(ac=(0,y.A)(function*(T,I,B){const ve=yield co(T,{pageToken:B});I.prefixes.push(...ve.prefixes),I.items.push(...ve.items),null!=ve.nextPageToken&&(yield qi(T,I,ve.nextPageToken))})).apply(this,arguments)}function co(T,I){null!=I&&"number"==typeof I.maxResults&&Qe("options.maxResults",1,1e3,I.maxResults);const B=I||{},Y=K(T.storage,T._location,"/",B.pageToken,B.maxResults);return T.storage.makeRequestWithTokens(Y,_e)}function zr(T){T._throwIfRoot("getDownloadURL");const I=function Ue(T,I,B){const ve=dt(I.fullServerUrl(),T.host,T._protocol),Ke=T.maxOperationRetryTime,yt=new vr(ve,"GET",function Ks(T,I){return function B(Y,ve){const Ne=zi(T,ve,I);return jr(null!==Ne),function pt(T,I,B,Y){const ve=Mr(I);if(null===ve||!z(ve.downloadTokens))return null;const Ne=ve.downloadTokens;if(0===Ne.length)return null;const Ke=encodeURIComponent;return Ne.split(",").map(Vt=>{const qn=T.fullPath;return dt("/b/"+Ke(T.bucket)+"/o/"+Ke(qn),B,Y)+Et({alt:"media",token:Vt})})[0]}(Ne,ve,T.host,T._protocol)}}(T,B),Ke);return yt.errorHandler=wr(I),yt}(T.storage,T._location,jn());return T.storage.makeRequestWithTokens(I,_e).then(B=>{if(null===B)throw function ue(){return new x(C.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}();return B})}function uc(T,I){const B=function Ur(T,I){const B=I.split("/").filter(Y=>Y.length>0).join("/");return 0===T.length?B:T+"/"+B}(T._location.path,I),Y=new At(T._location.bucket,B);return new St(T.storage,Y)}function Qs(T,I){if(T instanceof Qr){const B=T;if(null==B._bucket)throw function N(){return new x(C.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+$+"' property when initializing the app?")}();const Y=new St(B,B._bucket);return null!=I?Qs(Y,I):Y}return void 0!==I?uc(T,I):T}function be(T,I){if(I&&function dl(T){return/^[A-Za-z]+:\/\//.test(T)}(I)){if(T instanceof Qr)return function Zi(T,I){return new St(T,I)}(T,I);throw F("To use ref(service, url), the first argument must be a Storage instance.")}return Qs(T,I)}function Rr(T,I){const B=I?.[$];return null==B?null:At.makeFromBucketSpec(B,T)}class Qr{constructor(I,B,Y,ve,Ne,Ke=!1){this.app=I,this._authProvider=B,this._appCheckProvider=Y,this._url=ve,this._firebaseVersion=Ne,this._isUsingEmulator=Ke,this._bucket=null,this._host=g,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=ve?At.makeFromBucketSpec(ve,this._host):Rr(this._host,this.app.options)}get host(){return this._host}set host(I){this._host=I,this._bucket=null!=this._url?At.makeFromBucketSpec(this._url,I):Rr(I,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(I){Qe("time",0,Number.POSITIVE_INFINITY,I),this._maxUploadRetryTime=I}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(I){Qe("time",0,Number.POSITIVE_INFINITY,I),this._maxOperationRetryTime=I}_getAuthToken(){var I=this;return(0,y.A)(function*(){if(I._overrideAuthToken)return I._overrideAuthToken;const B=I._authProvider.getImmediate({optional:!0});if(B){const Y=yield B.getToken();if(null!==Y)return Y.accessToken}return null})()}_getAppCheckToken(){var I=this;return(0,y.A)(function*(){if((0,U.xZ)(I.app)&&I.app.settings.appCheckToken)return I.app.settings.appCheckToken;const B=I._appCheckProvider.getImmediate({optional:!0});return B?(yield B.getToken()).token:null})()}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(I=>I.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(I){return new St(this,I)}_makeRequest(I,B,Y,ve,Ne=!0){if(this._deleted)return new Pn(ce());{const Ke=function tn(T,I,B,Y,ve,Ne,Ke=!0,yt=!1){const vt=Et(T.urlParams),Vt=T.url+vt,zt=Object.assign({},T.headers);return function He(T,I){I&&(T["X-Firebase-GMPID"]=I)}(zt,I),function Ve(T,I){null!==I&&I.length>0&&(T.Authorization="Firebase "+I)}(zt,B),function Ge(T,I){T["X-Firebase-Storage-Version"]="webjs/"+(I??"AppManager")}(zt,Ne),function ft(T,I){null!==I&&(T["X-Firebase-AppCheck"]=I)}(zt,Y),new ge(Vt,T.method,zt,T.body,T.successCodes,T.additionalRetryCodes,T.handler,T.errorHandler,T.timeout,T.progressCallback,ve,Ke,yt)}(I,this._appId,Y,ve,B,this._firebaseVersion,Ne,this._isUsingEmulator);return this._requests.add(Ke),Ke.getPromise().then(()=>this._requests.delete(Ke),()=>this._requests.delete(Ke)),Ke}}makeRequestWithTokens(I,B){var Y=this;return(0,y.A)(function*(){const[ve,Ne]=yield Promise.all([Y._getAuthToken(),Y._getAppCheckToken()]);return Y._makeRequest(I,B,ve,Ne).getPromise()})()}}const lc="@firebase/storage",Co="storage";function Bi(T,I){return function ht(T,I){T._throwIfRoot("getBytes");const B=he(T.storage,T._location,I);return T.storage.makeRequestWithTokens(B,ut).then(Y=>void 0!==I?Y.slice(0,I):Y)}(T=(0,M.Ku)(T),I)}function Jp(T,I,B){return Ci(T=(0,M.Ku)(T),I,B)}function uo(T,I,B,Y){return function ao(T,I,B=on.RAW,Y){T._throwIfRoot("uploadString");const ve=pi(B,I),Ne={...Y};return null==Ne.contentType&&null!=ve.contentType&&(Ne.contentType=ve.contentType),Ci(T,ve.data,Ne)}(T=(0,M.Ku)(T),I,B,Y)}function pl(T,I,B){return function hs(T,I,B){return T._throwIfRoot("uploadBytesResumable"),new er(T,new lr(I),B)}(T=(0,M.Ku)(T),I,B)}function dc(T){return function ul(T){T._throwIfRoot("getMetadata");const I=J(T.storage,T._location,jn());return T.storage.makeRequestWithTokens(I,_e)}(T=(0,M.Ku)(T))}function ps(T,I){return function ll(T,I){T._throwIfRoot("updateMetadata");const B=function ae(T,I,B,Y){const Ne=dt(I.fullServerUrl(),T.host,T._protocol),yt=sr(B,Y),Vt=T.maxOperationRetryTime,zt=new vr(Ne,"PATCH",Fi(T,Y),Vt);return zt.headers={"Content-Type":"application/json; charset=utf-8"},zt.body=yt,zt.errorHandler=wr(I),zt}(T.storage,T._location,I,jn());return T.storage.makeRequestWithTokens(B,_e)}(T=(0,M.Ku)(T),I)}function Xp(T,I){return co(T=(0,M.Ku)(T),I)}function Yp(T){return function Qp(T){const I={prefixes:[],items:[]};return qi(T,I).then(()=>I)}(T=(0,M.Ku)(T))}function Fr(T){return zr(T=(0,M.Ku)(T))}function Gi(T){return function cc(T){T._throwIfRoot("deleteObject");const I=function _t(T,I){const Y=dt(I.fullServerUrl(),T.host,T._protocol),yt=new vr(Y,"DELETE",function Ke(vt,Vt){},T.maxOperationRetryTime);return yt.successCodes=[200,204],yt.errorHandler=wr(I),yt}(T.storage,T._location);return T.storage.makeRequestWithTokens(I,_e)}(T=(0,M.Ku)(T))}function fs(T,I){return be(T=(0,M.Ku)(T),I)}function ms(T,I){return uc(T,I)}function fl(T=(0,U.Sx)(),I){T=(0,M.Ku)(T);const Y=(0,U.j6)(T,Co).getImmediate({identifier:I}),ve=(0,M.yU)("storage");return ve&&gs(Y,...ve),Y}function gs(T,I,B,Y={}){!function Js(T,I,B,Y={}){T.host=`${I}:${B}`;const ve=(0,M.zJ)(I);ve&&((0,M.gE)(`https://${T.host}/b`),(0,M.P1)("Storage",!0)),T._isUsingEmulator=!0,T._protocol=ve?"https":"http";const{mockUserToken:Ne}=Y;Ne&&(T._overrideAuthToken="string"==typeof Ne?Ne:(0,M.Fy)(Ne,T.app.options.projectId))}(T,I,B,Y)}function dr(T,I){return function Pr(T,I){T._throwIfRoot("getBlob");const B=he(T.storage,T._location,I);return T.storage.makeRequestWithTokens(B,Bt).then(Y=>void 0!==I?Y.slice(0,I):Y)}(T=(0,M.Ku)(T),I)}function ef(T,I){throw new Error("getStream() is only supported by NodeJS builds")}function ml(T,{instanceIdentifier:I}){const B=T.getProvider("app").getImmediate(),Y=T.getProvider("auth-internal"),ve=T.getProvider("app-check-internal");return new Qr(B,Y,ve,I,U.MF)}!function yi(){(0,U.om)(new V.uA(Co,ml,"PUBLIC").setMultipleInstances(!0)),(0,U.KO)(lc,"0.14.0",""),(0,U.KO)(lc,"0.14.0","esm2020")}()},7106(Fe,m,R){"use strict";function y(U,M){this.v=U,this.k=M}R.d(m,{A:()=>y})},1876(Fe,m,R){"use strict";function y(M){var V,g,$,j=2;for(typeof Symbol<"u"&&(g=Symbol.asyncIterator,$=Symbol.iterator);j--;){if(g&&null!=(V=M[g]))return V.call(M);if($&&null!=(V=M[$]))return new U(V.call(M));g="@@asyncIterator",$="@@iterator"}throw new TypeError("Object is not async iterable")}function U(M){function V(g){if(Object(g)!==g)return Promise.reject(new TypeError(g+" is not an object."));var $=g.done;return Promise.resolve(g.value).then(function(j){return{value:j,done:$}})}return(U=function($){this.s=$,this.n=$.next}).prototype={s:null,n:null,next:function(){return V(this.n.apply(this.s,arguments))},return:function($){var j=this.s.return;return void 0===j?Promise.resolve({value:$,done:!0}):V(j.apply(this.s,arguments))},throw:function($){var j=this.s.return;return void 0===j?Promise.reject($):V(j.apply(this.s,arguments))}},new U(M)}R.d(m,{A:()=>y})},6218(Fe,m,R){"use strict";R.d(m,{A:()=>U});var y=R(7106);function U(M){return new y.A(M,0)}},600(Fe,m,R){"use strict";R.d(m,{A:()=>U});var y=R(7106);function U(V){return function(){return new M(V.apply(this,arguments))}}function M(V){var g,$;function j(D,x){try{var C=V[D](x),Z=C.value,X=Z instanceof y.A;Promise.resolve(X?Z.v:Z).then(function(re){if(X){var ie="return"===D&&Z.k?D:"next";if(!Z.k||re.done)return j(ie,re);re=V[ie](re).value}O(!!C.done,re)},function(re){j("throw",re)})}catch(re){O(2,re)}}function O(D,x){2===D?g.reject(x):g.resolve({value:x,done:D}),(g=g.next)?j(g.key,g.arg):$=null}this._invoke=function(D,x){return new Promise(function(C,Z){var X={key:D,arg:x,resolve:C,reject:Z,next:null};$?$=$.next=X:(g=$=X,j(D,x))})},"function"!=typeof V.return&&(this.return=void 0)}M.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},M.prototype.next=function(V){return this._invoke("next",V)},M.prototype.throw=function(V){return this._invoke("throw",V)},M.prototype.return=function(V){return this._invoke("return",V)}},3837(Fe){"use strict";Fe.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},2079(Fe){"use strict";Fe.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}}]);